@arcgis/core 4.33.0-next.20250209 → 4.33.0-next.20250211

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 (279) hide show
  1. package/AttributeBinsGraphic.js +1 -1
  2. package/Graphic.js +1 -1
  3. package/Ground.js +1 -1
  4. package/WebMap.js +1 -1
  5. package/WebScene.js +1 -1
  6. package/arcade/ArcadeModuleResolver.js +1 -1
  7. package/arcade/featureset/actions/Adapted.js +1 -1
  8. package/arcade/featureset/support/FeatureSet.js +1 -1
  9. package/arcade/featureset/support/Guid.js +1 -1
  10. package/arcade/featureset/support/cache.js +1 -1
  11. package/assets/esri/core/workers/RemoteClient.js +1 -1
  12. package/assets/esri/core/workers/chunks/{d31f7598629f7cc50233.js → 004853abf357f865b4fa.js} +1 -1
  13. package/assets/esri/core/workers/chunks/00e374e3b4781c4f9a3e.js +1 -0
  14. package/assets/esri/core/workers/chunks/{746c964cf07e4306f21f.js → 03f51ea011ffbcfb7c7d.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{ad3e692681b50bd1acc2.js → 03fac4c79641603d8cba.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{0167cf867d8e46c818b0.js → 09260bbe1fd6ce5a53e6.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{d1718ad93e3271b0525e.js → 0e4350fda5328862f2fb.js} +1 -1
  18. package/assets/esri/core/workers/chunks/12199e8abf377ffc27cd.js +1 -0
  19. package/assets/esri/core/workers/chunks/1a286d43daa3b811c30d.js +1 -0
  20. package/assets/esri/core/workers/chunks/{e5e3b6d00d27b5bb354f.js → 1d282700e76285a1684c.js} +1 -1
  21. package/assets/esri/core/workers/chunks/2130e0c8d2410c87f880.js +1 -0
  22. package/assets/esri/core/workers/chunks/2530e5d1f438db8a7b5c.js +1 -0
  23. package/assets/esri/core/workers/chunks/{dfaf1da323906ee60549.js → 2876419a32537e24b7da.js} +1 -1
  24. package/assets/esri/core/workers/chunks/2b733e8043659466e194.js +1 -0
  25. package/assets/esri/core/workers/chunks/311c85bd94d5fb28e272.js +1 -0
  26. package/assets/esri/core/workers/chunks/33c6fd524711efd8ef13.js +1 -0
  27. package/assets/esri/core/workers/chunks/{594d923400fd74881833.js → 35392bf8f21005ad6170.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{de1f3c4b8000c2d73013.js → 39dca492cc5f089e1609.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{5b85f9da022742f602e2.js → 3c8e5b5fb52611e30ed6.js} +1 -1
  30. package/assets/esri/core/workers/chunks/491effb2c681493cc3a6.js +1 -0
  31. package/assets/esri/core/workers/chunks/{e93dea6b112ce8e2779b.js → 4b47549614d53ce1e384.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{369a2b8484a8807bde38.js → 4be5e453fe54f5631659.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{2971266a49226e769360.js → 5e5045add6567588b90a.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{5721557a1d8eab23a55b.js → 5eceedac9b2b4d1ef133.js} +1 -1
  35. package/assets/esri/core/workers/chunks/6a9a1cd8134a903dd05a.js +1 -0
  36. package/assets/esri/core/workers/chunks/6c9bb00f33649ab59dab.js +314 -0
  37. package/assets/esri/core/workers/chunks/7485588bd24217669578.js +1 -0
  38. package/assets/esri/core/workers/chunks/74e0116ae84def626c87.js +1 -0
  39. package/assets/esri/core/workers/chunks/{c4374b6bc5c8dc6435c7.js → 7c81e08fc8a67dcd9dad.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{433576983754f690bcc7.js → 7e3b374f906441cd7fb0.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{8c32cee395da0a7b9a8e.js → 80d3aa3f27ad5b2b969b.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{de4384b5833a60e88e31.js → 84c1c3336011a1b79669.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{9d61590c4d21c7421925.js → 88a34690480d3658bad8.js} +1 -1
  44. package/assets/esri/core/workers/chunks/8939479cd433cc53f6c1.js +1 -0
  45. package/assets/esri/core/workers/chunks/{28dd172faa85080511c5.js → 8a2f3ce46eeac853b3a9.js} +1 -1
  46. package/assets/esri/core/workers/chunks/8b6580329e1e35ea4190.js +1 -0
  47. package/assets/esri/core/workers/chunks/8bfeef7cffe1e65c9dab.js +1 -0
  48. package/assets/esri/core/workers/chunks/{b44cf0e4c2f93408cabc.js → 9205115bdb5bc03d0c02.js} +1 -1
  49. package/assets/esri/core/workers/chunks/92d76d59113b4139befe.js +1 -0
  50. package/assets/esri/core/workers/chunks/9421ae38fdf986b9b107.js +1 -0
  51. package/assets/esri/core/workers/chunks/99c136b800e5fc7e04f4.js +1 -0
  52. package/assets/esri/core/workers/chunks/{d339dee99c4820b63f39.js → 9b74635d80d029498da1.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{c2336d1f5b2b7bf6e7a7.js → 9bd6a4bf8150a6f618ea.js} +1 -1
  54. package/assets/esri/core/workers/chunks/9e7895e8201127ffe0a8.js +1 -0
  55. package/assets/esri/core/workers/chunks/{15e08e8a8a72b177d74c.js → a38cb1fff519bad8abe3.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{7b367bb0ed9c218ca595.js → a52690a27f8732739c02.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{cdd8983cf3a301805680.js → a52c282609a7e9c8ca9e.js} +1 -1
  58. package/assets/esri/core/workers/chunks/a56b3dffd9f38973f350.js +1 -0
  59. package/assets/esri/core/workers/chunks/a9274c9132e7a2691abb.js +1 -0
  60. package/assets/esri/core/workers/chunks/b253cf42e53f957b4b4e.js +1 -0
  61. package/assets/esri/core/workers/chunks/b50176897ffadc53573e.js +1 -0
  62. package/assets/esri/core/workers/chunks/{c26ffbff1115e76bcb0f.js → baee20c14763bef80b09.js} +1 -1
  63. package/assets/esri/core/workers/chunks/c3dc355d0f8d89b9b7b8.js +1 -0
  64. package/assets/esri/core/workers/chunks/c77ade444aa2f3f2b599.js +1 -0
  65. package/assets/esri/core/workers/chunks/c7927c2d5414f19defd5.js +1 -0
  66. package/assets/esri/core/workers/chunks/ca6180e572e69540c183.js +1 -0
  67. package/assets/esri/core/workers/chunks/{16f82e9d98371431b46d.js → cc085918c63da416e59d.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{8e90c5fee4ad7c7275dc.js → cccd215b0a4890551957.js} +1 -1
  69. package/assets/esri/core/workers/chunks/ce88224af357957dd83a.js +1 -0
  70. package/assets/esri/core/workers/chunks/{07c5f3fc475c57f5a7a7.js → cf00df122df3db3b0c23.js} +1 -1
  71. package/assets/esri/core/workers/chunks/d074c916b414432a7b6a.js +1 -0
  72. package/assets/esri/core/workers/chunks/d342c56558f164e9e786.js +1 -0
  73. package/assets/esri/core/workers/chunks/{3c591f76e7d6204b7780.js → d3f7ff03ab5b40062d89.js} +1 -1
  74. package/assets/esri/core/workers/chunks/e03e237e7e6ffc8b7f0d.js +1 -0
  75. package/assets/esri/core/workers/chunks/{0b62871b89dcb4c70457.js → e21941260bae30061c2c.js} +1 -1
  76. package/assets/esri/core/workers/chunks/e6633f0326a44477f630.js +1 -0
  77. package/assets/esri/core/workers/chunks/e71b780d1e6a32f303b7.js +1 -0
  78. package/assets/esri/core/workers/chunks/eac28b0f6fccfabcc3ca.js +1 -0
  79. package/assets/esri/core/workers/chunks/{01c3507d78398baaf61b.js → eb0ce7937813d1be1284.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{f198f4ba7d3d52882d98.js → efded84870064c3d8210.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{c8a0089e080140db9076.js → f285ed5425b31123d2bc.js} +1 -1
  82. package/assets/esri/core/workers/chunks/f4ba823c8acd60c7c82d.js +1 -0
  83. package/core/Accessor.js +1 -1
  84. package/core/Collection.js +1 -1
  85. package/core/Logger.js +1 -1
  86. package/core/ObjectPool.js +1 -1
  87. package/core/RandomLCG.js +1 -1
  88. package/core/XHRAdapter.js +1 -1
  89. package/core/accessorSupport/watch.js +1 -1
  90. package/core/pbf.js +1 -1
  91. package/core/sql/UnknownTimeZone.js +1 -1
  92. package/core/workers/RemoteClient.js +1 -1
  93. package/geometry/SpatialReference.js +1 -1
  94. package/geometry/support/MeshGeoreferencedVertexSpace.js +1 -1
  95. package/geometry/support/MeshTexture.js +1 -1
  96. package/geometry/support/MeshTransform.js +1 -1
  97. package/geometry/support/buffer/BufferPool.js +1 -1
  98. package/geometry/support/buffer/BufferView.js +1 -1
  99. package/geometry/support/buffer/internals/Mat3.js +1 -1
  100. package/geometry/support/buffer/internals/Mat4.js +1 -1
  101. package/geometry/support/buffer/internals/Scalar.js +1 -1
  102. package/geometry/support/buffer/internals/Vec2.js +1 -1
  103. package/geometry/support/buffer/internals/Vec3.js +1 -1
  104. package/geometry/support/buffer/internals/Vec4.js +1 -1
  105. package/geometry/support/meshUtils/exporters/gltf/glb.js +1 -1
  106. package/identity/OAuthInfo.js +1 -1
  107. package/interfaces.d.ts +7 -1
  108. package/layers/mixins/EditBusLayer.js +1 -1
  109. package/layers/mixins/PublishableLayer.js +1 -1
  110. package/layers/support/AggregateField.js +1 -1
  111. package/layers/support/CodedValueDomain.js +1 -1
  112. package/layers/support/Field.js +1 -1
  113. package/layers/support/ImageElement.js +1 -1
  114. package/layers/support/InheritedDomain.js +1 -1
  115. package/layers/support/LOD.js +1 -1
  116. package/layers/support/LabelClass.js +1 -1
  117. package/layers/support/LabelExpressionInfo.js +1 -1
  118. package/layers/support/OrderByInfo.js +1 -1
  119. package/layers/support/PurgeOptions.js +1 -1
  120. package/layers/support/RangeDomain.js +1 -1
  121. package/layers/support/Sublayer.js +1 -1
  122. package/layers/support/TileInfo.js +1 -1
  123. package/layers/support/TilemapCache.js +1 -1
  124. package/layers/support/VideoElement.js +1 -1
  125. package/layers/support/source/DataLayerSource.js +1 -1
  126. package/package.json +1 -1
  127. package/portal/Portal.js +1 -1
  128. package/rest/support/AttachmentQuery.js +1 -1
  129. package/rest/support/ClosestFacilityParameters.js +1 -1
  130. package/rest/support/DirectionLine.js +1 -1
  131. package/rest/support/DirectionPoint.js +1 -1
  132. package/rest/support/JobInfo.js +1 -1
  133. package/rest/support/NetworkFeatureSet.js +1 -1
  134. package/rest/support/PointBarrier.js +1 -1
  135. package/rest/support/PolygonBarrier.js +1 -1
  136. package/rest/support/PolylineBarrier.js +1 -1
  137. package/rest/support/Query.js +1 -1
  138. package/rest/support/RelationshipQuery.js +1 -1
  139. package/rest/support/RouteInfo.js +1 -1
  140. package/rest/support/RouteParameters.js +1 -1
  141. package/rest/support/ServiceAreaParameters.js +1 -1
  142. package/rest/support/Stop.js +1 -1
  143. package/rest/support/TopFeaturesQuery.js +1 -1
  144. package/support/revision.js +1 -1
  145. package/symbols/ExtrudeSymbol3DLayer.js +1 -1
  146. package/symbols/FillSymbol3DLayer.js +1 -1
  147. package/symbols/IconSymbol3DLayer.js +1 -1
  148. package/symbols/LineSymbol3DLayer.js +1 -1
  149. package/symbols/ObjectSymbol3DLayer.js +1 -1
  150. package/symbols/PathSymbol3DLayer.js +1 -1
  151. package/symbols/TextSymbol3DLayer.js +1 -1
  152. package/symbols/WaterSymbol3DLayer.js +1 -1
  153. package/symbols/cim/OverrideHelper.js +1 -1
  154. package/symbols/cim/effects/EffectAddControlPoints.js +1 -1
  155. package/symbols/cim/effects/EffectArrow.js +1 -1
  156. package/symbols/cim/effects/EffectBuffer.js +1 -1
  157. package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
  158. package/symbols/cim/effects/EffectCut.js +1 -1
  159. package/symbols/cim/effects/EffectDashes.js +1 -1
  160. package/symbols/cim/effects/EffectDonut.js +1 -1
  161. package/symbols/cim/effects/EffectJog.js +1 -1
  162. package/symbols/cim/effects/EffectMove.js +1 -1
  163. package/symbols/cim/effects/EffectOffset.js +1 -1
  164. package/symbols/cim/effects/EffectReverse.js +1 -1
  165. package/symbols/cim/effects/EffectRotate.js +1 -1
  166. package/symbols/cim/effects/EffectScale.js +1 -1
  167. package/symbols/cim/effects/EffectWave.js +1 -1
  168. package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
  169. package/symbols/cim/placements/PlacementAtExtremities.js +1 -1
  170. package/symbols/cim/placements/PlacementAtRatioPositions.js +1 -1
  171. package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
  172. package/symbols/cim/placements/PlacementOnLine.js +1 -1
  173. package/symbols/cim/placements/PlacementOnVertices.js +1 -1
  174. package/symbols/cim/placements/PlacementPolygonCenter.js +1 -1
  175. package/symbols/support/ElevationInfo.js +1 -1
  176. package/time/TimeExtent.js +1 -1
  177. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  178. package/views/2d/engine/vectorTiles/expression/expression.js +1 -1
  179. package/views/2d/engine/vectorTiles/shaders/VTLBackgroundMaterial.js +1 -1
  180. package/views/2d/engine/vectorTiles/shaders/VTLCircleMaterial.js +1 -1
  181. package/views/2d/engine/vectorTiles/shaders/VTLFillMaterial.js +1 -1
  182. package/views/2d/engine/vectorTiles/shaders/VTLLineMaterial.js +1 -1
  183. package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
  184. package/views/2d/engine/vectorTiles/shaders/VTLSymbolMaterial.js +1 -1
  185. package/views/2d/engine/vectorTiles/style/StyleDefinition.js +1 -1
  186. package/views/2d/engine/webgl/DisplayEntity.js +1 -1
  187. package/views/2d/engine/webgl/DisplayRecord.js +1 -1
  188. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  189. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphNode.js +1 -1
  190. package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
  191. package/views/2d/layers/features/FeatureStoreQueryAdapter.js +1 -1
  192. package/views/2d/tiling/TileCoverage.js +1 -1
  193. package/views/2d/tiling/TileKey.js +1 -1
  194. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  195. package/views/3d/environment/SceneViewEnvironment.js +1 -1
  196. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  197. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  198. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  199. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  200. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  201. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  202. package/views/3d/layers/graphics/pipeline/featureSet/TiledFeatureStore.js +1 -1
  203. package/views/3d/layers/graphics/pipeline/rendering/DirectRenderer.js +1 -1
  204. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  205. package/views/3d/layers/graphics/pipeline/rendering/LodRenderer.js +1 -1
  206. package/views/3d/layers/graphics/pipeline/rendering/RenderCommandEncoder.js +1 -1
  207. package/views/3d/layers/graphics/pipeline/symbolization/TestObjectSymbol.js +1 -1
  208. package/views/3d/state/Frustum.js +1 -1
  209. package/views/3d/support/DisplayQualityProfile.js +1 -1
  210. package/views/3d/terrain/TerrainSurface.js +1 -1
  211. package/views/3d/terrain/TextureFader.js +1 -1
  212. package/views/3d/terrain/TilingScheme.js +1 -1
  213. package/views/3d/webgl-engine/collections/Component/ComponentIntersectionData.js +1 -1
  214. package/views/3d/webgl-engine/lib/DepthRange.js +1 -1
  215. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  216. package/views/3d/webgl-engine/lib/edgeRendering/edgeBufferWriters.js +1 -1
  217. package/views/SceneView.js +1 -1
  218. package/views/View.js +1 -1
  219. package/views/View2D.js +1 -1
  220. package/views/draw/DrawAction.js +1 -1
  221. package/views/draw/drawSurfaces.js +1 -1
  222. package/views/input/BrowserEventSource.js +1 -1
  223. package/views/interactive/editGeometry/operations/UndoGroup.js +1 -1
  224. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  225. package/views/support/imageReprojection.js +1 -1
  226. package/views/webgl/FramebufferObject.js +1 -1
  227. package/views/webgl/ShaderBuilder.js +1 -1
  228. package/views/webgl/Texture.js +1 -1
  229. package/webscene/Environment.js +1 -1
  230. package/webscene/SunLighting.js +1 -1
  231. package/webscene/VirtualLighting.js +1 -1
  232. package/widgets/BuildingExplorer/BuildingDisciplinesTree/BuildingDisciplinesNode.js +1 -1
  233. package/widgets/BuildingExplorer/BuildingDisciplinesTree/BuildingDisciplinesTree.js +1 -1
  234. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  235. package/widgets/Feature/FeatureViewModel.js +1 -1
  236. package/widgets/LayerList/LayerListItem.js +1 -1
  237. package/widgets/OrientedImageryViewer/components/SketchTools.js +1 -1
  238. package/widgets/ScaleRangeSlider/ScaleRanges.js +1 -1
  239. package/widgets/Search/SearchViewModel.js +1 -1
  240. package/widgets/Sketch/support/ResponsiveToolbar/OverflowGroup.js +1 -1
  241. package/widgets/Sketch/support/ResponsiveToolbar/SplitButton.js +1 -1
  242. package/widgets/Widget.js +1 -1
  243. package/widgets/support/forms/expressions/FormExpressionArcadeExecutor.js +1 -1
  244. package/assets/esri/core/workers/chunks/00e0c53d89e074399f04.js +0 -1
  245. package/assets/esri/core/workers/chunks/12d6baeffd55a98a7c75.js +0 -1
  246. package/assets/esri/core/workers/chunks/207c040b0e42358a5389.js +0 -1
  247. package/assets/esri/core/workers/chunks/21c12edc0632eb911e73.js +0 -1
  248. package/assets/esri/core/workers/chunks/24c94f97a76646d415ae.js +0 -1
  249. package/assets/esri/core/workers/chunks/2611adb4f328f95ee508.js +0 -1
  250. package/assets/esri/core/workers/chunks/26a2bd432e7a1b3870c3.js +0 -1
  251. package/assets/esri/core/workers/chunks/2def7db73a776e759dae.js +0 -1
  252. package/assets/esri/core/workers/chunks/2ff63a71213f618377d6.js +0 -1
  253. package/assets/esri/core/workers/chunks/44abd2cd17aae3299ede.js +0 -1
  254. package/assets/esri/core/workers/chunks/4b56c0c109e10d7409b8.js +0 -1
  255. package/assets/esri/core/workers/chunks/5660f13d78e9e4240034.js +0 -1
  256. package/assets/esri/core/workers/chunks/568bcf809fcfd4d9c713.js +0 -1
  257. package/assets/esri/core/workers/chunks/5e889a675cbaff03ad5a.js +0 -1
  258. package/assets/esri/core/workers/chunks/61795bde00f2e16d04f1.js +0 -1
  259. package/assets/esri/core/workers/chunks/62a1d60ad4bf6469c4dd.js +0 -1
  260. package/assets/esri/core/workers/chunks/6ea02ff25f051c08e6c3.js +0 -1
  261. package/assets/esri/core/workers/chunks/7bf08823f861628144a1.js +0 -1
  262. package/assets/esri/core/workers/chunks/86149b4a5a148744c7d1.js +0 -1
  263. package/assets/esri/core/workers/chunks/9b2fab133786e5d47631.js +0 -1
  264. package/assets/esri/core/workers/chunks/9bfb091cec7eed6c8111.js +0 -1
  265. package/assets/esri/core/workers/chunks/a2409d4921c02614169a.js +0 -1
  266. package/assets/esri/core/workers/chunks/b1baf39daf5725404be5.js +0 -1
  267. package/assets/esri/core/workers/chunks/b43d88b6e7dc4ab13599.js +0 -1
  268. package/assets/esri/core/workers/chunks/b9d9a1dc3c5d799e2685.js +0 -1
  269. package/assets/esri/core/workers/chunks/c1970657a287ec96001e.js +0 -1
  270. package/assets/esri/core/workers/chunks/cc75bbfd779f409943a3.js +0 -1
  271. package/assets/esri/core/workers/chunks/d35efcbe439500bf18bc.js +0 -1
  272. package/assets/esri/core/workers/chunks/d599ba865da87b487b1b.js +0 -1
  273. package/assets/esri/core/workers/chunks/da1157e288dbc6ba842a.js +0 -1
  274. package/assets/esri/core/workers/chunks/ddc30044f61a2c2df3fe.js +0 -1
  275. package/assets/esri/core/workers/chunks/e37e5d2e233d7f6ccd52.js +0 -314
  276. package/assets/esri/core/workers/chunks/f14b318bab5efcf43419.js +0 -1
  277. package/assets/esri/core/workers/chunks/f29715459ecd46180829.js +0 -1
  278. package/assets/esri/core/workers/chunks/f4e48bbdbc9da10ec71a.js +0 -1
  279. package/assets/esri/core/workers/chunks/f62f657f9fef28f492e0.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8330,9340],{97927:(e,t,o)=>{o.r(t),o.d(t,{default:()=>V});var i=o(90237),r=o(49186),n=o(4718),s=o(93637),a=o(10107),l=(o(44208),o(53966),o(40608)),p=o(13600),y=o(82935),u=o(66552),c=o(69540),d=o(25482),f=(o(87811),o(69622)),h=o(21325);let m=class extends f.A{set horizontalWKID(e){e?(0,h.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,h.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:o,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&o?.length>1&&i?.length>1&&r?.length>1}};(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"horizontalWKID",null),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"verticalWKID",null),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"x",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"y",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"z",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),m=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientation")],m);const g=m;let v=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationHPR")],v);const w=v;let _=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:o,ellipsoidRadius:i,squaredEccentricity:r,properties:n}=this,s=`${n}`.split("|");return s.splice(1,1),`${e}|${t}|${o}|${i}|${r}|${s.join("|")}`}};(0,i._)([(0,a.MZ)({json:{write:!0}})],_.prototype,"type",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"latitude",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"longitude",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"ellipsoidRadius",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"squaredEccentricity",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],_.prototype,"properties",void 0),_=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationLTP")],_);const M=_;let j=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],j.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"omega",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"phi",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"kappa",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"z",void 0),j=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationOPK")],j);const Z=j;let x=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:o,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||o?.length>1||i?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],x.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"yaw",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"pitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"roll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"z",void 0),x=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationYPR")],x);const P=x;var N;!function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(N||(N={}));const b=new Map;b.set(`${N.OPK}`,{desc:"Using Omega Phi Kappa",constructor:Z}),b.set(`${N.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:w}),b.set(`${N.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:P}),b.set(`${N.LTP}`,{desc:"Using Local Tangent Plane",constructor:M});let S=class extends(c.A.ClonableMixin(d.A)){constructor(){super(...arguments),this.url=null}};(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],S.prototype,"lod",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"rasterFunction",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"url",void 0),S=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],S);let O=class extends(c.A.ClonableMixin(d.A)){constructor(){super(...arguments),this.constantElevation=null}};function D(e,t,o){return e?null!=(i=e)&&"number"==typeof i.constantElevation?new O(e):function(e,t,o){let{url:i}=e;return i?(i=function(e,t,o){return t&&(e=`${t}${e}`),o&&(e+=`${o}`),e}(i,t,o),new S({...e,url:i})):null}(e,t,o):e;var i}(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],O.prototype,"constantElevation",void 0),O=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],O);const I=new u.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),A=new u.J({Feet:"feet",Meter:"meter"}),T=new u.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique","":null}),R=new Map;R.set(`${N.HPR}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,heading:s,pitch:a,roll:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.YPR}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,yaw:s,pitch:a,roll:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.OPK}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,omega:s,phi:a,kappa:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.LTP}`,(function(e){const[t,o,i,r,n,...s]=e.slice(1),a=R.get(n),l=b.get(n)?.constructor;return a&&l?{latitude:t,longitude:o,ellipsoidRadius:i,squaredEccentricity:r,properties:new l(a([n,"",...s]))}:null}));const z=e=>{const t=e.map((e=>parseFloat(e))).filter((e=>!isNaN(e)));if(t.length===e.length)return t};function C(e,t,o,i,r){const n=z(e),s=z(t),a=z(o),l=z(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}var E=o(79677),$=o(92935);const K=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),L=(e,t)=>!K.has(t)&&e;function F(e,t,o,i){const{name:r,write:n,read:s}=((e,t,o)=>{const i=`orientedImageryProperties.${e}`;return{name:i,write:t?{ignoreOrigin:!0,target:i,writer:t}:{ignoreOrigin:!0},read:o?{ignoreOrigin:!0,source:i,reader:o}:{ignoreOrigin:!0}}})(e,t,o),a={name:r,write:n,read:s,origins:{service:{name:`orientedImageryInfo.${r}`,write:t,read:o},"web-scene":{name:r,write:L(n,e),read:L(s,e)},"web-map":{name:r,write:n,read:s}}};return i&&a.origins?(a.type=i,a.origins["web-map"].type=i,a.origins["web-scene"].type=i,a):a}let W=class extends p.default{constructor(){super(...arguments),this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:o}=this;return D(e,t,o)}async save(e){return this._debouncedSaveOperations($.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations($.X.SAVE_AS,t,e)}findFirstValidLayerId(e){return e.layers?.find((e=>this.supportedSourceTypes.has(e.type)))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new r.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var J;(0,i._)([(0,a.MZ)({type:Number,json:F("cameraHeading")})],W.prototype,"cameraHeading",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraHeight")})],W.prototype,"cameraHeight",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraPitch")})],W.prototype,"cameraPitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraRoll")})],W.prototype,"cameraRoll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("coveragePercent")})],W.prototype,"coveragePercent",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("demPathPrefix")})],W.prototype,"demPathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("demPathSuffix")})],W.prototype,"demPathSuffix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("depthImagePathPrefix")})],W.prototype,"depthImagePathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("depthImagePathSuffix")})],W.prototype,"depthImagePathSuffix",void 0),(0,i._)([(0,a.MZ)({type:Object,json:F("elevationSource")})],W.prototype,"elevationSource",void 0),(0,i._)([(0,a.MZ)({readOnly:!0})],W.prototype,"effectiveElevationSource",null),(0,i._)([(0,a.MZ)({type:Number,json:F("farDistance")})],W.prototype,"farDistance",void 0),(0,i._)([(0,a.MZ)()],W.prototype,"geometryType",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("horizontalFieldOfView")})],W.prototype,"horizontalFieldOfView",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("horizontalMeasurementUnit")})],W.prototype,"horizontalMeasurementUnit",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("imagePathPrefix")})],W.prototype,"imagePathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("imagePathSuffix")})],W.prototype,"imagePathSuffix",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("imageRotation")})],W.prototype,"imageRotation",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("maximumDistance")})],W.prototype,"maximumDistance",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("nearDistance")})],W.prototype,"nearDistance",void 0),(0,i._)([(0,a.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],W.prototype,"operationalLayerType",void 0),(0,i._)([(0,a.MZ)({json:{...F("orientationAccuracy",((e,t,o)=>{(0,s.sM)(o,e.join(";"),t)}),(e=>{const t=e?.split(";")?.map(Number);return function(e){return Array.isArray(e)&&9===e?.length&&!e.some(isNaN)}(t)?t:[0,0,0,0,0,0,0,0,0]}),String)}})],W.prototype,"orientationAccuracy",void 0),(0,i._)([(0,a.MZ)({json:{...F("orientedImageryType",T.write,T.read,T.jsonValues.slice(1))}})],W.prototype,"orientedImageryType",void 0),(0,i._)([(0,a.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],W.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:I.apiValues,json:{...F("timeIntervalUnit",I.write,I.read,I.jsonValues)}})],W.prototype,"timeIntervalUnit",void 0),(0,i._)([(0,a.MZ)((J=(0,n.o8)(y.B),J.json?(J.json.origins=J.json.origins??{},J.json.origins["web-scene"]={write:!1,read:!1},J):J))],W.prototype,"useViewTime",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("verticalFieldOfView")})],W.prototype,"verticalFieldOfView",void 0),(0,i._)([(0,a.MZ)({type:A.apiValues,json:{...F("verticalMeasurementUnit",A.write,A.read,A.jsonValues)}})],W.prototype,"verticalMeasurementUnit",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("videoPathPrefix")})],W.prototype,"videoPathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("videoPathSuffix")})],W.prototype,"videoPathSuffix",void 0),(0,i._)([(0,a.MZ)({type:E.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],W.prototype,"visibilityTimeExtent",void 0),W=(0,i._)([(0,l.$)("esri.layers.OrientedImageryLayer")],W);const V=W},32756:(e,t,o)=>{o.d(t,{Rr:()=>l,fY:()=>y,ne:()=>p});var i=o(90237),r=o(93637),n=o(10107),s=(o(44208),o(53966),o(87811),o(40608)),a=o(91880);function l(e,t,o){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const r=new a.A;return r.read(i,o),[r]}const p={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,o,i){const n=e.find((e=>!!e.field));n&&(0,r.sM)(o,[n.toJSON()],t)}}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,n.MZ)(p)],t.prototype,"orderBy",void 0),t=(0,i._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],t),t}},33143:(e,t,o)=>{o.d(t,{A:()=>d});var i=o(90237),r=o(69540),n=o(25482),s=o(10107),a=(o(44208),o(53966),o(87811),o(36005)),l=o(40608),p=o(43937),y=o(80451),u=o(29005);let c=class extends(r.A.ClonableMixin(n.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const o of Object.keys(e))t[o]=(0,y.rS)(e[o]);return t}writeDomains(e,t){const o={};for(const t of Object.keys(e))e[t]&&(o[t]=e[t]?.toJSON());t.domains=o}};(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i._)([(0,a.w)("domains")],c.prototype,"readDomains",null),(0,i._)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,i._)([(0,s.MZ)({type:[u.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i._)([(0,l.$)("esri.layers.support.FeatureType")],c);const d=c},91880:(e,t,o)=>{o.d(t,{A:()=>u});var i,r=o(90237),n=o(66552),s=o(25482),a=o(10107),l=(o(44208),o(53966),o(87811),o(40608));const p=new n.J({asc:"ascending",desc:"descending"});let y=i=class extends s.A{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],y.prototype,"valueExpression",void 0),(0,r._)([(0,a.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],y.prototype,"order",void 0),y=i=(0,r._)([(0,l.$)("esri.layers.support.OrderByInfo")],y);const u=y},58501:(e,t,o)=>{o.d(t,{q:()=>r});var i=o(62815);function r(e,t,o){if(!o?.features||!o.hasZ)return;const r=(0,i.N)(o.geometryType,t,e.outSpatialReference);if(null!=r)for(const e of o.features)r(e.geometry)}},22671:(e,t,o)=>{o.d(t,{A:()=>w});var i,r=o(90237),n=o(52106),s=o(66552),a=o(25482),l=o(4718),p=o(10107),y=(o(44208),o(53966),o(36005)),u=o(40608),c=o(43937),d=o(16930),f=o(65864),h=o(50498),m=o(20437);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,o,i){if(e)return void g.write(e,t,o,i);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,o,i)}readQueryGeometry(e,t){if(!e)return null;const o=!!e.spatialReference,i=(0,f.rS)(e);return i&&!o&&t.spatialReference&&(i.spatialReference=d.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:o}=this;if(o)for(const e of o)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let o=0;o<t.features.length;o++){const i=t.features[o];if(i.geometry){const t=e?.[o];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,o],translate:[i,r]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((r-e)/o)));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:o}=this;if(!o)return this;const{translate:[i,r],scale:[n,s]}=o;let a=null,l=null;if(this.hasZ&&null!=o?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=o;a=o=>o*t+e}if(this.hasM&&null!=o?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=o;l=o=>null==o?o:o*t+e}const p=this._getHydrationFunction(e,(e=>e*n+i),(e=>r-e*s),a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,o){const i=d.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const n=e[t],s=o.fromJSON(n),a=n.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=i);const l=n.aggregateGeometries,p=s.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],o=l[e],r=o?.spatialReference;null==t||r||(t.spatialReference=i)}r.push(s)}return r}_quantizePoints(e,t,o){let i,r;const n=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=o(a[1]);e===i&&s===r||(n.push([e-i,s-r]),i=e,r=s)}else i=t(a[0]),r=o(a[1]),n.push([i,r])}return n.length>0?n:null}_getQuantizationFunction(e,t,o){return"point"===e?e=>(e.x=t(e.x),e.y=o(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],s=this._quantizePoints(n,t,o);s&&r.push(s)}return r.length>0?((0,f.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,o);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,o,i,r){return"point"===e?e=>{e.x=t(e.x),e.y=o(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,f.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=o(a)}}if(i&&r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=i(o[2]),o[3]=r(o[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=i(o[2])}}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=r(o[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=o(e.ymin),e.xmax=t(e.xmax),e.ymax=o(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=o(a)}if(i&&r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=r(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2])}}:null}};(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,r._)([(0,y.w)("features")],v.prototype,"readFeatures",null),(0,r._)([(0,p.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,r._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,r._)([(0,c.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,r._)([(0,p.MZ)({types:h.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,r._)([(0,y.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,r._)([(0,p.MZ)({type:d.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,r._)([(0,c.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,r._)([(0,u.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const w=v}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8330,9340],{97927:(e,t,o)=>{o.r(t),o.d(t,{default:()=>V});var i=o(90237),r=o(49186),n=o(4718),s=o(93637),a=o(10107),l=(o(44208),o(53966),o(40608)),p=o(13600),y=o(82935),u=o(66552),c=o(69540),d=o(25482),f=(o(87811),o(69622)),h=o(21325);let m=class extends f.A{set horizontalWKID(e){e?(0,h.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,h.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:o,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1&&!Number.isNaN(t)&&o?.length>1&&i?.length>1&&r?.length>1}};(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"horizontalWKID",null),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"verticalWKID",null),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"x",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"y",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"z",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),m=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientation")],m);const g=m;let v=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationHPR")],v);const w=v;let _=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:o,ellipsoidRadius:i,squaredEccentricity:r,properties:n}=this,s=`${n}`.split("|");return s.splice(1,1),`${e}|${t}|${o}|${i}|${r}|${s.join("|")}`}};(0,i._)([(0,a.MZ)({json:{write:!0}})],_.prototype,"type",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"latitude",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"longitude",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"ellipsoidRadius",void 0),(0,i._)([(0,a.MZ)({json:{write:!0},type:Number})],_.prototype,"squaredEccentricity",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],_.prototype,"properties",void 0),_=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationLTP")],_);const M=_;let j=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],j.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],j.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"omega",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"phi",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"kappa",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],j.prototype,"z",void 0),j=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationOPK")],j);const Z=j;let x=class extends(c.A.ClonableMixin(d.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:o,radialDistortionCoefficients:i,tangentialDistortionCoefficients:r}=this;return e?.length>1||!Number.isNaN(t)||o?.length>1||i?.length>1||r?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:y,principalOffsetPoint:u,radialDistortionCoefficients:c,tangentialDistortionCoefficients:d}=this,f=[e,t,o,i,r,n,s,a,l];return this.isAdvanced&&(p?.forEach((e=>f.push(e))),f.push(y),u?.forEach((e=>f.push(e))),u?.forEach((e=>f.push(e))),c?.forEach((e=>f.push(e))),d?.forEach((e=>f.push(e)))),f.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,i._)([(0,a.MZ)({json:{write:!0}})],x.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"affineTransformations",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"focalLength",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"principalOffsetPoint",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"radialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],x.prototype,"tangentialDistortionCoefficients",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"yaw",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"pitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"roll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"x",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"y",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"z",void 0),x=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationYPR")],x);const P=x;var N;!function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(N||(N={}));const b=new Map;b.set(`${N.OPK}`,{desc:"Using Omega Phi Kappa",constructor:Z}),b.set(`${N.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:w}),b.set(`${N.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:P}),b.set(`${N.LTP}`,{desc:"Using Local Tangent Plane",constructor:M});let S=class extends(c.A.ClonableMixin(d.A)){constructor(){super(...arguments),this.url=null}};(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],S.prototype,"lod",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"rasterFunction",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"url",void 0),S=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],S);let O=class extends(c.A.ClonableMixin(d.A)){constructor(){super(...arguments),this.constantElevation=null}};function D(e,t,o){return e?null!=(i=e)&&"number"==typeof i.constantElevation?new O(e):function(e,t,o){let{url:i}=e;return i?(i=function(e,t,o){return t&&(e=`${t}${e}`),o&&(e+=`${o}`),e}(i,t,o),new S({...e,url:i})):null}(e,t,o):e;var i}(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],O.prototype,"constantElevation",void 0),O=(0,i._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],O);const I=new u.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),A=new u.J({Feet:"feet",Meter:"meter"}),T=new u.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique","":null}),R=new Map;R.set(`${N.HPR}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,heading:s,pitch:a,roll:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.YPR}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,yaw:s,pitch:a,roll:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.OPK}`,(function(e){const[t,o,i,r,n,s,a,l,p,y,u,c,d,f,h,m,g,v,w,_,M,j]=e.slice(1);return{horizontalWKID:t,verticalWKID:o,x:i,y:r,z:n,omega:s,phi:a,kappa:l,...C([p,y,u,c,d,f],[m,g],[v,w,_],[M,j],h)}})),R.set(`${N.LTP}`,(function(e){const[t,o,i,r,n,...s]=e.slice(1),a=R.get(n),l=b.get(n)?.constructor;return a&&l?{latitude:t,longitude:o,ellipsoidRadius:i,squaredEccentricity:r,properties:new l(a([n,"",...s]))}:null}));const z=e=>{const t=e.map((e=>parseFloat(e))).filter((e=>!isNaN(e)));if(t.length===e.length)return t};function C(e,t,o,i,r){const n=z(e),s=z(t),a=z(o),l=z(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(r):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}var E=o(79677),$=o(92935);const K=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),L=(e,t)=>!K.has(t)&&e;function F(e,t,o,i){const{name:r,write:n,read:s}=((e,t,o)=>{const i=`orientedImageryProperties.${e}`;return{name:i,write:t?{ignoreOrigin:!0,target:i,writer:t}:{ignoreOrigin:!0},read:o?{ignoreOrigin:!0,source:i,reader:o}:{ignoreOrigin:!0}}})(e,t,o),a={name:r,write:n,read:s,origins:{service:{name:`orientedImageryInfo.${r}`,write:t,read:o},"web-scene":{name:r,write:L(n,e),read:L(s,e)},"web-map":{name:r,write:n,read:s}}};return i&&a.origins?(a.type=i,a.origins["web-map"].type=i,a.origins["web-scene"].type=i,a):a}let W=class extends p.default{constructor(){super(...arguments),this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:o}=this;return D(e,t,o)}async save(e){return this._debouncedSaveOperations($.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations($.X.SAVE_AS,t,e)}findFirstValidLayerId(e){return e.layers?.find((e=>this.supportedSourceTypes.has(e.type)))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new r.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var J;(0,i._)([(0,a.MZ)({type:Number,json:F("cameraHeading")})],W.prototype,"cameraHeading",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraHeight")})],W.prototype,"cameraHeight",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraPitch")})],W.prototype,"cameraPitch",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("cameraRoll")})],W.prototype,"cameraRoll",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("coveragePercent")})],W.prototype,"coveragePercent",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("demPathPrefix")})],W.prototype,"demPathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("demPathSuffix")})],W.prototype,"demPathSuffix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("depthImagePathPrefix")})],W.prototype,"depthImagePathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("depthImagePathSuffix")})],W.prototype,"depthImagePathSuffix",void 0),(0,i._)([(0,a.MZ)({type:Object,json:F("elevationSource")})],W.prototype,"elevationSource",void 0),(0,i._)([(0,a.MZ)({readOnly:!0})],W.prototype,"effectiveElevationSource",null),(0,i._)([(0,a.MZ)({type:Number,json:F("farDistance")})],W.prototype,"farDistance",void 0),(0,i._)([(0,a.MZ)()],W.prototype,"geometryType",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("horizontalFieldOfView")})],W.prototype,"horizontalFieldOfView",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("horizontalMeasurementUnit")})],W.prototype,"horizontalMeasurementUnit",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("imagePathPrefix")})],W.prototype,"imagePathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("imagePathSuffix")})],W.prototype,"imagePathSuffix",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("imageRotation")})],W.prototype,"imageRotation",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("maximumDistance")})],W.prototype,"maximumDistance",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("nearDistance")})],W.prototype,"nearDistance",void 0),(0,i._)([(0,a.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],W.prototype,"operationalLayerType",void 0),(0,i._)([(0,a.MZ)({json:{...F("orientationAccuracy",((e,t,o)=>{(0,s.sM)(o,e.join(";"),t)}),(e=>{const t=e?.split(";")?.map(Number);return function(e){return Array.isArray(e)&&9===e?.length&&!e.some(isNaN)}(t)?t:[0,0,0,0,0,0,0,0,0]}),String)}})],W.prototype,"orientationAccuracy",void 0),(0,i._)([(0,a.MZ)({json:{...F("orientedImageryType",T.write,T.read,T.jsonValues.slice(1))}})],W.prototype,"orientedImageryType",void 0),(0,i._)([(0,a.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],W.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:I.apiValues,json:{...F("timeIntervalUnit",I.write,I.read,I.jsonValues)}})],W.prototype,"timeIntervalUnit",void 0),(0,i._)([(0,a.MZ)((J=(0,n.o8)(y.B),J.json?(J.json.origins=J.json.origins??{},J.json.origins["web-scene"]={write:!1,read:!1},J):J))],W.prototype,"useViewTime",void 0),(0,i._)([(0,a.MZ)({type:Number,json:F("verticalFieldOfView")})],W.prototype,"verticalFieldOfView",void 0),(0,i._)([(0,a.MZ)({type:A.apiValues,json:{...F("verticalMeasurementUnit",A.write,A.read,A.jsonValues)}})],W.prototype,"verticalMeasurementUnit",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("videoPathPrefix")})],W.prototype,"videoPathPrefix",void 0),(0,i._)([(0,a.MZ)({type:String,json:F("videoPathSuffix")})],W.prototype,"videoPathSuffix",void 0),(0,i._)([(0,a.MZ)({type:E.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],W.prototype,"visibilityTimeExtent",void 0),W=(0,i._)([(0,l.$)("esri.layers.OrientedImageryLayer")],W);const V=W},32756:(e,t,o)=>{o.d(t,{Rr:()=>l,fY:()=>y,ne:()=>p});var i=o(90237),r=o(93637),n=o(10107),s=(o(44208),o(53966),o(87811),o(40608)),a=o(91880);function l(e,t,o){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const r=new a.A;return r.read(i,o),[r]}const p={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,o,i){const n=e.find((e=>!!e.field));n&&(0,r.sM)(o,[n.toJSON()],t)}}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,n.MZ)(p)],t.prototype,"orderBy",void 0),t=(0,i._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],t),t}},33143:(e,t,o)=>{o.d(t,{A:()=>d});var i=o(90237),r=o(69540),n=o(25482),s=o(10107),a=(o(44208),o(53966),o(87811),o(36005)),l=o(40608),p=o(43937),y=o(80451),u=o(29005);let c=class extends(r.A.ClonableMixin(n.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const o of Object.keys(e))t[o]=(0,y.rS)(e[o]);return t}writeDomains(e,t){const o={};for(const t of Object.keys(e))e[t]&&(o[t]=e[t]?.toJSON());t.domains=o}};(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i._)([(0,a.w)("domains")],c.prototype,"readDomains",null),(0,i._)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,i._)([(0,s.MZ)({type:[u.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i._)([(0,l.$)("esri.layers.support.FeatureType")],c);const d=c},91880:(e,t,o)=>{o.d(t,{A:()=>u});var i,r=o(90237),n=o(66552),s=o(25482),a=o(10107),l=(o(44208),o(53966),o(87811),o(40608));const p=new n.J({asc:"ascending",desc:"descending"});let y=class extends s.A{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],y.prototype,"valueExpression",void 0),(0,r._)([(0,a.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],y.prototype,"order",void 0),y=i=(0,r._)([(0,l.$)("esri.layers.support.OrderByInfo")],y);const u=y},58501:(e,t,o)=>{o.d(t,{q:()=>r});var i=o(62815);function r(e,t,o){if(!o?.features||!o.hasZ)return;const r=(0,i.N)(o.geometryType,t,e.outSpatialReference);if(null!=r)for(const e of o.features)r(e.geometry)}},22671:(e,t,o)=>{o.d(t,{A:()=>w});var i,r=o(90237),n=o(52106),s=o(66552),a=o(25482),l=o(4718),p=o(10107),y=(o(44208),o(53966),o(36005)),u=o(40608),c=o(43937),d=o(16930),f=o(65864),h=o(50498),m=o(20437);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,o,i){if(e)return void g.write(e,t,o,i);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,o,i)}readQueryGeometry(e,t){if(!e)return null;const o=!!e.spatialReference,i=(0,f.rS)(e);return i&&!o&&t.spatialReference&&(i.spatialReference=d.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:o}=this;if(o)for(const e of o)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let o=0;o<t.features.length;o++){const i=t.features[o];if(i.geometry){const t=e?.[o];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,o],translate:[i,r]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((r-e)/o)));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:o}=this;if(!o)return this;const{translate:[i,r],scale:[n,s]}=o;let a=null,l=null;if(this.hasZ&&null!=o?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=o;a=o=>o*t+e}if(this.hasM&&null!=o?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=o;l=o=>null==o?o:o*t+e}const p=this._getHydrationFunction(e,(e=>e*n+i),(e=>r-e*s),a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,o){const i=d.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const n=e[t],s=o.fromJSON(n),a=n.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=i);const l=n.aggregateGeometries,p=s.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],o=l[e],r=o?.spatialReference;null==t||r||(t.spatialReference=i)}r.push(s)}return r}_quantizePoints(e,t,o){let i,r;const n=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=o(a[1]);e===i&&s===r||(n.push([e-i,s-r]),i=e,r=s)}else i=t(a[0]),r=o(a[1]),n.push([i,r])}return n.length>0?n:null}_getQuantizationFunction(e,t,o){return"point"===e?e=>(e.x=t(e.x),e.y=o(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],s=this._quantizePoints(n,t,o);s&&r.push(s)}return r.length>0?((0,f.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,o);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,o,i,r){return"point"===e?e=>{e.x=t(e.x),e.y=o(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,f.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=o(a)}}if(i&&r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=i(o[2]),o[3]=r(o[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=i(o[2])}}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,o=t.length;e<o;e++){const o=t[e];o[2]=r(o[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=o(e.ymin),e.xmax=t(e.xmax),e.ymax=o(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=o(a)}if(i&&r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=r(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2])}}:null}};(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,r._)([(0,y.w)("features")],v.prototype,"readFeatures",null),(0,r._)([(0,p.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,r._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,r._)([(0,c.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,r._)([(0,p.MZ)({types:h.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,r._)([(0,y.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,r._)([(0,p.MZ)({type:d.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,r._)([(0,c.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,r._)([(0,u.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const w=v}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9340],{32756:(e,t,r)=>{r.d(t,{Rr:()=>a,fY:()=>u,ne:()=>p});var n=r(90237),o=r(93637),s=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),l=r(91880);function a(e,t,r){if(!e)return null;const n=e.find((e=>!!e.field));if(!n)return null;const o=new l.A;return o.read(n,r),[o]}const p={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,n){const s=e.find((e=>!!e.field));s&&(0,o.sM)(r,[s.toJSON()],t)}}}},u=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,n._)([(0,s.MZ)(p)],t.prototype,"orderBy",void 0),t=(0,n._)([(0,i.$)("esri.layers.mixins.OrderedLayer")],t),t}},33143:(e,t,r)=>{r.d(t,{A:()=>f});var n=r(90237),o=r(69540),s=r(25482),i=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),p=r(43937),u=r(80451),y=r(29005);let c=class extends(o.A.ClonableMixin(s.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,u.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,n._)([(0,i.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,n._)([(0,i.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,i.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,n._)([(0,l.w)("domains")],c.prototype,"readDomains",null),(0,n._)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,n._)([(0,i.MZ)({type:[y.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,n._)([(0,a.$)("esri.layers.support.FeatureType")],c);const f=c},91880:(e,t,r)=>{r.d(t,{A:()=>y});var n,o=r(90237),s=r(66552),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));const p=new s.J({asc:"ascending",desc:"descending"});let u=class extends i.A{static{n=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,o._)([(0,l.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],u.prototype,"order",void 0),u=n=(0,o._)([(0,a.$)("esri.layers.support.OrderByInfo")],u);const y=u},58501:(e,t,r)=>{r.d(t,{q:()=>o});var n=r(62815);function o(e,t,r){if(!r?.features||!r.hasZ)return;const o=(0,n.N)(r.geometryType,t,e.outSpatialReference);if(null!=o)for(const e of r.features)o(e.geometry)}},22671:(e,t,r)=>{r.d(t,{A:()=>x});var n,o=r(90237),s=r(52106),i=r(66552),l=r(25482),a=r(4718),p=r(10107),u=(r(44208),r(53966),r(36005)),y=r(40608),c=r(43937),f=r(16930),d=r(65864),m=r(50498),h=r(20437);const g=new i.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends l.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,d.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=f.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,o]}=e,s=this.features,i=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((o-e)/r)));for(let e=0,t=s.length;e<t;e++)i?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,o],scale:[s,i]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,(e=>e*s+n),(e=>o-e*i),l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const n=f.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const s=e[t],i=r.fromJSON(s),l=s.geometry?.spatialReference;null==i.geometry||l||(i.geometry.spatialReference=n);const a=s.aggregateGeometries,p=i.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],r=a[e],o=r?.spatialReference;null==t||o||(t.spatialReference=n)}o.push(i)}return o}_quantizePoints(e,t,r){let n,o;const s=[];for(let i=0,l=e.length;i<l;i++){const l=e[i];if(i>0){const e=t(l[0]),i=r(l[1]);e===n&&i===o||(s.push([e-n,i-o]),n=e,o=i)}else n=t(l[0]),o=r(l[1]),s.push([n,o])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,s=n.length;e<s;e++){const s=n[e],i=this._quantizePoints(s,t,r);i&&o.push(i)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,d.Bi)(e)?e.rings:e.paths;let i,l;for(let e=0,n=s.length;e<n;e++){const n=s[e];for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(i+=o[0],l+=o[1]):(i=o[0],l=o[1]),o[0]=t(i),o[1]=r(l)}}if(n&&o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=o(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let i,l;for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(i+=n[0],l+=n[1]):(i=n[0],l=n[1]),n[0]=t(i),n[1]=r(l)}if(n&&o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2]),t[3]=o(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,p.MZ)({type:[s.A],json:{write:!0}})],w.prototype,"features",void 0),(0,o._)([(0,u.w)("features")],w.prototype,"readFeatures",null),(0,o._)([(0,p.MZ)({type:[h.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,o._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,o._)([(0,c.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,o._)([(0,p.MZ)({types:m.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,o._)([(0,u.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,o._)([(0,p.MZ)({type:f.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,o._)([(0,c.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,o._)([(0,p.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,o._)([(0,y.$)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const x=w}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6064],{97937:(t,e,n)=>{n.d(e,{a:()=>b,c:()=>m,e:()=>A,f:()=>E,g:()=>R,i:()=>N,o:()=>C,s:()=>z,w:()=>p}),n(44208),n(53966);var i=n(34727),o=n(58083),r=n(38954),s=n(51850),c=n(87317),u=n(91829),a=n(34304),h=n(88582),d=n(71351);function l(t,e){const n=(0,r.l)(t),o=(0,i.YN)(t[2]/n),s=Math.atan2(t[1]/n,t[0]/n);return(0,r.i)(e,n,o,s),e}var _=n(44280),f=n(32114);const T=m();function m(){return(0,u.vt)()}const g=c.e,O=c.e;function A(t,e){return(0,c.c)(e,t)}function p(t){return t}function R(t){return t[3]}function b(t){return t}function E(t,e,n,i){return(0,u.fA)(t,e,n,i)}function v(t,e,n){if(null==e)return!1;if(!F(t,e,M))return!1;let{t0:i,t1:o}=M;if((i<0||o<i&&o>0)&&(i=o),i<0)return!1;if(n){const{origin:t,direction:o}=e;n[0]=t[0]+o[0]*i,n[1]=t[1]+o[1]*i,n[2]=t[2]+o[2]*i}return!0}const M={t0:0,t1:0};function F(t,e,n){const{origin:i,direction:o}=e,r=S;r[0]=i[0]-t[0],r[1]=i[1]-t[1],r[2]=i[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const c=2*(o[0]*r[0]+o[1]*r[1]+o[2]*r[2]),u=c*c-4*s*(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]-t[3]*t[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-c-a)/(2*s),n.t1=(-c+a)/(2*s),!0}const S=(0,s.vt)();function N(t,e){return v(t,e,null)}function P(t,e,n){const i=f.rq.get(),s=f.Rc.get();(0,r.e)(i,e.origin,e.direction);const c=R(t);(0,r.e)(n,i,e.origin),(0,r.h)(n,n,1/(0,r.l)(n)*c);const u=B(t,e.origin),a=(0,_.g7)(e.origin,n);return(0,o.$0)(s,a+u,i),(0,r.t)(n,n,s),n}function x(t,e,n){const i=(0,r.d)(f.rq.get(),e,t),o=(0,r.h)(f.rq.get(),i,t[3]/(0,r.l)(i));return(0,r.g)(n,o,t)}function B(t,e){const n=(0,r.d)(f.rq.get(),e,t),o=(0,r.l)(n),s=R(t),c=s+Math.abs(s-o);return(0,i.XM)(s/c)}const j=(0,s.vt)();function I(t,e,n,i){const o=(0,r.d)(j,e,t);switch(n){case h._.X:{const t=l(o,j)[2];return(0,r.i)(i,-Math.sin(t),Math.cos(t),0)}case h._.Y:{const t=l(o,j),e=t[1],n=t[2],s=Math.sin(e);return(0,r.i)(i,-s*Math.cos(n),-s*Math.sin(n),Math.cos(e))}case h._.Z:return(0,r.n)(i,o);default:return}}function L(t,e){const n=(0,r.d)(H,e,t);return(0,r.l)(n)-t[3]}function C(t,e){const n=(0,r.s)(t,e),i=R(t);return n<=i*i}const H=(0,s.vt)(),w=m(),z=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:T,altitudeAt:L,angleToSilhouette:B,axisAt:I,cameraFrustumCoverage:function(t,e,n,i){const o=R(t),r=o*o,s=e+.5*Math.PI,c=n*n+r-2*Math.cos(s)*n*o,u=Math.sqrt(c),a=c-r;if(a<=0)return.5;const h=Math.sqrt(a),d=Math.acos(h/u)-Math.asin(o/(u/Math.sin(s)));return Math.min(1,(d+.5*i)/i)},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return v(t,e,n)?n:((0,d.oC)(e,t,n),x(t,n,n))},closestPointOnSilhouette:P,containsPoint:C,copy:A,create:m,distanceToSilhouette:function(t,e){const n=(0,r.d)(f.rq.get(),e,t),i=(0,r.k)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(i-o))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:O,exactEquals:g,fromCenterAndRadius:function(t,e){return(0,u.fA)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:E,getCenter:b,getExtent:function(t,e){return e},getRadius:R,intersectLine:function(t,e,n){const i=(0,d.Cr)(e,n);if(!F(t,i,M))return[];const{origin:o,direction:c}=i,{t0:u,t1:h}=M,l=e=>{const n=(0,s.vt)();return(0,r.b)(n,o,c,e),x(t,n,n)};return Math.abs(u-h)<(0,a.FD)()?[l(u)]:[l(u),l(h)]},intersectRay:v,intersectRayClosestSilhouette:function(t,e,n){if(v(t,e,n))return n;const i=P(t,e,f.rq.get());return(0,r.g)(n,e.origin,(0,r.h)(f.rq.get(),e.direction,(0,r.j)(e.origin,i)/(0,r.l)(e.direction))),n},intersectsRay:N,projectPoint:x,setAltitudeAt:function(t,e,n,i){const o=L(t,e),s=I(t,e,h._.Z,H),c=(0,r.h)(H,s,n-o);return(0,r.g)(i,e,c)},setExtent:function(t,e,n){return t!==n&&A(t,n),n},tmpSphere:w,union:function(t,e,n=(0,u.vt)()){const i=(0,r.j)(t,e),o=t[3],s=e[3];return i+s<o?((0,c.c)(n,t),n):i+o<s?((0,c.c)(n,e),n):((0,r.m)(n,t,e,(i+s-o)/(2*i)),n[3]=(i+o+s)/2,n)},wrap:p},Symbol.toStringTag,{value:"Module"}))},4341:(t,e,n)=>{n.d(e,{I:()=>o});var i=n(26390);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)((()=>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*r);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,r));t++)this._items.push(this._allocator())}}const r=1024},88582:(t,e,n)=>{var i;n.d(e,{_:()=>i}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(i||(i={}))},82919:(t,e,n)=>{n.d(e,{C:()=>g,vt:()=>m,ui:()=>O,m7:()=>A});var i=n(4341),o=n(58083),r=n(38954),s=n(51850),c=n(87317),u=n(91829),a=n(71351);function h(t){return t?{ray:(0,a.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,a.vt)(),c0:0,c1:Number.MAX_VALUE}}new i.I((()=>h()));var d,l,_,f=n(27921),T=n(32114);function m(t){return t?[(0,f.vt)(t[0]),(0,f.vt)(t[1]),(0,f.vt)(t[2]),(0,f.vt)(t[3]),(0,f.vt)(t[4]),(0,f.vt)(t[5])]:[(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)()]}function g(t,e){for(let n=0;n<p;n++)(0,f.C)(t[n],e[n]);return t}function O(t,e,n,i=E){const s=(0,o.lw)(T.Rc.get(),e,t);(0,o.B8)(s,s);for(let t=0;t<R;++t){const e=(0,c.t)(T.Km.get(),b[t],s);(0,r.i)(i[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}!function(t,e){(0,f.Cr)(e[l.FAR_BOTTOM_LEFT],e[l.NEAR_BOTTOM_LEFT],e[l.NEAR_TOP_LEFT],t[d.LEFT]),(0,f.Cr)(e[l.NEAR_BOTTOM_RIGHT],e[l.FAR_BOTTOM_RIGHT],e[l.FAR_TOP_RIGHT],t[d.RIGHT]),(0,f.Cr)(e[l.FAR_BOTTOM_LEFT],e[l.FAR_BOTTOM_RIGHT],e[l.NEAR_BOTTOM_RIGHT],t[d.BOTTOM]),(0,f.Cr)(e[l.NEAR_TOP_LEFT],e[l.NEAR_TOP_RIGHT],e[l.FAR_TOP_RIGHT],t[d.TOP]),(0,f.Cr)(e[l.NEAR_BOTTOM_LEFT],e[l.NEAR_BOTTOM_RIGHT],e[l.NEAR_TOP_RIGHT],t[d.NEAR]),(0,f.Cr)(e[l.FAR_BOTTOM_RIGHT],e[l.FAR_BOTTOM_LEFT],e[l.FAR_TOP_LEFT],t[d.FAR])}(n,i)}function A(t,e){for(let n=0;n<p;n++){const i=t[n];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=e[3])return!1}return!0}(_=d||(d={}))[_.LEFT=0]="LEFT",_[_.RIGHT=1]="RIGHT",_[_.BOTTOM=2]="BOTTOM",_[_.TOP=3]="TOP",_[_.NEAR=4]="NEAR",_[_.FAR=5]="FAR",function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(l||(l={})),l.FAR_BOTTOM_RIGHT,l.NEAR_BOTTOM_RIGHT,l.NEAR_BOTTOM_LEFT,l.FAR_BOTTOM_LEFT,l.NEAR_BOTTOM_LEFT,l.NEAR_BOTTOM_RIGHT,l.NEAR_TOP_RIGHT,l.NEAR_TOP_LEFT,l.FAR_BOTTOM_RIGHT,l.FAR_BOTTOM_LEFT,l.FAR_TOP_LEFT,l.FAR_TOP_RIGHT,l.NEAR_BOTTOM_RIGHT,l.FAR_BOTTOM_RIGHT,l.FAR_TOP_RIGHT,l.NEAR_TOP_RIGHT,l.FAR_BOTTOM_LEFT,l.NEAR_BOTTOM_LEFT,l.NEAR_TOP_LEFT,l.FAR_TOP_LEFT,l.FAR_TOP_LEFT,l.NEAR_TOP_LEFT,l.NEAR_TOP_RIGHT,l.FAR_TOP_RIGHT;const p=6,R=8,b=[(0,u.fA)(-1,-1,-1,1),(0,u.fA)(1,-1,-1,1),(0,u.fA)(1,1,-1,1),(0,u.fA)(-1,1,-1,1),(0,u.fA)(-1,-1,1,1),(0,u.fA)(1,-1,1,1),(0,u.fA)(1,1,1,1),(0,u.fA)(-1,1,1,1)],E=(new i.I(h),[(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)()])},11964:(t,e,n)=>{n.d(e,{Cr:()=>a,H6:()=>l,_I:()=>d,kb:()=>h,vt:()=>u});var i=n(34727),o=n(4341),r=n(38954),s=n(51850),c=n(32114);function u(t){return t?{origin:(0,s.o8)(t.origin),vector:(0,s.o8)(t.vector)}:{origin:(0,s.vt)(),vector:(0,s.vt)()}}function a(t,e,n=u()){return(0,r.c)(n.origin,t),(0,r.d)(n.vector,e,t),n}function h(t,e){const n=(0,r.d)(c.rq.get(),e,t.origin),o=(0,r.f)(t.vector,n),s=(0,r.f)(t.vector,t.vector),u=(0,i.qE)(o/s,0,1),a=(0,r.d)(c.rq.get(),(0,r.h)(c.rq.get(),t.vector,u),n);return(0,r.f)(a,a)}function d(t,e,n){return l(t,e,0,1,n)}function l(t,e,n,o,s){const{vector:u,origin:a}=t,h=(0,r.d)(c.rq.get(),e,a),d=(0,r.f)(u,h)/(0,r.k)(u);return(0,r.h)(s,u,(0,i.qE)(d,n,o)),(0,r.g)(s,s,t.origin)}(0,s.vt)(),(0,s.vt)(),new o.I((()=>u()))},71351:(t,e,n)=>{n.d(e,{C:()=>d,Cr:()=>l,LV:()=>h,kb:()=>_,oC:()=>f,vt:()=>u}),n(4576);var i=n(4341),o=(n(77690),n(29242)),r=n(38954),s=n(51850),c=n(32114);function u(t){return t?a((0,s.o8)(t.origin),(0,s.o8)(t.direction)):a((0,s.vt)(),(0,s.vt)())}function a(t,e){return{origin:t,direction:e}}function h(t,e){const n=T.get();return n.origin=t,n.direction=e,n}function d(t,e=u()){return function(t,e,n=u()){return(0,r.c)(n.origin,t),(0,r.c)(n.direction,e),n}(t.origin,t.direction,e)}function l(t,e,n=u()){return(0,r.c)(n.origin,t),(0,r.d)(n.direction,e,t),n}function _(t,e){const n=(0,r.e)(c.rq.get(),(0,r.n)(c.rq.get(),t.direction),(0,r.d)(c.rq.get(),e,t.origin));return(0,r.f)(n,n)}function f(t,e,n){const i=(0,r.f)(t.direction,(0,r.d)(n,e,t.origin));return(0,r.g)(n,t.origin,(0,r.h)(n,t.direction,i)),n}const T=new i.I((()=>u()));(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,o.vt)()},78230:(t,e,n)=>{n.d(e,{A:()=>_});var i,o,r=n(93687),s=n(3694),c=n(38954),u=n(51850),a=n(82919),h=n(71351),d=n(97937),l=n(620);class _{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new f,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),f.clearPool(),x[0]=null,C.prune(),y.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=f.acquire();for(let i=0;i<e;i++){const e=t[i];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}f.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=f.acquire();for(const i of t){const t=e??(0,d.e)(this.objectToBoundingSphere(i),H);F(t[3])?(n.init(this._root),g(i,t,n)):this._degenerateObjects.delete(i)}f.release(n),this._shrink()}update(t,e){if(!F(e[3])&&this._isDegenerate(t))return;const n=function(t){return x[0]=t,x}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const i=(0,h.LV)(t,e);T(this._root,(t=>{if(!function(t,e){return b((0,d.a)(e.bounds),2*-e.halfSize,I),b((0,d.a)(e.bounds),2*e.halfSize,L),(0,l.O_)(t.origin,t.direction,I,L)}(i,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,i){const o=(0,h.LV)(t,e);T(this._root,(t=>{if(!function(t,e,n){return b((0,d.a)(e.bounds),2*-e.halfSize,I),b((0,d.a)(e.bounds),2*e.halfSize,L),n.applyToMinMax(I,L),(0,l.O_)(t.origin,t.direction,I,L)}(o,t,i))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),!0}))}forEach(t){T(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,i=()=>!0,o=1/0){let r=1/0,s=1/0,u=null;const h=v(t,e),l=c=>{if(--o,!i(c))return;const h=this.objectToBoundingSphere(c);if(!(0,a.m7)(n,h))return;const l=M(t,e,(0,d.a)(h)),_=l-h[3],f=l+h[3];_<r&&(r=_,s=f,u=c)};return m(this._root,(i=>{if(o<=0||!(0,a.m7)(n,i.bounds))return!1;if((0,c.h)(j,h,i.halfSize),(0,c.g)(j,j,(0,d.a)(i.bounds)),M(t,e,j)>s)return!1;const r=i.node;return r.terminals.forAll((t=>l(t))),null!==r.residents&&r.residents.forAll((t=>l(t))),!0}),t,e),u}forEachInDepthRange(t,e,n,i,o,r,s){let u=-1/0,h=1/0;const l={setRange:t=>{n===_.DepthOrder.FRONT_TO_BACK?(u=Math.max(u,t.near),h=Math.min(h,t.far)):(u=Math.max(u,-t.far),h=Math.min(h,-t.near))}};l.setRange(i);const f=M(e,n,t),T=v(e,n),g=v(e,-n),O=t=>{if(!s(t))return;const i=this.objectToBoundingSphere(t),c=(0,d.a)(i),_=M(e,n,c)-f,T=_-i[3],m=_+i[3];T>h||m<u||!(0,a.m7)(r,i)||o(t,l)};m(this._root,(t=>{if(!(0,a.m7)(r,t.bounds))return!1;if((0,c.h)(j,T,t.halfSize),(0,c.g)(j,j,(0,d.a)(t.bounds)),M(e,n,j)-f>h)return!1;if((0,c.h)(j,g,t.halfSize),(0,c.g)(j,j,(0,d.a)(t.bounds)),M(e,n,j)-f<u)return!1;const i=t.node;return i.terminals.forAll((t=>O(t))),null!==i.residents&&i.residents.forAll((t=>O(t))),!0}),e,n)}forEachNode(t){T(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,d.g)(e),i=(0,d.a)(e),o=e=>{const o=this.objectToBoundingSphere(e),r=(0,d.g)(o),s=n+r;return!((0,c.s)((0,d.a)(o),i)-s*s<=0)||t(e)};let r=!0;const s=t=>{r&&(r=o(t))};T(this._root,(t=>{const e=(0,d.g)(t.bounds),o=n+e;if((0,c.s)((0,d.a)(t.bounds),i)-o*o>0)return!1;const u=t.node;return u.terminals.forAll(s),r&&null!==u.residents&&u.residents.forAll(s),r})),r&&this.forEachDegenerateObject(s)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.i)(n,t)}_intersectsObjectWithOffset(t,e,n){const i=this.objectToBoundingSphere(e);return!(i[3]>0)||(0,d.i)(n.applyToBoundingSphere(i),t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const i=f.acquire().init(t);this._add(e.at(n),i),f.release(i)}}_grow(t,e){if(0!==e&&(E(t,e,(t=>this.objectToBoundingSphere(t)),w),F(w[3])&&!this._fitsInsideTree(w)))if(A(this._root.node))(0,d.e)(w,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(w);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(w,t):this._growRootAsSubNode(t),f.release(t)}}_rebuildTree(t,e){(0,c.c)((0,d.a)(z),(0,d.a)(e.bounds)),z[3]=e.halfSize,E([t,z],2,(t=>t),G);const n=f.acquire().init(this._root);this._root.initFrom(null,G,G[3]),this._root.increaseHalfSize(1.25),T(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),f.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return T(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let i=-1/0;const o=this._root.bounds,r=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-r-(n[t]-e),c=n[t]+e-(o[t]+r),u=Math.max(0,Math.ceil(s/(2*r))),a=Math.max(0,Math.ceil(c/(2*r)))+1,h=2**Math.ceil(Math.log(u+a)*Math.LOG2E);i=Math.max(i,h),q[t].min=u,q[t].max=a}for(let t=0;t<3;t++){let e=q[t].min,n=q[t].max;const s=(i-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const c=o[t]-r-e*r*2;B[t]=c+(n+e)*r}const s=i*r;return B[3]=s*P,f.acquire().initFrom(null,B,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,c.c)((0,d.a)(w),(0,d.a)(this._root.bounds)),w[3]=this._root.halfSize,this._root.init(t),t.advanceTo(w,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,i=0;for(;i<e.length&&null==t;)n=i++,t=e[n];for(;i<e.length;)if(e[i++])return-1;return n}_isDegenerate(t){return!F(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,i=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:i}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),i=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:i}}static fromJSON(t){const e=new _((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class f{constructor(){this.bounds=(0,d.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,i=this.depth){return this.node=null!=t?t:f.createEmptyNode(),e&&(0,d.e)(e,this.bounds),this.halfSize=n,this.depth=i,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*P}advance(t){let e=this.node.children[t];e||(e=f.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=S[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const i=this._childIndex(t);e&&e(this,i),this.advance(i)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new s.A({shrink:!0}),residents:new s.A({shrink:!0})}}static acquire(){return f._pool.acquire()}static release(t){f._pool.release(t)}static clearPool(){f._pool.prune()}}function T(t,e){let n=f.acquire().init(t);const i=[n];for(;0!==i.length;){if(n=i.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&i.push(f.acquire().init(n).advance(t));f.release(n)}}function m(t,e,n,i=_.DepthOrder.FRONT_TO_BACK){let o=f.acquire().init(t);const r=[o];for(function(t,e,n){if(!y.length)for(let t=0;t<8;++t)y.push({index:0,distance:0});for(let n=0;n<8;++n){const i=S[n];y.data[n].index=n,y.data[n].distance=M(t,e,i)}y.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=y.data[t].index}(n,i,D);0!==r.length;){if(o=r.pop(),e(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const e=D[t];o.node.children[e]&&r.push(f.acquire().init(o).advance(e))}f.release(o)}}function g(t,e,n){C.clear();const i=n.advanceTo(e,((t,e)=>{C.push(t.node),C.push(e)}))?n.node.terminals:n.node.residents;if(i.removeUnordered(t),0===i.length)for(let t=C.length-2;t>=0&&O(C.data[t],C.data[t+1]);t-=2);}function O(t,e){return e>=0&&(t.children[e]=null),!!A(t)&&(null===t.residents&&(t.residents=new s.A({shrink:!0})),!0)}function A(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function p(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function R(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function b(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function E(t,e,n,i){if(1===e){const e=n(t[0]);(0,d.e)(e,i)}else{I[0]=1/0,I[1]=1/0,I[2]=1/0,L[0]=-1/0,L[1]=-1/0,L[2]=-1/0;for(let i=0;i<e;i++){const e=n(t[i]);F(e[3])&&(p(I,e),R(L,e))}(0,c.m)((0,d.a)(i),I,L,.5),i[3]=Math.max(L[0]-I[0],L[1]-I[1],L[2]-I[2])/2}}function v(t,e){let n,i=1/0;for(let o=0;o<8;++o){const r=M(t,e,N[o]);r<i&&(i=r,n=N[o])}return n}function M(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function F(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}f._pool=new r.A(f),(o=(i=_).DepthOrder||(i.DepthOrder={}))[o.FRONT_TO_BACK=1]="FRONT_TO_BACK",o[o.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const S=[(0,u.fA)(-1,-1,-1),(0,u.fA)(1,-1,-1),(0,u.fA)(-1,1,-1),(0,u.fA)(1,1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(1,-1,1),(0,u.fA)(-1,1,1),(0,u.fA)(1,1,1)],N=[(0,u.fA)(-1,-1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(-1,1,-1),(0,u.fA)(-1,1,1),(0,u.fA)(1,-1,-1),(0,u.fA)(1,-1,1),(0,u.fA)(1,1,-1),(0,u.fA)(1,1,1)],P=Math.sqrt(3),x=[null],B=(0,d.c)(),j=(0,u.vt)(),I=(0,u.vt)(),L=(0,u.vt)(),C=new s.A,H=(0,d.c)(),w=(0,d.c)(),z=(0,d.c)(),G=(0,d.c)(),q=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],y=new s.A,D=[0,0,0,0,0,0,0,0]},46064:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});var i=n(90237),o=n(74887),r=(n(53966),n(44208),n(87811),n(49186),n(40608)),s=n(38954),c=n(51850),u=n(11964),a=n(97937),h=n(78230),d=n(53099);function l(t,e,n){const i=(0,a.c)(),o=(0,a.a)(i);return(0,s.b)(o,o,t,.5),(0,s.b)(o,o,e,.5),i[3]=(0,s.j)(o,t),(0,s.g)(o,o,n),i}let _=class{constructor(){this._idToComponent=new Map,this._components=new h.A((t=>t.bounds)),this._edges=new h.A((t=>t.bounds)),this._tmpLineSegment=(0,u.vt)(),this._tmpP1=(0,c.vt)(),this._tmpP2=(0,c.vt)(),this._tmpP3=(0,c.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,o.Te)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:i}=t;n.push({id:e,uid:i})}return!0}),t.bounds),!n.length)return;const i={components:n},o=await this.remoteClient.invoke("fetchAllEdgeLocations",i,e??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const e=new m(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=d.HY.createView(t.locations),i=new Array(n.count),o=(0,c.vt)(),r=(0,c.vt)();for(let s=0;s<n.count;s++){n.position0.getVec(s,o),n.position1.getVec(s,r);const c=l(o,r,t.origin),u=new g(e,s,c);i[s]=u}this._edges.add(i);const{objectIds:s,origin:u}=t;e.info={locations:n,objectIds:s,origin:u}}_addCandidates(t,e,n){const{info:i}=e.component,{origin:o,objectIds:r}=i,c=i.locations,u=c.position0.getVec(e.index,this._tmpP1),a=c.position1.getVec(e.index,this._tmpP2);(0,s.g)(u,u,o),(0,s.g)(a,a,o);const h=r[c.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,u,a,n),T(t,h,u,n),T(t,h,a,n)}_addEdgeCandidate(t,e,n,i,o){if(!t.returnEdge)return;const r=(0,a.a)(t.bounds),h=(0,u.Cr)(n,i,this._tmpLineSegment),d=(0,u._I)(h,r,this._tmpP3);(0,a.o)(t.bounds,d)&&o.push({type:"edge",objectId:e,target:(0,c.o8)(d),distance:(0,s.j)(r,d),start:(0,c.o8)(n),end:(0,c.o8)(i)})}};_=(0,i._)([(0,r.$)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],_);const f=_;function T(t,e,n,i){if(!t.returnVertex||!(0,a.o)(t.bounds,n))return;const o=(0,a.a)(t.bounds);i.push({type:"vertex",objectId:e,target:(0,c.o8)(n),distance:(0,s.j)(o,n)})}class m{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++m.uid}}m.uid=0;class g{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6064],{97937:(t,e,n)=>{n.d(e,{a:()=>b,c:()=>m,e:()=>A,f:()=>E,g:()=>R,i:()=>N,o:()=>C,s:()=>z,w:()=>p}),n(44208),n(53966);var i=n(34727),o=n(58083),r=n(38954),s=n(51850),c=n(87317),u=n(91829),a=n(34304),h=n(88582),d=n(71351);function l(t,e){const n=(0,r.l)(t),o=(0,i.YN)(t[2]/n),s=Math.atan2(t[1]/n,t[0]/n);return(0,r.i)(e,n,o,s),e}var _=n(44280),f=n(32114);const T=m();function m(){return(0,u.vt)()}const g=c.e,O=c.e;function A(t,e){return(0,c.c)(e,t)}function p(t){return t}function R(t){return t[3]}function b(t){return t}function E(t,e,n,i){return(0,u.fA)(t,e,n,i)}function v(t,e,n){if(null==e)return!1;if(!F(t,e,M))return!1;let{t0:i,t1:o}=M;if((i<0||o<i&&o>0)&&(i=o),i<0)return!1;if(n){const{origin:t,direction:o}=e;n[0]=t[0]+o[0]*i,n[1]=t[1]+o[1]*i,n[2]=t[2]+o[2]*i}return!0}const M={t0:0,t1:0};function F(t,e,n){const{origin:i,direction:o}=e,r=S;r[0]=i[0]-t[0],r[1]=i[1]-t[1],r[2]=i[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const c=2*(o[0]*r[0]+o[1]*r[1]+o[2]*r[2]),u=c*c-4*s*(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]-t[3]*t[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-c-a)/(2*s),n.t1=(-c+a)/(2*s),!0}const S=(0,s.vt)();function N(t,e){return v(t,e,null)}function P(t,e,n){const i=f.rq.get(),s=f.Rc.get();(0,r.e)(i,e.origin,e.direction);const c=R(t);(0,r.e)(n,i,e.origin),(0,r.h)(n,n,1/(0,r.l)(n)*c);const u=B(t,e.origin),a=(0,_.g7)(e.origin,n);return(0,o.$0)(s,a+u,i),(0,r.t)(n,n,s),n}function x(t,e,n){const i=(0,r.d)(f.rq.get(),e,t),o=(0,r.h)(f.rq.get(),i,t[3]/(0,r.l)(i));return(0,r.g)(n,o,t)}function B(t,e){const n=(0,r.d)(f.rq.get(),e,t),o=(0,r.l)(n),s=R(t),c=s+Math.abs(s-o);return(0,i.XM)(s/c)}const j=(0,s.vt)();function I(t,e,n,i){const o=(0,r.d)(j,e,t);switch(n){case h._.X:{const t=l(o,j)[2];return(0,r.i)(i,-Math.sin(t),Math.cos(t),0)}case h._.Y:{const t=l(o,j),e=t[1],n=t[2],s=Math.sin(e);return(0,r.i)(i,-s*Math.cos(n),-s*Math.sin(n),Math.cos(e))}case h._.Z:return(0,r.n)(i,o);default:return}}function L(t,e){const n=(0,r.d)(H,e,t);return(0,r.l)(n)-t[3]}function C(t,e){const n=(0,r.s)(t,e),i=R(t);return n<=i*i}const H=(0,s.vt)(),w=m(),z=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:T,altitudeAt:L,angleToSilhouette:B,axisAt:I,cameraFrustumCoverage:function(t,e,n,i){const o=R(t),r=o*o,s=e+.5*Math.PI,c=n*n+r-2*Math.cos(s)*n*o,u=Math.sqrt(c),a=c-r;if(a<=0)return.5;const h=Math.sqrt(a),d=Math.acos(h/u)-Math.asin(o/(u/Math.sin(s)));return Math.min(1,(d+.5*i)/i)},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return v(t,e,n)?n:((0,d.oC)(e,t,n),x(t,n,n))},closestPointOnSilhouette:P,containsPoint:C,copy:A,create:m,distanceToSilhouette:function(t,e){const n=(0,r.d)(f.rq.get(),e,t),i=(0,r.k)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(i-o))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:O,exactEquals:g,fromCenterAndRadius:function(t,e){return(0,u.fA)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:E,getCenter:b,getExtent:function(t,e){return e},getRadius:R,intersectLine:function(t,e,n){const i=(0,d.Cr)(e,n);if(!F(t,i,M))return[];const{origin:o,direction:c}=i,{t0:u,t1:h}=M,l=e=>{const n=(0,s.vt)();return(0,r.b)(n,o,c,e),x(t,n,n)};return Math.abs(u-h)<(0,a.FD)()?[l(u)]:[l(u),l(h)]},intersectRay:v,intersectRayClosestSilhouette:function(t,e,n){if(v(t,e,n))return n;const i=P(t,e,f.rq.get());return(0,r.g)(n,e.origin,(0,r.h)(f.rq.get(),e.direction,(0,r.j)(e.origin,i)/(0,r.l)(e.direction))),n},intersectsRay:N,projectPoint:x,setAltitudeAt:function(t,e,n,i){const o=L(t,e),s=I(t,e,h._.Z,H),c=(0,r.h)(H,s,n-o);return(0,r.g)(i,e,c)},setExtent:function(t,e,n){return t!==n&&A(t,n),n},tmpSphere:w,union:function(t,e,n=(0,u.vt)()){const i=(0,r.j)(t,e),o=t[3],s=e[3];return i+s<o?((0,c.c)(n,t),n):i+o<s?((0,c.c)(n,e),n):((0,r.m)(n,t,e,(i+s-o)/(2*i)),n[3]=(i+o+s)/2,n)},wrap:p},Symbol.toStringTag,{value:"Module"}))},4341:(t,e,n)=>{n.d(e,{I:()=>o});var i=n(26390);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)((()=>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*r);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,r));t++)this._items.push(this._allocator())}}const r=1024},88582:(t,e,n)=>{var i;n.d(e,{_:()=>i}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(i||(i={}))},82919:(t,e,n)=>{n.d(e,{C:()=>g,vt:()=>m,ui:()=>O,m7:()=>A});var i=n(4341),o=n(58083),r=n(38954),s=n(51850),c=n(87317),u=n(91829),a=n(71351);function h(t){return t?{ray:(0,a.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,a.vt)(),c0:0,c1:Number.MAX_VALUE}}new i.I((()=>h()));var d,l,_,f=n(27921),T=n(32114);function m(t){return t?[(0,f.vt)(t[0]),(0,f.vt)(t[1]),(0,f.vt)(t[2]),(0,f.vt)(t[3]),(0,f.vt)(t[4]),(0,f.vt)(t[5])]:[(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)()]}function g(t,e){for(let n=0;n<p;n++)(0,f.C)(t[n],e[n]);return t}function O(t,e,n,i=E){const s=(0,o.lw)(T.Rc.get(),e,t);(0,o.B8)(s,s);for(let t=0;t<R;++t){const e=(0,c.t)(T.Km.get(),b[t],s);(0,r.i)(i[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}!function(t,e){(0,f.Cr)(e[l.FAR_BOTTOM_LEFT],e[l.NEAR_BOTTOM_LEFT],e[l.NEAR_TOP_LEFT],t[d.LEFT]),(0,f.Cr)(e[l.NEAR_BOTTOM_RIGHT],e[l.FAR_BOTTOM_RIGHT],e[l.FAR_TOP_RIGHT],t[d.RIGHT]),(0,f.Cr)(e[l.FAR_BOTTOM_LEFT],e[l.FAR_BOTTOM_RIGHT],e[l.NEAR_BOTTOM_RIGHT],t[d.BOTTOM]),(0,f.Cr)(e[l.NEAR_TOP_LEFT],e[l.NEAR_TOP_RIGHT],e[l.FAR_TOP_RIGHT],t[d.TOP]),(0,f.Cr)(e[l.NEAR_BOTTOM_LEFT],e[l.NEAR_BOTTOM_RIGHT],e[l.NEAR_TOP_RIGHT],t[d.NEAR]),(0,f.Cr)(e[l.FAR_BOTTOM_RIGHT],e[l.FAR_BOTTOM_LEFT],e[l.FAR_TOP_LEFT],t[d.FAR])}(n,i)}function A(t,e){for(let n=0;n<p;n++){const i=t[n];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=e[3])return!1}return!0}(_=d||(d={}))[_.LEFT=0]="LEFT",_[_.RIGHT=1]="RIGHT",_[_.BOTTOM=2]="BOTTOM",_[_.TOP=3]="TOP",_[_.NEAR=4]="NEAR",_[_.FAR=5]="FAR",function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(l||(l={})),l.FAR_BOTTOM_RIGHT,l.NEAR_BOTTOM_RIGHT,l.NEAR_BOTTOM_LEFT,l.FAR_BOTTOM_LEFT,l.NEAR_BOTTOM_LEFT,l.NEAR_BOTTOM_RIGHT,l.NEAR_TOP_RIGHT,l.NEAR_TOP_LEFT,l.FAR_BOTTOM_RIGHT,l.FAR_BOTTOM_LEFT,l.FAR_TOP_LEFT,l.FAR_TOP_RIGHT,l.NEAR_BOTTOM_RIGHT,l.FAR_BOTTOM_RIGHT,l.FAR_TOP_RIGHT,l.NEAR_TOP_RIGHT,l.FAR_BOTTOM_LEFT,l.NEAR_BOTTOM_LEFT,l.NEAR_TOP_LEFT,l.FAR_TOP_LEFT,l.FAR_TOP_LEFT,l.NEAR_TOP_LEFT,l.NEAR_TOP_RIGHT,l.FAR_TOP_RIGHT;const p=6,R=8,b=[(0,u.fA)(-1,-1,-1,1),(0,u.fA)(1,-1,-1,1),(0,u.fA)(1,1,-1,1),(0,u.fA)(-1,1,-1,1),(0,u.fA)(-1,-1,1,1),(0,u.fA)(1,-1,1,1),(0,u.fA)(1,1,1,1),(0,u.fA)(-1,1,1,1)],E=(new i.I(h),[(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,s.vt)()])},11964:(t,e,n)=>{n.d(e,{Cr:()=>a,H6:()=>l,_I:()=>d,kb:()=>h,vt:()=>u});var i=n(34727),o=n(4341),r=n(38954),s=n(51850),c=n(32114);function u(t){return t?{origin:(0,s.o8)(t.origin),vector:(0,s.o8)(t.vector)}:{origin:(0,s.vt)(),vector:(0,s.vt)()}}function a(t,e,n=u()){return(0,r.c)(n.origin,t),(0,r.d)(n.vector,e,t),n}function h(t,e){const n=(0,r.d)(c.rq.get(),e,t.origin),o=(0,r.f)(t.vector,n),s=(0,r.f)(t.vector,t.vector),u=(0,i.qE)(o/s,0,1),a=(0,r.d)(c.rq.get(),(0,r.h)(c.rq.get(),t.vector,u),n);return(0,r.f)(a,a)}function d(t,e,n){return l(t,e,0,1,n)}function l(t,e,n,o,s){const{vector:u,origin:a}=t,h=(0,r.d)(c.rq.get(),e,a),d=(0,r.f)(u,h)/(0,r.k)(u);return(0,r.h)(s,u,(0,i.qE)(d,n,o)),(0,r.g)(s,s,t.origin)}(0,s.vt)(),(0,s.vt)(),new o.I((()=>u()))},71351:(t,e,n)=>{n.d(e,{C:()=>d,Cr:()=>l,LV:()=>h,kb:()=>_,oC:()=>f,vt:()=>u}),n(4576);var i=n(4341),o=(n(77690),n(29242)),r=n(38954),s=n(51850),c=n(32114);function u(t){return t?a((0,s.o8)(t.origin),(0,s.o8)(t.direction)):a((0,s.vt)(),(0,s.vt)())}function a(t,e){return{origin:t,direction:e}}function h(t,e){const n=T.get();return n.origin=t,n.direction=e,n}function d(t,e=u()){return function(t,e,n=u()){return(0,r.c)(n.origin,t),(0,r.c)(n.direction,e),n}(t.origin,t.direction,e)}function l(t,e,n=u()){return(0,r.c)(n.origin,t),(0,r.d)(n.direction,e,t),n}function _(t,e){const n=(0,r.e)(c.rq.get(),(0,r.n)(c.rq.get(),t.direction),(0,r.d)(c.rq.get(),e,t.origin));return(0,r.f)(n,n)}function f(t,e,n){const i=(0,r.f)(t.direction,(0,r.d)(n,e,t.origin));return(0,r.g)(n,t.origin,(0,r.h)(n,t.direction,i)),n}const T=new i.I((()=>u()));(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,o.vt)()},78230:(t,e,n)=>{n.d(e,{A:()=>_});var i,o,r=n(93687),s=n(3694),c=n(38954),u=n(51850),a=n(82919),h=n(71351),d=n(97937),l=n(620);class _{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new f,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),f.clearPool(),x[0]=null,C.prune(),y.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=f.acquire();for(let i=0;i<e;i++){const e=t[i];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}f.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=f.acquire();for(const i of t){const t=e??(0,d.e)(this.objectToBoundingSphere(i),H);F(t[3])?(n.init(this._root),g(i,t,n)):this._degenerateObjects.delete(i)}f.release(n),this._shrink()}update(t,e){if(!F(e[3])&&this._isDegenerate(t))return;const n=function(t){return x[0]=t,x}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const i=(0,h.LV)(t,e);T(this._root,(t=>{if(!function(t,e){return b((0,d.a)(e.bounds),2*-e.halfSize,I),b((0,d.a)(e.bounds),2*e.halfSize,L),(0,l.O_)(t.origin,t.direction,I,L)}(i,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,i){const o=(0,h.LV)(t,e);T(this._root,(t=>{if(!function(t,e,n){return b((0,d.a)(e.bounds),2*-e.halfSize,I),b((0,d.a)(e.bounds),2*e.halfSize,L),n.applyToMinMax(I,L),(0,l.O_)(t.origin,t.direction,I,L)}(o,t,i))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),!0}))}forEach(t){T(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,i=()=>!0,o=1/0){let r=1/0,s=1/0,u=null;const h=v(t,e),l=c=>{if(--o,!i(c))return;const h=this.objectToBoundingSphere(c);if(!(0,a.m7)(n,h))return;const l=M(t,e,(0,d.a)(h)),_=l-h[3],f=l+h[3];_<r&&(r=_,s=f,u=c)};return m(this._root,(i=>{if(o<=0||!(0,a.m7)(n,i.bounds))return!1;if((0,c.h)(j,h,i.halfSize),(0,c.g)(j,j,(0,d.a)(i.bounds)),M(t,e,j)>s)return!1;const r=i.node;return r.terminals.forAll((t=>l(t))),null!==r.residents&&r.residents.forAll((t=>l(t))),!0}),t,e),u}forEachInDepthRange(t,e,n,i,o,r,s){let u=-1/0,h=1/0;const l={setRange:t=>{n===_.DepthOrder.FRONT_TO_BACK?(u=Math.max(u,t.near),h=Math.min(h,t.far)):(u=Math.max(u,-t.far),h=Math.min(h,-t.near))}};l.setRange(i);const f=M(e,n,t),T=v(e,n),g=v(e,-n),O=t=>{if(!s(t))return;const i=this.objectToBoundingSphere(t),c=(0,d.a)(i),_=M(e,n,c)-f,T=_-i[3],m=_+i[3];T>h||m<u||!(0,a.m7)(r,i)||o(t,l)};m(this._root,(t=>{if(!(0,a.m7)(r,t.bounds))return!1;if((0,c.h)(j,T,t.halfSize),(0,c.g)(j,j,(0,d.a)(t.bounds)),M(e,n,j)-f>h)return!1;if((0,c.h)(j,g,t.halfSize),(0,c.g)(j,j,(0,d.a)(t.bounds)),M(e,n,j)-f<u)return!1;const i=t.node;return i.terminals.forAll((t=>O(t))),null!==i.residents&&i.residents.forAll((t=>O(t))),!0}),e,n)}forEachNode(t){T(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,d.g)(e),i=(0,d.a)(e),o=e=>{const o=this.objectToBoundingSphere(e),r=(0,d.g)(o),s=n+r;return!((0,c.s)((0,d.a)(o),i)-s*s<=0)||t(e)};let r=!0;const s=t=>{r&&(r=o(t))};T(this._root,(t=>{const e=(0,d.g)(t.bounds),o=n+e;if((0,c.s)((0,d.a)(t.bounds),i)-o*o>0)return!1;const u=t.node;return u.terminals.forAll(s),r&&null!==u.residents&&u.residents.forAll(s),r})),r&&this.forEachDegenerateObject(s)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.i)(n,t)}_intersectsObjectWithOffset(t,e,n){const i=this.objectToBoundingSphere(e);return!(i[3]>0)||(0,d.i)(n.applyToBoundingSphere(i),t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const i=f.acquire().init(t);this._add(e.at(n),i),f.release(i)}}_grow(t,e){if(0!==e&&(E(t,e,(t=>this.objectToBoundingSphere(t)),w),F(w[3])&&!this._fitsInsideTree(w)))if(A(this._root.node))(0,d.e)(w,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(w);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(w,t):this._growRootAsSubNode(t),f.release(t)}}_rebuildTree(t,e){(0,c.c)((0,d.a)(z),(0,d.a)(e.bounds)),z[3]=e.halfSize,E([t,z],2,(t=>t),G);const n=f.acquire().init(this._root);this._root.initFrom(null,G,G[3]),this._root.increaseHalfSize(1.25),T(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),f.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return T(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let i=-1/0;const o=this._root.bounds,r=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-r-(n[t]-e),c=n[t]+e-(o[t]+r),u=Math.max(0,Math.ceil(s/(2*r))),a=Math.max(0,Math.ceil(c/(2*r)))+1,h=2**Math.ceil(Math.log(u+a)*Math.LOG2E);i=Math.max(i,h),q[t].min=u,q[t].max=a}for(let t=0;t<3;t++){let e=q[t].min,n=q[t].max;const s=(i-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const c=o[t]-r-e*r*2;B[t]=c+(n+e)*r}const s=i*r;return B[3]=s*P,f.acquire().initFrom(null,B,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,c.c)((0,d.a)(w),(0,d.a)(this._root.bounds)),w[3]=this._root.halfSize,this._root.init(t),t.advanceTo(w,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,i=0;for(;i<e.length&&null==t;)n=i++,t=e[n];for(;i<e.length;)if(e[i++])return-1;return n}_isDegenerate(t){return!F(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,i=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:i}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),i=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:i}}static fromJSON(t){const e=new _((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class f{constructor(){this.bounds=(0,d.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,i=this.depth){return this.node=null!=t?t:f.createEmptyNode(),e&&(0,d.e)(e,this.bounds),this.halfSize=n,this.depth=i,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*P}advance(t){let e=this.node.children[t];e||(e=f.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=S[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const i=this._childIndex(t);e&&e(this,i),this.advance(i)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new s.A({shrink:!0}),residents:new s.A({shrink:!0})}}static{this._pool=new r.A(f)}static acquire(){return f._pool.acquire()}static release(t){f._pool.release(t)}static clearPool(){f._pool.prune()}}function T(t,e){let n=f.acquire().init(t);const i=[n];for(;0!==i.length;){if(n=i.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&i.push(f.acquire().init(n).advance(t));f.release(n)}}function m(t,e,n,i=_.DepthOrder.FRONT_TO_BACK){let o=f.acquire().init(t);const r=[o];for(function(t,e,n){if(!y.length)for(let t=0;t<8;++t)y.push({index:0,distance:0});for(let n=0;n<8;++n){const i=S[n];y.data[n].index=n,y.data[n].distance=M(t,e,i)}y.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=y.data[t].index}(n,i,D);0!==r.length;){if(o=r.pop(),e(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const e=D[t];o.node.children[e]&&r.push(f.acquire().init(o).advance(e))}f.release(o)}}function g(t,e,n){C.clear();const i=n.advanceTo(e,((t,e)=>{C.push(t.node),C.push(e)}))?n.node.terminals:n.node.residents;if(i.removeUnordered(t),0===i.length)for(let t=C.length-2;t>=0&&O(C.data[t],C.data[t+1]);t-=2);}function O(t,e){return e>=0&&(t.children[e]=null),!!A(t)&&(null===t.residents&&(t.residents=new s.A({shrink:!0})),!0)}function A(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function p(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function R(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function b(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function E(t,e,n,i){if(1===e){const e=n(t[0]);(0,d.e)(e,i)}else{I[0]=1/0,I[1]=1/0,I[2]=1/0,L[0]=-1/0,L[1]=-1/0,L[2]=-1/0;for(let i=0;i<e;i++){const e=n(t[i]);F(e[3])&&(p(I,e),R(L,e))}(0,c.m)((0,d.a)(i),I,L,.5),i[3]=Math.max(L[0]-I[0],L[1]-I[1],L[2]-I[2])/2}}function v(t,e){let n,i=1/0;for(let o=0;o<8;++o){const r=M(t,e,N[o]);r<i&&(i=r,n=N[o])}return n}function M(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function F(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}(o=(i=_).DepthOrder||(i.DepthOrder={}))[o.FRONT_TO_BACK=1]="FRONT_TO_BACK",o[o.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const S=[(0,u.fA)(-1,-1,-1),(0,u.fA)(1,-1,-1),(0,u.fA)(-1,1,-1),(0,u.fA)(1,1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(1,-1,1),(0,u.fA)(-1,1,1),(0,u.fA)(1,1,1)],N=[(0,u.fA)(-1,-1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(-1,1,-1),(0,u.fA)(-1,1,1),(0,u.fA)(1,-1,-1),(0,u.fA)(1,-1,1),(0,u.fA)(1,1,-1),(0,u.fA)(1,1,1)],P=Math.sqrt(3),x=[null],B=(0,d.c)(),j=(0,u.vt)(),I=(0,u.vt)(),L=(0,u.vt)(),C=new s.A,H=(0,d.c)(),w=(0,d.c)(),z=(0,d.c)(),G=(0,d.c)(),q=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],y=new s.A,D=[0,0,0,0,0,0,0,0]},46064:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});var i=n(90237),o=n(74887),r=(n(53966),n(44208),n(87811),n(49186),n(40608)),s=n(38954),c=n(51850),u=n(11964),a=n(97937),h=n(78230),d=n(53099);function l(t,e,n){const i=(0,a.c)(),o=(0,a.a)(i);return(0,s.b)(o,o,t,.5),(0,s.b)(o,o,e,.5),i[3]=(0,s.j)(o,t),(0,s.g)(o,o,n),i}let _=class{constructor(){this._idToComponent=new Map,this._components=new h.A((t=>t.bounds)),this._edges=new h.A((t=>t.bounds)),this._tmpLineSegment=(0,u.vt)(),this._tmpP1=(0,c.vt)(),this._tmpP2=(0,c.vt)(),this._tmpP3=(0,c.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,o.Te)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:i}=t;n.push({id:e,uid:i})}return!0}),t.bounds),!n.length)return;const i={components:n},o=await this.remoteClient.invoke("fetchAllEdgeLocations",i,e??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const e=new m(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=d.HY.createView(t.locations),i=new Array(n.count),o=(0,c.vt)(),r=(0,c.vt)();for(let s=0;s<n.count;s++){n.position0.getVec(s,o),n.position1.getVec(s,r);const c=l(o,r,t.origin),u=new g(e,s,c);i[s]=u}this._edges.add(i);const{objectIds:s,origin:u}=t;e.info={locations:n,objectIds:s,origin:u}}_addCandidates(t,e,n){const{info:i}=e.component,{origin:o,objectIds:r}=i,c=i.locations,u=c.position0.getVec(e.index,this._tmpP1),a=c.position1.getVec(e.index,this._tmpP2);(0,s.g)(u,u,o),(0,s.g)(a,a,o);const h=r[c.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,u,a,n),T(t,h,u,n),T(t,h,a,n)}_addEdgeCandidate(t,e,n,i,o){if(!t.returnEdge)return;const r=(0,a.a)(t.bounds),h=(0,u.Cr)(n,i,this._tmpLineSegment),d=(0,u._I)(h,r,this._tmpP3);(0,a.o)(t.bounds,d)&&o.push({type:"edge",objectId:e,target:(0,c.o8)(d),distance:(0,s.j)(r,d),start:(0,c.o8)(n),end:(0,c.o8)(i)})}};_=(0,i._)([(0,r.$)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],_);const f=_;function T(t,e,n,i){if(!t.returnVertex||!(0,a.o)(t.bounds,n))return;const o=(0,a.a)(t.bounds);i.push({type:"vertex",objectId:e,target:(0,c.o8)(n),distance:(0,s.j)(o,n)})}class m{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++m.uid}static{this.uid=0}}class g{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7677],{563:(e,t,i)=>{i.d(t,{QueueProcessor:()=>u});var s=i(97768),r=i(74887),n=i(9775),o=i(32587),l=i(11932),a=i(44794);class c{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class u{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,a.v)(!1),this.concurrency=1,e.concurrency&&(this.concurrency=e.concurrency),this._queue=new n.A(e.peeker),this.process=e.process}destroy(){this.clear(),this._schedule=(0,s.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}abort(e){const t=this._controllers.get(e);t&&t.abort()}clear(){this._queue.clear();const e=[];this._controllers.forEach((t=>e.push(t))),this._controllers.clear(),e.forEach((e=>e.abort())),this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach(((t,i)=>e(i)))}get(e){const t=this._deferreds.get(e);return t?t.promise:void 0}isOngoing(e){return this._processingItems.has(e)}has(e){return this._deferreds.has(e)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const i=this.get(e);if(i)return i;const s=new AbortController;let n=null;t&&(n=(0,r.u7)(t,(()=>s.abort())));const o=()=>{l.remove(),null!=n&&n.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()},l=(0,r.NY)(s.signal,(()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),o(),a.reject((0,r.NK)())})),a=(0,r.Tw)();return this._deferreds.set(e,a),this._controllers.set(e,s),a.promise.then(o,o),this._queue.push(e),this._scheduleNext(),a.promise}last(){return this._queue.last()}lastPromise(){const e=this.last();return e?this.get(e):null}peek(){return this._queue.peek()}popLast(){const e=this._queue.popLast();return e&&(this._deferreds.get(e)?.reject((0,r.NK)()),this._removeItem(e)),e}reset(){const e=Array.from(this._processingItems.values());this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.delete(e)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,l._)((()=>{this._schedule=null,this._next()})))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const i=new AbortController,s=new c(e,i);this._processingItems.set(e,s);try{t=this.process(e,i.signal)}catch(e){this._processError(s,e)}(0,r.$X)(t)?(s.promise=t,t.then((e=>this._processResult(s,e)),(e=>this._processError(s,e)))):this._processResult(s,t)}}},32587:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(62788),r=i(95488);class n{constructor(e){this._observable=new r.I,this._map=new Map(e)}get size(){return(0,s.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){const t=this._map.delete(e);return t&&this._observable.notify(),t}entries(){return(0,s.gc)(this._observable),this._map.entries()}forEach(e,t){(0,s.gc)(this._observable),this._map.forEach(((i,s)=>e.call(t,i,s,this)),t)}get(e){return(0,s.gc)(this._observable),this._map.get(e)}has(e){return(0,s.gc)(this._observable),this._map.has(e)}keys(){return(0,s.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._observable.notify(),this}values(){return(0,s.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,s.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},44794:(e,t,i)=>{i.d(t,{v:()=>l});var s=i(4718),r=i(62788),n=i(95488);class o{constructor(e,t){this._observable=new n.I,this._value=e,this._equalityFunction=t}get value(){return(0,r.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function l(e,t=s.gh){return new o(e,t)}},89015:(e,t,i)=>{i.d(t,{o:()=>N});var s=i(90237),r=i(78888),n=i(49186),o=i(53966),l=i(10107),a=i(56507),c=(i(44208),i(87811),i(93223)),u=i(36005),h=i(40608),d=i(86738),p=i(16930),f=i(21325),m=i(60694),y=i(10873),g=i(45617),x=i(43577),_=i(13868),b=i(22796),v=i(69409),w=i(87045),R=i(84169),I=i(77301),S=i(77359),M=i(6049),k=i(70834),T=i(6952),F=i(14636),A=i(12711),P=i(85676),z=i(94359),C=i(22048),J=i(4095);const N=e=>{let t=class extends e{constructor(...e){super(...e),this._isConstructedFromFunctionRaster=!1,this._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},this.bandIds=null,this.copyright=null,this.interpolation=null,this.multidimensionalSubset=null,this.raster=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.spatialReference=null,this.symbolizer=null,this._isConstructedFromFunctionRaster="Function"===e[0]?.raster?.datasetFormat}get fullExtent(){return this.serviceRasterInfo?.extent}set multidimensionalDefinition(e){this._set("multidimensionalDefinition",e),this.updateRenderer()}set rasterFunction(e){"none"===e?.functionName?.toLowerCase()&&(e=void 0),this._set("rasterFunction",e),this.updateRasterFunction()}set url(e){this._set("url",(0,m.Jf)(e,o.A.getLogger(this)))}get renderer(){if("imagery-tile"!==this.type)return this.internalRenderer;const{activePresetRendererName:e,presetRenderers:t}=this;if(e){const i=t?.find((({name:t})=>t===e));return i?.renderer.clone()}return this.internalRenderer}set renderer(e){"imagery-tile"===this.type&&(this.activePresetRendererName=null),this.internalRenderer=e}set internalRenderer(e){null==e&&null==this.rasterFunction?this._configDefaultRenderer("override"):(this._set("internalRenderer",e),this.updateRenderer())}readRenderer(e,t,i){const s=t?.layerDefinition?.drawingInfo?.renderer;return(0,z.LF)(s,i)||void 0}async convertVectorFieldData(e,t){const{serviceRasterInfo:i}=this;if(null==e||!i)return null;const s=this._rasterJobHandler.instance,r=i.dataType;return s?s.convertVectorFieldData({pixelBlock:e,dataType:r},t):(0,F.FI)(e,r)}async computeStatisticsHistograms(e,t){await this.load(t),e=(0,a.PZ)(C.A,e).clone();const{serviceRasterInfo:i}=this;if(null==i)throw new n.A("imagery-tile-mixin:compute-statistics-histograms","serviceRasterInfo must be specified");const{geometry:s}=e;if(null==s)throw new n.A("imagery-tile-mixin:compute-statistics-histograms","geometry must be specified");let r=s;const{spatialReference:o}=i;s.spatialReference.equals(o)||(await(0,k.Hh)(),r="extent"===s.type?(0,k._l)(s,o):(0,k.uk)(s,o));const l=e.pixelSize??new d.A({x:i.pixelSize.x,y:i.pixelSize.y,spatialReference:o}),{extent:c,width:u,height:h}=(0,S.b7)(i,r,l),p=await this.fetchPixels(c,u,h,{...t,interpolation:"nearest"});if(null==p.pixelBlock)throw new n.A("imagery-tile-mixin:compute-statistics-histograms","failed to fetch pixels");const f=await(0,S.$Q)(p.pixelBlock,c,r),m=this._rasterJobHandler.instance;return m?m.computeStatisticsHistograms({pixelBlock:f},t):(0,T.eH)(f)}async createFlowMesh(e,t){const i=this._rasterJobHandler.instance;return i?i.createFlowMesh(e,t):(0,J.CW)(e.meshType,e.simulationSettings,e.flowData,null!=t.signal?t.signal:(new AbortController).signal)}normalizeRasterFetchOptions(e){const{multidimensionalInfo:t}=this.serviceRasterInfo??{};if(null==t)return e;const i=(0,I.XU)({rasterInfo:this.raster.rasterInfo,multidimensionalDefinition:e.multidimensionalDefinition||this.multidimensionalDefinition,timeExtent:e.timeExtent??this.timeExtent,multidimensionalSubset:this.multidimensionalSubset});return{...e,multidimensionalDefinition:i}}async updateRasterFunction(){return this.loaded&&"imagery-tile"===this.type&&(this.rasterFunction||this._cachedRasterFunctionJson)&&JSON.stringify(this.rasterFunction)!==JSON.stringify(this._cachedRasterFunctionJson)?(this._cachedRasterFunctionJson=this.rasterFunction?.toJSON(),this._rasterFunctionUpdatePromise=this._updateRasterFunction(),this._rasterFunctionUpdatePromise):this._rasterFunctionUpdatePromise}async updateRenderer(){const{loaded:e,symbolizer:t}=this;if(!e||!t||!this.renderer)return;const{rasterInfo:i}=this.raster,s=(0,I.ct)(i,{multidimensionalDefinition:this.multidimensionalDefinition,multidimensionalSubset:this.multidimensionalSubset}),r=s?.name,n=(0,A.$P)({...this.renderer.toJSON(),variableName:r});if(JSON.stringify(this._cachedRendererJson)===JSON.stringify(n))return;const o=this._rasterJobHandler.instance;o&&(t.rasterInfo=(0,A.m7)(i,r),t.rendererJSON=n,t.bind(),await o.updateSymbolizer(t),this._cachedRendererJson=n)}async applyRenderer(e,t){const i=e?.pixelBlock;if(!(null!=i&&i.pixels&&i.pixels.length>0))return null;let s;await this.updateRenderer();const r=this._rasterJobHandler.instance,n=this.bandIds??[];return s=r?await r.symbolize({...e,simpleStretchParams:t,bandIds:n}):this.symbolizer.symbolize({...e,simpleStretchParams:t,bandIds:n}),s}getTileUrl(e,t,i){return"RasterTileServer"===this.raster.datasetFormat?`${this.url}/tile/${e}/${t}/${i}`:""}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||null==t)return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;const s=(0,f.Vp)(e);return w.A.create({size:256,spatialReference:e,origin:s?{x:s.origin[0],y:s.origin[1]}:{x:t.xmin,y:t.ymax}})}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}async fetchTile(e,t,s,n={}){if(i(this),n.requestAsImageElement){const i=this.getTileUrl(e,t,s);return(0,r.A)(i,{responseType:"image",query:{...this.refreshParameters,...this.raster.ioConfig.customFetchParameters},signal:n.signal}).then((e=>e.data))}const{serviceRasterInfo:o}=this;if(null!=o.multidimensionalInfo&&null==(n=this.normalizeRasterFetchOptions(n)).multidimensionalDefinition){const i=n.tileInfo||o.storageInfo.tileInfo;return{extent:this.raster.getTileExtentFromTileInfo(e,t,s,i),pixelBlock:null}}return await this._initJobHandler(),await this.updateRasterFunction(),"raster-shaded-relief"===this.renderer?.type&&(n={...n,buffer:{cols:1,rows:1}}),this.raster.fetchTile(e,t,s,n)}async fetchPixels(e,t,i,s={}){return null!=this.serviceRasterInfo.multidimensionalInfo&&null==(s=this.normalizeRasterFetchOptions(s)).multidimensionalDefinition?{extent:e,pixelBlock:null}:(await this._initJobHandler(),await this.updateRasterFunction(),t=Math.round(t),i=Math.round(i),this.raster.fetchPixels(e,t,i,s))}async identify(e,t={}){await this.load();const{raster:i,serviceRasterInfo:s}=this;if(null!=s?.multidimensionalInfo&&!(s.hasMultidimensionalTranspose&&((0,I.DY)(t.multidimensionalDefinition)||t.transposedVariableName||t.timeExtent)||null!=(t=this.normalizeRasterFetchOptions(t)).multidimensionalDefinition))return{location:e,value:null};const r=this.multidimensionalSubset?.areaOfInterest;if(r&&!r.contains(e))throw new n.A("imagery-tile-mixin:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");return i.identify(e,t)}increaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()}hasStandardTime(){const e=this.serviceRasterInfo?.multidimensionalInfo;if(null==e||"standard-time"!==this.serviceRasterInfo?.dataType)return!1;const t=this.multidimensionalDefinition,i=t?.[0]?.variableName;return e.variables.some((e=>e.name===i&&(!t?.[0].dimensionName||e.dimensions.some((e=>"StdTime"===e.name)))))}getStandardTimeValue(e){return new Date(24*(e-25569)*3600*1e3).toString()}getMultidimensionalSubsetVariables(e){const t=e??this.serviceRasterInfo?.multidimensionalInfo;return(0,I.z2)(this.multidimensionalSubset,t)}_configDefaultSettings(){this._configDefaultInterpolation(),this.multidimensionalDefinition||(this.multidimensionalDefinition=(0,I.fy)(this.raster.rasterInfo,{multidimensionalSubset:this.multidimensionalSubset})),this.rasterFunction&&"Function"===this.raster.datasetFormat&&(this._cachedRasterFunctionJson=this.rasterFunction.toJSON()),this._configDefaultRenderer()}_initJobHandler(){if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;const e=new v.A;return this._rasterJobHandler.connectionPromise=e.initialize().then((async()=>{i(this),this._rasterJobHandler.instance=e,this.raster.rasterJobHandler=e,"Function"===this.raster.datasetFormat&&this.raster.syncJobHandler(),this.rasterFunction&&await this.updateRasterFunction().catch((()=>{})),this.renderer&&this.updateRenderer()})).catch((()=>{})),this._rasterJobHandler.connectionPromise}_shutdownJobHandler(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0,this._cachedRendererJson=null,this.raster&&(this.raster.rasterJobHandler=null)}_configDefaultInterpolation(){if(null==this.interpolation){i(this);const{raster:e}=this,t=(0,A.w6)(e.rasterInfo,e.tileType,this.sourceJSON?.defaultResamplingMethod);this._set("interpolation",t)}}_configDefaultRenderer(e="no"){i(this);const{rasterInfo:t}=this.raster,s=(0,I.ct)(t,{multidimensionalDefinition:this.multidimensionalDefinition,multidimensionalSubset:this.multidimensionalSubset}),r=s?.name,n=(0,A.I8)({variableName:r,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&t.bandCount>1&&(this.bandIds=n?.bandIds??(0,A.ci)(t)),!this.renderer||"override"===e){const e=(0,A.Mm)(this.raster),i=n?.renderer??(0,A.PD)(t,{bandIds:this.bandIds,variableName:r,rasterFunctionColorRamp:e}),s=t.statistics,o=s&&s.length>0?s[0]:null,l=o?.max??0,a=o?.min??0;"WCSServer"===this.raster.datasetFormat&&"raster-stretch"===i.type&&(l>1e24||a<-1e24)&&(i.dynamicRangeAdjustment=!0,i.customStatistics=null,"none"===i.stretchType&&(i.stretchType="min-max")),this.renderer=i}const l=(0,A.$P)({...this.renderer.toJSON(),variableName:r}),a=(0,A.m7)(t,r);this.symbolizer?(this.symbolizer.rendererJSON=l,this.symbolizer.rasterInfo=a):this.symbolizer=new P.A({rendererJSON:l,rasterInfo:a});const c=this.symbolizer.bind();if(c.success){if("auto"===e){const{colormap:e}=this.raster.rasterInfo,t=this.renderer;if(null!=e&&"raster-colormap"===t.type){const e=(0,A.PD)(this.raster.rasterInfo);JSON.stringify(e)!==JSON.stringify(t)&&this._configDefaultRenderer("override")}else if("raster-stretch"===t.type){const e=this.bandIds?.length,i=t.customStatistics?.length;!t.dynamicRangeAdjustment&&i&&e&&i!==e&&this._configDefaultRenderer("override")}}}else o.A.getLogger(this).warn("imagery-tile-mixin",c.error||"The given renderer is not supported by the layer."),"auto"===e&&this._configDefaultRenderer("override")}async _updateRasterFunction(){if(this._isConstructedFromFunctionRaster&&"Function"===this.raster.datasetFormat){const e=this.raster.rasterFunction.toJSON();return void(!this.rasterFunction&&e&&this._set("rasterFunction",b.A.fromJSON(e)))}let e,t=this.raster,i=!1;"Function"===t.datasetFormat?(e=t.primaryRasters.rasters,t=e[0],i=!0):e=[t];const{rasterFunction:s}=this;if(s){const i={raster:t};e.length>1&&e.forEach((e=>i[e.url]=e));const r=(0,M.vt)(s.functionDefinition?.toJSON()??s.toJSON(),i),n=new R.A({rasterFunction:r});n.rasterJobHandler=this._rasterJobHandler.instance,await n.open(),this.raster=n}else this.raster=t,await t.open();if(this._cachedRendererJson=null,!i&&!s)return;const{bandIds:r}=this,{bandCount:n}=this.raster.rasterInfo,o=r?.length?r.some((e=>e>=n)):n>=3;r&&(o||this.renderer&&"raster-stretch"!==this.renderer.type)&&this._set("bandIds",null),this._configDefaultRenderer("auto")}};function i(e){if(!e.raster||!e.serviceRasterInfo)throw new n.A("imagery-tile","no raster")}return(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_cachedRendererJson",void 0),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_cachedRasterFunctionJson",void 0),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_compatibleFullExtent",void 0),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_isConstructedFromFunctionRaster",void 0),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_rasterJobHandler",void 0),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"_rasterFunctionUpdatePromise",void 0),(0,s._)([(0,l.MZ)({type:[a.jz],json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"0,1,2"!==this.bandIds?.join(",")}}}}})],t.prototype,"bandIds",void 0),(0,s._)([(0,l.MZ)({json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,s._)([(0,l.MZ)({json:{read:!1}})],t.prototype,"fullExtent",null),(0,s._)([(0,l.MZ)({json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"bilinear"!==this.interpolation}}}}}),(0,c.e)(_.SZ)],t.prototype,"interpolation",void 0),(0,s._)([(0,l.MZ)()],t.prototype,"ioConfig",void 0),(0,s._)([(0,l.MZ)({type:[g.A],json:{write:!0}})],t.prototype,"multidimensionalDefinition",null),(0,s._)([(0,l.MZ)({type:x.A,json:{write:!0}})],t.prototype,"multidimensionalSubset",void 0),(0,s._)([(0,l.MZ)()],t.prototype,"raster",void 0),(0,s._)([(0,l.MZ)({type:b.A})],t.prototype,"rasterFunction",null),(0,s._)([(0,l.MZ)()],t.prototype,"serviceRasterInfo",void 0),(0,s._)([(0,l.MZ)()],t.prototype,"sourceJSON",void 0),(0,s._)([(0,l.MZ)({readOnly:!0,type:p.A,json:{read:!1}})],t.prototype,"spatialReference",void 0),(0,s._)([(0,l.MZ)({type:w.A})],t.prototype,"tileInfo",void 0),(0,s._)([(0,l.MZ)(y.OZ)],t.prototype,"url",null),(0,s._)([(0,l.MZ)()],t.prototype,"renderer",null),(0,s._)([(0,l.MZ)({types:z.uy,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(){const e="raster-stretch"===this.renderer?.type&&"none"===this.renderer.stretchType&&!this.renderer.useGamma;return{enabled:!this.loaded||"Raster"===this.raster.tileType||!e}}},origins:{"web-scene":{types:z.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],t.prototype,"internalRenderer",null),(0,s._)([(0,u.w)("internalRenderer")],t.prototype,"readRenderer",null),(0,s._)([(0,l.MZ)({clonable:!1})],t.prototype,"symbolizer",void 0),t=(0,s._)([(0,h.$)("esri.layers.mixins.ImageryTileMixin")],t),t}},91806:(e,t,i)=>{i.d(t,{A:()=>u});var s,r=i(90237),n=i(25482),o=i(10107),l=i(56507),a=(i(44208),i(87811),i(40608));let c=class extends n.A{static{s=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new s({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,r._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"cols",void 0),(0,r._)([(0,o.MZ)({type:l.jz,json:{write:!0}})],c.prototype,"level",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"levelValue",void 0),(0,r._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"origin",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:!0}})],c.prototype,"resolution",void 0),(0,r._)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"rows",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:!0}})],c.prototype,"scale",void 0),c=s=(0,r._)([(0,a.$)("esri.layers.support.LOD")],c);const u=c},87045:(e,t,i)=>{i.d(t,{A:()=>I});var s,r=i(90237),n=i(66552),o=i(25482),l=i(83047),a=i(10107),c=i(56507),u=(i(44208),i(87811),i(36005)),h=i(40608),d=i(43937),p=i(86738),f=i(16930),m=i(19419),y=i(21325),g=i(28735),x=i(91806),_=i(72802);const b=new n.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let v=class extends o.A{static{s=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:r=256,spatialReference:n=f.A.WebMercator,numLODs:o=24}=e;if(!(0,y.fn)(n)){const e=[];if(i)for(let t=0;t<i.length;t++){const s=i[t];e.push(new x.A({level:t,scale:s,resolution:s}))}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift(new x.A({level:i,scale:t,resolution:t})),t*=2}return new s({dpi:96,lods:e,origin:new p.A(0,0,n),size:[r,r],spatialReference:n})}const a=(0,y.Vp)(n),c=e.origin?new p.A({x:e.origin.x,y:e.origin.y,spatialReference:n}):new p.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:n}:{x:0,y:0,spatialReference:n}),u=1/(39.37*(0,l.GA)(n)*96),h=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],s=t*u;h.push(new x.A({level:e,scale:t,resolution:s}))}else{let e=(0,y.EA)(n)?512/r*591657527.5917094:256/r*591657527.591555;const i=Math.ceil(o/t);h.push(new x.A({level:0,scale:e,resolution:e*u}));for(let s=1;s<i;s++){const i=e/2**t,r=i*u;h.push(new x.A({level:s,scale:i,resolution:r})),e=i}}return new s({dpi:96,lods:h,origin:c,size:[r,r],spatialReference:n})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,y.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return p.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const s=[],r=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach((e=>{s.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,r[e.level]=e}))),this._set("scales",s),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),s=i+1;return t[i]/(t[i]/t[s])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let s=0;for(;s<i;s++){const i=t[s],r=t[s+1];if(i<=e)return s;if(r===e)return s+1;if(i>e&&r<e)return s+Math.log(i/e)/Math.log(i/r)}return s}tileAt(e,t,i,s){const r=this.lodAt(e);if(!r)return null;let n,o;if("number"==typeof t)n=t,o=i;else if((0,y.aI)(t.spatialReference,this.spatialReference))n=t.x,o=t.y,s=i;else{const e=(0,g.Cv)(t,this.spatialReference);if(null==e)return null;n=e.x,o=e.y,s=i}const l=r.resolution*this.size[0],a=r.resolution*this.size[1];return s||(s=new _.U(null,0,0,0,(0,m.vt)())),s.level=e,s.row=Math.floor((this.origin.y-o)/a+.001),s.col=Math.floor((n-this.origin.x)/l+.001),this.updateTileInfo(s),s}updateTileInfo(e,t=s.ExtrapolateOptions.NONE){let i=this.lodAt(e.level);if(!i&&t===s.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return;const r=e.level-i.level,n=i.resolution*this.size[0]/2**r,o=i.resolution*this.size[1]/2**r;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,m.vt)()),e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:s}=i,r=s*this.size[0],n=s*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*n,e[2]=e[0]+r,e[3]=e[1]+n,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return s.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],r=this.lods.length-t;for(let e=0;e<r;e++){const s=e+t,{scale:r,resolution:n}=s>=0?this.lods[s]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new x.A({level:e,scale:r,resolution:n}))}return new s({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const s=e[i];this._upsampleLevels[s.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/s.resolution:0},t=s}}};var w,R;(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"compressionQuality",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"dpi",void 0),(0,r._)([(0,a.MZ)({type:String,json:{read:b.read,write:b.write,origins:{"web-scene":{read:!1,write:!1}}}})],v.prototype,"format",void 0),(0,r._)([(0,a.MZ)({readOnly:!0})],v.prototype,"isWrappable",null),(0,r._)([(0,a.MZ)({type:p.A,json:{write:!0}})],v.prototype,"origin",void 0),(0,r._)([(0,u.w)("origin")],v.prototype,"readOrigin",null),(0,r._)([(0,a.MZ)({type:[x.A],value:null,json:{write:!0}})],v.prototype,"lods",null),(0,r._)([(0,a.MZ)({readOnly:!0})],v.prototype,"scales",void 0),(0,r._)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],v.prototype,"size",void 0),(0,r._)([(0,u.w)("size",["rows","cols"])],v.prototype,"readSize",null),(0,r._)([(0,d.K)("size",{cols:{type:c.jz},rows:{type:c.jz}})],v.prototype,"writeSize",null),(0,r._)([(0,a.MZ)({type:f.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),v=s=(0,r._)([(0,h.$)("esri.layers.support.TileInfo")],v),w=v||(v={}),(R=w.ExtrapolateOptions||(w.ExtrapolateOptions={}))[R.NONE=0]="NONE",R[R.POWER_OF_TWO=1]="POWER_OF_TWO";const I=v},72802:(e,t,i)=>{i.d(t,{U:()=>s});class s{constructor(e,t,i,s,r=void 0){this.id=e,this.level=t,this.row=i,this.col=s,this.extent=r}}},4916:(e,t,i)=>{i.d(t,{A:()=>D});var s=i(90237),r=i(78888),n=i(49186),o=i(25482),l=i(53966),a=i(74887),c=i(563),u=i(10107),h=i(56507),d=(i(44208),i(87811),i(40608)),p=i(5443),f=i(86738),m=i(16930),y=i(60694),g=i(10873),x=i(45617),_=i(91806),b=i(20223),v=i(87045),w=i(77301),R=i(70834);const I=new Map,S=new class{constructor(e=15e3,t=5e3){this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=e,this._interval=Math.min(e,t)}decreaseRefCount(e,t){const i=e+"/"+t,s=this._cachedBlocks;if(s.has(i)){const e=s.get(i);return e.refCount--,e.refCount<=0&&(s.delete(i),e.controller&&e.controller.abort()),e.refCount}return 0}getBlock(e,t){const i=e+"/"+t,s=this._cachedBlocks;if(s.has(i)){const e=s.get(i);return e.ts=Date.now(),e.refCount++,s.delete(i),s.set(i,e),e.block}return null}putBlock(e,t,i,s){const r=this._cachedBlocks,n=e+"/"+t;if(r.has(n)){const e=r.get(n);e.ts=Date.now(),e.refCount++}else r.set(n,{block:i,ts:Date.now(),refCount:1,controller:s});this._trim(),this._updateTimer()}deleteBlock(e,t){const i=this._cachedBlocks,s=e+"/"+t;i.has(s)&&i.delete(s)}updateMaxSize(e){this._size=e,this._trim()}empty(){this._cachedBlocks.clear(),this._clearTimer()}getCurrentSize(){return this._cachedBlocks.size}_updateTimer(){if(null!=this._timer)return;const e=this._cachedBlocks;this._timer=setInterval((()=>{const t=Array.from(e),i=Date.now();for(let s=0;s<t.length&&t[s][1].ts<=i-this._duration;s++)e.delete(t[s][0]);0===e.size&&this._clearTimer()}),this._interval)}_trim(){const e=this._cachedBlocks;if(-1===this._size||this._size>=e.size)return;const t=Array.from(e);for(let i=0;i<t.length-this._size;i++)e.delete(t[i][0])}_clearTimer(){null!=this._timer&&(clearInterval(this._timer),this._timer=null)}};function M(e,t){return null==t?e:`${e}?sliceId=${t}`}function k(e,t,i){const s=I.get(e);if(!s)return null==t?S.decreaseRefCount(e,i):0;if(null==t||null==s[t])return S.decreaseRefCount(e,i);const r=s[t]?.cache,n=r?.get(i);if(r&&n){if(n.refCount--,0===n.refCount){r.delete(i);for(let e=0;e<s.length;e++)s[e]?.cache.delete(i);n.controller&&n.controller.abort()}return n.refCount}return 0}function T(e,t,i){const s=I.get(e);if(!s)return null==t?S.getBlock(e,i):null;if(null==t||null==s[t]){for(let e=0;e<s.length;e++){const t=s[e]?.cache.get(i);if(t)return t.refCount++,t.block}return S.getBlock(e,i)}const r=s[t]?.cache.get(i);if(r)return r.refCount++,r.block;for(let e=0;e<s.length;e++){if(e===t||!s[e])continue;const r=s[e]?.cache,n=r?.get(i);if(r&&n)return n.refCount++,r.set(i,n),n.block}return null}function F(e,t,i,s,r=null){const n=I.get(e);if(!n)return void(null==t&&S.putBlock(e,i,s,r));if(null==t||null==n[t])return void S.putBlock(e,i,s,r);const o={refCount:1,block:s,isResolved:!1,isRejected:!1,controller:r};s.then((()=>o.isResolved=!0)).catch((()=>o.isRejected=!0)),n[t]?.cache.set(i,o)}function A(e,t,i){const s=I.get(e);s?null!=t&&null!=s[t]?s[t]?.cache.delete(i):S.deleteBlock(e,i):null==t&&S.deleteBlock(e,i)}var P=i(16019),z=i(51244),C=i(28435),J=i(14636);let N=0,O=class extends o.A{constructor(){super(...arguments),this._tileFetchQueue=new c.QueueProcessor({concurrency:32,process:(e,t)=>this._fetchRawTile(e.pyramidLevel,e.row,e.col,{...e.options,signal:t})}),this.datasetName=null,this.datasetFormat=null,this.hasUniqueSourceStorageInfo=!0,this.rasterInfo=null,this.ioConfig={sampling:"closest"}}normalizeCtorArgs(e){return e?.ioConfig&&(e={...e,ioConfig:{resolution:null,bandIds:null,sampling:"closest",tileInfo:v.A.create(),...e.ioConfig}}),e}get _isGlobalWrappableSource(){const{rasterInfo:e}=this,t=(0,R.FT)(e.spatialReference);return null!=t&&e.extent.width>=t/2}get _hasNoneOrGCSShiftTransform(){const{transform:e}=this.rasterInfo;return null==e||"gcs-shift"===e.type}set rasterJobHandler(e){this._set("rasterJobHandler",e),"Function"===this.datasetFormat&&this.primaryRasters?.rasters?.forEach((t=>t.rasterJobHandler=e))}get rasterId(){return this.url||"rasterId-"+N++}set url(e){this._set("url",(0,y.Jf)(e,l.A.getLogger(this)))}async open(e){return this._openPromise??=(0,R.Hh)().then((()=>this._open(e))),this._openPromise}async fetchTile(e,t,i,s={}){const r=s.tileInfo||this.rasterInfo.storageInfo.tileInfo,n=this.getTileExtentFromTileInfo(e,t,i,r);return s={noClip:!0,...s},this.fetchPixels(n,r.size[0],r.size[1],s)}async identify(e,t={}){e=(0,h.PZ)(f.A,e).clone().normalize();const{multidimensionalDefinition:i,timeExtent:s}=t,{rasterInfo:r}=this,{hasMultidimensionalTranspose:n,multidimensionalInfo:o}=r;let{transposedVariableName:l}=t;const a=null!=o&&n&&(null!=s||(0,w.DY)(i));a&&!l&&(l=null!=i&&i.length>0?i[0].variableName??void 0:o.variables[0].name,t={...t,transposedVariableName:l}),t=this._getRequestOptionsWithSliceId(t);const{spatialReference:c,extent:u}=r,{datumTransformation:d}=t;let m=(0,R._I)(e,c,d);if(!u.intersects(m))return{location:m,value:null};if(null!=r.transform){const e=r.transform.inverseTransform(m);if(!r.nativeExtent.intersects(e))return{location:e,value:null};m=e}let y=0;const g=null!=l&&null!=o&&r.hasMultidimensionalTranspose;if("Function"===this.datasetFormat){const e=this.primaryRasters.rasters[0];if(g)return e.identify(m,t);const{pixelSize:s}=r,n=3,o=s.x*n/2,l=s.y*n/2,a=new p.A({xmin:m.x-o,xmax:m.x+o,ymin:m.y-l,ymax:m.y+l,spatialReference:c}),u={interpolation:"nearest",multidimensionalDefinition:i,sliceId:t.sliceId},{pixelBlock:h}=await e.fetchPixels(a,n,n,u),{pixelBlock:d}=await this.fetchPixels(a,n,n,u);if(null==h)return{location:m,value:null};const f=Math.floor(n*n*.5),y=!h.mask||h.mask[f]?h.pixels.map((e=>e[f])):null;let x;return null!=d&&(x=!d.mask||d.mask[f]?d.pixels.map((e=>e[f])):void 0),{location:m,value:y,processedValue:x,pyramidLevel:0}}if(!g)if(t.srcResolution)y=(0,R.t$)(t.srcResolution,r,this.ioConfig.sampling).pyramidLevel;else if(y=await this.computeBestPyramidLevelForLocation(e,t),null==y)return{location:m,value:null};const x=this.identifyPixelLocation(m,y,null,g);if(null===x)return{location:m,value:null};const{row:_,col:b,rowOffset:v,colOffset:I,blockWidth:S}=x,k=l??t.sliceId,A=M(this.rasterId,k),P=`${y}/${_}/${b}`;let z=T(A,null,P);null==z&&(z=this.fetchRawTile(y,_,b,t),F(A,null,P,z));const C=await z;if(!C?.pixels?.length)return{location:m,value:null};const J=v*S+I;return this._processIdentifyResult(C,{srcLocation:m,position:J,pyramidLevel:y,useTransposedTile:!!g,requestSomeSlices:a,identifyOptions:t})}async fetchPixels(e,t,i,s={}){e=(0,R.Ps)(e),s=this._getRequestOptionsWithSliceId(s);const{_hasNoneOrGCSShiftTransform:r}=this;if(s.requestRawData&&r)return this._fetchPixels(e,t,i,s);const n=(0,R.FT)(e.spatialReference),o=(0,R.OM)(e);if(null==n||0===o||1===o&&this._isGlobalWrappableSource&&r)return this._fetchPixels(e,t,i,s);if(o>=3)return{extent:e,pixelBlock:null};const l=[],{xmin:a,xmax:c}=e,u=Math.round(n/(c-a)*t),h=u-Math.round((n/2-a)/(c-a)*t);let d=0;const f=[];for(let r=0;r<=o;r++){const m=new p.A({xmin:0===r?a:-n/2,xmax:r===o?c-n*r:n/2,ymin:e.ymin,ymax:e.ymax,spatialReference:e.spatialReference}),y=0===r?u-h:r===o?t-d:u;d+=y,f.push(y);const g=s.disableWrapAround&&r>0?null:this._fetchPixels(m,y,i,s);l.push(g)}const m=(await Promise.all(l)).map((e=>e?.pixelBlock));let y=null;const g={width:t,height:i};return y=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:m,srcMosaicSize:g,destDimension:null,coefs:null,sampleSpacing:null,interpolation:"nearest",alignmentInfo:null,blockWidths:f},s)).pixelBlock:(0,C.z7)(m,g,{blockWidths:f}),{extent:e,srcExtent:(0,R._l)(e,this.rasterInfo.spatialReference,s.datumTransformation),pixelBlock:y}}async fetchRawPixels(e,t,i,s={}){t={x:Math.floor(t.x),y:Math.floor(t.y)};const r=await this._fetchRawTiles(e,t,i,s),{nativeExtent:n,nativePixelSize:o,storageInfo:l}=this.rasterInfo,a=2**e,c=o.x*a,u=o.y*a,h=new p.A({xmin:n.xmin+c*t.x,xmax:n.xmin+c*(t.x+i.width-1),ymin:n.ymax-u*(t.y+i.height-1),ymax:n.ymax-u*t.y,spatialReference:n.spatialReference});if(!r)return{extent:h,srcExtent:h,pixelBlock:null};const{pixelBlocks:d,mosaicSize:f}=r;if(1===d.length&&null!=d[0]&&d[0].width===i.width&&d[0].height===i.height)return{extent:h,srcExtent:h,pixelBlock:r.pixelBlocks[0]};const m=e>0?l.pyramidBlockWidth:l.blockWidth,y=e>0?l.pyramidBlockHeight:l.blockHeight,g={x:t.x%m,y:t.y%y};let x;return x=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:d,srcMosaicSize:f,destDimension:i,clipOffset:g,clipSize:i,coefs:null,sampleSpacing:null,interpolation:s.interpolation,alignmentInfo:null,blockWidths:null},s)).pixelBlock:(0,C.z7)(d,f,{clipOffset:g,clipSize:i}),{extent:h,srcExtent:h,pixelBlock:x}}fetchRawTile(e,t,i,s){throw new n.A("BaseRaster:read-not-implemented","fetchRawTile() is not implemented")}computeExtent(e){return(0,R._l)(this.rasterInfo.extent,e)}decodePixelBlock(e,t){return!this.rasterJobHandler||t.useCanvas?(0,z.D)(e,t):this.rasterJobHandler.decode({data:e,options:t})}async request(e,t,i=0){const{customFetchParameters:s}=this.ioConfig,{range:n,query:o,headers:l}=t;i=i??t.retryCount??this.ioConfig.retryCount;const a=n?{Range:`bytes=${n.from}-${n.to}`}:null;try{return await(0,r.A)(e,{...t,query:{...o,...s},headers:{...l,...a}})}catch(s){if(i>0)return i--,this.request(e,t,i);throw s}}getSliceIndex(e){const{multidimensionalInfo:t}=this.rasterInfo;return null==t||null==e||0===e.length?null:(0,w.NG)(e,t)}getTileExtentFromTileInfo(e,t,i,s){const r=s.lodAt(e);return this.getTileExtent({x:r.resolution,y:r.resolution},t,i,s.origin,s.spatialReference,s.size)}updateTileInfo(){const{storageInfo:e,spatialReference:t,extent:i,pixelSize:s}=this.rasterInfo,{pyramidResolutions:r}=e;if(!e.tileInfo){const n=[],o=e.maximumPyramidLevel||0;let l=(s.x+s.y)/2,a=1/.0254*96*l;for(let e=0;e<=o&&(n.unshift(new _.A({level:o-e,resolution:l,scale:a})),e!==o);e++)if(r){const t=(r[e].x+r[e].y)/2;a*=t/l,l=t}else l*=2,a*=2;const c=new f.A({x:i.xmin,y:i.ymax,spatialReference:t});e.tileInfo=new v.A({origin:c,size:[e.blockWidth,e.blockHeight],spatialReference:t,lods:n}),e.isVirtualTileInfo=!0}}createRemoteDatasetStorageInfo(e,t=512,i=512,s){const{width:r,height:n,nativeExtent:o,pixelSize:l,spatialReference:a}=e,c=new f.A({x:o.xmin,y:o.ymax,spatialReference:a});null==s&&(s=Math.max(0,Math.round(Math.log(Math.max(r,n))/Math.LN2-8)));const u=this.computeBlockBoundary(o,512,512,{x:o.xmin,y:o.ymax},[l],s);e.storageInfo=new b.A({blockWidth:t,blockHeight:i,pyramidBlockWidth:t,pyramidBlockHeight:i,origin:c,firstPyramidLevel:1,maximumPyramidLevel:s,blockBoundary:u})}async computeBestPyramidLevelForLocation(e,t={}){return 0}computeBlockBoundary(e,t,i,s,r,n=0,o=2){if(1===r.length&&n>0){r=[...r];let{x:e,y:t}=r[0];for(let i=0;i<n;i++)e*=o,t*=o,r.push({x:e,y:t})}const l=[],{x:a,y:c}=s;for(let s=0;s<r.length;s++){const{x:n,y:o}=r[s];l.push({minCol:Math.floor((e.xmin-a+.1*n)/t/n),maxCol:Math.floor((e.xmax-a-.1*n)/t/n),minRow:Math.floor((c-e.ymax+.1*o)/i/o),maxRow:Math.floor((c-e.ymin-.1*o)/i/o)})}return l}getPyramidPixelSize(e){const{nativePixelSize:t}=this.rasterInfo,{pyramidResolutions:i,pyramidScalingFactor:s}=this.rasterInfo.storageInfo;if(0===e)return t;if(null!=i&&i.length)return i[e-1];const r=s**e;return{x:t.x*r,y:t.y*r}}identifyPixelLocation(e,t,i,s){const{spatialReference:r,nativeExtent:n,storageInfo:o}=this.rasterInfo,{maximumPyramidLevel:l,origin:a,transposeInfo:c}=o,u=s&&null!=c?c.tileSize[0]:o.blockWidth,h=s&&null!=c?c.tileSize[1]:o.blockHeight,d=(0,R._I)(e,r,i);if(!n.intersects(d))return null;if(t<0||t>l)return null;const p=this.getPyramidPixelSize(t),{x:f,y:m}=p,y=(a.y-d.y)/m/h,g=(d.x-a.x)/f/u,x=Math.min(h-1,Math.floor((y-Math.floor(y))*h)),_=Math.min(u-1,Math.floor((g-Math.floor(g))*u));return{pyramidLevel:t,row:Math.floor(y),col:Math.floor(g),rowOffset:x,colOffset:_,blockWidth:u,srcLocation:d}}getTileExtent(e,t,i,s,r,n){const[o,l]=n,a=s.x+i*o*e.x,c=a+o*e.x,u=s.y-t*l*e.y,h=u-l*e.y;return new p.A({xmin:a,xmax:c,ymin:h,ymax:u,spatialReference:r})}getBlockWidthHeight(e){return{blockWidth:e>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,blockHeight:e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight}}isBlockOutside(e,t,i){const s=this.rasterInfo.storageInfo.blockBoundary[e];return!s||s.maxRow<t||s.maxCol<i||s.minRow>t||s.minCol>i}updateImageSpaceRasterInfo(e){const{pixelSize:t}=e,{width:i,height:s}=e,r=m.A.WebMercator;e.spatialReference=r,e.extent=e.nativeExtent=new p.A({xmin:-.5,ymax:.5,xmax:i-.5,ymin:.5-s,spatialReference:r}),e.isPseudoSpatialReference=!0,e.transform=null,e.pixelSize=new f.A({x:1,y:1,spatialReference:r});const{extent:n,storageInfo:o}=e;if(o){o.origin=new f.A({x:n.xmin,y:n.ymax,spatialReference:r});const{pyramidResolutions:i,tileInfo:s}=o;if(i&&i.forEach((e=>{e.x/=t.x,e.y/=t.y})),s){s.origin=o.origin;const t=(e.nativePixelSize.x+e.nativePixelSize.y)/2;s.lods.forEach(((e,i)=>{e.resolution=t*2**i,e.scale=96*e.resolution/.0254}))}}}async _fetchPixels(e,t,i,s={}){let r=(0,R.OM)(e);if(r>=2)return{extent:e,pixelBlock:null};const n=this._getSourceDataInfo(e,t,i,s),{pyramidLevel:o,srcResolution:l,srcExtent:a,srcWidth:c,srcHeight:u,ul:h}=n;if(0===c||0===u)return{extent:e,srcExtent:a,pixelBlock:null};const{rasterInfo:d}=this,p=d.transform,m="gcs-shift"===p?.type,y=null!=(0,R.FT)(e.spatialReference);!m&&y||(r=(0,R.OM)(n.srcExtent,m));const g=await this._fetchRawTiles(o,h,{width:c,height:u,wrapCount:r},s);if(!g)return{extent:e,srcExtent:a,pixelBlock:null};const x=d.storageInfo,_=o>0?x.pyramidBlockWidth:x.blockWidth,b=o>0?x.pyramidBlockHeight:x.blockHeight;let{x:v,y:w}=d.pixelSize;if(o>0){const{pyramidResolutions:e,pyramidScalingFactor:t}=x;if(null!=e&&e[o-1])({x:v,y:w}=e[o-1]);else{const e=t**o;v*=e,w*=e}}const I=d.spatialReference,S=new f.A({x:v,y:w,spatialReference:I}),M=_===c&&b===u&&h.x%_==0&&h.y%b==0,k=new f.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),T=!e.spatialReference.equals(I),F=I.isGeographic?1e-9:1e-4,{datumTransformation:A}=s;if(!T&&M&&1===g.pixelBlocks.length&&_===t&&b===i&&function(e,t,i){return Math.abs(e.x-t.x)<i&&Math.abs(e.y-t.y)<i}(l,k,F))return{extent:e,srcExtent:a,srcTilePixelSize:S,pixelBlock:g.pixelBlocks[0]};const P=y&&null!=(0,R.FT)(a.spatialReference)&&this._hasNoneOrGCSShiftTransform,z=s.requestProjectedLocalDirections&&this.rasterInfo.dataType.startsWith("vector");z&&!this.rasterJobHandler&&await(0,R.Hh)();const N=this.rasterJobHandler?await this.rasterJobHandler.getProjectionOffsetGrid({projectedExtent:e,srcBufferExtent:g.extent,pixelSize:k.toJSON(),datumTransformation:A,rasterTransform:p,hasWrapAround:r>0||P,isAdaptive:!1!==this.ioConfig.optimizeProjectionAccuracy,includeGCSGrid:z},s):(0,R.l0)({projectedExtent:e,srcBufferExtent:g.extent,pixelSize:k,datumTransformation:A,rasterTransform:p,hasWrapAround:r>0||P,isAdaptive:!1,includeGCSGrid:z});let O;const D=!s.requestRawData,B={rows:N.spacing[0],cols:N.spacing[1]},H=this._hasNoneOrGCSShiftTransform?this._getRasterTileAlignmentInfo(o,g.extent.xmin):void 0,{pixelBlocks:E,mosaicSize:Z,isPartiallyFilled:W}=g;let L=null;if(this.rasterJobHandler){const e=await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:E,srcMosaicSize:Z,destDimension:D?{width:t,height:i}:null,coefs:D?N.coefficients:null,sampleSpacing:D?B:null,projectDirections:z,gcsGrid:z?N.gcsGrid:null,isUV:"vector-uv"===this.rasterInfo.dataType,interpolation:s.interpolation,alignmentInfo:H,blockWidths:null},s);({pixelBlock:O,localNorthDirections:L}=e)}else{const e=(0,C.z7)(E,Z,{alignmentInfo:H});O=D?(0,C.$i)(e,{width:t,height:i},N.coefficients,B,s.interpolation):e,z&&N.gcsGrid&&(L=(0,C.QF)({width:t,height:i},N.gcsGrid),O=(0,J.Y2)(O,this.rasterInfo.dataType,L))}return s.requestRawData||z?{extent:e,srcExtent:a,srcTilePixelSize:S,pixelBlock:O,transformGrid:N,localNorthDirections:L,isPartiallyFilled:W}:{extent:e,srcExtent:a,srcTilePixelSize:S,pixelBlock:O}}async _fetchRawTiles(e,t,i,s){const{origin:r,blockBoundary:n}=this.rasterInfo.storageInfo,{blockWidth:o,blockHeight:l}=this.getBlockWidthHeight(e);let{x:a,y:c}=t,{width:u,height:h,wrapCount:d}=i;const f=this._getRasterTileAlignmentInfo(e,0);s.buffer&&(a-=s.buffer.cols,c-=s.buffer.rows,u+=2*s.buffer.cols,h+=2*s.buffer.rows);let m=0,y=0,g=0;d&&null!=f&&(({worldColumnCountFromOrigin:y,originColumnOffset:g,rightPadding:m}=f),y*f.blockWidth-m>=a+u&&(m=0));const x=Math.floor(a/o),_=Math.floor(c/l),b=Math.floor((a+u+m-1)/o),v=Math.floor((c+h+m-1)/l),w=n[e];if(!w)return null;const{minRow:R,minCol:I,maxCol:S,maxRow:M}=w;if(0===d&&(v<R||b<I||_>M||x>S))return null;const k=new Array;let T=!1;const F=null==this.ioConfig.allowPartialFill?s.allowPartialFill:this.ioConfig.allowPartialFill;for(let t=_;t<=v;t++)for(let i=x;i<=b;i++){let r=i;if(!s.disableWrapAround&&d&&null!=f&&y<=i&&(r=i-y-g),t>=R&&r>=I&&M>=t&&S>=r){const i=this._tileFetchQueue.push({pyramidLevel:e,row:t,col:r,options:s},{signal:s.signal});F?k.push(new Promise((e=>{i.then((t=>e(t))).catch((()=>{T=!0,e(null)}))}))):k.push(i)}else k.push(Promise.resolve(null))}if(0===k.length)return null;const A=await Promise.all(k),P={height:(v-_+1)*l,width:(b-x+1)*o},{spatialReference:z}=this.rasterInfo,C=this.getPyramidPixelSize(e),{x:J,y:N}=C;return{extent:new p.A({xmin:r.x+x*o*J,xmax:r.x+(b+1)*o*J,ymin:r.y-(v+1)*l*N,ymax:r.y-_*l*N,spatialReference:z}),pixelBlocks:A,mosaicSize:P,isPartiallyFilled:T}}_fetchRawTile(e,t,i,s){const r=this.rasterInfo.storageInfo.blockBoundary[e];if(!r)return Promise.resolve(null);const{minRow:n,minCol:o,maxCol:l,maxRow:c}=r;if(t<n||i<o||t>c||i>l)return Promise.resolve(null);const u=M(this.rasterId,s.sliceId),h=`${e}/${t}/${i}`;let d=T(u,s.registryId,h);if(null==d){const r=new AbortController;d=this.fetchRawTile(e,t,i,{...s,signal:r.signal}),F(u,s.registryId,h,d,r),d.catch((()=>A(u,s.registryId,h)))}return s.signal&&(0,a.u7)(s,(()=>{k(u,s.registryId,h)})),d}_computeMagDirValues(e){const{bandCount:t,dataType:i}=this.rasterInfo;if((2!==t||"vector-magdir"!==i)&&"vector-uv"!==i||2!==e?.length||!e[0]?.length)return null;const s=e[0].length;if("vector-magdir"===i){const t=e[1].map((e=>(e+360)%360));return[e[0],t]}const[r,n]=e,o=[],l=[];for(let e=0;e<s;e++){const[t,i]=(0,J.Lu)([r[e],n[e]]);o.push(t),l.push(i)}return[o,l]}_getRasterTileAlignmentInfo(e,t){return null==this._rasterTileAlignmentInfo&&(this._rasterTileAlignmentInfo=(0,R.DO)(this.rasterInfo)),null==this._rasterTileAlignmentInfo.pyramidsInfo?null:{startX:t,halfWorldWidth:this._rasterTileAlignmentInfo.halfWorldWidth,hasGCSSShiftTransform:this._rasterTileAlignmentInfo.hasGCSSShiftTransform,...this._rasterTileAlignmentInfo.pyramidsInfo[e]}}_getSourceDataInfo(e,t,i,s={}){const r={datumTransformation:s.datumTransformation,pyramidLevel:0,pyramidResolution:null,srcExtent:null,srcHeight:0,srcResolution:null,srcWidth:0,ul:{x:0,y:0}};s.srcResolution&&(r.srcResolution=s.srcResolution,this._updateSourceDataInfo(e,r));const n=this.rasterInfo.storageInfo.maximumPyramidLevel||0,{srcWidth:o,srcHeight:l,pyramidLevel:a}=r,c=o/t,u=l/i,h=a<n&&c*u>=16,d=a===n&&this._requireTooManySrcTiles(o,l,t,i);if(h||d||0===o||0===l){const o=new f.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference});let l=(0,R.Wo)(o,this.rasterInfo.spatialReference,e,r.datumTransformation);const d=!l||s.srcResolution&&l.x+l.y<s.srcResolution.x+s.srcResolution.y;if(h&&s.srcResolution&&d){const e=Math.round(Math.log(Math.max(c,u))/Math.LN2)-1;if(n-a+3>=e){const t=2**e;l={x:s.srcResolution.x*t,y:s.srcResolution.y*t}}}l&&(r.srcResolution=l,this._updateSourceDataInfo(e,r))}return this._requireTooManySrcTiles(r.srcWidth,r.srcHeight,t,i)&&(r.srcWidth=0,r.srcHeight=0),r}_requireTooManySrcTiles(e,t,i,s){const{tileInfo:r}=this.rasterInfo.storageInfo,n=e/i,o=t/s;return Math.ceil(e/r.size[0])*Math.ceil(t/r.size[1])>=256*Math.max(1,(i+s)/1024)||n>8||o>8}_updateSourceDataInfo(e,t){t.srcWidth=0,t.srcHeight=0;const{rasterInfo:i}=this,s=i.spatialReference,{srcResolution:r,datumTransformation:n}=t,{pyramidLevel:o,pyramidResolution:l,excessiveReading:a}=(0,R.t$)(r,i,this.ioConfig.sampling);if(a)return;let c=t.srcExtent||(0,R._l)(e,s,n);if(null==c)return;const u=i.transform;u&&(c=u.inverseTransform(c)),t.srcExtent=c;const{x:h,y:d}=i.storageInfo.origin,p=Math.floor((c.xmin-h)/l.x+.1),f=Math.floor((d-c.ymax)/l.y+.1),m=Math.floor((c.xmax-h)/l.x-.1),y=Math.floor((d-c.ymin)/l.y-.1),g=c.width<.1*l.x?0:m-p+1,x=c.height<.1*l.y?0:y-f+1;t.pyramidLevel=o,t.pyramidResolution=l,t.srcWidth=g,t.srcHeight=x,t.ul={x:p,y:f}}_getRequestOptionsWithSliceId(e){return null!=this.rasterInfo.multidimensionalInfo&&null==e.sliceId&&(e={...e,sliceId:this.getSliceIndex(e.multidimensionalDefinition)}),e}_processIdentifyResult(e,t){const{srcLocation:i,position:s,pyramidLevel:r,useTransposedTile:n}=t,o=e.pixels[0].length/e.width/e.height;if(e.mask&&!e.mask[s])return{location:i,value:null};const{multidimensionalInfo:l}=this.rasterInfo;if(null==l||!n){const t=e.pixels.map((e=>e[s])),n={location:i,value:t,pyramidLevel:r},o=this._computeMagDirValues(t.map((e=>[e])));return o?.length&&(n.magdirValue=o.map((e=>e[0]))),n}let a=e.pixels.map((e=>e.slice(s*o,s*o+o))),c=this._computeMagDirValues(a);const{requestSomeSlices:u,identifyOptions:h}=t;let d=(0,w.QW)(l,h.transposedVariableName);if(u){const e=(0,w.xx)(d,h.multidimensionalDefinition,h.timeExtent);a=a.map((t=>e.map((e=>t[e])))),c=c?.map((t=>e.map((e=>t[e])))),d=e.map((e=>d[e]))}const p=e.noDataValues||this.rasterInfo.noDataValue,f={pixels:a,pixelType:e.pixelType};let m;return null!=p&&((0,P.Sp)(f,p),m=f.mask),{location:i,value:null,dataSeries:d.map(((e,t)=>{const i={value:0===m?.[t]?null:a.map((e=>e[t])),multidimensionalDefinition:e.multidimensionalDefinition.map((e=>new x.A({...e,isSlice:!0})))};return c?.length&&(i.magdirValue=[c[0][t],c[1][t]]),i})),pyramidLevel:r}}};(0,s._)([(0,u.MZ)()],O.prototype,"_rasterTileAlignmentInfo",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"_tileFetchQueue",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],O.prototype,"_isGlobalWrappableSource",null),(0,s._)([(0,u.MZ)({readOnly:!0})],O.prototype,"_hasNoneOrGCSShiftTransform",null),(0,s._)([(0,u.MZ)()],O.prototype,"_openPromise",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"rasterJobHandler",null),(0,s._)([(0,u.MZ)({readOnly:!0})],O.prototype,"rasterId",null),(0,s._)([(0,u.MZ)(g.OZ)],O.prototype,"url",null),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],O.prototype,"datasetName",void 0),(0,s._)([(0,u.MZ)({type:String,json:{write:!0}})],O.prototype,"datasetFormat",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"hasUniqueSourceStorageInfo",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"rasterInfo",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"ioConfig",void 0),(0,s._)([(0,u.MZ)()],O.prototype,"sourceJSON",void 0),O=(0,s._)([(0,d.$)("esri.layers.support.rasterDatasets.BaseRaster")],O);const D=O},84169:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(90237),r=i(49186),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),l=i(39829),a=i(4916),c=i(77359),u=i(28435),h=i(70834),d=i(22671);let p=class extends a.A{constructor(){super(...arguments),this.datasetFormat="Function",this.tileType="Raster",this.rasterFunction=null,this._clippingGeometry=new Map}async fetchPixels(e,t,i,s={}){const{rasters:r,rasterIds:n}=this.primaryRasters;let o=!1;const{interpolation:l}=s,a=this.rasterFunction.flatWebGLFunctionChain?.hasFocalFunction;!s.requestRawData&&a&&(o=1===r.length&&!s.skipRasterFunction,s={...s,interpolation:"bilinear",requestRawData:o});const h=r.map((r=>r.fetchPixels(e,t,i,s))),d=await Promise.all(h),p=d.map((e=>e.pixelBlock)),f=o||s.requestRawData?d.map((e=>e.srcTilePixelSize)):null;if(s.skipRasterFunction||p.every((e=>null==e)))return d[0];const m=d.find((e=>null!=e.pixelBlock))?.extent??e;let y=this.rasterJobHandler?await this.rasterJobHandler.process({extent:m,primaryPixelBlocks:p,primaryPixelSizes:f,primaryRasterIds:n}):this.rasterFunction.process({extent:m,primaryPixelBlocks:p,primaryPixelSizes:f,primaryRasterIds:n});const{transformGrid:g}=d[0];if(!o||null==y||null==g){const e=s.noClip?null:this.getClippingGeometry(m.spatialReference);return s.noClip||s.requestRawData||null==y||!e||(y=await(0,c.$Q)(y,m,e)),{...d[0],pixelBlock:y}}const x={rows:g.spacing[0],cols:g.spacing[1]};let _;_=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:[y],srcMosaicSize:{width:y.width,height:y.height},destDimension:{width:t,height:i},coefs:g.coefficients,sampleSpacing:x,projectDirections:!1,gcsGrid:null,isUV:!1,interpolation:l,alignmentInfo:void 0,blockWidths:null},s)).pixelBlock:(0,u.$i)(y,{width:t,height:i},g.coefficients,x,l);const b=s.noClip?null:this.getClippingGeometry(e.spatialReference);return s.noClip||s.requestRawData||null==_||null==b||(_=await(0,c.$Q)(_,e,b)),{extent:e,srcExtent:d[0].srcExtent,pixelBlock:_}}getClippingGeometry(e){const t=this._clippingGeometry.get("0");if(!e||!t)return t;const i=function(e){return String(e.wkid??e.wkt??e.wkt2)}(e);let s=this._clippingGeometry.get(i);return null!=s||(s=e.equals(t.spatialReference)?t:(0,h.uk)(t,e),this._clippingGeometry.set(i,s)),s}async _open(e){const{rasterFunction:t}=this;this.primaryRasters?.rasters?.length?t.sourceRasters=this.primaryRasters.rasters:(this.primaryRasters=t.getPrimaryRasters(),this.rasterJobHandler&&this.primaryRasters.rasters?.forEach((e=>e.rasterJobHandler=this.rasterJobHandler)));const{rasters:i,rasterIds:s}=this.primaryRasters,n=i.map((t=>t.rasterInfo?void 0:t.open(e)));await Promise.all(n);const o=i.map((({rasterInfo:e})=>e)),l=t.bind({rasterInfos:o,rasterIds:s});if(t.rawSourceRasterInfos=o,!l.success||0===o.length)throw new r.A("raster-function:open",`cannot bind the function: ${l.error??""}`);const a="Table"===t.functionName?t:t.functionArguments?.raster;"Table"===a?.functionName&&(t.rasterInfo.attributeTable=d.A.fromJSON(a.functionArguments.attributeTableAsRecordSet)),await this.syncJobHandler();const c=o[0];this.hasUniqueSourceStorageInfo=1===o.length||o.slice(1).every((e=>function(e,t){const{storageInfo:i,pixelSize:s,spatialReference:r,extent:n}=e,{storageInfo:o,pixelSize:l,spatialReference:a,extent:c}=t;return s.x===l.x&&s.y===l.y&&r.equals(a)&&n.equals(c)&&i.blockHeight===o.blockHeight&&i.blockWidth===o.blockWidth&&i.maximumPyramidLevel===o.maximumPyramidLevel}(e,c))),this.set("sourceJSON",i[0].sourceJSON),this.set("rasterInfo",t.rasterInfo),await this._updateClipGeometry()}async syncJobHandler(){return this.rasterJobHandler?.updateRasterFunction(this.rasterFunction)}async _updateClipGeometry(){const e=this.rasterFunction.getClippingGeometries()[0];let t=e?.clippingGeometry;if(t&&"inside"===e.clippingType){const{extent:e}=this.rasterInfo,{difference:s,densify:r}=await Promise.all([i.e(9930),i.e(3209)]).then(i.bind(i,33209));let n=r(l.A.fromExtent(e),2*(e.width+e.height)/40);n=(0,h.uk)(n,t.spatialReference),t=s(n,t)}this._clippingGeometry.clear(),t&&this._clippingGeometry.set("0",t)}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"datasetFormat",void 0),(0,s._)([(0,n.MZ)()],p.prototype,"tileType",void 0),(0,s._)([(0,n.MZ)()],p.prototype,"rasterFunction",void 0),(0,s._)([(0,n.MZ)()],p.prototype,"primaryRasters",void 0),p=(0,s._)([(0,o.$)("esri.layers.support.rasterDatasets.FunctionRaster")],p);const f=p},50103:(e,t,i)=>{function s(e,t){if(!e||!t)return[];let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const r=[];if(t){const n=s(e,i);for(let e=0;e<n.length;e++)s(n[e],t).forEach((e=>r.push(e)));return r}const n=e.getElementsByTagNameNS("*",i);if(!n||0===n.length)return[];for(let e=0;e<n.length;e++)r.push(n[e]||n.item(e));return r}function r(e,t){if(!e||!t)return null;let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const n=s(e,i);return n.length>0?t?r(n[0],t):n[0]:null}function n(e,t=null){const i=t?r(e,t):e;let s;return i?(s=i.textContent||i.nodeValue,s?s.trim():null):null}function o(e,t){const i=s(e,t),r=[];let n;for(let e=0;e<i.length;e++)n=i[e].textContent||i[e].nodeValue,n&&(n=n.trim(),""!==n&&r.push(n));return r}function l(e,t=null){const i=n(e,t);return i?.split(" ").map((e=>Number(e)))??[]}function a(e,t){return o(e,t).map((e=>Number(e)))}function c(e,t){const i=n(e,t);return Number(i)}function u(e,t){const i=e?.nodeName?.toLowerCase(),s=t.toLowerCase();return i.slice(i.lastIndexOf(":")+1)===s}function h(e){return e.nodeName.slice(e.nodeName.lastIndexOf(":")+1)}i.d(t,{Dy:()=>o,IC:()=>s,Ui:()=>a,V6:()=>r,g7:()=>u,mX:()=>n,pN:()=>l,v7:()=>c,vv:()=>h})}}]);