@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([[9232],{69232:(e,a,r)=>{r.r(a),r.d(a,{fromUrl:()=>d});var t=r(20744),n=r(28176),l=r(48212),s=r(50420),i=r(13608),o=r(71068),c=r(83928),u=r(66668);const y={FeatureLayer:!0,SceneLayer:!0};async function d(e){const a=e.properties?.customParameters,c=await async function(e,a){let r=(0,l.K0)(e);if(null==r&&(r=await async function(e,a){const r=await(0,u.S)(e,{customParameters:a});let t=null,s=null;const i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":m(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&m(r.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.Ej)(e):null;return{title:null!=o&&r.name||(0,n.u8)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.as)(e).path}}}(e,a)),null==r)throw new t.c("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:c,sublayer:d}=r;let f;const h={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"},p="FeatureServer"===c,S="SceneServer"===c,b={parsedUrl:r,Constructor:null,layerId:p||S?d??void 0:void 0,layers:[],tables:[]};switch(c){case"MapServer":f=null!=d?"FeatureLayer":await async function(e,a){return(await(0,u.S)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const r=await(0,u.S)(e,{customParameters:a}),{tileInfo:t,cacheType:n}=r;f=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,u.S)(r.url.path,{customParameters:a});if(f="SceneLayer",e){const a=e?.layers;if("Voxel"===e?.layerType)f="VoxelLayer";else if(a?.length){const e=a[0]?.layerType;null!=e&&null!=o.Wr[e]&&(f=o.Wr[e])}}break}case"3DTilesServer":throw new t.c("arcgis-layers:unsupported","fromUrl() not supported for 3DTiles layers");case"FeatureServer":if(f="FeatureLayer",null!=d){const r=await(0,u.S)(e,{customParameters:a});b.sourceJSON=r,"Oriented Imagery Layer"===r.type&&(f="OrientedImageryLayer")}break;default:f=h[c]}if(y[f]&&null==d){const r=await async function(e,a,r){let t,n,l=!1;switch(a){case"FeatureServer":{const a=await(0,i.I)(e,{customParameters:r});l=!!a.layersJSON,t=a.layersJSON||a.serviceJSON;break}case"SceneServer":{const a=await async function(e,a){const r=await(0,u.S)(e,{customParameters:a}),t=r.layers?.[0];if(!t)return{serviceInfo:r};try{const{serverUrl:t}=await(0,s.S)(e),n=await(0,u.S)(t,{customParameters:a}).catch((()=>null));return n&&(r.tables=n.tables),{serviceInfo:r,tableServerUrl:t}}catch{return{serviceInfo:r}}}(e,r);t=a.serviceInfo,n=a.tableServerUrl;break}default:t=await(0,u.S)(e,{customParameters:r})}const o=t?.layers,c=t?.tables;return{layers:o?.map((e=>({id:e.id}))).reverse()||[],tables:c?.map((e=>({serverUrl:n,id:e.id}))).reverse()||[],layerInfos:l?o:[],tableInfos:l?c:[]}}(e,c,a);if(p&&(b.sublayerInfos=r.layerInfos,b.tableInfos=r.tableInfos),1!==r.layers.length+r.tables.length)b.layers=r.layers,b.tables=r.tables,p&&r.layerInfos?.length&&(b.sublayerConstructorProvider=await async function(e){const a=[],r=[];if(e.forEach((e=>{const{type:t}=e;"Oriented Imagery Layer"===t?(a.push(t),r.push(w("OrientedImageryLayer"))):(a.push(t),r.push(w("FeatureLayer")))})),!r.length)return;const t=await Promise.all(r),n=new Map;return a.forEach(((e,a)=>{n.set(e,t[a])})),e=>n.get(e.type)}(r.layerInfos));else if(p||S){const e=r.layerInfos?.[0]??r.tableInfos?.[0];b.layerId=r.layers[0]?.id??r.tables[0]?.id,b.sourceJSON=e,p&&"Oriented Imagery Layer"===e?.type&&(f="OrientedImageryLayer")}}return b.Constructor=await w(f),b}(e.url,a),d={...e.properties,url:e.url};if(c.layers.length+c.tables.length===0)return null!=c.layerId&&(d.layerId=c.layerId),null!=c.sourceJSON&&(d.sourceJSON=c.sourceJSON),new c.Constructor(d);const h=new(0,(await Promise.all([r.e(5612),r.e(5076)]).then(r.bind(r,44080))).default)({title:c.parsedUrl.title});return await async function(e,a,r){function t(e,a,t,n){const l={...r,layerId:a,sublayerTitleMode:"service-name"};return null!=e&&(l.url=e),null!=t&&(l.sourceJSON=t),n(l)}const n=a.sublayerConstructorProvider;for(const{id:r,serverUrl:l}of a.layers){const s=f(a.sublayerInfos,r),i=(s&&n?.(s))??a.Constructor,o=t(l,r,s,(e=>new i(e)));e.add(o)}if(a.tables.length){const r=await w("FeatureLayer");a.tables.forEach((({id:n,serverUrl:l})=>{const s=t(l,n,f(a.tableInfos,n),(e=>new r(e)));e.tables.add(s)}))}}(h,c,d),h}function f(e,a){return e?e.find((e=>e.id===a)):null}function m(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function w(e){return(0,c.q[e])()}},50420:(e,a,r)=>{r.d(a,{S:()=>u});var t=r(47620),n=r(2600),l=r(20744),s=r(10860),i=r(48212),o=r(54872),c=r(9764);async function u(e,a){const r=(0,i.K0)(e);if(!r)throw new l.c("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const r=new c.default({id:a,apiKey:e.apiKey}),l=await async function(e){const a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.c)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.CE)(e)}return null}(e);null!=l&&(r.portal=new o.c({url:l}));try{return r.load({signal:e.signal})}catch(e){return(0,s.CE)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find((e=>"Feature Service"===e.type))||null;if(!r)return null;const t=new c.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.CE)(e),null}}(u);if(!f?.url)throw new l.c("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.c)(e.sceneServerUrl,a);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const r=(0,i.K0)(e);if(!r)throw new l.c("invalid-feature-service-url","Invalid feature service url");const t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};const o=y(a),c=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,d=e=>{const r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.c)(t,r)},f=d("anonymous").catch((()=>d("no-prompt"))),[m,w]=await Promise.all([f,o]),h=w?.layers,p=m.data&&m.data.layers;if(!Array.isArray(p))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,p.length);e++)if(h[e].id===s)return{serverUrl:t,layerId:p[e].id}}else if(null!=s&&s<p.length)return{serverUrl:t,layerId:p[s].id};throw new Error("could not find matching associated sublayer")}},13608:(e,a,r)=>{r.d(a,{I:()=>n});var t=r(66668);async function n(e,a){const{loadContext:r,...n}=a||{},l=r?await r.fetchServiceMetadata(e,n):await(0,t.S)(e,n);u(l),i(l);const s={serviceJSON:l};if((l.currentVersion??0)<10.5)return s;const o=`${e}/layers`,c=r?await r.fetchServiceMetadata(o,n):await(0,t.S)(o,n);return u(c),i(c),s.layersJSON={layers:c.layers,tables:c.tables},s}function l(e){return"Feature Layer"===e.type||"Oriented Imagery Layer"===e.type}function s(e){return"Table"===e.type}function i(e){e.layers=e.layers?.filter(l),e.tables=e.tables?.filter(s)}function o(e){e.type||="Feature Layer"}function c(e){e.type||="Table"}function u(e){e.layers?.forEach(o),e.tables?.forEach(c)}},83928:(e,a,r)=>{r.d(a,{q:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3912)]).then(r.bind(r,48388))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(3180),r.e(9644),r.e(8344),r.e(9420),r.e(8644),r.e(5928)]).then(r.bind(r,10948))).default,CatalogLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(2664),r.e(2848),r.e(5468),r.e(572),r.e(2907)]).then(r.bind(r,20324))).default,CSVLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(1744)]).then(r.bind(r,79468))).default,DimensionLayer:async()=>(await Promise.all([r.e(5612),r.e(7832)]).then(r.bind(r,28320))).default,ElevationLayer:async()=>(await Promise.all([r.e(5612),r.e(2968),r.e(8380)]).then(r.bind(r,47104))).default,FeatureLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(8348)]).then(r.bind(r,672))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(6528)]).then(r.bind(r,92768))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(7988),r.e(7148),r.e(2672)]).then(r.bind(r,43984))).default,GroupLayer:async()=>(await Promise.all([r.e(5612),r.e(7456)]).then(r.bind(r,44080))).default,ImageryLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(2848),r.e(6128),r.e(9056),r.e(3291)]).then(r.bind(r,7896))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(6128),r.e(7048),r.e(9056),r.e(5496)]).then(r.bind(r,82744))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(5612),r.e(9644),r.e(7024)]).then(r.bind(r,96584))).default,KMLLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(236),r.e(9032)]).then(r.bind(r,53688))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(5612),r.e(3536)]).then(r.bind(r,91884))).default,LinkChartLayer:async()=>(await Promise.all([r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(9512),r.e(3220),r.e(1512),r.e(6680),r.e(8080)]).then(r.bind(r,54192))).default,MapImageLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(2848),r.e(5468),r.e(1248),r.e(3089)]).then(r.bind(r,3089))).default,MapNotesLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(9516)]).then(r.bind(r,37784))).default,MediaLayer:async()=>(await Promise.all([r.e(5612),r.e(2364)]).then(r.bind(r,66664))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(3160),r.e(8224)]).then(r.bind(r,56288))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632),r.e(1244)]).then(r.bind(r,1244))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(1740)]).then(r.bind(r,75432))).default,PointCloudLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(9644),r.e(2296)]).then(r.bind(r,21680))).default,RouteLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(236),r.e(6352)]).then(r.bind(r,40900))).default,SceneLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(8624),r.e(3180),r.e(9644),r.e(8344),r.e(9420),r.e(7424),r.e(4716),r.e(8644),r.e(712)]).then(r.bind(r,3688))).default,StreamLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(3460)]).then(r.bind(r,18e3))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(2664),r.e(6556),r.e(5368),r.e(2608)]).then(r.bind(r,8444))).default,TileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(2848),r.e(5468),r.e(2968),r.e(1248),r.e(0)]).then(r.bind(r,5e4))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(5612),r.e(7752)]).then(r.bind(r,71316))).default,UnknownLayer:async()=>(await r.e(6584).then(r.bind(r,56584))).default,UnsupportedLayer:async()=>(await r.e(2456).then(r.bind(r,12456))).default,VectorTileLayer:async()=>(await Promise.all([r.e(5612),r.e(2968),r.e(3780),r.e(6055),r.e(7936)]).then(r.bind(r,65632))).default,VoxelLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(9644),r.e(8256)]).then(r.bind(r,59496))).default,WFSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(4808),r.e(3688)]).then(r.bind(r,53440))).default,WMSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(280)]).then(r.bind(r,85024))).default,WMTSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632),r.e(4832)]).then(r.bind(r,54832))).default,WebTileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632)]).then(r.bind(r,32896))).default}},66668:(e,a,r)=>{r.d(a,{S:()=>n});var t=r(2600);async function n(e,a){const{data:r}=await(0,t.c)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9232],{69232:(e,a,r)=>{r.r(a),r.d(a,{fromUrl:()=>d});var t=r(20744),n=r(28176),l=r(48212),s=r(50420),i=r(13608),o=r(71068),c=r(83928),u=r(66668);const y={FeatureLayer:!0,SceneLayer:!0};async function d(e){const a=e.properties?.customParameters,c=await async function(e,a){let r=(0,l.K0)(e);if(null==r&&(r=await async function(e,a){const r=await(0,u.S)(e,{customParameters:a});let t=null,s=null;const i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":m(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&m(r.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.Ej)(e):null;return{title:null!=o&&r.name||(0,n.u8)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.as)(e).path}}}(e,a)),null==r)throw new t.c("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:c,sublayer:d}=r;let f;const h={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"},p="FeatureServer"===c,S="SceneServer"===c,b={parsedUrl:r,Constructor:null,layerId:p||S?d??void 0:void 0,layers:[],tables:[]};switch(c){case"MapServer":f=null!=d?"FeatureLayer":await async function(e,a){return(await(0,u.S)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const r=await(0,u.S)(e,{customParameters:a}),{tileInfo:t,cacheType:n}=r;f=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,u.S)(r.url.path,{customParameters:a});if(f="SceneLayer",e){const a=e?.layers;if("Voxel"===e?.layerType)f="VoxelLayer";else if(a?.length){const e=a[0]?.layerType;null!=e&&null!=o.Wr[e]&&(f=o.Wr[e])}}break}case"3DTilesServer":throw new t.c("arcgis-layers:unsupported","fromUrl() not supported for 3DTiles layers");case"FeatureServer":if(f="FeatureLayer",null!=d){const r=await(0,u.S)(e,{customParameters:a});b.sourceJSON=r,"Oriented Imagery Layer"===r.type&&(f="OrientedImageryLayer")}break;default:f=h[c]}if(y[f]&&null==d){const r=await async function(e,a,r){let t,n,l=!1;switch(a){case"FeatureServer":{const a=await(0,i.I)(e,{customParameters:r});l=!!a.layersJSON,t=a.layersJSON||a.serviceJSON;break}case"SceneServer":{const a=await async function(e,a){const r=await(0,u.S)(e,{customParameters:a}),t=r.layers?.[0];if(!t)return{serviceInfo:r};try{const{serverUrl:t}=await(0,s.S)(e),n=await(0,u.S)(t,{customParameters:a}).catch((()=>null));return n&&(r.tables=n.tables),{serviceInfo:r,tableServerUrl:t}}catch{return{serviceInfo:r}}}(e,r);t=a.serviceInfo,n=a.tableServerUrl;break}default:t=await(0,u.S)(e,{customParameters:r})}const o=t?.layers,c=t?.tables;return{layers:o?.map((e=>({id:e.id}))).reverse()||[],tables:c?.map((e=>({serverUrl:n,id:e.id}))).reverse()||[],layerInfos:l?o:[],tableInfos:l?c:[]}}(e,c,a);if(p&&(b.sublayerInfos=r.layerInfos,b.tableInfos=r.tableInfos),1!==r.layers.length+r.tables.length)b.layers=r.layers,b.tables=r.tables,p&&r.layerInfos?.length&&(b.sublayerConstructorProvider=await async function(e){const a=[],r=[];if(e.forEach((e=>{const{type:t}=e;"Oriented Imagery Layer"===t?(a.push(t),r.push(w("OrientedImageryLayer"))):(a.push(t),r.push(w("FeatureLayer")))})),!r.length)return;const t=await Promise.all(r),n=new Map;return a.forEach(((e,a)=>{n.set(e,t[a])})),e=>n.get(e.type)}(r.layerInfos));else if(p||S){const e=r.layerInfos?.[0]??r.tableInfos?.[0];b.layerId=r.layers[0]?.id??r.tables[0]?.id,b.sourceJSON=e,p&&"Oriented Imagery Layer"===e?.type&&(f="OrientedImageryLayer")}}return b.Constructor=await w(f),b}(e.url,a),d={...e.properties,url:e.url};if(c.layers.length+c.tables.length===0)return null!=c.layerId&&(d.layerId=c.layerId),null!=c.sourceJSON&&(d.sourceJSON=c.sourceJSON),new c.Constructor(d);const h=new(0,(await Promise.all([r.e(5612),r.e(5076)]).then(r.bind(r,44080))).default)({title:c.parsedUrl.title});return await async function(e,a,r){function t(e,a,t,n){const l={...r,layerId:a,sublayerTitleMode:"service-name"};return null!=e&&(l.url=e),null!=t&&(l.sourceJSON=t),n(l)}const n=a.sublayerConstructorProvider;for(const{id:r,serverUrl:l}of a.layers){const s=f(a.sublayerInfos,r),i=(s&&n?.(s))??a.Constructor,o=t(l,r,s,(e=>new i(e)));e.add(o)}if(a.tables.length){const r=await w("FeatureLayer");a.tables.forEach((({id:n,serverUrl:l})=>{const s=t(l,n,f(a.tableInfos,n),(e=>new r(e)));e.tables.add(s)}))}}(h,c,d),h}function f(e,a){return e?e.find((e=>e.id===a)):null}function m(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function w(e){return(0,c.q[e])()}},50420:(e,a,r)=>{r.d(a,{S:()=>u});var t=r(47620),n=r(2600),l=r(20744),s=r(10860),i=r(48212),o=r(54872),c=r(9764);async function u(e,a){const r=(0,i.K0)(e);if(!r)throw new l.c("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const r=new c.default({id:a,apiKey:e.apiKey}),l=await async function(e){const a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.c)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.CE)(e)}return null}(e);null!=l&&(r.portal=new o.c({url:l}));try{return r.load({signal:e.signal})}catch(e){return(0,s.CE)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find((e=>"Feature Service"===e.type))||null;if(!r)return null;const t=new c.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.CE)(e),null}}(u);if(!f?.url)throw new l.c("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.c)(e.sceneServerUrl,a);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const r=(0,i.K0)(e);if(!r)throw new l.c("invalid-feature-service-url","Invalid feature service url");const t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};const o=y(a),c=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,d=e=>{const r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.c)(t,r)},f=d("anonymous").catch((()=>d("no-prompt"))),[m,w]=await Promise.all([f,o]),h=w?.layers,p=m.data&&m.data.layers;if(!Array.isArray(p))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,p.length);e++)if(h[e].id===s)return{serverUrl:t,layerId:p[e].id}}else if(null!=s&&s<p.length)return{serverUrl:t,layerId:p[s].id};throw new Error("could not find matching associated sublayer")}},13608:(e,a,r)=>{r.d(a,{I:()=>n});var t=r(66668);async function n(e,a){const{loadContext:r,...n}=a||{},l=r?await r.fetchServiceMetadata(e,n):await(0,t.S)(e,n);u(l),i(l);const s={serviceJSON:l};if((l.currentVersion??0)<10.5)return s;const o=`${e}/layers`,c=r?await r.fetchServiceMetadata(o,n):await(0,t.S)(o,n);return u(c),i(c),s.layersJSON={layers:c.layers,tables:c.tables},s}function l(e){return"Feature Layer"===e.type||"Oriented Imagery Layer"===e.type}function s(e){return"Table"===e.type}function i(e){e.layers=e.layers?.filter(l),e.tables=e.tables?.filter(s)}function o(e){e.type||="Feature Layer"}function c(e){e.type||="Table"}function u(e){e.layers?.forEach(o),e.tables?.forEach(c)}},83928:(e,a,r)=>{r.d(a,{q:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3912)]).then(r.bind(r,48388))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(3180),r.e(9644),r.e(8344),r.e(9420),r.e(8644),r.e(5928)]).then(r.bind(r,10948))).default,CatalogLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(2664),r.e(2848),r.e(5468),r.e(572),r.e(2907)]).then(r.bind(r,20324))).default,CSVLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(1744)]).then(r.bind(r,79468))).default,DimensionLayer:async()=>(await Promise.all([r.e(5612),r.e(7832)]).then(r.bind(r,28320))).default,ElevationLayer:async()=>(await Promise.all([r.e(5612),r.e(2968),r.e(8380)]).then(r.bind(r,47104))).default,FeatureLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(8348)]).then(r.bind(r,672))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(6528)]).then(r.bind(r,92768))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(7988),r.e(7148),r.e(2672)]).then(r.bind(r,43984))).default,GroupLayer:async()=>(await Promise.all([r.e(5612),r.e(7456)]).then(r.bind(r,44080))).default,ImageryLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(2848),r.e(6128),r.e(9056),r.e(3291)]).then(r.bind(r,7896))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(6128),r.e(7048),r.e(9056),r.e(5496)]).then(r.bind(r,82744))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(5612),r.e(9644),r.e(7024)]).then(r.bind(r,96584))).default,KMLLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(236),r.e(9032)]).then(r.bind(r,53688))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(5612),r.e(3536)]).then(r.bind(r,91884))).default,LinkChartLayer:async()=>(await Promise.all([r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(9512),r.e(3220),r.e(1512),r.e(6680),r.e(8080)]).then(r.bind(r,54192))).default,MapImageLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(2848),r.e(5468),r.e(1248),r.e(3089)]).then(r.bind(r,3089))).default,MapNotesLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(9516)]).then(r.bind(r,37784))).default,MediaLayer:async()=>(await Promise.all([r.e(5612),r.e(2364)]).then(r.bind(r,66664))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(3160),r.e(8224)]).then(r.bind(r,56288))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632),r.e(1244)]).then(r.bind(r,1244))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(1740)]).then(r.bind(r,75432))).default,PointCloudLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(9644),r.e(2296)]).then(r.bind(r,21680))).default,RouteLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(236),r.e(6352)]).then(r.bind(r,40900))).default,SceneLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(8624),r.e(3180),r.e(9644),r.e(8344),r.e(9420),r.e(7424),r.e(9780),r.e(8644),r.e(712)]).then(r.bind(r,3688))).default,StreamLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(3460)]).then(r.bind(r,18e3))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(2664),r.e(6556),r.e(5368),r.e(2608)]).then(r.bind(r,8444))).default,TileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(2848),r.e(5468),r.e(2968),r.e(1248),r.e(0)]).then(r.bind(r,5e4))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(5612),r.e(7752)]).then(r.bind(r,71316))).default,UnknownLayer:async()=>(await r.e(6584).then(r.bind(r,56584))).default,UnsupportedLayer:async()=>(await r.e(2456).then(r.bind(r,12456))).default,VectorTileLayer:async()=>(await Promise.all([r.e(5612),r.e(2968),r.e(3780),r.e(6055),r.e(7936)]).then(r.bind(r,65632))).default,VoxelLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(9644),r.e(8256)]).then(r.bind(r,59496))).default,WFSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(9364),r.e(4984),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(4808),r.e(3688)]).then(r.bind(r,53440))).default,WMSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(7148),r.e(280)]).then(r.bind(r,85024))).default,WMTSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632),r.e(4832)]).then(r.bind(r,54832))).default,WebTileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632)]).then(r.bind(r,32896))).default}},66668:(e,a,r)=>{r.d(a,{S:()=>n});var t=r(2600);async function n(e,a){const{data:r}=await(0,t.c)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[456],{52180:(t,e,r)=>{r.d(e,{o:()=>n});var s=r(52324);class n{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,s.o)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},93184:(t,e,r)=>{r.d(e,{M:()=>a});var s=r(62484),n=r(60074),o=r(62880);function a(t,e,r,s){if((0,n.canProjectWithoutEngine)(t.spatialReference,r)){i[0]=t.x,i[1]=t.y;const n=t.z;return i[2]=n??s??0,(0,o.projectBuffer)(i,t.spatialReference,0,e,r,0,1)}const a=(0,n.tryProjectWithZConversion)(t,r);return!!a&&(e[0]=a?.x,e[1]=a?.y,e[2]=a?.z??s??0,!0)}const i=(0,s.Su)()},12784:(t,e,r)=>{r.r(e),r.d(e,{assetMapFromAssetMapsJSON:()=>S,extractMesh:()=>w,meshFeatureSetFromJSON:()=>g});var s=r(6444),n=r(66360),o=r(86916),a=r(95247),i=r(94716),u=r(67776),c=r(56156),l=r(41104),f=r(54264),h=r(4048),m=r(59500);const p=()=>n.c.getLogger("esri.rest.support.meshFeatureSet");function g(t,e,r){const n=r.features;r.features=[],delete r.geometryType;const o=m.c.fromJSON(r);if(o.geometryType="mesh",!r.assetMaps)return o;const a=S(e,r.assetMaps),i=t.sourceSpatialReference??c.c.WGS84,u=r.globalIdFieldName,{outFields:l}=t,f=null!=l&&l.length>0?(h=l.includes("*")?null:new Set(l),({attributes:t})=>{if(!t)return{};if(!h)return t;for(const e in t)h.has(e)||delete t[e];return t}):()=>({});var h;for(const t of n){const r=w(t,u,i,e,a);null!=r&&o.features.push(new s.c({geometry:r,attributes:f(t)}))}return o}function w(t,e,r,s,n){const o=t.attributes[e],c=n.get(o);if(null==c)return p().error("mesh-feature-set:asset-not-found","Service returned a feature which was not found in the asset map",t),null;if(!t.geometry)return p().error("mesh-feature-set:no-geometry","Service returned a feature without geometry",t),null;const h=function({attributes:t},e,{transformFieldRoles:r}){const s=t[r.originX],n=t[r.originY],o=t[r.originZ];return new u.c({x:s,y:n,z:o,spatialReference:e})}(t,r,s),m=a.c.fromJSON(t.geometry);m.spatialReference=r;const g=function(t,{transformFieldRoles:e}){return new l.c({translation:[t[e.translationX],-t[e.translationZ],t[e.translationY]],rotationAxis:[t[e.rotationX],-t[e.rotationZ],t[e.rotationY]],rotationAngle:t[e.rotationDeg],scale:[t[e.scaleX],t[e.scaleZ],t[e.scaleY]]})}(t.attributes,s),w=r.isGeographic?"local":"georeferenced",y=function(t){const e=Array.from(t.files.values()),r=new Array;for(const t of e){if(t.status!==d.COMPLETED)return null;const e=new Array;for(const r of t.parts){if(!r)return null;e.push(new f.ai(r.url,r.hash))}r.push(new f.Si(t.name,t.mimeType,e))}return r}(c);return y?i.c.createWithExternalSource(h,y,{extent:m,transform:g,vertexSpace:w}):i.c.createIncomplete(h,{extent:m,transform:g,vertexSpace:w})}var d,y;function S(t,e){const r=new Map;for(const s of e){const e=s.parentGlobalId;if(null==e)continue;const n=s.assetName,a=s.assetType,i=s.assetHash,u=s.assetURL,c=s.conversionStatus,l=s.seqNo,f=(0,h.w$)(a,t.supportedFormats);if(!f){p().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${a}, but it does not list it as a supported type`);continue}const m=(0,o.wJ)(r,e,(()=>({files:new Map})));(0,o.wJ)(m.files,n,(()=>({name:n,type:a,mimeType:f,status:_(c),parts:[]}))).parts[l]={hash:i,url:u}}return r}function _(t){switch(t){case"COMPLETED":case"SUBMITTED":return d.COMPLETED;case"INPROGRESS":return d.PENDING;default:return d.FAILED}}(y=d||(d={}))[y.FAILED=0]="FAILED",y[y.PENDING=1]="PENDING",y[y.COMPLETED=2]="COMPLETED"}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[456],{52180:(t,e,r)=>{r.d(e,{o:()=>n});var s=r(52324);class n{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,s.o)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},93184:(t,e,r)=>{r.d(e,{M:()=>a});var s=r(62484),n=r(60074),o=r(62880);function a(t,e,r,s){if((0,n.canProjectWithoutEngine)(t.spatialReference,r)){i[0]=t.x,i[1]=t.y;const n=t.z;return i[2]=n??s??0,(0,o.projectBuffer)(i,t.spatialReference,0,e,r,0,1)}const a=(0,n.tryProjectWithZConversion)(t,r);return!!a&&(e[0]=a?.x,e[1]=a?.y,e[2]=a?.z??s??0,!0)}const i=(0,s.Su)()},12784:(t,e,r)=>{r.r(e),r.d(e,{assetMapFromAssetMapsJSON:()=>S,extractMesh:()=>w,meshFeatureSetFromJSON:()=>g});var s=r(6444),n=r(66360),o=r(86916),a=r(95247),i=r(39780),u=r(67776),c=r(56156),l=r(41104),f=r(54264),h=r(4048),m=r(59500);const p=()=>n.c.getLogger("esri.rest.support.meshFeatureSet");function g(t,e,r){const n=r.features;r.features=[],delete r.geometryType;const o=m.c.fromJSON(r);if(o.geometryType="mesh",!r.assetMaps)return o;const a=S(e,r.assetMaps),i=t.sourceSpatialReference??c.c.WGS84,u=r.globalIdFieldName,{outFields:l}=t,f=null!=l&&l.length>0?(h=l.includes("*")?null:new Set(l),({attributes:t})=>{if(!t)return{};if(!h)return t;for(const e in t)h.has(e)||delete t[e];return t}):()=>({});var h;for(const t of n){const r=w(t,u,i,e,a);null!=r&&o.features.push(new s.c({geometry:r,attributes:f(t)}))}return o}function w(t,e,r,s,n){const o=t.attributes[e],c=n.get(o);if(null==c)return p().error("mesh-feature-set:asset-not-found","Service returned a feature which was not found in the asset map",t),null;if(!t.geometry)return p().error("mesh-feature-set:no-geometry","Service returned a feature without geometry",t),null;const h=function({attributes:t},e,{transformFieldRoles:r}){const s=t[r.originX],n=t[r.originY],o=t[r.originZ];return new u.c({x:s,y:n,z:o,spatialReference:e})}(t,r,s),m=a.c.fromJSON(t.geometry);m.spatialReference=r;const g=function(t,{transformFieldRoles:e}){return new l.c({translation:[t[e.translationX],-t[e.translationZ],t[e.translationY]],rotationAxis:[t[e.rotationX],-t[e.rotationZ],t[e.rotationY]],rotationAngle:t[e.rotationDeg],scale:[t[e.scaleX],t[e.scaleZ],t[e.scaleY]]})}(t.attributes,s),w=r.isGeographic?"local":"georeferenced",y=function(t){const e=Array.from(t.files.values()),r=new Array;for(const t of e){if(t.status!==d.COMPLETED)return null;const e=new Array;for(const r of t.parts){if(!r)return null;e.push(new f.ai(r.url,r.hash))}r.push(new f.Si(t.name,t.mimeType,e))}return r}(c);return y?i.c.createWithExternalSource(h,y,{extent:m,transform:g,vertexSpace:w}):i.c.createIncomplete(h,{extent:m,transform:g,vertexSpace:w})}var d,y;function S(t,e){const r=new Map;for(const s of e){const e=s.parentGlobalId;if(null==e)continue;const n=s.assetName,a=s.assetType,i=s.assetHash,u=s.assetURL,c=s.conversionStatus,l=s.seqNo,f=(0,h.w$)(a,t.supportedFormats);if(!f){p().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${a}, but it does not list it as a supported type`);continue}const m=(0,o.wJ)(r,e,(()=>({files:new Map})));(0,o.wJ)(m.files,n,(()=>({name:n,type:a,mimeType:f,status:_(c),parts:[]}))).parts[l]={hash:i,url:u}}return r}function _(t){switch(t){case"COMPLETED":case"SUBMITTED":return d.COMPLETED;case"INPROGRESS":return d.PENDING;default:return d.FAILED}}(y=d||(d={}))[y.FAILED=0]="FAILED",y[y.PENDING=1]="PENDING",y[y.COMPLETED=2]="COMPLETED"}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7424],{48952:(t,e,n)=>{n.d(e,{a:()=>s,b:()=>u,c:()=>o,d:()=>r,e:()=>l,f:()=>a,n:()=>f,s:()=>h,t:()=>c}),n(9456);var i=n(23704);function r(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,i=3,r=i){if(t.length/i!==Math.ceil(e.length/r))return t;const s=t.length/i,o=n[0],u=n[1],a=n[2],h=n[4],c=n[5],l=n[6],f=n[8],d=n[9],g=n[10],m=n[12],y=n[13],_=n[14];let p=0,b=0;for(let n=0;n<s;n++){const n=e[p],s=e[p+1],A=e[p+2];t[b]=o*n+h*s+f*A+m,t[b+1]=u*n+c*s+d*A+y,t[b+2]=a*n+l*s+g*A+_,p+=r,b+=i}return t}function o(t,e,n){u(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r=3,s=r){if(t.length/r!==Math.ceil(e.length/s))return void(0,i.A)().error("source and destination buffers need to have the same number of elements");const o=t.length/r,u=n[0],a=n[1],h=n[2],c=n[3],l=n[4],f=n[5],d=n[6],g=n[7],m=n[8];let y=0,_=0;for(let n=0;n<o;n++){const n=e[y],i=e[y+1],o=e[y+2];t[_]=u*n+c*i+d*o,t[_+1]=a*n+l*i+g*o,t[_+2]=h*n+f*i+m*o,y+=s,_+=r}}function a(t,e,n){h(t.typedBuffer,e,n,t.typedBufferStride)}function h(t,e,n,i=3){const r=Math.min(t.length/i,e.count),s=e.typedBuffer,o=e.typedBufferStride;let u=0,a=0;for(let e=0;e<r;e++)t[a]=n*s[u],t[a+1]=n*s[u+1],t[a+2]=n*s[u+2],u+=o,a+=i}function c(t,e,n,i=3,r=i){const s=t.length/i;if(s!==Math.ceil(e.length/r))return t;let o=0,u=0;for(let a=0;a<s;a++)t[u]=e[o]+n[0],t[u+1]=e[o+1]+n[1],t[u+2]=e[o+2]+n[2],o+=r,u+=i;return t}function l(t,e){f(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function f(t,e,n=3,i=n){const r=Math.min(t.length/n,e.length/i);let s=0,o=0;for(let u=0;u<r;u++){const r=e[s],u=e[s+1],a=e[s+2],h=r*r+u*u+a*a;if(h>0){const e=1/Math.sqrt(h);t[o]=e*r,t[o+1]=e*u,t[o+2]=e*a}s+=i,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:l,scale:h,scaleView:a,shiftRight:function(t,e,n){const i=Math.min(t.count,e.count),r=t.typedBuffer,s=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride;let a=0,h=0;for(let t=0;t<i;t++)r[h]=o[a]>>n,r[h+1]=o[a+1]>>n,r[h+2]=o[a+2]>>n,a+=u,h+=s},transformMat3:u,transformMat3View:o,transformMat4:s,transformMat4View:r,translate:c},Symbol.toStringTag,{value:"Module"}))},97143:(t,e,n)=>{n.d(e,{Uv:()=>r,aw:()=>s,yh:()=>h});var i=n(72008);function r(t){if((0,i.c7)(t)){if(t.length<i._)return t}else if(t.length<i._)return Array.from(t);let e=!0,n=!0;return t.some(((t,i)=>(e=e&&0===t,n=n&&t===i,!e&&!n))),e?function(t){if(1===t)return u;if(t<i._)return new Array(t).fill(0);if(t>c.length){const e=Math.max(2*c.length,t);c=new Uint8Array(e)}return new Uint8Array(c.buffer,0,t)}(t.length):n?h(t.length):(0,i.c7)(t)||t.BYTES_PER_ELEMENT!==Uint16Array.BYTES_PER_ELEMENT?function(t){let e=!0;for(const n of t){if(n>=65536)return(0,i.c7)(t)?new Uint32Array(t):t;n>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t):t}function s(t){return t<=i._?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let o=(()=>{const t=new Uint32Array(131072);for(let e=0;e<t.length;++e)t[e]=e;return t})();const u=[0],a=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function h(t){if(1===t)return u;if(t<i._)return Array.from(new Uint16Array(a.buffer,0,t));if(t<a.length)return new Uint16Array(a.buffer,0,t);if(t>o.length){const e=Math.max(2*o.length,t);o=new Uint32Array(e);for(let t=0;t<o.length;t++)o[t]=t}return new Uint32Array(o.buffer,0,t)}let c=new Uint8Array(65536)},23704:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(66360);const r=()=>i.c.getLogger("esri.views.3d.support.buffer.math")},24363:(t,e,n)=>{n.d(e,{C_:()=>c,Su:()=>a,i_:()=>h});var i=n(53648),r=n(52180),s=n(98472),o=n(62484),u=n(20136);function a(t){return t?{origin:(0,o.ct)(t.origin),vector:(0,o.ct)(t.vector)}:{origin:(0,o.Su)(),vector:(0,o.Su)()}}function h(t,e,n=a()){return(0,s.c)(n.origin,t),(0,s.f)(n.vector,e,t),n}function c(t,e,n){return function(t,e,n,r,o){const{vector:a,origin:h}=t,c=(0,s.f)(u.Wq.get(),e,h),l=(0,s.j)(a,c)/(0,s.o)(a);return(0,s.h)(o,a,(0,i.qk)(l,0,1)),(0,s.g)(o,o,t.origin)}(t,e,0,0,n)}(0,o.Su)(),(0,o.Su)(),new r.o((()=>a()))},58608:(t,e,n)=>{n.d(e,{u:()=>r});var i=n(60924);class r{constructor(){this.id=(0,i.Q)()}}},74376:(t,e,n)=>{var i;n.d(e,{C:()=>i}),function(t){t[t.Layer=0]="Layer",t[t.Object=1]="Object",t[t.Mesh=2]="Mesh",t[t.Line=3]="Line",t[t.Point=4]="Point",t[t.Material=5]="Material",t[t.Texture=6]="Texture",t[t.COUNT=7]="COUNT"}(i||(i={}))},71520:(t,e,n)=>{n.d(e,{K:()=>x});var i=n(87104),r=n(98472),s=n(97143),o=n(72008);function u(t){if(t.length<o._)return Array.from(t);if((0,o.c7)(t))return Float64Array.from(t);if(!("BYTES_PER_ELEMENT"in t))return Array.from(t);switch(t.BYTES_PER_ELEMENT){case 1:return Uint8Array.from(t);case 2:return(0,o.Qx)(t)?Uint16Array.from(t):Int16Array.from(t);case 4:return Float32Array.from(t);default:return Float64Array.from(t)}}var a=n(12260),h=n(24680),c=n(62484),l=n(90736);class f{constructor(t,e,n){this.primitiveIndices=t,this._numIndexPerPrimitive=e,this.position=n,this._children=void 0,(0,l.Uc)(t.length>=1),(0,l.Uc)(3===n.size||4===n.size);const{data:i,size:s,indices:o}=n;(0,l.Uc)(o.length%this._numIndexPerPrimitive==0),(0,l.Uc)(o.length>=t.length*this._numIndexPerPrimitive);const u=t.length;let a=s*o[this._numIndexPerPrimitive*t[0]];d.clear(),d.push(a);const h=(0,c.WK)(i[a],i[a+1],i[a+2]),f=(0,c.ct)(h);for(let e=0;e<u;++e){const n=this._numIndexPerPrimitive*t[e];for(let t=0;t<this._numIndexPerPrimitive;++t){a=s*o[n+t],d.push(a);let e=i[a];h[0]=Math.min(e,h[0]),f[0]=Math.max(e,f[0]),e=i[a+1],h[1]=Math.min(e,h[1]),f[1]=Math.max(e,f[1]),e=i[a+2],h[2]=Math.min(e,h[2]),f[2]=Math.max(e,f[2])}}this.bbMin=h,this.bbMax=f;const g=(0,r.k)((0,c.Su)(),this.bbMin,this.bbMax,.5);this.radius=.5*Math.max(Math.max(f[0]-h[0],f[1]-h[1]),f[2]-h[2]);let m=this.radius*this.radius;for(let t=0;t<d.length;++t){a=d.at(t);const e=i[a]-g[0],n=i[a+1]-g[1],r=i[a+2]-g[2],s=e*e+n*n+r*r;if(s<=m)continue;const o=Math.sqrt(s),u=.5*(o-this.radius);this.radius=this.radius+u,m=this.radius*this.radius;const h=u/o;g[0]+=e*h,g[1]+=n*h,g[2]+=r*h}this.center=g,d.clear()}getChildren(){if(this._children||(0,r.a)(this.bbMin,this.bbMax)<=1)return this._children;const t=(0,r.k)((0,c.Su)(),this.bbMin,this.bbMax,.5),e=this.primitiveIndices.length,n=new Uint8Array(e),i=new Array(8);for(let t=0;t<8;++t)i[t]=0;const{data:s,size:o,indices:u}=this.position;for(let r=0;r<e;++r){let e=0;const a=this._numIndexPerPrimitive*this.primitiveIndices[r];let h=o*u[a],c=s[h],l=s[h+1],f=s[h+2];for(let t=1;t<this._numIndexPerPrimitive;++t){h=o*u[a+t];const e=s[h],n=s[h+1],i=s[h+2];e<c&&(c=e),n<l&&(l=n),i<f&&(f=i)}c<t[0]&&(e|=1),l<t[1]&&(e|=2),f<t[2]&&(e|=4),n[r]=e,++i[e]}let a=0;for(let t=0;t<8;++t)i[t]>0&&++a;if(a<2)return;const h=new Array(8);for(let t=0;t<8;++t)h[t]=i[t]>0?new Uint32Array(i[t]):void 0;for(let t=0;t<8;++t)i[t]=0;for(let t=0;t<e;++t){const e=n[t];h[e][i[e]++]=this.primitiveIndices[t]}this._children=new Array;for(let t=0;t<8;++t)void 0!==h[t]&&this._children.push(new f(h[t],this._numIndexPerPrimitive,this.position));return this._children}static prune(){d.prune()}}const d=new h.c({deallocator:null});var g=n(58608),m=n(74376),y=n(52180),_=n(24363);function p(t,e,n){return(0,r.f)(b,e,t),(0,r.f)(A,n,t),.5*(0,r.l)((0,r.b)(b,b,A))}n(20136),new y.o(_.Su),new y.o((()=>{return t?{p0:(0,c.ct)(t.p0),p1:(0,c.ct)(t.p1),p2:(0,c.ct)(t.p2)}:{p0:(0,c.Su)(),p1:(0,c.Su)(),p2:(0,c.Su)()};var t}));const b=(0,c.Su)(),A=(0,c.Su)(),M=(0,c.Su)(),I=(0,c.Su)(),O=(0,c.Su)(),v=(0,c.Su)();var w=n(60924);class S{constructor(t){this.channel=t,this.id=(0,w.Q)()}}var U=n(4636);n(5480),(0,c.Su)(),new Float32Array(6);class x extends g.u{constructor(t,e,n=null,i=m.C.Mesh,r=null,o=-1){super(),this.material=t,this.mapPositions=n,this.type=i,this.objectAndLayerIdColor=r,this.edgeIndicesLength=o,this.visible=!0,this._attributes=new Map,this._boundingInfo=null;for(const[t,n]of e)this._attributes.set(t,{...n,indices:(0,s.Uv)(n.indices)}),t===U.K.POSITION&&(this.edgeIndicesLength=this.edgeIndicesLength<0?this._attributes.get(t).indices.length:this.edgeIndicesLength)}instantiate(t={}){const e=new x(t.material||this.material,[],this.mapPositions,this.type,this.objectAndLayerIdColor,this.edgeIndicesLength);return this._attributes.forEach(((t,n)=>{t.exclusive=!1,e._attributes.set(n,t)})),e._boundingInfo=this._boundingInfo,e.transformation=t.transformation||this.transformation,e}get attributes(){return this._attributes}getMutableAttribute(t){let e=this._attributes.get(t);return e&&!e.exclusive&&(e={...e,exclusive:!0,data:u(e.data)},this._attributes.set(t,e)),e}setAttributeData(t,e){const n=this._attributes.get(t);n&&this._attributes.set(t,{...n,exclusive:!0,data:e})}get indexCount(){const t=this._attributes.values().next().value.indices;return t?.length??0}get faceCount(){return this.indexCount/3}get boundingInfo(){return null==this._boundingInfo&&(this._boundingInfo=this._calculateBoundingInfo()),this._boundingInfo}computeAttachmentOrigin(t){return!!(this.type===m.C.Mesh?this._computeAttachmentOriginTriangles(t):this.type===m.C.Line?this._computeAttachmentOriginLines(t):this._computeAttachmentOriginPoints(t))&&(null!=this._transformation&&(0,r.e)(t,t,this._transformation),!0)}_computeAttachmentOriginTriangles(t){return function(t,e){if(!t)return!1;const{size:n,data:i,indices:s}=t;(0,r.s)(e,0,0,0),(0,r.s)(v,0,0,0);let o=0,u=0;for(let t=0;t<s.length-2;t+=3){const a=s[t]*n,h=s[t+1]*n,c=s[t+2]*n;(0,r.s)(M,i[a],i[a+1],i[a+2]),(0,r.s)(I,i[h],i[h+1],i[h+2]),(0,r.s)(O,i[c],i[c+1],i[c+2]);const l=p(M,I,O);l?((0,r.g)(M,M,I),(0,r.g)(M,M,O),(0,r.h)(M,M,1/3*l),(0,r.g)(e,e,M),o+=l):((0,r.g)(v,v,M),(0,r.g)(v,v,I),(0,r.g)(v,v,O),u+=3)}return!(0===u&&0===o||(0!==o?((0,r.h)(e,e,1/o),0):0===u||((0,r.h)(e,v,1/u),0)))}(this.attributes.get(U.K.POSITION),t)}_computeAttachmentOriginLines(t){const e=this.attributes.get(U.K.POSITION);return function(t,e,n){if(!t)return!1;(0,r.s)(n,0,0,0),(0,r.s)(v,0,0,0);let i=0,s=0;const{size:o,data:u,indices:a}=t,h=a.length-1,c=h+(e?2:0);for(let t=0;t<c;t+=2){const e=t<h?t+1:0,c=a[t<h?t:h]*o,l=a[e]*o;M[0]=u[c],M[1]=u[c+1],M[2]=u[c+2],I[0]=u[l],I[1]=u[l+1],I[2]=u[l+2],(0,r.h)(M,(0,r.g)(M,M,I),.5);const f=(0,r.m)(M,I);f>0?((0,r.g)(n,n,(0,r.h)(M,M,f)),i+=f):0===i&&((0,r.g)(v,v,M),s++)}return 0!==i?((0,r.h)(n,n,1/i),!0):0!==s&&((0,r.h)(n,v,1/s),!0)}(e,function(t,e){return!(!("isClosed"in t)||!t.isClosed)&&e.indices.length>2}(this.material.parameters,e),t)}_computeAttachmentOriginPoints(t){return function(t,e){if(!t)return!1;const{size:n,data:i,indices:s}=t;(0,r.s)(e,0,0,0);let o=-1,u=0;for(let t=0;t<s.length;t++){const r=s[t]*n;o!==r&&(e[0]+=i[r],e[1]+=i[r+1],e[2]+=i[r+2],u++),o=r}return u>1&&(0,r.h)(e,e,1/u),u>0}(this.attributes.get(U.K.POSITION),t)}invalidateBoundingInfo(){this._boundingInfo=null}_calculateBoundingInfo(){const t=this.attributes.get(U.K.POSITION);if(!t||0===t.indices.length)return null;const e=this.type===m.C.Mesh?3:1;(0,l.Uc)(t.indices.length%e==0,"Indexing error: "+t.indices.length+" not divisible by "+e);const n=(0,s.yh)(t.indices.length/e);return new f(n,e,t)}get transformation(){return this._transformation??i.IJ}set transformation(t){this._transformation=t&&t!==i.IJ?(0,i.ct)(t):null}addHighlight(){const t=new S(a.sN.Highlight);return this.highlights=function(t,e){return null==t&&(t=[]),t.push(e),t}(this.highlights,t),t}removeHighlight(t){this.highlights=function(t,e){if(null==t)return null;const n=t.filter((t=>t!==e));return 0===n.length?null:n}(this.highlights,t)}}},90736:(t,e,n)=>{n.d(e,{If:()=>s,Uc:()=>r}),n(85256),n(74784),(0,n(37008).Su)();class i{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function r(t,e){if(!t){e=e||"Assertion";const t=new Error(e).stack;throw new i(`${e} at ${t}`)}}function s(t,e,n,i){let r,s=(n[0]-t[0])/e[0],o=(i[0]-t[0])/e[0];s>o&&(r=s,s=o,o=r);let u=(n[1]-t[1])/e[1],a=(i[1]-t[1])/e[1];if(u>a&&(r=u,u=a,a=r),s>a||u>o)return!1;u>s&&(s=u),a<o&&(o=a);let h=(n[2]-t[2])/e[2],c=(i[2]-t[2])/e[2];return h>c&&(r=h,h=c,c=r),!(s>c||h>o||(c<o&&(o=c),o<0))}},12260:(t,e,n)=>{var i,r,s,o,u,a,h,c,l;n.d(e,{Aj:()=>u,C2:()=>c,CM:()=>i,Iv:()=>o,OA:()=>h,sN:()=>a,sr:()=>r,yk:()=>l}),function(t){t[t.None=0]="None",t[t.Front=1]="Front",t[t.Back=2]="Back",t[t.COUNT=3]="COUNT"}(i||(i={})),function(t){t[t.Less=0]="Less",t[t.Lequal=1]="Lequal",t[t.COUNT=2]="COUNT"}(r||(r={})),function(t){t[t.BACKGROUND=0]="BACKGROUND",t[t.UPDATE=1]="UPDATE"}(s||(s={})),function(t){t[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED"}(o||(o={})),function(t){t[t.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",t[t.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(u||(u={})),function(t){t[t.Highlight=0]="Highlight",t[t.MaskOccludee=1]="MaskOccludee",t[t.COUNT=2]="COUNT"}(a||(a={})),function(t){t[t.Blend=0]="Blend",t[t.Opaque=1]="Opaque",t[t.Mask=2]="Mask",t[t.MaskBlend=3]="MaskBlend",t[t.COUNT=4]="COUNT"}(h||(h={})),function(t){t[t.OFF=0]="OFF",t[t.ON=1]="ON"}(c||(c={})),function(t){t.DDS_ENCODING="image/vnd-ms.dds",t.KTX2_ENCODING="image/ktx2",t.BASIS_ENCODING="image/x.basis"}(l||(l={}))},5480:(t,e,n)=>{function i(t,e){const n=t.length;for(let i=0;i<n;++i)s[0]=t[i],e[i]=s[0];return e}function r(t,e){const n=t.length;for(let i=0;i<n;++i)s[0]=t[i],s[1]=t[i]-s[0],e[i]=s[1];return e}n.d(e,{KM:()=>i,Ky:()=>r});const s=new Float32Array(2)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7424],{48952:(t,e,n)=>{n.d(e,{a:()=>s,b:()=>u,c:()=>o,d:()=>r,e:()=>l,f:()=>a,n:()=>f,s:()=>h,t:()=>c}),n(9456);var i=n(23704);function r(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,i=3,r=i){if(t.length/i!==Math.ceil(e.length/r))return t;const s=t.length/i,o=n[0],u=n[1],a=n[2],h=n[4],c=n[5],l=n[6],f=n[8],d=n[9],g=n[10],m=n[12],p=n[13],y=n[14];let _=0,b=0;for(let n=0;n<s;n++){const n=e[_],s=e[_+1],A=e[_+2];t[b]=o*n+h*s+f*A+m,t[b+1]=u*n+c*s+d*A+p,t[b+2]=a*n+l*s+g*A+y,_+=r,b+=i}return t}function o(t,e,n){u(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r=3,s=r){if(t.length/r!==Math.ceil(e.length/s))return void(0,i.A)().error("source and destination buffers need to have the same number of elements");const o=t.length/r,u=n[0],a=n[1],h=n[2],c=n[3],l=n[4],f=n[5],d=n[6],g=n[7],m=n[8];let p=0,y=0;for(let n=0;n<o;n++){const n=e[p],i=e[p+1],o=e[p+2];t[y]=u*n+c*i+d*o,t[y+1]=a*n+l*i+g*o,t[y+2]=h*n+f*i+m*o,p+=s,y+=r}}function a(t,e,n){h(t.typedBuffer,e,n,t.typedBufferStride)}function h(t,e,n,i=3){const r=Math.min(t.length/i,e.count),s=e.typedBuffer,o=e.typedBufferStride;let u=0,a=0;for(let e=0;e<r;e++)t[a]=n*s[u],t[a+1]=n*s[u+1],t[a+2]=n*s[u+2],u+=o,a+=i}function c(t,e,n,i=3,r=i){const s=t.length/i;if(s!==Math.ceil(e.length/r))return t;let o=0,u=0;for(let a=0;a<s;a++)t[u]=e[o]+n[0],t[u+1]=e[o+1]+n[1],t[u+2]=e[o+2]+n[2],o+=r,u+=i;return t}function l(t,e){f(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function f(t,e,n=3,i=n){const r=Math.min(t.length/n,e.length/i);let s=0,o=0;for(let u=0;u<r;u++){const r=e[s],u=e[s+1],a=e[s+2],h=r*r+u*u+a*a;if(h>0){const e=1/Math.sqrt(h);t[o]=e*r,t[o+1]=e*u,t[o+2]=e*a}s+=i,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:l,scale:h,scaleView:a,shiftRight:function(t,e,n){const i=Math.min(t.count,e.count),r=t.typedBuffer,s=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride;let a=0,h=0;for(let t=0;t<i;t++)r[h]=o[a]>>n,r[h+1]=o[a+1]>>n,r[h+2]=o[a+2]>>n,a+=u,h+=s},transformMat3:u,transformMat3View:o,transformMat4:s,transformMat4View:r,translate:c},Symbol.toStringTag,{value:"Module"}))},97143:(t,e,n)=>{n.d(e,{Uv:()=>r,aw:()=>s,yh:()=>h});var i=n(72008);function r(t){if((0,i.c7)(t)){if(t.length<i._)return t}else if(t.length<i._)return Array.from(t);let e=!0,n=!0;return t.some(((t,i)=>(e=e&&0===t,n=n&&t===i,!e&&!n))),e?function(t){if(1===t)return u;if(t<i._)return new Array(t).fill(0);if(t>c.length){const e=Math.max(2*c.length,t);c=new Uint8Array(e)}return new Uint8Array(c.buffer,0,t)}(t.length):n?h(t.length):(0,i.c7)(t)||t.BYTES_PER_ELEMENT!==Uint16Array.BYTES_PER_ELEMENT?function(t){let e=!0;for(const n of t){if(n>=65536)return(0,i.c7)(t)?new Uint32Array(t):t;n>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t):t}function s(t){return t<=i._?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let o=(()=>{const t=new Uint32Array(131072);for(let e=0;e<t.length;++e)t[e]=e;return t})();const u=[0],a=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function h(t){if(1===t)return u;if(t<i._)return Array.from(new Uint16Array(a.buffer,0,t));if(t<a.length)return new Uint16Array(a.buffer,0,t);if(t>o.length){const e=Math.max(2*o.length,t);o=new Uint32Array(e);for(let t=0;t<o.length;t++)o[t]=t}return new Uint32Array(o.buffer,0,t)}let c=new Uint8Array(65536)},23704:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(66360);const r=()=>i.c.getLogger("esri.views.3d.support.buffer.math")},24363:(t,e,n)=>{n.d(e,{C_:()=>c,Su:()=>a,i_:()=>h});var i=n(53648),r=n(52180),s=n(98472),o=n(62484),u=n(20136);function a(t){return t?{origin:(0,o.ct)(t.origin),vector:(0,o.ct)(t.vector)}:{origin:(0,o.Su)(),vector:(0,o.Su)()}}function h(t,e,n=a()){return(0,s.c)(n.origin,t),(0,s.f)(n.vector,e,t),n}function c(t,e,n){return function(t,e,n,r,o){const{vector:a,origin:h}=t,c=(0,s.f)(u.Wq.get(),e,h),l=(0,s.k)(a,c)/(0,s.p)(a);return(0,s.h)(o,a,(0,i.qk)(l,0,1)),(0,s.g)(o,o,t.origin)}(t,e,0,0,n)}(0,o.Su)(),(0,o.Su)(),new r.o((()=>a()))},58608:(t,e,n)=>{n.d(e,{u:()=>r});var i=n(60924);class r{constructor(){this.id=(0,i.Q)()}}},74376:(t,e,n)=>{var i;n.d(e,{C:()=>i}),function(t){t[t.Layer=0]="Layer",t[t.Object=1]="Object",t[t.Mesh=2]="Mesh",t[t.Line=3]="Line",t[t.Point=4]="Point",t[t.Material=5]="Material",t[t.Texture=6]="Texture",t[t.COUNT=7]="COUNT"}(i||(i={}))},71520:(t,e,n)=>{n.d(e,{K:()=>x});var i=n(87104),r=n(98472),s=n(97143),o=n(72008);function u(t){if(t.length<o._)return Array.from(t);if((0,o.c7)(t))return Float64Array.from(t);if(!("BYTES_PER_ELEMENT"in t))return Array.from(t);switch(t.BYTES_PER_ELEMENT){case 1:return Uint8Array.from(t);case 2:return(0,o.Qx)(t)?Uint16Array.from(t):Int16Array.from(t);case 4:return Float32Array.from(t);default:return Float64Array.from(t)}}var a=n(12260),h=n(24680),c=n(62484),l=n(90736);class f{constructor(t,e,n){this.primitiveIndices=t,this._numIndexPerPrimitive=e,this.position=n,this._children=void 0,(0,l.Uc)(t.length>=1),(0,l.Uc)(3===n.size||4===n.size);const{data:i,size:s,indices:o}=n;(0,l.Uc)(o.length%this._numIndexPerPrimitive==0),(0,l.Uc)(o.length>=t.length*this._numIndexPerPrimitive);const u=t.length;let a=s*o[this._numIndexPerPrimitive*t[0]];d.clear(),d.push(a);const h=(0,c.WK)(i[a],i[a+1],i[a+2]),f=(0,c.ct)(h);for(let e=0;e<u;++e){const n=this._numIndexPerPrimitive*t[e];for(let t=0;t<this._numIndexPerPrimitive;++t){a=s*o[n+t],d.push(a);let e=i[a];h[0]=Math.min(e,h[0]),f[0]=Math.max(e,f[0]),e=i[a+1],h[1]=Math.min(e,h[1]),f[1]=Math.max(e,f[1]),e=i[a+2],h[2]=Math.min(e,h[2]),f[2]=Math.max(e,f[2])}}this.bbMin=h,this.bbMax=f;const g=(0,r.m)((0,c.Su)(),this.bbMin,this.bbMax,.5);this.radius=.5*Math.max(Math.max(f[0]-h[0],f[1]-h[1]),f[2]-h[2]);let m=this.radius*this.radius;for(let t=0;t<d.length;++t){a=d.at(t);const e=i[a]-g[0],n=i[a+1]-g[1],r=i[a+2]-g[2],s=e*e+n*n+r*r;if(s<=m)continue;const o=Math.sqrt(s),u=.5*(o-this.radius);this.radius=this.radius+u,m=this.radius*this.radius;const h=u/o;g[0]+=e*h,g[1]+=n*h,g[2]+=r*h}this.center=g,d.clear()}getChildren(){if(this._children||(0,r.a)(this.bbMin,this.bbMax)<=1)return this._children;const t=(0,r.m)((0,c.Su)(),this.bbMin,this.bbMax,.5),e=this.primitiveIndices.length,n=new Uint8Array(e),i=new Array(8);for(let t=0;t<8;++t)i[t]=0;const{data:s,size:o,indices:u}=this.position;for(let r=0;r<e;++r){let e=0;const a=this._numIndexPerPrimitive*this.primitiveIndices[r];let h=o*u[a],c=s[h],l=s[h+1],f=s[h+2];for(let t=1;t<this._numIndexPerPrimitive;++t){h=o*u[a+t];const e=s[h],n=s[h+1],i=s[h+2];e<c&&(c=e),n<l&&(l=n),i<f&&(f=i)}c<t[0]&&(e|=1),l<t[1]&&(e|=2),f<t[2]&&(e|=4),n[r]=e,++i[e]}let a=0;for(let t=0;t<8;++t)i[t]>0&&++a;if(a<2)return;const h=new Array(8);for(let t=0;t<8;++t)h[t]=i[t]>0?new Uint32Array(i[t]):void 0;for(let t=0;t<8;++t)i[t]=0;for(let t=0;t<e;++t){const e=n[t];h[e][i[e]++]=this.primitiveIndices[t]}this._children=new Array;for(let t=0;t<8;++t)void 0!==h[t]&&this._children.push(new f(h[t],this._numIndexPerPrimitive,this.position));return this._children}static prune(){d.prune()}}const d=new h.c({deallocator:null});var g=n(58608),m=n(74376),p=n(52180),y=n(24363);function _(t,e,n){return(0,r.f)(b,e,t),(0,r.f)(A,n,t),.5*(0,r.l)((0,r.b)(b,b,A))}n(20136),new p.o(y.Su),new p.o((()=>{return t?{p0:(0,c.ct)(t.p0),p1:(0,c.ct)(t.p1),p2:(0,c.ct)(t.p2)}:{p0:(0,c.Su)(),p1:(0,c.Su)(),p2:(0,c.Su)()};var t}));const b=(0,c.Su)(),A=(0,c.Su)(),M=(0,c.Su)(),I=(0,c.Su)(),O=(0,c.Su)(),v=(0,c.Su)();var w=n(60924);class S{constructor(t){this.channel=t,this.id=(0,w.Q)()}}var U=n(4636);n(5480),(0,c.Su)(),new Float32Array(6);class x extends g.u{constructor(t,e,n=null,i=m.C.Mesh,r=null,o=-1){super(),this.material=t,this.mapPositions=n,this.type=i,this.objectAndLayerIdColor=r,this.edgeIndicesLength=o,this.visible=!0,this._attributes=new Map,this._boundingInfo=null;for(const[t,n]of e)this._attributes.set(t,{...n,indices:(0,s.Uv)(n.indices)}),t===U.K.POSITION&&(this.edgeIndicesLength=this.edgeIndicesLength<0?this._attributes.get(t).indices.length:this.edgeIndicesLength)}instantiate(t={}){const e=new x(t.material||this.material,[],this.mapPositions,this.type,this.objectAndLayerIdColor,this.edgeIndicesLength);return this._attributes.forEach(((t,n)=>{t.exclusive=!1,e._attributes.set(n,t)})),e._boundingInfo=this._boundingInfo,e.transformation=t.transformation||this.transformation,e}get attributes(){return this._attributes}getMutableAttribute(t){let e=this._attributes.get(t);return e&&!e.exclusive&&(e={...e,exclusive:!0,data:u(e.data)},this._attributes.set(t,e)),e}setAttributeData(t,e){const n=this._attributes.get(t);n&&this._attributes.set(t,{...n,exclusive:!0,data:e})}get indexCount(){const t=this._attributes.values().next().value.indices;return t?.length??0}get faceCount(){return this.indexCount/3}get boundingInfo(){return null==this._boundingInfo&&(this._boundingInfo=this._calculateBoundingInfo()),this._boundingInfo}computeAttachmentOrigin(t){return!!(this.type===m.C.Mesh?this._computeAttachmentOriginTriangles(t):this.type===m.C.Line?this._computeAttachmentOriginLines(t):this._computeAttachmentOriginPoints(t))&&(null!=this._transformation&&(0,r.e)(t,t,this._transformation),!0)}_computeAttachmentOriginTriangles(t){return function(t,e){if(!t)return!1;const{size:n,data:i,indices:s}=t;(0,r.s)(e,0,0,0),(0,r.s)(v,0,0,0);let o=0,u=0;for(let t=0;t<s.length-2;t+=3){const a=s[t]*n,h=s[t+1]*n,c=s[t+2]*n;(0,r.s)(M,i[a],i[a+1],i[a+2]),(0,r.s)(I,i[h],i[h+1],i[h+2]),(0,r.s)(O,i[c],i[c+1],i[c+2]);const l=_(M,I,O);l?((0,r.g)(M,M,I),(0,r.g)(M,M,O),(0,r.h)(M,M,1/3*l),(0,r.g)(e,e,M),o+=l):((0,r.g)(v,v,M),(0,r.g)(v,v,I),(0,r.g)(v,v,O),u+=3)}return!(0===u&&0===o||(0!==o?((0,r.h)(e,e,1/o),0):0===u||((0,r.h)(e,v,1/u),0)))}(this.attributes.get(U.K.POSITION),t)}_computeAttachmentOriginLines(t){const e=this.attributes.get(U.K.POSITION);return function(t,e,n){if(!t)return!1;(0,r.s)(n,0,0,0),(0,r.s)(v,0,0,0);let i=0,s=0;const{size:o,data:u,indices:a}=t,h=a.length-1,c=h+(e?2:0);for(let t=0;t<c;t+=2){const e=t<h?t+1:0,c=a[t<h?t:h]*o,l=a[e]*o;M[0]=u[c],M[1]=u[c+1],M[2]=u[c+2],I[0]=u[l],I[1]=u[l+1],I[2]=u[l+2],(0,r.h)(M,(0,r.g)(M,M,I),.5);const f=(0,r.o)(M,I);f>0?((0,r.g)(n,n,(0,r.h)(M,M,f)),i+=f):0===i&&((0,r.g)(v,v,M),s++)}return 0!==i?((0,r.h)(n,n,1/i),!0):0!==s&&((0,r.h)(n,v,1/s),!0)}(e,function(t,e){return!(!("isClosed"in t)||!t.isClosed)&&e.indices.length>2}(this.material.parameters,e),t)}_computeAttachmentOriginPoints(t){return function(t,e){if(!t)return!1;const{size:n,data:i,indices:s}=t;(0,r.s)(e,0,0,0);let o=-1,u=0;for(let t=0;t<s.length;t++){const r=s[t]*n;o!==r&&(e[0]+=i[r],e[1]+=i[r+1],e[2]+=i[r+2],u++),o=r}return u>1&&(0,r.h)(e,e,1/u),u>0}(this.attributes.get(U.K.POSITION),t)}invalidateBoundingInfo(){this._boundingInfo=null}_calculateBoundingInfo(){const t=this.attributes.get(U.K.POSITION);if(!t||0===t.indices.length)return null;const e=this.type===m.C.Mesh?3:1;(0,l.Uc)(t.indices.length%e==0,"Indexing error: "+t.indices.length+" not divisible by "+e);const n=(0,s.yh)(t.indices.length/e);return new f(n,e,t)}get transformation(){return this._transformation??i.IJ}set transformation(t){this._transformation=t&&t!==i.IJ?(0,i.ct)(t):null}addHighlight(){const t=new S(a.sN.Highlight);return this.highlights=function(t,e){return null==t&&(t=[]),t.push(e),t}(this.highlights,t),t}removeHighlight(t){this.highlights=function(t,e){if(null==t)return null;const n=t.filter((t=>t!==e));return 0===n.length?null:n}(this.highlights,t)}}},90736:(t,e,n)=>{n.d(e,{If:()=>s,Uc:()=>r}),n(85256),n(74784),(0,n(37008).Su)();class i{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function r(t,e){if(!t){e=e||"Assertion";const t=new Error(e).stack;throw new i(`${e} at ${t}`)}}function s(t,e,n,i){let r,s=(n[0]-t[0])/e[0],o=(i[0]-t[0])/e[0];s>o&&(r=s,s=o,o=r);let u=(n[1]-t[1])/e[1],a=(i[1]-t[1])/e[1];if(u>a&&(r=u,u=a,a=r),s>a||u>o)return!1;u>s&&(s=u),a<o&&(o=a);let h=(n[2]-t[2])/e[2],c=(i[2]-t[2])/e[2];return h>c&&(r=h,h=c,c=r),!(s>c||h>o||(c<o&&(o=c),o<0))}},12260:(t,e,n)=>{var i,r,s,o,u,a,h,c,l;n.d(e,{Aj:()=>u,C2:()=>c,CM:()=>i,Iv:()=>o,OA:()=>h,sN:()=>a,sr:()=>r,yk:()=>l}),function(t){t[t.None=0]="None",t[t.Front=1]="Front",t[t.Back=2]="Back",t[t.COUNT=3]="COUNT"}(i||(i={})),function(t){t[t.Less=0]="Less",t[t.Lequal=1]="Lequal",t[t.COUNT=2]="COUNT"}(r||(r={})),function(t){t[t.BACKGROUND=0]="BACKGROUND",t[t.UPDATE=1]="UPDATE"}(s||(s={})),function(t){t[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED"}(o||(o={})),function(t){t[t.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",t[t.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(u||(u={})),function(t){t[t.Highlight=0]="Highlight",t[t.MaskOccludee=1]="MaskOccludee",t[t.COUNT=2]="COUNT"}(a||(a={})),function(t){t[t.Blend=0]="Blend",t[t.Opaque=1]="Opaque",t[t.Mask=2]="Mask",t[t.MaskBlend=3]="MaskBlend",t[t.COUNT=4]="COUNT"}(h||(h={})),function(t){t[t.OFF=0]="OFF",t[t.ON=1]="ON"}(c||(c={})),function(t){t.DDS_ENCODING="image/vnd-ms.dds",t.KTX2_ENCODING="image/ktx2",t.BASIS_ENCODING="image/x.basis"}(l||(l={}))},5480:(t,e,n)=>{function i(t,e){const n=t.length;for(let i=0;i<n;++i)s[0]=t[i],e[i]=s[0];return e}function r(t,e){const n=t.length;for(let i=0;i<n;++i)s[0]=t[i],s[1]=t[i]-s[0],e[i]=s[1];return e}n.d(e,{KM:()=>i,Ky:()=>r});const s=new Float32Array(2)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8344],{16848:(t,e,n)=>{n.d(e,{Oo:()=>d,eG:()=>b,ii:()=>w});var r=n(20744),i=n(62088),o=n(66360),a=n(91180),s=n(4636);const c=()=>o.c.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(t,e,n){let i="",o=0;for(;o<n;){const a=t[e+o];if(a<128)i+=String.fromCharCode(a),o++;else if(a>=192&&a<224){if(o+1>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const s=(31&a)<<6|63&t[e+o+1];i+=String.fromCharCode(s),o+=2}else if(a>=224&&a<240){if(o+2>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(15&a)<<12|(63&t[e+o+1])<<6|63&t[e+o+2];i+=String.fromCharCode(s),o+=3}else{if(!(a>=240&&a<248))throw new r.c("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(o+3>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(7&a)<<18|(63&t[e+o+1])<<12|(63&t[e+o+2])<<6|63&t[e+o+3];if(s>=65536){const t=55296+(s-65536>>10),e=56320+(1023&s);i+=String.fromCharCode(t,e)}else i+=String.fromCharCode(s);o+=4}}}return i}function h(t,e){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let i=0;i<e.length;i++){const o=e[i],a=o.valueType||o.type,s=p[a];n.fields[o.property]=s(t,r),r+=y[a].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){const i=[];let o,a,s=0;for(a=0;a<t;a+=1){if(o=e[a],o>0){if(i.push(u(n,s,o-1)),0!==n[s+o-1])throw new r.c("string-array-error","Invalid string array: missing null termination.")}else i.push(null);s+=o}return i}function d(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function l(t,e,n){const o=null!=e.header?h(t,e.header):{byteOffset:0,byteCount:0,fields:{count:n}},a={header:o,byteOffset:o.byteCount,byteCount:0,entries:Object.create(null)};let s=o.byteCount;for(let t=0;t<e.ordering.length;t++){const n=e.ordering[t],c=(0,i.ct)(e[n]);if(c.count=o.fields.count??0,"String"===c.valueType){if(c.byteOffset=s,c.byteCount=o.fields[n+"ByteCount"],"UTF-8"!==c.encoding)throw new r.c("unsupported-encoding","Unsupported String encoding.",{encoding:c.encoding});if(c.timeEncoding&&"ECMA_ISO8601"!==c.timeEncoding)throw new r.c("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:c.timeEncoding})}else{if(!_(c.valueType))throw new r.c("unsupported-value-type","Unsupported binary valueType",{valueType:c.valueType});{const t=S(c.valueType);s+=s%t!=0?t-s%t:0,c.byteOffset=s,c.byteCount=t*c.valuesPerElement*c.count}}s+=c.byteCount??0,a.entries[n]=c}return a.byteCount=s-a.byteOffset,a}function g(t,e,n){if(e!==t&&c().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.c("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){const n=h(t,e&&e.header);let r=n.byteCount;const i={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},o=n.fields,a=null!=o.vertexCount?o.vertexCount:o.count;for(const t of e.ordering){if(!e.vertexAttributes[t])continue;const n={...e.vertexAttributes[t],byteOffset:r,count:a},o=m[t]||"_"+t;i.vertexAttributes[o]=n,r+=S(n.valueType)*n.valuesPerElement*a}const s=o.faceCount;if(e.faces&&s){i.faces={};for(const t of e.ordering){if(!e.faces[t])continue;const n={...e.faces[t],byteOffset:r,count:s};i.faces[t]=n,r+=S(n.valueType)*n.valuesPerElement*s}}const c=o.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&c){i.featureAttributes={};for(const t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;const n={...e.featureAttributes[t],byteOffset:r,count:c};i.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:S(n.valueType))*n.valuesPerElement*c}}return g(r,t.byteLength,"geometry"),i.byteCount=r-i.byteOffset,i}const m={position:s.K.POSITION,normal:s.K.NORMAL,color:s.K.COLOR,uv0:s.K.UV0,region:s.K.UVREGION};function w(t,e,n){if("lepcc-rgb"===t.encoding)return(0,a.us)(e);if("lepcc-intensity"===t.encoding)return(0,a.Yj)(e);if(null!=t.encoding&&""!==t.encoding)throw new r.c("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(c().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(c().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const i=l(e,t,n);g(i.byteOffset+i.byteCount,e.byteLength,"attribute");const o=i.entries.attributeValues||i.entries.objectIds;if(o){if("String"===o.valueType){const t=i.entries.attributeByteCounts,n=d(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,o);return o.timeEncoding?function(t,e,n){return f(t,e,n).map((t=>{const e=t?Date.parse(t):null;return e&&!Number.isNaN(e)?e:null}))}(t.count,n,r):f(t.count,n,r)}return d(e,o)}throw new r.c("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},p={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function _(t){return y.hasOwnProperty(t)}function S(t){return _(t)?y[t].BYTES_PER_ELEMENT:0}},91180:(t,e,n)=>{n.d(e,{K6:()=>u,Yj:()=>w,us:()=>g});var r=n(20744);const i=!0,o={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function a(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+o.identifierOffset,o.identifierLength)),version:e.getUint16(n+o.versionOffset,i),checksum:e.getUint32(n+o.checksumOffset,i)}}const s={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function c(t,e){return{sizeLo:t.getUint32(e+s.sizeLo,i),sizeHi:t.getUint32(e+s.sizeHi,i),minX:t.getFloat64(e+s.minX,i),minY:t.getFloat64(e+s.minY,i),minZ:t.getFloat64(e+s.minZ,i),maxX:t.getFloat64(e+s.maxX,i),maxY:t.getFloat64(e+s.maxY,i),maxZ:t.getFloat64(e+s.maxZ,i),errorX:t.getFloat64(e+s.errorX,i),errorY:t.getFloat64(e+s.errorY,i),errorZ:t.getFloat64(e+s.errorZ,i),count:t.getUint32(e+s.count,i),reserved:t.getUint32(e+s.reserved,i)}}function u(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:u}=a(t,e,n);if(n+=o.byteCount,"LEPCC "!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(u>1)throw new r.c("lepcc-decode-error","Unknown version");const f=c(e,n);if(n+=s.byteCount,f.sizeHi*2**32+f.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const d=new Float64Array(3*f.count),l=[],g=[],b=[],m=[];if(n=h(t,n,l),n=h(t,n,g),n=h(t,n,b),n=h(t,n,m),n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad length");let w=0,y=0;for(let t=0;t<l.length;t++){y+=l[t];let e=0;for(let n=0;n<g[t];n++){e+=b[w];const t=m[w];d[3*w]=Math.min(f.maxX,f.minX+2*f.errorX*e),d[3*w+1]=Math.min(f.maxY,f.minY+2*f.errorY*y),d[3*w+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*t),w++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:d}}function h(t,e,n){const r=[];e=f(t,e,r);const i=[];for(let o=0;o<r.length;o++){i.length=0,e=f(t,e,i);for(let t=0;t<i.length;t++)n.push(i[t]+r[o])}return e}function f(t,e,n){const o=new DataView(t,e),a=o.getUint8(0),s=31&a,c=!!(32&a),u=(192&a)>>6;let h=0;if(0===u)h=o.getUint32(1,i),e+=5;else if(1===u)h=o.getUint16(1,i),e+=3;else{if(2!==u)throw new r.c("lepcc-decode-error","Bad count type");h=o.getUint8(1),e+=2}if(c)throw new r.c("lepcc-decode-error","LUT not implemented");const f=Math.ceil(h*s/8),d=new Uint8Array(t,e,f);let l=0,g=0,b=0;const m=-1>>>32-s;for(let t=0;t<h;t++){for(;g<s;)l|=d[b]<<g,g+=8,b+=1;n[t]=l&m,l>>>=s,g-=s,g+s>32&&(l|=d[b-1]>>8-g)}return e+b}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function l(t,e){return{sizeLo:t.getUint32(e+d.sizeLo,i),sizeHi:t.getUint32(e+d.sizeHi,i),count:t.getUint32(e+d.count,i),colorMapCount:t.getUint16(e+d.colorMapCount,i),lookupMethod:t.getUint8(e+d.lookupMethod),compressionMethod:t.getUint8(e+d.compressionMethod)}}function g(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:s}=a(t,e,n);if(n+=o.byteCount,"ClusterRGB"!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(s>1)throw new r.c("lepcc-decode-error","Unknown version");const c=l(e,n);if(n+=d.byteCount,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");if((2===c.lookupMethod||1===c.lookupMethod)&&0===c.compressionMethod){if(3*c.colorMapCount+c.count+n!==t.byteLength||c.colorMapCount>256)throw new r.c("lepcc-decode-error","Bad count");const e=new Uint8Array(t,n,3*c.colorMapCount),i=new Uint8Array(t,n+3*c.colorMapCount,c.count),o=new Uint8Array(3*c.count);for(let t=0;t<c.count;t++){const n=i[t];o[3*t]=e[3*n],o[3*t+1]=e[3*n+1],o[3*t+2]=e[3*n+2]}return o}if(0===c.lookupMethod&&0===c.compressionMethod){if(3*c.count+n!==t.byteLength||0!==c.colorMapCount)throw new r.c("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(c.lookupMethod<=2&&1===c.compressionMethod){if(n+3!==t.byteLength||1!==c.colorMapCount)throw new r.c("lepcc-decode-error","Bad count");const i=e.getUint8(n),o=e.getUint8(n+1),a=e.getUint8(n+2),s=new Uint8Array(3*c.count);for(let t=0;t<c.count;t++)s[3*t]=i,s[3*t+1]=o,s[3*t+2]=a;return s}throw new r.c("lepcc-decode-error","Bad method "+c.lookupMethod+","+c.compressionMethod)}const b={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function m(t,e){return{sizeLo:t.getUint32(e+b.sizeLo,i),sizeHi:t.getUint32(e+b.sizeHi,i),count:t.getUint32(e+b.count,i),scaleFactor:t.getUint16(e+b.scaleFactor,i),bitsPerPoint:t.getUint8(e+b.bitsPerPoint),reserved:t.getUint8(e+b.reserved)}}function w(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:s}=a(t,e,n);if(n+=o.byteCount,"Intensity "!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(s>1)throw new r.c("lepcc-decode-error","Unknown version");const c=m(e,n);if(n+=b.byteCount,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const u=new Uint16Array(c.count);if(8===c.bitsPerPoint){if(c.count+n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const e=new Uint8Array(t,n,c.count);for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}else if(16===c.bitsPerPoint){if(2*c.count+n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const e=new Uint16Array(t,n,c.count);for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}else{const e=[];if(f(t,n,e)!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}return u}},29244:(t,e,n)=>{n.d(e,{Eb:()=>_t,er:()=>jt});var r=n(77556),i=n(68612),o=n(87104),a=n(41512),s=n(2620),c=n(98472),u=n(62484),h=n(74784),f=n(37008),d=n(22080),l=n(82448),g=n(51120),b=n(62880),m=n(38380),w=n(58632),y=n(60544),p=n(20136),_=n(21288),S=n(85256),M=n(89560);const C=1e-6,U=(0,u.Su)(),P=(0,u.Su)();function z(t,e,n,r,i,o,a,s,c,u){return function(t,e,n){let r=yt(t.maxVert[0],t.minVert[0]),i=0;for(let e=1;e<7;++e){const n=yt(t.maxVert[e],t.minVert[e]);n>r&&(r=n,i=e)}gt(e,t.minVert[i]),gt(n,t.maxVert[i])}(t,r,i),yt(r,i)<C?1:(dt(a,r,i),mt(a,a),function(t,e,n,r){const{data:i,size:o}=t;let a=Number.NEGATIVE_INFINITY,s=0;for(let t=0;t<i.length;t+=o){L[0]=i[t]-e[0],L[1]=i[t+1]-e[1],L[2]=i[t+2]-e[2];const r=n[0]*L[0]+n[1]*L[1]+n[2]*L[2],o=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],c=L[0]*L[0]+L[1]*L[1]+L[2]*L[2]-r*r/o;c>a&&(a=c,s=t)}return gt(r,i,s),a}(e,r,a,o)<C?2:(dt(s,i,o),mt(s,s),dt(c,o,r),mt(c,c),bt(n,s,a),mt(n,n),H(e,n,a,s,c,u),0))}const I=(0,u.Su)(),v=(0,u.Su)(),x=(0,u.Su)(),j=(0,u.Su)(),A=(0,u.Su)(),O=(0,u.Su)(),F=(0,u.Su)(),B=(0,u.Su)();function T(t,e,n,r,i,o,a,s,c){(function(t,e,n,r,i){!function(t,e,n,r,i){const{data:o,size:a}=t;gt(r,o),gt(i,r),n[0]=pt(Z,e),n[1]=n[0];for(let t=a;t<o.length;t+=a){const a=o[t]*e[0]+o[t+1]*e[1]+o[t+2]*e[2];a<n[0]&&(n[0]=a,gt(r,o,t)),a>n[1]&&(n[1]=a,gt(i,o,t))}}(t,e,V,i,r);const o=pt(n,e);V[1]-C<=o&&(r[0]=void 0),V[0]+C>=o&&(i[0]=void 0)})(t,e,n,I,v),void 0!==I[0]&&(dt(x,I,n),mt(x,x),dt(j,I,r),mt(j,j),dt(A,I,i),mt(A,A),bt(O,j,o),mt(O,O),bt(F,A,a),mt(F,F),bt(B,x,s),mt(B,B),H(t,O,o,j,x,c),H(t,F,a,A,j,c),H(t,B,s,x,A,c)),void 0!==v[0]&&(dt(x,v,n),mt(x,x),dt(j,v,r),mt(j,j),dt(A,v,i),mt(A,A),bt(O,j,o),mt(O,O),bt(F,A,a),mt(F,F),bt(B,x,s),mt(B,B),H(t,O,o,j,x,c),H(t,F,a,A,j,c),H(t,B,s,x,A,c))}const L=[0,0,0],V=(0,S.Su)(),E=(0,u.Su)(),q=(0,u.Su)(),N=(0,u.Su)(),Y=(0,u.Su)(),D=(0,u.Su)(),k=(0,u.Su)();function H(t,e,n,r,i,o){if(wt(e)<C)return;bt(E,n,e),bt(q,r,e),bt(N,i,e),X(t,e,V),D[1]=V[0],Y[1]=V[1],k[1]=Y[1]-D[1];const a=[n,r,i],s=[E,q,N];for(let n=0;n<3;++n){X(t,a[n],V),D[0]=V[0],Y[0]=V[1],X(t,s[n],V),D[2]=V[0],Y[2]=V[1],k[0]=Y[0]-D[0],k[2]=Y[2]-D[2];const r=ht(k);r<o.quality&&(gt(o.b0,a[n]),gt(o.b1,e),gt(o.b2,s[n]),o.quality=r)}}const Z=(0,u.Su)();function X(t,e,n){const{data:r,size:i}=t;n[0]=Number.POSITIVE_INFINITY,n[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<r.length;t+=i){const i=r[t]*e[0]+r[t+1]*e[1]+r[t+2]*e[2];n[0]=Math.min(n[0],i),n[1]=Math.max(n[1],i)}}function K(t,e,n){n.center=t,n.halfSize=(0,c.h)(e,e,.5),n.quaternion=s.IJ}const W=(0,u.Su)(),R=(0,u.Su)(),G=(0,u.Su)(),Q=(0,u.Su)(),J=(0,u.Su)(),$=(0,u.Su)();function tt(t,e,n){gt(W,e),Math.abs(e[0])>Math.abs(e[1])&&Math.abs(e[0])>Math.abs(e[2])?W[0]=0:Math.abs(e[1])>Math.abs(e[2])?W[1]=0:W[2]=0,wt(W)<C&&(W[0]=W[1]=W[2]=1),bt(R,e,W),mt(R,R),bt(G,e,R),mt(G,G),et(t,e,R,G,Q,J),dt($,J,Q),st(e,R,G,Q,J,$,n)}function et(t,e,n,r,i,o){X(t,e,V),i[0]=V[0],o[0]=V[1],X(t,n,V),i[1]=V[0],o[1]=V[1],X(t,r,V),i[2]=V[0],o[2]=V[1]}const nt=(0,u.Su)(),rt=(0,u.Su)(),it=(0,u.Su)(),ot=(0,i.WK)(1,0,0,0,1,0,0,0,1),at=(0,s.Su)();function st(t,e,n,r,i,o,a){ot[0]=t[0],ot[1]=t[1],ot[2]=t[2],ot[3]=e[0],ot[4]=e[1],ot[5]=e[2],ot[6]=n[0],ot[7]=n[1],ot[8]=n[2],a.quaternion=function(t,e){const n=e[0]+e[4]+e[8];if(n>0){let r=Math.sqrt(n+1);t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r}else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);const r=(n+1)%3,i=(n+2)%3;let o=Math.sqrt(e[3*n+n]-e[3*r+r]-e[3*i+i]+1);t[n]=.5*o,o=.5/o,t[3]=(e[3*r+i]-e[3*i+r])*o,t[r]=(e[3*r+n]+e[3*n+r])*o,t[i]=(e[3*i+n]+e[3*n+i])*o}return t}(at,ot),ft(nt,r,i),lt(nt,nt,.5),lt(rt,t,nt[0]),lt(it,e,nt[1]),ft(rt,rt,it),lt(it,n,nt[2]),a.center=(0,c.g)(rt,rt,it),a.halfSize=(0,c.h)(nt,o,.5)}class ct{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let e=0;this.minProj=new Float64Array(this.buffer,e,7),e+=56,this.maxProj=new Float64Array(this.buffer,e,7),e+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const n=new Array(7),r=new Array(7),{data:i,size:o}=t;for(let t=0;t<i.length;t+=o){let e=i[t];e<this.minProj[0]&&(this.minProj[0]=e,n[0]=t),e>this.maxProj[0]&&(this.maxProj[0]=e,r[0]=t),e=i[t+1],e<this.minProj[1]&&(this.minProj[1]=e,n[1]=t),e>this.maxProj[1]&&(this.maxProj[1]=e,r[1]=t),e=i[t+2],e<this.minProj[2]&&(this.minProj[2]=e,n[2]=t),e>this.maxProj[2]&&(this.maxProj[2]=e,r[2]=t),e=i[t]+i[t+1]+i[t+2],e<this.minProj[3]&&(this.minProj[3]=e,n[3]=t),e>this.maxProj[3]&&(this.maxProj[3]=e,r[3]=t),e=i[t]+i[t+1]-i[t+2],e<this.minProj[4]&&(this.minProj[4]=e,n[4]=t),e>this.maxProj[4]&&(this.maxProj[4]=e,r[4]=t),e=i[t]-i[t+1]+i[t+2],e<this.minProj[5]&&(this.minProj[5]=e,n[5]=t),e>this.maxProj[5]&&(this.maxProj[5]=e,r[5]=t),e=i[t]-i[t+1]-i[t+2],e<this.minProj[6]&&(this.minProj[6]=e,n[6]=t),e>this.maxProj[6]&&(this.maxProj[6]=e,r[6]=t)}for(let t=0;t<7;++t){let e=n[t];gt(this.minVert[t],i,e),e=r[t],gt(this.maxVert[t],i,e)}}}class ut{constructor(){this.b0=(0,u.WK)(1,0,0),this.b1=(0,u.WK)(0,1,0),this.b2=(0,u.WK)(0,0,1),this.quality=0}}function ht(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ft(t,e,n){t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2]}function dt(t,e,n){t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2]}function lt(t,e,n){t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}function gt(t,e,n=0){t[0]=e[n],t[1]=e[n+1],t[2]=e[n+2]}function bt(t,e,n){const r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],c=n[2];t[0]=i*c-o*s,t[1]=o*a-r*c,t[2]=r*s-i*a}function mt(t,e){const n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2];if(n>0){const r=1/Math.sqrt(n);t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r}}function wt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function yt(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function pt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}class _t{constructor(t=u.cX,e=Ht,n=s.IJ){this._data=[t[0],t[1],t[2],e[0],e[1],e[2],n[0],n[1],n[2],n[3]]}clone(){const t=new _t;return t._data=this._data.slice(),t}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const e=new _t;return e._data=t.slice(),e}static fromJSON(t){return new _t(t.center,t.halfSize,t.quaternion)}copy(t){this._data=t.data.slice()}get center(){return(0,c.s)(p.Wq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,e,n){this._data[0]=t,this._data[1]=e,this._data[2]=n}get halfSize(){return(0,c.s)(p.Wq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,a.WO)(p.QX.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const e=St,n=this._data;e[0]=n[6],e[1]=n[7],e[2]=n[8],e[3]=n[9];for(let r=0;r<8;++r){const i=t[r];i[0]=(1&r?-1:1)*n[3],i[1]=(2&r?-1:1)*n[4],i[2]=(4&r?-1:1)*n[5],(0,c.r)(i,i,e),i[0]+=n[0],i[1]+=n[1],i[2]+=n[2]}}isVisible(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],e=this._data[4],n=this._data[5];return Math.sqrt(t*t+e*e+n*n)}intersectSphere(t){Ut[0]=this._data[0]-t[0],Ut[1]=this._data[1]-t[1],Ut[2]=this._data[2]-t[2];const e=this.getQuaternion(Mt);return(0,a.fO)(St,e),(0,c.r)(Ut,Ut,St),(0,c.u)(Ut,Ut),Pt[0]=Math.min(Ut[0],this._data[3]),Pt[1]=Math.min(Ut[1],this._data[4]),Pt[2]=Math.min(Ut[2],this._data[5]),(0,c.v)(Pt,Ut)<t[3]*t[3]}intersectSphereWithMBS(t,e=this.radius){const n=this._data;Ut[0]=n[0]-t[0],Ut[1]=n[1]-t[1],Ut[2]=n[2]-t[2];const r=t[3],i=r+e;return!((0,c.w)(Ut)>i*i)&&(St[0]=-n[6],St[1]=-n[7],St[2]=-n[8],St[3]=n[9],(0,c.r)(Ut,Ut,St),(0,c.u)(Ut,Ut),Pt[0]=Math.min(Ut[0],n[3]),Pt[1]=Math.min(Ut[1],n[4]),Pt[2]=Math.min(Ut[2],n[5]),(0,c.v)(Pt,Ut)<r*r)}intersectPlane(t){const e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],n=this.projectedRadius((0,w.Oq)(t));return e>n?1:e<-n?-1:0}intersectRay(t,e,n=0){const r=this._data,i=St;i[0]=-r[6],i[1]=-r[7],i[2]=-r[8],i[3]=r[9],Ut[0]=t[0]-r[0],Ut[1]=t[1]-r[1],Ut[2]=t[2]-r[2];const o=(0,c.r)(Ut,Ut,St),a=(0,c.r)(Pt,e,St);let s=-1/0,u=1/0;const h=this.getHalfSize(Vt);for(let t=0;t<3;t++){const e=o[t],r=a[t],i=h[t]+n;if(Math.abs(r)>1e-6){const t=(i-e)/r,n=(-i-e)/r;s=Math.max(s,Math.min(t,n)),u=Math.min(u,Math.max(t,n))}else if(e>i||e<-i)return!1}return s<=u}projectedArea(t,e,n,i){const o=this.getQuaternion(Mt);(0,a.fO)(St,o),Ut[0]=t[0]-this._data[0],Ut[1]=t[1]-this._data[1],Ut[2]=t[2]-this._data[2],(0,c.r)(Ut,Ut,St);const s=this.getHalfSize(Vt),u=Ut[0]<-s[0]?-1:Ut[0]>s[0]?1:0,f=Ut[1]<-s[1]?-1:Ut[1]>s[1]?1:0,d=Ut[2]<-s[2]?-1:Ut[2]>s[2]?1:0,l=Math.abs(u)+Math.abs(f)+Math.abs(d);if(0===l)return 1/0;const g=1===l?4:6,b=6*(u+3*f+9*d+13);(0,r.KU)(Et,o),(0,r.aU)(Et,Et,s);const m=this.getCenter(Tt);for(let t=0;t<g;t++){const n=xt[b+t];(0,c.s)(Ut,((1&n)<<1)-1,(2&n)-1,((4&n)>>1)-1),(0,c.t)(Ut,Ut,Et),(0,c.g)(zt,m,Ut),zt[3]=1,(0,h.t)(zt,zt,e);const r=1/Math.max(1e-6,zt[3]);vt[2*t]=zt[0]*r,vt[2*t+1]=zt[1]*r}const w=2*g-2;let y=vt[0]*(vt[3]-vt[w+1])+vt[w]*(vt[1]-vt[w-1]);for(let t=2;t<w;t+=2)y+=vt[t]*(vt[t+3]-vt[t-1]);return Math.abs(y)*n*i*.125}projectedRadius(t){const e=this.getQuaternion(Mt);return(0,a.fO)(St,e),(0,c.r)(Ut,t,St),Math.abs(Ut[0]*this._data[3])+Math.abs(Ut[1]*this._data[4])+Math.abs(Ut[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,w.Oq)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,w.Oq)(t))}toAaBoundingBox(t){const e=this.getQuaternion(Mt),n=(0,r.KU)(Et,e),i=this._data[3]*Math.abs(n[0])+this._data[4]*Math.abs(n[3])+this._data[5]*Math.abs(n[6]),o=this._data[3]*Math.abs(n[1])+this._data[4]*Math.abs(n[4])+this._data[5]*Math.abs(n[7]),a=this._data[3]*Math.abs(n[2])+this._data[4]*Math.abs(n[5])+this._data[5]*Math.abs(n[8]);t[0]=this._data[0]-i,t[1]=this._data[1]-o,t[2]=this._data[2]-a,t[3]=this._data[0]+i,t[4]=this._data[1]+o,t[5]=this._data[2]+a}transform(t,e,n,r=0,i=(0,l._s)(n),o=(0,l._s)(e),s=(0,m.Mx)(e,o)){if(n===i)e.isGeographic?function(t,e,n,r,i=(0,l._s)(n)){const o=(0,d.e0)(n),s=1+Math.max(0,r)/(o.radius+t.centerZ);t.getCenter(Bt),Bt[2]+=r,(0,b.projectBuffer)(Bt,n,0,Bt,i,0,1),e.center=Bt;const u=t.getQuaternion(Mt);e.quaternion=u,(0,a.fO)(St,u),(0,c.s)(Yt,0,0,1),(0,c.r)(Yt,Yt,St);const h=t.getHalfSize(Vt);(0,c.s)(Yt,h[0]*Math.abs(Yt[0]),h[1]*Math.abs(Yt[1]),h[2]*Math.abs(Yt[2])),(0,c.h)(Yt,Yt,o.inverseFlattening),(0,c.g)(Yt,h,Yt),e.halfSize=(0,c.h)(Yt,Yt,s)}(this,t,e,r,o):function(t,e,n,r,i=(0,l._s)(n),o=(0,m.Mx)(n,i)){t.getCorners(Nt),t.getCenter(Bt),Bt[2]+=r,(0,g.y)(n,Bt,qt,i),e.setCenter(qt[12],qt[13],qt[14]);const s=2*Math.sqrt(1+qt[0]+qt[5]+qt[10]);St[0]=(qt[6]-qt[9])/s,St[1]=(qt[8]-qt[2])/s,St[2]=(qt[1]-qt[4])/s,St[3]=.25*s;const u=t.getQuaternion(Mt);e.quaternion=(0,a.iW)(St,St,u),(0,a.fO)(St,St),(0,c.s)(Dt,0,0,0);const h=e.getCenter(Lt);for(const t of Nt)t[2]+=r,o(t,0,t,0),(0,c.y)(Yt,t,h),(0,c.r)(Yt,Yt,St),(0,c.u)(Yt,Yt),(0,c.B)(Dt,Dt,Yt);e.halfSize=Dt}(this,t,e,r,o,s);else if(e.isWGS84&&(n.isWebMercator||(0,y.GK)(n)))!function(t,e,n,r,i){e.getCenter(Tt),Tt[2]+=i;const o=(0,l._s)(n);(0,b.projectBuffer)(Tt,t,0,Tt,o,0,1),At(o,e,Tt,n,r)}(e,this,n,t,r);else if(e.isWebMercator&&(0,y.GK)(n))!function(t,e,n,r,i){e.getCenter(Tt),Tt[2]+=i,At(t,e,Tt,n,r)}(e,this,n,t,r);else{const i=this.getCenter(Tt);i[2]+=r,(0,b.projectBuffer)(i,e,0,i,n,0,1),t.center=i,this!==t&&(t.quaternion=this.getQuaternion(Mt),t.halfSize=this.getHalfSize(Vt))}}}const St=(0,s.Su)(),Mt=(0,s.Su)(),Ct=(0,s.Su)(),Ut=(0,u.Su)(),Pt=(0,u.Su)(),zt=(0,f.Su)();function It(t,e=new _t){return function(t,e){const{data:n,size:r}=t,i=n.length/r;if(i<=0)return;const o=new ct(t);ft(U,o.minProj,o.maxProj),lt(U,U,.5),dt(P,o.maxProj,o.minProj);const a=ht(P),s=new ut;s.quality=a,i<14&&(t=new M.Y(new Float64Array(o.buffer,112,42),3));const c=(0,u.Su)(),h=(0,u.Su)(),f=(0,u.Su)(),d=(0,u.Su)(),l=(0,u.Su)(),g=(0,u.Su)(),b=(0,u.Su)();switch(z(o,t,b,c,h,f,d,l,g,s)){case 1:return void K(U,P,e);case 2:return void tt(t,d,e)}T(t,b,c,h,f,d,l,g,s),et(t,s.b0,s.b1,s.b2,Q,J);const m=(0,u.Su)();dt(m,J,Q),s.quality=ht(m),s.quality<a?st(s.b0,s.b1,s.b2,Q,J,m,e):K(U,P,e)}(t,e),e}const vt=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],xt=(()=>{const t=new Int8Array(162);let e=0;const n=n=>{for(let r=0;r<n.length;r++)t[e+r]=n[r];e+=6};return n([6,2,3,1,5,4]),n([0,2,3,1,5,4]),n([0,2,3,7,5,4]),n([0,1,3,2,6,4]),n([0,1,3,2,0,0]),n([0,1,5,7,3,2]),n([0,1,3,7,6,4]),n([0,1,3,7,6,2]),n([0,1,5,7,6,2]),n([0,1,5,4,6,2]),n([0,1,5,4,0,0]),n([0,1,3,7,5,4]),n([0,2,6,4,0,0]),n([0,0,0,0,0,0]),n([1,3,7,5,0,0]),n([2,3,7,6,4,0]),n([2,3,7,6,0,0]),n([2,3,1,5,7,6]),n([0,1,5,7,6,2]),n([0,1,5,7,6,4]),n([0,1,3,7,6,4]),n([4,5,7,6,2,0]),n([4,5,7,6,0,0]),n([4,5,1,3,7,6]),n([0,2,3,7,5,4]),n([6,2,3,7,5,4]),n([6,2,3,1,5,4]),t})();function jt(t,e,n,r,i){const o=t.getQuaternion(Mt);i.quaternion=o,(0,a.fO)(St,o);const s=t.getCenter(Tt),h=t.getHalfSize(Vt);if(r===_.UZ.Global){(0,c.r)(Yt,s,St),(0,c.u)(Dt,Yt),(0,c.x)(kt,Dt,h),(0,c.y)(kt,Dt,kt);const r=(0,c.l)(kt);(0,c.g)(kt,Dt,h);const o=(0,c.l)(kt);if(r<n)i.center=s,(0,c.s)(Yt,n,n,n),i.halfSize=(0,c.g)(Yt,h,Yt);else{const a=o>0?1+e/o:1,s=r>0?1+n/r:1,u=(s+a)/2,f=(s-a)/2;(0,c.h)(kt,Dt,f),i.halfSize=(0,c.q)(kt,kt,h,u),(0,c.h)(kt,Dt,u),(0,c.q)(kt,kt,h,f),(0,c.z)(Yt,Yt),(0,c.A)(Yt,kt,Yt);const d=t.getQuaternion(Ct);i.center=(0,c.r)(Yt,Yt,d)}}else{i.center=(0,c.q)(Yt,s,u.wx,(n+e)/2);const t=(0,c.r)(Yt,u.wx,St);(0,c.u)(t,t),i.halfSize=(0,c.q)(Dt,h,t,(n-e)/2)}return i}function At(t,e,n,i,o){const a=e.getQuaternion(Mt),s=(0,r.KU)(Et,a),c=e.getHalfSize(Vt);for(let t=0;t<8;++t){for(let e=0;e<3;++e)Bt[e]=c[e]*(0!=(t&1<<e)?-1:1);for(let e=0;e<3;++e){let r=n[e];for(let t=0;t<3;++t)r+=Bt[t]*s[3*t+e];Ot[3*t+e]=r}}(0,b.projectBuffer)(Ot,t,0,Ot,i,0,8),It(Ft,o)}const Ot=new Array(24),Ft=new M.Y(Ot,3),Bt=(0,u.Su)(),Tt=(0,u.Su)(),Lt=(0,u.Su)(),Vt=(0,u.Su)(),Et=(0,i.Su)(),qt=(0,o.Su)(),Nt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Yt=(0,u.Su)(),Dt=(0,u.Su)(),kt=(0,u.Su)(),Ht=(0,u.WK)(-1,-1,-1)},21288:(t,e,n)=>{var r;n.d(e,{UZ:()=>r}),function(t){t[t.Global=1]="Global",t[t.Local=2]="Local"}(r||(r={}))}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8344],{16848:(t,e,n)=>{n.d(e,{Oo:()=>d,eG:()=>b,ii:()=>w});var r=n(20744),i=n(62088),o=n(66360),a=n(91180),s=n(4636);const c=()=>o.c.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(t,e,n){let i="",o=0;for(;o<n;){const a=t[e+o];if(a<128)i+=String.fromCharCode(a),o++;else if(a>=192&&a<224){if(o+1>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const s=(31&a)<<6|63&t[e+o+1];i+=String.fromCharCode(s),o+=2}else if(a>=224&&a<240){if(o+2>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(15&a)<<12|(63&t[e+o+1])<<6|63&t[e+o+2];i+=String.fromCharCode(s),o+=3}else{if(!(a>=240&&a<248))throw new r.c("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(o+3>=n)throw new r.c("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(7&a)<<18|(63&t[e+o+1])<<12|(63&t[e+o+2])<<6|63&t[e+o+3];if(s>=65536){const t=55296+(s-65536>>10),e=56320+(1023&s);i+=String.fromCharCode(t,e)}else i+=String.fromCharCode(s);o+=4}}}return i}function h(t,e){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let i=0;i<e.length;i++){const o=e[i],a=o.valueType||o.type,s=p[a];n.fields[o.property]=s(t,r),r+=y[a].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){const i=[];let o,a,s=0;for(a=0;a<t;a+=1){if(o=e[a],o>0){if(i.push(u(n,s,o-1)),0!==n[s+o-1])throw new r.c("string-array-error","Invalid string array: missing null termination.")}else i.push(null);s+=o}return i}function d(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function l(t,e,n){const o=null!=e.header?h(t,e.header):{byteOffset:0,byteCount:0,fields:{count:n}},a={header:o,byteOffset:o.byteCount,byteCount:0,entries:Object.create(null)};let s=o.byteCount;for(let t=0;t<e.ordering.length;t++){const n=e.ordering[t],c=(0,i.ct)(e[n]);if(c.count=o.fields.count??0,"String"===c.valueType){if(c.byteOffset=s,c.byteCount=o.fields[n+"ByteCount"],"UTF-8"!==c.encoding)throw new r.c("unsupported-encoding","Unsupported String encoding.",{encoding:c.encoding});if(c.timeEncoding&&"ECMA_ISO8601"!==c.timeEncoding)throw new r.c("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:c.timeEncoding})}else{if(!_(c.valueType))throw new r.c("unsupported-value-type","Unsupported binary valueType",{valueType:c.valueType});{const t=S(c.valueType);s+=s%t!=0?t-s%t:0,c.byteOffset=s,c.byteCount=t*c.valuesPerElement*c.count}}s+=c.byteCount??0,a.entries[n]=c}return a.byteCount=s-a.byteOffset,a}function g(t,e,n){if(e!==t&&c().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.c("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){const n=h(t,e&&e.header);let r=n.byteCount;const i={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},o=n.fields,a=null!=o.vertexCount?o.vertexCount:o.count;for(const t of e.ordering){if(!e.vertexAttributes[t])continue;const n={...e.vertexAttributes[t],byteOffset:r,count:a},o=m[t]||"_"+t;i.vertexAttributes[o]=n,r+=S(n.valueType)*n.valuesPerElement*a}const s=o.faceCount;if(e.faces&&s){i.faces={};for(const t of e.ordering){if(!e.faces[t])continue;const n={...e.faces[t],byteOffset:r,count:s};i.faces[t]=n,r+=S(n.valueType)*n.valuesPerElement*s}}const c=o.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&c){i.featureAttributes={};for(const t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;const n={...e.featureAttributes[t],byteOffset:r,count:c};i.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:S(n.valueType))*n.valuesPerElement*c}}return g(r,t.byteLength,"geometry"),i.byteCount=r-i.byteOffset,i}const m={position:s.K.POSITION,normal:s.K.NORMAL,color:s.K.COLOR,uv0:s.K.UV0,region:s.K.UVREGION};function w(t,e,n){if("lepcc-rgb"===t.encoding)return(0,a.us)(e);if("lepcc-intensity"===t.encoding)return(0,a.Yj)(e);if(null!=t.encoding&&""!==t.encoding)throw new r.c("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(c().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(c().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const i=l(e,t,n);g(i.byteOffset+i.byteCount,e.byteLength,"attribute");const o=i.entries.attributeValues||i.entries.objectIds;if(o){if("String"===o.valueType){const t=i.entries.attributeByteCounts,n=d(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,o);return o.timeEncoding?function(t,e,n){return f(t,e,n).map((t=>{const e=t?Date.parse(t):null;return e&&!Number.isNaN(e)?e:null}))}(t.count,n,r):f(t.count,n,r)}return d(e,o)}throw new r.c("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},p={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function _(t){return y.hasOwnProperty(t)}function S(t){return _(t)?y[t].BYTES_PER_ELEMENT:0}},91180:(t,e,n)=>{n.d(e,{K6:()=>u,Yj:()=>w,us:()=>g});var r=n(20744);const i=!0,o={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function a(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+o.identifierOffset,o.identifierLength)),version:e.getUint16(n+o.versionOffset,i),checksum:e.getUint32(n+o.checksumOffset,i)}}const s={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function c(t,e){return{sizeLo:t.getUint32(e+s.sizeLo,i),sizeHi:t.getUint32(e+s.sizeHi,i),minX:t.getFloat64(e+s.minX,i),minY:t.getFloat64(e+s.minY,i),minZ:t.getFloat64(e+s.minZ,i),maxX:t.getFloat64(e+s.maxX,i),maxY:t.getFloat64(e+s.maxY,i),maxZ:t.getFloat64(e+s.maxZ,i),errorX:t.getFloat64(e+s.errorX,i),errorY:t.getFloat64(e+s.errorY,i),errorZ:t.getFloat64(e+s.errorZ,i),count:t.getUint32(e+s.count,i),reserved:t.getUint32(e+s.reserved,i)}}function u(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:u}=a(t,e,n);if(n+=o.byteCount,"LEPCC "!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(u>1)throw new r.c("lepcc-decode-error","Unknown version");const f=c(e,n);if(n+=s.byteCount,f.sizeHi*2**32+f.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const d=new Float64Array(3*f.count),l=[],g=[],b=[],m=[];if(n=h(t,n,l),n=h(t,n,g),n=h(t,n,b),n=h(t,n,m),n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad length");let w=0,y=0;for(let t=0;t<l.length;t++){y+=l[t];let e=0;for(let n=0;n<g[t];n++){e+=b[w];const t=m[w];d[3*w]=Math.min(f.maxX,f.minX+2*f.errorX*e),d[3*w+1]=Math.min(f.maxY,f.minY+2*f.errorY*y),d[3*w+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*t),w++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:d}}function h(t,e,n){const r=[];e=f(t,e,r);const i=[];for(let o=0;o<r.length;o++){i.length=0,e=f(t,e,i);for(let t=0;t<i.length;t++)n.push(i[t]+r[o])}return e}function f(t,e,n){const o=new DataView(t,e),a=o.getUint8(0),s=31&a,c=!!(32&a),u=(192&a)>>6;let h=0;if(0===u)h=o.getUint32(1,i),e+=5;else if(1===u)h=o.getUint16(1,i),e+=3;else{if(2!==u)throw new r.c("lepcc-decode-error","Bad count type");h=o.getUint8(1),e+=2}if(c)throw new r.c("lepcc-decode-error","LUT not implemented");const f=Math.ceil(h*s/8),d=new Uint8Array(t,e,f);let l=0,g=0,b=0;const m=-1>>>32-s;for(let t=0;t<h;t++){for(;g<s;)l|=d[b]<<g,g+=8,b+=1;n[t]=l&m,l>>>=s,g-=s,g+s>32&&(l|=d[b-1]>>8-g)}return e+b}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function l(t,e){return{sizeLo:t.getUint32(e+d.sizeLo,i),sizeHi:t.getUint32(e+d.sizeHi,i),count:t.getUint32(e+d.count,i),colorMapCount:t.getUint16(e+d.colorMapCount,i),lookupMethod:t.getUint8(e+d.lookupMethod),compressionMethod:t.getUint8(e+d.compressionMethod)}}function g(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:s}=a(t,e,n);if(n+=o.byteCount,"ClusterRGB"!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(s>1)throw new r.c("lepcc-decode-error","Unknown version");const c=l(e,n);if(n+=d.byteCount,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");if((2===c.lookupMethod||1===c.lookupMethod)&&0===c.compressionMethod){if(3*c.colorMapCount+c.count+n!==t.byteLength||c.colorMapCount>256)throw new r.c("lepcc-decode-error","Bad count");const e=new Uint8Array(t,n,3*c.colorMapCount),i=new Uint8Array(t,n+3*c.colorMapCount,c.count),o=new Uint8Array(3*c.count);for(let t=0;t<c.count;t++){const n=i[t];o[3*t]=e[3*n],o[3*t+1]=e[3*n+1],o[3*t+2]=e[3*n+2]}return o}if(0===c.lookupMethod&&0===c.compressionMethod){if(3*c.count+n!==t.byteLength||0!==c.colorMapCount)throw new r.c("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(c.lookupMethod<=2&&1===c.compressionMethod){if(n+3!==t.byteLength||1!==c.colorMapCount)throw new r.c("lepcc-decode-error","Bad count");const i=e.getUint8(n),o=e.getUint8(n+1),a=e.getUint8(n+2),s=new Uint8Array(3*c.count);for(let t=0;t<c.count;t++)s[3*t]=i,s[3*t+1]=o,s[3*t+2]=a;return s}throw new r.c("lepcc-decode-error","Bad method "+c.lookupMethod+","+c.compressionMethod)}const b={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function m(t,e){return{sizeLo:t.getUint32(e+b.sizeLo,i),sizeHi:t.getUint32(e+b.sizeHi,i),count:t.getUint32(e+b.count,i),scaleFactor:t.getUint16(e+b.scaleFactor,i),bitsPerPoint:t.getUint8(e+b.bitsPerPoint),reserved:t.getUint8(e+b.reserved)}}function w(t){const e=new DataView(t,0);let n=0;const{identifier:i,version:s}=a(t,e,n);if(n+=o.byteCount,"Intensity "!==i)throw new r.c("lepcc-decode-error","Bad identifier");if(s>1)throw new r.c("lepcc-decode-error","Unknown version");const c=m(e,n);if(n+=b.byteCount,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const u=new Uint16Array(c.count);if(8===c.bitsPerPoint){if(c.count+n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const e=new Uint8Array(t,n,c.count);for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}else if(16===c.bitsPerPoint){if(2*c.count+n!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");const e=new Uint16Array(t,n,c.count);for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}else{const e=[];if(f(t,n,e)!==t.byteLength)throw new r.c("lepcc-decode-error","Bad size");for(let t=0;t<c.count;t++)u[t]=e[t]*c.scaleFactor}return u}},29244:(t,e,n)=>{n.d(e,{Eb:()=>_t,er:()=>jt});var r=n(77556),i=n(68612),o=n(87104),a=n(41512),s=n(2620),c=n(98472),u=n(62484),h=n(74784),f=n(37008),d=n(22080),l=n(82448),g=n(51120),b=n(62880),m=n(38380),w=n(58632),y=n(60544),p=n(20136),_=n(21288),S=n(85256),M=n(89560);const C=1e-6,U=(0,u.Su)(),P=(0,u.Su)();function v(t,e,n,r,i,o,a,s,c,u){return function(t,e,n){let r=yt(t.maxVert[0],t.minVert[0]),i=0;for(let e=1;e<7;++e){const n=yt(t.maxVert[e],t.minVert[e]);n>r&&(r=n,i=e)}gt(e,t.minVert[i]),gt(n,t.maxVert[i])}(t,r,i),yt(r,i)<C?1:(dt(a,r,i),mt(a,a),function(t,e,n,r){const{data:i,size:o}=t;let a=Number.NEGATIVE_INFINITY,s=0;for(let t=0;t<i.length;t+=o){L[0]=i[t]-e[0],L[1]=i[t+1]-e[1],L[2]=i[t+2]-e[2];const r=n[0]*L[0]+n[1]*L[1]+n[2]*L[2],o=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],c=L[0]*L[0]+L[1]*L[1]+L[2]*L[2]-r*r/o;c>a&&(a=c,s=t)}return gt(r,i,s),a}(e,r,a,o)<C?2:(dt(s,i,o),mt(s,s),dt(c,o,r),mt(c,c),bt(n,s,a),mt(n,n),H(e,n,a,s,c,u),0))}const z=(0,u.Su)(),I=(0,u.Su)(),x=(0,u.Su)(),j=(0,u.Su)(),A=(0,u.Su)(),O=(0,u.Su)(),F=(0,u.Su)(),B=(0,u.Su)();function T(t,e,n,r,i,o,a,s,c){(function(t,e,n,r,i){!function(t,e,n,r,i){const{data:o,size:a}=t;gt(r,o),gt(i,r),n[0]=pt(Z,e),n[1]=n[0];for(let t=a;t<o.length;t+=a){const a=o[t]*e[0]+o[t+1]*e[1]+o[t+2]*e[2];a<n[0]&&(n[0]=a,gt(r,o,t)),a>n[1]&&(n[1]=a,gt(i,o,t))}}(t,e,V,i,r);const o=pt(n,e);V[1]-C<=o&&(r[0]=void 0),V[0]+C>=o&&(i[0]=void 0)})(t,e,n,z,I),void 0!==z[0]&&(dt(x,z,n),mt(x,x),dt(j,z,r),mt(j,j),dt(A,z,i),mt(A,A),bt(O,j,o),mt(O,O),bt(F,A,a),mt(F,F),bt(B,x,s),mt(B,B),H(t,O,o,j,x,c),H(t,F,a,A,j,c),H(t,B,s,x,A,c)),void 0!==I[0]&&(dt(x,I,n),mt(x,x),dt(j,I,r),mt(j,j),dt(A,I,i),mt(A,A),bt(O,j,o),mt(O,O),bt(F,A,a),mt(F,F),bt(B,x,s),mt(B,B),H(t,O,o,j,x,c),H(t,F,a,A,j,c),H(t,B,s,x,A,c))}const L=[0,0,0],V=(0,S.Su)(),E=(0,u.Su)(),N=(0,u.Su)(),Y=(0,u.Su)(),q=(0,u.Su)(),D=(0,u.Su)(),k=(0,u.Su)();function H(t,e,n,r,i,o){if(wt(e)<C)return;bt(E,n,e),bt(N,r,e),bt(Y,i,e),X(t,e,V),D[1]=V[0],q[1]=V[1],k[1]=q[1]-D[1];const a=[n,r,i],s=[E,N,Y];for(let n=0;n<3;++n){X(t,a[n],V),D[0]=V[0],q[0]=V[1],X(t,s[n],V),D[2]=V[0],q[2]=V[1],k[0]=q[0]-D[0],k[2]=q[2]-D[2];const r=ht(k);r<o.quality&&(gt(o.b0,a[n]),gt(o.b1,e),gt(o.b2,s[n]),o.quality=r)}}const Z=(0,u.Su)();function X(t,e,n){const{data:r,size:i}=t;n[0]=Number.POSITIVE_INFINITY,n[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<r.length;t+=i){const i=r[t]*e[0]+r[t+1]*e[1]+r[t+2]*e[2];n[0]=Math.min(n[0],i),n[1]=Math.max(n[1],i)}}function K(t,e,n){n.center=t,n.halfSize=(0,c.h)(e,e,.5),n.quaternion=s.IJ}const W=(0,u.Su)(),R=(0,u.Su)(),G=(0,u.Su)(),Q=(0,u.Su)(),J=(0,u.Su)(),$=(0,u.Su)();function tt(t,e,n){gt(W,e),Math.abs(e[0])>Math.abs(e[1])&&Math.abs(e[0])>Math.abs(e[2])?W[0]=0:Math.abs(e[1])>Math.abs(e[2])?W[1]=0:W[2]=0,wt(W)<C&&(W[0]=W[1]=W[2]=1),bt(R,e,W),mt(R,R),bt(G,e,R),mt(G,G),et(t,e,R,G,Q,J),dt($,J,Q),st(e,R,G,Q,J,$,n)}function et(t,e,n,r,i,o){X(t,e,V),i[0]=V[0],o[0]=V[1],X(t,n,V),i[1]=V[0],o[1]=V[1],X(t,r,V),i[2]=V[0],o[2]=V[1]}const nt=(0,u.Su)(),rt=(0,u.Su)(),it=(0,u.Su)(),ot=(0,i.WK)(1,0,0,0,1,0,0,0,1),at=(0,s.Su)();function st(t,e,n,r,i,o,a){ot[0]=t[0],ot[1]=t[1],ot[2]=t[2],ot[3]=e[0],ot[4]=e[1],ot[5]=e[2],ot[6]=n[0],ot[7]=n[1],ot[8]=n[2],a.quaternion=function(t,e){const n=e[0]+e[4]+e[8];if(n>0){let r=Math.sqrt(n+1);t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r}else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);const r=(n+1)%3,i=(n+2)%3;let o=Math.sqrt(e[3*n+n]-e[3*r+r]-e[3*i+i]+1);t[n]=.5*o,o=.5/o,t[3]=(e[3*r+i]-e[3*i+r])*o,t[r]=(e[3*r+n]+e[3*n+r])*o,t[i]=(e[3*i+n]+e[3*n+i])*o}return t}(at,ot),ft(nt,r,i),lt(nt,nt,.5),lt(rt,t,nt[0]),lt(it,e,nt[1]),ft(rt,rt,it),lt(it,n,nt[2]),a.center=(0,c.g)(rt,rt,it),a.halfSize=(0,c.h)(nt,o,.5)}class ct{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let e=0;this.minProj=new Float64Array(this.buffer,e,7),e+=56,this.maxProj=new Float64Array(this.buffer,e,7),e+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const n=new Array(7),r=new Array(7),{data:i,size:o}=t;for(let t=0;t<i.length;t+=o){let e=i[t];e<this.minProj[0]&&(this.minProj[0]=e,n[0]=t),e>this.maxProj[0]&&(this.maxProj[0]=e,r[0]=t),e=i[t+1],e<this.minProj[1]&&(this.minProj[1]=e,n[1]=t),e>this.maxProj[1]&&(this.maxProj[1]=e,r[1]=t),e=i[t+2],e<this.minProj[2]&&(this.minProj[2]=e,n[2]=t),e>this.maxProj[2]&&(this.maxProj[2]=e,r[2]=t),e=i[t]+i[t+1]+i[t+2],e<this.minProj[3]&&(this.minProj[3]=e,n[3]=t),e>this.maxProj[3]&&(this.maxProj[3]=e,r[3]=t),e=i[t]+i[t+1]-i[t+2],e<this.minProj[4]&&(this.minProj[4]=e,n[4]=t),e>this.maxProj[4]&&(this.maxProj[4]=e,r[4]=t),e=i[t]-i[t+1]+i[t+2],e<this.minProj[5]&&(this.minProj[5]=e,n[5]=t),e>this.maxProj[5]&&(this.maxProj[5]=e,r[5]=t),e=i[t]-i[t+1]-i[t+2],e<this.minProj[6]&&(this.minProj[6]=e,n[6]=t),e>this.maxProj[6]&&(this.maxProj[6]=e,r[6]=t)}for(let t=0;t<7;++t){let e=n[t];gt(this.minVert[t],i,e),e=r[t],gt(this.maxVert[t],i,e)}}}class ut{constructor(){this.b0=(0,u.WK)(1,0,0),this.b1=(0,u.WK)(0,1,0),this.b2=(0,u.WK)(0,0,1),this.quality=0}}function ht(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ft(t,e,n){t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2]}function dt(t,e,n){t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2]}function lt(t,e,n){t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}function gt(t,e,n=0){t[0]=e[n],t[1]=e[n+1],t[2]=e[n+2]}function bt(t,e,n){const r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],c=n[2];t[0]=i*c-o*s,t[1]=o*a-r*c,t[2]=r*s-i*a}function mt(t,e){const n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2];if(n>0){const r=1/Math.sqrt(n);t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r}}function wt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function yt(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function pt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}class _t{constructor(t=u.cX,e=Ht,n=s.IJ){this._data=[t[0],t[1],t[2],e[0],e[1],e[2],n[0],n[1],n[2],n[3]]}clone(){const t=new _t;return t._data=this._data.slice(),t}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const e=new _t;return e._data=t.slice(),e}static fromJSON(t){return new _t(t.center,t.halfSize,t.quaternion)}copy(t){this._data=t.data.slice()}get center(){return(0,c.s)(p.Wq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,e,n){this._data[0]=t,this._data[1]=e,this._data[2]=n}get halfSize(){return(0,c.s)(p.Wq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,a.WO)(p.QX.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const e=St,n=this._data;e[0]=n[6],e[1]=n[7],e[2]=n[8],e[3]=n[9];for(let r=0;r<8;++r){const i=t[r];i[0]=(1&r?-1:1)*n[3],i[1]=(2&r?-1:1)*n[4],i[2]=(4&r?-1:1)*n[5],(0,c.u)(i,i,e),i[0]+=n[0],i[1]+=n[1],i[2]+=n[2]}}isVisible(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],e=this._data[4],n=this._data[5];return Math.sqrt(t*t+e*e+n*n)}intersectSphere(t){Ut[0]=this._data[0]-t[0],Ut[1]=this._data[1]-t[1],Ut[2]=this._data[2]-t[2];const e=this.getQuaternion(Mt);return(0,a.fO)(St,e),(0,c.u)(Ut,Ut,St),(0,c.v)(Ut,Ut),Pt[0]=Math.min(Ut[0],this._data[3]),Pt[1]=Math.min(Ut[1],this._data[4]),Pt[2]=Math.min(Ut[2],this._data[5]),(0,c.w)(Pt,Ut)<t[3]*t[3]}intersectSphereWithMBS(t,e=this.radius){const n=this._data;Ut[0]=n[0]-t[0],Ut[1]=n[1]-t[1],Ut[2]=n[2]-t[2];const r=t[3],i=r+e;return!((0,c.x)(Ut)>i*i)&&(St[0]=-n[6],St[1]=-n[7],St[2]=-n[8],St[3]=n[9],(0,c.u)(Ut,Ut,St),(0,c.v)(Ut,Ut),Pt[0]=Math.min(Ut[0],n[3]),Pt[1]=Math.min(Ut[1],n[4]),Pt[2]=Math.min(Ut[2],n[5]),(0,c.w)(Pt,Ut)<r*r)}intersectPlane(t){const e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],n=this.projectedRadius((0,w.Oq)(t));return e>n?1:e<-n?-1:0}intersectRay(t,e,n=0){const r=this._data,i=St;i[0]=-r[6],i[1]=-r[7],i[2]=-r[8],i[3]=r[9],Ut[0]=t[0]-r[0],Ut[1]=t[1]-r[1],Ut[2]=t[2]-r[2];const o=(0,c.u)(Ut,Ut,St),a=(0,c.u)(Pt,e,St);let s=-1/0,u=1/0;const h=this.getHalfSize(Vt);for(let t=0;t<3;t++){const e=o[t],r=a[t],i=h[t]+n;if(Math.abs(r)>1e-6){const t=(i-e)/r,n=(-i-e)/r;s=Math.max(s,Math.min(t,n)),u=Math.min(u,Math.max(t,n))}else if(e>i||e<-i)return!1}return s<=u}projectedArea(t,e,n,i){const o=this.getQuaternion(Mt);(0,a.fO)(St,o),Ut[0]=t[0]-this._data[0],Ut[1]=t[1]-this._data[1],Ut[2]=t[2]-this._data[2],(0,c.u)(Ut,Ut,St);const s=this.getHalfSize(Vt),u=Ut[0]<-s[0]?-1:Ut[0]>s[0]?1:0,f=Ut[1]<-s[1]?-1:Ut[1]>s[1]?1:0,d=Ut[2]<-s[2]?-1:Ut[2]>s[2]?1:0,l=Math.abs(u)+Math.abs(f)+Math.abs(d);if(0===l)return 1/0;const g=1===l?4:6,b=6*(u+3*f+9*d+13);(0,r.KU)(Et,o),(0,r.aU)(Et,Et,s);const m=this.getCenter(Tt);for(let t=0;t<g;t++){const n=xt[b+t];(0,c.s)(Ut,((1&n)<<1)-1,(2&n)-1,((4&n)>>1)-1),(0,c.t)(Ut,Ut,Et),(0,c.g)(vt,m,Ut),vt[3]=1,(0,h.t)(vt,vt,e);const r=1/Math.max(1e-6,vt[3]);It[2*t]=vt[0]*r,It[2*t+1]=vt[1]*r}const w=2*g-2;let y=It[0]*(It[3]-It[w+1])+It[w]*(It[1]-It[w-1]);for(let t=2;t<w;t+=2)y+=It[t]*(It[t+3]-It[t-1]);return Math.abs(y)*n*i*.125}projectedRadius(t){const e=this.getQuaternion(Mt);return(0,a.fO)(St,e),(0,c.u)(Ut,t,St),Math.abs(Ut[0]*this._data[3])+Math.abs(Ut[1]*this._data[4])+Math.abs(Ut[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,w.Oq)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,w.Oq)(t))}toAaBoundingBox(t){const e=this.getQuaternion(Mt),n=(0,r.KU)(Et,e),i=this._data[3]*Math.abs(n[0])+this._data[4]*Math.abs(n[3])+this._data[5]*Math.abs(n[6]),o=this._data[3]*Math.abs(n[1])+this._data[4]*Math.abs(n[4])+this._data[5]*Math.abs(n[7]),a=this._data[3]*Math.abs(n[2])+this._data[4]*Math.abs(n[5])+this._data[5]*Math.abs(n[8]);t[0]=this._data[0]-i,t[1]=this._data[1]-o,t[2]=this._data[2]-a,t[3]=this._data[0]+i,t[4]=this._data[1]+o,t[5]=this._data[2]+a}transform(t,e,n,r=0,i=(0,l._s)(n),o=(0,l._s)(e),s=(0,m.Mx)(e,o)){if(n===i)e.isGeographic?function(t,e,n,r,i=(0,l._s)(n)){const o=(0,d.e0)(n),s=1+Math.max(0,r)/(o.radius+t.centerZ);t.getCenter(Bt),Bt[2]+=r,(0,b.projectBuffer)(Bt,n,0,Bt,i,0,1),e.center=Bt;const u=t.getQuaternion(Mt);e.quaternion=u,(0,a.fO)(St,u),(0,c.s)(qt,0,0,1),(0,c.u)(qt,qt,St);const h=t.getHalfSize(Vt);(0,c.s)(qt,h[0]*Math.abs(qt[0]),h[1]*Math.abs(qt[1]),h[2]*Math.abs(qt[2])),(0,c.h)(qt,qt,o.inverseFlattening),(0,c.g)(qt,h,qt),e.halfSize=(0,c.h)(qt,qt,s)}(this,t,e,r,o):function(t,e,n,r,i=(0,l._s)(n),o=(0,m.Mx)(n,i)){t.getCorners(Yt),t.getCenter(Bt),Bt[2]+=r,(0,g.y)(n,Bt,Nt,i),e.setCenter(Nt[12],Nt[13],Nt[14]);const s=2*Math.sqrt(1+Nt[0]+Nt[5]+Nt[10]);St[0]=(Nt[6]-Nt[9])/s,St[1]=(Nt[8]-Nt[2])/s,St[2]=(Nt[1]-Nt[4])/s,St[3]=.25*s;const u=t.getQuaternion(Mt);e.quaternion=(0,a.iW)(St,St,u),(0,a.fO)(St,St),(0,c.s)(Dt,0,0,0);const h=e.getCenter(Lt);for(const t of Yt)t[2]+=r,o(t,0,t,0),(0,c.z)(qt,t,h),(0,c.u)(qt,qt,St),(0,c.v)(qt,qt),(0,c.C)(Dt,Dt,qt);e.halfSize=Dt}(this,t,e,r,o,s);else if(e.isWGS84&&(n.isWebMercator||(0,y.GK)(n)))!function(t,e,n,r,i){e.getCenter(Tt),Tt[2]+=i;const o=(0,l._s)(n);(0,b.projectBuffer)(Tt,t,0,Tt,o,0,1),At(o,e,Tt,n,r)}(e,this,n,t,r);else if(e.isWebMercator&&(0,y.GK)(n))!function(t,e,n,r,i){e.getCenter(Tt),Tt[2]+=i,At(t,e,Tt,n,r)}(e,this,n,t,r);else{const i=this.getCenter(Tt);i[2]+=r,(0,b.projectBuffer)(i,e,0,i,n,0,1),t.center=i,this!==t&&(t.quaternion=this.getQuaternion(Mt),t.halfSize=this.getHalfSize(Vt))}}}const St=(0,s.Su)(),Mt=(0,s.Su)(),Ct=(0,s.Su)(),Ut=(0,u.Su)(),Pt=(0,u.Su)(),vt=(0,f.Su)();function zt(t,e=new _t){return function(t,e){const{data:n,size:r}=t,i=n.length/r;if(i<=0)return;const o=new ct(t);ft(U,o.minProj,o.maxProj),lt(U,U,.5),dt(P,o.maxProj,o.minProj);const a=ht(P),s=new ut;s.quality=a,i<14&&(t=new M.Y(new Float64Array(o.buffer,112,42),3));const c=(0,u.Su)(),h=(0,u.Su)(),f=(0,u.Su)(),d=(0,u.Su)(),l=(0,u.Su)(),g=(0,u.Su)(),b=(0,u.Su)();switch(v(o,t,b,c,h,f,d,l,g,s)){case 1:return void K(U,P,e);case 2:return void tt(t,d,e)}T(t,b,c,h,f,d,l,g,s),et(t,s.b0,s.b1,s.b2,Q,J);const m=(0,u.Su)();dt(m,J,Q),s.quality=ht(m),s.quality<a?st(s.b0,s.b1,s.b2,Q,J,m,e):K(U,P,e)}(t,e),e}const It=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],xt=(()=>{const t=new Int8Array(162);let e=0;const n=n=>{for(let r=0;r<n.length;r++)t[e+r]=n[r];e+=6};return n([6,2,3,1,5,4]),n([0,2,3,1,5,4]),n([0,2,3,7,5,4]),n([0,1,3,2,6,4]),n([0,1,3,2,0,0]),n([0,1,5,7,3,2]),n([0,1,3,7,6,4]),n([0,1,3,7,6,2]),n([0,1,5,7,6,2]),n([0,1,5,4,6,2]),n([0,1,5,4,0,0]),n([0,1,3,7,5,4]),n([0,2,6,4,0,0]),n([0,0,0,0,0,0]),n([1,3,7,5,0,0]),n([2,3,7,6,4,0]),n([2,3,7,6,0,0]),n([2,3,1,5,7,6]),n([0,1,5,7,6,2]),n([0,1,5,7,6,4]),n([0,1,3,7,6,4]),n([4,5,7,6,2,0]),n([4,5,7,6,0,0]),n([4,5,1,3,7,6]),n([0,2,3,7,5,4]),n([6,2,3,7,5,4]),n([6,2,3,1,5,4]),t})();function jt(t,e,n,r,i){const o=t.getQuaternion(Mt);i.quaternion=o,(0,a.fO)(St,o);const s=t.getCenter(Tt),h=t.getHalfSize(Vt);if(r===_.UZ.Global){(0,c.u)(qt,s,St),(0,c.v)(Dt,qt),(0,c.y)(kt,Dt,h),(0,c.z)(kt,Dt,kt);const r=(0,c.l)(kt);(0,c.g)(kt,Dt,h);const o=(0,c.l)(kt);if(r<n)i.center=s,(0,c.s)(qt,n,n,n),i.halfSize=(0,c.g)(qt,h,qt);else{const a=o>0?1+e/o:1,s=r>0?1+n/r:1,u=(s+a)/2,f=(s-a)/2;(0,c.h)(kt,Dt,f),i.halfSize=(0,c.r)(kt,kt,h,u),(0,c.h)(kt,Dt,u),(0,c.r)(kt,kt,h,f),(0,c.A)(qt,qt),(0,c.B)(qt,kt,qt);const d=t.getQuaternion(Ct);i.center=(0,c.u)(qt,qt,d)}}else{i.center=(0,c.r)(qt,s,u.wx,(n+e)/2);const t=(0,c.u)(qt,u.wx,St);(0,c.v)(t,t),i.halfSize=(0,c.r)(Dt,h,t,(n-e)/2)}return i}function At(t,e,n,i,o){const a=e.getQuaternion(Mt),s=(0,r.KU)(Et,a),c=e.getHalfSize(Vt);for(let t=0;t<8;++t){for(let e=0;e<3;++e)Bt[e]=c[e]*(0!=(t&1<<e)?-1:1);for(let e=0;e<3;++e){let r=n[e];for(let t=0;t<3;++t)r+=Bt[t]*s[3*t+e];Ot[3*t+e]=r}}(0,b.projectBuffer)(Ot,t,0,Ot,i,0,8),zt(Ft,o)}const Ot=new Array(24),Ft=new M.Y(Ot,3),Bt=(0,u.Su)(),Tt=(0,u.Su)(),Lt=(0,u.Su)(),Vt=(0,u.Su)(),Et=(0,i.Su)(),Nt=(0,o.Su)(),Yt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],qt=(0,u.Su)(),Dt=(0,u.Su)(),kt=(0,u.Su)(),Ht=(0,u.WK)(-1,-1,-1)},21288:(t,e,n)=>{var r;n.d(e,{UZ:()=>r}),function(t){t[t.Global=1]="Global",t[t.Local=2]="Local"}(r||(r={}))}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9512,8648],{77380:(e,t,r)=>{r.d(t,{I:()=>h,Y:()=>i});const i={Base64:0,Hex:1,String:2,Raw:3},n=8,s=(1<<n)-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*n;r<i;r+=n)t[r>>5]|=(e.charCodeAt(r/n)&s)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=n)t.push(String.fromCharCode(e[r>>5]>>>r%32&s));return t.join("")}function u(e,t,r,i,n,s){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(i,s)),n),r)}function c(e,t,r,i,n,s,o){return u(t&r|~t&i,e,t,n,s,o)}function p(e,t,r,i,n,s,o){return u(t&i|r&~i,e,t,n,s,o)}function d(e,t,r,i,n,s,o){return u(t^r^i,e,t,n,s,o)}function f(e,t,r,i,n,s,o){return u(r^(t|~i),e,t,n,s,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,u=n,y=s;r=c(r,i,n,s,e[t],7,-680876936),s=c(s,r,i,n,e[t+1],12,-389564586),n=c(n,s,r,i,e[t+2],17,606105819),i=c(i,n,s,r,e[t+3],22,-1044525330),r=c(r,i,n,s,e[t+4],7,-176418897),s=c(s,r,i,n,e[t+5],12,1200080426),n=c(n,s,r,i,e[t+6],17,-1473231341),i=c(i,n,s,r,e[t+7],22,-45705983),r=c(r,i,n,s,e[t+8],7,1770035416),s=c(s,r,i,n,e[t+9],12,-1958414417),n=c(n,s,r,i,e[t+10],17,-42063),i=c(i,n,s,r,e[t+11],22,-1990404162),r=c(r,i,n,s,e[t+12],7,1804603682),s=c(s,r,i,n,e[t+13],12,-40341101),n=c(n,s,r,i,e[t+14],17,-1502002290),i=c(i,n,s,r,e[t+15],22,1236535329),r=p(r,i,n,s,e[t+1],5,-165796510),s=p(s,r,i,n,e[t+6],9,-1069501632),n=p(n,s,r,i,e[t+11],14,643717713),i=p(i,n,s,r,e[t],20,-373897302),r=p(r,i,n,s,e[t+5],5,-701558691),s=p(s,r,i,n,e[t+10],9,38016083),n=p(n,s,r,i,e[t+15],14,-660478335),i=p(i,n,s,r,e[t+4],20,-405537848),r=p(r,i,n,s,e[t+9],5,568446438),s=p(s,r,i,n,e[t+14],9,-1019803690),n=p(n,s,r,i,e[t+3],14,-187363961),i=p(i,n,s,r,e[t+8],20,1163531501),r=p(r,i,n,s,e[t+13],5,-1444681467),s=p(s,r,i,n,e[t+2],9,-51403784),n=p(n,s,r,i,e[t+7],14,1735328473),i=p(i,n,s,r,e[t+12],20,-1926607734),r=d(r,i,n,s,e[t+5],4,-378558),s=d(s,r,i,n,e[t+8],11,-2022574463),n=d(n,s,r,i,e[t+11],16,1839030562),i=d(i,n,s,r,e[t+14],23,-35309556),r=d(r,i,n,s,e[t+1],4,-1530992060),s=d(s,r,i,n,e[t+4],11,1272893353),n=d(n,s,r,i,e[t+7],16,-155497632),i=d(i,n,s,r,e[t+10],23,-1094730640),r=d(r,i,n,s,e[t+13],4,681279174),s=d(s,r,i,n,e[t],11,-358537222),n=d(n,s,r,i,e[t+3],16,-722521979),i=d(i,n,s,r,e[t+6],23,76029189),r=d(r,i,n,s,e[t+9],4,-640364487),s=d(s,r,i,n,e[t+12],11,-421815835),n=d(n,s,r,i,e[t+15],16,530742520),i=d(i,n,s,r,e[t+2],23,-995338651),r=f(r,i,n,s,e[t],6,-198630844),s=f(s,r,i,n,e[t+7],10,1126891415),n=f(n,s,r,i,e[t+14],15,-1416354905),i=f(i,n,s,r,e[t+5],21,-57434055),r=f(r,i,n,s,e[t+12],6,1700485571),s=f(s,r,i,n,e[t+3],10,-1894986606),n=f(n,s,r,i,e[t+10],15,-1051523),i=f(i,n,s,r,e[t+1],21,-2054922799),r=f(r,i,n,s,e[t+8],6,1873313359),s=f(s,r,i,n,e[t+15],10,-30611744),n=f(n,s,r,i,e[t+6],15,-1560198380),i=f(i,n,s,r,e[t+13],21,1309151649),r=f(r,i,n,s,e[t+4],6,-145523070),s=f(s,r,i,n,e[t+11],10,-1120210379),n=f(n,s,r,i,e[t+2],15,718787259),i=f(i,n,s,r,e[t+9],21,-343485551),r=o(r,a),i=o(i,l),n=o(n,u),s=o(s,y)}return[r,i,n,s]}function h(e,t=i.Hex){const r=t||i.Base64,s=y(a(e),e.length*n);switch(r){case i.Raw:return s;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,n=4*e.length;i<n;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("")}(s);case i.String:return l(s);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 n=0;n<4;n++)8*r+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-n)&63))}return t.join("")}(s)}}},66888:(e,t,r)=>{r.d(t,{c:()=>ee});var i=r(41948),n=(r(99704),r(73868),r(90200),r(12836),r(63718),r(2360),r(64624)),s=(r(24948),r(70236)),o=r(66360),a=r(57896),l=r(1580),u=r(9456),c=(r(72052),r(12552)),p=r(40504),d=r(62088),f=r(3856);let y=class extends((0,f.q)(p.am)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],y.prototype,"expression",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],y.prototype,"returnType",void 0),y=(0,i._)([(0,c.c)("esri.layers.support.ExpressionInfo")],y);const h=y;var m;let b=m=class extends p.am{constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}clone(){return new m({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,d.ct)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],b.prototype,"isAutoGenerated",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],b.prototype,"name",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],b.prototype,"alias",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],b.prototype,"onStatisticField",void 0),(0,i._)([(0,l.qq)({type:h,json:{write:!0}})],b.prototype,"onStatisticExpression",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],b.prototype,"statisticType",void 0),b=m=(0,i._)([(0,c.c)("esri.layers.support.AggregateField")],b);const w=b;var g,v=r(84108),q=r(66464),_=r(82692),x=r(37284),I=r(58820),S=r(9968),F=r(33600),E=r(18996),j=r(21488),R=r(70388),A=r(6168);let C=g=class extends q.E{constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=3,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.fields=[],this.renderer=null}writeFields(e,t,r){const i=e.filter((e=>"avg_angle"!==e.statisticType)).map((e=>e.toJSON()));(0,I.qQ)(r,i,t)}readRenderer(e,t,r){const i=t.drawingInfo?.renderer;return i?(0,s.g)(i,t,r)??void 0:(0,R.i)(t,r)}clone(){return new g({fields:(0,d.ct)(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:(0,d.ct)(this.labelingInfo),labelsVisible:this.labelsVisible,maxScale:this.maxScale,popupEnabled:this.popupEnabled,popupTemplate:(0,d.ct)(this.popupTemplate),renderer:(0,d.ct)(this.renderer)})}};(0,i._)([(0,S.G)({binning:"binning"})],C.prototype,"type",void 0),(0,i._)([(0,S.G)({geohash:"geohash"})],C.prototype,"binType",void 0),(0,i._)([(0,l.qq)({type:Number,range:{min:1,max:9},json:{write:!0}})],C.prototype,"fixedBinLevel",void 0),(0,i._)([(0,l.qq)({type:[A.c],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],C.prototype,"labelingInfo",void 0),(0,i._)([(0,l.qq)(j.Wu)],C.prototype,"labelsVisible",void 0),(0,i._)([(0,l.qq)({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],C.prototype,"maxScale",void 0),(0,i._)([(0,l.qq)(j.Ou)],C.prototype,"popupEnabled",void 0),(0,i._)([(0,l.qq)({type:_.c,json:{name:"popupInfo",write:!0}})],C.prototype,"popupTemplate",void 0),(0,i._)([(0,l.qq)({type:[w],json:{write:!0}})],C.prototype,"fields",void 0),(0,i._)([(0,E.G)("fields")],C.prototype,"writeFields",null),(0,i._)([(0,l.qq)({types:x.U,json:{write:{target:"drawingInfo.renderer"}}})],C.prototype,"renderer",void 0),(0,i._)([(0,F.E)("renderer",["drawingInfo.renderer"])],C.prototype,"readRenderer",null),C=g=(0,i._)([(0,c.c)("esri.layers.support.FeatureReductionBinning")],C);const M=C;var O,T=r(17988),V=r(50144);function G(e){return"simple"===e.type&&!e.visualVariables?.length}let z=O=class extends p.am{constructor(e){super(e),this.type="cluster",this.clusterRadius=(0,V.Qz)("80px"),this.clusterMinSize=(0,V.Qz)("12px"),this.clusterMaxSize=(0,V.Qz)("50px"),this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}readRenderer(e,t,r){const i=t.drawingInfo?.renderer;return i?.authoringInfo?.isAutoGenerated?null:i?G(i)?null:(0,s.g)(i,t,r)??void 0:(0,R.i)(t,r)}readSymbol(e,t,r){const i=t.drawingInfo?.renderer;if(i?.authoringInfo?.isAutoGenerated)return null;if(i&&G(i)){const e=(0,s.g)(i,t,r);return e?.symbol}return null}writeSymbol(e,t,r,i){const s=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||s){const r=new n.c({symbol:e});t.drawingInfo={renderer:r.write({},i)}}}writeFields(e,t,r){const i=e.filter((e=>"avg_angle"!==e.statisticType)).map((e=>e.toJSON()));(0,I.qQ)(r,i,t)}readFields(e,t,r){return e.filter((e=>!e.isAutoGenerated)).map((e=>w.fromJSON(e)))}clone(){return new O({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:(0,d.ct)(this.labelingInfo),labelsVisible:this.labelsVisible,fields:(0,d.ct)(this.fields),maxScale:this.maxScale,renderer:(0,d.ct)(this.renderer),symbol:(0,d.ct)(this.symbol),popupEnabled:this.popupEnabled,popupTemplate:(0,d.ct)(this.popupTemplate)})}};(0,i._)([(0,l.qq)({type:["cluster"],readOnly:!0,json:{write:!0}})],z.prototype,"type",void 0),(0,i._)([(0,l.qq)({type:Number,cast:e=>"auto"===e?e:(0,V.Qz)(e),json:{write:!0}})],z.prototype,"clusterRadius",void 0),(0,i._)([(0,l.qq)({type:Number,cast:V.Qz,json:{write:!0}})],z.prototype,"clusterMinSize",void 0),(0,i._)([(0,l.qq)({type:Number,cast:V.Qz,json:{write:!0}})],z.prototype,"clusterMaxSize",void 0),(0,i._)([(0,l.qq)({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],z.prototype,"maxScale",void 0),(0,i._)([(0,l.qq)(j.Ou)],z.prototype,"popupEnabled",void 0),(0,i._)([(0,l.qq)({type:_.c,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],z.prototype,"popupTemplate",void 0),(0,i._)([(0,l.qq)({types:x.U,json:{write:{target:"drawingInfo.renderer"}}})],z.prototype,"renderer",void 0),(0,i._)([(0,F.E)("renderer",["drawingInfo.renderer"])],z.prototype,"readRenderer",null),(0,i._)([(0,l.qq)({types:T.Qw})],z.prototype,"symbol",void 0),(0,i._)([(0,F.E)("symbol",["drawingInfo.renderer"])],z.prototype,"readSymbol",null),(0,i._)([(0,E.G)("symbol")],z.prototype,"writeSymbol",null),(0,i._)([(0,l.qq)({type:[A.c],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],z.prototype,"labelingInfo",void 0),(0,i._)([(0,l.qq)(j.Wu)],z.prototype,"labelsVisible",void 0),(0,i._)([(0,l.qq)({type:[w],json:{write:!0}})],z.prototype,"fields",void 0),(0,i._)([(0,E.G)("fields")],z.prototype,"writeFields",null),(0,i._)([(0,F.E)("fields")],z.prototype,"readFields",null),z=O=(0,i._)([(0,c.c)("esri.layers.support.FeatureReductionCluster")],z);const P=z;var L=r(17968);const N={key:"type",base:q.E,typeMap:{cluster:P,binning:M}},$={types:{key:"type",base:q.E,typeMap:{selection:L.c,cluster:P,binning:M}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:N},"portal-item":{types:N},"web-scene":{types:{key:"type",base:q.E,typeMap:{selection:L.c}},name:"layerDefinition.featureReduction",write:{layerContainerTypes:v.T}}}}};var k=r(91920),D=r(43416),Q=r(20744),B=r(77380),H=r(1124),U=r(49736);u.c.add("esri-cluster-arcade-enabled",!0);const J=(0,u.c)("esri-cluster-arcade-enabled"),Z=new Set(["simple-line","simple-fill","picture-fill"]);function W(e,t){let r=t.clone();if(!X(r))return r;if(t.getSymbols().some((e=>Z.has(e.type)))&&(r=new n.c({symbol:new U.c})),r.authoringInfo||(r.authoringInfo=new H.c),r.authoringInfo.isAutoGenerated=!0,"visualVariables"in r){const t=(r.visualVariables||[]).filter((e=>"$view.scale"!==e.valueExpression));t.forEach((t=>{"rotation"===t.type?t.field?t.field=K(e,t.field,"avg_angle","number"):t.valueExpression&&(t.field=Y(e,t.valueExpression,"avg_angle","number"),t.valueExpression=null):t.normalizationField?(t.field=K(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=K(e,t.field,"avg","number"):t.valueExpression&&(t.field=Y(e,t.valueExpression,"avg","number"),t.valueExpression=null)})),r.visualVariables=t}switch(r.type){case"simple":break;case"pie-chart":for(const t of r.attributes)t.field?t.field=K(e,t.field,"sum","number"):t.valueExpression&&(t.field=Y(e,t.valueExpression,"sum","number"),t.valueExpression=null);break;case"unique-value":r.field?r.field=K(e,r.field,"mode","string"):r.valueExpression&&(r.field=Y(e,r.valueExpression,"mode","string"),r.valueExpression=null);break;case"class-breaks":r.normalizationField?(r.field=K(e,r.field,"avg_norm","number",r.normalizationField),r.normalizationField=null):r.field?r.field=K(e,r.field,"avg","number"):r.valueExpression&&(r.field=Y(e,r.valueExpression,"avg","number"),r.valueExpression=null)}return r}const X=e=>{const t=t=>o.c.getLogger("esri.views.2d.layers.support.clusterUtils").error(new Q.c("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){const r=e.normalizationType;if("field"!==r)return t(`FeatureReductionCluster does not support a normalizationType of ${r}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!J){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some((e=>!(!("valueExpression"in e)||!e.valueExpression))))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function Y(e,t,r,i){const n=(0,B.I)(t),s="mode"===r?`cluster_type_${n}`:"sum"===r?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some((e=>e.name===s))||e.push(new w({name:s,isAutoGenerated:!0,onStatisticExpression:new h({expression:t,returnType:i}),statisticType:r})),s}function K(e,t,r,i,n){if("cluster_count"===t||e.some((e=>e.name===t)))return t;const s=function(e,t,r){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{const e=r,i="field",n=t.toLowerCase()+",norm:"+i+","+e.toLowerCase();return"cluster_avg_"+(0,B.I)(n)}}}(r,t,n);return e.some((e=>e.name===s))||("avg_norm"===r?e.push(new w({name:s,isAutoGenerated:!0,onStatisticExpression:new h({expression:`$feature.${t} / $feature.${n}`,returnType:i}),statisticType:"avg"})):e.push(new w({name:s,isAutoGenerated:!0,onStatisticField:t,statisticType:r}))),s}const ee=e=>{let t=class extends e{constructor(...e){super(...e),this.addHandles((0,a.aE)((()=>this.renderer),(()=>{if(this.featureReduction){const e=this._normalizeFeatureReduction(this.featureReduction);this._set("featureReduction",e)}}),a.du))}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){}_withClusterVariable(e,t,r){const i=e.clone();return"visualVariables"in i&&(i.visualVariables||(i.visualVariables=[]),i.visualVariables.some((e=>"size"===e.type))||i.visualVariables.push(new k.c({field:"cluster_count",stops:[new D.c({value:1}),new D.c({useMinValue:!0,size:t}),new D.c({useMaxValue:!0,size:r})]}))),i}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;const t=e.clone(),r=[new w({name:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],i=(t.fields??[]).filter((e=>!e.isAutoGenerated)),s=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:o,clusterMaxSize:a}=t;if(s){t.fields=[...r,...i];const e=this._withClusterVariable(t.renderer,o,a);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...r,...i],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;const s=W(r,this.renderer),l=this._withClusterVariable(s,o,a),u="visualVariables"in l&&l.visualVariables?l.visualVariables:[],c=new n.c({symbol:e.symbol,visualVariables:u});return t.effectiveFeatureRenderer=l,t.effectiveClusterRenderer=c,t}if(!this.renderer)return e;const l=W(r,this.renderer);t.fields=[...r,...i],t.renderer=l;const u=this._withClusterVariable(l,o,a);return t.effectiveFeatureRenderer=u,t.effectiveClusterRenderer=u,t}};return(0,i._)([(0,l.qq)($)],t.prototype,"featureReduction",null),t=(0,i._)([(0,c.c)("esri.layers.mixins.FeatureReductionLayer")],t),t}},66464:(e,t,r)=>{r.d(t,{E:()=>a});var i=r(41948),n=r(40504),s=r(1580),o=(r(9456),r(66360),r(72052),r(12552));let a=class extends n.am{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,s.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:()=>u});var i,n=r(41948),s=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,n._)([(0,s.qq)({type:["selection"]})],l.prototype,"type",void 0),l=i=(0,n._)([(0,o.c)("esri.layers.support.FeatureReductionSelection")],l);const u=l},70388:(e,t,r)=>{r.d(t,{wj:()=>g,cV:()=>_,ig:()=>L,i:()=>$,cJ:()=>O,WC:()=>I,oh:()=>P,s1:()=>S,sD:()=>w,wl:()=>D,yo:()=>M,gx:()=>k,Q1:()=>F,iq:()=>R,YL:()=>j,W2:()=>E,ms:()=>A,UN:()=>C,Y9:()=>T,qY:()=>V,Ce:()=>G,kd:()=>q,Wm:()=>x});var i=r(47620),n=r(17988),s=r(40196),o=r(20744),a=r(14628),l=r(44247),u=r(64408),c=r(95776);async function p(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=d(e));const i=function(e){return d(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),n=e.capabilities.query.supportsPagination;t.start=0,t.num=i;let s=null;for(;;){const o=await e.source.queryFeaturesJSON(t,r);if(null==s?s=o:s.features=s.features.concat(o.features),s.exceededTransferLimit=o.exceededTransferLimit,!n||!o.exceededTransferLimit)break;t.start+=i}return s}function d(e){return e.capabilities.query.supportsMaxRecordCountFactor?c.c.MAX_MAX_RECORD_COUNT_FACTOR:1}var f=r(71068),y=r(64624),h=r(24948),m=r(19212),b=r(18648);const w=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function g(e,t,r,i){const n=await z(e);if(await v(e,t,i),!n.addAttachment)throw new o.c(i,"Layer source does not support addAttachment capability");return n.addAttachment(t,r)}function v(e,t,r){const{attributes:i}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?i?n&&i[n]?Promise.resolve():Promise.reject(new o.c(r,`feature is missing the identifying attribute ${n}`)):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,n){const s=await z(e);if(await v(e,t,n),!s.updateAttachment)throw new o.c(n,"Layer source does not support updateAttachment capability");return s.updateAttachment(t,r,i)}async function _(e,t,i){const{applyEdits:n}=await r.e(2768).then(r.bind(r,62768)),s=await e.load(),{source:o,globalIdField:a}=s;let l=i;return("feature"===s.type?s.infoFor3D:null)&&null!=t.deleteFeatures&&null!=a&&(l={...l,globalIdToObjectId:await D(e,t.deleteFeatures,a)}),n(s,o,t,i)}async function x(e,t,i){const{uploadAssets:n}=await r.e(2768).then(r.bind(r,62768)),s=await e.load();return n(s,s.source,t,i)}async function I(e,t,r,i){const n=await z(e);if(await v(e,t,i),!n.deleteAttachments)throw new o.c(i,"Layer source does not support deleteAttachments capability");return n.deleteAttachments(t,r)}async function S(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 F(e,t,r,i){t=m.c.from(t),await e.load();const n=e.source,s=e.capabilities;if(!s?.data?.supportsAttachment)throw new o.c(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:c,size:p,start:d,where:f}=t;if(!s?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||p?.length>0||c||d||f))throw new o.c(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||f))throw new o.c(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!n.queryAttachments)throw new o.c(i,"Layer source does not support queryAttachments capability",t);return n.queryAttachments(t)}async function E(e,t,r,i){const n=await z(e);if(!n.queryObjectIds)throw new o.c(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(c.c.from(t)??e.createQuery(),r)}async function j(e,t,r,i){const n=await z(e);if(!n.queryFeatureCount)throw new o.c(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(c.c.from(t)??e.createQuery(),r)}async function R(e,t,r,i){const n=await z(e);if(!n.queryExtent)throw new o.c(i,"Layer source does not support queryExtent capability");return n.queryExtent(c.c.from(t)??e.createQuery(),r)}async function A(e,t,r,i){const n=await z(e);if(!n.queryRelatedFeatures)throw new o.c(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(b.default.from(t),r)}async function C(e,t,r,i){const n=await z(e);if(!n.queryRelatedFeaturesCount)throw new o.c(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(b.default.from(t),r)}async function M(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 O(e){const t=new c.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:n,timeExtent:s}=e;return t.timeExtent=null!=n&&null!=s?s.offset(-n.value,n.unit):s||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function T(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 V(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 G(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 z(e){return(await e.load()).source}async function P(e,t,r){const n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const n=await(0,f.mK)(e,t);n&&(r=await i.id.checkSignInStatus(`${n}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(n,r)}function L(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const N=(0,u.g)({types:n.IX});function $(e,t){if(e.defaultSymbol)return e.types?.length?new h.c({defaultSymbol:N(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:N(e.symbol,e,t)})))}):new y.c({symbol:N(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 D(e,t,r){if(null==t)return null;const i=[],{objectIdField:n}=e;if(t.forEach((e=>{let t=null;if("attributes"in e){const{attributes:i}=e;t={globalId:i[r],objectId:null!=i[n]&&-1!==i[n]?i[n]: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=[n,r],o.cacheHint=!1;const a=await(0,s.SO)(p(e,o));if(!a.ok)return null;const l=new Map,u=a.value.features;for(const e of u){const t=e.attributes[r],i=e.attributes[n];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),n=r(66360),s=r(600),o=r(16424),a=r(564);function l(){return{fields:{type:[s.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(", ");n.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||n.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)}}}}},18648:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var i,n=r(41948),s=(r(60708),r(40504)),o=r(62088),a=r(1580),l=r(53368),u=r(12552),c=r(18996),p=r(88204),d=r(56156);let f=i=class extends s.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,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],f.prototype,"cacheHint",void 0),(0,n._)([(0,a.qq)({type:p.U,json:{write:!0}})],f.prototype,"dynamicDataSource",void 0),(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],f.prototype,"gdbVersion",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],f.prototype,"geometryPrecision",void 0),(0,n._)([(0,a.qq)({type:Date})],f.prototype,"historicMoment",void 0),(0,n._)([(0,c.G)("historicMoment")],f.prototype,"_writeHistoricMoment",null),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],f.prototype,"maxAllowableOffset",void 0),(0,n._)([(0,a.qq)({type:[Number],json:{write:!0}})],f.prototype,"objectIds",void 0),(0,n._)([(0,a.qq)({type:[String],json:{write:!0}})],f.prototype,"orderByFields",void 0),(0,n._)([(0,a.qq)({type:[String],json:{write:!0}})],f.prototype,"outFields",void 0),(0,n._)([(0,a.qq)({type:d.c,json:{read:{source:"outSR"},write:{target:"outSR"}}})],f.prototype,"outSpatialReference",void 0),(0,n._)([(0,a.qq)({json:{write:!0}})],f.prototype,"relationshipId",void 0),(0,n._)([(0,a.qq)({type:Number,json:{read:{source:"resultOffset"}}})],f.prototype,"start",void 0),(0,n._)([(0,c.G)("start"),(0,c.G)("num")],f.prototype,"writeStart",null),(0,n._)([(0,a.qq)({type:Number,json:{read:{source:"resultRecordCount"}}})],f.prototype,"num",void 0),(0,n._)([(0,a.qq)({json:{write:!0}})],f.prototype,"returnGeometry",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],f.prototype,"returnM",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],f.prototype,"returnZ",void 0),(0,n._)([(0,a.qq)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],f.prototype,"where",void 0),f=i=(0,n._)([(0,u.c)("esri.rest.support.RelationshipQuery")],f),f.from=(0,l.ey)(f);const y=f}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9512,8648],{77380:(e,t,r)=>{r.d(t,{I:()=>h,Y:()=>i});const i={Base64:0,Hex:1,String:2,Raw:3},n=8,s=(1<<n)-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*n;r<i;r+=n)t[r>>5]|=(e.charCodeAt(r/n)&s)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=n)t.push(String.fromCharCode(e[r>>5]>>>r%32&s));return t.join("")}function u(e,t,r,i,n,s){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(i,s)),n),r)}function c(e,t,r,i,n,s,o){return u(t&r|~t&i,e,t,n,s,o)}function p(e,t,r,i,n,s,o){return u(t&i|r&~i,e,t,n,s,o)}function d(e,t,r,i,n,s,o){return u(t^r^i,e,t,n,s,o)}function f(e,t,r,i,n,s,o){return u(r^(t|~i),e,t,n,s,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,u=n,y=s;r=c(r,i,n,s,e[t],7,-680876936),s=c(s,r,i,n,e[t+1],12,-389564586),n=c(n,s,r,i,e[t+2],17,606105819),i=c(i,n,s,r,e[t+3],22,-1044525330),r=c(r,i,n,s,e[t+4],7,-176418897),s=c(s,r,i,n,e[t+5],12,1200080426),n=c(n,s,r,i,e[t+6],17,-1473231341),i=c(i,n,s,r,e[t+7],22,-45705983),r=c(r,i,n,s,e[t+8],7,1770035416),s=c(s,r,i,n,e[t+9],12,-1958414417),n=c(n,s,r,i,e[t+10],17,-42063),i=c(i,n,s,r,e[t+11],22,-1990404162),r=c(r,i,n,s,e[t+12],7,1804603682),s=c(s,r,i,n,e[t+13],12,-40341101),n=c(n,s,r,i,e[t+14],17,-1502002290),i=c(i,n,s,r,e[t+15],22,1236535329),r=p(r,i,n,s,e[t+1],5,-165796510),s=p(s,r,i,n,e[t+6],9,-1069501632),n=p(n,s,r,i,e[t+11],14,643717713),i=p(i,n,s,r,e[t],20,-373897302),r=p(r,i,n,s,e[t+5],5,-701558691),s=p(s,r,i,n,e[t+10],9,38016083),n=p(n,s,r,i,e[t+15],14,-660478335),i=p(i,n,s,r,e[t+4],20,-405537848),r=p(r,i,n,s,e[t+9],5,568446438),s=p(s,r,i,n,e[t+14],9,-1019803690),n=p(n,s,r,i,e[t+3],14,-187363961),i=p(i,n,s,r,e[t+8],20,1163531501),r=p(r,i,n,s,e[t+13],5,-1444681467),s=p(s,r,i,n,e[t+2],9,-51403784),n=p(n,s,r,i,e[t+7],14,1735328473),i=p(i,n,s,r,e[t+12],20,-1926607734),r=d(r,i,n,s,e[t+5],4,-378558),s=d(s,r,i,n,e[t+8],11,-2022574463),n=d(n,s,r,i,e[t+11],16,1839030562),i=d(i,n,s,r,e[t+14],23,-35309556),r=d(r,i,n,s,e[t+1],4,-1530992060),s=d(s,r,i,n,e[t+4],11,1272893353),n=d(n,s,r,i,e[t+7],16,-155497632),i=d(i,n,s,r,e[t+10],23,-1094730640),r=d(r,i,n,s,e[t+13],4,681279174),s=d(s,r,i,n,e[t],11,-358537222),n=d(n,s,r,i,e[t+3],16,-722521979),i=d(i,n,s,r,e[t+6],23,76029189),r=d(r,i,n,s,e[t+9],4,-640364487),s=d(s,r,i,n,e[t+12],11,-421815835),n=d(n,s,r,i,e[t+15],16,530742520),i=d(i,n,s,r,e[t+2],23,-995338651),r=f(r,i,n,s,e[t],6,-198630844),s=f(s,r,i,n,e[t+7],10,1126891415),n=f(n,s,r,i,e[t+14],15,-1416354905),i=f(i,n,s,r,e[t+5],21,-57434055),r=f(r,i,n,s,e[t+12],6,1700485571),s=f(s,r,i,n,e[t+3],10,-1894986606),n=f(n,s,r,i,e[t+10],15,-1051523),i=f(i,n,s,r,e[t+1],21,-2054922799),r=f(r,i,n,s,e[t+8],6,1873313359),s=f(s,r,i,n,e[t+15],10,-30611744),n=f(n,s,r,i,e[t+6],15,-1560198380),i=f(i,n,s,r,e[t+13],21,1309151649),r=f(r,i,n,s,e[t+4],6,-145523070),s=f(s,r,i,n,e[t+11],10,-1120210379),n=f(n,s,r,i,e[t+2],15,718787259),i=f(i,n,s,r,e[t+9],21,-343485551),r=o(r,a),i=o(i,l),n=o(n,u),s=o(s,y)}return[r,i,n,s]}function h(e,t=i.Hex){const r=t||i.Base64,s=y(a(e),e.length*n);switch(r){case i.Raw:return s;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,n=4*e.length;i<n;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("")}(s);case i.String:return l(s);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 n=0;n<4;n++)8*r+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-n)&63))}return t.join("")}(s)}}},66888:(e,t,r)=>{r.d(t,{c:()=>ee});var i=r(41948),n=(r(99704),r(73868),r(90200),r(12836),r(63718),r(2360),r(64624)),s=(r(24948),r(70236)),o=r(66360),a=r(57896),l=r(1580),u=r(9456),c=(r(72052),r(12552)),p=r(40504),d=r(62088),f=r(3856);let y=class extends((0,f.q)(p.am)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],y.prototype,"expression",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],y.prototype,"returnType",void 0),y=(0,i._)([(0,c.c)("esri.layers.support.ExpressionInfo")],y);const h=y;var m;let b=m=class extends p.am{constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}clone(){return new m({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,d.ct)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,i._)([(0,l.qq)({type:Boolean,json:{write:!0}})],b.prototype,"isAutoGenerated",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],b.prototype,"name",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],b.prototype,"alias",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],b.prototype,"onStatisticField",void 0),(0,i._)([(0,l.qq)({type:h,json:{write:!0}})],b.prototype,"onStatisticExpression",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],b.prototype,"statisticType",void 0),b=m=(0,i._)([(0,c.c)("esri.layers.support.AggregateField")],b);const w=b;var g,v=r(84108),q=r(66464),_=r(82692),x=r(37284),I=r(58820),S=r(9968),F=r(33600),E=r(18996),j=r(21488),R=r(70388),A=r(6168);let C=g=class extends q.E{constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=3,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.fields=[],this.renderer=null}writeFields(e,t,r){const i=e.filter((e=>"avg_angle"!==e.statisticType)).map((e=>e.toJSON()));(0,I.qQ)(r,i,t)}readRenderer(e,t,r){const i=t.drawingInfo?.renderer;return i?(0,s.g)(i,t,r)??void 0:(0,R.i)(t,r)}clone(){return new g({fields:(0,d.ct)(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:(0,d.ct)(this.labelingInfo),labelsVisible:this.labelsVisible,maxScale:this.maxScale,popupEnabled:this.popupEnabled,popupTemplate:(0,d.ct)(this.popupTemplate),renderer:(0,d.ct)(this.renderer)})}};(0,i._)([(0,S.G)({binning:"binning"})],C.prototype,"type",void 0),(0,i._)([(0,S.G)({geohash:"geohash"})],C.prototype,"binType",void 0),(0,i._)([(0,l.qq)({type:Number,range:{min:1,max:9},json:{write:!0}})],C.prototype,"fixedBinLevel",void 0),(0,i._)([(0,l.qq)({type:[A.c],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],C.prototype,"labelingInfo",void 0),(0,i._)([(0,l.qq)(j.Wu)],C.prototype,"labelsVisible",void 0),(0,i._)([(0,l.qq)({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],C.prototype,"maxScale",void 0),(0,i._)([(0,l.qq)(j.Ou)],C.prototype,"popupEnabled",void 0),(0,i._)([(0,l.qq)({type:_.c,json:{name:"popupInfo",write:!0}})],C.prototype,"popupTemplate",void 0),(0,i._)([(0,l.qq)({type:[w],json:{write:!0}})],C.prototype,"fields",void 0),(0,i._)([(0,E.G)("fields")],C.prototype,"writeFields",null),(0,i._)([(0,l.qq)({types:x.U,json:{write:{target:"drawingInfo.renderer"}}})],C.prototype,"renderer",void 0),(0,i._)([(0,F.E)("renderer",["drawingInfo.renderer"])],C.prototype,"readRenderer",null),C=g=(0,i._)([(0,c.c)("esri.layers.support.FeatureReductionBinning")],C);const M=C;var O,T=r(17988),V=r(50144);function G(e){return"simple"===e.type&&!e.visualVariables?.length}let z=O=class extends p.am{constructor(e){super(e),this.type="cluster",this.clusterRadius=(0,V.Qz)("80px"),this.clusterMinSize=(0,V.Qz)("12px"),this.clusterMaxSize=(0,V.Qz)("50px"),this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=[]}readRenderer(e,t,r){const i=t.drawingInfo?.renderer;return i?.authoringInfo?.isAutoGenerated?null:i?G(i)?null:(0,s.g)(i,t,r)??void 0:(0,R.i)(t,r)}readSymbol(e,t,r){const i=t.drawingInfo?.renderer;if(i?.authoringInfo?.isAutoGenerated)return null;if(i&&G(i)){const e=(0,s.g)(i,t,r);return e?.symbol}return null}writeSymbol(e,t,r,i){const s=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||s){const r=new n.c({symbol:e});t.drawingInfo={renderer:r.write({},i)}}}writeFields(e,t,r){const i=e.filter((e=>"avg_angle"!==e.statisticType)).map((e=>e.toJSON()));(0,I.qQ)(r,i,t)}readFields(e,t,r){return e.filter((e=>!e.isAutoGenerated)).map((e=>w.fromJSON(e)))}clone(){return new O({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:(0,d.ct)(this.labelingInfo),labelsVisible:this.labelsVisible,fields:(0,d.ct)(this.fields),maxScale:this.maxScale,renderer:(0,d.ct)(this.renderer),symbol:(0,d.ct)(this.symbol),popupEnabled:this.popupEnabled,popupTemplate:(0,d.ct)(this.popupTemplate)})}};(0,i._)([(0,l.qq)({type:["cluster"],readOnly:!0,json:{write:!0}})],z.prototype,"type",void 0),(0,i._)([(0,l.qq)({type:Number,cast:e=>"auto"===e?e:(0,V.Qz)(e),json:{write:!0}})],z.prototype,"clusterRadius",void 0),(0,i._)([(0,l.qq)({type:Number,cast:V.Qz,json:{write:!0}})],z.prototype,"clusterMinSize",void 0),(0,i._)([(0,l.qq)({type:Number,cast:V.Qz,json:{write:!0}})],z.prototype,"clusterMaxSize",void 0),(0,i._)([(0,l.qq)({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],z.prototype,"maxScale",void 0),(0,i._)([(0,l.qq)(j.Ou)],z.prototype,"popupEnabled",void 0),(0,i._)([(0,l.qq)({type:_.c,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],z.prototype,"popupTemplate",void 0),(0,i._)([(0,l.qq)({types:x.U,json:{write:{target:"drawingInfo.renderer"}}})],z.prototype,"renderer",void 0),(0,i._)([(0,F.E)("renderer",["drawingInfo.renderer"])],z.prototype,"readRenderer",null),(0,i._)([(0,l.qq)({types:T.Qw})],z.prototype,"symbol",void 0),(0,i._)([(0,F.E)("symbol",["drawingInfo.renderer"])],z.prototype,"readSymbol",null),(0,i._)([(0,E.G)("symbol")],z.prototype,"writeSymbol",null),(0,i._)([(0,l.qq)({type:[A.c],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],z.prototype,"labelingInfo",void 0),(0,i._)([(0,l.qq)(j.Wu)],z.prototype,"labelsVisible",void 0),(0,i._)([(0,l.qq)({type:[w],json:{write:!0}})],z.prototype,"fields",void 0),(0,i._)([(0,E.G)("fields")],z.prototype,"writeFields",null),(0,i._)([(0,F.E)("fields")],z.prototype,"readFields",null),z=O=(0,i._)([(0,c.c)("esri.layers.support.FeatureReductionCluster")],z);const P=z;var L=r(17968);const N={key:"type",base:q.E,typeMap:{cluster:P,binning:M}},$={types:{key:"type",base:q.E,typeMap:{selection:L.c,cluster:P,binning:M}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:N},"portal-item":{types:N},"web-scene":{types:{key:"type",base:q.E,typeMap:{selection:L.c}},name:"layerDefinition.featureReduction",write:{layerContainerTypes:v.T}}}}};var k=r(91920),D=r(43416),Q=r(20744),B=r(77380),H=r(1124),U=r(49736);u.c.add("esri-cluster-arcade-enabled",!0);const J=(0,u.c)("esri-cluster-arcade-enabled"),Z=new Set(["simple-line","simple-fill","picture-fill"]);function W(e,t){let r=t.clone();if(!X(r))return r;if(t.getSymbols().some((e=>Z.has(e.type)))&&(r=new n.c({symbol:new U.c})),r.authoringInfo||(r.authoringInfo=new H.c),r.authoringInfo.isAutoGenerated=!0,"visualVariables"in r){const t=(r.visualVariables||[]).filter((e=>"$view.scale"!==e.valueExpression));t.forEach((t=>{"rotation"===t.type?t.field?t.field=K(e,t.field,"avg_angle","number"):t.valueExpression&&(t.field=Y(e,t.valueExpression,"avg_angle","number"),t.valueExpression=null):t.normalizationField?(t.field=K(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=K(e,t.field,"avg","number"):t.valueExpression&&(t.field=Y(e,t.valueExpression,"avg","number"),t.valueExpression=null)})),r.visualVariables=t}switch(r.type){case"simple":break;case"pie-chart":for(const t of r.attributes)t.field?t.field=K(e,t.field,"sum","number"):t.valueExpression&&(t.field=Y(e,t.valueExpression,"sum","number"),t.valueExpression=null);break;case"unique-value":r.field?r.field=K(e,r.field,"mode","string"):r.valueExpression&&(r.field=Y(e,r.valueExpression,"mode","string"),r.valueExpression=null);break;case"class-breaks":r.normalizationField?(r.field=K(e,r.field,"avg_norm","number",r.normalizationField),r.normalizationField=null):r.field?r.field=K(e,r.field,"avg","number"):r.valueExpression&&(r.field=Y(e,r.valueExpression,"avg","number"),r.valueExpression=null)}return r}const X=e=>{const t=t=>o.c.getLogger("esri.views.2d.layers.support.clusterUtils").error(new Q.c("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){const r=e.normalizationType;if("field"!==r)return t(`FeatureReductionCluster does not support a normalizationType of ${r}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!J){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some((e=>!(!("valueExpression"in e)||!e.valueExpression))))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0};function Y(e,t,r,i){const n=(0,B.I)(t),s="mode"===r?`cluster_type_${n}`:"sum"===r?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some((e=>e.name===s))||e.push(new w({name:s,isAutoGenerated:!0,onStatisticExpression:new h({expression:t,returnType:i}),statisticType:r})),s}function K(e,t,r,i,n){if("cluster_count"===t||e.some((e=>e.name===t)))return t;const s=function(e,t,r){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{const e=r,i="field",n=t.toLowerCase()+",norm:"+i+","+e.toLowerCase();return"cluster_avg_"+(0,B.I)(n)}}}(r,t,n);return e.some((e=>e.name===s))||("avg_norm"===r?e.push(new w({name:s,isAutoGenerated:!0,onStatisticExpression:new h({expression:`$feature.${t} / $feature.${n}`,returnType:i}),statisticType:"avg"})):e.push(new w({name:s,isAutoGenerated:!0,onStatisticField:t,statisticType:r}))),s}const ee=e=>{let t=class extends e{constructor(...e){super(...e),this.addHandles((0,a.aE)((()=>this.renderer),(()=>{if(this.featureReduction){const e=this._normalizeFeatureReduction(this.featureReduction);this._set("featureReduction",e)}}),a.du))}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){}_withClusterVariable(e,t,r){const i=e.clone();return"visualVariables"in i&&(i.visualVariables||(i.visualVariables=[]),i.visualVariables.some((e=>"size"===e.type))||i.visualVariables.push(new k.c({field:"cluster_count",stops:[new D.c({value:1}),new D.c({useMinValue:!0,size:t}),new D.c({useMaxValue:!0,size:r})]}))),i}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;const t=e.clone(),r=[new w({name:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],i=(t.fields??[]).filter((e=>!e.isAutoGenerated)),s=e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated,{clusterMinSize:o,clusterMaxSize:a}=t;if(s){t.fields=[...r,...i];const e=this._withClusterVariable(t.renderer,o,a);return t.effectiveFeatureRenderer=e,t.effectiveClusterRenderer=e,t}if(e.symbol){if(t.fields=[...r,...i],t.renderer=null,!this.renderer)return t.effectiveFeatureRenderer=null,t.effectiveClusterRenderer=null,t;const s=W(r,this.renderer),l=this._withClusterVariable(s,o,a),u="visualVariables"in l&&l.visualVariables?l.visualVariables:[],c=new n.c({symbol:e.symbol,visualVariables:u});return t.fields=[...r,...i],t.effectiveFeatureRenderer=l,t.effectiveClusterRenderer=c,t}if(!this.renderer)return e;const l=W(r,this.renderer);t.fields=[...r,...i],t.renderer=l;const u=this._withClusterVariable(l,o,a);return t.effectiveFeatureRenderer=u,t.effectiveClusterRenderer=u,t}};return(0,i._)([(0,l.qq)($)],t.prototype,"featureReduction",null),t=(0,i._)([(0,c.c)("esri.layers.mixins.FeatureReductionLayer")],t),t}},66464:(e,t,r)=>{r.d(t,{E:()=>a});var i=r(41948),n=r(40504),s=r(1580),o=(r(9456),r(66360),r(72052),r(12552));let a=class extends n.am{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,s.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:()=>u});var i,n=r(41948),s=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,n._)([(0,s.qq)({type:["selection"]})],l.prototype,"type",void 0),l=i=(0,n._)([(0,o.c)("esri.layers.support.FeatureReductionSelection")],l);const u=l},70388:(e,t,r)=>{r.d(t,{wj:()=>g,cV:()=>_,ig:()=>L,i:()=>$,cJ:()=>O,WC:()=>I,oh:()=>P,s1:()=>S,sD:()=>w,wl:()=>D,yo:()=>M,gx:()=>k,Q1:()=>F,iq:()=>R,YL:()=>j,W2:()=>E,ms:()=>A,UN:()=>C,Y9:()=>T,qY:()=>V,Ce:()=>G,kd:()=>q,Wm:()=>x});var i=r(47620),n=r(17988),s=r(40196),o=r(20744),a=r(14628),l=r(44247),u=r(64408),c=r(95776);async function p(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=d(e));const i=function(e){return d(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),n=e.capabilities.query.supportsPagination;t.start=0,t.num=i;let s=null;for(;;){const o=await e.source.queryFeaturesJSON(t,r);if(null==s?s=o:s.features=s.features.concat(o.features),s.exceededTransferLimit=o.exceededTransferLimit,!n||!o.exceededTransferLimit)break;t.start+=i}return s}function d(e){return e.capabilities.query.supportsMaxRecordCountFactor?c.c.MAX_MAX_RECORD_COUNT_FACTOR:1}var f=r(71068),y=r(64624),h=r(24948),m=r(19212),b=r(18648);const w=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function g(e,t,r,i){const n=await z(e);if(await v(e,t,i),!n.addAttachment)throw new o.c(i,"Layer source does not support addAttachment capability");return n.addAttachment(t,r)}function v(e,t,r){const{attributes:i}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?i?n&&i[n]?Promise.resolve():Promise.reject(new o.c(r,`feature is missing the identifying attribute ${n}`)):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,n){const s=await z(e);if(await v(e,t,n),!s.updateAttachment)throw new o.c(n,"Layer source does not support updateAttachment capability");return s.updateAttachment(t,r,i)}async function _(e,t,i){const{applyEdits:n}=await r.e(2768).then(r.bind(r,62768)),s=await e.load(),{source:o,globalIdField:a}=s;let l=i;return("feature"===s.type?s.infoFor3D:null)&&null!=t.deleteFeatures&&null!=a&&(l={...l,globalIdToObjectId:await D(e,t.deleteFeatures,a)}),n(s,o,t,i)}async function x(e,t,i){const{uploadAssets:n}=await r.e(2768).then(r.bind(r,62768)),s=await e.load();return n(s,s.source,t,i)}async function I(e,t,r,i){const n=await z(e);if(await v(e,t,i),!n.deleteAttachments)throw new o.c(i,"Layer source does not support deleteAttachments capability");return n.deleteAttachments(t,r)}async function S(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 F(e,t,r,i){t=m.c.from(t),await e.load();const n=e.source,s=e.capabilities;if(!s?.data?.supportsAttachment)throw new o.c(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:c,size:p,start:d,where:f}=t;if(!s?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||p?.length>0||c||d||f))throw new o.c(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||f))throw new o.c(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!n.queryAttachments)throw new o.c(i,"Layer source does not support queryAttachments capability",t);return n.queryAttachments(t)}async function E(e,t,r,i){const n=await z(e);if(!n.queryObjectIds)throw new o.c(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(c.c.from(t)??e.createQuery(),r)}async function j(e,t,r,i){const n=await z(e);if(!n.queryFeatureCount)throw new o.c(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(c.c.from(t)??e.createQuery(),r)}async function R(e,t,r,i){const n=await z(e);if(!n.queryExtent)throw new o.c(i,"Layer source does not support queryExtent capability");return n.queryExtent(c.c.from(t)??e.createQuery(),r)}async function A(e,t,r,i){const n=await z(e);if(!n.queryRelatedFeatures)throw new o.c(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(b.default.from(t),r)}async function C(e,t,r,i){const n=await z(e);if(!n.queryRelatedFeaturesCount)throw new o.c(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(b.default.from(t),r)}async function M(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 O(e){const t=new c.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:n,timeExtent:s}=e;return t.timeExtent=null!=n&&null!=s?s.offset(-n.value,n.unit):s||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function T(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 V(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 G(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 z(e){return(await e.load()).source}async function P(e,t,r){const n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const n=await(0,f.mK)(e,t);n&&(r=await i.id.checkSignInStatus(`${n}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(n,r)}function L(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const N=(0,u.g)({types:n.IX});function $(e,t){if(e.defaultSymbol)return e.types?.length?new h.c({defaultSymbol:N(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:N(e.symbol,e,t)})))}):new y.c({symbol:N(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 D(e,t,r){if(null==t)return null;const i=[],{objectIdField:n}=e;if(t.forEach((e=>{let t=null;if("attributes"in e){const{attributes:i}=e;t={globalId:i[r],objectId:null!=i[n]&&-1!==i[n]?i[n]: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=[n,r],o.cacheHint=!1;const a=await(0,s.SO)(p(e,o));if(!a.ok)return null;const l=new Map,u=a.value.features;for(const e of u){const t=e.attributes[r],i=e.attributes[n];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),n=r(66360),s=r(600),o=r(16424),a=r(564);function l(){return{fields:{type:[s.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(", ");n.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||n.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)}}}}},18648:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var i,n=r(41948),s=(r(60708),r(40504)),o=r(62088),a=r(1580),l=r(53368),u=r(12552),c=r(18996),p=r(88204),d=r(56156);let f=i=class extends s.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,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],f.prototype,"cacheHint",void 0),(0,n._)([(0,a.qq)({type:p.U,json:{write:!0}})],f.prototype,"dynamicDataSource",void 0),(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],f.prototype,"gdbVersion",void 0),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],f.prototype,"geometryPrecision",void 0),(0,n._)([(0,a.qq)({type:Date})],f.prototype,"historicMoment",void 0),(0,n._)([(0,c.G)("historicMoment")],f.prototype,"_writeHistoricMoment",null),(0,n._)([(0,a.qq)({type:Number,json:{write:!0}})],f.prototype,"maxAllowableOffset",void 0),(0,n._)([(0,a.qq)({type:[Number],json:{write:!0}})],f.prototype,"objectIds",void 0),(0,n._)([(0,a.qq)({type:[String],json:{write:!0}})],f.prototype,"orderByFields",void 0),(0,n._)([(0,a.qq)({type:[String],json:{write:!0}})],f.prototype,"outFields",void 0),(0,n._)([(0,a.qq)({type:d.c,json:{read:{source:"outSR"},write:{target:"outSR"}}})],f.prototype,"outSpatialReference",void 0),(0,n._)([(0,a.qq)({json:{write:!0}})],f.prototype,"relationshipId",void 0),(0,n._)([(0,a.qq)({type:Number,json:{read:{source:"resultOffset"}}})],f.prototype,"start",void 0),(0,n._)([(0,c.G)("start"),(0,c.G)("num")],f.prototype,"writeStart",null),(0,n._)([(0,a.qq)({type:Number,json:{read:{source:"resultRecordCount"}}})],f.prototype,"num",void 0),(0,n._)([(0,a.qq)({json:{write:!0}})],f.prototype,"returnGeometry",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],f.prototype,"returnM",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],f.prototype,"returnZ",void 0),(0,n._)([(0,a.qq)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],f.prototype,"where",void 0),f=i=(0,n._)([(0,u.c)("esri.rest.support.RelationshipQuery")],f),f.from=(0,l.ey)(f);const y=f}}]);