@arcgis/core 5.0.0-next.45 → 5.0.0-next.46

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 (273) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/063045ac5553e91c0c4c.js +1 -0
  3. package/assets/esri/core/workers/chunks/{20ad34f9d45c64392022.js → 08c1ea29678da27136f3.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{5dc2f2e28c30386efadf.js → 10094eb2b94e98dd4a8a.js} +1 -1
  5. package/assets/esri/core/workers/chunks/169be08394c5e7703628.js +1 -0
  6. package/assets/esri/core/workers/chunks/1a6f3531ef3d671e0289.js +1 -0
  7. package/assets/esri/core/workers/chunks/{b809d499ff050976d9ed.js → 1c58064ea80e6a4a4a3b.js} +1 -1
  8. package/assets/esri/core/workers/chunks/1c816aff8613d1e4bf38.js +1 -0
  9. package/assets/esri/core/workers/chunks/{ee67c8a7c1f8b482cd99.js → 1ced78750c61600b2d4e.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{98175b454e807b1a3c5f.js → 1e152a34e368bd810a0f.js} +1 -1
  11. package/assets/esri/core/workers/chunks/1e17ad6cdffa5016a3db.js +1 -0
  12. package/assets/esri/core/workers/chunks/1e2d42e9984ed3437ba2.js +1 -0
  13. package/assets/esri/core/workers/chunks/2008b22f76071a2dde4e.js +1 -0
  14. package/assets/esri/core/workers/chunks/2107c93d1fe87f3b8dfa.js +1 -0
  15. package/assets/esri/core/workers/chunks/2209550b6510e25da375.js +1 -0
  16. package/assets/esri/core/workers/chunks/229e1ed4282005aa0b83.js +1 -0
  17. package/assets/esri/core/workers/chunks/22b8eaa6afab0e5ffc47.js +1 -0
  18. package/assets/esri/core/workers/chunks/{1c0fb4795a52204882a8.js → 2550d2ba935cfdf30236.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{49e6219dd08cb6c27023.js → 273ac1066095d63d6a6f.js} +1 -1
  20. package/assets/esri/core/workers/chunks/2e2867bc66c94aba7dc7.js +1 -0
  21. package/assets/esri/core/workers/chunks/{cda5c95fd49b8901f7d4.js → 3298e96d3f2e49e338d2.js} +1 -1
  22. package/assets/esri/core/workers/chunks/34613b288cf174983f8b.js +1 -0
  23. package/assets/esri/core/workers/chunks/{e5baa30944061418cb13.js → 35f086a2ae0585348ae6.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{f441fc74451330384fb0.js → 37ea150dec5e491f691e.js} +1 -1
  25. package/assets/esri/core/workers/chunks/3c94db7ecdcd38eeb1b1.js +1 -0
  26. package/assets/esri/core/workers/chunks/3f7749f06ae54a4437d9.js +1 -0
  27. package/assets/esri/core/workers/chunks/40a722933af28823953b.js +1 -0
  28. package/assets/esri/core/workers/chunks/{7aa730e5ac7b268e3c98.js → 424daef7b5dec1b99aba.js} +1 -1
  29. package/assets/esri/core/workers/chunks/456684b1c1417ed0e611.js +1 -0
  30. package/assets/esri/core/workers/chunks/{d14e75b160aa432233c6.js → 461093ce28ceadd7853d.js} +1 -1
  31. package/assets/esri/core/workers/chunks/4a48b8ec5f3f2fd139b5.js +1 -0
  32. package/assets/esri/core/workers/chunks/4b084f985bc4100e7aec.js +1 -0
  33. package/assets/esri/core/workers/chunks/4b1de1fcd13677b615a8.js +1 -0
  34. package/assets/esri/core/workers/chunks/{31186e83fe009aa0fd36.js → 4d933de84afb2e3b7d18.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{83aa39fbb1fad3b9d143.js → 4ff771942531fb2755c4.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{e0017c6739d2532793e6.js → 513a4ef960e27500f986.js} +1 -1
  37. package/assets/esri/core/workers/chunks/56b693baa376bb990925.js +1 -0
  38. package/assets/esri/core/workers/chunks/{1d4ea8db272655c0608c.js → 57fd5e1260269002d18a.js} +1 -1
  39. package/assets/esri/core/workers/chunks/5fe40bb0e9ab333f6854.js +1 -0
  40. package/assets/esri/core/workers/chunks/{b56c07c0b43cb1999070.js → 60362c5651ef41fa7e5f.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{e8a9971c8354569cb81d.js → 609919428305d8c8c243.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{ab88577987cf2fe1cb32.js → 61373d2fa7e7638d3395.js} +1 -1
  43. package/assets/esri/core/workers/chunks/6202922b1c2637e9aaa5.js +1 -0
  44. package/assets/esri/core/workers/chunks/633368ae6fbb46373328.js +1 -0
  45. package/assets/esri/core/workers/chunks/6d702cb26cef46a76963.js +1 -0
  46. package/assets/esri/core/workers/chunks/{35272810c2ed04eb403d.js → 6f3943bebe2d5f4994f7.js} +1 -1
  47. package/assets/esri/core/workers/chunks/708aba69a1870ea41a61.js +1 -0
  48. package/assets/esri/core/workers/chunks/{7ba13b52fce1060fbb2a.js → 7147fc7502b385b302b2.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{9ba8a2e1c0fb4e1efc7c.js → 7364fb5e99933533890d.js} +1 -1
  50. package/assets/esri/core/workers/chunks/74b1028e95f7cfff387b.js +1 -0
  51. package/assets/esri/core/workers/chunks/78fccea3445fb2f9120a.js +1 -0
  52. package/assets/esri/core/workers/chunks/7ba31425caa404f86424.js +1 -0
  53. package/assets/esri/core/workers/chunks/{040f3d8e1099c4843390.js → 81a60dfa600b690098f9.js} +1 -1
  54. package/assets/esri/core/workers/chunks/833fd2bc42c5cb459084.js +1 -0
  55. package/assets/esri/core/workers/chunks/{75643711d9585ee26a15.js → 83c8e5a92d8d6193cb32.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{e537e1d37f3fcb14fce2.js → 870022661376442411e4.js} +1 -1
  57. package/assets/esri/core/workers/chunks/898ab7db220e81e921c6.js +1 -0
  58. package/assets/esri/core/workers/chunks/{31b074ae2162a3508d2a.js → 8b578ffc3a83089aa782.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{48c8ef4170e803a564d6.js → 8b75861196d1ce5cba63.js} +1 -1
  60. package/assets/esri/core/workers/chunks/8be61e13530fd0dc2fd1.js +1 -0
  61. package/assets/esri/core/workers/chunks/90b8ccee883738917a6d.js +1 -0
  62. package/assets/esri/core/workers/chunks/90bc9c299ae0e8b8b5e5.js +1 -0
  63. package/assets/esri/core/workers/chunks/91d9ade78854f40a962d.js +1 -0
  64. package/assets/esri/core/workers/chunks/{74881340e040bfd0580f.js → 934bc1028b287f8df4aa.js} +1 -1
  65. package/assets/esri/core/workers/chunks/96055de47831e59a28bf.js +1 -0
  66. package/assets/esri/core/workers/chunks/963ba863e0f87abfca25.js +1 -0
  67. package/assets/esri/core/workers/chunks/9aa8d60483ad905fe13b.js +1 -0
  68. package/assets/esri/core/workers/chunks/9fed9946241bb2a5cfa4.js +1 -0
  69. package/assets/esri/core/workers/chunks/a2662e98857f0abf8e82.js +1 -0
  70. package/assets/esri/core/workers/chunks/a5a9b0a35849b9f2e86d.js +1 -0
  71. package/assets/esri/core/workers/chunks/a60006c9ccf6817fc0d2.js +1 -0
  72. package/assets/esri/core/workers/chunks/a627b7eb94b7fca33210.js +1 -0
  73. package/assets/esri/core/workers/chunks/a651dc3b8f1fc1ab34cc.js +1 -0
  74. package/assets/esri/core/workers/chunks/{bf5f9da0837ed09729c6.js → aab93e885b6c7c6aa76e.js} +1 -1
  75. package/assets/esri/core/workers/chunks/adfe28c1c1619cdd3ca1.js +1019 -0
  76. package/assets/esri/core/workers/chunks/b88dc7d8ae105747e6a4.js +1 -0
  77. package/assets/esri/core/workers/chunks/b90c786dd474ea1a409c.js +1 -0
  78. package/assets/esri/core/workers/chunks/b92e9e5df8154a128982.js +1 -0
  79. package/assets/esri/core/workers/chunks/{9a855a10798348a21bab.js → bff814d34b38ec80c44d.js} +1 -1
  80. package/assets/esri/core/workers/chunks/c36d699a75b6e8fb93eb.js +1 -0
  81. package/assets/esri/core/workers/chunks/c50fdf723f2d4316862e.js +1 -0
  82. package/assets/esri/core/workers/chunks/{9461cc37ab3397265270.js → c5e8ff4721b15ac3c6eb.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{4cda42b94e9cb58dd372.js → ca61077e0a598654f33f.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{61a9ffd4cf07d8bb7a9b.js → ca81be5bdb88ef557bf3.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{ca1c65eb7f5900c60170.js → cd8fec3500e6503ae020.js} +1 -1
  86. package/assets/esri/core/workers/chunks/ce90e8489143228262e7.js +1 -0
  87. package/assets/esri/core/workers/chunks/d0320ca67abca4f8b0d2.js +1 -0
  88. package/assets/esri/core/workers/chunks/{4b6a44c6265c8959abd8.js → d3db7244fac7398cc700.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{19820cddba13a3585c0b.js → d561624ddb9388732b25.js} +1 -1
  90. package/assets/esri/core/workers/chunks/d65ca3b8fccae8c3c3fa.js +1 -0
  91. package/assets/esri/core/workers/chunks/{630eba99f48ea79a9560.js → d705410c369bd03b1875.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{9c7682b300b877f60095.js → d76513a6260d9ec4ea25.js} +1 -1
  93. package/assets/esri/core/workers/chunks/d82e17522ed946c2d809.js +1 -0
  94. package/assets/esri/core/workers/chunks/d8dc130ea559be1f68c6.js +1 -0
  95. package/assets/esri/core/workers/chunks/{768ae52b4e5c3e571ef5.js → dc29cb16704e2e4d0a46.js} +1 -1
  96. package/assets/esri/core/workers/chunks/e8c2e2fbe9cef4c8a8c6.js +1 -0
  97. package/assets/esri/core/workers/chunks/{3f33708eb39c7169a226.js → f2ba50eb29f93df885d6.js} +1 -1
  98. package/assets/esri/core/workers/chunks/{6e5d41f51572e3e7cf92.js → f7163048146ddaedfc36.js} +1 -1
  99. package/assets/esri/core/workers/chunks/fdaa10a588db394e2f65.js +1 -0
  100. package/chunks/Laserlines.glsl.js +1 -1
  101. package/chunks/boundedPlane.js +1 -1
  102. package/chunks/cameraUtilsSpherical.js +1 -1
  103. package/chunks/vec32.js +1 -1
  104. package/config.js +1 -1
  105. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  106. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  107. package/geometry/FlatGeometry.js +1 -1
  108. package/geometry/operators/support/apiConverter.js +1 -1
  109. package/geometry/operators/support/jsonConverter.js +1 -1
  110. package/geometry/support/curves/circleUtils.js +1 -1
  111. package/geometry/support/lineSegment.js +1 -1
  112. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  113. package/geometry/support/meshUtils/merge.js +1 -1
  114. package/geometry/support/sphere.js +1 -1
  115. package/interfaces.d.ts +122 -14
  116. package/kernel.js +1 -1
  117. package/layers/VoxelWasmPerSceneView.js +1 -1
  118. package/layers/orientedImagery/transformations/worldToImage.js +1 -1
  119. package/layers/support/tiles3DUtils.js +1 -1
  120. package/layers/voxel/VoxelVolume.js +1 -1
  121. package/package.json +1 -1
  122. package/support/revision.js +1 -1
  123. package/symbols/cim/effects/EffectSuppress.js +1 -1
  124. package/views/2d/interactive/SegmentLabels2D.js +1 -1
  125. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  126. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  127. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  128. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  129. package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
  130. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  131. package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
  132. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  133. package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
  134. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  135. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  136. package/views/3d/animation/pointToPoint/Camera.js +1 -1
  137. package/views/3d/camera/constraintUtils/distance.js +1 -1
  138. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  139. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  140. package/views/3d/environment/CloudsParameters.js +1 -1
  141. package/views/3d/environment/EnvironmentManager.js +1 -1
  142. package/views/3d/environment/MarsAtmosphere.js +1 -1
  143. package/views/3d/glTF/internal/Resource.js +1 -1
  144. package/views/3d/glTF/loader.js +1 -1
  145. package/views/3d/interactive/SegmentLabels3D.js +1 -1
  146. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  147. package/views/3d/interactive/editingTools/media/MediaElementManipulator3D.js +1 -1
  148. package/views/3d/interactive/editingTools/reshape/edgeOffsetUtils.js +1 -1
  149. package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
  150. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  151. package/views/3d/layers/I3SMeshView3D.js +1 -1
  152. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  153. package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
  154. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  155. package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
  156. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  157. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  158. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  159. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  160. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  161. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  162. package/views/3d/state/Frustum.js +1 -1
  163. package/views/3d/state/controllers/FovController.js +1 -1
  164. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  165. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  166. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  167. package/views/3d/support/cameraUtils.js +1 -1
  168. package/views/3d/support/intersectionUtils.js +1 -1
  169. package/views/3d/support/orientedBoundingBox.js +1 -1
  170. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  171. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  172. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  173. package/views/3d/support/viewpointUtils.js +1 -1
  174. package/views/3d/terrain/OverlayManager.js +1 -1
  175. package/views/3d/terrain/PatchRenderData.js +1 -1
  176. package/views/3d/terrain/SphericalPatch.js +1 -1
  177. package/views/3d/terrain/Tile.js +1 -1
  178. package/views/3d/webgl/RenderCamera.js +1 -1
  179. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  180. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  181. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  182. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  183. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  184. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  185. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  186. package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
  187. package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
  188. package/views/3d/webgl-engine/lib/triangleIntersectionUtils.js +1 -1
  189. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  190. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  191. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  192. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  193. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  194. package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
  195. package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +1 -1
  196. package/views/draw/support/Reshape.js +1 -1
  197. package/views/interactive/GraphicManipulator.js +1 -1
  198. package/views/interactive/coordinateHelper.js +1 -1
  199. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  200. package/views/interactive/sketch/constraints.js +1 -1
  201. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  202. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
  203. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  204. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  205. package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
  206. package/views/support/euclideanAreaMeasurementUtils.js +1 -1
  207. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  208. package/views/support/geometry3dUtils.js +1 -1
  209. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  210. package/widgets/BatchAttributeForm/css.js +1 -1
  211. package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.d.ts +4 -0
  212. package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.js +5 -0
  213. package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +4 -0
  214. package/widgets/BatchAttributeForm/inputs/TextElementInput.js +5 -0
  215. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  216. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  217. package/widgets/BatchAttributeForm/templates/GroupElementTemplate.js +1 -1
  218. package/widgets/BatchAttributeForm/templates/TextElementTemplate.js +5 -0
  219. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  220. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  221. package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
  222. package/widgets/BatchAttributeForm.js +1 -1
  223. package/widgets/FeatureForm/TextElementInput.d.ts +2 -2
  224. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  225. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  226. package/widgets/PanoramicViewer/PanoramicZoomManager.js +1 -1
  227. package/widgets/PanoramicViewer/support/PanoramicMedia.js +5 -0
  228. package/widgets/PanoramicViewer/support/PanoramicMediaCollection.js +5 -0
  229. package/widgets/PanoramicViewer/support/PanoramicMediaError.js +5 -0
  230. package/widgets/PanoramicViewer/utils.js +1 -1
  231. package/widgets/PanoramicViewer.js +1 -1
  232. package/assets/esri/core/workers/chunks/04a0685ee53ef74883aa.js +0 -1
  233. package/assets/esri/core/workers/chunks/1e0e7cef7ef947894bbe.js +0 -1019
  234. package/assets/esri/core/workers/chunks/20988e116f3723228f36.js +0 -1
  235. package/assets/esri/core/workers/chunks/2613e482450b57f2d4f5.js +0 -1
  236. package/assets/esri/core/workers/chunks/274f2b5e6dbc58505142.js +0 -1
  237. package/assets/esri/core/workers/chunks/27dfbe3d903b95d4c67a.js +0 -1
  238. package/assets/esri/core/workers/chunks/28a5a7c6b3d6902146f6.js +0 -1
  239. package/assets/esri/core/workers/chunks/2c4218306747f5d15575.js +0 -1
  240. package/assets/esri/core/workers/chunks/2db7a7607657f1d669f7.js +0 -1
  241. package/assets/esri/core/workers/chunks/3767617c0dfc7d801441.js +0 -1
  242. package/assets/esri/core/workers/chunks/44b6b7418cbf7f778bef.js +0 -1
  243. package/assets/esri/core/workers/chunks/4675ed3ca3e0104d00bf.js +0 -1
  244. package/assets/esri/core/workers/chunks/4df7cc3477bc46fc39af.js +0 -1
  245. package/assets/esri/core/workers/chunks/538ddb267aa328814865.js +0 -1
  246. package/assets/esri/core/workers/chunks/555a0ea44ba77819d493.js +0 -1
  247. package/assets/esri/core/workers/chunks/55818fe7a7aa1e5c8bbd.js +0 -1
  248. package/assets/esri/core/workers/chunks/5f781ef46ce7c4048c2f.js +0 -1
  249. package/assets/esri/core/workers/chunks/60f2de8dd8876bfd715a.js +0 -1
  250. package/assets/esri/core/workers/chunks/679088064420a906aa7f.js +0 -1
  251. package/assets/esri/core/workers/chunks/706423d801fa9cbf2e90.js +0 -1
  252. package/assets/esri/core/workers/chunks/71dd80231ea656a6380c.js +0 -1
  253. package/assets/esri/core/workers/chunks/725819839434c59102f3.js +0 -1
  254. package/assets/esri/core/workers/chunks/72cebf18da5ec5eeb666.js +0 -1
  255. package/assets/esri/core/workers/chunks/768d9b6eaba7bfa18dde.js +0 -1
  256. package/assets/esri/core/workers/chunks/77b45957cfe42523c1c8.js +0 -1
  257. package/assets/esri/core/workers/chunks/852de585a72d902344a6.js +0 -1
  258. package/assets/esri/core/workers/chunks/871dd5e1f016a04b8d98.js +0 -1
  259. package/assets/esri/core/workers/chunks/892c417f5130b003889d.js +0 -1
  260. package/assets/esri/core/workers/chunks/907083c427d7fb4354e9.js +0 -1
  261. package/assets/esri/core/workers/chunks/93c5f097bb7b380bb175.js +0 -1
  262. package/assets/esri/core/workers/chunks/9f0172b83f25ef5f8d40.js +0 -1
  263. package/assets/esri/core/workers/chunks/ae793d814cf32db9fbde.js +0 -1
  264. package/assets/esri/core/workers/chunks/b21cf62652ca772108c8.js +0 -1
  265. package/assets/esri/core/workers/chunks/c5c02ace54fe4ab9214b.js +0 -1
  266. package/assets/esri/core/workers/chunks/c82a974c8448407885e6.js +0 -1
  267. package/assets/esri/core/workers/chunks/d08ee45c501102deea20.js +0 -1
  268. package/assets/esri/core/workers/chunks/d239a4ef60e348cfb05a.js +0 -1
  269. package/assets/esri/core/workers/chunks/da2ba40bc017bff0fe49.js +0 -1
  270. package/assets/esri/core/workers/chunks/dc3a4ad62bc041a4f899.js +0 -1
  271. package/assets/esri/core/workers/chunks/e093e745708f722bc1b9.js +0 -1
  272. package/assets/esri/core/workers/chunks/e501d68a1464805c4b4e.js +0 -1
  273. package/assets/esri/core/workers/chunks/f3c232fc56a29d51196a.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7836],{22141:(n,t,r)=>{r.d(t,{$5:()=>x,CN:()=>y,JP:()=>d,KM:()=>T,Mv:()=>R,X4:()=>A,gr:()=>w,qs:()=>b,si:()=>v,xA:()=>C});var e=r(34727),o=r(77690),i=r(29242),u=r(58083),a=r(9093),c=r(38954),l=r(51850),s=r(48353),f=r(9762),p=(r(79258),r(21325)),h=r(28735),g=r(13030),m=r(73354),M=r(65686);const d="Projection may be possible after calling projection.load().";function y(n,t,r,e){n.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${r.wkid}).${e?" ":""}${e}`)}function A(n,t,r,e,o,i){return F(0,g.xs.fromTypedArray(n),0,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i))?i:null}function v(n,t,r,e,o,i){return F(1,g.xs.fromTypedArray(n),0,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i))?i:null}function w(n,t,r,e){return(0,f.projectBuffer)(n,t,0,r,e,0)?r:null}function x(n,t,r,e){return(0,f.projectBuffer)(n,t,0,r,e,0)?r:null}function b(n,t,r){return(0,o.Ge)(E,r),(0,m.b)(t,n,E),(0,e.or)(E)&&(0,m.n)(t,t),t}function T(n,t,r){return(0,o.z0)(E,r),(0,M.t)(t,n,E),(0,e.or)(E)&&(0,m.n)(t,t,4),t}function C(n,t,r,e,o,i){if(!F(0,g.xs.fromTypedArray(n,4*Float32Array.BYTES_PER_ELEMENT),1,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<n.length;t+=4)i[t]=n[t];return i}function R(n,t,r,e,o,i){if(!F(1,g.xs.fromTypedArray(n,16),1,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i,16)))return null;for(let t=3;t<n.length;t+=4)i[t]=n[t];return i}function q(n,t,r,e,i){switch((0,s.l)(e,r,k,e),1===n&&(0,u.B8)(k,k),t){case 0:return(0,o.Ge)(i,k);case 1:return(0,o.z0)(i,k)}}function F(n,t,r,e,o,i,u,a){if(!t)return;const l=e.count;if(function(n){return n.isWGS84||(0,p.x1)(n)||(0,p.q8)(n)||(0,p.KQ)(n)}(o))for(let e=0;e<l;e++)i.getVec(e,S),t.getVec(e,N),(0,c.t)(N,N,q(n,r,S,u,E)),a.setVec(e,N);else for(let o=0;o<l;o++){i.getVec(o,S),t.getVec(o,N);const l=(0,h.jg)(e.get(o,1));let s=Math.cos(l);1===r!=(0===n)&&(s=1/s),q(n,r,S,u,E),0===n?(E[0]*=s,E[1]*=s,E[2]*=s,E[3]*=s,E[4]*=s,E[5]*=s):(E[0]*=s,E[3]*=s,E[6]*=s,E[1]*=s,E[4]*=s,E[7]*=s),(0,c.t)(N,N,E),(0,c.n)(N,N),a.setVec(o,N)}return a}const S=(0,l.vt)(),N=(0,l.vt)(),k=(0,a.vt)(),E=(0,i.vt)()},27615:(n,t,r)=>{r.d(t,{CK:()=>c,Hq:()=>a,MW:()=>l,TE:()=>s,yJ:()=>f});var e=r(38954),o=r(86738),i=r(95696),u=r(18251);function a(n){return null!=n.origin}function c(n){return a(n.vertexSpace)}function l(n,t){if(!a(n))return null;const[r,e,i]=n.origin;return new o.A({x:r,y:e,z:i,spatialReference:t})}function s(n,t){const{x:r,y:e,z:o,spatialReference:a}=n,c=[r,e,o??0];return"local"===(t?.vertexSpace??function(n){return n.isGeographic||n.isWebMercator?"local":"georeferenced"}(a))?new u.A({origin:c}):new i.A({origin:c})}function f(n,t){return n.type===t.type&&(n.origin===t.origin||null!=n.origin&&null!=t.origin&&(0,e.m)(n.origin,t.origin))}},38954:(n,t,r)=>{r.d(t,{A:()=>s,B:()=>f,C:()=>y,D:()=>z,E:()=>v,F:()=>_,G:()=>U,H:()=>I,a:()=>X,b:()=>i,c:()=>d,d:()=>u,e:()=>l,f:()=>C,g:()=>T,h:()=>a,i:()=>c,j:()=>M,l:()=>R,m:()=>E,n:()=>b,o:()=>x,p:()=>q,q:()=>w,r:()=>S,s:()=>A,t:()=>F,u:()=>p,v:()=>O,w:()=>K,x:()=>m,y:()=>g,z:()=>h});var e=r(51850),o=r(34304);function i(n){const t=n[0],r=n[1],e=n[2];return Math.sqrt(t*t+r*r+e*e)}function u(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function a(n,t,r,e){return n[0]=t,n[1]=r,n[2]=e,n}function c(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n[2]=t[2]+r[2],n}function l(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],n}function s(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n[2]=t[2]*r[2],n}function f(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n[2]=t[2]/r[2],n}function p(n,t){return n[0]=Math.abs(t[0]),n[1]=Math.abs(t[1]),n[2]=Math.abs(t[2]),n}function h(n,t){return n[0]=Math.sign(t[0]),n[1]=Math.sign(t[1]),n[2]=Math.sign(t[2]),n}function g(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n[2]=Math.min(t[2],r[2]),n}function m(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n[2]=Math.max(t[2],r[2]),n}function M(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n[2]=t[2]*r,n}function d(n,t,r,e){return n[0]=t[0]+r[0]*e,n[1]=t[1]+r[1]*e,n[2]=t[2]+r[2]*e,n}function y(n,t){const r=t[0]-n[0],e=t[1]-n[1],o=t[2]-n[2];return Math.sqrt(r*r+e*e+o*o)}function A(n,t){const r=t[0]-n[0],e=t[1]-n[1],o=t[2]-n[2];return r*r+e*e+o*o}function v(n){const t=n[0],r=n[1],e=n[2];return t*t+r*r+e*e}function w(n,t){return n[0]=-t[0],n[1]=-t[1],n[2]=-t[2],n}function x(n,t){return n[0]=1/t[0],n[1]=1/t[1],n[2]=1/t[2],n}function b(n,t){const r=t[0],e=t[1],o=t[2];let i=r*r+e*e+o*o;return i>0&&(i=1/Math.sqrt(i),n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i),n}function T(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function C(n,t,r){const e=t[0],o=t[1],i=t[2],u=r[0],a=r[1],c=r[2];return n[0]=o*c-i*a,n[1]=i*u-e*c,n[2]=e*a-o*u,n}function R(n,t,r,e){const o=t[0],i=t[1],u=t[2];return n[0]=o+e*(r[0]-o),n[1]=i+e*(r[1]-i),n[2]=u+e*(r[2]-u),n}function q(n,t,r){const e=t[0],o=t[1],i=t[2];return n[0]=r[0]*e+r[4]*o+r[8]*i+r[12],n[1]=r[1]*e+r[5]*o+r[9]*i+r[13],n[2]=r[2]*e+r[6]*o+r[10]*i+r[14],n}function F(n,t,r){const e=t[0],o=t[1],i=t[2];return n[0]=e*r[0]+o*r[3]+i*r[6],n[1]=e*r[1]+o*r[4]+i*r[7],n[2]=e*r[2]+o*r[5]+i*r[8],n}function S(n,t,r){const e=r[0],o=r[1],i=r[2],u=r[3],a=t[0],c=t[1],l=t[2],s=o*l-i*c,f=i*a-e*l,p=e*c-o*a,h=o*p-i*f,g=i*s-e*p,m=e*f-o*s,M=2*u;return n[0]=a+s*M+2*h,n[1]=c+f*M+2*g,n[2]=l+p*M+2*m,n}const N=(0,e.vt)(),k=(0,e.vt)();function E(n,t){return n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2]}function _(n,t){if(n===t)return!0;const r=n[0],e=n[1],i=n[2],u=t[0],a=t[1],c=t[2],l=(0,o.FD)();return Math.abs(r-u)<=l*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-a)<=l*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))}function z(n,t,r){const e=r[0]-t[0],o=r[1]-t[1],i=r[2]-t[2];let u=e*e+o*o+i*i;return u>0?(u=1/Math.sqrt(u),n[0]=e*u,n[1]=o*u,n[2]=i*u,n):(n[0]=0,n[1]=0,n[2]=0,n)}const X=l,j=s,B=f,U=y,O=A,I=i,K=v;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:c,angle:function(n,t){b(N,n),b(k,t);const r=T(N,k);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(n,t,r,e,o,i){const u=1-i,a=u*u,c=i*i,l=a*u,s=3*i*a,f=3*c*u,p=c*i;return n[0]=t[0]*l+r[0]*s+e[0]*f+o[0]*p,n[1]=t[1]*l+r[1]*s+e[1]*f+o[1]*p,n[2]=t[2]*l+r[2]*s+e[2]*f+o[2]*p,n},ceil:function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n[2]=Math.ceil(t[2]),n},clamp:function(n,t=0,r=1){return n[0]=Math.min(Math.max(n[0],t),r),n[1]=Math.min(Math.max(n[1],t),r),n[2]=Math.min(Math.max(n[2],t),r),n},copy:u,cross:C,crossAndNormalize:function(n,t,r){const e=t[0],o=t[1],i=t[2],u=r[0],a=r[1],c=r[2],l=o*c-i*a,s=i*u-e*c,f=e*a-o*u,p=Math.sqrt(l*l+s*s+f*f);return n[0]=l/p,n[1]=s/p,n[2]=f/p,n},direction:z,dist:U,distance:y,div:B,divide:f,dot:T,equals:_,exactEquals:E,floor:function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n[2]=Math.floor(t[2]),n},hermite:function(n,t,r,e,o,i){const u=i*i,a=u*(2*i-3)+1,c=u*(i-2)+i,l=u*(i-1),s=u*(3-2*i);return n[0]=t[0]*a+r[0]*c+e[0]*l+o[0]*s,n[1]=t[1]*a+r[1]*c+e[1]*l+o[1]*s,n[2]=t[2]*a+r[2]*c+e[2]*l+o[2]*s,n},inverse:x,len:I,length:i,lerp:R,max:m,min:g,mul:j,multiply:s,negate:w,normalize:b,random:function(n,t=1){const r=o.Ov,e=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*t;return n[0]=Math.cos(e)*u,n[1]=Math.sin(e)*u,n[2]=i*t,n},rotateX:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[0],i[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),i[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},rotateY:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),i[1]=o[1],i[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},rotateZ:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),i[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),i[2]=o[2],n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},round:function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n[2]=Math.round(t[2]),n},scale:M,scaleAndAdd:d,set:a,sign:h,sqrDist:O,sqrLen:K,squaredDistance:A,squaredLength:v,str:function(n){return"vec3("+n[0]+", "+n[1]+", "+n[2]+")"},sub:X,subtract:l,transformMat3:F,transformMat4:q,transformQuat:S},Symbol.toStringTag,{value:"Module"}))},48163:(n,t,r)=>{function e(){return[0,0]}function o(n){return[n[0],n[1]]}function i(n,t){return[n,t]}function u(){return i(1,1)}function a(){return i(1,0)}function c(){return i(0,1)}r.d(t,{Un:()=>l,fA:()=>i,o8:()=>o,vt:()=>e});const l=u(),s=a(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:s,UNIT_Y:f,ZEROS:[0,0],clone:o,create:e,freeze:function(n,t){return[n,t]},fromArray:function(n,t=[0,0]){const r=Math.min(2,n.length);for(let e=0;e<r;++e)t[e]=n[e];return t},fromValues:i,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(n,t,r)=>{r.d(t,{l:()=>l});var e=r(34727),o=r(58083),i=r(51850);function u(n,t,r){const e=Math.sin(n),o=Math.cos(n),i=Math.sin(t),u=Math.cos(t),a=r;return a[0]=-e,a[4]=-i*o,a[8]=u*o,a[12]=0,a[1]=o,a[5]=-i*e,a[9]=u*e,a[13]=0,a[2]=0,a[6]=u,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=r(37539),c=r(21325);function l(n,t,r,e){const i=(0,a.Tp)(n,e);if(null==i)return!1;const l=i.source.spatialReferenceId,g=i.dest.spatialReferenceId;if(l===g&&!s(g)&&(0!==l||(0,c.aI)(n,e)))return(0,o.kN)(r,t),!0;if(s(g)){const n=a.w5[l][10],e=a.w5[10][g];return null!=n&&null!=e&&(n(t,0,p,0),e(p,0,h,0),u(f*p[0],f*p[1],r),r[12]=h[0],r[13]=h[1],r[14]=h[2],!0)}const m=s(l);if((3===g||11===g||2===g||5===g)&&(2===l||m||3===l||5===l)){const n=a.w5[l][10],e=a.w5[10][g];return null!=n&&null!=e&&(n(t,0,p,0),e(p,0,h,0),m?function(n,t,r){u(n,t,r),(0,o.mg)(r,r)}(f*p[0],f*p[1],r):(0,o.D_)(r),r[12]=h[0],r[13]=h[1],r[14]=h[2],!0)}return!1}function s(n){return 1===n||6===n||8===n||4===n}const f=(0,e.kU)(1),p=(0,i.vt)(),h=(0,i.vt)()},72258:(n,t,r)=>{r.d(t,{UR:()=>w,p5:()=>v,xK:()=>q});var e=r(53966),o=r(34727),i=r(86211),u=r(77690),a=r(29242),c=r(58083),l=r(9093),s=r(38954),f=r(51850),p=r(98764),h=r(48353),g=r(65806),m=r(27615),M=r(21325),d=r(73354),y=r(22141);const A=()=>e.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function v(n,t,{vertexSpace:r,spatialReference:e}){if("georeferenced"===r.type){const o=n;if(!(0,g.g)(t,o,e))return!1;const{origin:i}=r;return(0,s.e)(n,o,i),!0}const o=(0,p.lO)(e),i=n;if(!(0,g.g)(t,i,o))return!1;const{origin:u}=r,a=E;if(!(0,h.l)(e,u,a,o))return!1;const l=(0,c.B8)(E,a);return null!=l&&((0,s.p)(n,i,l),!0)}function w(n,t,r){const{vertexSpace:e,transform:o,vertexAttributes:i}=n,a=(0,m.Hq)(e)?o:null,f=C(n.spatialReference,r,3);if((0,m.yJ)(e,t)&&(!a||(0,c.t2)(a.localMatrix,l.zK))&&R(f)){const{position:n,normal:t,tangent:e}=i,o=r?.allowBufferReuse;return{position:o?n:n.slice(),normal:o?t:t?.slice(),tangent:o?e:e?.slice()}}switch(n.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:r},{origin:e},o,i){const u=x(t,i);if(!(0,h.l)(t,e,F,u))return(0,y.CN)(A(),t,u),null;if(r&&(0,c.lw)(F,F,r.localMatrix),!(0,h.l)(t,o,S,u))return(0,y.CN)(A(),u,t),null;(0,c.B8)(S,S);const a=(0,c.lw)(F,S,F);return T(a,t,i,3),b(n,a)}(n,n.vertexSpace,t.origin,r):function({spatialReference:n,vertexAttributes:t,transform:r},{origin:e},o,i){const u=x(n,i);if(!(0,h.l)(n,e,F,u))return(0,y.CN)(A(),n,u),null;r&&(0,c.lw)(F,F,r.localMatrix),T(F,n,i,1);const a=new Float64Array(t.position.length),l=function(n,t,r,e,o){(0,d.t)(e,n,t);const i=new Float64Array(n.length);return(0,y.$5)(e,o,i,r)?i:((0,y.CN)(A(),o,r),null)}(t.position,F,n,a,u);if(!l)return null;const f=function(n,t,r,e,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,y.qs)(o,u,i),(0,y.si)(u,n,t,r,e,u)?u:((0,y.CN)(A(),e,t),null)}(l,n,a,u,t.normal,F);if(t.normal&&!f)return null;const p=function(n,t,r,e,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,y.KM)(o,u,i),(0,y.Mv)(u,n,t,r,e,u)?u:((0,y.CN)(A(),e,t),null)}(l,n,a,u,t.tangent,F);if(t.tangent&&!p)return null;if(o){const n=(0,s.q)(k,o);(0,d.a)(l,l,n)}return{position:l,normal:f,tangent:p}}(n,n.vertexSpace,t.origin,r);case"georeferenced":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:r},{origin:e},o,i){const a=x(t,i);if(!(0,h.l)(t,o,F,a))return(0,y.CN)(A(),t,a),null;const l=1/C(t,i,2);(0,c.hs)(F,F,[l,l,l]);const s=(0,c.B8)(S,F),{position:f,normal:p,tangent:g}=function(n,t,r){if(!t)return n;if(!r){const{position:r,normal:e,tangent:o}=n;return{position:(0,d.a)(new Float64Array(r.length),r,t),tangent:o,normal:e}}const e=b(n,r.localMatrix);return(0,d.a)(e.position,e.position,t),e}(n,e,r),m=new Float64Array(f.length),M=function(n,t,r,e,o){const i=(0,y.gr)(n,t,e,o);if(!i)return(0,y.CN)(A(),t,o),null;const u=new Float64Array(i.length);return(0,d.t)(u,i,r),u}(f,t,s,m,a);if(!M)return null;const v=(0,u.Ge)(N,s),w=function(n,t,r,e,o,i,u){if(null==n)return null;const a=u??new Float32Array(n.length);return(0,y.X4)(n,t,r,e,o,a)?((0,d.b)(a,a,i),a):((0,y.CN)(A(),r,o),null)}(p,f,t,m,a,v,p!==n.normal?p:void 0);if(!w&&p)return null;const T=function(n,t,r,e,o,i,u){if(null==n)return null;const a=u??new Float32Array(n.length);return(0,y.xA)(n,t,r,e,o,a)?((0,d.b)(a,a,i,4),a):((0,y.CN)(A(),r,o),null)}(g,f,t,m,a,v,g!==n.tangent?g:void 0);return!T&&g?null:{position:M,normal:w,tangent:T}}(n,n.vertexSpace,t.origin,r):function({vertexAttributes:n,transform:t,spatialReference:r},{origin:e},o,i){const u=C(r,i,3),a=e||!R(u)?(0,c.C)(F,t?.localMatrix??l.zK):null;a&&T(a,r,i,3);const{position:f,normal:p,tangent:h}=a?b(n,a):n,g=i?.allowBufferReuse,m=g?f:new Float64Array(f.length);let M=f;if(e&&(M=(0,d.a)(m,M,e)),o){const n=(0,s.q)(k,o);M=(0,d.a)(m,M,n)}return{position:M!==n.position||g?M:M.slice(),normal:p!==n.normal||g?p:p?.slice(),tangent:h!==n.tangent||g?h:h?.slice()}}(n,n.vertexSpace,t.origin,r)}}function x(n,t){return t?.useEllipsoid&&(0,M.B3)(n)?p.Y0:(0,p.lO)(n)}function b(n,t){const r=new Float64Array(n.position.length);(0,d.t)(r,n.position,t);const e=n.normal?new Float32Array(n.normal.length):null,o=n.tangent?new Float32Array(n.tangent.length):null;return e&&n.normal&&(0,y.qs)(n.normal,e,t),o&&n.tangent&&(0,y.KM)(n.tangent,o,t),{position:r,normal:e,tangent:o}}function T(n,t,r,e){const o=C(t,r,e);R(o)||(0,c.hs)(n,n,[o,o,o])}function C(n,t,r){const e=!!(1&r),o=!!(2&r),i=t?.sourceUnit,u=t?.targetUnit;if(!i&&!u)return 1;let a=q(i,n);e||!i||R(a)||(A().warn("source unit conversion not supported"),a=1);let c=1/q(u,n);return o||!u||R(c)||(A().warn("target unit conversion not supported"),c=1),a*c}function R(n){return(0,o.Io)(n,1)}function q(n,t){if(null==n)return 1;const r=(0,i.KX)(t);return 1/(0,i.oU)(r,"meters",n)}const F=(0,l.vt)(),S=(0,l.vt)(),N=(0,a.vt)(),k=(0,f.vt)(),E=(0,l.vt)()},74594:(n,t,r)=>{r.d(t,{projectMeshVertexPositions:()=>a});var e=r(9762),o=r(95696),i=r(21325),u=r(72258);function a(n,t){const r=(0,u.UR)(n,o.A.absolute);if(!r)return null;let a=r.position;return(0,i.aI)(n.spatialReference,t)||(a=new Float64Array(r.position.length),(0,e.projectBuffer)(r.position,n.spatialReference,0,a,t,0))?a:null}},98764:(n,t,r)=>{r.d(t,{Y0:()=>l,lO:()=>s});var e=r(73941),o=r(16930),i=r(21325);const u=new o.A(e.fv),a=new o.A(e.FY),c=new o.A(e.LJ),l=new o.A(e.Ro);function s(n){const t=f.get(n);if(t)return t;let r=u;if(n)if(n===a)r=a;else if(n===c)r=c;else{const t=n.wkid,e=n.latestWkid;if(null!=t||null!=e)(0,i.tl)(t)||(0,i.tl)(e)?r=a:((0,i.ZL)(t)||(0,i.ZL)(e))&&(r=c);else{const t=n.wkt2??n.wkt;if(t){const n=t.toUpperCase();n===p?r=a:n===h&&(r=c)}}}return f.set(n,r),r}const f=new Map,p=a.wkt.toUpperCase(),h=c.wkt.toUpperCase()}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7836],{22141:(n,t,r)=>{r.d(t,{$5:()=>x,CN:()=>y,JP:()=>d,KM:()=>T,Mv:()=>R,X4:()=>A,gr:()=>w,qs:()=>b,si:()=>v,xA:()=>C});var e=r(34727),o=r(77690),i=r(29242),u=r(58083),a=r(9093),c=r(38954),l=r(51850),s=r(48353),f=r(9762),p=(r(79258),r(21325)),h=r(28735),g=r(13030),m=r(73354),M=r(65686);const d="Projection may be possible after calling projection.load().";function y(n,t,r,e){n.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${r.wkid}).${e?" ":""}${e}`)}function A(n,t,r,e,o,i){return F(0,g.xs.fromTypedArray(n),0,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i))?i:null}function v(n,t,r,e,o,i){return F(1,g.xs.fromTypedArray(n),0,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i))?i:null}function w(n,t,r,e){return(0,f.projectBuffer)(n,t,0,r,e,0)?r:null}function x(n,t,r,e){return(0,f.projectBuffer)(n,t,0,r,e,0)?r:null}function b(n,t,r){return(0,o.Ge)(E,r),(0,m.b)(t,n,E),(0,e.or)(E)&&(0,m.n)(t,t),t}function T(n,t,r){return(0,o.z0)(E,r),(0,M.t)(t,n,E),(0,e.or)(E)&&(0,m.n)(t,t,4),t}function C(n,t,r,e,o,i){if(!F(0,g.xs.fromTypedArray(n,4*Float32Array.BYTES_PER_ELEMENT),1,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<n.length;t+=4)i[t]=n[t];return i}function R(n,t,r,e,o,i){if(!F(1,g.xs.fromTypedArray(n,16),1,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i,16)))return null;for(let t=3;t<n.length;t+=4)i[t]=n[t];return i}function q(n,t,r,e,i){switch((0,s.l)(e,r,k,e),1===n&&(0,u.B8)(k,k),t){case 0:return(0,o.Ge)(i,k);case 1:return(0,o.z0)(i,k)}}function F(n,t,r,e,o,i,u,a){if(!t)return;const l=e.count;if(function(n){return n.isWGS84||(0,p.x1)(n)||(0,p.q8)(n)||(0,p.KQ)(n)}(o))for(let e=0;e<l;e++)i.getVec(e,S),t.getVec(e,N),(0,c.t)(N,N,q(n,r,S,u,E)),a.setVec(e,N);else for(let o=0;o<l;o++){i.getVec(o,S),t.getVec(o,N);const l=(0,h.jg)(e.get(o,1));let s=Math.cos(l);1===r!=(0===n)&&(s=1/s),q(n,r,S,u,E),0===n?(E[0]*=s,E[1]*=s,E[2]*=s,E[3]*=s,E[4]*=s,E[5]*=s):(E[0]*=s,E[3]*=s,E[6]*=s,E[1]*=s,E[4]*=s,E[7]*=s),(0,c.t)(N,N,E),(0,c.n)(N,N),a.setVec(o,N)}return a}const S=(0,l.vt)(),N=(0,l.vt)(),k=(0,a.vt)(),E=(0,i.vt)()},27615:(n,t,r)=>{r.d(t,{CK:()=>c,Hq:()=>a,MW:()=>l,TE:()=>s,yJ:()=>f});var e=r(38954),o=r(86738),i=r(95696),u=r(18251);function a(n){return null!=n.origin}function c(n){return a(n.vertexSpace)}function l(n,t){if(!a(n))return null;const[r,e,i]=n.origin;return new o.A({x:r,y:e,z:i,spatialReference:t})}function s(n,t){const{x:r,y:e,z:o,spatialReference:a}=n,c=[r,e,o??0];return"local"===(t?.vertexSpace??function(n){return n.isGeographic||n.isWebMercator?"local":"georeferenced"}(a))?new u.A({origin:c}):new i.A({origin:c})}function f(n,t){return n.type===t.type&&(n.origin===t.origin||null!=n.origin&&null!=t.origin&&(0,e.m)(n.origin,t.origin))}},38954:(n,t,r)=>{r.d(t,{A:()=>h,B:()=>s,C:()=>f,D:()=>y,E:()=>z,F:()=>v,G:()=>_,H:()=>U,a:()=>X,b:()=>i,c:()=>d,d:()=>u,e:()=>l,f:()=>C,g:()=>T,h:()=>a,i:()=>c,j:()=>M,l:()=>R,m:()=>E,n:()=>b,o:()=>x,p:()=>q,q:()=>w,r:()=>S,s:()=>A,t:()=>F,u:()=>I,v:()=>p,w:()=>O,x:()=>K,y:()=>m,z:()=>g});var e=r(51850),o=r(34304);function i(n){const t=n[0],r=n[1],e=n[2];return Math.sqrt(t*t+r*r+e*e)}function u(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function a(n,t,r,e){return n[0]=t,n[1]=r,n[2]=e,n}function c(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n[2]=t[2]+r[2],n}function l(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],n}function s(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n[2]=t[2]*r[2],n}function f(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n[2]=t[2]/r[2],n}function p(n,t){return n[0]=Math.abs(t[0]),n[1]=Math.abs(t[1]),n[2]=Math.abs(t[2]),n}function h(n,t){return n[0]=Math.sign(t[0]),n[1]=Math.sign(t[1]),n[2]=Math.sign(t[2]),n}function g(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n[2]=Math.min(t[2],r[2]),n}function m(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n[2]=Math.max(t[2],r[2]),n}function M(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n[2]=t[2]*r,n}function d(n,t,r,e){return n[0]=t[0]+r[0]*e,n[1]=t[1]+r[1]*e,n[2]=t[2]+r[2]*e,n}function y(n,t){const r=t[0]-n[0],e=t[1]-n[1],o=t[2]-n[2];return Math.sqrt(r*r+e*e+o*o)}function A(n,t){const r=t[0]-n[0],e=t[1]-n[1],o=t[2]-n[2];return r*r+e*e+o*o}function v(n){const t=n[0],r=n[1],e=n[2];return t*t+r*r+e*e}function w(n,t){return n[0]=-t[0],n[1]=-t[1],n[2]=-t[2],n}function x(n,t){return n[0]=1/t[0],n[1]=1/t[1],n[2]=1/t[2],n}function b(n,t){const r=t[0],e=t[1],o=t[2];let i=r*r+e*e+o*o;return i>0&&(i=1/Math.sqrt(i),n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i),n}function T(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function C(n,t,r){const e=t[0],o=t[1],i=t[2],u=r[0],a=r[1],c=r[2];return n[0]=o*c-i*a,n[1]=i*u-e*c,n[2]=e*a-o*u,n}function R(n,t,r,e){const o=t[0],i=t[1],u=t[2];return n[0]=o+e*(r[0]-o),n[1]=i+e*(r[1]-i),n[2]=u+e*(r[2]-u),n}function q(n,t,r){const e=t[0],o=t[1],i=t[2];return n[0]=r[0]*e+r[4]*o+r[8]*i+r[12],n[1]=r[1]*e+r[5]*o+r[9]*i+r[13],n[2]=r[2]*e+r[6]*o+r[10]*i+r[14],n}function F(n,t,r){const e=t[0],o=t[1],i=t[2];return n[0]=e*r[0]+o*r[3]+i*r[6],n[1]=e*r[1]+o*r[4]+i*r[7],n[2]=e*r[2]+o*r[5]+i*r[8],n}function S(n,t,r){const e=r[0],o=r[1],i=r[2],u=r[3],a=t[0],c=t[1],l=t[2],s=o*l-i*c,f=i*a-e*l,p=e*c-o*a,h=o*p-i*f,g=i*s-e*p,m=e*f-o*s,M=2*u;return n[0]=a+s*M+2*h,n[1]=c+f*M+2*g,n[2]=l+p*M+2*m,n}const N=(0,e.vt)(),k=(0,e.vt)();function E(n,t){return n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2]}function _(n,t){if(n===t)return!0;const r=n[0],e=n[1],i=n[2],u=t[0],a=t[1],c=t[2],l=(0,o.FD)();return Math.abs(r-u)<=l*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-a)<=l*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))}function z(n,t,r){const e=r[0]-t[0],o=r[1]-t[1],i=r[2]-t[2];let u=e*e+o*o+i*i;return u>0?(u=1/Math.sqrt(u),n[0]=e*u,n[1]=o*u,n[2]=i*u,n):(n[0]=0,n[1]=0,n[2]=0,n)}const X=l,j=s,B=f,U=y,O=A,I=i,K=v;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:c,angle:function(n,t){b(N,n),b(k,t);const r=T(N,k);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(n,t,r,e,o,i){const u=1-i,a=u*u,c=i*i,l=a*u,s=3*i*a,f=3*c*u,p=c*i;return n[0]=t[0]*l+r[0]*s+e[0]*f+o[0]*p,n[1]=t[1]*l+r[1]*s+e[1]*f+o[1]*p,n[2]=t[2]*l+r[2]*s+e[2]*f+o[2]*p,n},ceil:function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n[2]=Math.ceil(t[2]),n},clamp:function(n,t=0,r=1){return n[0]=Math.min(Math.max(n[0],t),r),n[1]=Math.min(Math.max(n[1],t),r),n[2]=Math.min(Math.max(n[2],t),r),n},copy:u,cross:C,crossAndNormalize:function(n,t,r){const e=t[0],o=t[1],i=t[2],u=r[0],a=r[1],c=r[2],l=o*c-i*a,s=i*u-e*c,f=e*a-o*u,p=Math.sqrt(l*l+s*s+f*f);return n[0]=l/p,n[1]=s/p,n[2]=f/p,n},direction:z,dist:U,distance:y,div:B,divide:f,dot:T,equals:_,exactEquals:E,floor:function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n[2]=Math.floor(t[2]),n},hermite:function(n,t,r,e,o,i){const u=i*i,a=u*(2*i-3)+1,c=u*(i-2)+i,l=u*(i-1),s=u*(3-2*i);return n[0]=t[0]*a+r[0]*c+e[0]*l+o[0]*s,n[1]=t[1]*a+r[1]*c+e[1]*l+o[1]*s,n[2]=t[2]*a+r[2]*c+e[2]*l+o[2]*s,n},inverse:x,len:I,length:i,lerp:R,max:m,min:g,mul:j,multiply:s,negate:w,normalize:b,random:function(n,t=1){const r=o.Ov,e=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*t;return n[0]=Math.cos(e)*u,n[1]=Math.sin(e)*u,n[2]=i*t,n},rotateX:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[0],i[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),i[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},rotateY:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),i[1]=o[1],i[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},rotateZ:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),i[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),i[2]=o[2],n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},round:function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n[2]=Math.round(t[2]),n},scale:M,scaleAndAdd:d,set:a,sign:h,sqrDist:O,sqrLen:K,squaredDistance:A,squaredLength:v,str:function(n){return"vec3("+n[0]+", "+n[1]+", "+n[2]+")"},sub:X,subtract:l,transformMat3:F,transformMat4:q,transformQuat:S},Symbol.toStringTag,{value:"Module"}))},48163:(n,t,r)=>{function e(){return[0,0]}function o(n){return[n[0],n[1]]}function i(n,t){return[n,t]}function u(){return i(1,1)}function a(){return i(1,0)}function c(){return i(0,1)}r.d(t,{Un:()=>l,fA:()=>i,o8:()=>o,vt:()=>e});const l=u(),s=a(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:s,UNIT_Y:f,ZEROS:[0,0],clone:o,create:e,freeze:function(n,t){return[n,t]},fromArray:function(n,t=[0,0]){const r=Math.min(2,n.length);for(let e=0;e<r;++e)t[e]=n[e];return t},fromValues:i,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(n,t,r)=>{r.d(t,{l:()=>l});var e=r(34727),o=r(58083),i=r(51850);function u(n,t,r){const e=Math.sin(n),o=Math.cos(n),i=Math.sin(t),u=Math.cos(t),a=r;return a[0]=-e,a[4]=-i*o,a[8]=u*o,a[12]=0,a[1]=o,a[5]=-i*e,a[9]=u*e,a[13]=0,a[2]=0,a[6]=u,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=r(37539),c=r(21325);function l(n,t,r,e){const i=(0,a.Tp)(n,e);if(null==i)return!1;const l=i.source.spatialReferenceId,g=i.dest.spatialReferenceId;if(l===g&&!s(g)&&(0!==l||(0,c.aI)(n,e)))return(0,o.kN)(r,t),!0;if(s(g)){const n=a.w5[l][10],e=a.w5[10][g];return null!=n&&null!=e&&(n(t,0,p,0),e(p,0,h,0),u(f*p[0],f*p[1],r),r[12]=h[0],r[13]=h[1],r[14]=h[2],!0)}const m=s(l);if((3===g||11===g||2===g||5===g)&&(2===l||m||3===l||5===l)){const n=a.w5[l][10],e=a.w5[10][g];return null!=n&&null!=e&&(n(t,0,p,0),e(p,0,h,0),m?function(n,t,r){u(n,t,r),(0,o.mg)(r,r)}(f*p[0],f*p[1],r):(0,o.D_)(r),r[12]=h[0],r[13]=h[1],r[14]=h[2],!0)}return!1}function s(n){return 1===n||6===n||8===n||4===n}const f=(0,e.kU)(1),p=(0,i.vt)(),h=(0,i.vt)()},72258:(n,t,r)=>{r.d(t,{UR:()=>w,p5:()=>v,xK:()=>q});var e=r(53966),o=r(34727),i=r(86211),u=r(77690),a=r(29242),c=r(58083),l=r(9093),s=r(38954),f=r(51850),p=r(98764),h=r(48353),g=r(65806),m=r(27615),M=r(21325),d=r(73354),y=r(22141);const A=()=>e.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function v(n,t,{vertexSpace:r,spatialReference:e}){if("georeferenced"===r.type){const o=n;if(!(0,g.g)(t,o,e))return!1;const{origin:i}=r;return(0,s.e)(n,o,i),!0}const o=(0,p.lO)(e),i=n;if(!(0,g.g)(t,i,o))return!1;const{origin:u}=r,a=E;if(!(0,h.l)(e,u,a,o))return!1;const l=(0,c.B8)(E,a);return null!=l&&((0,s.p)(n,i,l),!0)}function w(n,t,r){const{vertexSpace:e,transform:o,vertexAttributes:i}=n,a=(0,m.Hq)(e)?o:null,f=C(n.spatialReference,r,3);if((0,m.yJ)(e,t)&&(!a||(0,c.t2)(a.localMatrix,l.zK))&&R(f)){const{position:n,normal:t,tangent:e}=i,o=r?.allowBufferReuse;return{position:o?n:n.slice(),normal:o?t:t?.slice(),tangent:o?e:e?.slice()}}switch(n.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:r},{origin:e},o,i){const u=x(t,i);if(!(0,h.l)(t,e,F,u))return(0,y.CN)(A(),t,u),null;if(r&&(0,c.lw)(F,F,r.localMatrix),!(0,h.l)(t,o,S,u))return(0,y.CN)(A(),u,t),null;(0,c.B8)(S,S);const a=(0,c.lw)(F,S,F);return T(a,t,i,3),b(n,a)}(n,n.vertexSpace,t.origin,r):function({spatialReference:n,vertexAttributes:t,transform:r},{origin:e},o,i){const u=x(n,i);if(!(0,h.l)(n,e,F,u))return(0,y.CN)(A(),n,u),null;r&&(0,c.lw)(F,F,r.localMatrix),T(F,n,i,1);const a=new Float64Array(t.position.length),l=function(n,t,r,e,o){(0,d.t)(e,n,t);const i=new Float64Array(n.length);return(0,y.$5)(e,o,i,r)?i:((0,y.CN)(A(),o,r),null)}(t.position,F,n,a,u);if(!l)return null;const f=function(n,t,r,e,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,y.qs)(o,u,i),(0,y.si)(u,n,t,r,e,u)?u:((0,y.CN)(A(),e,t),null)}(l,n,a,u,t.normal,F);if(t.normal&&!f)return null;const p=function(n,t,r,e,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,y.KM)(o,u,i),(0,y.Mv)(u,n,t,r,e,u)?u:((0,y.CN)(A(),e,t),null)}(l,n,a,u,t.tangent,F);if(t.tangent&&!p)return null;if(o){const n=(0,s.q)(k,o);(0,d.a)(l,l,n)}return{position:l,normal:f,tangent:p}}(n,n.vertexSpace,t.origin,r);case"georeferenced":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:r},{origin:e},o,i){const a=x(t,i);if(!(0,h.l)(t,o,F,a))return(0,y.CN)(A(),t,a),null;const l=1/C(t,i,2);(0,c.hs)(F,F,[l,l,l]);const s=(0,c.B8)(S,F),{position:f,normal:p,tangent:g}=function(n,t,r){if(!t)return n;if(!r){const{position:r,normal:e,tangent:o}=n;return{position:(0,d.a)(new Float64Array(r.length),r,t),tangent:o,normal:e}}const e=b(n,r.localMatrix);return(0,d.a)(e.position,e.position,t),e}(n,e,r),m=new Float64Array(f.length),M=function(n,t,r,e,o){const i=(0,y.gr)(n,t,e,o);if(!i)return(0,y.CN)(A(),t,o),null;const u=new Float64Array(i.length);return(0,d.t)(u,i,r),u}(f,t,s,m,a);if(!M)return null;const v=(0,u.Ge)(N,s),w=function(n,t,r,e,o,i,u){if(null==n)return null;const a=u??new Float32Array(n.length);return(0,y.X4)(n,t,r,e,o,a)?((0,d.b)(a,a,i),a):((0,y.CN)(A(),r,o),null)}(p,f,t,m,a,v,p!==n.normal?p:void 0);if(!w&&p)return null;const T=function(n,t,r,e,o,i,u){if(null==n)return null;const a=u??new Float32Array(n.length);return(0,y.xA)(n,t,r,e,o,a)?((0,d.b)(a,a,i,4),a):((0,y.CN)(A(),r,o),null)}(g,f,t,m,a,v,g!==n.tangent?g:void 0);return!T&&g?null:{position:M,normal:w,tangent:T}}(n,n.vertexSpace,t.origin,r):function({vertexAttributes:n,transform:t,spatialReference:r},{origin:e},o,i){const u=C(r,i,3),a=e||!R(u)?(0,c.C)(F,t?.localMatrix??l.zK):null;a&&T(a,r,i,3);const{position:f,normal:p,tangent:h}=a?b(n,a):n,g=i?.allowBufferReuse,m=g?f:new Float64Array(f.length);let M=f;if(e&&(M=(0,d.a)(m,M,e)),o){const n=(0,s.q)(k,o);M=(0,d.a)(m,M,n)}return{position:M!==n.position||g?M:M.slice(),normal:p!==n.normal||g?p:p?.slice(),tangent:h!==n.tangent||g?h:h?.slice()}}(n,n.vertexSpace,t.origin,r)}}function x(n,t){return t?.useEllipsoid&&(0,M.B3)(n)?p.Y0:(0,p.lO)(n)}function b(n,t){const r=new Float64Array(n.position.length);(0,d.t)(r,n.position,t);const e=n.normal?new Float32Array(n.normal.length):null,o=n.tangent?new Float32Array(n.tangent.length):null;return e&&n.normal&&(0,y.qs)(n.normal,e,t),o&&n.tangent&&(0,y.KM)(n.tangent,o,t),{position:r,normal:e,tangent:o}}function T(n,t,r,e){const o=C(t,r,e);R(o)||(0,c.hs)(n,n,[o,o,o])}function C(n,t,r){const e=!!(1&r),o=!!(2&r),i=t?.sourceUnit,u=t?.targetUnit;if(!i&&!u)return 1;let a=q(i,n);e||!i||R(a)||(A().warn("source unit conversion not supported"),a=1);let c=1/q(u,n);return o||!u||R(c)||(A().warn("target unit conversion not supported"),c=1),a*c}function R(n){return(0,o.Io)(n,1)}function q(n,t){if(null==n)return 1;const r=(0,i.KX)(t);return 1/(0,i.oU)(r,"meters",n)}const F=(0,l.vt)(),S=(0,l.vt)(),N=(0,a.vt)(),k=(0,f.vt)(),E=(0,l.vt)()},74594:(n,t,r)=>{r.d(t,{projectMeshVertexPositions:()=>a});var e=r(9762),o=r(95696),i=r(21325),u=r(72258);function a(n,t){const r=(0,u.UR)(n,o.A.absolute);if(!r)return null;let a=r.position;return(0,i.aI)(n.spatialReference,t)||(a=new Float64Array(r.position.length),(0,e.projectBuffer)(r.position,n.spatialReference,0,a,t,0))?a:null}},98764:(n,t,r)=>{r.d(t,{Y0:()=>l,lO:()=>s});var e=r(73941),o=r(16930),i=r(21325);const u=new o.A(e.fv),a=new o.A(e.FY),c=new o.A(e.LJ),l=new o.A(e.Ro);function s(n){const t=f.get(n);if(t)return t;let r=u;if(n)if(n===a)r=a;else if(n===c)r=c;else{const t=n.wkid,e=n.latestWkid;if(null!=t||null!=e)(0,i.tl)(t)||(0,i.tl)(e)?r=a:((0,i.ZL)(t)||(0,i.ZL)(e))&&(r=c);else{const t=n.wkt2??n.wkt;if(t){const n=t.toUpperCase();n===p?r=a:n===h&&(r=c)}}}return f.set(n,r),r}const f=new Map,p=a.wkt.toUpperCase(),h=c.wkt.toUpperCase()}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1698],{24045:(e,t,r)=>{function o(e,t){const r=e.count;t||(t=new e.TypedArrayConstructor(r));for(let o=0;o<r;o++)t[o]=e.get(o);return t}r.d(t,{m:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,makeDense:o},Symbol.toStringTag,{value:"Module"}))},51698:(e,t,r)=>{r.d(t,{loadGLTF:()=>j});var o=r(53966),n=r(93637),s=r(9093),a=r(49186),i=r(91869),u=r(74887),l=r(84952),c=r(46140),f=r(58083),d=r(67026),p=r(82534),m=r(13030),h=r(24045),T=(r(44208),r(2741));let w;function g(){return w??=(async()=>{const{default:e}=await r.e(2423).then(r.bind(r,2423));return await e({locateFile:e=>(0,T.s)(`esri/libs/dracoMeshDecoder/${e}`)})})(),w}class b{constructor(e){this._data=e,this._offset4=0,this._dataUint32=new Uint32Array(this._data,0,Math.floor(this._data.byteLength/4))}readUint32(){const e=this._offset4;return this._offset4+=1,this._dataUint32[e]}readUint8Array(e){const t=4*this._offset4;return this._offset4+=e/4,new Uint8Array(this._data,t,e)}remainingBytes(){return this._data.byteLength-4*this._offset4}}var y=r(21818);const x={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1},_={pbrMetallicRoughness:x,emissiveFactor:[0,0,0],alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1},S={ESRI_externalColorMixMode:"tint",ESRI_receiveShadows:!0,ESRI_receiveAmbientOcclusion:!0},A=(e={})=>{const t={...x,...e.pbrMetallicRoughness},r=function(e){switch(e.ESRI_externalColorMixMode){case"multiply":case"tint":case"ignore":case"replace":break;default:(0,y.Xb)(e.ESRI_externalColorMixMode),e.ESRI_externalColorMixMode="tint"}return e}({...S,...e.extras});return{..._,...e,pbrMetallicRoughness:t,extras:r}},O={magFilter:9729,minFilter:9987,wrapS:10497,wrapT:10497},v=e=>({...O,...e});var R=r(51530),N=r(63907);const C=1179937895;class E{constructor(e,t,r,o){if(this._context=e,this.uri=t,this.json=r,this._glbBuffer=o,this._bufferLoaders=new Map,this._textureLoaders=new Map,this._dracoBuffersSize=0,this._textureCache=new Map,this._materialCache=new Map,this._nodeParentMap=new Map,this._nodeTransformCache=new Map,this._supportedExtensions=["KHR_texture_basisu","KHR_texture_transform","KHR_draco_mesh_compression","KHR_materials_emissive_strength"],this._baseUri=function(e){let t,r;return e.replace(/^(.*\/)?([^/]*)$/,(e,o,n)=>(t=o||"",r=n||"","")),{dirPart:t,filePart:r}}(this.uri).dirPart,this._checkVersionSupported(),this._checkRequiredExtensionsSupported(),null==r.scenes)throw new a.A("gltf-loader-unsupported-feature","Scenes must be defined.");if(null==r.meshes)throw new a.A("gltf-loader-unsupported-feature","Meshes must be defined");if(null==r.nodes)throw new a.A("gltf-loader-unsupported-feature","Nodes must be defined.");this._computeNodeParents()}static async load(e,t,r){if((0,l.DB)(t)){const r=(0,l.r$)(t);if(r&&"model/gltf-binary"!==r.mediaType)try{const o=JSON.parse(r.isBase64?atob(r.data):r.data);return new E(e,t,o)}catch{}const o=(0,l.lJ)(t);if(E._isGLBData(o))return this._fromGLBData(e,t,o)}if(G.test(t)||"gltf"===r?.expectedType){const o=await e.loadJSON(t,r);return new E(e,t,o)}const o=await e.loadBinary(t,r);if(E._isGLBData(o))return this._fromGLBData(e,t,o);if(P.test(t)||"glb"===r?.expectedType)throw new a.A("gltf-loader-invalid-glb","This is not a valid glb file.");const n=await e.loadJSON(t,r);return new E(e,t,n)}static _isGLBData(e){if(null==e)return!1;const t=new b(e);return t.remainingBytes()>=4&&t.readUint32()===C}static async _fromGLBData(e,t,r){const o=await E._parseGLBData(r);return new E(e,t,o.json,o.binaryData)}static async _parseGLBData(e){const t=new b(e);if(t.remainingBytes()<12)throw new a.A("gltf-loader-error","glb binary data is insufficiently large.");const r=t.readUint32(),n=t.readUint32(),s=t.readUint32();if(r!==C)throw new a.A("gltf-loader-error","Magic first 4 bytes do not fit to expected glb value.");if(e.byteLength<s)throw new a.A("gltf-loader-error","glb binary data is smaller than header specifies.");if(2!==n)throw new a.A("gltf-loader-unsupported-feature","An unsupported glb container version was detected. Only version 2 is supported.");let i,u,l=0;for(;t.remainingBytes()>=8;){const e=t.readUint32(),r=t.readUint32();if(0===l){if(1313821514!==r)throw new a.A("gltf-loader-error","First glb chunk must be JSON.");if(e<0)throw new a.A("gltf-loader-error","No JSON data found.");i=await(0,R.KB)(t.readUint8Array(e))}else if(1===l){if(5130562!==r)throw new a.A("gltf-loader-unsupported-feature","Second glb chunk expected to be BIN.");u=t.readUint8Array(e)}else o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] More than 2 glb chunks detected. Skipping.");l+=1}if(!i)throw new a.A("gltf-loader-error","No glb JSON chunk detected.");return{json:i,binaryData:u}}async getBuffer(e,t){const r=this.json.buffers[e];if(null==r.uri){if(null==this._glbBuffer)throw new a.A("gltf-loader-error","glb buffer not present");return this._glbBuffer}const o=await this._getBufferLoader(e,t);if(o.byteLength!==r.byteLength)throw new a.A("gltf-loader-error","Buffer byte lengths should match.");return o}async _getBufferLoader(e,t){const r=this._bufferLoaders.get(e);if(r)return r;const o=this.json.buffers[e].uri,n=this._context.loadBinary(this._resolveUri(o),t).then(e=>new Uint8Array(e));return this._bufferLoaders.set(e,n),n}_validateAccessor(e){if(!this.json.accessors)throw new a.A("gltf-loader-unsupported-feature","Accessors missing.");const t=this.json.accessors[e];if(t.type in["MAT2","MAT3","MAT4"])throw new a.A("gltf-loader-unsupported-feature",`AttributeType ${t.type} is not supported`);return t}_getComponentInfo(e,t){const r=F[e.type],o=t?.componentType||e.componentType,n=D[o];return{componentType:o,componentCount:r,componentByteSize:n,denseByteStride:r*n}}getDracoAccessor(e,t){const r=this._validateAccessor(e),o=t.accessorInfos.get(e),{componentType:n,componentCount:s,componentByteSize:a,denseByteStride:i}=this._getComponentInfo(r,o);return{raw:t.data.buffer,byteStride:i,byteOffset:t.data.byteOffset+(o?.byteOffset||0),entryCount:o?.count??r.count,isDenselyPacked:!0,componentCount:s,componentByteSize:a,componentType:n,min:r.min,max:r.max,normalized:!!r.normalized}}async getAccessor(e,t){const r=this._validateAccessor(e);if(null==r?.bufferView)throw new a.A("gltf-loader-unsupported-feature","Some accessor does not specify a bufferView.");const{componentCount:o,componentByteSize:n,denseByteStride:s}=this._getComponentInfo(r),i=this.json.bufferViews[r.bufferView],u=await this.getBuffer(i.buffer,t),l=i.byteStride||s;return{raw:u.buffer,byteStride:l,byteOffset:u.byteOffset+(i.byteOffset||0)+(r.byteOffset||0),entryCount:r.count,isDenselyPacked:l===s,componentCount:o,componentByteSize:n,componentType:r.componentType,min:r.min,max:r.max,normalized:!!r.normalized}}async getIndexData(e,t,r){if(null==e.indices)return;const o=e.indices,n=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(n.isDenselyPacked)switch(n.componentType){case N.pe.UNSIGNED_BYTE:return new Uint8Array(n.raw,n.byteOffset,n.entryCount);case N.pe.UNSIGNED_SHORT:return new Uint16Array(n.raw,n.byteOffset,n.entryCount);case N.pe.UNSIGNED_INT:return new Uint32Array(n.raw,n.byteOffset,n.entryCount)}else switch(n.componentType){case N.pe.UNSIGNED_BYTE:return(0,h.m)(U(m.SL,n));case N.pe.UNSIGNED_SHORT:return(0,h.m)(U(m.h,n));case N.pe.UNSIGNED_INT:return(0,h.m)(U(m.P,n))}}async getPositionData(e,t,r){if(null==e.attributes.POSITION)throw new a.A("gltf-loader-unsupported-feature","No POSITION vertex data found.");const o=e.attributes.POSITION,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for POSITION vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","POSITION vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return U(m.xs,s)}async getNormalData(e,t,r){if(null==e.attributes.NORMAL)throw new a.A("gltf-loader-error","No NORMAL vertex data found.");const o=e.attributes.NORMAL,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for NORMAL vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","NORMAL vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return U(m.xs,s)}async getTangentData(e,t,r){if(null==e.attributes.TANGENT)throw new a.A("gltf-loader-error","No TANGENT vertex data found.");const o=e.attributes.TANGENT,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for TANGENT vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(4!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","TANGENT vertex attribute must have 4 components, but found "+s.componentCount.toFixed());return U(m.Eq,s)}async getTextureCoordinates(e,t,r){if(null==e.attributes.TEXCOORD_0)throw new a.A("gltf-loader-error","No TEXCOORD_0 vertex data found.");const o=e.attributes.TEXCOORD_0,n=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(2!==n.componentCount)throw new a.A("gltf-loader-unsupported-feature","TEXCOORD_0 vertex attribute must have 2 components, but found "+n.componentCount.toFixed());if(n.componentType===N.pe.FLOAT)return U(m.gH,n);if(!n.normalized)throw new a.A("gltf-loader-unsupported-feature","Integer component types are only supported for a normalized accessor for TEXCOORD_0.");return function(e){switch(e.componentType){case N.pe.BYTE:return new m.D6(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_BYTE:return new m.LC(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.SHORT:return new m.mJ(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_SHORT:return new m.Yi(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_INT:return new m.An(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.FLOAT:return new m.gH(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount)}}(n)}async getVertexColors(e,t,r){if(null==e.attributes.COLOR_0)throw new a.A("gltf-loader-error","No COLOR_0 vertex data found.");const o=e.attributes.COLOR_0,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(4!==s.componentCount&&3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","COLOR_0 attribute must have 3 or 4 components, but found "+s.componentCount.toFixed());if(4===s.componentCount){if(s.componentType===N.pe.FLOAT)return U(m.Eq,s);if(s.componentType===N.pe.UNSIGNED_BYTE)return U(m.XP,s);if(s.componentType===N.pe.UNSIGNED_SHORT)return U(m.Uz,s)}else if(3===s.componentCount){if(s.componentType===N.pe.FLOAT)return U(m.xs,s);if(s.componentType===N.pe.UNSIGNED_BYTE)return U(m.eI,s);if(s.componentType===N.pe.UNSIGNED_SHORT)return U(m.nS,s)}throw new a.A("gltf-loader-unsupported-feature","Unsupported component type for COLOR_0 attribute: "+(0,n.i7)(N.pe,s.componentType))}hasPositions(e){return void 0!==e.attributes.POSITION}hasNormals(e){return void 0!==e.attributes.NORMAL}hasVertexColors(e){return void 0!==e.attributes.COLOR_0}hasTextureCoordinates(e){return void 0!==e.attributes.TEXCOORD_0}hasTangents(e){return void 0!==e.attributes.TANGENT}async getMaterial(e,t,r){let o=e.material?this._materialCache.get(e.material):void 0;if(!o){const n=null!=e.material?A(this.json.materials[e.material]):A(),s=n.pbrMetallicRoughness,a=this.hasVertexColors(e),i=this.getTexture(s.baseColorTexture,t),u=this.getTexture(n.normalTexture,t),l=r?this.getTexture(n.occlusionTexture,t):void 0,c=r?this.getTexture(n.emissiveTexture,t):void 0,f=r?this.getTexture(s.metallicRoughnessTexture,t):void 0,d=null!=e.material?e.material:-1;o={alphaMode:n.alphaMode,alphaCutoff:n.alphaCutoff,color:s.baseColorFactor,doubleSided:!!n.doubleSided,colorTexture:await i,normalTexture:await u,name:n.name,id:d,occlusionTexture:await l,emissiveTexture:await c,emissiveFactor:n.emissiveFactor,emissiveStrengthKHR:n.extensions?.KHR_materials_emissive_strength?.emissiveStrength,metallicFactor:s.metallicFactor,roughnessFactor:s.roughnessFactor,metallicRoughnessTexture:await f,hasVertexColors:a,ESRI_externalColorMixMode:n.extras.ESRI_externalColorMixMode,colorTextureTransform:s?.baseColorTexture?.extensions?.KHR_texture_transform,normalTextureTransform:n.normalTexture?.extensions?.KHR_texture_transform,occlusionTextureTransform:n.occlusionTexture?.extensions?.KHR_texture_transform,emissiveTextureTransform:n.emissiveTexture?.extensions?.KHR_texture_transform,metallicRoughnessTextureTransform:s?.metallicRoughnessTexture?.extensions?.KHR_texture_transform,receiveAmbientOcclusion:n.extras.ESRI_receiveAmbientOcclusion,receiveShadows:n.extras.ESRI_receiveShadows}}return o}async decode(e,t){const r=e.extensions?.KHR_draco_mesh_compression;if(!r)return;if(null==e.indices)throw new a.A("gltf-loader-error","Found Draco compressed primitive without indices.");const o=this.json.bufferViews[r.bufferView],n=await this.getBuffer(o.buffer,t),s=(await g()).decode(new Uint8Array(n.buffer,n.byteOffset+(o.byteOffset||0),o.byteLength));this._bufferLoaders.delete(o.buffer);const i=new Map([[e.indices,s.indices],[e.attributes.POSITION,s.positions]]);return e.attributes.TEXCOORD_0&&i.set(e.attributes.TEXCOORD_0,s.uvs),e.attributes.NORMAL&&i.set(e.attributes.NORMAL,s.normals),e.attributes.COLOR_0&&i.set(e.attributes.COLOR_0,s.colors),e.attributes.TANGENT&&i.set(e.attributes.TANGENT,s.tangents),this._dracoBuffersSize+=s.buffer.byteLength,{data:s.buffer,accessorInfos:i}}async getTexture(e,t){if(!e)return;if(0!==(e.texCoord||0))throw new a.A("gltf-loader-unsupported-feature","Only TEXCOORD with index 0 is supported.");const r=e.index,o=this.json.textures[r],n=v(null!=o.sampler?this.json.samplers[o.sampler]:{}),s=B(o),u=this.json.images[s],l=await this._loadTextureImageData(r,o,t);return(0,i.tE)(this._textureCache,r,()=>{const e=e=>33071===e||33648===e||10497===e,t=e=>{throw new a.A("gltf-loader-error",`Unexpected TextureSampler WrapMode: ${e}`)};return{data:l,wrapS:e(n.wrapS)?n.wrapS:t(n.wrapS),wrapT:e(n.wrapT)?n.wrapT:t(n.wrapT),minFilter:n.minFilter,name:u.name,id:r}})}getNodeTransform(e){if(void 0===e)return I;let t=this._nodeTransformCache.get(e);if(!t){const r=this.getNodeTransform(this._getNodeParent(e)),o=this.json.nodes[e];o.matrix?t=(0,f.lw)((0,s.vt)(),r,o.matrix):o.translation||o.rotation||o.scale?(t=(0,s.o8)(r),o.translation&&(0,f.Tl)(t,t,o.translation),o.rotation&&(M[3]=(0,d.Xd)(M,o.rotation),(0,f.e$)(t,t,M[3],M)),o.scale&&(0,f.hs)(t,t,o.scale)):t=(0,s.o8)(r),this._nodeTransformCache.set(e,t)}return t}_resolveUri(e){return(0,l.s2)(e,this._baseUri)}_getNodeParent(e){return this._nodeParentMap.get(e)}_checkVersionSupported(){const e=c.R.parse(this.json.asset.version,"glTF");L.validate(e)}_checkRequiredExtensionsSupported(){const e=this.json;if(e.extensionsRequired&&!e.extensionsRequired.every(e=>this._supportedExtensions.includes(e)))throw new a.A("gltf-loader-unsupported-feature","gltf loader was not able to load unsupported feature. Required extensions: "+e.extensionsRequired.join(", "))}_computeNodeParents(){this.json.nodes.forEach((e,t)=>{e.children&&e.children.forEach(e=>{this._nodeParentMap.set(e,t)})})}async _loadTextureImageData(e,t,r){const o=this._textureLoaders.get(e);if(o)return o;const n=this._createTextureLoader(t,r);return this._textureLoaders.set(e,n),n}async _createTextureLoader(e,t){const r=B(e),o=this.json.images[r];if(o.uri){if(o.uri.endsWith(".ktx2")){const e=await this._context.loadBinary(this._resolveUri(o.uri),t);return new R.Xi(new Uint8Array(e))}return this._context.loadImage(this._resolveUri(o.uri),t)}if(null==o.bufferView)throw new a.A("gltf-loader-unsupported-feature","Image bufferView must be defined.");if(null==o.mimeType)throw new a.A("gltf-loader-unsupported-feature","Image mimeType must be defined.");const n=this.json.bufferViews[o.bufferView],s=await this.getBuffer(n.buffer,t);if(null!=n.byteStride)throw new a.A("gltf-loader-unsupported-feature","byteStride not supported for image buffer");const i=s.byteOffset+(n.byteOffset||0);return(0,R.pn)(new Uint8Array(s.buffer,i,n.byteLength),o.mimeType)}async getLoadedBuffersSize(){if(this._glbBuffer)return this._glbBuffer.byteLength;const e=await(0,u.nA)(Array.from(this._bufferLoaders.values())),t=await(0,u.nA)(Array.from(this._textureLoaders.values()));return e.reduce((e,t)=>e+(t?.byteLength??0),0)+this._dracoBuffersSize+t.reduce((e,t)=>e+(t?(0,R.x3)(t)?t.data.byteLength:t.width*t.height*4:0),0)}}const I=(0,f.hM)((0,s.vt)(),Math.PI/2),L=new c.R(2,0,"glTF"),M=(0,p.vt)(),F={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},D={[N.pe.BYTE]:1,[N.pe.UNSIGNED_BYTE]:1,[N.pe.SHORT]:2,[N.pe.UNSIGNED_SHORT]:2,[N.pe.HALF_FLOAT]:2,[N.pe.FLOAT]:4,[N.pe.INT]:4,[N.pe.UNSIGNED_INT]:4};function U(e,t){return new e(t.raw,t.byteOffset,t.byteStride,t.byteOffset+t.byteStride*(t.entryCount-1)+t.componentByteSize*t.componentCount)}function B(e){if(null!=e.extensions?.KHR_texture_basisu)return e.extensions.KHR_texture_basisu.source;if(null!==e.source)return e.source;throw new a.A("gltf-loader-unsupported-feature","Source is expected to be defined for a texture. It can also be omitted in favour of an KHR_texture_basisu extension tag.")}const G=/\.gltf$/i,P=/\.glb$/i;let H=0;async function j(e,t,r={},a=!0){const i=await E.load(e,t,r),u="gltf_"+H++,l={lods:[],materials:new Map,textures:new Map,meta:k(i)},c=!(!i.json.asset.extras||"symbolResource"!==i.json.asset.extras.ESRI_type),f=i.json.asset.extras?.ESRI_webstyleSymbol?.webstyle,d=new Map;let p=!1;await V(i,async(e,t,c,f)=>{const m=d.get(c)??0;d.set(c,m+1);const h=void 0!==e.mode?e.mode:N.WR.TRIANGLES,T=h===N.WR.TRIANGLES||h===N.WR.TRIANGLE_STRIP||h===N.WR.TRIANGLE_FAN?h:null;if(null==T)return void o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Unsupported primitive mode ("+(0,n.i7)(N.WR,h)+"). Skipping primitive.");if(!i.hasPositions(e))return void o.A.getLogger("esri.views.3d.glTF").warn("Skipping primitive without POSITION vertex attribute.");const w=await i.decode(e,r);p||=!!w;const g=i.getPositionData(e,r,w),b=i.getMaterial(e,r,a),y=i.hasNormals(e)?i.getNormalData(e,r,w):null,x=i.hasTangents(e)?i.getTangentData(e,r,w):null,_=i.hasTextureCoordinates(e)?i.getTextureCoordinates(e,r,w):null,S=i.hasVertexColors(e)?i.getVertexColors(e,r,w):null,A=i.getIndexData(e,r,w),O={name:f,transform:(0,s.o8)(t),attributes:{position:await g,normal:y?await y:null,texCoord0:_?await _:null,color:S?await S:null,tangent:x?await x:null},indices:await A,primitiveType:T,material:K(l,await b,u)};let v=null;null!=l.meta?.ESRI_lod&&"screenSpaceRadius"===l.meta.ESRI_lod.metric&&(v=l.meta.ESRI_lod.thresholds[c]),l.lods[c]=l.lods[c]||{parts:[],name:f,lodThreshold:v},l.lods[c].parts[m]=O});for(const e of l.lods)e.parts=e.parts.filter(e=>!!e);const m=await i.getLoadedBuffersSize();return{model:l,meta:{isEsriSymbolResource:c,uri:i.uri,ESRI_webstyle:f,isDracoDecompressed:p},customMeta:{},usedMemory:m}}function k(e){const t=e.json;let r=null;return t.nodes.forEach(e=>{const t=e.extras;null!=t&&(t.ESRI_proxyEllipsoid||t.ESRI_lod)&&(r=t)}),r}async function V(e,t){const r=e.json,n=r.scenes[r.scene||0].nodes,s=n.length>1,a=[];for(const e of n){const t=r.nodes[e];a.push(i(e,0)),z(t)&&!s&&t.extensions.MSFT_lod.ids.forEach((e,t)=>i(e,t+1))}async function i(n,s){const u=r.nodes[n],l=e.getNodeTransform(n);if(null!=u.weights&&o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Morph targets are not supported."),null!=u.mesh){const e=r.meshes[u.mesh];for(const r of e.primitives)a.push(t(r,l,s,e.name))}for(const e of u.children||[])a.push(i(e,s))}await Promise.all(a)}function z(e){return e.extensions?.MSFT_lod&&Array.isArray(e.extensions.MSFT_lod.ids)}function K(e,t,r){const o=t=>{const o=`${r}_tex_${t&&t.id}${t?.name?"_"+t.name:""}`;if(t&&!e.textures.has(o)){const r=function(e,t={}){return{data:e,parameters:{wrap:{s:10497,t:10497,...t.wrap},noUnpackFlip:!0,mipmap:!1,...t}}}(t.data,{wrap:{s:t.wrapS,t:t.wrapT},mipmap:$.has(t.minFilter),noUnpackFlip:!0});e.textures.set(o,r)}return o},n=`${r}_mat_${t.id}_${t.name}`;if(!e.materials.has(n)){const r=function(e={}){return{color:[1,1,1],opacity:1,alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1,castShadows:!0,receiveShadows:!0,receiveAmbientOcclusion:!0,colorTexture:null,normalTexture:null,occlusionTexture:null,emissiveTexture:null,emissiveStrengthKHR:null,metallicRoughnessTexture:null,colorTextureTransform:null,normalTextureTransform:null,occlusionTextureTransform:null,emissiveTextureTransform:null,metallicRoughnessTextureTransform:null,emissiveFactor:[0,0,0],metallicFactor:1,roughnessFactor:1,colorMixMode:"multiply",...e}}({color:[t.color[0],t.color[1],t.color[2]],opacity:t.color[3],alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,colorMixMode:t.ESRI_externalColorMixMode,colorTexture:t.colorTexture?o(t.colorTexture):void 0,normalTexture:t.normalTexture?o(t.normalTexture):void 0,occlusionTexture:t.occlusionTexture?o(t.occlusionTexture):void 0,emissiveTexture:t.emissiveTexture?o(t.emissiveTexture):void 0,metallicRoughnessTexture:t.metallicRoughnessTexture?o(t.metallicRoughnessTexture):void 0,emissiveFactor:[t.emissiveFactor[0],t.emissiveFactor[1],t.emissiveFactor[2]],emissiveStrengthKHR:t.emissiveStrengthKHR,colorTextureTransform:t.colorTextureTransform,normalTextureTransform:t.normalTextureTransform,occlusionTextureTransform:t.occlusionTextureTransform,emissiveTextureTransform:t.emissiveTextureTransform,metallicRoughnessTextureTransform:t.metallicRoughnessTextureTransform,metallicFactor:t.metallicFactor,roughnessFactor:t.roughnessFactor,receiveShadows:t.receiveShadows,receiveAmbientOcclusion:t.receiveAmbientOcclusion});e.materials.set(n,r)}return n}const $=new Set([9987,9985])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1698],{24045:(e,t,r)=>{function o(e,t){const r=e.count;t||(t=new e.TypedArrayConstructor(r));for(let o=0;o<r;o++)t[o]=e.get(o);return t}r.d(t,{m:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,makeDense:o},Symbol.toStringTag,{value:"Module"}))},51698:(e,t,r)=>{r.d(t,{loadGLTF:()=>j});var o=r(53966),n=r(93637),s=r(9093),a=r(49186),i=r(91869),u=r(74887),l=r(84952),c=r(46140),f=r(58083),d=r(67026),p=r(82534),m=r(13030),h=r(24045),T=(r(44208),r(2741));let w;function g(){return w??=(async()=>{const{default:e}=await r.e(2423).then(r.bind(r,2423));return await e({locateFile:e=>(0,T.s)(`esri/libs/dracoMeshDecoder/${e}`)})})(),w}class b{constructor(e){this._data=e,this._offset4=0,this._dataUint32=new Uint32Array(this._data,0,Math.floor(this._data.byteLength/4))}readUint32(){const e=this._offset4;return this._offset4+=1,this._dataUint32[e]}readUint8Array(e){const t=4*this._offset4;return this._offset4+=e/4,new Uint8Array(this._data,t,e)}remainingBytes(){return this._data.byteLength-4*this._offset4}}var y=r(21818);const x={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1},_={pbrMetallicRoughness:x,emissiveFactor:[0,0,0],alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1},S={ESRI_externalColorMixMode:"tint",ESRI_receiveShadows:!0,ESRI_receiveAmbientOcclusion:!0},A=(e={})=>{const t={...x,...e.pbrMetallicRoughness},r=function(e){switch(e.ESRI_externalColorMixMode){case"multiply":case"tint":case"ignore":case"replace":break;default:(0,y.Xb)(e.ESRI_externalColorMixMode),e.ESRI_externalColorMixMode="tint"}return e}({...S,...e.extras});return{..._,...e,pbrMetallicRoughness:t,extras:r}},O={magFilter:9729,minFilter:9987,wrapS:10497,wrapT:10497},v=e=>({...O,...e});var R=r(51530),N=r(63907);const C=1179937895;class E{constructor(e,t,r,o){if(this._context=e,this.uri=t,this.json=r,this._glbBuffer=o,this._bufferLoaders=new Map,this._textureLoaders=new Map,this._dracoBuffersSize=0,this._textureCache=new Map,this._materialCache=new Map,this._nodeParentMap=new Map,this._nodeTransformCache=new Map,this._supportedExtensions=["KHR_texture_basisu","KHR_texture_transform","KHR_draco_mesh_compression","KHR_materials_emissive_strength"],this._baseUri=function(e){let t,r;return e.replace(/^(.*\/)?([^/]*)$/,(e,o,n)=>(t=o||"",r=n||"","")),{dirPart:t,filePart:r}}(this.uri).dirPart,this._checkVersionSupported(),this._checkRequiredExtensionsSupported(),null==r.scenes)throw new a.A("gltf-loader-unsupported-feature","Scenes must be defined.");if(null==r.meshes)throw new a.A("gltf-loader-unsupported-feature","Meshes must be defined");if(null==r.nodes)throw new a.A("gltf-loader-unsupported-feature","Nodes must be defined.");this._computeNodeParents()}static async load(e,t,r){if((0,l.DB)(t)){const r=(0,l.r$)(t);if(r&&"model/gltf-binary"!==r.mediaType)try{const o=JSON.parse(r.isBase64?atob(r.data):r.data);return new E(e,t,o)}catch{}const o=(0,l.lJ)(t);if(E._isGLBData(o))return this._fromGLBData(e,t,o)}if(G.test(t)||"gltf"===r?.expectedType){const o=await e.loadJSON(t,r);return new E(e,t,o)}const o=await e.loadBinary(t,r);if(E._isGLBData(o))return this._fromGLBData(e,t,o);if(P.test(t)||"glb"===r?.expectedType)throw new a.A("gltf-loader-invalid-glb","This is not a valid glb file.");const n=await e.loadJSON(t,r);return new E(e,t,n)}static _isGLBData(e){if(null==e)return!1;const t=new b(e);return t.remainingBytes()>=4&&t.readUint32()===C}static async _fromGLBData(e,t,r){const o=await E._parseGLBData(r);return new E(e,t,o.json,o.binaryData)}static async _parseGLBData(e){const t=new b(e);if(t.remainingBytes()<12)throw new a.A("gltf-loader-error","glb binary data is insufficiently large.");const r=t.readUint32(),n=t.readUint32(),s=t.readUint32();if(r!==C)throw new a.A("gltf-loader-error","Magic first 4 bytes do not fit to expected glb value.");if(e.byteLength<s)throw new a.A("gltf-loader-error","glb binary data is smaller than header specifies.");if(2!==n)throw new a.A("gltf-loader-unsupported-feature","An unsupported glb container version was detected. Only version 2 is supported.");let i,u,l=0;for(;t.remainingBytes()>=8;){const e=t.readUint32(),r=t.readUint32();if(0===l){if(1313821514!==r)throw new a.A("gltf-loader-error","First glb chunk must be JSON.");if(e<0)throw new a.A("gltf-loader-error","No JSON data found.");i=await(0,R.KB)(t.readUint8Array(e))}else if(1===l){if(5130562!==r)throw new a.A("gltf-loader-unsupported-feature","Second glb chunk expected to be BIN.");u=t.readUint8Array(e)}else o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] More than 2 glb chunks detected. Skipping.");l+=1}if(!i)throw new a.A("gltf-loader-error","No glb JSON chunk detected.");return{json:i,binaryData:u}}async getBuffer(e,t){const r=this.json.buffers[e];if(null==r.uri){if(null==this._glbBuffer)throw new a.A("gltf-loader-error","glb buffer not present");return this._glbBuffer}const o=await this._getBufferLoader(e,t);if(o.byteLength!==r.byteLength)throw new a.A("gltf-loader-error","Buffer byte lengths should match.");return o}async _getBufferLoader(e,t){const r=this._bufferLoaders.get(e);if(r)return r;const o=this.json.buffers[e].uri,n=this._context.loadBinary(this._resolveUri(o),t).then(e=>new Uint8Array(e));return this._bufferLoaders.set(e,n),n}_validateAccessor(e){if(!this.json.accessors)throw new a.A("gltf-loader-unsupported-feature","Accessors missing.");const t=this.json.accessors[e];if(t.type in["MAT2","MAT3","MAT4"])throw new a.A("gltf-loader-unsupported-feature",`AttributeType ${t.type} is not supported`);return t}_getComponentInfo(e,t){const r=F[e.type],o=t?.componentType||e.componentType,n=D[o];return{componentType:o,componentCount:r,componentByteSize:n,denseByteStride:r*n}}getDracoAccessor(e,t){const r=this._validateAccessor(e),o=t.accessorInfos.get(e),{componentType:n,componentCount:s,componentByteSize:a,denseByteStride:i}=this._getComponentInfo(r,o);return{raw:t.data.buffer,byteStride:i,byteOffset:t.data.byteOffset+(o?.byteOffset||0),entryCount:o?.count??r.count,isDenselyPacked:!0,componentCount:s,componentByteSize:a,componentType:n,min:r.min,max:r.max,normalized:!!r.normalized}}async getAccessor(e,t){const r=this._validateAccessor(e);if(null==r?.bufferView)throw new a.A("gltf-loader-unsupported-feature","Some accessor does not specify a bufferView.");const{componentCount:o,componentByteSize:n,denseByteStride:s}=this._getComponentInfo(r),i=this.json.bufferViews[r.bufferView],u=await this.getBuffer(i.buffer,t),l=i.byteStride||s;return{raw:u.buffer,byteStride:l,byteOffset:u.byteOffset+(i.byteOffset||0)+(r.byteOffset||0),entryCount:r.count,isDenselyPacked:l===s,componentCount:o,componentByteSize:n,componentType:r.componentType,min:r.min,max:r.max,normalized:!!r.normalized}}async getIndexData(e,t,r){if(null==e.indices)return;const o=e.indices,n=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(n.isDenselyPacked)switch(n.componentType){case N.pe.UNSIGNED_BYTE:return new Uint8Array(n.raw,n.byteOffset,n.entryCount);case N.pe.UNSIGNED_SHORT:return new Uint16Array(n.raw,n.byteOffset,n.entryCount);case N.pe.UNSIGNED_INT:return new Uint32Array(n.raw,n.byteOffset,n.entryCount)}else switch(n.componentType){case N.pe.UNSIGNED_BYTE:return(0,h.m)(U(m.SL,n));case N.pe.UNSIGNED_SHORT:return(0,h.m)(U(m.h,n));case N.pe.UNSIGNED_INT:return(0,h.m)(U(m.P,n))}}async getPositionData(e,t,r){if(null==e.attributes.POSITION)throw new a.A("gltf-loader-unsupported-feature","No POSITION vertex data found.");const o=e.attributes.POSITION,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for POSITION vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","POSITION vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return U(m.xs,s)}async getNormalData(e,t,r){if(null==e.attributes.NORMAL)throw new a.A("gltf-loader-error","No NORMAL vertex data found.");const o=e.attributes.NORMAL,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for NORMAL vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","NORMAL vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return U(m.xs,s)}async getTangentData(e,t,r){if(null==e.attributes.TANGENT)throw new a.A("gltf-loader-error","No TANGENT vertex data found.");const o=e.attributes.TANGENT,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for TANGENT vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(4!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","TANGENT vertex attribute must have 4 components, but found "+s.componentCount.toFixed());return U(m.Eq,s)}async getTextureCoordinates(e,t,r){if(null==e.attributes.TEXCOORD_0)throw new a.A("gltf-loader-error","No TEXCOORD_0 vertex data found.");const o=e.attributes.TEXCOORD_0,n=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(2!==n.componentCount)throw new a.A("gltf-loader-unsupported-feature","TEXCOORD_0 vertex attribute must have 2 components, but found "+n.componentCount.toFixed());if(n.componentType===N.pe.FLOAT)return U(m.gH,n);if(!n.normalized)throw new a.A("gltf-loader-unsupported-feature","Integer component types are only supported for a normalized accessor for TEXCOORD_0.");return function(e){switch(e.componentType){case N.pe.BYTE:return new m.D6(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_BYTE:return new m.LC(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.SHORT:return new m.mJ(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_SHORT:return new m.Yi(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_INT:return new m.An(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.FLOAT:return new m.gH(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount)}}(n)}async getVertexColors(e,t,r){if(null==e.attributes.COLOR_0)throw new a.A("gltf-loader-error","No COLOR_0 vertex data found.");const o=e.attributes.COLOR_0,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(4!==s.componentCount&&3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","COLOR_0 attribute must have 3 or 4 components, but found "+s.componentCount.toFixed());if(4===s.componentCount){if(s.componentType===N.pe.FLOAT)return U(m.Eq,s);if(s.componentType===N.pe.UNSIGNED_BYTE)return U(m.XP,s);if(s.componentType===N.pe.UNSIGNED_SHORT)return U(m.Uz,s)}else if(3===s.componentCount){if(s.componentType===N.pe.FLOAT)return U(m.xs,s);if(s.componentType===N.pe.UNSIGNED_BYTE)return U(m.eI,s);if(s.componentType===N.pe.UNSIGNED_SHORT)return U(m.nS,s)}throw new a.A("gltf-loader-unsupported-feature","Unsupported component type for COLOR_0 attribute: "+(0,n.i7)(N.pe,s.componentType))}hasPositions(e){return void 0!==e.attributes.POSITION}hasNormals(e){return void 0!==e.attributes.NORMAL}hasVertexColors(e){return void 0!==e.attributes.COLOR_0}hasTextureCoordinates(e){return void 0!==e.attributes.TEXCOORD_0}hasTangents(e){return void 0!==e.attributes.TANGENT}async getMaterial(e,t,r,o){let n=e.material?this._materialCache.get(e.material):void 0;if(!n){const s=null!=e.material?A(this.json.materials[e.material]):A(),a=s.pbrMetallicRoughness,i=this.hasVertexColors(e),u=this.getTexture(a.baseColorTexture,t),l=this.getTexture(s.normalTexture,t),c=r?this.getTexture(s.occlusionTexture,t):void 0,f=o?this.getTexture(s.emissiveTexture,t):void 0,d=r?this.getTexture(a.metallicRoughnessTexture,t):void 0,p=null!=e.material?e.material:-1;n={alphaMode:s.alphaMode,alphaCutoff:s.alphaCutoff,color:a.baseColorFactor,doubleSided:!!s.doubleSided,colorTexture:await u,normalTexture:await l,name:s.name,id:p,occlusionTexture:await c,emissiveTexture:await f,emissiveFactor:s.emissiveFactor,emissiveStrengthKHR:s.extensions?.KHR_materials_emissive_strength?.emissiveStrength,metallicFactor:a.metallicFactor,roughnessFactor:a.roughnessFactor,metallicRoughnessTexture:await d,hasVertexColors:i,ESRI_externalColorMixMode:s.extras.ESRI_externalColorMixMode,colorTextureTransform:a?.baseColorTexture?.extensions?.KHR_texture_transform,normalTextureTransform:s.normalTexture?.extensions?.KHR_texture_transform,occlusionTextureTransform:s.occlusionTexture?.extensions?.KHR_texture_transform,emissiveTextureTransform:s.emissiveTexture?.extensions?.KHR_texture_transform,metallicRoughnessTextureTransform:a?.metallicRoughnessTexture?.extensions?.KHR_texture_transform,receiveAmbientOcclusion:s.extras.ESRI_receiveAmbientOcclusion,receiveShadows:s.extras.ESRI_receiveShadows}}return n}async decode(e,t){const r=e.extensions?.KHR_draco_mesh_compression;if(!r)return;if(null==e.indices)throw new a.A("gltf-loader-error","Found Draco compressed primitive without indices.");const o=this.json.bufferViews[r.bufferView],n=await this.getBuffer(o.buffer,t),s=(await g()).decode(new Uint8Array(n.buffer,n.byteOffset+(o.byteOffset||0),o.byteLength));this._bufferLoaders.delete(o.buffer);const i=new Map([[e.indices,s.indices],[e.attributes.POSITION,s.positions]]);return e.attributes.TEXCOORD_0&&i.set(e.attributes.TEXCOORD_0,s.uvs),e.attributes.NORMAL&&i.set(e.attributes.NORMAL,s.normals),e.attributes.COLOR_0&&i.set(e.attributes.COLOR_0,s.colors),e.attributes.TANGENT&&i.set(e.attributes.TANGENT,s.tangents),this._dracoBuffersSize+=s.buffer.byteLength,{data:s.buffer,accessorInfos:i}}async getTexture(e,t){if(!e)return;if(0!==(e.texCoord||0))throw new a.A("gltf-loader-unsupported-feature","Only TEXCOORD with index 0 is supported.");const r=e.index,o=this.json.textures[r],n=v(null!=o.sampler?this.json.samplers[o.sampler]:{}),s=B(o),u=this.json.images[s],l=await this._loadTextureImageData(r,o,t);return(0,i.tE)(this._textureCache,r,()=>{const e=e=>33071===e||33648===e||10497===e,t=e=>{throw new a.A("gltf-loader-error",`Unexpected TextureSampler WrapMode: ${e}`)};return{data:l,wrapS:e(n.wrapS)?n.wrapS:t(n.wrapS),wrapT:e(n.wrapT)?n.wrapT:t(n.wrapT),minFilter:n.minFilter,name:u.name,id:r}})}getNodeTransform(e){if(void 0===e)return I;let t=this._nodeTransformCache.get(e);if(!t){const r=this.getNodeTransform(this._getNodeParent(e)),o=this.json.nodes[e];o.matrix?t=(0,f.lw)((0,s.vt)(),r,o.matrix):o.translation||o.rotation||o.scale?(t=(0,s.o8)(r),o.translation&&(0,f.Tl)(t,t,o.translation),o.rotation&&(M[3]=(0,d.Xd)(M,o.rotation),(0,f.e$)(t,t,M[3],M)),o.scale&&(0,f.hs)(t,t,o.scale)):t=(0,s.o8)(r),this._nodeTransformCache.set(e,t)}return t}_resolveUri(e){return(0,l.s2)(e,this._baseUri)}_getNodeParent(e){return this._nodeParentMap.get(e)}_checkVersionSupported(){const e=c.R.parse(this.json.asset.version,"glTF");L.validate(e)}_checkRequiredExtensionsSupported(){const e=this.json;if(e.extensionsRequired&&!e.extensionsRequired.every(e=>this._supportedExtensions.includes(e)))throw new a.A("gltf-loader-unsupported-feature","gltf loader was not able to load unsupported feature. Required extensions: "+e.extensionsRequired.join(", "))}_computeNodeParents(){this.json.nodes.forEach((e,t)=>{e.children&&e.children.forEach(e=>{this._nodeParentMap.set(e,t)})})}async _loadTextureImageData(e,t,r){const o=this._textureLoaders.get(e);if(o)return o;const n=this._createTextureLoader(t,r);return this._textureLoaders.set(e,n),n}async _createTextureLoader(e,t){const r=B(e),o=this.json.images[r];if(o.uri){if(o.uri.endsWith(".ktx2")){const e=await this._context.loadBinary(this._resolveUri(o.uri),t);return new R.Xi(new Uint8Array(e))}return this._context.loadImage(this._resolveUri(o.uri),t)}if(null==o.bufferView)throw new a.A("gltf-loader-unsupported-feature","Image bufferView must be defined.");if(null==o.mimeType)throw new a.A("gltf-loader-unsupported-feature","Image mimeType must be defined.");const n=this.json.bufferViews[o.bufferView],s=await this.getBuffer(n.buffer,t);if(null!=n.byteStride)throw new a.A("gltf-loader-unsupported-feature","byteStride not supported for image buffer");const i=s.byteOffset+(n.byteOffset||0);return(0,R.pn)(new Uint8Array(s.buffer,i,n.byteLength),o.mimeType)}async getLoadedBuffersSize(){if(this._glbBuffer)return this._glbBuffer.byteLength;const e=await(0,u.nA)(Array.from(this._bufferLoaders.values())),t=await(0,u.nA)(Array.from(this._textureLoaders.values()));return e.reduce((e,t)=>e+(t?.byteLength??0),0)+this._dracoBuffersSize+t.reduce((e,t)=>e+(t?(0,R.x3)(t)?t.data.byteLength:t.width*t.height*4:0),0)}}const I=(0,f.hM)((0,s.vt)(),Math.PI/2),L=new c.R(2,0,"glTF"),M=(0,p.vt)(),F={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},D={[N.pe.BYTE]:1,[N.pe.UNSIGNED_BYTE]:1,[N.pe.SHORT]:2,[N.pe.UNSIGNED_SHORT]:2,[N.pe.HALF_FLOAT]:2,[N.pe.FLOAT]:4,[N.pe.INT]:4,[N.pe.UNSIGNED_INT]:4};function U(e,t){return new e(t.raw,t.byteOffset,t.byteStride,t.byteOffset+t.byteStride*(t.entryCount-1)+t.componentByteSize*t.componentCount)}function B(e){if(null!=e.extensions?.KHR_texture_basisu)return e.extensions.KHR_texture_basisu.source;if(null!==e.source)return e.source;throw new a.A("gltf-loader-unsupported-feature","Source is expected to be defined for a texture. It can also be omitted in favour of an KHR_texture_basisu extension tag.")}const G=/\.gltf$/i,P=/\.glb$/i;let H=0;async function j(e,t,r={},a=!0,i=!0){const u=await E.load(e,t,r),l="gltf_"+H++,c={lods:[],materials:new Map,textures:new Map,meta:k(u)},f=!(!u.json.asset.extras||"symbolResource"!==u.json.asset.extras.ESRI_type),d=u.json.asset.extras?.ESRI_webstyleSymbol?.webstyle,p=new Map;let m=!1;await V(u,async(e,t,f,d)=>{const h=p.get(f)??0;p.set(f,h+1);const T=void 0!==e.mode?e.mode:N.WR.TRIANGLES,w=T===N.WR.TRIANGLES||T===N.WR.TRIANGLE_STRIP||T===N.WR.TRIANGLE_FAN?T:null;if(null==w)return void o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Unsupported primitive mode ("+(0,n.i7)(N.WR,T)+"). Skipping primitive.");if(!u.hasPositions(e))return void o.A.getLogger("esri.views.3d.glTF").warn("Skipping primitive without POSITION vertex attribute.");const g=await u.decode(e,r);m||=!!g;const b=u.getPositionData(e,r,g),y=u.getMaterial(e,r,a,i),x=u.hasNormals(e)?u.getNormalData(e,r,g):null,_=u.hasTangents(e)?u.getTangentData(e,r,g):null,S=u.hasTextureCoordinates(e)?u.getTextureCoordinates(e,r,g):null,A=u.hasVertexColors(e)?u.getVertexColors(e,r,g):null,O=u.getIndexData(e,r,g),v={name:d,transform:(0,s.o8)(t),attributes:{position:await b,normal:x?await x:null,texCoord0:S?await S:null,color:A?await A:null,tangent:_?await _:null},indices:await O,primitiveType:w,material:K(c,await y,l)};let R=null;null!=c.meta?.ESRI_lod&&"screenSpaceRadius"===c.meta.ESRI_lod.metric&&(R=c.meta.ESRI_lod.thresholds[f]),c.lods[f]=c.lods[f]||{parts:[],name:d,lodThreshold:R},c.lods[f].parts[h]=v});for(const e of c.lods)e.parts=e.parts.filter(e=>!!e);const h=await u.getLoadedBuffersSize();return{model:c,meta:{isEsriSymbolResource:f,uri:u.uri,ESRI_webstyle:d,isDracoDecompressed:m},customMeta:{},usedMemory:h}}function k(e){const t=e.json;let r=null;return t.nodes.forEach(e=>{const t=e.extras;null!=t&&(t.ESRI_proxyEllipsoid||t.ESRI_lod)&&(r=t)}),r}async function V(e,t){const r=e.json,n=r.scenes[r.scene||0].nodes,s=n.length>1,a=[];for(const e of n){const t=r.nodes[e];a.push(i(e,0)),z(t)&&!s&&t.extensions.MSFT_lod.ids.forEach((e,t)=>i(e,t+1))}async function i(n,s){const u=r.nodes[n],l=e.getNodeTransform(n);if(null!=u.weights&&o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Morph targets are not supported."),null!=u.mesh){const e=r.meshes[u.mesh];for(const r of e.primitives)a.push(t(r,l,s,e.name))}for(const e of u.children||[])a.push(i(e,s))}await Promise.all(a)}function z(e){return e.extensions?.MSFT_lod&&Array.isArray(e.extensions.MSFT_lod.ids)}function K(e,t,r){const o=t=>{const o=`${r}_tex_${t&&t.id}${t?.name?"_"+t.name:""}`;if(t&&!e.textures.has(o)){const r=function(e,t={}){return{data:e,parameters:{wrap:{s:10497,t:10497,...t.wrap},noUnpackFlip:!0,mipmap:!1,...t}}}(t.data,{wrap:{s:t.wrapS,t:t.wrapT},mipmap:$.has(t.minFilter),noUnpackFlip:!0});e.textures.set(o,r)}return o},n=`${r}_mat_${t.id}_${t.name}`;if(!e.materials.has(n)){const r=function(e={}){return{color:[1,1,1],opacity:1,alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1,castShadows:!0,receiveShadows:!0,receiveAmbientOcclusion:!0,colorTexture:null,normalTexture:null,occlusionTexture:null,emissiveTexture:null,emissiveStrengthKHR:null,metallicRoughnessTexture:null,colorTextureTransform:null,normalTextureTransform:null,occlusionTextureTransform:null,emissiveTextureTransform:null,metallicRoughnessTextureTransform:null,emissiveFactor:[0,0,0],metallicFactor:1,roughnessFactor:1,colorMixMode:"multiply",...e}}({color:[t.color[0],t.color[1],t.color[2]],opacity:t.color[3],alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,colorMixMode:t.ESRI_externalColorMixMode,colorTexture:t.colorTexture?o(t.colorTexture):void 0,normalTexture:t.normalTexture?o(t.normalTexture):void 0,occlusionTexture:t.occlusionTexture?o(t.occlusionTexture):void 0,emissiveTexture:t.emissiveTexture?o(t.emissiveTexture):void 0,metallicRoughnessTexture:t.metallicRoughnessTexture?o(t.metallicRoughnessTexture):void 0,emissiveFactor:[t.emissiveFactor[0],t.emissiveFactor[1],t.emissiveFactor[2]],emissiveStrengthKHR:t.emissiveStrengthKHR,colorTextureTransform:t.colorTextureTransform,normalTextureTransform:t.normalTextureTransform,occlusionTextureTransform:t.occlusionTextureTransform,emissiveTextureTransform:t.emissiveTextureTransform,metallicRoughnessTextureTransform:t.metallicRoughnessTextureTransform,metallicFactor:t.metallicFactor,roughnessFactor:t.roughnessFactor,receiveShadows:t.receiveShadows,receiveAmbientOcclusion:t.receiveAmbientOcclusion});e.materials.set(n,r)}return n}const $=new Set([9987,9985])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9265],{22802:(e,t,r)=>{r.d(t,{O:()=>n});var s=r(39117);class n extends s.I{getOperatorType(){return 7}execute(e,t,r,n){return(0,s.J)(e,t,r,2,n)}}},76061:(e,t,r)=>{r.d(t,{G:()=>s,S:()=>n});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class n extends s{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},85445:(e,t,r)=>{r.r(t),r.d(t,{execute:()=>m});var s=r(22802),n=r(83299);const o=new s.O;function m(e,t){const r=(0,n.fromGeometry)(e);return o.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(t),r.getSpatialReference(),null)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9265],{22802:(e,t,r)=>{r.d(t,{O:()=>n});var s=r(39117);class n extends s.I{getOperatorType(){return 7}execute(e,t,r,n){return(0,s.J)(e,t,r,2,n)}}},76061:(e,t,r)=>{r.d(t,{G:()=>s,S:()=>n});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class n extends s{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},85445:(e,t,r)=>{r.r(t),r.d(t,{execute:()=>m});var s=r(22802),n=r(34772);const o=new s.O;function m(e,t){const r=(0,n.fromGeometry)(e);return o.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(t),r.getSpatialReference(),null)}}}]);