@arcgis/core 4.29.0 → 4.29.1

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 (257) hide show
  1. package/arcade/treeAnalysis.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{b43fde3e25d0c3b020b5.js → 039a872509872ce67ba4.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{5243f9ff21e768c620c2.js → 23a5d750d93a7829174f.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{47e6119be4a4a5ed640d.js → 2447a4d5886aeb0ff72a.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{7f45a9e9bdbcffc2d6e0.js → 348bcc57b99a975902a8.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{8c9fb2601488998013ba.js → 3523789a2948a4ab8cc8.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{24649b410b757599a549.js → 48db6e0bbb1a9c043193.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{752082be991f1cc8558f.js → 4984e2b79d862114d6a6.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8d9736fd15cdb54d9855.js → 5227f9eea6988aadad7f.js} +1 -1
  11. package/assets/esri/core/workers/chunks/58723274ef657fe212eb.js +1 -0
  12. package/assets/esri/core/workers/chunks/60ab18c6a04d4b2f1d4c.js +1 -0
  13. package/assets/esri/core/workers/chunks/647515801d94180b8402.js +1 -0
  14. package/assets/esri/core/workers/chunks/6c3ae96ec90e9ed7dd50.js +1 -0
  15. package/assets/esri/core/workers/chunks/7a8bba91769ee18cc39f.js +1 -0
  16. package/assets/esri/core/workers/chunks/7a98d2e026f63a581b1e.js +1 -0
  17. package/assets/esri/core/workers/chunks/8c360923cd1850767d3e.js +1 -0
  18. package/assets/esri/core/workers/chunks/{1a25ba411b89e050fbb7.js → a61f337802ae963d7f65.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{d0c5318d7ef2e923aad0.js → a8ac511280f873960d46.js} +1 -1
  20. package/assets/esri/core/workers/chunks/b125ab84b7761e761734.js +1 -0
  21. package/assets/esri/core/workers/chunks/{b34d6e58b125fe111f91.js → b42a83db83851cb57d44.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{1497dd943df7eede0704.js → b9c55ff1f21db198ce03.js} +1 -1
  23. package/assets/esri/core/workers/chunks/bb3322ddb89c0bd444f0.js +1 -0
  24. package/assets/esri/core/workers/chunks/becfdaeeb07f089d8be7.js +1 -0
  25. package/assets/esri/core/workers/chunks/{b26e39a399963c176d33.js → c527692694688a5b3b07.js} +2 -2
  26. package/assets/esri/core/workers/chunks/{210a93e0b96c5bff44a3.js → c556644bb0cf88770939.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{a5e7b4acae17f88e2208.js → ce93027b6b81428ce9b0.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{b8ece275abac93f3dccf.js → d14f16bfa6c12909929c.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{1594f06a2d7d9439c62e.js → e2147c99cc5839654be1.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{d33ed3a2a0d4b640bd4a.js → e4c7d8c69e4957c9d27c.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{7709248f59520aee6f51.js → eceaa46f622f6fa31128.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{2286db4c83ff1b6fb088.js → ef3e6209e6ac6a56960b.js} +1 -1
  33. package/assets/esri/core/workers/chunks/f59b5ea05caca8a1a398.js +1 -0
  34. package/chunks/Laserlines.glsl.js +3 -3
  35. package/chunks/Precipitation.glsl.js +1 -1
  36. package/chunks/SSAOBlur.glsl.js +2 -2
  37. package/chunks/boundedPlane.js +1 -1
  38. package/chunks/cameraUtilsSpherical.js +1 -1
  39. package/chunks/sphere.js +1 -1
  40. package/chunks/terrainUtilsPlanar.js +1 -1
  41. package/chunks/vec32.js +1 -1
  42. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  43. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  44. package/core/libs/gl-matrix-2/vec3.js +1 -1
  45. package/geometry/support/axisAngleDegrees.js +1 -1
  46. package/geometry/support/coordinateSystem.js +1 -1
  47. package/geometry/support/lineSegment.js +1 -1
  48. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  49. package/geometry/support/meshUtils/georeference.js +1 -1
  50. package/geometry/support/meshUtils/merge.js +1 -1
  51. package/geometry/support/meshUtils/rotate.js +1 -1
  52. package/geometry/support/meshUtils/scale.js +1 -1
  53. package/geometry/support/meshUtils/vertexSpaceConversion.js +5 -0
  54. package/geometry/support/meshVertexSpaceUtils.js +1 -1
  55. package/geometry/support/plane.js +1 -1
  56. package/geometry/support/ray.js +1 -1
  57. package/geometry/support/triangle.js +1 -1
  58. package/geometry/support/vector.js +1 -1
  59. package/interfaces.d.ts +6 -6
  60. package/kernel.js +1 -1
  61. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  62. package/layers/LinkChartLayer.js +1 -1
  63. package/layers/VoxelWasmPerSceneView.js +1 -1
  64. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  65. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  66. package/layers/mixins/FeatureReductionLayer.js +1 -1
  67. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  68. package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
  69. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  70. package/layers/support/layerUtils.js +1 -1
  71. package/layers/video/VideoCameraSensorModel.js +1 -1
  72. package/layers/voxel/VoxelVolume.js +1 -1
  73. package/layers/voxel/voxelPlaneUtils.js +1 -1
  74. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  75. package/package.json +1 -1
  76. package/support/revision.js +1 -1
  77. package/symbols/cim/cimAnalyzer.js +1 -1
  78. package/views/2d/arcade/callExpressionWithCursor.js +1 -1
  79. package/views/2d/engine/webgl/shaderGraph/techniques/createTestMeshData.js +1 -1
  80. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterInputEvaluator.js +1 -1
  81. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  82. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  83. package/views/2d/layers/features/Processor.js +1 -1
  84. package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
  85. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  86. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  87. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  88. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  89. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  90. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  91. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  92. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  93. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  94. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  95. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  96. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  97. package/views/2d/layers/features/sources/strategies/chunks/DrillDownTileSourceChunk.js +1 -1
  98. package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
  99. package/views/2d/layers/features/sources/strategies/chunks/OverrideChunk.js +1 -1
  100. package/views/2d/layers/features/sources/strategies/chunks/PagedTileSourceChunk.js +1 -1
  101. package/views/2d/layers/features/sources/strategies/chunks/StreamSourceChunk.js +1 -1
  102. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  103. package/views/2d/layers/features/support/FeatureMetadata.js +1 -1
  104. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  105. package/views/2d/layers/features/support/Tile.js +1 -1
  106. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  107. package/views/2d/tiling/TileKey.js +1 -1
  108. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  109. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  110. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  111. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  112. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  113. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  114. package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
  115. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  116. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  117. package/views/3d/analysis/support/measurementUtils.js +1 -1
  118. package/views/3d/animation/pointToPoint/Camera.js +1 -1
  119. package/views/3d/camera/constraintUtils/common.js +1 -1
  120. package/views/3d/camera/constraintUtils/distance.js +1 -1
  121. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  122. package/views/3d/camera/intersectionUtils.js +1 -1
  123. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  124. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  125. package/views/3d/environment/Fog.js +1 -1
  126. package/views/3d/environment/MarsAtmosphere.js +1 -1
  127. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  128. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  129. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  130. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  131. package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
  132. package/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +1 -1
  133. package/views/3d/interactive/editingTools/transformGraphic/ExtentScale.js +1 -1
  134. package/views/3d/interactive/editingTools/transformGraphic/extentUtils.js +1 -1
  135. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  136. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  137. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  138. package/views/3d/interactive/visualElements/support/Segment.js +1 -1
  139. package/views/3d/layers/I3SMeshView3D.js +1 -1
  140. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  141. package/views/3d/layers/PointCloudWorker.js +1 -1
  142. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  143. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  144. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  145. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  146. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  147. package/views/3d/layers/i3s/LoDUtil.js +1 -1
  148. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  149. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  150. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  151. package/views/3d/layers/support/uvUtils.js +1 -1
  152. package/views/3d/state/Frustum.js +1 -1
  153. package/views/3d/state/NearFarHeuristic.js +1 -1
  154. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  155. package/views/3d/state/controllers/RotateController.js +1 -1
  156. package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
  157. package/views/3d/state/controllers/global/ZoomController.js +1 -1
  158. package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
  159. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  160. package/views/3d/state/controllers/local/ZoomController.js +1 -1
  161. package/views/3d/state/controllers/local/ZoomStepController.js +1 -1
  162. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  163. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  164. package/views/3d/state/utils/navigationUtils.js +1 -1
  165. package/views/3d/state/utils/viewUtils.js +1 -1
  166. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  167. package/views/3d/support/cameraUtils.js +1 -1
  168. package/views/3d/support/cameraUtilsInternal.js +1 -1
  169. package/views/3d/support/intersectionUtils.js +1 -1
  170. package/views/3d/support/mathUtils.js +1 -1
  171. package/views/3d/support/orientedBoundingBox.js +1 -1
  172. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  173. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  174. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  175. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  176. package/views/3d/support/sunUtils.js +1 -1
  177. package/views/3d/support/viewpointUtils.js +1 -1
  178. package/views/3d/terrain/OverlayManager.js +1 -1
  179. package/views/3d/terrain/PatchRenderData.js +1 -1
  180. package/views/3d/terrain/SphericalPatch.js +1 -1
  181. package/views/3d/terrain/TerrainRenderer.js +1 -1
  182. package/views/3d/terrain/Tile.js +1 -1
  183. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  184. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  185. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  186. package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
  187. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  188. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  189. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  190. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  191. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  192. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  193. package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
  194. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  195. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  196. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  197. package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
  198. package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
  199. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  200. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  201. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  202. package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
  203. package/views/3d/webgl-engine/lighting/SphericalHarmonics.js +1 -1
  204. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  205. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  206. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  207. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  208. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  209. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  210. package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
  211. package/views/SelectionManager.js +1 -1
  212. package/views/draw/support/createUtils.js +1 -1
  213. package/views/draw/support/surfaceCoordinateSystems.js +1 -1
  214. package/views/interactive/GraphicManipulator.js +1 -1
  215. package/views/interactive/SegmentLabels.js +1 -1
  216. package/views/interactive/coordinateHelper.js +1 -1
  217. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  218. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  219. package/views/interactive/sketch/constraints.js +1 -1
  220. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  221. package/views/interactive/snapping/candidates/ParallelLineSnappingCandidate.js +1 -1
  222. package/views/interactive/snapping/candidates/RightAngleTriangleSnappingCandidate.js +1 -1
  223. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  224. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
  225. package/views/interactive/snapping/hints/IntersectionSnappingHint.js +1 -1
  226. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  227. package/views/interactive/snapping/hints/ParallelSnappingHint.js +1 -1
  228. package/views/interactive/snapping/hints/PointSnappingHint.js +1 -1
  229. package/views/interactive/snapping/hints/RightAngleSnappingHint.js +1 -1
  230. package/views/layers/FeatureLayerView.js +1 -1
  231. package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
  232. package/views/support/angularMeasurementUtils.js +1 -1
  233. package/views/support/euclideanAreaMeasurementUtils.js +1 -1
  234. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  235. package/views/support/geometry3dUtils.js +1 -1
  236. package/widgets/Editor/EditorViewModel.js +1 -1
  237. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  238. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  239. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  240. package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
  241. package/widgets/Features/FeaturesViewModel.js +1 -1
  242. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  243. package/widgets/PanoramicViewer/utils.js +1 -1
  244. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  245. package/widgets/support/Selector2D/SelectionOperation.js +1 -1
  246. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  247. package/assets/esri/core/workers/chunks/0e83f3718a0b45652b5e.js +0 -1
  248. package/assets/esri/core/workers/chunks/1fa5c8af69a09a3730b3.js +0 -1
  249. package/assets/esri/core/workers/chunks/4736f79b5c94ce103d43.js +0 -1
  250. package/assets/esri/core/workers/chunks/65f7adaaf1f535310c11.js +0 -1
  251. package/assets/esri/core/workers/chunks/79c041b292648c5eaecc.js +0 -1
  252. package/assets/esri/core/workers/chunks/7c4c2c0beddabac672b6.js +0 -1
  253. package/assets/esri/core/workers/chunks/9307d485a9e5f9fa77d1.js +0 -1
  254. package/assets/esri/core/workers/chunks/9a758de08dfa57735879.js +0 -1
  255. package/assets/esri/core/workers/chunks/a4c3da057ec2a07bbbe8.js +0 -1
  256. package/assets/esri/core/workers/chunks/b252270b100351779f1f.js +0 -1
  257. package/assets/esri/core/workers/chunks/dc57aa9f2fc69e654559.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[712,8648],{13452:(e,t,r)=>{r.d(t,{c:()=>p});var i=r(41948),s=r(3856),n=r(40504),o=r(94360),a=r(1580),l=(r(9456),r(66360),r(72052),r(9968)),c=r(12552),d=r(4736);let u=class extends((0,s.q)(n.am)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.QJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.G)(d.e,{nonNullable:!0})],u.prototype,"unit",void 0),(0,i._)([(0,a.qq)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,i._)([(0,c.c)("esri.TimeInterval")],u);const p=u},22156:(e,t,r)=>{r.d(t,{MR:()=>o,qm:()=>a});var i=r(41948),s=r(12552);let n=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,s.c)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,i._)([(0,s.c)("esri.core.NumericIdentifiable")],t),t};let l=class extends(o(class{})){};l=(0,i._)([(0,s.c)("esri.core.Identifiable")],l)},77380:(e,t,r)=>{r.d(t,{I:()=>f,Y:()=>i});const i={Base64:0,Hex:1,String:2,Raw:3},s=8,n=(1<<s)-1;function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,i=e.length*s;r<i;r+=s)t[r>>5]|=(e.charCodeAt(r/s)&n)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=s)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function c(e,t,r,i,s,n){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(i,n)),s),r)}function d(e,t,r,i,s,n,o){return c(t&r|~t&i,e,t,s,n,o)}function u(e,t,r,i,s,n,o){return c(t&i|r&~i,e,t,s,n,o)}function p(e,t,r,i,s,n,o){return c(t^r^i,e,t,s,n,o)}function y(e,t,r,i,s,n,o){return c(r^(t|~i),e,t,s,n,o)}function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,s=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,c=s,h=n;r=d(r,i,s,n,e[t],7,-680876936),n=d(n,r,i,s,e[t+1],12,-389564586),s=d(s,n,r,i,e[t+2],17,606105819),i=d(i,s,n,r,e[t+3],22,-1044525330),r=d(r,i,s,n,e[t+4],7,-176418897),n=d(n,r,i,s,e[t+5],12,1200080426),s=d(s,n,r,i,e[t+6],17,-1473231341),i=d(i,s,n,r,e[t+7],22,-45705983),r=d(r,i,s,n,e[t+8],7,1770035416),n=d(n,r,i,s,e[t+9],12,-1958414417),s=d(s,n,r,i,e[t+10],17,-42063),i=d(i,s,n,r,e[t+11],22,-1990404162),r=d(r,i,s,n,e[t+12],7,1804603682),n=d(n,r,i,s,e[t+13],12,-40341101),s=d(s,n,r,i,e[t+14],17,-1502002290),i=d(i,s,n,r,e[t+15],22,1236535329),r=u(r,i,s,n,e[t+1],5,-165796510),n=u(n,r,i,s,e[t+6],9,-1069501632),s=u(s,n,r,i,e[t+11],14,643717713),i=u(i,s,n,r,e[t],20,-373897302),r=u(r,i,s,n,e[t+5],5,-701558691),n=u(n,r,i,s,e[t+10],9,38016083),s=u(s,n,r,i,e[t+15],14,-660478335),i=u(i,s,n,r,e[t+4],20,-405537848),r=u(r,i,s,n,e[t+9],5,568446438),n=u(n,r,i,s,e[t+14],9,-1019803690),s=u(s,n,r,i,e[t+3],14,-187363961),i=u(i,s,n,r,e[t+8],20,1163531501),r=u(r,i,s,n,e[t+13],5,-1444681467),n=u(n,r,i,s,e[t+2],9,-51403784),s=u(s,n,r,i,e[t+7],14,1735328473),i=u(i,s,n,r,e[t+12],20,-1926607734),r=p(r,i,s,n,e[t+5],4,-378558),n=p(n,r,i,s,e[t+8],11,-2022574463),s=p(s,n,r,i,e[t+11],16,1839030562),i=p(i,s,n,r,e[t+14],23,-35309556),r=p(r,i,s,n,e[t+1],4,-1530992060),n=p(n,r,i,s,e[t+4],11,1272893353),s=p(s,n,r,i,e[t+7],16,-155497632),i=p(i,s,n,r,e[t+10],23,-1094730640),r=p(r,i,s,n,e[t+13],4,681279174),n=p(n,r,i,s,e[t],11,-358537222),s=p(s,n,r,i,e[t+3],16,-722521979),i=p(i,s,n,r,e[t+6],23,76029189),r=p(r,i,s,n,e[t+9],4,-640364487),n=p(n,r,i,s,e[t+12],11,-421815835),s=p(s,n,r,i,e[t+15],16,530742520),i=p(i,s,n,r,e[t+2],23,-995338651),r=y(r,i,s,n,e[t],6,-198630844),n=y(n,r,i,s,e[t+7],10,1126891415),s=y(s,n,r,i,e[t+14],15,-1416354905),i=y(i,s,n,r,e[t+5],21,-57434055),r=y(r,i,s,n,e[t+12],6,1700485571),n=y(n,r,i,s,e[t+3],10,-1894986606),s=y(s,n,r,i,e[t+10],15,-1051523),i=y(i,s,n,r,e[t+1],21,-2054922799),r=y(r,i,s,n,e[t+8],6,1873313359),n=y(n,r,i,s,e[t+15],10,-30611744),s=y(s,n,r,i,e[t+6],15,-1560198380),i=y(i,s,n,r,e[t+13],21,1309151649),r=y(r,i,s,n,e[t+4],6,-145523070),n=y(n,r,i,s,e[t+11],10,-1120210379),s=y(s,n,r,i,e[t+2],15,718787259),i=y(i,s,n,r,e[t+9],21,-343485551),r=o(r,a),i=o(i,l),s=o(s,c),n=o(n,h)}return[r,i,s,n]}function f(e,t=i.Hex){const r=t||i.Base64,n=h(a(e),e.length*s);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return l(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(n)}}},90636:(e,t,r)=>{r.d(t,{O:()=>y});var i=r(20744),s=r(77380),n=r(4644),o=r(28176),a=r(63564),l=r(44296),c=r(71448),d=r(1580),u=r(73960),p=r(91952);function y(e){const t=e?.origins??[void 0];return(r,i)=>{const s=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.EF)(t,r);return{type:String,read:(e,t,r)=>{const s=(0,p.r)(e,t,r);return i.type===String?s:"function"==typeof i.type?new i.type({url:s}):void 0},write:{writer(t,s,a,l){if(!l?.resources)return"string"==typeof t?void(s[a]=(0,p.t)(t,l)):void(s[a]=t.write({},l));const d=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),y=(0,p.t)(d,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},p.M.NO),g=i.type!==String&&(!(0,n.w)(this)||l?.origin&&this.originIdOf(r)>(0,c.CQ)(l.origin)),w={object:this,propertyName:r,value:t,targetUrl:y,dest:s,targetPropertyName:a,context:l,params:e};l?.portalItem&&y&&!(0,o.ic)(y)?g&&e?.contentAddressed?h(w):g?function(e){const{context:t,targetUrl:r,params:i,value:s,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),c=m(s,r,t),d=(0,u.e)(c),p=(0,o.wt)(l.path),y=i?.compress??!1;d===p?(t.resources&&f({...e,resource:l,content:c,compress:y,updates:t.resources.toUpdate}),n[a]=r):h(e)}(w):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(w):l?.portalItem&&(null==y||null!=(0,p.i)(y)||(0,o.ue)(y)||g)?h(w):s[a]=y}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,d.aq)(r,e,i);for(const e in s)t[e]=s[e]}}}function h(e){const{targetUrl:t,params:r,value:n,context:l,dest:c,targetPropertyName:d}=e;if(!l.portalItem)return;const y=(0,p.p)(t),h=m(n,t,l);if(r?.contentAddressed&&"json"!==h.type)return void l.messages?.push(new i.c("persistable:contentAddressingUnsupported",`Property "${d}" is trying to serializing a resource with content of type ${h.type} with content addressing. Content addressing is only supported for json resources.`,{content:h}));const g=r?.contentAddressed&&"json"===h.type?(0,s.I)(h.jsonString):y?.filename??(0,a.g1)(),w=(0,o.kn)(r?.prefix??y?.prefix,g),v=`${w}.${(0,u.e)(h)}`;if(r?.contentAddressed&&l.resources&&"json"===h.type){const e=l.resources.toKeep.find((({resource:e})=>e.path===v))??l.resources.toAdd.find((({resource:e})=>e.path===v));if(e)return void(c[d]=e.resource.itemRelativeUrl)}const b=l.portalItem.resourceFromPath(v);(0,o.ue)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.SW)(t).then((e=>{b.path=`${w}.${(0,u.e)({type:"blob",blob:e})}`,c[d]=b.itemRelativeUrl})).catch((()=>{})));const q=r?.compress??!1;l.resources&&f({...e,resource:b,content:h,compress:q,updates:l.resources.toAdd}),c[d]=b.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function m(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},63564:(e,t,r)=>{r.d(t,{Mr:()=>o,cf:()=>n,g1:()=>s});const i="randomUUID"in crypto;function s(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const 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`{${s().toUpperCase()}}`}function o(){return`{${s()}}`}},13819:(e,t,r)=>{r.d(t,{c:()=>v});var i,s=r(41948),n=r(92400),o=r(14628),a=r(40504),l=r(24296),c=r(69504),d=r(1580),u=(r(9456),r(66360),r(33600)),p=r(12552),y=r(18996);const h=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=h.jsonValues.slice();(0,n.sH)(f,"orthometric");const m=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends a.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new c.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return m.read(e)||(r?.messages&&r.messages.push(w(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.oG)(e)||m.read(e)||(r?.messages&&r.messages.push(w(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l._2)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function w(e,t){return new c.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,d.qq)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,s._)([(0,y.G)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,s._)([(0,u.E)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,s._)([(0,d.qq)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:m.write}}}})],g.prototype,"heightUnit",void 0),(0,s._)([(0,u.E)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,s._)([(0,u.E)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,s._)([(0,d.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,s._)([(0,u.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,s._)([(0,p.c)("esri.geometry.HeightModelInfo")],g);const v=g},81436:(e,t,r)=>{r.d(t,{c:()=>v});var i=r(41948),s=(r(60708),r(2600)),n=r(20744),o=r(77860),a=r(22156),l=r(95800),c=r(66360),d=r(10860),u=r(28176),p=r(1580),y=(r(9456),r(72052),r(12552)),h=r(6220),f=r(95247),m=r(56156);let g=0,w=class extends(o.c.EventedMixin((0,a.MR)(l.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.c(-180,-90,180,90,m.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r?.id||"unset",s=r&&r.portal&&r.portal.url||h.default.portalUrl;throw c.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,d.mA)(e)||c.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,u.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,p.qq)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,i._)([(0,p.qq)({type:f.c})],w.prototype,"fullExtent",void 0),(0,i._)([(0,p.qq)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,i._)([(0,p.qq)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,i._)([(0,p.qq)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,i._)([(0,p.qq)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,i._)([(0,p.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,i._)([(0,p.qq)({clonable:!1})],w.prototype,"parent",void 0),(0,i._)([(0,p.qq)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,i._)([(0,p.qq)({type:Boolean,readOnly:!0})],w.prototype,"persistenceEnabled",void 0),(0,i._)([(0,p.qq)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,i._)([(0,p.qq)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,i._)([(0,p.qq)({type:m.c})],w.prototype,"spatialReference",void 0),(0,i._)([(0,p.qq)({type:String})],w.prototype,"title",void 0),(0,i._)([(0,p.qq)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,i._)([(0,p.qq)()],w.prototype,"url",void 0),(0,i._)([(0,p.qq)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,i._)([(0,y.c)("esri.layers.Layer")],w);const v=w},3688:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Fe});var i=r(41948),s=r(6444),n=r(82692),o=(r(99704),r(73868),r(90200),r(12836),r(63718),r(2360),r(64624),r(24948),r(70236),r(37284)),a=r(2600),l=r(3856),c=r(2952),d=r(20744),u=r(66360),p=r(26496),y=r(10860),h=r(57896),f=r(28176),m=r(1580),g=(r(9456),r(72052),r(20916)),w=r(33600),v=r(12552),b=r(71448),q=r(94716),I=r(67776),_=r(81436),S=r(4040),F=r(38724),x=r(16660),j=r(28584),E=r(6576),L=r(66576),O=r(98768),A=r(3116),R=r(87072),T=r(6828),U=r(48212),P=r(50420),M=r(36088),D=r(21488),C=r(70388),N=r(66464),G=r(17968),$=r(81732),k=r(16424),V=r(564),H=r(44104),Q=r(4048),J=r(6168),W=r(34880),B=r(24144),K=r(83928),z=r(40504);let Z=class extends z.am{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i._)([(0,m.qq)({type:String,json:{read:!0,write:!0}})],Z.prototype,"name",void 0),(0,i._)([(0,m.qq)({type:String,json:{read:!0,write:!0}})],Z.prototype,"field",void 0),(0,i._)([(0,m.qq)({type:[Number],json:{read:!0,write:!0}})],Z.prototype,"currentRangeExtent",void 0),(0,i._)([(0,m.qq)({type:[Number],json:{read:!0,write:!0}})],Z.prototype,"fullRangeExtent",void 0),(0,i._)([(0,m.qq)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:!0}})],Z.prototype,"type",void 0),Z=(0,i._)([(0,v.c)("esri.layers.support.RangeInfo")],Z);var Y,X=r(62088),ee=r(90636),te=r(69504),re=r(7488),ie=r(60074);let se=Y=class extends((0,z.Ib)(c.c.ofType(re.c))){constructor(e){super(e)}clone(){return new Y(this.items.map((e=>e.clone())))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map((r=>{if(!t.equals(r.spatialReference)){if(!(0,ie.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages&&e.messages.push(new te.c("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new re.c;(0,ie.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i})).filter((e=>null!=e)):(e?.messages&&e.messages.push(new te.c("scenefilter:unsupported","Writing Scene filters without context layer is not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),this.toArray().map((t=>t.toJSON(e))))}static fromJSON(e,t){const r=new Y;return e.forEach((e=>r.add(re.c.fromJSON(e,t)))),r}};se=Y=(0,i._)([(0,v.c)("esri.layers.support.PolygonCollection")],se);const ne=se;var oe,ae=r(91952);let le=oe=class extends z.am{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new ne,this._geometriesSource=null}initialize(){this.addHandles((0,h.on)((()=>this.geometries),"after-changes",(()=>this.geometries=this.geometries),h.du))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=ne.fromJSON(e,r):this._geometriesSource={url:(0,ae.f)(e,r),context:r}}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,s=await(0,a.c)(r,{responseType:"json",signal:t?.signal}),n=e.toJSON(),o=s.data.map((e=>({...e,spatialReference:n})));this.geometries=ne.fromJSON(o,i),this._geometriesSource=null}clone(){const e=new oe({geometries:(0,X.ct)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i._)([(0,m.qq)({type:["disjoint","contains"],nonNullable:!0,json:{write:!0}})],le.prototype,"spatialRelationship",void 0),(0,i._)([(0,m.qq)({type:ne,nonNullable:!0,json:{write:!0}}),(0,ee.O)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],le.prototype,"geometries",void 0),(0,i._)([(0,w.E)(["web-scene","portal-item"],"geometries")],le.prototype,"readGeometries",null),le=oe=(0,i._)([(0,v.c)("esri.layers.support.SceneFilter")],le);const ce=le;var de=r(97824),ue=r(95776),pe=r(69204),ye=r(56672),he=r(65548);async function fe(e){const t=[];for(const r of e)r.name.toLowerCase().endsWith(".zip")?t.push(me(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}async function me(e){const{BlobReader:t,ZipReader:i,BlobWriter:s}=await Promise.all([r.e(4831),r.e(9752)]).then(r.bind(r,79752)),n=[],o=new i(new t(e));return(await o.getEntries()).forEach((e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new s,r=e.getData?.(t).then((t=>new File([t],e.filename)));r&&n.push(r)})),Promise.all(n)}var ge=r(74776),we=r(63680),ve=r(9332);const be=new Set(["3DObject","Point"]),qe=(0,$.l)();let Ie=class extends((0,T.c)((0,E.CE)((0,R.G6)((0,x.u)((0,L.Y)((0,O.K)((0,A.I)((0,p.U)((0,j.G)((0,F.C)((0,l.q)(_.c)))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new c.c,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new k.c(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:H.yq.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,C.ig)(this.associatedLayer)}get geometryType(){return Se[this.profile]||"mesh"}set renderer(e){(0,V.Gi)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:M.u;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:n,supportsGeometryUpdate:o,supportsReturnServiceEditsInSourceSpatialReference:a},data:{supportsZ:l,supportsM:c,isVersioned:d,supportsAttachment:u},operations:{supportsEditing:p,supportsAdd:y,supportsUpdate:h,supportsDelete:f,supportsQuery:m,supportsQueryAttachments:g,supportsAsyncConvert3D:w}}=e,v=e.operations.supportsChangeTracking,b=!!this.associatedLayer?.infoFor3D&&(0,ye.g1)();return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:a,supportsRollbackOnFailure:s,supportsGeometryUpdate:b&&o,supportsUploadWithItemId:n},data:{supportsAttachment:u,supportsZ:l,supportsM:c,isVersioned:d},operations:{supportsQuery:m,supportsQueryAttachments:g,supportsEditing:p&&v,supportsAdd:b&&y&&v,supportsDelete:b&&f&&v,supportsUpdate:h&&v,supportsAsyncConvert3D:w}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e))),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e))),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&_e[r]?_e[r]:(u.c.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=null!=e?e.signal:null;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.CE),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await(0,de.M)(this,{origin:"service"},t),(0,V.Gi)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){u.c.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new ue.c;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e}))}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new d.c("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new d.c("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,V.k7)(this.fieldsIndex,await(0,we.W_)(this,(0,we.M$)(this)));return(0,ge.cx)(this.parsedUrl.path,this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new d.c("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new s.c;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryAttachments(e,t)))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(u.c.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,he.Ap)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new d.c("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new d.c("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some((t=>t.name===e))}async queryCachedStatistics(e,t){if(await this.load(t),!this.statisticsInfo)throw new d.c("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new d.c("scenelayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.statisticsInfo)if(e.name===r.name){const r=(0,f.kn)(this.parsedUrl.path,e.href);return(0,a.c)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new d.c("scenelayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(R.UJ.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(R.UJ.SAVE,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(387).then(r.bind(r,62768));let s=t;await this.load();const n=this.associatedLayer;if(!n)throw new d.c(`${this.type}-layer:not-editable`,"Service is not editable");await n.load();const{globalIdField:o}=n,a=!!n.infoFor3D,l=s?.globalIdUsed??!0;if(a&&null==o)throw new d.c(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(a&&!l)throw new d.c(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,U.Wq)(n.url)&&a&&null!=e.deleteFeatures&&null!=o&&(s={...s,globalIdToObjectId:await(0,C.wl)(n,e.deleteFeatures,o)}),i(this,n.source,e,s)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new d.c(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}on(e,t){return super.on(e,t)}async convertMesh(e,t){const r=e=>{throw u.c.getLogger(this).error(".convertMesh()",e.message),e};await this.load(),this.infoFor3D||r(new d.c("invalid:layer","SceneLayer has no capability for mesh conversion"));const i=await this.extractAndFilterFiles(e),s=i.reduce(((e,t)=>(0,Q.kD)(this.infoFor3D,t)?e+1:e),0);0===s&&r(new S.Su),s>1&&r(new S.Ev);const n=this.spatialReference,o=t?.location??new I.c({x:0,y:0,z:0,spatialReference:n}),a=o.spatialReference.isGeographic?"local":"georeferenced",l=q.c.createWithExternalSource(o,i,{vertexSpace:a}),[c]=await this.uploadAssets([l],t);return c}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;return t?(await fe(e)).filter((e=>(0,Q.sz)(t,e))):e}validateLayer(e){if(e.layerType&&!be.has(e.layerType))throw new d.c("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new d.c("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new d.c("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new d.c("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new d.c("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new d.c("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!(!this.attributeStorageInfo||!this.attributeStorageInfo.some((t=>t.name===e.name))),r=!!this.associatedLayer?.fields?.some((t=>t&&e.name===t.name)),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPopupOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled"],t=(0,g.m6)(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),n=this.associatedLayer.originIdOf(i);s<n&&(n===b.sT.SERVICE||n===b.sT.PORTAL_ITEM)&&t.setAtOrigin(i,this.associatedLayer[i],n)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.editingInfo?.lastEditDate,t=this.associatedLayer?.serverGens,r=this.associatedLayer?.getAtOrigin("fullExtent","service");(0,ye.g1)()&&null!=this.associatedLayer?.infoFor3D&&r&&(0,U.Wq)(this.associatedLayer?.url)&&e&&this.serviceUpdateTimeStamp?.lastUpdate!==e.getTime()&&(this.serviceUpdateTimeStamp||t?.minServerGen!==t?.serverGen)&&(0,g.m6)(this).setAtOrigin("fullExtent",r.clone(),b.sT.SERVICE)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,P.S)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await K.q.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,y.mA)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){await(0,h.Eq)((()=>this.popupEnabled&&null!=this.popupTemplate));const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?u.c.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):u.c.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${e}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,pe.A$)(u.c.getLogger(this),(0,pe.ay)("Mesh scene layers","relative-to-scene",e)),(0,pe.A$)(u.c.getLogger(this),(0,pe.W8)("Scene layers",e))}};(0,i._)([(0,m.qq)({types:{key:"type",base:N.E,typeMap:{selection:G.c}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],Ie.prototype,"featureReduction",void 0),(0,i._)([(0,m.qq)({type:[Z],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],Ie.prototype,"rangeInfos",void 0),(0,i._)([(0,m.qq)({json:{read:!1}})],Ie.prototype,"associatedLayer",void 0),(0,i._)([(0,m.qq)({type:["show","hide"]})],Ie.prototype,"listMode",void 0),(0,i._)([(0,m.qq)({type:["ArcGISSceneServiceLayer"]})],Ie.prototype,"operationalLayerType",void 0),(0,i._)([(0,m.qq)({json:{read:!1},readOnly:!0})],Ie.prototype,"type",void 0),(0,i._)([(0,m.qq)({...qe.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ie.prototype,"fields",void 0),(0,i._)([(0,m.qq)()],Ie.prototype,"types",null),(0,i._)([(0,m.qq)()],Ie.prototype,"typeIdField",null),(0,i._)([(0,m.qq)()],Ie.prototype,"templates",null),(0,i._)([(0,m.qq)()],Ie.prototype,"formTemplate",null),(0,i._)([(0,m.qq)({readOnly:!0,clonable:!1})],Ie.prototype,"fieldsIndex",null),(0,i._)([(0,m.qq)({type:B.c,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Ie.prototype,"floorInfo",void 0),(0,i._)([(0,m.qq)(qe.outFields)],Ie.prototype,"outFields",void 0),(0,i._)([(0,m.qq)({type:H.yq,readOnly:!0,json:{read:!1}})],Ie.prototype,"nodePages",void 0),(0,i._)([(0,w.E)("service","nodePages",["nodePages","pointNodePages"])],Ie.prototype,"readNodePages",null),(0,i._)([(0,m.qq)({type:[H.a],readOnly:!0})],Ie.prototype,"materialDefinitions",void 0),(0,i._)([(0,m.qq)({type:[H.G4],readOnly:!0})],Ie.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,m.qq)({type:[H.iK],readOnly:!0})],Ie.prototype,"geometryDefinitions",void 0),(0,i._)([(0,m.qq)({readOnly:!0})],Ie.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,m.qq)({readOnly:!0})],Ie.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,m.qq)({readOnly:!0})],Ie.prototype,"statisticsInfo",void 0),(0,i._)([(0,m.qq)({type:c.c.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Ie.prototype,"excludeObjectIds",void 0),(0,i._)([(0,m.qq)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Ie.prototype,"definitionExpression",void 0),(0,i._)([(0,m.qq)({type:ce,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Ie.prototype,"filter",void 0),(0,i._)([(0,m.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Ie.prototype,"path",void 0),(0,i._)([(0,m.qq)(D.Kg)],Ie.prototype,"elevationInfo",null),(0,i._)([(0,m.qq)({readOnly:!0,json:{read:!1}})],Ie.prototype,"effectiveCapabilities",null),(0,i._)([(0,m.qq)({readOnly:!0})],Ie.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,m.qq)({type:String})],Ie.prototype,"geometryType",null),(0,i._)([(0,m.qq)(D.Wu)],Ie.prototype,"labelsVisible",void 0),(0,i._)([(0,m.qq)({type:[J.c],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:W.E},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:W.E},write:!0}})],Ie.prototype,"labelingInfo",void 0),(0,i._)([(0,m.qq)(D.Uj)],Ie.prototype,"legendEnabled",void 0),(0,i._)([(0,m.qq)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,ve.u)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Ie.prototype,"opacity",void 0),(0,i._)([(0,m.qq)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ie.prototype,"priority",void 0),(0,i._)([(0,m.qq)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ie.prototype,"semantic",void 0),(0,i._)([(0,m.qq)({types:o.Q,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Ie.prototype,"renderer",null),(0,i._)([(0,m.qq)({json:{read:!1}})],Ie.prototype,"cachedDrawingInfo",void 0),(0,i._)([(0,w.E)("service","cachedDrawingInfo")],Ie.prototype,"readCachedDrawingInfo",null),(0,i._)([(0,m.qq)({readOnly:!0,json:{read:!1}})],Ie.prototype,"capabilities",null),(0,i._)([(0,m.qq)({type:Boolean,json:{read:!1}})],Ie.prototype,"editingEnabled",null),(0,i._)([(0,m.qq)({readOnly:!0,json:{write:!1,read:!1}})],Ie.prototype,"infoFor3D",null),(0,i._)([(0,m.qq)({readOnly:!0,json:{write:!1,read:!1}})],Ie.prototype,"relationships",null),(0,i._)([(0,m.qq)(D.Ou)],Ie.prototype,"popupEnabled",void 0),(0,i._)([(0,m.qq)({type:n.c,json:{name:"popupInfo",write:!0}})],Ie.prototype,"popupTemplate",void 0),(0,i._)([(0,m.qq)({readOnly:!0,json:{read:!1}})],Ie.prototype,"defaultPopupTemplate",null),(0,i._)([(0,m.qq)({type:String,json:{read:!1}})],Ie.prototype,"objectIdField",void 0),(0,i._)([(0,w.E)("service","objectIdField",["objectIdField","fields"])],Ie.prototype,"readObjectIdField",null),(0,i._)([(0,m.qq)({type:String,json:{read:!1}})],Ie.prototype,"globalIdField",void 0),(0,i._)([(0,w.E)("service","globalIdField",["globalIdField","fields"])],Ie.prototype,"readGlobalIdField",null),(0,i._)([(0,m.qq)({readOnly:!0,type:String,json:{read:!1}})],Ie.prototype,"displayField",null),(0,i._)([(0,m.qq)({type:String,json:{read:!1}})],Ie.prototype,"profile",void 0),(0,i._)([(0,w.E)("service","profile",["store.profile"])],Ie.prototype,"readProfile",null),(0,i._)([(0,m.qq)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Ie.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,m.qq)(D.Q9)],Ie.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,m.qq)({json:{read:!1,origins:{service:{read:!0}}}})],Ie.prototype,"serviceItemId",void 0),Ie=(0,i._)([(0,v.c)("esri.layers.SceneLayer")],Ie);const _e={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Se={"mesh-pyramids":"mesh",points:"point",lines:"polyline",polygons:"polygon"},Fe=Ie},4040:(e,t,r)=>{r.d(t,{AQ:()=>u,Av:()=>d,Ev:()=>m,KY:()=>o,Qr:()=>l,Su:()=>f,a:()=>a,iq:()=>h,kQ:()=>p,kz:()=>c,q8:()=>y});var i=r(20744);const s="upload-assets",n=()=>new Error;class o extends i.c{constructor(){super(`${s}:unsupported`,"Layer does not support asset uploads.",n())}}class a extends i.c{constructor(){super(`${s}:no-glb-support`,"Layer does not support glb.",n())}}class l extends i.c{constructor(){super(`${s}:no-supported-source`,"No supported external source found",n())}}class c extends i.c{constructor(){super(`${s}:not-base-64`,"Expected gltf data in base64 format after conversion.",n())}}class d extends i.c{constructor(){super(`${s}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",n())}}class u extends i.c{constructor(e,t){super(`${s}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,n())}}class p extends i.c{constructor(e,t){super(`${s}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,n())}}class y extends i.c{constructor(e){super(`${s}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,n())}}class h extends i.c{constructor(){super(`${s}:convert3D-failed`,"convert3D failed.")}}class f extends i.c{constructor(){super("invalid-input:no-model","No supported model found")}}class m extends i.c{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},6576:(e,t,r)=>{r.d(t,{CE:()=>m,iC:()=>y,mK:()=>d});var i=r(41948),s=r(77860),n=r(62088),o=r(10860),a=(r(66360),r(9456),r(20744),r(12552)),l=r(73184);const c=new s.c.EventEmitter;function d(e,t,r=null,i=!1){const s=(0,o.qG)();return i=null==t||i,c.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:s.promise}),s}const u="esri.layers.mixins.EditBusLayer",p=Symbol(u);function y(e){return null!=e&&"object"==typeof e&&p in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,r){const i=new URL(e).host,s=l.k5.get(i),n=e=>!e||e===s;return n(t)&&n(r)||t===r}const m=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:s,result:o}=e,a=t===this.url,c=null!=r&&null!=this.layerId&&r===this.layerId,d=h(this),u=h(this)&&f(t,i,this.gdbVersion);if(!a||d&&!u||!c&&!s)return;const p=o.then((e=>{if(c&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.ct)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:r,updates:i,deletes:s}=t.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:r?r.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:s?s.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.ct)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.ct)(e.historicMoment)};return this.emit("edits",o),o}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.ct)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.ct)(e.historicMoment)}})).then((e=>("historicMoment"in this&&this.historicMoment!==e.historicMoment&&(0,l.oK)(t,i)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,s=t===this.url,n=h(this),o=h(this)&&f(t,r,this.gdbVersion),a=h(this)&&!f(t,this.gdbVersion,null);s&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then((()=>{this.addHandles(function(e){return c.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return c.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}};return t=p,r=(0,i._)([(0,a.c)(u)],r),r}},3116:(e,t,r)=>{r.d(t,{I:()=>o});var i=r(41948),s=r(1580),n=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,s.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,s.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,s.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},66464:(e,t,r)=>{r.d(t,{E:()=>a});var i=r(41948),s=r(40504),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552));let a=class extends s.am{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,n.qq)({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,o.c)("esri.layers.support.FeatureReduction")],a)},17968:(e,t,r)=>{r.d(t,{c:()=>c});var i,s=r(41948),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552)),a=r(66464);let l=i=class extends a.E{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,s._)([(0,n.qq)({type:["selection"]})],l.prototype,"type",void 0),l=i=(0,s._)([(0,o.c)("esri.layers.support.FeatureReductionSelection")],l);const c=l},99336:(e,t,r)=>{r.d(t,{c:()=>f});var i=r(41948),s=r(25228),n=r(13452),o=r(3856),a=r(40504),l=r(1580),c=(r(9456),r(66360),r(72052),r(33600)),d=r(12552),u=r(18996),p=r(28484);function y(e,t){return n.c.fromJSON({value:e,unit:t})}let h=class extends((0,o.q)(a.am)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new s.c({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,l.qq)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,l.qq)({type:s.c,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,c.E)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,u.G)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,l.qq)({type:n.c,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,c.E)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,u.G)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,l.qq)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,l.qq)((0,p.SM)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,d.c)("esri.layers.support.TimeInfo")],h);const f=h},70388:(e,t,r)=>{r.d(t,{wj:()=>v,cV:()=>I,ig:()=>N,i:()=>$,cJ:()=>T,WC:()=>S,oh:()=>C,s1:()=>F,sD:()=>w,wl:()=>V,yo:()=>R,gx:()=>k,Q1:()=>x,iq:()=>L,YL:()=>E,W2:()=>j,ms:()=>O,UN:()=>A,Y9:()=>U,qY:()=>P,Ce:()=>M,kd:()=>q,Wm:()=>_});var i=r(47620),s=r(17988),n=r(40196),o=r(20744),a=r(14628),l=r(44247),c=r(64408),d=r(95776);async function u(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=p(e));const i=function(e){return p(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),s=e.capabilities.query.supportsPagination;t.start=0,t.num=i;let n=null;for(;;){const o=await e.source.queryFeaturesJSON(t,r);if(null==n?n=o:n.features=n.features.concat(o.features),n.exceededTransferLimit=o.exceededTransferLimit,!s||!o.exceededTransferLimit)break;t.start+=i}return n}function p(e){return e.capabilities.query.supportsMaxRecordCountFactor?d.c.MAX_MAX_RECORD_COUNT_FACTOR:1}var y=r(71068),h=r(64624),f=r(24948),m=r(19212),g=r(18648);const w=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function v(e,t,r,i){const s=await D(e);if(await b(e,t,i),!s.addAttachment)throw new o.c(i,"Layer source does not support addAttachment capability");return s.addAttachment(t,r)}function b(e,t,r){const{attributes:i}=t,{objectIdField:s}=e;return e.capabilities?.data?.supportsAttachment?t?i?s&&i[s]?Promise.resolve():Promise.reject(new o.c(r,`feature is missing the identifying attribute ${s}`)):Promise.reject(new o.c(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.c(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.c(r,"this layer doesn't support attachments"))}async function q(e,t,r,i,s){const n=await D(e);if(await b(e,t,s),!n.updateAttachment)throw new o.c(s,"Layer source does not support updateAttachment capability");return n.updateAttachment(t,r,i)}async function I(e,t,i){const{applyEdits:s}=await r.e(2768).then(r.bind(r,62768)),n=await e.load(),{source:o,globalIdField:a}=n;let l=i;return("feature"===n.type?n.infoFor3D:null)&&null!=t.deleteFeatures&&null!=a&&(l={...l,globalIdToObjectId:await V(e,t.deleteFeatures,a)}),s(n,o,t,i)}async function _(e,t,i){const{uploadAssets:s}=await r.e(2768).then(r.bind(r,62768)),n=await e.load();return s(n,n.source,t,i)}async function S(e,t,r,i){const s=await D(e);if(await b(e,t,i),!s.deleteAttachments)throw new o.c(i,"Layer source does not support deleteAttachments capability");return s.deleteAttachments(t,r)}async function F(e,t,r){const i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new o.c(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function x(e,t,r,i){t=m.c.from(t),await e.load();const s=e.source,n=e.capabilities;if(!n?.data?.supportsAttachment)throw new o.c(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:c,num:d,size:u,start:p,where:y}=t;if(!n?.operations?.supportsQueryAttachments&&(a?.length>0||c?.length>0||u?.length>0||d||p||y))throw new o.c(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||c?.length||y))throw new o.c(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!s.queryAttachments)throw new o.c(i,"Layer source does not support queryAttachments capability",t);return s.queryAttachments(t)}async function j(e,t,r,i){const s=await D(e);if(!s.queryObjectIds)throw new o.c(i,"Layer source does not support queryObjectIds capability");return s.queryObjectIds(d.c.from(t)??e.createQuery(),r)}async function E(e,t,r,i){const s=await D(e);if(!s.queryFeatureCount)throw new o.c(i,"Layer source does not support queryFeatureCount capability");return s.queryFeatureCount(d.c.from(t)??e.createQuery(),r)}async function L(e,t,r,i){const s=await D(e);if(!s.queryExtent)throw new o.c(i,"Layer source does not support queryExtent capability");return s.queryExtent(d.c.from(t)??e.createQuery(),r)}async function O(e,t,r,i){const s=await D(e);if(!s.queryRelatedFeatures)throw new o.c(i,"Layer source does not support queryRelatedFeatures capability");return s.queryRelatedFeatures(g.default.from(t),r)}async function A(e,t,r,i){const s=await D(e);if(!s.queryRelatedFeaturesCount)throw new o.c(i,"Layer source does not support queryRelatedFeaturesCount capability");return s.queryRelatedFeaturesCount(g.default.from(t),r)}async function R(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:i}=await t.refresh();if(null!=i&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,l.u)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function T(e){const t=new d.c,r=e.capabilities?.data,i=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,i&&(t.compactGeometryEnabled=i.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=i.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),r.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:s,timeExtent:n}=e;return t.timeExtent=null!=s&&null!=n?n.offset(-s.value,s.unit):n||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function U(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function P(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function M(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}async function D(e){return(await e.load()).source}async function C(e,t,r){const s=e.parsedUrl?.path;s&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const s=await(0,y.mK)(e,t);s&&(r=await i.id.checkSignInStatus(`${s}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(s,r)}function N(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const G=(0,c.g)({types:s.IX});function $(e,t){if(e.defaultSymbol)return e.types?.length?new f.c({defaultSymbol:G(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:G(e.symbol,e,t)})))}):new h.c({symbol:G(e.defaultSymbol,e,t)})}function k(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function V(e,t,r){if(null==t)return null;const i=[],{objectIdField:s}=e;if(t.forEach((e=>{let t=null;if("attributes"in e){const{attributes:i}=e;t={globalId:i[r],objectId:null!=i[s]&&-1!==i[s]?i[s]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null!=t.objectId&&-1!==t.objectId||i.push(t.globalId))})),0===i.length)return null;const o=e.createQuery();o.where=i.map((e=>`${r}='${e}'`)).join(" OR "),o.returnGeometry=!1,o.outFields=[s,r],o.cacheHint=!1;const a=await(0,n.SO)(u(e,o));if(!a.ok)return null;const l=new Map,c=a.value.features;for(const e of c){const t=e.attributes[r],i=e.attributes[s];null!=t&&null!=i&&-1!==i&&l.set(t,i)}return l}},81732:(e,t,r)=>{r.d(t,{l:()=>l});var i=r(9456),s=r(66360),n=r(600),o=r(16424),a=r(564);function l(){return{fields:{type:[n.c],value:null,set:function(e){if(e&&(0,i.c)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");s.c.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.c.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||s.c.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.OO)(this.fieldsIndex,e)}}}}},4048:(e,t,r)=>{r.d(t,{If:()=>a,K0:()=>c,Mn:()=>h,kD:()=>n,me:()=>o,sz:()=>s,w$:()=>l});const i=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=u(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const r=c(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function o(e,t){return p(function(e,t){const r=e.toLowerCase();return d(t).find((e=>y(e)===r))}(e,t))}function a(e,t){return p(u(e,t))}function l(e,t){return y(function(e,t){return d(t).find((t=>p(t)===e))}(e,t))}function c(e,t){return a(e.name,t)??o(e.type,t)}function d(e){return[...i,...e]}function u(e,t){const r=e.toLowerCase();return d(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function p(e){return e?.[0]}function y(e){return e?.[1].toLowerCase()}function h(e){return e.tables?.find((e=>"assetMaps"===e.role))}},73960:(e,t,r)=>{r.d(t,{e:()=>s});var i=r(28176);function s(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.wt)(e);return l[t]||o}(e.url)}(e)]||a}const n={},o="text/plain",a=n[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},4736:(e,t,r)=>{r.d(t,{e:()=>i});const i=(0,r(14628).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},97824:(e,t,r)=>{r.d(t,{M:()=>o});var i=r(40196),s=r(10860),n=r(69504);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.aG)(o.populateFromStyle());if((0,s.wp)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new n.c("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},18648:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var i,s=r(41948),n=(r(60708),r(40504)),o=r(62088),a=r(1580),l=r(53368),c=r(12552),d=r(18996),u=r(88204),p=r(56156);let y=i=class extends n.am{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new i((0,o.ct)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,s._)([(0,a.qq)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,s._)([(0,a.qq)({type:u.U,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,s._)([(0,a.qq)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,s._)([(0,a.qq)({type:Date})],y.prototype,"historicMoment",void 0),(0,s._)([(0,d.G)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,s._)([(0,a.qq)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,s._)([(0,a.qq)({type:[Number],json:{write:!0}})],y.prototype,"objectIds",void 0),(0,s._)([(0,a.qq)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,s._)([(0,a.qq)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,s._)([(0,a.qq)({type:p.c,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,s._)([(0,a.qq)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,s._)([(0,a.qq)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,s._)([(0,d.G)("start"),(0,d.G)("num")],y.prototype,"writeStart",null),(0,s._)([(0,a.qq)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,s._)([(0,a.qq)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,s._)([(0,a.qq)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=i=(0,s._)([(0,c.c)("esri.rest.support.RelationshipQuery")],y),y.from=(0,l.ey)(y);const h=y},73184:(e,t,r)=>{r.d(t,{aG:()=>s,eY:()=>l,k5:()=>n,oK:()=>c,sy:()=>a});var i=r(2600);const s=(0,r(63564).Mr)(),n=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;const s=new URL(e).host;let o=n.get(s);if(!o){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.c)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,i=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(const[e,o]of a)if(o.name===t){const t=!o.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(772).then(r.bind(r,70772)),r.e(2460).then(r.bind(r,22460))]);return t(n,e,new i({sessionId:s,moment:o.moment}))}return t}return!0}function c(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[712,8648],{13452:(e,t,r)=>{r.d(t,{c:()=>p});var i=r(41948),s=r(3856),n=r(40504),o=r(94360),a=r(1580),l=(r(9456),r(66360),r(72052),r(9968)),c=r(12552),d=r(4736);let u=class extends((0,s.q)(n.am)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.QJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.G)(d.e,{nonNullable:!0})],u.prototype,"unit",void 0),(0,i._)([(0,a.qq)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,i._)([(0,c.c)("esri.TimeInterval")],u);const p=u},22156:(e,t,r)=>{r.d(t,{MR:()=>o,qm:()=>a});var i=r(41948),s=r(12552);let n=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,s.c)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,i._)([(0,s.c)("esri.core.NumericIdentifiable")],t),t};let l=class extends(o(class{})){};l=(0,i._)([(0,s.c)("esri.core.Identifiable")],l)},77380:(e,t,r)=>{r.d(t,{I:()=>f,Y:()=>i});const i={Base64:0,Hex:1,String:2,Raw:3},s=8,n=(1<<s)-1;function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,i=e.length*s;r<i;r+=s)t[r>>5]|=(e.charCodeAt(r/s)&n)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=s)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function c(e,t,r,i,s,n){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(i,n)),s),r)}function d(e,t,r,i,s,n,o){return c(t&r|~t&i,e,t,s,n,o)}function u(e,t,r,i,s,n,o){return c(t&i|r&~i,e,t,s,n,o)}function p(e,t,r,i,s,n,o){return c(t^r^i,e,t,s,n,o)}function y(e,t,r,i,s,n,o){return c(r^(t|~i),e,t,s,n,o)}function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,s=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,c=s,h=n;r=d(r,i,s,n,e[t],7,-680876936),n=d(n,r,i,s,e[t+1],12,-389564586),s=d(s,n,r,i,e[t+2],17,606105819),i=d(i,s,n,r,e[t+3],22,-1044525330),r=d(r,i,s,n,e[t+4],7,-176418897),n=d(n,r,i,s,e[t+5],12,1200080426),s=d(s,n,r,i,e[t+6],17,-1473231341),i=d(i,s,n,r,e[t+7],22,-45705983),r=d(r,i,s,n,e[t+8],7,1770035416),n=d(n,r,i,s,e[t+9],12,-1958414417),s=d(s,n,r,i,e[t+10],17,-42063),i=d(i,s,n,r,e[t+11],22,-1990404162),r=d(r,i,s,n,e[t+12],7,1804603682),n=d(n,r,i,s,e[t+13],12,-40341101),s=d(s,n,r,i,e[t+14],17,-1502002290),i=d(i,s,n,r,e[t+15],22,1236535329),r=u(r,i,s,n,e[t+1],5,-165796510),n=u(n,r,i,s,e[t+6],9,-1069501632),s=u(s,n,r,i,e[t+11],14,643717713),i=u(i,s,n,r,e[t],20,-373897302),r=u(r,i,s,n,e[t+5],5,-701558691),n=u(n,r,i,s,e[t+10],9,38016083),s=u(s,n,r,i,e[t+15],14,-660478335),i=u(i,s,n,r,e[t+4],20,-405537848),r=u(r,i,s,n,e[t+9],5,568446438),n=u(n,r,i,s,e[t+14],9,-1019803690),s=u(s,n,r,i,e[t+3],14,-187363961),i=u(i,s,n,r,e[t+8],20,1163531501),r=u(r,i,s,n,e[t+13],5,-1444681467),n=u(n,r,i,s,e[t+2],9,-51403784),s=u(s,n,r,i,e[t+7],14,1735328473),i=u(i,s,n,r,e[t+12],20,-1926607734),r=p(r,i,s,n,e[t+5],4,-378558),n=p(n,r,i,s,e[t+8],11,-2022574463),s=p(s,n,r,i,e[t+11],16,1839030562),i=p(i,s,n,r,e[t+14],23,-35309556),r=p(r,i,s,n,e[t+1],4,-1530992060),n=p(n,r,i,s,e[t+4],11,1272893353),s=p(s,n,r,i,e[t+7],16,-155497632),i=p(i,s,n,r,e[t+10],23,-1094730640),r=p(r,i,s,n,e[t+13],4,681279174),n=p(n,r,i,s,e[t],11,-358537222),s=p(s,n,r,i,e[t+3],16,-722521979),i=p(i,s,n,r,e[t+6],23,76029189),r=p(r,i,s,n,e[t+9],4,-640364487),n=p(n,r,i,s,e[t+12],11,-421815835),s=p(s,n,r,i,e[t+15],16,530742520),i=p(i,s,n,r,e[t+2],23,-995338651),r=y(r,i,s,n,e[t],6,-198630844),n=y(n,r,i,s,e[t+7],10,1126891415),s=y(s,n,r,i,e[t+14],15,-1416354905),i=y(i,s,n,r,e[t+5],21,-57434055),r=y(r,i,s,n,e[t+12],6,1700485571),n=y(n,r,i,s,e[t+3],10,-1894986606),s=y(s,n,r,i,e[t+10],15,-1051523),i=y(i,s,n,r,e[t+1],21,-2054922799),r=y(r,i,s,n,e[t+8],6,1873313359),n=y(n,r,i,s,e[t+15],10,-30611744),s=y(s,n,r,i,e[t+6],15,-1560198380),i=y(i,s,n,r,e[t+13],21,1309151649),r=y(r,i,s,n,e[t+4],6,-145523070),n=y(n,r,i,s,e[t+11],10,-1120210379),s=y(s,n,r,i,e[t+2],15,718787259),i=y(i,s,n,r,e[t+9],21,-343485551),r=o(r,a),i=o(i,l),s=o(s,c),n=o(n,h)}return[r,i,s,n]}function f(e,t=i.Hex){const r=t||i.Base64,n=h(a(e),e.length*s);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return l(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(n)}}},90636:(e,t,r)=>{r.d(t,{O:()=>y});var i=r(20744),s=r(77380),n=r(4644),o=r(28176),a=r(63564),l=r(44296),c=r(71448),d=r(1580),u=r(73960),p=r(91952);function y(e){const t=e?.origins??[void 0];return(r,i)=>{const s=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.EF)(t,r);return{type:String,read:(e,t,r)=>{const s=(0,p.r)(e,t,r);return i.type===String?s:"function"==typeof i.type?new i.type({url:s}):void 0},write:{writer(t,s,a,l){if(!l?.resources)return"string"==typeof t?void(s[a]=(0,p.t)(t,l)):void(s[a]=t.write({},l));const d=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),y=(0,p.t)(d,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},p.M.NO),g=i.type!==String&&(!(0,n.w)(this)||l?.origin&&this.originIdOf(r)>(0,c.CQ)(l.origin)),w={object:this,propertyName:r,value:t,targetUrl:y,dest:s,targetPropertyName:a,context:l,params:e};l?.portalItem&&y&&!(0,o.ic)(y)?g&&e?.contentAddressed?h(w):g?function(e){const{context:t,targetUrl:r,params:i,value:s,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),c=m(s,r,t),d=(0,u.e)(c),p=(0,o.wt)(l.path),y=i?.compress??!1;d===p?(t.resources&&f({...e,resource:l,content:c,compress:y,updates:t.resources.toUpdate}),n[a]=r):h(e)}(w):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(w):l?.portalItem&&(null==y||null!=(0,p.i)(y)||(0,o.ue)(y)||g)?h(w):s[a]=y}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,d.aq)(r,e,i);for(const e in s)t[e]=s[e]}}}function h(e){const{targetUrl:t,params:r,value:n,context:l,dest:c,targetPropertyName:d}=e;if(!l.portalItem)return;const y=(0,p.p)(t),h=m(n,t,l);if(r?.contentAddressed&&"json"!==h.type)return void l.messages?.push(new i.c("persistable:contentAddressingUnsupported",`Property "${d}" is trying to serializing a resource with content of type ${h.type} with content addressing. Content addressing is only supported for json resources.`,{content:h}));const g=r?.contentAddressed&&"json"===h.type?(0,s.I)(h.jsonString):y?.filename??(0,a.g1)(),w=(0,o.kn)(r?.prefix??y?.prefix,g),v=`${w}.${(0,u.e)(h)}`;if(r?.contentAddressed&&l.resources&&"json"===h.type){const e=l.resources.toKeep.find((({resource:e})=>e.path===v))??l.resources.toAdd.find((({resource:e})=>e.path===v));if(e)return void(c[d]=e.resource.itemRelativeUrl)}const b=l.portalItem.resourceFromPath(v);(0,o.ue)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.SW)(t).then((e=>{b.path=`${w}.${(0,u.e)({type:"blob",blob:e})}`,c[d]=b.itemRelativeUrl})).catch((()=>{})));const q=r?.compress??!1;l.resources&&f({...e,resource:b,content:h,compress:q,updates:l.resources.toAdd}),c[d]=b.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function m(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},63564:(e,t,r)=>{r.d(t,{Mr:()=>o,cf:()=>n,g1:()=>s});const i="randomUUID"in crypto;function s(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const 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`{${s().toUpperCase()}}`}function o(){return`{${s()}}`}},13819:(e,t,r)=>{r.d(t,{c:()=>v});var i,s=r(41948),n=r(92400),o=r(14628),a=r(40504),l=r(24296),c=r(69504),d=r(1580),u=(r(9456),r(66360),r(33600)),p=r(12552),y=r(18996);const h=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=h.jsonValues.slice();(0,n.sH)(f,"orthometric");const m=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends a.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new c.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return m.read(e)||(r?.messages&&r.messages.push(w(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.oG)(e)||m.read(e)||(r?.messages&&r.messages.push(w(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l._2)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function w(e,t){return new c.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,d.qq)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,s._)([(0,y.G)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,s._)([(0,u.E)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,s._)([(0,d.qq)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:m.write}}}})],g.prototype,"heightUnit",void 0),(0,s._)([(0,u.E)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,s._)([(0,u.E)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,s._)([(0,d.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,s._)([(0,u.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,s._)([(0,p.c)("esri.geometry.HeightModelInfo")],g);const v=g},81436:(e,t,r)=>{r.d(t,{c:()=>v});var i=r(41948),s=(r(60708),r(2600)),n=r(20744),o=r(77860),a=r(22156),l=r(95800),c=r(66360),d=r(10860),u=r(28176),p=r(1580),y=(r(9456),r(72052),r(12552)),h=r(6220),f=r(95247),m=r(56156);let g=0,w=class extends(o.c.EventedMixin((0,a.MR)(l.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.c(-180,-90,180,90,m.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r?.id||"unset",s=r&&r.portal&&r.portal.url||h.default.portalUrl;throw c.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,d.mA)(e)||c.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,u.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,p.qq)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,i._)([(0,p.qq)({type:f.c})],w.prototype,"fullExtent",void 0),(0,i._)([(0,p.qq)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,i._)([(0,p.qq)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,i._)([(0,p.qq)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,i._)([(0,p.qq)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,i._)([(0,p.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,i._)([(0,p.qq)({clonable:!1})],w.prototype,"parent",void 0),(0,i._)([(0,p.qq)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,i._)([(0,p.qq)({type:Boolean,readOnly:!0})],w.prototype,"persistenceEnabled",void 0),(0,i._)([(0,p.qq)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,i._)([(0,p.qq)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,i._)([(0,p.qq)({type:m.c})],w.prototype,"spatialReference",void 0),(0,i._)([(0,p.qq)({type:String})],w.prototype,"title",void 0),(0,i._)([(0,p.qq)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,i._)([(0,p.qq)()],w.prototype,"url",void 0),(0,i._)([(0,p.qq)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,i._)([(0,y.c)("esri.layers.Layer")],w);const v=w},3688:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Fe});var i=r(41948),s=r(6444),n=r(82692),o=(r(99704),r(73868),r(90200),r(12836),r(63718),r(2360),r(64624),r(24948),r(70236),r(37284)),a=r(2600),l=r(3856),c=r(2952),d=r(20744),u=r(66360),p=r(26496),y=r(10860),h=r(57896),f=r(28176),m=r(1580),g=(r(9456),r(72052),r(20916)),w=r(33600),v=r(12552),b=r(71448),q=r(39780),I=r(67776),_=r(81436),S=r(4040),F=r(38724),x=r(16660),j=r(28584),E=r(6576),L=r(66576),O=r(98768),A=r(3116),R=r(87072),T=r(6828),U=r(48212),P=r(50420),M=r(36088),D=r(21488),C=r(70388),N=r(66464),G=r(17968),$=r(81732),k=r(16424),V=r(564),H=r(44104),Q=r(4048),J=r(6168),W=r(34880),B=r(24144),K=r(83928),z=r(40504);let Z=class extends z.am{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i._)([(0,m.qq)({type:String,json:{read:!0,write:!0}})],Z.prototype,"name",void 0),(0,i._)([(0,m.qq)({type:String,json:{read:!0,write:!0}})],Z.prototype,"field",void 0),(0,i._)([(0,m.qq)({type:[Number],json:{read:!0,write:!0}})],Z.prototype,"currentRangeExtent",void 0),(0,i._)([(0,m.qq)({type:[Number],json:{read:!0,write:!0}})],Z.prototype,"fullRangeExtent",void 0),(0,i._)([(0,m.qq)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:!0}})],Z.prototype,"type",void 0),Z=(0,i._)([(0,v.c)("esri.layers.support.RangeInfo")],Z);var Y,X=r(62088),ee=r(90636),te=r(69504),re=r(7488),ie=r(60074);let se=Y=class extends((0,z.Ib)(c.c.ofType(re.c))){constructor(e){super(e)}clone(){return new Y(this.items.map((e=>e.clone())))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map((r=>{if(!t.equals(r.spatialReference)){if(!(0,ie.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages&&e.messages.push(new te.c("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new re.c;(0,ie.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i})).filter((e=>null!=e)):(e?.messages&&e.messages.push(new te.c("scenefilter:unsupported","Writing Scene filters without context layer is not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),this.toArray().map((t=>t.toJSON(e))))}static fromJSON(e,t){const r=new Y;return e.forEach((e=>r.add(re.c.fromJSON(e,t)))),r}};se=Y=(0,i._)([(0,v.c)("esri.layers.support.PolygonCollection")],se);const ne=se;var oe,ae=r(91952);let le=oe=class extends z.am{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new ne,this._geometriesSource=null}initialize(){this.addHandles((0,h.on)((()=>this.geometries),"after-changes",(()=>this.geometries=this.geometries),h.du))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=ne.fromJSON(e,r):this._geometriesSource={url:(0,ae.f)(e,r),context:r}}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,s=await(0,a.c)(r,{responseType:"json",signal:t?.signal}),n=e.toJSON(),o=s.data.map((e=>({...e,spatialReference:n})));this.geometries=ne.fromJSON(o,i),this._geometriesSource=null}clone(){const e=new oe({geometries:(0,X.ct)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i._)([(0,m.qq)({type:["disjoint","contains"],nonNullable:!0,json:{write:!0}})],le.prototype,"spatialRelationship",void 0),(0,i._)([(0,m.qq)({type:ne,nonNullable:!0,json:{write:!0}}),(0,ee.O)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],le.prototype,"geometries",void 0),(0,i._)([(0,w.E)(["web-scene","portal-item"],"geometries")],le.prototype,"readGeometries",null),le=oe=(0,i._)([(0,v.c)("esri.layers.support.SceneFilter")],le);const ce=le;var de=r(97824),ue=r(95776),pe=r(69204),ye=r(56672),he=r(65548);async function fe(e){const t=[];for(const r of e)r.name.toLowerCase().endsWith(".zip")?t.push(me(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}async function me(e){const{BlobReader:t,ZipReader:i,BlobWriter:s}=await Promise.all([r.e(4831),r.e(9752)]).then(r.bind(r,79752)),n=[],o=new i(new t(e));return(await o.getEntries()).forEach((e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new s,r=e.getData?.(t).then((t=>new File([t],e.filename)));r&&n.push(r)})),Promise.all(n)}var ge=r(74776),we=r(63680),ve=r(9332);const be=new Set(["3DObject","Point"]),qe=(0,$.l)();let Ie=class extends((0,T.c)((0,E.CE)((0,R.G6)((0,x.u)((0,L.Y)((0,O.K)((0,A.I)((0,p.U)((0,j.G)((0,F.C)((0,l.q)(_.c)))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new c.c,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new k.c(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:H.yq.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,C.ig)(this.associatedLayer)}get geometryType(){return Se[this.profile]||"mesh"}set renderer(e){(0,V.Gi)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:M.u;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:n,supportsGeometryUpdate:o,supportsReturnServiceEditsInSourceSpatialReference:a},data:{supportsZ:l,supportsM:c,isVersioned:d,supportsAttachment:u},operations:{supportsEditing:p,supportsAdd:y,supportsUpdate:h,supportsDelete:f,supportsQuery:m,supportsQueryAttachments:g,supportsAsyncConvert3D:w}}=e,v=e.operations.supportsChangeTracking,b=!!this.associatedLayer?.infoFor3D&&(0,ye.g1)();return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:a,supportsRollbackOnFailure:s,supportsGeometryUpdate:b&&o,supportsUploadWithItemId:n},data:{supportsAttachment:u,supportsZ:l,supportsM:c,isVersioned:d},operations:{supportsQuery:m,supportsQueryAttachments:g,supportsEditing:p&&v,supportsAdd:b&&y&&v,supportsDelete:b&&f&&v,supportsUpdate:h&&v,supportsAsyncConvert3D:w}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e))),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e))),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&_e[r]?_e[r]:(u.c.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=null!=e?e.signal:null;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.CE),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await(0,de.M)(this,{origin:"service"},t),(0,V.Gi)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){u.c.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new ue.c;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e}))}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new d.c("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new d.c("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,V.k7)(this.fieldsIndex,await(0,we.W_)(this,(0,we.M$)(this)));return(0,ge.cx)(this.parsedUrl.path,this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new d.c("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new s.c;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryAttachments(e,t)))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(u.c.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,he.Ap)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new d.c("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new d.c("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some((t=>t.name===e))}async queryCachedStatistics(e,t){if(await this.load(t),!this.statisticsInfo)throw new d.c("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new d.c("scenelayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.statisticsInfo)if(e.name===r.name){const r=(0,f.kn)(this.parsedUrl.path,e.href);return(0,a.c)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new d.c("scenelayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(R.UJ.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(R.UJ.SAVE,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(387).then(r.bind(r,62768));let s=t;await this.load();const n=this.associatedLayer;if(!n)throw new d.c(`${this.type}-layer:not-editable`,"Service is not editable");await n.load();const{globalIdField:o}=n,a=!!n.infoFor3D,l=s?.globalIdUsed??!0;if(a&&null==o)throw new d.c(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(a&&!l)throw new d.c(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,U.Wq)(n.url)&&a&&null!=e.deleteFeatures&&null!=o&&(s={...s,globalIdToObjectId:await(0,C.wl)(n,e.deleteFeatures,o)}),i(this,n.source,e,s)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new d.c(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}on(e,t){return super.on(e,t)}async convertMesh(e,t){const r=e=>{throw u.c.getLogger(this).error(".convertMesh()",e.message),e};await this.load(),this.infoFor3D||r(new d.c("invalid:layer","SceneLayer has no capability for mesh conversion"));const i=await this.extractAndFilterFiles(e),s=i.reduce(((e,t)=>(0,Q.kD)(this.infoFor3D,t)?e+1:e),0);0===s&&r(new S.Su),s>1&&r(new S.Ev);const n=this.spatialReference,o=t?.location??new I.c({x:0,y:0,z:0,spatialReference:n}),a=o.spatialReference.isGeographic?"local":"georeferenced",l=q.c.createWithExternalSource(o,i,{vertexSpace:a}),[c]=await this.uploadAssets([l],t);return c}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;return t?(await fe(e)).filter((e=>(0,Q.sz)(t,e))):e}validateLayer(e){if(e.layerType&&!be.has(e.layerType))throw new d.c("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new d.c("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new d.c("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new d.c("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new d.c("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new d.c("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!(!this.attributeStorageInfo||!this.attributeStorageInfo.some((t=>t.name===e.name))),r=!!this.associatedLayer?.fields?.some((t=>t&&e.name===t.name)),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPopupOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled"],t=(0,g.m6)(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),n=this.associatedLayer.originIdOf(i);s<n&&(n===b.sT.SERVICE||n===b.sT.PORTAL_ITEM)&&t.setAtOrigin(i,this.associatedLayer[i],n)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.editingInfo?.lastEditDate,t=this.associatedLayer?.serverGens,r=this.associatedLayer?.getAtOrigin("fullExtent","service");(0,ye.g1)()&&null!=this.associatedLayer?.infoFor3D&&r&&(0,U.Wq)(this.associatedLayer?.url)&&e&&this.serviceUpdateTimeStamp?.lastUpdate!==e.getTime()&&(this.serviceUpdateTimeStamp||t?.minServerGen!==t?.serverGen)&&(0,g.m6)(this).setAtOrigin("fullExtent",r.clone(),b.sT.SERVICE)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,P.S)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await K.q.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,y.mA)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){await(0,h.Eq)((()=>this.popupEnabled&&null!=this.popupTemplate));const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?u.c.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):u.c.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${e}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,pe.A$)(u.c.getLogger(this),(0,pe.ay)("Mesh scene layers","relative-to-scene",e)),(0,pe.A$)(u.c.getLogger(this),(0,pe.W8)("Scene layers",e))}};(0,i._)([(0,m.qq)({types:{key:"type",base:N.E,typeMap:{selection:G.c}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],Ie.prototype,"featureReduction",void 0),(0,i._)([(0,m.qq)({type:[Z],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],Ie.prototype,"rangeInfos",void 0),(0,i._)([(0,m.qq)({json:{read:!1}})],Ie.prototype,"associatedLayer",void 0),(0,i._)([(0,m.qq)({type:["show","hide"]})],Ie.prototype,"listMode",void 0),(0,i._)([(0,m.qq)({type:["ArcGISSceneServiceLayer"]})],Ie.prototype,"operationalLayerType",void 0),(0,i._)([(0,m.qq)({json:{read:!1},readOnly:!0})],Ie.prototype,"type",void 0),(0,i._)([(0,m.qq)({...qe.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ie.prototype,"fields",void 0),(0,i._)([(0,m.qq)()],Ie.prototype,"types",null),(0,i._)([(0,m.qq)()],Ie.prototype,"typeIdField",null),(0,i._)([(0,m.qq)()],Ie.prototype,"templates",null),(0,i._)([(0,m.qq)()],Ie.prototype,"formTemplate",null),(0,i._)([(0,m.qq)({readOnly:!0,clonable:!1})],Ie.prototype,"fieldsIndex",null),(0,i._)([(0,m.qq)({type:B.c,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Ie.prototype,"floorInfo",void 0),(0,i._)([(0,m.qq)(qe.outFields)],Ie.prototype,"outFields",void 0),(0,i._)([(0,m.qq)({type:H.yq,readOnly:!0,json:{read:!1}})],Ie.prototype,"nodePages",void 0),(0,i._)([(0,w.E)("service","nodePages",["nodePages","pointNodePages"])],Ie.prototype,"readNodePages",null),(0,i._)([(0,m.qq)({type:[H.a],readOnly:!0})],Ie.prototype,"materialDefinitions",void 0),(0,i._)([(0,m.qq)({type:[H.G4],readOnly:!0})],Ie.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,m.qq)({type:[H.iK],readOnly:!0})],Ie.prototype,"geometryDefinitions",void 0),(0,i._)([(0,m.qq)({readOnly:!0})],Ie.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,m.qq)({readOnly:!0})],Ie.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,m.qq)({readOnly:!0})],Ie.prototype,"statisticsInfo",void 0),(0,i._)([(0,m.qq)({type:c.c.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Ie.prototype,"excludeObjectIds",void 0),(0,i._)([(0,m.qq)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Ie.prototype,"definitionExpression",void 0),(0,i._)([(0,m.qq)({type:ce,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Ie.prototype,"filter",void 0),(0,i._)([(0,m.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Ie.prototype,"path",void 0),(0,i._)([(0,m.qq)(D.Kg)],Ie.prototype,"elevationInfo",null),(0,i._)([(0,m.qq)({readOnly:!0,json:{read:!1}})],Ie.prototype,"effectiveCapabilities",null),(0,i._)([(0,m.qq)({readOnly:!0})],Ie.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,m.qq)({type:String})],Ie.prototype,"geometryType",null),(0,i._)([(0,m.qq)(D.Wu)],Ie.prototype,"labelsVisible",void 0),(0,i._)([(0,m.qq)({type:[J.c],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:W.E},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:W.E},write:!0}})],Ie.prototype,"labelingInfo",void 0),(0,i._)([(0,m.qq)(D.Uj)],Ie.prototype,"legendEnabled",void 0),(0,i._)([(0,m.qq)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,ve.u)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Ie.prototype,"opacity",void 0),(0,i._)([(0,m.qq)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ie.prototype,"priority",void 0),(0,i._)([(0,m.qq)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Ie.prototype,"semantic",void 0),(0,i._)([(0,m.qq)({types:o.Q,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Ie.prototype,"renderer",null),(0,i._)([(0,m.qq)({json:{read:!1}})],Ie.prototype,"cachedDrawingInfo",void 0),(0,i._)([(0,w.E)("service","cachedDrawingInfo")],Ie.prototype,"readCachedDrawingInfo",null),(0,i._)([(0,m.qq)({readOnly:!0,json:{read:!1}})],Ie.prototype,"capabilities",null),(0,i._)([(0,m.qq)({type:Boolean,json:{read:!1}})],Ie.prototype,"editingEnabled",null),(0,i._)([(0,m.qq)({readOnly:!0,json:{write:!1,read:!1}})],Ie.prototype,"infoFor3D",null),(0,i._)([(0,m.qq)({readOnly:!0,json:{write:!1,read:!1}})],Ie.prototype,"relationships",null),(0,i._)([(0,m.qq)(D.Ou)],Ie.prototype,"popupEnabled",void 0),(0,i._)([(0,m.qq)({type:n.c,json:{name:"popupInfo",write:!0}})],Ie.prototype,"popupTemplate",void 0),(0,i._)([(0,m.qq)({readOnly:!0,json:{read:!1}})],Ie.prototype,"defaultPopupTemplate",null),(0,i._)([(0,m.qq)({type:String,json:{read:!1}})],Ie.prototype,"objectIdField",void 0),(0,i._)([(0,w.E)("service","objectIdField",["objectIdField","fields"])],Ie.prototype,"readObjectIdField",null),(0,i._)([(0,m.qq)({type:String,json:{read:!1}})],Ie.prototype,"globalIdField",void 0),(0,i._)([(0,w.E)("service","globalIdField",["globalIdField","fields"])],Ie.prototype,"readGlobalIdField",null),(0,i._)([(0,m.qq)({readOnly:!0,type:String,json:{read:!1}})],Ie.prototype,"displayField",null),(0,i._)([(0,m.qq)({type:String,json:{read:!1}})],Ie.prototype,"profile",void 0),(0,i._)([(0,w.E)("service","profile",["store.profile"])],Ie.prototype,"readProfile",null),(0,i._)([(0,m.qq)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Ie.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,m.qq)(D.Q9)],Ie.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,m.qq)({json:{read:!1,origins:{service:{read:!0}}}})],Ie.prototype,"serviceItemId",void 0),Ie=(0,i._)([(0,v.c)("esri.layers.SceneLayer")],Ie);const _e={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Se={"mesh-pyramids":"mesh",points:"point",lines:"polyline",polygons:"polygon"},Fe=Ie},4040:(e,t,r)=>{r.d(t,{AQ:()=>u,Av:()=>d,Ev:()=>m,KY:()=>o,Qr:()=>l,Su:()=>f,a:()=>a,iq:()=>h,kQ:()=>p,kz:()=>c,q8:()=>y});var i=r(20744);const s="upload-assets",n=()=>new Error;class o extends i.c{constructor(){super(`${s}:unsupported`,"Layer does not support asset uploads.",n())}}class a extends i.c{constructor(){super(`${s}:no-glb-support`,"Layer does not support glb.",n())}}class l extends i.c{constructor(){super(`${s}:no-supported-source`,"No supported external source found",n())}}class c extends i.c{constructor(){super(`${s}:not-base-64`,"Expected gltf data in base64 format after conversion.",n())}}class d extends i.c{constructor(){super(`${s}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",n())}}class u extends i.c{constructor(e,t){super(`${s}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,n())}}class p extends i.c{constructor(e,t){super(`${s}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,n())}}class y extends i.c{constructor(e){super(`${s}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,n())}}class h extends i.c{constructor(){super(`${s}:convert3D-failed`,"convert3D failed.")}}class f extends i.c{constructor(){super("invalid-input:no-model","No supported model found")}}class m extends i.c{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},6576:(e,t,r)=>{r.d(t,{CE:()=>m,iC:()=>y,mK:()=>d});var i=r(41948),s=r(77860),n=r(62088),o=r(10860),a=(r(66360),r(9456),r(20744),r(12552)),l=r(73184);const c=new s.c.EventEmitter;function d(e,t,r=null,i=!1){const s=(0,o.qG)();return i=null==t||i,c.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:s.promise}),s}const u="esri.layers.mixins.EditBusLayer",p=Symbol(u);function y(e){return null!=e&&"object"==typeof e&&p in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,r){const i=new URL(e).host,s=l.k5.get(i),n=e=>!e||e===s;return n(t)&&n(r)||t===r}const m=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:s,result:o}=e,a=t===this.url,c=null!=r&&null!=this.layerId&&r===this.layerId,d=h(this),u=h(this)&&f(t,i,this.gdbVersion);if(!a||d&&!u||!c&&!s)return;const p=o.then((e=>{if(c&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.ct)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:r,updates:i,deletes:s}=t.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:r?r.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:s?s.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.ct)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.ct)(e.historicMoment)};return this.emit("edits",o),o}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.ct)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.ct)(e.historicMoment)}})).then((e=>("historicMoment"in this&&this.historicMoment!==e.historicMoment&&(0,l.oK)(t,i)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,s=t===this.url,n=h(this),o=h(this)&&f(t,r,this.gdbVersion),a=h(this)&&!f(t,this.gdbVersion,null);s&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then((()=>{this.addHandles(function(e){return c.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return c.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}};return t=p,r=(0,i._)([(0,a.c)(u)],r),r}},3116:(e,t,r)=>{r.d(t,{I:()=>o});var i=r(41948),s=r(1580),n=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,s.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,s.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,s.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},66464:(e,t,r)=>{r.d(t,{E:()=>a});var i=r(41948),s=r(40504),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552));let a=class extends s.am{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,n.qq)({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,o.c)("esri.layers.support.FeatureReduction")],a)},17968:(e,t,r)=>{r.d(t,{c:()=>c});var i,s=r(41948),n=r(1580),o=(r(9456),r(66360),r(72052),r(12552)),a=r(66464);let l=i=class extends a.E{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,s._)([(0,n.qq)({type:["selection"]})],l.prototype,"type",void 0),l=i=(0,s._)([(0,o.c)("esri.layers.support.FeatureReductionSelection")],l);const c=l},99336:(e,t,r)=>{r.d(t,{c:()=>f});var i=r(41948),s=r(25228),n=r(13452),o=r(3856),a=r(40504),l=r(1580),c=(r(9456),r(66360),r(72052),r(33600)),d=r(12552),u=r(18996),p=r(28484);function y(e,t){return n.c.fromJSON({value:e,unit:t})}let h=class extends((0,o.q)(a.am)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new s.c({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,l.qq)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,l.qq)({type:s.c,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,c.E)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,u.G)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,l.qq)({type:n.c,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,c.E)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,u.G)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,l.qq)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,l.qq)((0,p.SM)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,d.c)("esri.layers.support.TimeInfo")],h);const f=h},70388:(e,t,r)=>{r.d(t,{wj:()=>v,cV:()=>I,ig:()=>N,i:()=>$,cJ:()=>T,WC:()=>S,oh:()=>C,s1:()=>F,sD:()=>w,wl:()=>V,yo:()=>R,gx:()=>k,Q1:()=>x,iq:()=>L,YL:()=>E,W2:()=>j,ms:()=>O,UN:()=>A,Y9:()=>U,qY:()=>P,Ce:()=>M,kd:()=>q,Wm:()=>_});var i=r(47620),s=r(17988),n=r(40196),o=r(20744),a=r(14628),l=r(44247),c=r(64408),d=r(95776);async function u(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=p(e));const i=function(e){return p(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),s=e.capabilities.query.supportsPagination;t.start=0,t.num=i;let n=null;for(;;){const o=await e.source.queryFeaturesJSON(t,r);if(null==n?n=o:n.features=n.features.concat(o.features),n.exceededTransferLimit=o.exceededTransferLimit,!s||!o.exceededTransferLimit)break;t.start+=i}return n}function p(e){return e.capabilities.query.supportsMaxRecordCountFactor?d.c.MAX_MAX_RECORD_COUNT_FACTOR:1}var y=r(71068),h=r(64624),f=r(24948),m=r(19212),g=r(18648);const w=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function v(e,t,r,i){const s=await D(e);if(await b(e,t,i),!s.addAttachment)throw new o.c(i,"Layer source does not support addAttachment capability");return s.addAttachment(t,r)}function b(e,t,r){const{attributes:i}=t,{objectIdField:s}=e;return e.capabilities?.data?.supportsAttachment?t?i?s&&i[s]?Promise.resolve():Promise.reject(new o.c(r,`feature is missing the identifying attribute ${s}`)):Promise.reject(new o.c(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.c(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.c(r,"this layer doesn't support attachments"))}async function q(e,t,r,i,s){const n=await D(e);if(await b(e,t,s),!n.updateAttachment)throw new o.c(s,"Layer source does not support updateAttachment capability");return n.updateAttachment(t,r,i)}async function I(e,t,i){const{applyEdits:s}=await r.e(2768).then(r.bind(r,62768)),n=await e.load(),{source:o,globalIdField:a}=n;let l=i;return("feature"===n.type?n.infoFor3D:null)&&null!=t.deleteFeatures&&null!=a&&(l={...l,globalIdToObjectId:await V(e,t.deleteFeatures,a)}),s(n,o,t,i)}async function _(e,t,i){const{uploadAssets:s}=await r.e(2768).then(r.bind(r,62768)),n=await e.load();return s(n,n.source,t,i)}async function S(e,t,r,i){const s=await D(e);if(await b(e,t,i),!s.deleteAttachments)throw new o.c(i,"Layer source does not support deleteAttachments capability");return s.deleteAttachments(t,r)}async function F(e,t,r){const i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new o.c(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function x(e,t,r,i){t=m.c.from(t),await e.load();const s=e.source,n=e.capabilities;if(!n?.data?.supportsAttachment)throw new o.c(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:c,num:d,size:u,start:p,where:y}=t;if(!n?.operations?.supportsQueryAttachments&&(a?.length>0||c?.length>0||u?.length>0||d||p||y))throw new o.c(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||c?.length||y))throw new o.c(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!s.queryAttachments)throw new o.c(i,"Layer source does not support queryAttachments capability",t);return s.queryAttachments(t)}async function j(e,t,r,i){const s=await D(e);if(!s.queryObjectIds)throw new o.c(i,"Layer source does not support queryObjectIds capability");return s.queryObjectIds(d.c.from(t)??e.createQuery(),r)}async function E(e,t,r,i){const s=await D(e);if(!s.queryFeatureCount)throw new o.c(i,"Layer source does not support queryFeatureCount capability");return s.queryFeatureCount(d.c.from(t)??e.createQuery(),r)}async function L(e,t,r,i){const s=await D(e);if(!s.queryExtent)throw new o.c(i,"Layer source does not support queryExtent capability");return s.queryExtent(d.c.from(t)??e.createQuery(),r)}async function O(e,t,r,i){const s=await D(e);if(!s.queryRelatedFeatures)throw new o.c(i,"Layer source does not support queryRelatedFeatures capability");return s.queryRelatedFeatures(g.default.from(t),r)}async function A(e,t,r,i){const s=await D(e);if(!s.queryRelatedFeaturesCount)throw new o.c(i,"Layer source does not support queryRelatedFeaturesCount capability");return s.queryRelatedFeaturesCount(g.default.from(t),r)}async function R(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:i}=await t.refresh();if(null!=i&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,l.u)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function T(e){const t=new d.c,r=e.capabilities?.data,i=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,i&&(t.compactGeometryEnabled=i.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=i.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),r.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:s,timeExtent:n}=e;return t.timeExtent=null!=s&&null!=n?n.offset(-s.value,s.unit):n||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function U(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function P(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function M(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}async function D(e){return(await e.load()).source}async function C(e,t,r){const s=e.parsedUrl?.path;s&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const s=await(0,y.mK)(e,t);s&&(r=await i.id.checkSignInStatus(`${s}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(s,r)}function N(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const G=(0,c.g)({types:s.IX});function $(e,t){if(e.defaultSymbol)return e.types?.length?new f.c({defaultSymbol:G(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:G(e.symbol,e,t)})))}):new h.c({symbol:G(e.defaultSymbol,e,t)})}function k(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function V(e,t,r){if(null==t)return null;const i=[],{objectIdField:s}=e;if(t.forEach((e=>{let t=null;if("attributes"in e){const{attributes:i}=e;t={globalId:i[r],objectId:null!=i[s]&&-1!==i[s]?i[s]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null!=t.objectId&&-1!==t.objectId||i.push(t.globalId))})),0===i.length)return null;const o=e.createQuery();o.where=i.map((e=>`${r}='${e}'`)).join(" OR "),o.returnGeometry=!1,o.outFields=[s,r],o.cacheHint=!1;const a=await(0,n.SO)(u(e,o));if(!a.ok)return null;const l=new Map,c=a.value.features;for(const e of c){const t=e.attributes[r],i=e.attributes[s];null!=t&&null!=i&&-1!==i&&l.set(t,i)}return l}},81732:(e,t,r)=>{r.d(t,{l:()=>l});var i=r(9456),s=r(66360),n=r(600),o=r(16424),a=r(564);function l(){return{fields:{type:[n.c],value:null,set:function(e){if(e&&(0,i.c)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");s.c.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.c.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||s.c.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.OO)(this.fieldsIndex,e)}}}}},4048:(e,t,r)=>{r.d(t,{If:()=>a,K0:()=>c,Mn:()=>h,kD:()=>n,me:()=>o,sz:()=>s,w$:()=>l});const i=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=u(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const r=c(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function o(e,t){return p(function(e,t){const r=e.toLowerCase();return d(t).find((e=>y(e)===r))}(e,t))}function a(e,t){return p(u(e,t))}function l(e,t){return y(function(e,t){return d(t).find((t=>p(t)===e))}(e,t))}function c(e,t){return a(e.name,t)??o(e.type,t)}function d(e){return[...i,...e]}function u(e,t){const r=e.toLowerCase();return d(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function p(e){return e?.[0]}function y(e){return e?.[1].toLowerCase()}function h(e){return e.tables?.find((e=>"assetMaps"===e.role))}},73960:(e,t,r)=>{r.d(t,{e:()=>s});var i=r(28176);function s(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.wt)(e);return l[t]||o}(e.url)}(e)]||a}const n={},o="text/plain",a=n[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},4736:(e,t,r)=>{r.d(t,{e:()=>i});const i=(0,r(14628).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},97824:(e,t,r)=>{r.d(t,{M:()=>o});var i=r(40196),s=r(10860),n=r(69504);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.aG)(o.populateFromStyle());if((0,s.wp)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new n.c("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},18648:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var i,s=r(41948),n=(r(60708),r(40504)),o=r(62088),a=r(1580),l=r(53368),c=r(12552),d=r(18996),u=r(88204),p=r(56156);let y=i=class extends n.am{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new i((0,o.ct)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,s._)([(0,a.qq)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,s._)([(0,a.qq)({type:u.U,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,s._)([(0,a.qq)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,s._)([(0,a.qq)({type:Date})],y.prototype,"historicMoment",void 0),(0,s._)([(0,d.G)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,s._)([(0,a.qq)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,s._)([(0,a.qq)({type:[Number],json:{write:!0}})],y.prototype,"objectIds",void 0),(0,s._)([(0,a.qq)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,s._)([(0,a.qq)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,s._)([(0,a.qq)({type:p.c,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,s._)([(0,a.qq)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,s._)([(0,a.qq)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,s._)([(0,d.G)("start"),(0,d.G)("num")],y.prototype,"writeStart",null),(0,s._)([(0,a.qq)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,s._)([(0,a.qq)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,s._)([(0,a.qq)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=i=(0,s._)([(0,c.c)("esri.rest.support.RelationshipQuery")],y),y.from=(0,l.ey)(y);const h=y},73184:(e,t,r)=>{r.d(t,{aG:()=>s,eY:()=>l,k5:()=>n,oK:()=>c,sy:()=>a});var i=r(2600);const s=(0,r(63564).Mr)(),n=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;const s=new URL(e).host;let o=n.get(s);if(!o){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.c)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,i=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(const[e,o]of a)if(o.name===t){const t=!o.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(772).then(r.bind(r,70772)),r.e(2460).then(r.bind(r,22460))]);return t(n,e,new i({sessionId:s,moment:o.moment}))}return t}return!0}function c(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4092],{44728:(e,t,r)=>{r.d(t,{c:()=>d});var n,l,o=r(46988),i=r(53648),s=r(53368);function a(e){return(0,i.qk)((0,s.Wu)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function c(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class p{static blendColors(e,t,r,n=new p){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return p.fromArray((0,o.ec)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),l=parseInt(e.substring(3,4),16),o=5===e.length?15:parseInt(e.substring(4),16);return p.fromArray([r+16*r,n+16*n,l+16*l,(o+16*o)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),l=parseInt(e.substring(5,7),16),o=7===e.length?255:parseInt(e.substring(7),16);return p.fromArray([r,n,l,o/255],t)}default:return null}}static fromArray(e,t=new p){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,o.kv)(e)?(0,o.SQ)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return null!=e?new p([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,l=4===r||8===r,o=`#${c(this.r,n)}${c(this.g,n)}${c(this.b,n)}${l?c(Math.round(255*this.a),n):""}`;return t?o.toUpperCase():o}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=p.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),n=a(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,n,a(255*this.a)]:[t,r,n]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}p.prototype.declaredClass="esri.Color",(l=(n=p||(p={})).AlphaMode||(n.AlphaMode={}))[l.ALWAYS=0]="ALWAYS",l[l.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const d=p},46988:(e,t,r)=>{r.d(t,{SQ:()=>o,ec:()=>a,kv:()=>l,uO:()=>i,yU:()=>u});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function l(e){return!!n[e]||!!n[e.toLowerCase()]}function o(e){return n[e]??n[e.toLowerCase()]}function i(e){return[...o(e)]}function s(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,n=1){const l=(e%360+360)%360/360,o=r<=.5?r*(t+1):r+t-r*t,i=2*r-o;return[Math.round(255*s(i,o,l+1/3)),Math.round(255*s(i,o,l)),Math.round(255*s(i,o,l-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,l=t?1:17,o=t?9===e.length:5===e.length;let i=Number("0x"+e.substr(1));if(isNaN(i))return null;const s=[0,0,0,1];let a;return o&&(a=i&n,i>>=r,s[3]=l*a/255),a=i&n,i>>=r,s[2]=l*a,a=i&n,i>>=r,s[1]=l*a,a=i&n,i>>=r,s[0]=l*a,s}},9968:(e,t,r)=>{r.d(t,{G:()=>o});var n=r(14628),l=r(1580);function o(e,t={}){const r=e instanceof n.O?e:new n.O(e,t),o={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(o.readOnly=!!t.readOnly),void 0!==t?.default&&(o.json.default=t.default),void 0!==t?.name&&(o.json.name=t.name),void 0!==t?.nonNullable&&(o.nonNullable=t.nonNullable),(0,l.qq)(o)}},62880:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>l});var n=r(38380);function l(e,t,r,l,o,i,s=1){const a=(0,n.Mx)(t,o,n.kD);if(null==a)return!1;if(a===n.ek){if(e===l&&r===i)return!0;const t=r+3*s;for(let n=r,o=i;n<t;n++,o++)l[o]=e[n];return!0}const u=r+3*s;for(let t=r,n=i;t<u;t+=3,n+=3)a(e,t,l,n);return!0}},38380:(e,t,r)=>{r.d(t,{o3:()=>c,Se:()=>_,ek:()=>A,mq:()=>q,Mx:()=>C,yn:()=>h,yw:()=>f,kD:()=>G,Wy:()=>I});var n=r(53648),l=r(24296),o=r(22080),i=r(67932);Math.PI;const s=i.ug.radius,a=i.ug.eccentricitySquared,u={a1:s*a,a2:s*a*s*a,a3:s*a*a/2,a4:s*a*s*a*2.5,a5:s*a+s*a*a/2,a6:1-a};i.ug.radius,i.ug.flattening,i.qv.radius,i.qv.flattening,i.Eb.radius,i.Eb.flattening,i.Eb.radius;var c,p=r(60544),d=r(28496);!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",e[e.WGS84=2]="WGS84",e[e.WEB_MERCATOR=3]="WEB_MERCATOR",e[e.WGS84_ECEF=4]="WGS84_ECEF",e[e.CGCS2000=5]="CGCS2000",e[e.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",e[e.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",e[e.GCSMARS2000=8]="GCSMARS2000",e[e.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",e[e.GCSMOON2000=10]="GCSMOON2000",e[e.LON_LAT=11]="LON_LAT",e[e.PLATE_CARREE=12]="PLATE_CARREE"}(c||(c={}));const f={[c.WGS84]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:A,[c.SPHERICAL_ECEF]:N,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:E,[c.PLATE_CARREE]:b,[c.WGS84]:A,[c.WGS84_ECEF]:w},[c.CGCS2000]:{[c.CGCS2000]:A,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:A,[c.SPHERICAL_ECEF]:N,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:b,[c.WGS84]:null,[c.WGS84_ECEF]:w},[c.GCSMARS2000]:{[c.CGCS2000]:null,[c.GCSMARS2000]:A,[c.GCSMOON2000]:null,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:O,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.GCSMOON2000]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:A,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:g,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.WEB_MERCATOR]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:S,[c.WGS84_COMPARABLE_LON_LAT]:S,[c.SPHERICAL_ECEF]:function(e,t,r,n){const l=e[t]/j,o=B-2*Math.atan(Math.exp(-e[t+1]/j)),i=j+e[t+2],s=Math.cos(o)*i;r[n]=Math.cos(l)*s,r[n+1]=Math.sin(l)*s,r[n+2]=Math.sin(o)*i},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:A,[c.PLATE_CARREE]:function(e,t,r,n){S(e,t,r,n),b(r,n,r,n)},[c.WGS84]:S,[c.WGS84_ECEF]:function(e,t,r,n){S(e,t,r,n),w(r,n,r,n)}},[c.WGS84_ECEF]:{[c.CGCS2000]:T,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:T,[c.WGS84_COMPARABLE_LON_LAT]:T,[c.SPHERICAL_ECEF]:function(e,t,r,n){T(e,t,r,n),N(r,n,r,n)},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(e,t,r,n){T(e,t,r,n),E(r,n,r,n)},[c.PLATE_CARREE]:function(e,t,r,n){T(e,t,r,n),b(r,n,r,n)},[c.WGS84]:T,[c.WGS84_ECEF]:A},[c.SPHERICAL_ECEF]:{[c.CGCS2000]:L,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:L,[c.WGS84_COMPARABLE_LON_LAT]:L,[c.SPHERICAL_ECEF]:A,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(e,t,r,n){L(e,t,r,n),E(r,n,r,n)},[c.PLATE_CARREE]:function(e,t,r,n){L(e,t,r,n),b(r,n,r,n)},[c.WGS84]:L,[c.WGS84_ECEF]:function(e,t,r,n){L(e,t,r,n),w(r,n,r,n)}},[c.SPHERICAL_MARS_PCPF]:{[c.CGCS2000]:null,[c.GCSMARS2000]:M,[c.GCSMOON2000]:null,[c.LON_LAT]:M,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:A,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.SPHERICAL_MOON_PCPF]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:P,[c.LON_LAT]:P,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:A,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.UNKNOWN]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:null,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:A,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.LON_LAT]:{[c.CGCS2000]:A,[c.GCSMARS2000]:A,[c.GCSMOON2000]:A,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:A,[c.SPHERICAL_ECEF]:N,[c.SPHERICAL_MARS_PCPF]:O,[c.SPHERICAL_MOON_PCPF]:g,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:E,[c.PLATE_CARREE]:b,[c.WGS84]:A,[c.WGS84_ECEF]:w},[c.WGS84_COMPARABLE_LON_LAT]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:A,[c.SPHERICAL_ECEF]:N,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:b,[c.WGS84]:A,[c.WGS84_ECEF]:w},[c.PLATE_CARREE]:{[c.CGCS2000]:R,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:R,[c.WGS84_COMPARABLE_LON_LAT]:R,[c.SPHERICAL_ECEF]:function(e,t,r,n){R(e,t,r,n),N(r,n,r,n)},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(e,t,r,n){R(e,t,r,n),E(r,n,r,n)},[c.PLATE_CARREE]:A,[c.WGS84]:R,[c.WGS84_ECEF]:function(e,t,r,n){R(e,t,r,n),w(r,n,r,n)}}};function h(e){const t=_(e,I);return f[t][c.WGS84_COMPARABLE_LON_LAT]}function C(e,t,r=v()){return null==e||null==t?null:function(e,t,r){if(null==e||null==t||r.source.spatialReference===e&&r.dest.spatialReference===t)return r;const n=_(e,r.source),l=_(t,r.dest);return n===c.UNKNOWN&&l===c.UNKNOWN?(0,p.yK)(e,t)?r.projector=A:r.projector=null:r.projector=f[n][l],r}(e,t,r).projector}function _(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,l.k8)(e,1)),(0,o.aI)(e)?t.spatialReferenceId=c.SPHERICAL_ECEF:(0,p.__)(e)?t.spatialReferenceId=c.WGS84:(0,p.kn)(e)?t.spatialReferenceId=c.WEB_MERCATOR:(0,p.GK)(e)?t.spatialReferenceId=c.PLATE_CARREE:e.wkt===o.MJ.wkt?t.spatialReferenceId=c.WGS84_ECEF:e.wkid===d.i.CGCS2000?t.spatialReferenceId=c.CGCS2000:e.wkt===o.IP.wkt?t.spatialReferenceId=c.SPHERICAL_MARS_PCPF:e.wkt===o.Om.wkt?t.spatialReferenceId=c.SPHERICAL_MOON_PCPF:(0,p.qg)(e)?t.spatialReferenceId=c.GCSMARS2000:(0,p.UB)(e)?t.spatialReferenceId=c.GCSMOON2000:t.spatialReferenceId=c.UNKNOWN):c.UNKNOWN}function A(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t])}function S(e,t,r,n){r[n]=F*(e[t]/j),r[n+1]=F*(B-2*Math.atan(Math.exp(-e[t+1]/j))),r[n+2]=e[t+2]}function E(e,t,r,l){!function(e,t,r,l,o){const i=.4999999*k,s=(0,n.qk)(W*e[t+1],-i,i),a=Math.sin(s);r[l++]=W*e[t]*o.radius,r[l++]=o.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[l]=e[t+2]}(e,t,r,l,i.ug)}function b(e,t,r,n){r[n]=e[t]*U,r[n+1]=e[t+1]*U,r[n+2]=e[t+2]}function R(e,t,r,n){r[n]=e[t]*H,r[n+1]=e[t+1]*H,r[n+2]=e[t+2]}function y(e,t,r,n,l){const o=l+e[t+2],i=W*e[t+1],s=W*e[t],a=Math.cos(i)*o;r[n]=Math.cos(s)*a,r[n+1]=Math.sin(s)*a,r[n+2]=Math.sin(i)*o}function g(e,t,r,n){y(e,t,r,n,i.qv.radius)}function O(e,t,r,n){y(e,t,r,n,i.Eb.radius)}function N(e,t,r,n){y(e,t,r,n,i.ug.radius)}function m(e,t,r,l,o){const i=e[t],s=e[t+1],a=e[t+2],u=Math.sqrt(i*i+s*s+a*a),c=(0,n.sj)(a/(0===u?1:u)),p=Math.atan2(s,i);r[l++]=F*p,r[l++]=F*c,r[l]=u-o}function P(e,t,r,n){m(e,t,r,n,i.qv.radius)}function M(e,t,r,n){m(e,t,r,n,i.Eb.radius)}function L(e,t,r,n){m(e,t,r,n,i.ug.radius)}function w(e,t,r,n){!function(e,t,r,n,l){const o=W*e[t],i=W*e[t+1],s=e[t+2],a=Math.sin(i),u=Math.cos(i),c=l.radius/Math.sqrt(1-l.eccentricitySquared*a*a);r[n++]=(c+s)*u*Math.cos(o),r[n++]=(c+s)*u*Math.sin(o),r[n++]=(c*(1-l.eccentricitySquared)+s)*a}(e,t,r,n,i.ug)}function T(e,t,r,n){const l=u,o=e[t],s=e[t+1],a=e[t+2];let c,p,d,f,h,C,_,A,S,E,b,R,y,g,O,N,m,P,M,L,w;c=Math.abs(a),p=o*o+s*s,d=Math.sqrt(p),f=p+a*a,h=Math.sqrt(f),L=Math.atan2(s,o),C=a*a/f,_=p/f,g=l.a2/h,O=l.a3-l.a4/h,_>.3?(A=c/h*(1+_*(l.a1+g+C*O)/h),M=Math.asin(A),E=A*A,S=Math.sqrt(1-E)):(S=d/h*(1-C*(l.a5-g-_*O)/h),M=Math.acos(S),E=1-S*S,A=Math.sqrt(E)),b=1-i.ug.eccentricitySquared*E,R=i.ug.radius/Math.sqrt(b),y=l.a6*R,g=d-R*S,O=c-y*A,m=S*g+A*O,N=S*O-A*g,P=N/(y/b+m),M+=P,w=m+N*P/2,a<0&&(M=-M),r[n++]=F*L,r[n++]=F*M,r[n]=w}function v(){return{source:{spatialReference:null,spatialReferenceId:c.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:c.UNKNOWN,metersPerUnit:1},projector:A}}const I={spatialReference:null,spatialReferenceId:c.UNKNOWN},q={spatialReference:null,spatialReferenceId:c.UNKNOWN},G=v(),W=(0,n.EF)(1),F=(0,n.UB)(1),k=Math.PI,B=.5*k,j=i.ug.radius,U=j*k/180,H=180/(j*k)},12432:(e,t,r)=>{r.d(t,{c:()=>S});var n,l=r(41948),o=r(62088),i=r(1580),s=(r(9456),r(66360),r(9968)),a=r(12552),u=r(96220),c=r(89584),p=r(44728),d=r(40504),f=r(53368);let h=n=class extends d.am{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new n({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,o.ct)(this.color)})}};(0,l._)([(0,i.qq)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,l._)([(0,i.qq)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,l._)([(0,i.qq)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],h.prototype,"minValue",void 0),(0,l._)([(0,i.qq)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],h.prototype,"maxValue",void 0),(0,l._)([(0,i.qq)({type:p.c,json:{type:[f.Ab],write:!0}})],h.prototype,"color",void 0),h=n=(0,l._)([(0,a.c)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],h);const C=h;var _;let A=_=class extends u.c{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new _({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,o.ct)(this.colorClassBreakInfos),legendOptions:(0,o.ct)(this.legendOptions)})}};(0,l._)([(0,s.G)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],A.prototype,"type",void 0),(0,l._)([(0,i.qq)({json:{write:!0},type:String})],A.prototype,"field",void 0),(0,l._)([(0,i.qq)({type:c.i,json:{write:!0}})],A.prototype,"legendOptions",void 0),(0,l._)([(0,i.qq)({type:u.c.fieldTransformTypeKebabDict.apiValues,json:{type:u.c.fieldTransformTypeKebabDict.jsonValues,read:u.c.fieldTransformTypeKebabDict.read,write:u.c.fieldTransformTypeKebabDict.write}})],A.prototype,"fieldTransformType",void 0),(0,l._)([(0,i.qq)({type:[C],json:{write:!0}})],A.prototype,"colorClassBreakInfos",void 0),A=_=(0,l._)([(0,a.c)("esri.renderers.PointCloudClassBreaksRenderer")],A);const S=A},96220:(e,t,r)=>{r.d(t,{c:()=>O});var n,l=r(41948),o=r(14628),i=r(40504),s=r(62088),a=r(1580),u=(r(9456),r(66360),r(12552));r(72052);let c=n=class extends i.am{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new n({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,l._)([(0,a.qq)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,l._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],c.prototype,"minValue",void 0),(0,l._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],c.prototype,"maxValue",void 0),c=n=(0,l._)([(0,u.c)("esri.renderers.support.pointCloud.ColorModulation")],c);const p=c,d=new o.O({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let f=class extends i.am{};(0,l._)([(0,a.qq)({type:d.apiValues,readOnly:!0,nonNullable:!0,json:{type:d.jsonValues,read:!1,write:d.write}})],f.prototype,"type",void 0),f=(0,l._)([(0,u.c)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],f);const h=f;var C,_=r(9968);let A=C=class extends h{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new C({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,l._)([(0,_.G)({pointCloudFixedSizeAlgorithm:"fixed-size"})],A.prototype,"type",void 0),(0,l._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],A.prototype,"size",void 0),(0,l._)([(0,a.qq)({type:Boolean,json:{write:!0}})],A.prototype,"useRealWorldSymbolSizes",void 0),A=C=(0,l._)([(0,u.c)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],A);const S=A;var E;let b=E=class extends h{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new E({scaleFactor:this.scaleFactor})}};(0,l._)([(0,_.G)({pointCloudSplatAlgorithm:"splat"})],b.prototype,"type",void 0),(0,l._)([(0,a.qq)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],b.prototype,"scaleFactor",void 0),b=E=(0,l._)([(0,u.c)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],b);const R={key:"type",base:h,typeMap:{"fixed-size":S,splat:b}},y=(0,o.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let g=class extends i.am{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,s.ct)(this.pointSizeAlgorithm),colorModulation:(0,s.ct)(this.colorModulation),pointsPerInch:(0,s.ct)(this.pointsPerInch)}}};(0,l._)([(0,a.qq)({type:y.apiValues,readOnly:!0,nonNullable:!0,json:{type:y.jsonValues,read:!1,write:y.write}})],g.prototype,"type",void 0),(0,l._)([(0,a.qq)({types:R,json:{write:!0}})],g.prototype,"pointSizeAlgorithm",void 0),(0,l._)([(0,a.qq)({type:p,json:{write:!0}})],g.prototype,"colorModulation",void 0),(0,l._)([(0,a.qq)({json:{write:!0},nonNullable:!0,type:Number})],g.prototype,"pointsPerInch",void 0),g=(0,l._)([(0,u.c)("esri.renderers.PointCloudRenderer")],g),(g||(g={})).fieldTransformTypeKebabDict=new o.O({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const O=g},56185:(e,t,r)=>{r.d(t,{c:()=>f});var n,l=r(41948),o=r(62088),i=r(1580),s=(r(9456),r(66360),r(9968)),a=r(12552),u=r(96220),c=r(89584),p=r(83060);let d=n=class extends u.c{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new n({...this.cloneProperties(),field:(0,o.ct)(this.field),fieldTransformType:(0,o.ct)(this.fieldTransformType),stops:(0,o.ct)(this.stops),legendOptions:(0,o.ct)(this.legendOptions)})}};(0,l._)([(0,s.G)({pointCloudStretchRenderer:"point-cloud-stretch"})],d.prototype,"type",void 0),(0,l._)([(0,i.qq)({json:{write:!0},type:String})],d.prototype,"field",void 0),(0,l._)([(0,i.qq)({type:c.i,json:{write:!0}})],d.prototype,"legendOptions",void 0),(0,l._)([(0,i.qq)({type:u.c.fieldTransformTypeKebabDict.apiValues,json:{type:u.c.fieldTransformTypeKebabDict.jsonValues,read:u.c.fieldTransformTypeKebabDict.read,write:u.c.fieldTransformTypeKebabDict.write}})],d.prototype,"fieldTransformType",void 0),(0,l._)([(0,i.qq)({type:[p.c],json:{write:!0}})],d.prototype,"stops",void 0),d=n=(0,l._)([(0,a.c)("esri.renderers.PointCloudStretchRenderer")],d);const f=d},53224:(e,t,r)=>{r.d(t,{c:()=>S});var n,l=r(41948),o=r(62088),i=r(1580),s=(r(9456),r(66360),r(9968)),a=r(12552),u=r(96220),c=r(89584),p=r(44728),d=r(40504),f=r(53368);let h=n=class extends d.am{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new n({description:this.description,label:this.label,values:(0,o.ct)(this.values),color:(0,o.ct)(this.color)})}};(0,l._)([(0,i.qq)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,l._)([(0,i.qq)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,l._)([(0,i.qq)({type:[String],json:{write:!0}})],h.prototype,"values",void 0),(0,l._)([(0,i.qq)({type:p.c,json:{type:[f.Ab],write:!0}})],h.prototype,"color",void 0),h=n=(0,l._)([(0,a.c)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],h);const C=h;var _;let A=_=class extends u.c{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new _({...this.cloneProperties(),field:(0,o.ct)(this.field),fieldTransformType:(0,o.ct)(this.fieldTransformType),colorUniqueValueInfos:(0,o.ct)(this.colorUniqueValueInfos),legendOptions:(0,o.ct)(this.legendOptions)})}};(0,l._)([(0,s.G)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],A.prototype,"type",void 0),(0,l._)([(0,i.qq)({json:{write:!0},type:String})],A.prototype,"field",void 0),(0,l._)([(0,i.qq)({type:u.c.fieldTransformTypeKebabDict.apiValues,json:{type:u.c.fieldTransformTypeKebabDict.jsonValues,read:u.c.fieldTransformTypeKebabDict.read,write:u.c.fieldTransformTypeKebabDict.write}})],A.prototype,"fieldTransformType",void 0),(0,l._)([(0,i.qq)({type:[C],json:{write:!0}})],A.prototype,"colorUniqueValueInfos",void 0),(0,l._)([(0,i.qq)({type:c.i,json:{write:!0}})],A.prototype,"legendOptions",void 0),A=_=(0,l._)([(0,a.c)("esri.renderers.PointCloudUniqueValueRenderer")],A);const S=A},89584:(e,t,r)=>{r.d(t,{i:()=>a});var n,l=r(41948),o=r(40504),i=r(1580),s=(r(9456),r(66360),r(72052),r(12552));let a=n=class extends o.am{constructor(){super(...arguments),this.title=null}clone(){return new n({title:this.title})}};(0,l._)([(0,i.qq)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=n=(0,l._)([(0,s.c)("esri.renderers.support.LegendOptions")],a)},83060:(e,t,r)=>{r.d(t,{c:()=>d});var n,l=r(41948),o=r(44728),i=r(40504),s=r(1580),a=r(53368),u=(r(72052),r(9456),r(12552)),c=r(18996);let p=n=class extends i.am{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,r){t[r]=e??0}clone(){return new n({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,l._)([(0,s.qq)({type:o.c,json:{type:[a.Ab],write:!0}})],p.prototype,"color",void 0),(0,l._)([(0,s.qq)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,l._)([(0,s.qq)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,l._)([(0,c.G)("value")],p.prototype,"writeValue",null),p=n=(0,l._)([(0,u.c)("esri.renderers.visualVariables.support.ColorStop")],p);const d=p},36472:(e,t,r)=>{r.r(t),r.d(t,{default:()=>q});var n=r(92400),l=r(72008),o=r(41512),i=r(2620),s=r(98472);function a(){return new Float32Array(3)}function u(e){const t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(e,t,r){const n=new Float32Array(3);return n[0]=e,n[1]=t,n[2]=r,n}function p(){return a()}function d(){return c(1,1,1)}function f(){return c(1,0,0)}function h(){return c(0,1,0)}function C(){return c(0,0,1)}const _=p(),A=d(),S=f(),E=h(),b=C();Object.freeze(Object.defineProperty({__proto__:null,ONES:A,UNIT_X:S,UNIT_Y:E,UNIT_Z:b,ZEROS:_,clone:u,create:a,createView:function(e,t){return new Float32Array(e,t,3)},fromValues:c,ones:d,unitX:f,unitY:h,unitZ:C,zeros:p},Symbol.toStringTag,{value:"Module"}));var R=r(56156),y=r(62880),g=(r(9456),r(12432)),O=r(56185),N=r(53224),m=r(16848),P=r(91180);function M(e,t,r){return e?.attributeInfo.useElevation?t?function(e,t){const r=new Float64Array(t);for(let n=0;n<t;n++)r[n]=e[3*n+2];return r}(t,r):null:e?.attributeInfo.storageInfo?(0,m.ii)(e.attributeInfo.storageInfo,e.buffer,r):null}function L(e){switch(e){default:case null:case"none":return e=>e;case"low-four-bit":return e=>15&e;case"high-four-bit":return e=>(240&e)>>4;case"absolute-value":return e=>Math.abs(e);case"modulo-ten":return e=>e%10}}function w(e){let t=0;for(const r of e||[])t|=1<<r;return t}var T=r(29244);class v{transform(e){const t=this._transform(e),r=[t.points.buffer,t.rgb.buffer];null!=t.pointIdFilterMap&&r.push(t.pointIdFilterMap.buffer);for(const e of t.attributes)"buffer"in e.values&&(0,l.uk)(e.values.buffer)&&e.values.buffer!==t.rgb.buffer&&r.push(e.values.buffer);return Promise.resolve({result:t,transferList:r})}_transform(e){const t=function(e,t){if(null==e.encoding||""===e.encoding){const r=(0,m.eG)(t,e);if(null==r.vertexAttributes.position)return;const n=(0,m.Oo)(t,r.vertexAttributes.position),l=r.header.fields,o=[l.offsetX,l.offsetY,l.offsetZ],i=[l.scaleX,l.scaleY,l.scaleZ],s=n.length/3,a=new Float64Array(3*s);for(let e=0;e<s;e++)a[3*e]=n[3*e]*i[0]+o[0],a[3*e+1]=n[3*e+1]*i[1]+o[1],a[3*e+2]=n[3*e+2]*i[2]+o[2];return a}if("lepcc-xyz"===e.encoding)return(0,P.K6)(t).result}(e.schema,e.geometryBuffer);let r=t.length/3,l=null;const o=new Array,i=M(e.primaryAttributeData,t,r);null!=e.primaryAttributeData&&i&&o.push({attributeInfo:e.primaryAttributeData.attributeInfo,values:i});const s=M(e.modulationAttributeData,t,r);null!=e.modulationAttributeData&&s&&o.push({attributeInfo:e.modulationAttributeData.attributeInfo,values:s});let a=function(e,t,r,n){const{rendererJSON:l,isRGBRenderer:o}=e;let i=null,s=null;if(t&&o)i=t;else if(t&&"pointCloudUniqueValueRenderer"===l?.type){s=N.c.fromJSON(l);const e=s.colorUniqueValueInfos;i=new Uint8Array(3*n);const r=L(s.fieldTransformType);for(let l=0;l<n;l++){const n=(r?r(t[l]):t[l])+"";for(let t=0;t<e.length;t++)if(e[t].values.includes(n)){i[3*l]=e[t].color.r,i[3*l+1]=e[t].color.g,i[3*l+2]=e[t].color.b;break}}}else if(t&&"pointCloudStretchRenderer"===l?.type){s=O.c.fromJSON(l);const e=s.stops;i=new Uint8Array(3*n);const r=L(s.fieldTransformType);for(let l=0;l<n;l++){const n=r?r(t[l]):t[l],o=e.length-1;if(n<e[0].value)i[3*l]=e[0].color.r,i[3*l+1]=e[0].color.g,i[3*l+2]=e[0].color.b;else if(n>=e[o].value)i[3*l]=e[o].color.r,i[3*l+1]=e[o].color.g,i[3*l+2]=e[o].color.b;else for(let t=1;t<e.length;t++)if(n<e[t].value){const r=(n-e[t-1].value)/(e[t].value-e[t-1].value);i[3*l]=e[t].color.r*r+e[t-1].color.r*(1-r),i[3*l+1]=e[t].color.g*r+e[t-1].color.g*(1-r),i[3*l+2]=e[t].color.b*r+e[t-1].color.b*(1-r);break}}}else if(t&&"pointCloudClassBreaksRenderer"===l?.type){s=g.c.fromJSON(l);const e=s.colorClassBreakInfos;i=new Uint8Array(3*n);const r=L(s.fieldTransformType);for(let l=0;l<n;l++){const n=r?r(t[l]):t[l];for(let t=0;t<e.length;t++)if(n>=e[t].minValue&&n<=e[t].maxValue){i[3*l]=e[t].color.r,i[3*l+1]=e[t].color.g,i[3*l+2]=e[t].color.b;break}}}else i=new Uint8Array(3*n).fill(255);if(r&&s?.colorModulation){const e=s.colorModulation.minValue,t=s.colorModulation.maxValue,l=.3;for(let o=0;o<n;o++){const n=r[o],s=n>=t?1:n<=e?l:l+(1-l)*(n-e)/(t-e);i[3*o]=s*i[3*o],i[3*o+1]=s*i[3*o+1],i[3*o+2]=s*i[3*o+2]}}return i}(e.rendererInfo,i,s,r);if(e.filterInfo&&e.filterInfo.length>0&&null!=e.filterAttributesData){const i=e.filterAttributesData.filter(n.G6).map((e=>{const n=M(e,t,r),l={attributeInfo:e.attributeInfo,values:n};return o.push(l),l}));l=new Uint32Array(r),r=function(e,t,r,n,l){const o=e.length/3;let i=0;for(let s=0;s<o;s++){let o=!0;for(let e=0;e<n.length&&o;e++){const{filterJSON:t}=n[e],r=l[e].values[s];switch(t.type){case"pointCloudValueFilter":{const e="exclude"===t.mode;t.values.includes(r)===e&&(o=!1);break}case"pointCloudBitfieldFilter":{const e=w(t.requiredSetBits),n=w(t.requiredClearBits);(r&e)===e&&0==(r&n)||(o=!1);break}case"pointCloudReturnFilter":{const e=15&r,n=r>>>4&15,l=n>1,i=1===e,s=e===n;let a=!1;for(const e of t.includedReturns)if("last"===e&&s||"firstOfMany"===e&&i&&l||"lastOfMany"===e&&s&&l||"single"===e&&!l){a=!0;break}a||(o=!1);break}}}o&&(r[i]=s,e[3*i]=e[3*s],e[3*i+1]=e[3*s+1],e[3*i+2]=e[3*s+2],t[3*i]=t[3*s],t[3*i+1]=t[3*s+1],t[3*i+2]=t[3*s+2],i++)}return i}(t,a,l,e.filterInfo,i)}for(const n of e.userAttributesData){const e=M(n,t,r);o.push({attributeInfo:n.attributeInfo,values:e})}3*r<a.length&&(a=new Uint8Array(a.buffer.slice(0,3*r))),this._applyElevationOffsetInPlace(t,r,e.elevationOffset);const u=this._transformCoordinates(t,r,T.Eb.fromData(e.obbData),R.c.fromJSON(e.inSR),R.c.fromJSON(e.outSR));return{obbData:e.obbData,points:u,rgb:a,attributes:o,pointIdFilterMap:l}}_transformCoordinates(e,t,r,n,l){if(!(0,y.projectBuffer)(e,n,0,e,l,0,t))throw new Error("Can't reproject");const i=u(r.center),c=a(),p=a(),d=u(r.halfSize);(0,o.fO)(I,r.quaternion);const f=new Float32Array(3*t);for(let r=0;r<t;r++){let t=3*r;c[0]=e[t]-i[0],c[1]=e[t+1]-i[1],c[2]=e[t+2]-i[2],(0,s.r)(p,c,I),d[0]=Math.max(d[0],Math.abs(p[0])),d[1]=Math.max(d[1],Math.abs(p[1])),d[2]=Math.max(d[2],Math.abs(p[2])),f[t++]=c[0],f[t++]=c[1],f[t]=c[2]}return r.halfSize=d,f}_applyElevationOffsetInPlace(e,t,r){if(0!==r)for(let n=0;n<t;n++)e[3*n+2]+=r}}const I=(0,i.Su)();function q(){return new v}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4092],{44728:(e,t,r)=>{r.d(t,{c:()=>d});var n,l,o=r(46988),i=r(53648),s=r(53368);function a(e){return(0,i.qk)((0,s.Wu)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function c(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class p{static blendColors(e,t,r,n=new p){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return p.fromArray((0,o.ec)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),l=parseInt(e.substring(3,4),16),o=5===e.length?15:parseInt(e.substring(4),16);return p.fromArray([r+16*r,n+16*n,l+16*l,(o+16*o)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),l=parseInt(e.substring(5,7),16),o=7===e.length?255:parseInt(e.substring(7),16);return p.fromArray([r,n,l,o/255],t)}default:return null}}static fromArray(e,t=new p){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,o.kv)(e)?(0,o.SQ)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return null!=e?new p([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,l=4===r||8===r,o=`#${c(this.r,n)}${c(this.g,n)}${c(this.b,n)}${l?c(Math.round(255*this.a),n):""}`;return t?o.toUpperCase():o}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=p.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),n=a(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,n,a(255*this.a)]:[t,r,n]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}p.prototype.declaredClass="esri.Color",(l=(n=p||(p={})).AlphaMode||(n.AlphaMode={}))[l.ALWAYS=0]="ALWAYS",l[l.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const d=p},46988:(e,t,r)=>{r.d(t,{SQ:()=>o,ec:()=>a,kv:()=>l,uO:()=>i,yU:()=>u});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function l(e){return!!n[e]||!!n[e.toLowerCase()]}function o(e){return n[e]??n[e.toLowerCase()]}function i(e){return[...o(e)]}function s(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,n=1){const l=(e%360+360)%360/360,o=r<=.5?r*(t+1):r+t-r*t,i=2*r-o;return[Math.round(255*s(i,o,l+1/3)),Math.round(255*s(i,o,l)),Math.round(255*s(i,o,l-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,l=t?1:17,o=t?9===e.length:5===e.length;let i=Number("0x"+e.substr(1));if(isNaN(i))return null;const s=[0,0,0,1];let a;return o&&(a=i&n,i>>=r,s[3]=l*a/255),a=i&n,i>>=r,s[2]=l*a,a=i&n,i>>=r,s[1]=l*a,a=i&n,i>>=r,s[0]=l*a,s}},9968:(e,t,r)=>{r.d(t,{G:()=>o});var n=r(14628),l=r(1580);function o(e,t={}){const r=e instanceof n.O?e:new n.O(e,t),o={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(o.readOnly=!!t.readOnly),void 0!==t?.default&&(o.json.default=t.default),void 0!==t?.name&&(o.json.name=t.name),void 0!==t?.nonNullable&&(o.nonNullable=t.nonNullable),(0,l.qq)(o)}},62880:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>l});var n=r(38380);function l(e,t,r,l,o,i,s=1){const a=(0,n.Mx)(t,o,n.kD);if(null==a)return!1;if(a===n.ek){if(e===l&&r===i)return!0;const t=r+3*s;for(let n=r,o=i;n<t;n++,o++)l[o]=e[n];return!0}const u=r+3*s;for(let t=r,n=i;t<u;t+=3,n+=3)a(e,t,l,n);return!0}},38380:(e,t,r)=>{r.d(t,{o3:()=>c,Se:()=>_,ek:()=>A,mq:()=>q,Mx:()=>C,yn:()=>h,yw:()=>f,kD:()=>G,Wy:()=>I});var n=r(53648),l=r(24296),o=r(22080),i=r(67932);Math.PI;const s=i.ug.radius,a=i.ug.eccentricitySquared,u={a1:s*a,a2:s*a*s*a,a3:s*a*a/2,a4:s*a*s*a*2.5,a5:s*a+s*a*a/2,a6:1-a};i.ug.radius,i.ug.flattening,i.qv.radius,i.qv.flattening,i.Eb.radius,i.Eb.flattening,i.Eb.radius;var c,p=r(60544),d=r(28496);!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",e[e.WGS84=2]="WGS84",e[e.WEB_MERCATOR=3]="WEB_MERCATOR",e[e.WGS84_ECEF=4]="WGS84_ECEF",e[e.CGCS2000=5]="CGCS2000",e[e.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",e[e.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",e[e.GCSMARS2000=8]="GCSMARS2000",e[e.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",e[e.GCSMOON2000=10]="GCSMOON2000",e[e.LON_LAT=11]="LON_LAT",e[e.PLATE_CARREE=12]="PLATE_CARREE"}(c||(c={}));const f={[c.WGS84]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:A,[c.SPHERICAL_ECEF]:N,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:E,[c.PLATE_CARREE]:b,[c.WGS84]:A,[c.WGS84_ECEF]:w},[c.CGCS2000]:{[c.CGCS2000]:A,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:A,[c.SPHERICAL_ECEF]:N,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:b,[c.WGS84]:null,[c.WGS84_ECEF]:w},[c.GCSMARS2000]:{[c.CGCS2000]:null,[c.GCSMARS2000]:A,[c.GCSMOON2000]:null,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:O,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.GCSMOON2000]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:A,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:g,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.WEB_MERCATOR]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:S,[c.WGS84_COMPARABLE_LON_LAT]:S,[c.SPHERICAL_ECEF]:function(e,t,r,n){const l=e[t]/j,o=B-2*Math.atan(Math.exp(-e[t+1]/j)),i=j+e[t+2],s=Math.cos(o)*i;r[n]=Math.cos(l)*s,r[n+1]=Math.sin(l)*s,r[n+2]=Math.sin(o)*i},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:A,[c.PLATE_CARREE]:function(e,t,r,n){S(e,t,r,n),b(r,n,r,n)},[c.WGS84]:S,[c.WGS84_ECEF]:function(e,t,r,n){S(e,t,r,n),w(r,n,r,n)}},[c.WGS84_ECEF]:{[c.CGCS2000]:T,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:T,[c.WGS84_COMPARABLE_LON_LAT]:T,[c.SPHERICAL_ECEF]:function(e,t,r,n){T(e,t,r,n),N(r,n,r,n)},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(e,t,r,n){T(e,t,r,n),E(r,n,r,n)},[c.PLATE_CARREE]:function(e,t,r,n){T(e,t,r,n),b(r,n,r,n)},[c.WGS84]:T,[c.WGS84_ECEF]:A},[c.SPHERICAL_ECEF]:{[c.CGCS2000]:L,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:L,[c.WGS84_COMPARABLE_LON_LAT]:L,[c.SPHERICAL_ECEF]:A,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(e,t,r,n){L(e,t,r,n),E(r,n,r,n)},[c.PLATE_CARREE]:function(e,t,r,n){L(e,t,r,n),b(r,n,r,n)},[c.WGS84]:L,[c.WGS84_ECEF]:function(e,t,r,n){L(e,t,r,n),w(r,n,r,n)}},[c.SPHERICAL_MARS_PCPF]:{[c.CGCS2000]:null,[c.GCSMARS2000]:M,[c.GCSMOON2000]:null,[c.LON_LAT]:M,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:A,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.SPHERICAL_MOON_PCPF]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:P,[c.LON_LAT]:P,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:A,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.UNKNOWN]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:null,[c.WGS84_COMPARABLE_LON_LAT]:null,[c.SPHERICAL_ECEF]:null,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:A,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:null,[c.WGS84]:null,[c.WGS84_ECEF]:null},[c.LON_LAT]:{[c.CGCS2000]:A,[c.GCSMARS2000]:A,[c.GCSMOON2000]:A,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:A,[c.SPHERICAL_ECEF]:N,[c.SPHERICAL_MARS_PCPF]:O,[c.SPHERICAL_MOON_PCPF]:g,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:E,[c.PLATE_CARREE]:b,[c.WGS84]:A,[c.WGS84_ECEF]:w},[c.WGS84_COMPARABLE_LON_LAT]:{[c.CGCS2000]:null,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:A,[c.WGS84_COMPARABLE_LON_LAT]:A,[c.SPHERICAL_ECEF]:N,[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:null,[c.PLATE_CARREE]:b,[c.WGS84]:A,[c.WGS84_ECEF]:w},[c.PLATE_CARREE]:{[c.CGCS2000]:R,[c.GCSMARS2000]:null,[c.GCSMOON2000]:null,[c.LON_LAT]:R,[c.WGS84_COMPARABLE_LON_LAT]:R,[c.SPHERICAL_ECEF]:function(e,t,r,n){R(e,t,r,n),N(r,n,r,n)},[c.SPHERICAL_MARS_PCPF]:null,[c.SPHERICAL_MOON_PCPF]:null,[c.UNKNOWN]:null,[c.WEB_MERCATOR]:function(e,t,r,n){R(e,t,r,n),E(r,n,r,n)},[c.PLATE_CARREE]:A,[c.WGS84]:R,[c.WGS84_ECEF]:function(e,t,r,n){R(e,t,r,n),w(r,n,r,n)}}};function h(e){const t=_(e,I);return f[t][c.WGS84_COMPARABLE_LON_LAT]}function C(e,t,r=v()){return null==e||null==t?null:function(e,t,r){if(null==e||null==t||r.source.spatialReference===e&&r.dest.spatialReference===t)return r;const n=_(e,r.source),l=_(t,r.dest);return n===c.UNKNOWN&&l===c.UNKNOWN?(0,p.yK)(e,t)?r.projector=A:r.projector=null:r.projector=f[n][l],r}(e,t,r).projector}function _(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,l.k8)(e,1)),(0,o.aI)(e)?t.spatialReferenceId=c.SPHERICAL_ECEF:(0,p.__)(e)?t.spatialReferenceId=c.WGS84:(0,p.kn)(e)?t.spatialReferenceId=c.WEB_MERCATOR:(0,p.GK)(e)?t.spatialReferenceId=c.PLATE_CARREE:e.wkt===o.MJ.wkt?t.spatialReferenceId=c.WGS84_ECEF:e.wkid===d.i.CGCS2000?t.spatialReferenceId=c.CGCS2000:e.wkt===o.IP.wkt?t.spatialReferenceId=c.SPHERICAL_MARS_PCPF:e.wkt===o.Om.wkt?t.spatialReferenceId=c.SPHERICAL_MOON_PCPF:(0,p.qg)(e)?t.spatialReferenceId=c.GCSMARS2000:(0,p.UB)(e)?t.spatialReferenceId=c.GCSMOON2000:t.spatialReferenceId=c.UNKNOWN):c.UNKNOWN}function A(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t])}function S(e,t,r,n){r[n]=F*(e[t]/j),r[n+1]=F*(B-2*Math.atan(Math.exp(-e[t+1]/j))),r[n+2]=e[t+2]}function E(e,t,r,l){!function(e,t,r,l,o){const i=.4999999*k,s=(0,n.qk)(W*e[t+1],-i,i),a=Math.sin(s);r[l++]=W*e[t]*o.radius,r[l++]=o.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[l]=e[t+2]}(e,t,r,l,i.ug)}function b(e,t,r,n){r[n]=e[t]*U,r[n+1]=e[t+1]*U,r[n+2]=e[t+2]}function R(e,t,r,n){r[n]=e[t]*H,r[n+1]=e[t+1]*H,r[n+2]=e[t+2]}function y(e,t,r,n,l){const o=l+e[t+2],i=W*e[t+1],s=W*e[t],a=Math.cos(i)*o;r[n]=Math.cos(s)*a,r[n+1]=Math.sin(s)*a,r[n+2]=Math.sin(i)*o}function g(e,t,r,n){y(e,t,r,n,i.qv.radius)}function O(e,t,r,n){y(e,t,r,n,i.Eb.radius)}function N(e,t,r,n){y(e,t,r,n,i.ug.radius)}function m(e,t,r,l,o){const i=e[t],s=e[t+1],a=e[t+2],u=Math.sqrt(i*i+s*s+a*a),c=(0,n.sj)(a/(0===u?1:u)),p=Math.atan2(s,i);r[l++]=F*p,r[l++]=F*c,r[l]=u-o}function P(e,t,r,n){m(e,t,r,n,i.qv.radius)}function M(e,t,r,n){m(e,t,r,n,i.Eb.radius)}function L(e,t,r,n){m(e,t,r,n,i.ug.radius)}function w(e,t,r,n){!function(e,t,r,n,l){const o=W*e[t],i=W*e[t+1],s=e[t+2],a=Math.sin(i),u=Math.cos(i),c=l.radius/Math.sqrt(1-l.eccentricitySquared*a*a);r[n++]=(c+s)*u*Math.cos(o),r[n++]=(c+s)*u*Math.sin(o),r[n++]=(c*(1-l.eccentricitySquared)+s)*a}(e,t,r,n,i.ug)}function T(e,t,r,n){const l=u,o=e[t],s=e[t+1],a=e[t+2];let c,p,d,f,h,C,_,A,S,E,b,R,y,g,O,N,m,P,M,L,w;c=Math.abs(a),p=o*o+s*s,d=Math.sqrt(p),f=p+a*a,h=Math.sqrt(f),L=Math.atan2(s,o),C=a*a/f,_=p/f,g=l.a2/h,O=l.a3-l.a4/h,_>.3?(A=c/h*(1+_*(l.a1+g+C*O)/h),M=Math.asin(A),E=A*A,S=Math.sqrt(1-E)):(S=d/h*(1-C*(l.a5-g-_*O)/h),M=Math.acos(S),E=1-S*S,A=Math.sqrt(E)),b=1-i.ug.eccentricitySquared*E,R=i.ug.radius/Math.sqrt(b),y=l.a6*R,g=d-R*S,O=c-y*A,m=S*g+A*O,N=S*O-A*g,P=N/(y/b+m),M+=P,w=m+N*P/2,a<0&&(M=-M),r[n++]=F*L,r[n++]=F*M,r[n]=w}function v(){return{source:{spatialReference:null,spatialReferenceId:c.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:c.UNKNOWN,metersPerUnit:1},projector:A}}const I={spatialReference:null,spatialReferenceId:c.UNKNOWN},q={spatialReference:null,spatialReferenceId:c.UNKNOWN},G=v(),W=(0,n.EF)(1),F=(0,n.UB)(1),k=Math.PI,B=.5*k,j=i.ug.radius,U=j*k/180,H=180/(j*k)},12432:(e,t,r)=>{r.d(t,{c:()=>S});var n,l=r(41948),o=r(62088),i=r(1580),s=(r(9456),r(66360),r(9968)),a=r(12552),u=r(96220),c=r(89584),p=r(44728),d=r(40504),f=r(53368);let h=n=class extends d.am{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new n({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,o.ct)(this.color)})}};(0,l._)([(0,i.qq)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,l._)([(0,i.qq)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,l._)([(0,i.qq)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],h.prototype,"minValue",void 0),(0,l._)([(0,i.qq)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],h.prototype,"maxValue",void 0),(0,l._)([(0,i.qq)({type:p.c,json:{type:[f.Ab],write:!0}})],h.prototype,"color",void 0),h=n=(0,l._)([(0,a.c)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],h);const C=h;var _;let A=_=class extends u.c{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new _({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,o.ct)(this.colorClassBreakInfos),legendOptions:(0,o.ct)(this.legendOptions)})}};(0,l._)([(0,s.G)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],A.prototype,"type",void 0),(0,l._)([(0,i.qq)({json:{write:!0},type:String})],A.prototype,"field",void 0),(0,l._)([(0,i.qq)({type:c.i,json:{write:!0}})],A.prototype,"legendOptions",void 0),(0,l._)([(0,i.qq)({type:u.c.fieldTransformTypeKebabDict.apiValues,json:{type:u.c.fieldTransformTypeKebabDict.jsonValues,read:u.c.fieldTransformTypeKebabDict.read,write:u.c.fieldTransformTypeKebabDict.write}})],A.prototype,"fieldTransformType",void 0),(0,l._)([(0,i.qq)({type:[C],json:{write:!0}})],A.prototype,"colorClassBreakInfos",void 0),A=_=(0,l._)([(0,a.c)("esri.renderers.PointCloudClassBreaksRenderer")],A);const S=A},96220:(e,t,r)=>{r.d(t,{c:()=>O});var n,l=r(41948),o=r(14628),i=r(40504),s=r(62088),a=r(1580),u=(r(9456),r(66360),r(12552));r(72052);let c=n=class extends i.am{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new n({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,l._)([(0,a.qq)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,l._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],c.prototype,"minValue",void 0),(0,l._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],c.prototype,"maxValue",void 0),c=n=(0,l._)([(0,u.c)("esri.renderers.support.pointCloud.ColorModulation")],c);const p=c,d=new o.O({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let f=class extends i.am{};(0,l._)([(0,a.qq)({type:d.apiValues,readOnly:!0,nonNullable:!0,json:{type:d.jsonValues,read:!1,write:d.write}})],f.prototype,"type",void 0),f=(0,l._)([(0,u.c)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],f);const h=f;var C,_=r(9968);let A=C=class extends h{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new C({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,l._)([(0,_.G)({pointCloudFixedSizeAlgorithm:"fixed-size"})],A.prototype,"type",void 0),(0,l._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],A.prototype,"size",void 0),(0,l._)([(0,a.qq)({type:Boolean,json:{write:!0}})],A.prototype,"useRealWorldSymbolSizes",void 0),A=C=(0,l._)([(0,u.c)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],A);const S=A;var E;let b=E=class extends h{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new E({scaleFactor:this.scaleFactor})}};(0,l._)([(0,_.G)({pointCloudSplatAlgorithm:"splat"})],b.prototype,"type",void 0),(0,l._)([(0,a.qq)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],b.prototype,"scaleFactor",void 0),b=E=(0,l._)([(0,u.c)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],b);const R={key:"type",base:h,typeMap:{"fixed-size":S,splat:b}},y=(0,o.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let g=class extends i.am{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,s.ct)(this.pointSizeAlgorithm),colorModulation:(0,s.ct)(this.colorModulation),pointsPerInch:(0,s.ct)(this.pointsPerInch)}}};(0,l._)([(0,a.qq)({type:y.apiValues,readOnly:!0,nonNullable:!0,json:{type:y.jsonValues,read:!1,write:y.write}})],g.prototype,"type",void 0),(0,l._)([(0,a.qq)({types:R,json:{write:!0}})],g.prototype,"pointSizeAlgorithm",void 0),(0,l._)([(0,a.qq)({type:p,json:{write:!0}})],g.prototype,"colorModulation",void 0),(0,l._)([(0,a.qq)({json:{write:!0},nonNullable:!0,type:Number})],g.prototype,"pointsPerInch",void 0),g=(0,l._)([(0,u.c)("esri.renderers.PointCloudRenderer")],g),(g||(g={})).fieldTransformTypeKebabDict=new o.O({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const O=g},56185:(e,t,r)=>{r.d(t,{c:()=>f});var n,l=r(41948),o=r(62088),i=r(1580),s=(r(9456),r(66360),r(9968)),a=r(12552),u=r(96220),c=r(89584),p=r(83060);let d=n=class extends u.c{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new n({...this.cloneProperties(),field:(0,o.ct)(this.field),fieldTransformType:(0,o.ct)(this.fieldTransformType),stops:(0,o.ct)(this.stops),legendOptions:(0,o.ct)(this.legendOptions)})}};(0,l._)([(0,s.G)({pointCloudStretchRenderer:"point-cloud-stretch"})],d.prototype,"type",void 0),(0,l._)([(0,i.qq)({json:{write:!0},type:String})],d.prototype,"field",void 0),(0,l._)([(0,i.qq)({type:c.i,json:{write:!0}})],d.prototype,"legendOptions",void 0),(0,l._)([(0,i.qq)({type:u.c.fieldTransformTypeKebabDict.apiValues,json:{type:u.c.fieldTransformTypeKebabDict.jsonValues,read:u.c.fieldTransformTypeKebabDict.read,write:u.c.fieldTransformTypeKebabDict.write}})],d.prototype,"fieldTransformType",void 0),(0,l._)([(0,i.qq)({type:[p.c],json:{write:!0}})],d.prototype,"stops",void 0),d=n=(0,l._)([(0,a.c)("esri.renderers.PointCloudStretchRenderer")],d);const f=d},53224:(e,t,r)=>{r.d(t,{c:()=>S});var n,l=r(41948),o=r(62088),i=r(1580),s=(r(9456),r(66360),r(9968)),a=r(12552),u=r(96220),c=r(89584),p=r(44728),d=r(40504),f=r(53368);let h=n=class extends d.am{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new n({description:this.description,label:this.label,values:(0,o.ct)(this.values),color:(0,o.ct)(this.color)})}};(0,l._)([(0,i.qq)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,l._)([(0,i.qq)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,l._)([(0,i.qq)({type:[String],json:{write:!0}})],h.prototype,"values",void 0),(0,l._)([(0,i.qq)({type:p.c,json:{type:[f.Ab],write:!0}})],h.prototype,"color",void 0),h=n=(0,l._)([(0,a.c)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],h);const C=h;var _;let A=_=class extends u.c{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new _({...this.cloneProperties(),field:(0,o.ct)(this.field),fieldTransformType:(0,o.ct)(this.fieldTransformType),colorUniqueValueInfos:(0,o.ct)(this.colorUniqueValueInfos),legendOptions:(0,o.ct)(this.legendOptions)})}};(0,l._)([(0,s.G)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],A.prototype,"type",void 0),(0,l._)([(0,i.qq)({json:{write:!0},type:String})],A.prototype,"field",void 0),(0,l._)([(0,i.qq)({type:u.c.fieldTransformTypeKebabDict.apiValues,json:{type:u.c.fieldTransformTypeKebabDict.jsonValues,read:u.c.fieldTransformTypeKebabDict.read,write:u.c.fieldTransformTypeKebabDict.write}})],A.prototype,"fieldTransformType",void 0),(0,l._)([(0,i.qq)({type:[C],json:{write:!0}})],A.prototype,"colorUniqueValueInfos",void 0),(0,l._)([(0,i.qq)({type:c.i,json:{write:!0}})],A.prototype,"legendOptions",void 0),A=_=(0,l._)([(0,a.c)("esri.renderers.PointCloudUniqueValueRenderer")],A);const S=A},89584:(e,t,r)=>{r.d(t,{i:()=>a});var n,l=r(41948),o=r(40504),i=r(1580),s=(r(9456),r(66360),r(72052),r(12552));let a=n=class extends o.am{constructor(){super(...arguments),this.title=null}clone(){return new n({title:this.title})}};(0,l._)([(0,i.qq)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=n=(0,l._)([(0,s.c)("esri.renderers.support.LegendOptions")],a)},83060:(e,t,r)=>{r.d(t,{c:()=>d});var n,l=r(41948),o=r(44728),i=r(40504),s=r(1580),a=r(53368),u=(r(72052),r(9456),r(12552)),c=r(18996);let p=n=class extends i.am{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,r){t[r]=e??0}clone(){return new n({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,l._)([(0,s.qq)({type:o.c,json:{type:[a.Ab],write:!0}})],p.prototype,"color",void 0),(0,l._)([(0,s.qq)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,l._)([(0,s.qq)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,l._)([(0,c.G)("value")],p.prototype,"writeValue",null),p=n=(0,l._)([(0,u.c)("esri.renderers.visualVariables.support.ColorStop")],p);const d=p},36472:(e,t,r)=>{r.r(t),r.d(t,{default:()=>q});var n=r(92400),l=r(72008),o=r(41512),i=r(2620),s=r(98472);function a(){return new Float32Array(3)}function u(e){const t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(e,t,r){const n=new Float32Array(3);return n[0]=e,n[1]=t,n[2]=r,n}function p(){return a()}function d(){return c(1,1,1)}function f(){return c(1,0,0)}function h(){return c(0,1,0)}function C(){return c(0,0,1)}const _=p(),A=d(),S=f(),E=h(),b=C();Object.freeze(Object.defineProperty({__proto__:null,ONES:A,UNIT_X:S,UNIT_Y:E,UNIT_Z:b,ZEROS:_,clone:u,create:a,createView:function(e,t){return new Float32Array(e,t,3)},fromValues:c,ones:d,unitX:f,unitY:h,unitZ:C,zeros:p},Symbol.toStringTag,{value:"Module"}));var R=r(56156),y=r(62880),g=(r(9456),r(12432)),O=r(56185),N=r(53224),m=r(16848),P=r(91180);function M(e,t,r){return e?.attributeInfo.useElevation?t?function(e,t){const r=new Float64Array(t);for(let n=0;n<t;n++)r[n]=e[3*n+2];return r}(t,r):null:e?.attributeInfo.storageInfo?(0,m.ii)(e.attributeInfo.storageInfo,e.buffer,r):null}function L(e){switch(e){default:case null:case"none":return e=>e;case"low-four-bit":return e=>15&e;case"high-four-bit":return e=>(240&e)>>4;case"absolute-value":return e=>Math.abs(e);case"modulo-ten":return e=>e%10}}function w(e){let t=0;for(const r of e||[])t|=1<<r;return t}var T=r(29244);class v{transform(e){const t=this._transform(e),r=[t.points.buffer,t.rgb.buffer];null!=t.pointIdFilterMap&&r.push(t.pointIdFilterMap.buffer);for(const e of t.attributes)"buffer"in e.values&&(0,l.uk)(e.values.buffer)&&e.values.buffer!==t.rgb.buffer&&r.push(e.values.buffer);return Promise.resolve({result:t,transferList:r})}_transform(e){const t=function(e,t){if(null==e.encoding||""===e.encoding){const r=(0,m.eG)(t,e);if(null==r.vertexAttributes.position)return;const n=(0,m.Oo)(t,r.vertexAttributes.position),l=r.header.fields,o=[l.offsetX,l.offsetY,l.offsetZ],i=[l.scaleX,l.scaleY,l.scaleZ],s=n.length/3,a=new Float64Array(3*s);for(let e=0;e<s;e++)a[3*e]=n[3*e]*i[0]+o[0],a[3*e+1]=n[3*e+1]*i[1]+o[1],a[3*e+2]=n[3*e+2]*i[2]+o[2];return a}if("lepcc-xyz"===e.encoding)return(0,P.K6)(t).result}(e.schema,e.geometryBuffer);let r=t.length/3,l=null;const o=new Array,i=M(e.primaryAttributeData,t,r);null!=e.primaryAttributeData&&i&&o.push({attributeInfo:e.primaryAttributeData.attributeInfo,values:i});const s=M(e.modulationAttributeData,t,r);null!=e.modulationAttributeData&&s&&o.push({attributeInfo:e.modulationAttributeData.attributeInfo,values:s});let a=function(e,t,r,n){const{rendererJSON:l,isRGBRenderer:o}=e;let i=null,s=null;if(t&&o)i=t;else if(t&&"pointCloudUniqueValueRenderer"===l?.type){s=N.c.fromJSON(l);const e=s.colorUniqueValueInfos;i=new Uint8Array(3*n);const r=L(s.fieldTransformType);for(let l=0;l<n;l++){const n=(r?r(t[l]):t[l])+"";for(let t=0;t<e.length;t++)if(e[t].values.includes(n)){i[3*l]=e[t].color.r,i[3*l+1]=e[t].color.g,i[3*l+2]=e[t].color.b;break}}}else if(t&&"pointCloudStretchRenderer"===l?.type){s=O.c.fromJSON(l);const e=s.stops;i=new Uint8Array(3*n);const r=L(s.fieldTransformType);for(let l=0;l<n;l++){const n=r?r(t[l]):t[l],o=e.length-1;if(n<e[0].value)i[3*l]=e[0].color.r,i[3*l+1]=e[0].color.g,i[3*l+2]=e[0].color.b;else if(n>=e[o].value)i[3*l]=e[o].color.r,i[3*l+1]=e[o].color.g,i[3*l+2]=e[o].color.b;else for(let t=1;t<e.length;t++)if(n<e[t].value){const r=(n-e[t-1].value)/(e[t].value-e[t-1].value);i[3*l]=e[t].color.r*r+e[t-1].color.r*(1-r),i[3*l+1]=e[t].color.g*r+e[t-1].color.g*(1-r),i[3*l+2]=e[t].color.b*r+e[t-1].color.b*(1-r);break}}}else if(t&&"pointCloudClassBreaksRenderer"===l?.type){s=g.c.fromJSON(l);const e=s.colorClassBreakInfos;i=new Uint8Array(3*n);const r=L(s.fieldTransformType);for(let l=0;l<n;l++){const n=r?r(t[l]):t[l];for(let t=0;t<e.length;t++)if(n>=e[t].minValue&&n<=e[t].maxValue){i[3*l]=e[t].color.r,i[3*l+1]=e[t].color.g,i[3*l+2]=e[t].color.b;break}}}else i=new Uint8Array(3*n).fill(255);if(r&&s?.colorModulation){const e=s.colorModulation.minValue,t=s.colorModulation.maxValue,l=.3;for(let o=0;o<n;o++){const n=r[o],s=n>=t?1:n<=e?l:l+(1-l)*(n-e)/(t-e);i[3*o]=s*i[3*o],i[3*o+1]=s*i[3*o+1],i[3*o+2]=s*i[3*o+2]}}return i}(e.rendererInfo,i,s,r);if(e.filterInfo&&e.filterInfo.length>0&&null!=e.filterAttributesData){const i=e.filterAttributesData.filter(n.G6).map((e=>{const n=M(e,t,r),l={attributeInfo:e.attributeInfo,values:n};return o.push(l),l}));l=new Uint32Array(r),r=function(e,t,r,n,l){const o=e.length/3;let i=0;for(let s=0;s<o;s++){let o=!0;for(let e=0;e<n.length&&o;e++){const{filterJSON:t}=n[e],r=l[e].values[s];switch(t.type){case"pointCloudValueFilter":{const e="exclude"===t.mode;t.values.includes(r)===e&&(o=!1);break}case"pointCloudBitfieldFilter":{const e=w(t.requiredSetBits),n=w(t.requiredClearBits);(r&e)===e&&0==(r&n)||(o=!1);break}case"pointCloudReturnFilter":{const e=15&r,n=r>>>4&15,l=n>1,i=1===e,s=e===n;let a=!1;for(const e of t.includedReturns)if("last"===e&&s||"firstOfMany"===e&&i&&l||"lastOfMany"===e&&s&&l||"single"===e&&!l){a=!0;break}a||(o=!1);break}}}o&&(r[i]=s,e[3*i]=e[3*s],e[3*i+1]=e[3*s+1],e[3*i+2]=e[3*s+2],t[3*i]=t[3*s],t[3*i+1]=t[3*s+1],t[3*i+2]=t[3*s+2],i++)}return i}(t,a,l,e.filterInfo,i)}for(const n of e.userAttributesData){const e=M(n,t,r);o.push({attributeInfo:n.attributeInfo,values:e})}3*r<a.length&&(a=new Uint8Array(a.buffer.slice(0,3*r))),this._applyElevationOffsetInPlace(t,r,e.elevationOffset);const u=this._transformCoordinates(t,r,T.Eb.fromData(e.obbData),R.c.fromJSON(e.inSR),R.c.fromJSON(e.outSR));return{obbData:e.obbData,points:u,rgb:a,attributes:o,pointIdFilterMap:l}}_transformCoordinates(e,t,r,n,l){if(!(0,y.projectBuffer)(e,n,0,e,l,0,t))throw new Error("Can't reproject");const i=u(r.center),c=a(),p=a(),d=u(r.halfSize);(0,o.fO)(I,r.quaternion);const f=new Float32Array(3*t);for(let r=0;r<t;r++){let t=3*r;c[0]=e[t]-i[0],c[1]=e[t+1]-i[1],c[2]=e[t+2]-i[2],(0,s.u)(p,c,I),d[0]=Math.max(d[0],Math.abs(p[0])),d[1]=Math.max(d[1],Math.abs(p[1])),d[2]=Math.max(d[2],Math.abs(p[2])),f[t++]=c[0],f[t++]=c[1],f[t]=c[2]}return r.halfSize=d,f}_applyElevationOffsetInPlace(e,t,r){if(0!==r)for(let n=0;n<t;n++)e[3*n+2]+=r}}const I=(0,i.Su)();function q(){return new v}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9420],{84752:(e,t,n)=>{n.d(t,{a:()=>v,c:()=>_,d:()=>m,f:()=>q,g:()=>T,i:()=>N,n:()=>j}),n(9456);var r=n(66360),i=n(53648),o=n(15008),s=n(98472),l=n(62484),u=n(74784),a=n(37008),c=n(47364),d=n(82315),p=n(90484),h=n(48880),y=n(20136);const g=m();function m(){return(0,a.Su)()}const f=u.e,S=u.e;function _(e,t){return(0,u.c)(t,e)}function v(e){return e[3]}function T(e){return e}function q(e,t,n,r){return(0,a.WK)(e,t,n,r)}function b(e,t,n){if(null==t)return!1;if(!I(e,t,E))return!1;let{t0:r,t1:i}=E;if((r<0||i<r&&i>0)&&(r=i),r<0)return!1;if(n){const{origin:e,direction:i}=t;n[0]=e[0]+i[0]*r,n[1]=e[1]+i[1]*r,n[2]=e[2]+i[2]*r}return!0}const E={t0:0,t1:0};function I(e,t,n){const{origin:r,direction:i}=t,o=w;o[0]=r[0]-e[0],o[1]=r[1]-e[1],o[2]=r[2]-e[2];const s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;const l=2*(i[0]*o[0]+i[1]*o[1]+i[2]*o[2]),u=l*l-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-e[3]*e[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-l-a)/(2*s),n.t1=(-l+a)/(2*s),!0}const w=(0,l.Su)();function N(e,t){return b(e,t,null)}function V(e,t,n){const r=y.Wq.get(),i=y.SW.get();(0,s.b)(r,t.origin,t.direction);const l=v(e);(0,s.b)(n,r,t.origin),(0,s.h)(n,n,1/(0,s.l)(n)*l);const u=R(e,t.origin),a=(0,h.i4)(t.origin,n);return(0,o.IT)(i,a+u,r),(0,s.e)(n,n,i),n}function O(e,t,n){const r=(0,s.f)(y.Wq.get(),t,e),i=(0,s.h)(y.Wq.get(),r,e[3]/(0,s.l)(r));return(0,s.g)(n,i,e)}function R(e,t){const n=(0,s.f)(y.Wq.get(),t,e),r=(0,s.l)(n),o=v(e),l=o+Math.abs(o-r);return(0,i.Uj)(o/l)}const M=(0,l.Su)();function P(e,t,n,r){const o=(0,s.f)(M,t,e);switch(n){case d.k.X:{const e=(0,i.Iv)(o,M)[2];return(0,s.s)(r,-Math.sin(e),Math.cos(e),0)}case d.k.Y:{const e=(0,i.Iv)(o,M),t=e[1],n=e[2],l=Math.sin(t);return(0,s.s)(r,-l*Math.cos(n),-l*Math.sin(n),Math.cos(t))}case d.k.Z:return(0,s.n)(r,o);default:return}}function x(e,t){const n=(0,s.f)(C,t,e);return(0,s.l)(n)-e[3]}function j(e,t){const n=(0,s.a)(e,t),r=v(e);return n<=r*r}const C=(0,l.Su)(),D=m();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:g,altitudeAt:x,angleToSilhouette:R,axisAt:P,clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,n){return b(e,t,n)?n:((0,p.CE)(t,e,n),O(e,n,n))},closestPointOnSilhouette:V,containsPoint:j,copy:_,create:m,distanceToSilhouette:function(e,t){const n=(0,s.f)(y.Wq.get(),t,e),r=(0,s.o)(n),i=e[3]*e[3];return Math.sqrt(Math.abs(r-i))},elevate:function(e,t,n){return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),n[3]=e[3]+t,n},equals:S,exactEquals:f,fromCenterAndRadius:function(e,t){return(0,a.WK)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:q,getCenter:T,getRadius:v,intersectLine:function(e,t,n){const r=(0,p.i_)(t,n);if(!I(e,r,E))return[];const{origin:i,direction:o}=r,{t0:u,t1:a}=E,d=t=>{const n=(0,l.Su)();return(0,s.q)(n,i,o,t),O(e,n,n)};return Math.abs(u-a)<(0,c.Au)()?[d(u)]:[d(u),d(a)]},intersectRay:b,intersectRayClosestSilhouette:function(e,t,n){if(b(e,t,n))return n;const r=V(e,t,y.Wq.get());return(0,s.g)(n,t.origin,(0,s.h)(y.Wq.get(),t.direction,(0,s.p)(t.origin,r)/(0,s.l)(t.direction))),n},intersectsRay:N,projectPoint:O,setAltitudeAt:function(e,t,n,r){const i=x(e,t),o=P(e,t,d.k.Z,C),l=(0,s.h)(C,o,n-i);return(0,s.g)(r,t,l)},setExtent:function(e,t,n){return r.c.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),e!==n&&_(e,n),n},tmpSphere:D,union:function(e,t,n=(0,a.Su)()){const r=(0,s.p)(e,t),i=e[3],o=t[3];return r+o<i?((0,u.c)(n,e),n):r+i<o?((0,u.c)(n,t),n):((0,s.k)(n,e,t,(r+o-i)/(2*r)),n[3]=(r+i+o)/2,n)},wrap:function(e){return e}},Symbol.toStringTag,{value:"Module"}))},52180:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(52324);class i{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.o)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,o));e++)this._items.push(this._allocator())}}const o=1024},93184:(e,t,n)=>{n.d(t,{M:()=>s});var r=n(62484),i=n(60074),o=n(62880);function s(e,t,n,r){if((0,i.canProjectWithoutEngine)(e.spatialReference,n)){l[0]=e.x,l[1]=e.y;const i=e.z;return l[2]=i??r??0,(0,o.projectBuffer)(l,e.spatialReference,0,t,n,0,1)}const s=(0,i.tryProjectWithZConversion)(e,n);return!!s&&(t[0]=s?.x,t[1]=s?.y,t[2]=s?.z??r??0,!0)}const l=(0,r.Su)()},90484:(e,t,n)=>{n.d(t,{CE:()=>c,Su:()=>s,em:()=>u,i_:()=>a}),n(92400);var r=n(52180),i=n(98472),o=n(62484);function s(e){return e?l((0,o.ct)(e.origin),(0,o.ct)(e.direction)):l((0,o.Su)(),(0,o.Su)())}function l(e,t){return{origin:e,direction:t}}function u(e,t){const n=d.get();return n.origin=e,n.direction=t,n}function a(e,t,n=s()){return(0,i.c)(n.origin,e),(0,i.f)(n.direction,t,e),n}function c(e,t,n){const r=(0,i.j)(e.direction,(0,i.f)(n,t,e.origin));return(0,i.g)(n,e.origin,(0,i.h)(n,e.direction,r)),n}n(20136);const d=new r.o((()=>s()))},600:(e,t,n)=>{n.d(t,{c:()=>m});var r,i=n(41948),o=n(14628),s=n(40504),l=n(1580),u=n(53368),a=(n(72052),n(9456),n(9968)),c=n(33600),d=n(12552),p=n(89812),h=n(36408);const y=new o.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=r=class extends s.am{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 n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?y.fromJSON(n.fieldValueType):null}clone(){return new r({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._)([(0,l.qq)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,i._)([(0,l.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,i._)([(0,l.qq)()],g.prototype,"description",void 0),(0,i._)([(0,c.E)("description")],g.prototype,"readDescription",null),(0,i._)([(0,l.qq)({types:p.i2,json:{read:{reader:p.h4},write:!0}})],g.prototype,"domain",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,i._)([(0,l.qq)({type:u.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],g.prototype,"length",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,i._)([(0,a.G)(h.M)],g.prototype,"type",void 0),(0,i._)([(0,l.qq)()],g.prototype,"valueType",void 0),(0,i._)([(0,c.E)("valueType",["description"])],g.prototype,"readValueType",null),(0,i._)([(0,l.qq)({type:Boolean,json:{read:!1}})],g.prototype,"visible",void 0),g=r=(0,i._)([(0,d.c)("esri.layers.support.Field")],g);const m=g},89812:(e,t,n)=>{n.d(t,{h4:()=>E,i2:()=>b}),n(9456);var r,i=n(41948),o=n(62088),s=n(1580),l=(n(66360),n(9968)),u=n(12552),a=n(40504);n(72052);let c=r=class extends a.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,s.qq)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=r=(0,i._)([(0,u.c)("esri.layers.support.CodedValue")],c);const d=new(n(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends a.am{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,l.G)(d)],p.prototype,"type",void 0),p=(0,i._)([(0,u.c)("esri.layers.support.Domain")],p);const h=p;var y;let g=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,o.ct)(this.codedValues),name:this.name})}};(0,i._)([(0,s.qq)({type:[c],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,i._)([(0,l.G)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=y=(0,i._)([(0,u.c)("esri.layers.support.CodedValueDomain")],g);const m=g;var f;n(20744);let S=f=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,i._)([(0,l.G)({inherited:"inherited"})],S.prototype,"type",void 0),S=f=(0,i._)([(0,u.c)("esri.layers.support.InheritedDomain")],S);const _=S;var v;let T=v=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new v({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,s.qq)({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,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,i._)([(0,s.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,i._)([(0,l.G)({range:"range"})],T.prototype,"type",void 0),T=v=(0,i._)([(0,u.c)("esri.layers.support.RangeDomain")],T);const q=T,b={key:"type",base:h,typeMap:{range:T,"coded-value":m,inherited:_}};function E(e){if(!e?.type)return null;switch(e.type){case"range":return q.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return _.fromJSON(e)}return null}},36408:(e,t,n)=>{n.d(t,{M:()=>r});const r=new(n(14628).O)({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"})},74776:(e,t,n)=>{n.d(t,{Et:()=>_,cx:()=>g}),n(60708);var r=n(2600),i=(n(92400),n(20744),n(9456),n(72008)),o=(n(15008),n(87104)),s=(n(98472),n(62484)),l=(n(60074),n(82448),n(56156));n(93184),l.c.WGS84;var u=n(83372),a=(n(84752),n(95776),n(16848));n(22080),n(51120),n(44728);var c,d=n(37008);!function(e){e[e.INVISIBLE=0]="INVISIBLE",e[e.TRANSPARENT=1]="TRANSPARENT",e[e.OPAQUE=2]="OPAQUE"}(c||(c={}));(0,d.WK)(0,0,0,.2),c.OPAQUE;(0,d.WK)(0,0,0,.2),c.OPAQUE,n(78720);var p,h,y=n(29244);async function g(e,t,n,i,o,s,l,u){const c=[];for(const r of t)if(r&&o.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;c.push({url:t,storageInfo:r})}const d=await Promise.allSettled(c.map((e=>(0,r.c)(e.url,{responseType:"array-buffer",query:{...l,token:s},signal:u?.signal}).then((t=>(0,a.ii)(e.storageInfo,t.data)))))),p=[];for(const e of i){const t={};for(let n=0;n<d.length;n++){const r=d[n];if("fulfilled"===r.status){const i=r.value;t[c[n].storageInfo.name]=S(i,e)}}p.push(t)}return p}(0,u.Su)(),(h=p||(p={}))[h.OUTSIDE=0]="OUTSIDE",h[h.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",h[h.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",h[h.INSIDE=3]="INSIDE";const m=-32768,f=-(2**31);function S(e,t){if(!e)return null;const n=e[t];return(0,i.IT)(e)?n===m?null:n:(0,i.Mx)(e)?n===f?null:n:n!=n?null:n}function _(e){null!=e&&(e[3]=-1)}(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,u.Su)(),(0,u.Su)(),new y.Eb,(0,s.Su)(),new Array(72),(0,o.Su)()},78720:(e,t,n)=>{var r,i;n.d(t,{KQ:()=>r}),n(53648),(i=r||(r={}))[i.Multiply=1]="Multiply",i[i.Ignore=2]="Ignore",i[i.Replace=3]="Replace",i[i.Tint=4]="Tint"}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9420],{84752:(e,t,n)=>{n.d(t,{a:()=>v,c:()=>_,d:()=>m,f:()=>q,g:()=>T,i:()=>N,n:()=>j}),n(9456);var r=n(66360),i=n(53648),o=n(15008),s=n(98472),l=n(62484),u=n(74784),a=n(37008),c=n(47364),d=n(82315),p=n(90484),h=n(48880),y=n(20136);const g=m();function m(){return(0,a.Su)()}const f=u.e,S=u.e;function _(e,t){return(0,u.c)(t,e)}function v(e){return e[3]}function T(e){return e}function q(e,t,n,r){return(0,a.WK)(e,t,n,r)}function b(e,t,n){if(null==t)return!1;if(!I(e,t,E))return!1;let{t0:r,t1:i}=E;if((r<0||i<r&&i>0)&&(r=i),r<0)return!1;if(n){const{origin:e,direction:i}=t;n[0]=e[0]+i[0]*r,n[1]=e[1]+i[1]*r,n[2]=e[2]+i[2]*r}return!0}const E={t0:0,t1:0};function I(e,t,n){const{origin:r,direction:i}=t,o=w;o[0]=r[0]-e[0],o[1]=r[1]-e[1],o[2]=r[2]-e[2];const s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;const l=2*(i[0]*o[0]+i[1]*o[1]+i[2]*o[2]),u=l*l-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-e[3]*e[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-l-a)/(2*s),n.t1=(-l+a)/(2*s),!0}const w=(0,l.Su)();function N(e,t){return b(e,t,null)}function V(e,t,n){const r=y.Wq.get(),i=y.SW.get();(0,s.b)(r,t.origin,t.direction);const l=v(e);(0,s.b)(n,r,t.origin),(0,s.h)(n,n,1/(0,s.l)(n)*l);const u=R(e,t.origin),a=(0,h.i4)(t.origin,n);return(0,o.IT)(i,a+u,r),(0,s.e)(n,n,i),n}function O(e,t,n){const r=(0,s.f)(y.Wq.get(),t,e),i=(0,s.h)(y.Wq.get(),r,e[3]/(0,s.l)(r));return(0,s.g)(n,i,e)}function R(e,t){const n=(0,s.f)(y.Wq.get(),t,e),r=(0,s.l)(n),o=v(e),l=o+Math.abs(o-r);return(0,i.Uj)(o/l)}const M=(0,l.Su)();function P(e,t,n,r){const o=(0,s.f)(M,t,e);switch(n){case d.k.X:{const e=(0,i.Iv)(o,M)[2];return(0,s.s)(r,-Math.sin(e),Math.cos(e),0)}case d.k.Y:{const e=(0,i.Iv)(o,M),t=e[1],n=e[2],l=Math.sin(t);return(0,s.s)(r,-l*Math.cos(n),-l*Math.sin(n),Math.cos(t))}case d.k.Z:return(0,s.n)(r,o);default:return}}function x(e,t){const n=(0,s.f)(C,t,e);return(0,s.l)(n)-e[3]}function j(e,t){const n=(0,s.a)(e,t),r=v(e);return n<=r*r}const C=(0,l.Su)(),D=m();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:g,altitudeAt:x,angleToSilhouette:R,axisAt:P,clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,n){return b(e,t,n)?n:((0,p.CE)(t,e,n),O(e,n,n))},closestPointOnSilhouette:V,containsPoint:j,copy:_,create:m,distanceToSilhouette:function(e,t){const n=(0,s.f)(y.Wq.get(),t,e),r=(0,s.p)(n),i=e[3]*e[3];return Math.sqrt(Math.abs(r-i))},elevate:function(e,t,n){return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),n[3]=e[3]+t,n},equals:S,exactEquals:f,fromCenterAndRadius:function(e,t){return(0,a.WK)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:q,getCenter:T,getRadius:v,intersectLine:function(e,t,n){const r=(0,p.i_)(t,n);if(!I(e,r,E))return[];const{origin:i,direction:o}=r,{t0:u,t1:a}=E,d=t=>{const n=(0,l.Su)();return(0,s.r)(n,i,o,t),O(e,n,n)};return Math.abs(u-a)<(0,c.Au)()?[d(u)]:[d(u),d(a)]},intersectRay:b,intersectRayClosestSilhouette:function(e,t,n){if(b(e,t,n))return n;const r=V(e,t,y.Wq.get());return(0,s.g)(n,t.origin,(0,s.h)(y.Wq.get(),t.direction,(0,s.q)(t.origin,r)/(0,s.l)(t.direction))),n},intersectsRay:N,projectPoint:O,setAltitudeAt:function(e,t,n,r){const i=x(e,t),o=P(e,t,d.k.Z,C),l=(0,s.h)(C,o,n-i);return(0,s.g)(r,t,l)},setExtent:function(e,t,n){return r.c.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),e!==n&&_(e,n),n},tmpSphere:D,union:function(e,t,n=(0,a.Su)()){const r=(0,s.q)(e,t),i=e[3],o=t[3];return r+o<i?((0,u.c)(n,e),n):r+i<o?((0,u.c)(n,t),n):((0,s.m)(n,e,t,(r+o-i)/(2*r)),n[3]=(r+i+o)/2,n)},wrap:function(e){return e}},Symbol.toStringTag,{value:"Module"}))},52180:(e,t,n)=>{n.d(t,{o:()=>i});var r=n(52324);class i{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.o)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,o));e++)this._items.push(this._allocator())}}const o=1024},93184:(e,t,n)=>{n.d(t,{M:()=>s});var r=n(62484),i=n(60074),o=n(62880);function s(e,t,n,r){if((0,i.canProjectWithoutEngine)(e.spatialReference,n)){l[0]=e.x,l[1]=e.y;const i=e.z;return l[2]=i??r??0,(0,o.projectBuffer)(l,e.spatialReference,0,t,n,0,1)}const s=(0,i.tryProjectWithZConversion)(e,n);return!!s&&(t[0]=s?.x,t[1]=s?.y,t[2]=s?.z??r??0,!0)}const l=(0,r.Su)()},90484:(e,t,n)=>{n.d(t,{CE:()=>c,Su:()=>s,em:()=>u,i_:()=>a}),n(92400);var r=n(52180),i=n(98472),o=n(62484);function s(e){return e?l((0,o.ct)(e.origin),(0,o.ct)(e.direction)):l((0,o.Su)(),(0,o.Su)())}function l(e,t){return{origin:e,direction:t}}function u(e,t){const n=d.get();return n.origin=e,n.direction=t,n}function a(e,t,n=s()){return(0,i.c)(n.origin,e),(0,i.f)(n.direction,t,e),n}function c(e,t,n){const r=(0,i.k)(e.direction,(0,i.f)(n,t,e.origin));return(0,i.g)(n,e.origin,(0,i.h)(n,e.direction,r)),n}n(20136);const d=new r.o((()=>s()))},600:(e,t,n)=>{n.d(t,{c:()=>m});var r,i=n(41948),o=n(14628),s=n(40504),l=n(1580),u=n(53368),a=(n(72052),n(9456),n(9968)),c=n(33600),d=n(12552),p=n(89812),h=n(36408);const y=new o.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let g=r=class extends s.am{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 n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?y.fromJSON(n.fieldValueType):null}clone(){return new r({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._)([(0,l.qq)({type:String,json:{write:!0}})],g.prototype,"alias",void 0),(0,i._)([(0,l.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],g.prototype,"defaultValue",void 0),(0,i._)([(0,l.qq)()],g.prototype,"description",void 0),(0,i._)([(0,c.E)("description")],g.prototype,"readDescription",null),(0,i._)([(0,l.qq)({types:p.i2,json:{read:{reader:p.h4},write:!0}})],g.prototype,"domain",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],g.prototype,"editable",void 0),(0,i._)([(0,l.qq)({type:u.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],g.prototype,"length",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],g.prototype,"name",void 0),(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],g.prototype,"nullable",void 0),(0,i._)([(0,a.G)(h.M)],g.prototype,"type",void 0),(0,i._)([(0,l.qq)()],g.prototype,"valueType",void 0),(0,i._)([(0,c.E)("valueType",["description"])],g.prototype,"readValueType",null),(0,i._)([(0,l.qq)({type:Boolean,json:{read:!1}})],g.prototype,"visible",void 0),g=r=(0,i._)([(0,d.c)("esri.layers.support.Field")],g);const m=g},89812:(e,t,n)=>{n.d(t,{h4:()=>E,i2:()=>b}),n(9456);var r,i=n(41948),o=n(62088),s=n(1580),l=(n(66360),n(9968)),u=n(12552),a=n(40504);n(72052);let c=r=class extends a.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,s.qq)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=r=(0,i._)([(0,u.c)("esri.layers.support.CodedValue")],c);const d=new(n(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends a.am{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,s.qq)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,l.G)(d)],p.prototype,"type",void 0),p=(0,i._)([(0,u.c)("esri.layers.support.Domain")],p);const h=p;var y;let g=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,o.ct)(this.codedValues),name:this.name})}};(0,i._)([(0,s.qq)({type:[c],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,i._)([(0,l.G)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=y=(0,i._)([(0,u.c)("esri.layers.support.CodedValueDomain")],g);const m=g;var f;n(20744);let S=f=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,i._)([(0,l.G)({inherited:"inherited"})],S.prototype,"type",void 0),S=f=(0,i._)([(0,u.c)("esri.layers.support.InheritedDomain")],S);const _=S;var v;let T=v=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new v({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,s.qq)({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,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,i._)([(0,s.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,i._)([(0,l.G)({range:"range"})],T.prototype,"type",void 0),T=v=(0,i._)([(0,u.c)("esri.layers.support.RangeDomain")],T);const q=T,b={key:"type",base:h,typeMap:{range:T,"coded-value":m,inherited:_}};function E(e){if(!e?.type)return null;switch(e.type){case"range":return q.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return _.fromJSON(e)}return null}},36408:(e,t,n)=>{n.d(t,{M:()=>r});const r=new(n(14628).O)({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"})},74776:(e,t,n)=>{n.d(t,{Et:()=>_,cx:()=>g}),n(60708);var r=n(2600),i=(n(92400),n(20744),n(9456),n(72008)),o=(n(15008),n(87104)),s=(n(98472),n(62484)),l=(n(60074),n(82448),n(56156));n(93184),l.c.WGS84;var u=n(83372),a=(n(84752),n(95776),n(16848));n(22080),n(51120),n(44728);var c,d=n(37008);!function(e){e[e.INVISIBLE=0]="INVISIBLE",e[e.TRANSPARENT=1]="TRANSPARENT",e[e.OPAQUE=2]="OPAQUE"}(c||(c={}));(0,d.WK)(0,0,0,.2),c.OPAQUE;(0,d.WK)(0,0,0,.2),c.OPAQUE,n(78720);var p,h,y=n(29244);async function g(e,t,n,i,o,s,l,u){const c=[];for(const r of t)if(r&&o.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;c.push({url:t,storageInfo:r})}const d=await Promise.allSettled(c.map((e=>(0,r.c)(e.url,{responseType:"array-buffer",query:{...l,token:s},signal:u?.signal}).then((t=>(0,a.ii)(e.storageInfo,t.data)))))),p=[];for(const e of i){const t={};for(let n=0;n<d.length;n++){const r=d[n];if("fulfilled"===r.status){const i=r.value;t[c[n].storageInfo.name]=S(i,e)}}p.push(t)}return p}(0,u.Su)(),(h=p||(p={}))[h.OUTSIDE=0]="OUTSIDE",h[h.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",h[h.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",h[h.INSIDE=3]="INSIDE";const m=-32768,f=-(2**31);function S(e,t){if(!e)return null;const n=e[t];return(0,i.IT)(e)?n===m?null:n:(0,i.Mx)(e)?n===f?null:n:n!=n?null:n}function _(e){null!=e&&(e[3]=-1)}(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,s.Su)(),(0,u.Su)(),(0,u.Su)(),new y.Eb,(0,s.Su)(),new Array(72),(0,o.Su)()},78720:(e,t,n)=>{var r,i;n.d(t,{KQ:()=>r}),n(53648),(i=r||(r={}))[i.Multiply=1]="Multiply",i[i.Ignore=2]="Ignore",i[i.Replace=3]="Replace",i[i.Tint=4]="Tint"}}]);