@arcgis/core 6.0.0-next.55 → 6.0.0-next.57

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 (298) hide show
  1. package/arcgisGlobal.d.ts +1 -0
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/00c227bcecc28fe278bb.js +1 -0
  4. package/assets/esri/core/workers/chunks/033b9fcd9833db3b6e7d.js +1 -0
  5. package/assets/esri/core/workers/chunks/0978e12dd6a1cbc50b80.js +1 -0
  6. package/assets/esri/core/workers/chunks/{88df1b8b295d3aed649f.js → 10499abb7678e95d9f05.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{e956845255bce0910944.js → 1507297550c3cd1268e2.js} +1 -1
  8. package/assets/esri/core/workers/chunks/1afc8820c283ef785729.js +1 -0
  9. package/assets/esri/core/workers/chunks/1c0f5c42331fb6fc26cb.js +1 -0
  10. package/assets/esri/core/workers/chunks/1c874f86bfd0963aa3d2.js +1 -0
  11. package/assets/esri/core/workers/chunks/2a84c9a81ec2bed3d4e5.js +1 -0
  12. package/assets/esri/core/workers/chunks/2cd2fcf4a37d180d5d5c.js +1 -0
  13. package/assets/esri/core/workers/chunks/2f31766bc0f9d1d70c5a.js +1 -0
  14. package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +1 -0
  15. package/assets/esri/core/workers/chunks/35109db6a6be66f895f7.js +1 -0
  16. package/assets/esri/core/workers/chunks/373b140f92eda3857f82.js +1 -0
  17. package/assets/esri/core/workers/chunks/38bba952c38af5a150e7.js +1 -0
  18. package/assets/esri/core/workers/chunks/3982409149571a827390.js +1 -0
  19. package/assets/esri/core/workers/chunks/3aea09191b737dc1de70.js +1 -0
  20. package/assets/esri/core/workers/chunks/3d851710f7fcc27c5b60.js +2 -0
  21. package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +1 -0
  22. package/assets/esri/core/workers/chunks/3fc4b7d0ee460fc96176.js +1 -0
  23. package/assets/esri/core/workers/chunks/457bd1bd37c67b61efe8.js +1 -0
  24. package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +1 -0
  25. package/assets/esri/core/workers/chunks/{e61082f56c08abe54b3a.js → 5954f02c3901b28d8e73.js} +1 -1
  26. package/assets/esri/core/workers/chunks/5ba6007c3c49a8153256.js +1 -0
  27. package/assets/esri/core/workers/chunks/5bdd95eeb8f34dbf26f2.js +2 -0
  28. package/assets/esri/core/workers/chunks/{ced5dfb2bf46fc5eac8c.js → 5e47026c681238038955.js} +2 -2
  29. package/assets/esri/core/workers/chunks/{2baf35b1b19482d603b5.js → 5f7505ada0991cfbdd84.js} +1 -1
  30. package/assets/esri/core/workers/chunks/601d668e70c5d72fe58c.js +1 -0
  31. package/assets/esri/core/workers/chunks/651e33be8bb3995d749f.js +1 -0
  32. package/assets/esri/core/workers/chunks/{542a9c414c99d84d52ab.js → 6a202ef9ba9b89e09153.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{0826feebdca8a31eb630.js → 6ba6fece5c11fe2a6ace.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{5eb69e2895e5aec81051.js → 6fd10891506925560443.js} +1 -1
  35. package/assets/esri/core/workers/chunks/721f43554b9654481de7.js +1 -0
  36. package/assets/esri/core/workers/chunks/75274ac3ddf7c45f47d7.js +1 -0
  37. package/assets/esri/core/workers/chunks/7b6fd287e7043ad50f4e.js +1 -0
  38. package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +1 -0
  39. package/assets/esri/core/workers/chunks/80d1267606383ae537f2.js +1 -0
  40. package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +1 -0
  41. package/assets/esri/core/workers/chunks/{c3c0f24a9e0047232ae1.js → 8679dfc0c53355b6feb0.js} +1 -1
  42. package/assets/esri/core/workers/chunks/8920d0b11951b57d6a66.js +1 -0
  43. package/assets/esri/core/workers/chunks/8a636dc51372e14c98f5.js +1 -0
  44. package/assets/esri/core/workers/chunks/{14259910f44c08fd5bbd.js → 9117c9b720c9ba6e7a6e.js} +1 -1
  45. package/assets/esri/core/workers/chunks/92d97e0fcc20dd5f5ac4.js +1 -0
  46. package/assets/esri/core/workers/chunks/9ca84fa9423654061d05.js +1 -0
  47. package/assets/esri/core/workers/chunks/9e372af03d62fa5ad10e.js +1 -0
  48. package/assets/esri/core/workers/chunks/a22458e5272332d86cb9.js +1 -0
  49. package/assets/esri/core/workers/chunks/{3ea480cebf8ee56228a5.js → a7dfca326883384d2751.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{723d8316f5d4b6ce2942.js → a9539393e2f1812a973a.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{be0b8bb4f09aae6ff5de.js → ab784764ddf9d7f693a1.js} +1 -1
  52. package/assets/esri/core/workers/chunks/b10c534cbe311d17b7d5.js +1 -0
  53. package/assets/esri/core/workers/chunks/b38b6fe08a367e9de4f5.js +1 -0
  54. package/assets/esri/core/workers/chunks/{4e651869e9a196494694.js → b6e628b5d2643af4c19b.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{b37ab6b1cb4cfc85cd9d.js → b7828d7e2c5b75644057.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{ec465abb0344ad719e9d.js → bd8e329ec74d921d311a.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{9e508f930086d2ef5f22.js → be0133fa63c5d6545a7f.js} +40 -41
  58. package/assets/esri/core/workers/chunks/{56e6e70aa40e51827290.js → c3f94024c6c9eed9f273.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{6d17b45022dfd2548098.js → c5ddf8b347c31fe772a3.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{ee9af58ae202b803bba7.js → c7a0c4ca37ebd1d98cf1.js} +1 -1
  61. package/assets/esri/core/workers/chunks/cb0e3614b78c78040662.js +1 -0
  62. package/assets/esri/core/workers/chunks/d22e3b5d836dffdf91cc.js +1 -0
  63. package/assets/esri/core/workers/chunks/d7763c42754152510e13.js +2 -0
  64. package/assets/esri/core/workers/chunks/e0341def2d81e679a200.js +1 -0
  65. package/assets/esri/core/workers/chunks/e42e9dd3c933f5f864ab.js +1 -0
  66. package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +1 -0
  67. package/assets/esri/core/workers/chunks/e74586b074d0fa6abb4b.js +1 -0
  68. package/assets/esri/core/workers/chunks/e7dff025780726d5feae.js +1 -0
  69. package/assets/esri/core/workers/chunks/e96fa029acba59c04e4e.js +2 -0
  70. package/assets/esri/core/workers/chunks/f4fcf87da4495584223d.js +1 -0
  71. package/assets/esri/core/workers/chunks/f989588dfdbb69056491.js +1 -0
  72. package/assets/esri/core/workers/chunks/fc5b920f9756e11c2f88.js +1 -0
  73. package/assets/esri/core/workers/chunks/fdfbd201be372d3796bf.js +2 -0
  74. package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +1 -0
  75. package/chunks/BlendLayers.glsl.js +1 -1
  76. package/chunks/ColorMaterial.glsl.js +14 -14
  77. package/chunks/Component.glsl.js +38 -37
  78. package/chunks/DefaultMaterial.glsl.js +15 -15
  79. package/chunks/GlobalIllumination.glsl.js +12 -11
  80. package/chunks/GlobalIlluminationBlur.glsl.js +6 -4
  81. package/chunks/HUDMaterial.glsl.js +3 -3
  82. package/chunks/Path.glsl.js +15 -15
  83. package/chunks/Pattern.glsl.js +20 -20
  84. package/chunks/RasterColorizer.glsl.js +1 -1
  85. package/chunks/ShadowHighlight.glsl.js +1 -1
  86. package/chunks/Terrain.glsl.js +28 -27
  87. package/chunks/Water.glsl.js +30 -20
  88. package/chunks/pdf.js +57 -0
  89. package/config.js +1 -1
  90. package/core/accessorSupport/write.js +1 -1
  91. package/core/memoryEstimations.js +1 -1
  92. package/core/scheduling.js +1 -1
  93. package/interfaces.d.ts +0 -1
  94. package/kernel.js +1 -1
  95. package/layers/LinkChartLayer.js +1 -1
  96. package/layers/VoxelWasmPerSceneView.js +1 -1
  97. package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
  98. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -56
  99. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  100. package/layers/geospatialPDF/parserUtils.js +2 -0
  101. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  102. package/layers/graphics/dehydratedFeatures.js +1 -1
  103. package/layers/graphics/transferFeatures.js +1 -1
  104. package/layers/support/ControlPoint.js +1 -1
  105. package/layers/support/ControlPointsGeoreference.js +1 -1
  106. package/layers/support/commonProperties.js +1 -1
  107. package/layers/support/fieldUtils.d.ts +129 -57
  108. package/layers/support/fieldUtils.js +1 -1
  109. package/layers/support/geospatialPDFUtils.d.ts +63 -0
  110. package/layers/support/geospatialPDFUtils.js +2 -0
  111. package/networks/Network.js +1 -1
  112. package/networks/support/TopologyValidationJobInfo.js +1 -1
  113. package/package.json +5 -5
  114. package/symbols/CIMSymbol.d.ts +9 -9
  115. package/symbols/PathSymbol3DLayer.d.ts +1 -1
  116. package/symbols/WaterSymbol3DLayer.d.ts +13 -1
  117. package/symbols/WaterSymbol3DLayer.js +1 -1
  118. package/views/3d/GroundView3D.js +1 -1
  119. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  120. package/views/3d/analysis/Viewshed/ViewshedObserverManipulatedObject3D.js +1 -1
  121. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  122. package/views/3d/camera/intersectionUtils.js +1 -1
  123. package/views/3d/environment/EnvironmentView.js +1 -1
  124. package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
  125. package/views/3d/interactive/Manipulator3D.js +1 -1
  126. package/views/3d/interactive/Manipulator3DBase.js +1 -1
  127. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  128. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  129. package/views/3d/interactive/visualElements/Object3DVisualElement.js +1 -1
  130. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  131. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  132. package/views/3d/layers/DrapedSubView3D.js +1 -1
  133. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  134. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  135. package/views/3d/layers/FlowSubView3D.js +1 -1
  136. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  137. package/views/3d/layers/I3SMeshView3D.js +1 -1
  138. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  139. package/views/3d/layers/RouteLayerView3D.js +1 -1
  140. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  141. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  142. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  143. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  144. package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
  145. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  146. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  147. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  148. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  149. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  150. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  151. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  152. package/views/3d/layers/support/Tiles3DBVH.js +1 -1
  153. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  154. package/views/3d/layers/support/createTileBVHForLayer.js +1 -1
  155. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  156. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  157. package/views/3d/state/controllers/RotateController.js +1 -1
  158. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  159. package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
  160. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  161. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  162. package/views/3d/state/utils/navigationUtils.js +1 -1
  163. package/views/3d/support/GroundAndIMSurface.js +1 -1
  164. package/views/3d/support/QualityProfile.js +1 -1
  165. package/views/3d/support/QualitySettings.js +1 -1
  166. package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
  167. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  168. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  169. package/views/3d/terrain/BlendLayersTechniqueConfiguration.js +1 -1
  170. package/views/3d/terrain/OverlayManager.js +1 -1
  171. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  172. package/views/3d/terrain/RasterColorizerTechniqueConfiguration.js +1 -1
  173. package/views/3d/terrain/TerrainRenderer.js +1 -1
  174. package/views/3d/terrain/TerrainSurface.js +1 -1
  175. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  176. package/views/3d/webgl-engine/collections/Component/ComponentObjectFixedBVH.js +1 -1
  177. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  178. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  179. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  180. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  181. package/views/3d/webgl-engine/core/shaderLibrary/clampShadowPosition.glsl.js +2 -0
  182. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +14 -14
  183. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
  184. package/views/3d/webgl-engine/core/shaderLibrary/lastFrameUniforms.js +1 -1
  185. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +15 -12
  186. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileComposite.glsl.js +2 -3
  187. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  188. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  189. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  190. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
  191. package/views/3d/webgl-engine/effects/globalIllumination/globalIlluminationUniforms.js +1 -1
  192. package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
  193. package/views/3d/webgl-engine/lib/BufferObject3D.js +1 -1
  194. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  195. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  196. package/views/3d/webgl-engine/lib/Program.js +1 -1
  197. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  198. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  199. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  200. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  201. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  202. package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
  203. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  204. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  205. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  206. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  207. package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +89 -0
  208. package/views/3d/webgl-engine/parts/Model.js +1 -1
  209. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  210. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  211. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  212. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  213. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  214. package/views/Attribution.js +5 -5
  215. package/views/DOMContainer.d.ts +2 -1
  216. package/views/SceneView.js +1 -1
  217. package/views/draw/DrawGraphicTool.js +1 -1
  218. package/views/draw/support/surfaceCoordinateSystems.js +1 -1
  219. package/views/webgl/Program.js +3 -3
  220. package/views/webgl/ShaderBuilder.js +23 -23
  221. package/webscene/Slide.js +1 -1
  222. package/webscene/VirtualLighting.d.ts +2 -4
  223. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +17 -1
  224. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  225. package/widgets/BatchAttributeForm/inputs/support/inputUtils.d.ts +7 -0
  226. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  227. package/widgets/BatchAttributeForm.js +1 -1
  228. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  229. package/widgets/Sketch/SketchViewModel.js +1 -1
  230. package/widgets/Weather/WeatherViewModel.js +1 -1
  231. package/widgets/support/ContingentValuesManager.js +1 -1
  232. package/widgets/support/forms/types.d.ts +23 -1
  233. package/assets/esri/core/workers/chunks/144f18a3dd2c8cf07cf7.js +0 -1
  234. package/assets/esri/core/workers/chunks/193a73a2c7f4f8482c21.js +0 -1
  235. package/assets/esri/core/workers/chunks/20acb6f3ed5140b6c6c6.js +0 -1
  236. package/assets/esri/core/workers/chunks/23fc1c1ed483ed3b2298.js +0 -1
  237. package/assets/esri/core/workers/chunks/249a687ce1b6d0815242.js +0 -1
  238. package/assets/esri/core/workers/chunks/2634927d26cb1139c6d0.js +0 -1
  239. package/assets/esri/core/workers/chunks/2d1b8154ee40afc9d40b.js +0 -1
  240. package/assets/esri/core/workers/chunks/2d4788be418a4e5f6606.js +0 -1
  241. package/assets/esri/core/workers/chunks/333140b18aeb5a50b654.js +0 -1
  242. package/assets/esri/core/workers/chunks/4401b3f8ebb658abe789.js +0 -1
  243. package/assets/esri/core/workers/chunks/4761cd436abceee858bf.js +0 -1
  244. package/assets/esri/core/workers/chunks/4a41bf3d1e2e9bb79771.js +0 -2
  245. package/assets/esri/core/workers/chunks/4de08ead94660025075b.js +0 -1
  246. package/assets/esri/core/workers/chunks/56f227e1a9e51d1fd742.js +0 -1
  247. package/assets/esri/core/workers/chunks/5bd451c7db17ee8f0315.js +0 -1
  248. package/assets/esri/core/workers/chunks/5c34d49a6c9cc34b7626.js +0 -1
  249. package/assets/esri/core/workers/chunks/5f324d88785ffcb73ae0.js +0 -1
  250. package/assets/esri/core/workers/chunks/703373f529c1c334cfad.js +0 -1
  251. package/assets/esri/core/workers/chunks/70695e0fb53018d48e7b.js +0 -2
  252. package/assets/esri/core/workers/chunks/723c9ad4c25be2b82476.js +0 -1
  253. package/assets/esri/core/workers/chunks/733c32d8091427d84de7.js +0 -1
  254. package/assets/esri/core/workers/chunks/766a1357be2ed7f4e125.js +0 -1
  255. package/assets/esri/core/workers/chunks/844c593754b2692257f4.js +0 -1
  256. package/assets/esri/core/workers/chunks/846248697c398468d8e6.js +0 -1
  257. package/assets/esri/core/workers/chunks/860552f49f17de2f3353.js +0 -1
  258. package/assets/esri/core/workers/chunks/89e55895683369b5277a.js +0 -1
  259. package/assets/esri/core/workers/chunks/8c94e987754b3919181e.js +0 -1
  260. package/assets/esri/core/workers/chunks/919115788da38049aea7.js +0 -2
  261. package/assets/esri/core/workers/chunks/976303f47c342b9d1cc0.js +0 -1
  262. package/assets/esri/core/workers/chunks/9b727f45dfea84357b57.js +0 -1
  263. package/assets/esri/core/workers/chunks/a05a2c2aaf0c288f9681.js +0 -1
  264. package/assets/esri/core/workers/chunks/a116dd204921e7464944.js +0 -1
  265. package/assets/esri/core/workers/chunks/ab76170c374fd67ce8cd.js +0 -1
  266. package/assets/esri/core/workers/chunks/aebd12488b4004e207a3.js +0 -1
  267. package/assets/esri/core/workers/chunks/b33e7e74cf8fa3926617.js +0 -1
  268. package/assets/esri/core/workers/chunks/bb2af16e55cb39163827.js +0 -1
  269. package/assets/esri/core/workers/chunks/c7b1c6d57603fa385c54.js +0 -1
  270. package/assets/esri/core/workers/chunks/cd8181600623e18f511c.js +0 -1
  271. package/assets/esri/core/workers/chunks/cef537fa9705dd1cf685.js +0 -1
  272. package/assets/esri/core/workers/chunks/d33403d578fbeecaf844.js +0 -1
  273. package/assets/esri/core/workers/chunks/d5bb9f9b7b341c671525.js +0 -1
  274. package/assets/esri/core/workers/chunks/d96e63d66f7b1f4ea54a.js +0 -2
  275. package/assets/esri/core/workers/chunks/ddbfa664e69612295785.js +0 -1
  276. package/assets/esri/core/workers/chunks/ded81c504bf44806ca7d.js +0 -1
  277. package/assets/esri/core/workers/chunks/e0466387b2ab54d706ca.js +0 -1
  278. package/assets/esri/core/workers/chunks/e3bcd2e356f75afc316a.js +0 -1
  279. package/assets/esri/core/workers/chunks/e80526571f1a34de3278.js +0 -1
  280. package/assets/esri/core/workers/chunks/ea71850ba87ae6038000.js +0 -1
  281. package/assets/esri/core/workers/chunks/ee70be138831cc2a0f56.js +0 -1
  282. package/assets/esri/core/workers/chunks/f23c4fd014126ea7abc6.js +0 -1
  283. package/assets/esri/core/workers/chunks/f537a5e808dc546813c7.js +0 -1
  284. package/assets/esri/core/workers/chunks/f6e40f3faf0c80cf1b3a.js +0 -1
  285. package/assets/esri/core/workers/chunks/fe811d651d201f698b8f.js +0 -2
  286. package/chunks/NativeLine.glsl.js +0 -8
  287. package/layers/geospatialPDF/geospatialPDFParserUtils.js +0 -2
  288. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +0 -70
  289. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +0 -2
  290. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +0 -2
  291. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +0 -2
  292. package/views/3d/webgl-engine/shaders/NativeLineTechniqueConfiguration.js +0 -2
  293. /package/assets/esri/core/workers/chunks/{919115788da38049aea7.js.LICENSE.txt → 3d851710f7fcc27c5b60.js.LICENSE.txt} +0 -0
  294. /package/assets/esri/core/workers/chunks/{fe811d651d201f698b8f.js.LICENSE.txt → 5bdd95eeb8f34dbf26f2.js.LICENSE.txt} +0 -0
  295. /package/assets/esri/core/workers/chunks/{ced5dfb2bf46fc5eac8c.js.LICENSE.txt → 5e47026c681238038955.js.LICENSE.txt} +0 -0
  296. /package/assets/esri/core/workers/chunks/{4a41bf3d1e2e9bb79771.js.LICENSE.txt → d7763c42754152510e13.js.LICENSE.txt} +0 -0
  297. /package/assets/esri/core/workers/chunks/{d96e63d66f7b1f4ea54a.js.LICENSE.txt → e96fa029acba59c04e4e.js.LICENSE.txt} +0 -0
  298. /package/assets/esri/core/workers/chunks/{70695e0fb53018d48e7b.js.LICENSE.txt → fdfbd201be372d3796bf.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2774],{67482(e,t,n){function r(e){return null!==o(e)}function o(e){return function(e){let t=i.exec(e);if(!t?.groups)return null;let n=t.groups,r=+n.year,o=n.month-1,a=+n.day,l=+(n.hours??"0"),s=+(n.minutes??"0"),u=+(n.seconds??"0");if(l>23||s>59||u>59)return null;let p,c=n.ms??"0",f=c?+c.padEnd(3,"0").slice(0,3):0;if(n.isUTC||!n.offsetSign)p=Date.UTC(r,o,a,l,s,u,f);else{let e=+n.offsetHours,t=+n.offsetMinutes;p=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(r,o,a,l,s,u,f)}return Number.isNaN(p)?null:p}(e)??function(e){let t=new Date(e),n=t.getTime();return Number.isNaN(n)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?n:null}(e)??function(e){if(!a.test(e))return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}n.d(t,{C:()=>r,_:()=>o});const i=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,a=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},69397(e,t,n){n.d(t,{JY:()=>y,Qf:()=>s,Qh:()=>a,lM:()=>i,ro:()=>u,rq:()=>p});var r=n(44208),o=n(34275);function i(e){if(!e)return 0;let t=c;for(let n in e)e.hasOwnProperty(n)&&(t+=l(e[n],!1));return t}function a(e){if(!e)return 0;if(Array.isArray(e))return function(e){let t=f;for(let n of e)t+=l(n);return t}(e);if(ArrayBuffer.isView(e)&&"length"in e&&"number"==typeof e.length&&e.length>0)return e.byteLength+d;let t=c;for(let n in e)e.hasOwnProperty(n)&&(t+=l(e[n]));return t}function l(e,t=!0){switch(typeof e){case"object":return t?a(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function s(...e){return e.reduce((e,t)=>e+u(t),0)}function u(e,t=16){return e?(0,o.iu)(e)?e.byteLength+d:Array.isArray(e)?p(e,t):0:0}function p(e,t){return f+e.length*t}const c=32,f=16,y=(0,r.A)("ios")||!(0,r.A)("chrome")&&!(0,r.A)("opr")?8:4,d=145},85113(e,t,n){n.d(t,{BM:()=>N,S_:()=>y,bd:()=>R,sO:()=>k,xD:()=>c});var r=n(67482),o=n(49186),i=n(21325),a=n(30524),l=n(90708),s=n(43334),u=n(92722);const p={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return p[e]}function*f(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(let t of e.features)t&&(yield t);break;default:yield{type:"Feature",geometry:e,properties:null}}}function y(e){for(let t of f(e))if("GeometryCollection"===t.geometry?.type)return!0;return!1}function*d(e){let t=0;for(let n of f(e)){let e="GeometryCollection"===n.geometry?.type,r=[{geometry:n.geometry,depth:0}];for(;r.length>0;){let{geometry:i,depth:a}=r.pop();if("GeometryCollection"===i?.type){if(a>=1024)throw new o.A("geojson-layer:invalid-geometry","GeometryCollection nesting exceeds 1024 levels.");for(let e=i.geometries.length-1;e>=0;e--)r.push({geometry:i.geometries[e],depth:a+1})}else yield{feature:n,geometry:i,index:t,isCollection:e}}t++}}function*m(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(let t of e.coordinates)yield*t;break;case"MultiPolygon":for(let t of e.coordinates)for(let e of t)yield*e}}function g(e,t,n,r,i){if(!r)throw new o.A("geojson-layer:geometry-collection-schema","Recreate the layer to add the parent ID field required by GeometryCollections.");let l=t;for(let t in e){let r=i.get(t);void 0===r&&(r=(0,a.rS)(t)?.toLowerCase()===n,i.set(t,r)),r&&(l??=e[t]??void 0,delete e[t])}e[r]=null==l?null:String(l)}function w(e){for(let t of e)if(t.length>2)return!0;return!1}function h(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n],o=e[(n+1)%e.length];t+=r[0]*o[1]-o[0]*r[1]}return t<=0}function b(e){let t=e[0],n=e[e.length-1];(t[0]!==n[0]||t[1]!==n[1]||t[2]!==n[2])&&e.push(t)}function S(e,t){let{coordinates:n,type:r}=e,o=t.hasZ??!1;switch(r){case"Point":{let e=o||3!==n.length?o&&2===n.length?[...n,0]:[...n]:n.slice(0,2);return new u.A([],e,o,!1)}case"LineString":return(0,l.Ap)({paths:[n],hasZ:!0},o,!1);case"MultiLineString":return(0,l.Ap)({paths:n,hasZ:!0},o,!1);case"MultiPoint":return(0,l.PR)({points:n,hasZ:!0},o,!1);case"Polygon":case"MultiPolygon":{let e=new u.A([],[],o,!1);for(let t of"Polygon"===r?[n]:n){A(e,t[0],o);for(let n=1;n<t.length;n++)T(e,t[n],o)}return e}}}function A(e,t,n){b(t),function(e){return!h(e)}(t)?F(e,t,n):C(e,t,n)}function T(e,t,n){b(t),function(e){return h(e)}(t)?F(e,t,n):C(e,t,n)}function C(e,t,n){for(let r of t)x(e,r,n);e.lengths.push(t.length)}function F(e,t,n){for(let r=t.length-1;r>=0;r--)x(e,t[r],n);e.lengths.push(t.length)}function x(e,[t,n,r],o){e.coords.push(t,n),o&&e.coords.push(r||0)}function P(e){switch(typeof e){case"string":return(0,r.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function k(e,t=4326){if(!e)throw new o.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type&&"GeometryCollection"!==e.type)throw new o.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});let{crs:n}=e;if(!n)return;let r="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,a=(0,i.oT)({wkid:t})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${t})$`,"i");if(!r||!a.test(r))throw new o.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function N(e,t={}){let n,r=[],o=new Set,i=new Set,l=!1,s=null,u=!1,{geometryType:p=null}=t;for(let{feature:t,geometry:f}of d(e)){let{properties:e,id:y}=t;if((!f||(p||=c(f.type),c(f.type)===p))&&(l||=w(m(f)),u||(u=null!=y,u&&(n=typeof y,e&&(s=Object.keys(e).filter(t=>e[t]===y)))),e&&s&&u&&null!=y&&(s.length>1?s=s.filter(t=>e[t]===y):1===s.length&&(s=e[s[0]]===y?s:[])),e))for(let t in e){if(o.has(t))continue;let n=P(e[t]);if("unknown"===n){i.add(t);continue}i.delete(t),o.add(t);let l=(0,a.rS)(t);l&&r.push({name:l,alias:t,type:n})}}let f=(0,a.rS)(1===s?.length&&s[0]||null)??void 0;if(f)for(let e of r)if(e.name===f&&(0,a.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:p,hasZ:l,objectIdFieldName:f,objectIdFieldType:n,unknownFields:Array.from(i)}}function R(e,t){return Array.from(function*(e,t={}){let{geometryType:n,objectIdField:r,parentIdField:o,getObjectId:i}=t,l=(0,a.rS)(r)?.toLowerCase(),u=new Map;for(let{feature:a,geometry:p,index:f,isCollection:y}of e){let{properties:e,id:d}=a;if(p&&c(p.type)!==n)continue;let m=y?{...e}:e??{},w=i?.(a,f);r&&(y?(g(m,d,l,o,u),w=void 0):(w=m[r],null!=d&&null==w&&(m[r]=w=d))),yield new s.Om(p&&S(p,t),m,null,w)}}(d(e),t))}},34322(e,t,n){n.d(t,{E:()=>j,Fu:()=>T,O8:()=>N,UH:()=>U,YW:()=>R,i5:()=>b,mG:()=>k,x$:()=>M});var r=n(49186),o=n(5479),i=n(84952),a=n(5443),l=n(99917),s=n(16930),u=n(21325),p=n(50498),c=n(78888),f=n(85113),y=n(60694),d=n(20437),m=n(30524),g=n(13043);const w="xlink:href",h="2.0.0",b="__esri_wfs_id__",S="wfs-layer:feature-type-not-found",A="wfs-layer:unknown-geometry-type";async function T(e,t){let n=function(e){let t=D(e);(function(e){let t=e.firstElementChild?.getAttribute("version");if(t&&t!==h)throw new r.A("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${h}`)})(t),O(t);let n=t.firstElementChild,i=(0,o.PP)(function(e){return(0,g.iN)(e,{FeatureTypeList:{FeatureType:e=>{let t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},n=new Set;return(0,g.pu)(e,{Name:e=>{let{name:n,prefix:r}=L(e.textContent);t.typeName=`${r}:${n}`,t.name=n,t.namespacePrefix=r,t.namespaceUri=e.lookupNamespaceURI(r)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,n,r,o;for(let i of e.children)switch(i.localName){case"LowerCorner":[t,n]=i.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[r,o]=i.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:n,xmax:r,ymax:o,spatialReference:u.KK}}(e))},DefaultCRS:e=>{let r=P(e);r&&(t.defaultSpatialReference=r,n.add(r))},OtherCRS:e=>{let t=P(e);t&&n.add(t)}}),t.title||=t.name,n.add(4326),t.supportedSpatialReferences.push(...n),t}}})}(n));return{operations:x(n),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,c.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:h,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,i.m3)(e)&&((0,i.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,i.lM)(t.operations.DescribeFeatureType.url)),(0,i.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,i.lM)(t.operations.GetFeature.url)))}(e,n),n}const C=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function F(e){for(let t of C){let n=e.findIndex(e=>e.toLowerCase()===t);if(n>=0)return e[n]}return null}function x(e){let t,n,o=!0,i={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1,countDefault:void 0}},a=[],l=[];if((0,g.pu)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&a.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{i.GetCapabilities.url=e.getAttribute(w)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{i.DescribeFeatureType.url=e.getAttribute(w)}}}};case"GetFeature":return{Constraint:e=>{if("CountDefault"===e.getAttribute("name"))return{DefaultValue:e=>{let t=(0,g.JI)(e);n=null!=t&&t>0?t:void 0}}},DCP:{HTTP:{Get:e=>{i.GetFeature.url=e.getAttribute(w)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&l.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"CountDefault":return{DefaultValue:e=>{let n=(0,g.JI)(e);t=null!=n&&n>0?n:void 0}};case"KVPEncoding":return{DefaultValue:e=>{o="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{i.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),i.GetFeature.outputFormat=F(l)??F(a),i.GetFeature.countDefault=n??t,!o)throw new r.A("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if(null==i.GetFeature.outputFormat)throw new r.A("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return i}function P(e){let t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function k(e,t,n){return(0,o.I6)(e,e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t)}async function N(e,t,n,o={}){let{featureType:i,extent:a}=await async function(e,t,n,o={}){let i=e.readFeatureTypes(),a=t?k(i,t,n):i.next().value,{spatialReference:p=new s.A({wkid:a?.defaultSpatialReference})}=o;if(null==a)throw t?new r.A(S,`The type '${t}' could not be found in the service`):new r.A("wfs-layer:empty-service","The service is empty");let c=a.extent;if(c&&!(0,u.aI)(c.spatialReference,p))try{await(0,l.initializeProjection)(c.spatialReference,p,void 0,o),c=(0,l.project)(c,p)}catch{throw new r.A("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:c,spatialReference:p,featureType:a}}(e,t,n,o),{spatialReference:p}=U(e.operations.GetFeature.url,i,o.spatialReference),{fields:c,geometryType:f,swapXY:y,objectIdField:d,geometryField:m}=await async function(e,t,n,o={}){let{typeName:i}=t,[a,l]=await Promise.allSettled([G(e.operations.DescribeFeatureType.url,i,o),E(e,i,n,o)]),s=e=>{let t=`An error occurred while getting info about the feature type '${i}'`;return new r.A("wfs-layer:getWFSLayerTypeInfo-error",t,{error:e})};if("rejected"===a.status)throw s(a.reason);if("rejected"===l.status)throw s(l.reason);let{fields:u,errors:p}=a.value??{},c=a.value?.geometryType||l.value?.geometryType,f=l.value?.swapXY??!1;if(null==c)throw new r.A(A,`The geometry type could not be determined for type '${i}`,{typeName:i,geometryType:c,fields:u,errors:p});return{...R(u??[]),geometryType:c,swapXY:f}}(e,i,p,o);return{url:e.operations.GetCapabilities.url,name:i.name,namespaceUri:i.namespaceUri,fields:c,geometryField:m,geometryType:f,objectIdField:d,spatialReference:o.spatialReference??new s.A({wkid:i.defaultSpatialReference}),extent:a,swapXY:y,wfsCapabilities:e,customParameters:o.customParameters}}function R(e){let t=e.find(e=>"geometry"===e.type),n=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),n||(n=new d.A({name:b,type:"oid",alias:b}),e.unshift(n)),{geometryField:t?.name??null,objectIdField:n.name,fields:e}}async function E(e,t,n,r={}){let o,i=!1,[a,l]=await Promise.all([M(e.operations.GetFeature.url,t,n,e.operations.GetFeature.outputFormat,{...r,count:1}),(0,c.A)(e.operations.GetFeature.url,{responseType:"text",query:I(t,n,void 0,{...r,count:1}),signal:r?.signal})]),s="FeatureCollection"===a.type&&a.features[0]?.geometry;if(s&&"GeometryCollection"!==s.type){let e;switch(o=p.gy.fromJSON((0,f.xD)(s.type)),s.type){case"Point":e=s.coordinates;break;case"LineString":case"MultiPoint":e=s.coordinates[0];break;case"MultiLineString":case"Polygon":e=s.coordinates[0][0];break;case"MultiPolygon":e=s.coordinates[0][0][0]}let t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){let n=e[0].toFixed(3),r=e[1].toFixed(3),o=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&r===o&&(i=!0)}}return{geometryType:o,swapXY:i}}async function G(e,t,n){return function(e,t){let{name:n}=L(e),i=D(t);O(i);let a=(0,o.I6)((0,g.iN)(i.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===n);if(null!=a){let e=a.getAttribute("type"),t=e?(0,o.I6)((0,g.iN)(i.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===L(e).name):(0,o.I6)((0,g.iN)(a,{complexType:e=>e}),()=>!0);if(t)return function(e){let t,n=[],o=[],i=(0,g.iN)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(let a of i){let i,l,s=a.getAttribute("name");if(!s)continue;if(a.hasAttribute("type")?i=L(a.getAttribute("type")).name:(0,g.pu)(a,{simpleType:{restriction:e=>(i=L(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!i)continue;let u="true"===a.getAttribute("nillable"),p=!1;switch(i.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":o.push(new d.A({name:s,alias:s,type:"integer",nullable:u,length:(0,m._b)("integer")}));break;case"float":case"double":case"decimal":o.push(new d.A({name:s,alias:s,type:"double",nullable:u,length:(0,m._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":o.push(new d.A({name:s,alias:s,type:"string",nullable:u,length:l??(0,m._b)("string")}));break;case"datetime":case"date":o.push(new d.A({name:s,alias:s,type:"date",nullable:u,length:l??(0,m._b)("date")}));break;case"pointpropertytype":t="point",p=!0;break;case"multipointpropertytype":t="multipoint",p=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":t="polyline",p=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":t="polygon",p=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":p=!0,n.push(new r.A(A,`geometry type '${i}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:n.push(new r.A("wfs-layer:unknown-field-type",`Unknown field type '${i}'`,{type:(new XMLSerializer).serializeToString(e)}))}p&&o.push(new d.A({name:s,alias:s,type:"geometry",nullable:u}))}for(let e of o)if("integer"===e.type&&!e.nullable&&v.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:t,fields:o,errors:n}}(t)}throw new r.A(S,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,c.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:h,TYPENAME:t,TYPENAMES:t,...n?.customParameters},signal:n?.signal})).data)}const v=new Set(["objectid","fid"]);async function M(e,t,n,o,i){let{data:a}=await(0,c.A)(e,{responseType:"text",query:I(t,n,o,i),signal:i?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new r.A("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function I(e,t,n,r){let o="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:h,TYPENAMES:e,OUTPUTFORMAT:n,SRSNAME:"EPSG:"+o,STARTINDEX:r?.startIndex,COUNT:r?.count,...r?.customParameters}}async function j(e,t,n){let r=await(0,c.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:h,TYPENAMES:t,RESULTTYPE:"hits",...n?.customParameters},signal:n?.signal}),o=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(r.data);if(o?.groups)return+o.groups.numberMatched}function D(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function L(e){let[t,n]=e.split(":",2);return{prefix:n?t:"",name:n??t}}function O(e){let t="",n="";if((0,g.pu)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new r.A(`wfs-layer:${t}`,n)}function U(e,t,n){let r={wkid:t.defaultSpatialReference},o=null==n?.wkid?r:{wkid:n.wkid};return{spatialReference:o,getFeatureSpatialReference:(0,y.Fi)(e)||o.wkid&&t.supportedSpatialReferences.includes(o.wkid)?{wkid:o.wkid}:{wkid:t.defaultSpatialReference}}}},13043(e,t,n){function r(e,t){if(e&&t)for(let n of e.children)if(n.localName in t){let e=t[n.localName];if("function"==typeof e){let t=e(n);t&&r(n,t)}else r(n,e)}}function*o(e,t){for(let n of e.children)if(n.localName in t){let e=t[n.localName];"function"==typeof e?yield e(n):yield*o(n,e)}}function i(e){let t=e.textContent?.trim()??"",n=/^[+-]?\d+$/.test(t)?Number(t):NaN;return Number.isSafeInteger(n)?n:void 0}n.d(t,{JI:()=>i,iN:()=>o,pu:()=>r})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[161],{51850(t,e,n){function r(){return[0,0,0]}function i(t){return[t[0],t[1],t[2]]}function o(t,e,n){return[t,e,n]}function a(t,e,n){return[t,e,n]}function u(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function s(){return o(1,1,1)}function l(){return o(1,0,0)}function f(){return o(0,1,0)}function c(){return o(0,0,1)}n.d(e,{CN:()=>a,Cb:()=>g,Cw:()=>m,JP:()=>M,Un:()=>d,ci:()=>u,fA:()=>o,o8:()=>i,uY:()=>h,vt:()=>r});const h=[0,0,0],d=s(),m=l(),M=f(),g=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:m,UNIT_Y:M,UNIT_Z:g,ZEROS:h,clone:i,create:r,freeze:a,fromArray:u,fromValues:o,ones:s,unitX:l,unitY:f,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(t,e,n){n.d(e,{DF:()=>s,FD:()=>i,Ov:()=>o,ct:()=>l});let r=1e-6;function i(){return r}const o=Math.random,a=Math.PI/180,u=180/Math.PI;function s(t){return t*a}function l(t){return t*u}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){r=t},toDegree:l,toRadian:s},Symbol.toStringTag,{value:"Module"}))},37585(t,e,n){n.d(e,{C:()=>o,Cc:()=>A,Il:()=>U,Io:()=>g,LI:()=>d,Ln:()=>M,Om:()=>v,Re:()=>s,S8:()=>w,T9:()=>c,WQ:()=>u,aI:()=>_,e$:()=>S,hG:()=>y,hZ:()=>a,hs:()=>m,jb:()=>C,l0:()=>x,qE:()=>h,t2:()=>I});var r=n(34727),i=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t}function a(t,e,n){return t[0]=e,t[1]=n,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function c(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function h(t,e,n,i){return t[0]=(0,r.qE)(e[0],n[0],i[0]),t[1]=(0,r.qE)(e[1],n[1],i[1]),t}function d(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function M(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function g(t,e){let n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function p(t){let e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function b(t){let e=t[0],n=t[1];return e*e+n*n}function w(t,e){let n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t}function v(t,e){return t[0]*e[0]+t[1]*e[1]}function A(t,e,n,r){let i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function x(t,e,n){let r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function S(t,e,n,r){let i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),u=Math.cos(r);return t[0]=i*u-o*a+n[0],t[1]=i*a+o*u+n[1],t}function I(t,e){return t[0]===e[0]&&t[1]===e[1]}function _(t,e){let n=t[0],r=t[1],o=e[0],a=e[1],u=(0,i.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))}const U=p,C=s,E=l,T=f,O=g,q=y,N=b;Object.freeze(Object.defineProperty({__proto__:null,add:u,angle:function(t,e){let n=t[0],r=t[1],i=e[0],o=e[1],a=n*n+r*r;a>0&&(a=1/Math.sqrt(a));let u=i*i+o*o;u>0&&(u=1/Math.sqrt(u));let s=(n*i+r*o)*a*u;return s>1?0:s<-1?Math.PI:Math.acos(s)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},clamp:h,copy:o,cross:function(t,e,n){let r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},dist:O,distance:g,div:T,divide:f,dot:v,equals:_,exactEquals:I,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:U,length:p,lerp:A,max:c,min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:E,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:w,projectAndScale:function(t,e,n,r,i){let o=e[0]-n[0],a=e[1]-n[1],u=(r[0]*o+r[1]*a)*(i-1);return o=r[0]*u,a=r[1]*u,t[0]=e[0]+o,t[1]=e[1]+a,t},random:function(t,e=1){let n=2*(0,i.Ov)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:S,round:d,scale:m,scaleAndAdd:M,set:a,sqrDist:q,sqrLen:N,squaredDistance:y,squaredLength:b,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:C,subtract:s,transformMat2:function(t,e,n){let r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},transformMat2d:x,transformMat3:function(t,e,n){let r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},transformMat4:function(t,e,n){let r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}},Symbol.toStringTag,{value:"Module"})),n.d(e,["xg",0,O])},35522(t,e,n){n.d(e,{$A:()=>I,Bw:()=>o,C:()=>a,Cc:()=>_,DI:()=>A,Il:()=>W,Io:()=>p,Ln:()=>y,Om:()=>S,Qr:()=>c,Re:()=>l,S8:()=>x,T9:()=>M,WQ:()=>s,Z0:()=>U,_S:()=>d,aI:()=>B,ei:()=>C,fw:()=>T,gL:()=>E,hG:()=>b,hZ:()=>u,hs:()=>g,jb:()=>P,jk:()=>m,lo:()=>F,lw:()=>f,m3:()=>w,oW:()=>z,t2:()=>N,tn:()=>h,uE:()=>D,ze:()=>v});var r=n(51850),i=n(34304);function o(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function M(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function p(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function w(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function x(t,e=t){let n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){let r=e[0],i=e[1],o=e[2],a=n[0],u=n[1],s=n[2];return t[0]=i*s-o*u,t[1]=o*a-r*s,t[2]=r*u-i*a,t}function _(t,e,n,r){let i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function U(t,e,n){let r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function C(t,e,n){let r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function E(t,e,n){return T(t,e,n[0],n[1],n[2],n[3])}function T(t,e,n,r,i,o){let a=e[0],u=e[1],s=e[2],l=r*s-i*u,f=i*a-n*s,c=n*u-r*a,h=r*c-i*f,d=i*l-n*c,m=n*f-r*l,M=2*o;return t[0]=a+l*M+2*h,t[1]=u+f*M+2*d,t[2]=s+c*M+2*m,t}const O=(0,r.vt)(),q=(0,r.vt)();function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function B(t,e){if(t===e)return!0;let n=t[0],r=t[1],o=t[2],a=e[0],u=e[1],s=e[2],l=(0,i.FD)();return Math.abs(n-a)<=l*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-u)<=l*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(o-s)<=l*Math.max(1,Math.abs(o),Math.abs(s))}function z(t,e,n){let r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2],a=r*r+i*i+o*o;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=i*a,t[2]=o*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const P=l,L=f,R=c,V=p,F=b,W=o,D=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:function(t,e){x(O,t),x(q,e);let n=S(O,q);return n>1?0:n<-1?Math.PI:Math.acos(n)},applyTranslation:function(t,e,n){return t[0]=e[0]+n[12],t[1]=e[1]+n[13],t[2]=e[2]+n[14],t},bezier:function(t,e,n,r,i,o){let a=1-o,u=a*a,s=o*o,l=u*a,f=3*o*u,c=3*s*a,h=s*o;return t[0]=e[0]*l+n[0]*f+r[0]*c+i[0]*h,t[1]=e[1]*l+n[1]*f+r[1]*c+i[1]*h,t[2]=e[2]*l+n[2]*f+r[2]*c+i[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:a,cross:I,crossAndNormalize:function(t,e,n){let r=e[0],i=e[1],o=e[2],a=n[0],u=n[1],s=n[2],l=i*s-o*u,f=o*a-r*s,c=r*u-i*a,h=Math.sqrt(l*l+f*f+c*c);return t[0]=l/h,t[1]=f/h,t[2]=c/h,t},direction:z,dist:V,distance:p,div:R,divide:c,dot:S,equals:B,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,o){let a=o*o,u=a*(2*o-3)+1,s=a*(o-2)+o,l=a*(o-1),f=a*(3-2*o);return t[0]=e[0]*u+n[0]*s+r[0]*l+i[0]*f,t[1]=e[1]*u+n[1]*s+r[1]*l+i[1]*f,t[2]=e[2]*u+n[2]*s+r[2]*l+i[2]*f,t},inverse:A,len:W,length:o,lerp:_,max:M,min:m,mul:L,multiply:f,negate:v,normalize:x,random:function(t,e=1){let n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,a=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=o*e,t},rotateX:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){let i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,scaleTo:function(t,e){return g(t,t,e/W(t))},set:u,sign:d,sqrDist:F,sqrLen:D,squaredDistance:b,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:P,subtract:l,transformMat3:C,transformMat4:U,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:E,transformQuatValues:T},Symbol.toStringTag,{value:"Module"}))},97146(t,e,n){n.d(e,{Dg:()=>o,lc:()=>c,my:()=>a,tM:()=>h,uW:()=>i});var r=n(34275);function i(t){return o(t,!0)}function o(t,e){if(Array.isArray(t)){if(t.length<1024)return t}else if(t.length<1024)return Array.from(t);let n=!0,i=!0;return t.some((t,e)=>(n&&=0===t,i&&=t===e,!n&&!i)),n?function(t){if(1===t)return l;if(t<1024)return Array(t).fill(0);if(t>s.length){let e=Math.max(2*s.length,t);s=new Uint8Array(e)}return new Uint8Array(s.buffer,0,t)}(t.length):i?h(t.length):(0,r.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(let n of t){if(n>=65536)return(0,r.iu)(t)?t:new Uint32Array(t);n>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function a(t,e=t){return t<=1024?Array(t):e<=65536?new Uint16Array(t):new Uint32Array(t)}let u=d(131072),s=new Uint8Array(65536);const l=[0],f=(()=>{let t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function c(t){if(t===l)return!0;if(!(0,r.iu)(t))return!1;let{buffer:e}=t;return e===f.buffer||e===u.buffer||e===s.buffer}function h(t){return 1===t?l:t<1024?function(t){let e=Array(t).fill(0);for(let n=0;n<t;n++)e[n]=n;return e}(t):t<f.length?new Uint16Array(f.buffer,0,t):(t>u.length&&(u=d(Math.max(2*u.length,t))),new Uint32Array(u.buffer,0,t))}function d(t){let e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}},10614(t,e,n){n.d(e,{Tz:()=>a,aT:()=>o});var r=n(35522),i=(n(51850),n(34727));function o(t,e,n,r,i,o=2,a=0){let s=1/(Math.abs(n)+Math.abs(r)+Math.abs(i)),l=n*s,f=r*s,c=i<=0?(l>=0?1:-1)*(1-Math.abs(f)):l,h=i<=0?(f>=0?1:-1)*(1-Math.abs(l)):f,d=e*o+a;t[d]=u(c),t[d+1]=u(h)}function a(t,e,n,i=2,o=0){let a=n*i+o,u=s(e[a]),l=s(e[a+1]),f=1-Math.abs(u)-Math.abs(l);return t[2]=f,f<0?(t[0]=(u>=0?1:-1)*(1-Math.abs(l)),t[1]=(l>=0?1:-1)*(1-Math.abs(u))):(t[0]=u,t[1]=l),(0,r.S8)(t,t)}function u(t){return(0,i.qE)(Math.round(32767*t),-32767,32767)}function s(t){return(0,i.qE)(t/32767,-1,1)}},99058(t,e,n){n.d(e,{I$:()=>y,gr:()=>w,In:()=>v});var r=n(4431),i=n(1843),o=n(63907);class a{constructor(t){this.internalFormat=t,this.channelByteStride=4,this.dataType=o.ld.UNSIGNED_INT,this.elementArrayConstructor=Uint32Array,this.pixelFormat=s[t],this.channels=u[this.pixelFormat],this.byteStride=this.channelByteStride*this.channels}}const u={36244:1,33320:2,36249:4},s={[o.H0.R32UI]:36244,[o.H0.RG32UI]:33320,[o.H0.RGBA32UI]:36249},l=[new a(o.H0.RGBA32UI),new a(o.H0.RG32UI),new a(o.H0.R32UI)];function f(t){let e=1/0,n=null;for(let r of l){let i=r.byteStride,o=(i-t%i)%i;o<e&&(e=o,n=r)}return n??l[2]}var c=n(13030),h=n(90239);class d{constructor(t,e,n){this.elementCount=t,this.elementType=e,this.bufferViewConstructor=n,this.byteSize=function(t){return(0,h.GJ)(t.ElementType)*t.ElementCount}(n)}}const m={u8:new d(1,"uint",c.SL),u32:new d(1,"uint",c.P),vec4u32:new d(4,"uint",c.ml),vec4u8:new d(4,"uint",c.XP),unorm8:new d(1,"float",c.dy),vec4unorm8:new d(4,"float",c.td),snorm16:new d(1,"float",c.Qy),vec2snorm16:new d(2,"float",c.ES),f16:new d(1,"float",c.XW),vec4f16:new d(4,"float",c.jz),f32:new d(1,"float",c.Y$),vec2f32:new d(2,"float",c.gH),vec3f32:new d(3,"float",c.xs),vec4f32:new d(4,"float",c.Eq),mat3f32:new d(9,"float",c.jZ)};class M{constructor(t,e,n,r){this._declaration=t,this._byteOffset=e,this._creationInfo=r,this._startTexel=Math.floor(e/n);let i=r.byteSize;this._numTexels=Math.ceil((e+i)/n)-this._startTexel,this._texelByteStride=n}get name(){return this._declaration.name}get fieldType(){return this._declaration.type}get byteOffset(){return this._byteOffset}get startTexel(){return this._startTexel}get numTexels(){return this._numTexels}get texelByteStride(){return this._texelByteStride}get elementType(){return this._creationInfo.elementType}get elementCount(){return this._creationInfo.elementCount}get byteSize(){return this._creationInfo.byteSize}get bufferViewConstructor(){return this._creationInfo.bufferViewConstructor}}class g{constructor(t,e,n,r=0){this.layout=t,this.byteOffset=r,this._bufferViews=new Map,this.buffer="number"==typeof e?new ArrayBuffer(e*t.byteStride):e,this.texelElementBuffer=new n(this.buffer,r);let i=this._bufferViews;for(let[t,e]of this.layout.fields)i.set(t,new e.bufferViewConstructor(this.buffer,r+e.byteOffset,this.layout.byteStride))}get stride(){return this.layout.byteStride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){let n=this._bufferViews.get(t);return null!=n&&n.elementCount===e.ElementCount&&n.elementType===e.ElementType?n:null}copyItem(t,e){let{buffer:n,layout:r,byteOffset:i}=this,o=new Uint8Array(n),a=r.byteStride,u=i+t*a,s=i+e*a;o.copyWithin(s,u,u+a)}copyFrom(t,e=0,n=0,r=t.count){let i=this.stride,o=t.byteOffset+e*i,a=this.byteOffset+n*i,u=r*i;if(i%4==0&&o%4==0&&a%4==0){let e=new Uint32Array(t.buffer,o,u/4);new Uint32Array(this.buffer,a,u/4).set(e)}else{let e=new Uint8Array(t.buffer,o,u);new Uint8Array(this.buffer,a,u).set(e)}return this}get usedMemory(){return this.byteLength}}const y=(0,i.BP)().vec3f("position").u16("componentIndex",{integer:!0}).freeze(),p=(0,i.BP)().vec2u8("sideness").freeze(),b=(0,r.U)(p),w=(0,i.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),v=(0,i.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),A=(0,r.U)(w,1),x=(0,r.U)(v,1);b.concat(A),b.concat(x),new class{constructor(t){this._fields=new Map;let e=0,n=[];for(let r=0;r<t.length;++r){let i=t[r],{type:o}=i,a=m[o];n.push({declaration:i,byteOffset:e,creationInfo:a}),e+=a.byteSize}this.texelFormatInfo=f(e);let{texelByteStride:r}=this;e=Math.ceil(e/r)*r;let i=e,o=this._fields;for(let{declaration:t,byteOffset:e,creationInfo:i}of n)o.set(t.name,new M(t,e,r,i));this.byteStride=i,this.texelStride=Math.ceil(i/r)}get texelByteStride(){return this.texelFormatInfo.byteStride}get texelElementArrayConstructor(){return this.texelFormatInfo.elementArrayConstructor}get stride(){return this.byteStride}get fields(){return this._fields}createBuffer(t){return new g(this,t,this.texelElementArrayConstructor)}createView(t,e){return new g(this,t,this.texelElementArrayConstructor,e)}}([{name:"color",type:"vec4unorm8"},{name:"lineWidth",type:"u8"},{name:"extensionLength",type:"u8"},{name:"materialType",type:"u8"},{name:"opacity",type:"unorm8"},{name:"elevationOffset",type:"f32"}])},93406(t,e,n){n.d(e,{K:()=>u});var r=n(35522),i=n(51850),o=n(34727),a=n(15142);function u(t,e,n){let i=t.vertices.position,o=t.vertices.componentIndex,a=m.position0,u=m.position1,f=m.faceNormal0,h=m.faceNormal1,{edges:d,normals:M}=l(t),g=d.length/4,y=e.allocate(g),p=0,b=g,A=n?.allocate(b),S=0,I=0,_=0;c.length=0;for(let t=0;t<g;++t){let e=4*t;i.getVec(d.data[e],a),i.getVec(d.data[e+1],u);let n=c.pushNew();n.index=4*t,n.length=(0,r.Io)(a,u)}c.sort((t,e)=>e.length-t.length);let U=[],C=[];c.forAll(({length:t,index:l})=>{let c=d.data[l],g=d.data[l+1],b=d.data[l+2],E=d.data[l+3],T=-1===E;if(i.getVec(c,a),i.getVec(g,u),T){let t=3*b;(0,r.hZ)(f,M.data[t],M.data[t+1],M.data[t+2]),(0,r.C)(h,f),m.componentIndex=o.get(c),m.cosAngle=(0,r.Om)(f,h)}else{let t=3*b;if((0,r.hZ)(f,M.data[t],M.data[t+1],M.data[t+2]),t=3*E,(0,r.hZ)(h,M.data[t],M.data[t+1],M.data[t+2]),m.componentIndex=o.get(c),m.cosAngle=(0,r.Om)(f,h),function(t,e){return t.cosAngle>e}(m,v))return;m.cosAngle<-.9999&&(0,r.C)(h,f)}I+=t,_++,T||function(t,e){return t.cosAngle<e}(m,x)?(e.write(y,p++,m),U.push(t)):s(m,w)&&(A&&n&&n.write(A,S++,m),C.push(t))});let E=new Float32Array(U.reverse()),T=new Float32Array(C.reverse()),O=A&&n?{instancesData:A.slice(0,S),lodInfo:{lengths:T}}:void 0;return{regular:{instancesData:y.slice(0,p),lodInfo:{lengths:E}},silhouette:O,averageEdgeLength:I/_}}function s(t,e){let n=(0,o.XM)(t.cosAngle);return(0,r.oW)(g,t.position1,t.position0),n*((0,r.Om)((0,r.$A)(M,t.faceNormal0,t.faceNormal1),g)>0?-1:1)>e}function l(t){let e=t.faces.length/3,n=t.faces,i=t.neighbors,o=t.vertices.position;h.length=d.length=0;for(let t=0;t<e;t++){let e=3*t,a=i[e],u=i[e+1],s=i[e+2],l=n[e],f=n[e+1],c=n[e+2];o.getVec(l,y),o.getVec(f,p),o.getVec(c,b),(0,r.Re)(p,p,y),(0,r.Re)(b,b,y),(0,r.$A)(y,p,b),(0,r.S8)(y,y),d.pushArray(y),(-1===a||l<f)&&(h.push(l),h.push(f),h.push(t),h.push(a)),(-1===u||f<c)&&(h.push(f),h.push(c),h.push(t),h.push(u)),(-1===s||c<l)&&(h.push(c),h.push(l),h.push(t),h.push(s))}return{edges:h,normals:d}}class f{constructor(){this.index=0,this.length=0}}const c=new a.A({allocator:t=>t||new f,deallocator:null}),h=new a.A({deallocator:null}),d=new a.A({deallocator:null}),m=new class{constructor(){this.position0=(0,i.vt)(),this.position1=(0,i.vt)(),this.faceNormal0=(0,i.vt)(),this.faceNormal1=(0,i.vt)(),this.componentIndex=0,this.cosAngle=0}},M=(0,i.vt)(),g=(0,i.vt)(),y=(0,i.vt)(),p=(0,i.vt)(),b=(0,i.vt)(),w=(0,o.kU)(4),v=Math.cos(w),A=(0,o.kU)(35),x=Math.cos(A)},44801(t,e,n){n.d(e,{o6:()=>U,HY:()=>N,hx:()=>C,Jb:()=>q});var r=n(34727),i=n(97146);function o(t,e,n){let o=Array.isArray(t),f=o?t.length/e:t.byteLength/(4*e),c=o?t:new Uint32Array(t,0,f*e),h=n?.minReduction??0,d=n?.originalIndices||null,m=d?d.length:0,M=n?.componentOffsets||null,g=0;if(M)for(let t=0;t<M.length-1;t++){let e=M[t+1]-M[t];e>g&&(g=e)}else g=f;let y=Math.floor(1.1*g)+1;(null==l||l.length<2*y)&&(l=new Uint32Array((0,r.cU)(2*y)));for(let t=0;t<2*y;t++)l[t]=0;let p=0,b=!!M&&!!d,w=b?m:f,v=(0,i.my)(f),A=new Uint32Array(m),x=1.96,S=0===h?w:Math.ceil(4*x*x/(h*h)*h*(1-h)),I=1,_=M?M[1]:w;for(let t=0;t<w;t++){if(t===S){let e=1-p/t;if(e+x*Math.sqrt(e*(1-e)/t)<h)return null;S*=2}if(t===_){for(let t=0;t<2*y;t++)l[t]=0;if(d)for(let t=M[I-1];t<M[I];t++)A[t]=v[d[t]];_=M[++I]}let n=b?d[t]:t,r=n*e,i=s(c,r,e),o=i%y,u=p;for(;0!==l[2*o+1];){if(l[2*o]===i){let t=l[2*o+1]-1;if(a(c,r,t*e,e)){u=v[t];break}}o++,o>=y&&(o-=y)}u===p&&(l[2*o]=i,l[2*o+1]=n+1,p++),v[n]=u}if(0!==h&&1-p/f<h)return null;if(b){for(let t=M[I-1];t<A.length;t++)A[t]=v[d[t]];v=(0,i.uW)(A)}let U=o?Array(p):new Uint32Array(p*e);p=0;for(let t=0;t<w;t++)v[t]===p&&(u(c,(b?d[t]:t)*e,U,p*e,e),p++);if(d&&!b){let t=new Uint32Array(m);for(let e=0;e<t.length;e++)t[e]=v[d[e]];v=(0,i.uW)(t)}return{buffer:Array.isArray(U)?U:U.buffer,indices:v,uniqueCount:p}}function a(t,e,n,r){for(let i=0;i<r;i++)if(t[e+i]!==t[n+i])return!1;return!0}function u(t,e,n,r,i){for(let o=0;o<i;o++)n[r+o]=t[e+o]}function s(t,e,n){let r=0;for(let i=0;i<n;i++)r=t[e+i]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let l=null;var f=n(1843);function c(t,e,n){let r=e/3,i=new Uint32Array(n+1),o=new Uint32Array(n+1),a=(t,e)=>{t<e?i[t+1]++:o[e+1]++};for(let e=0;e<r;e++){let n=t[3*e],r=t[3*e+1],i=t[3*e+2];a(n,r),a(r,i),a(i,n)}let u=0,s=0;for(let t=0;t<n;t++){let e=i[t+1],n=o[t+1];i[t+1]=u,o[t+1]=s,u+=e,s+=n}let l=new Uint32Array(6*r),f=i[n],c=(t,e,n)=>{if(t<e){let r=i[t+1]++;l[2*r]=e,l[2*r+1]=n}else{let r=o[e+1]++;l[2*f+2*r]=t,l[2*f+2*r+1]=n}};for(let e=0;e<r;e++){let n=t[3*e],r=t[3*e+1],i=t[3*e+2];c(n,r,e),c(r,i,e),c(i,n,e)}let h=(t,e)=>{let n=2*t,r=e-t;for(let t=1;t<r;t++){let e=l[n+2*t],r=l[n+2*t+1],i=t-1;for(;i>=0&&l[n+2*i]>e;i--)l[n+2*i+2]=l[n+2*i],l[n+2*i+3]=l[n+2*i+1];l[n+2*i+2]=e,l[n+2*i+3]=r}};for(let t=0;t<n;t++)h(i[t],i[t+1]),h(f+o[t],f+o[t+1]);let d=new Int32Array(3*r),m=(e,n)=>e===t[3*n]?0:e===t[3*n+1]?1:e===t[3*n+2]?2:-1,M=(t,e)=>{let n=m(t,e);d[3*e+n]=-1},g=(t,e,n,r)=>{let i=m(t,e);d[3*e+i]=r;let o=m(n,r);d[3*r+o]=e};for(let t=0;t<n;t++){let e=i[t],n=i[t+1],r=o[t],a=o[t+1];for(;e<n&&r<a;){let n=l[2*e],i=l[2*f+2*r];n===i?(g(t,l[2*e+1],i,l[2*f+2*r+1]),e++,r++):n<i?(M(t,l[2*e+1]),e++):(M(i,l[2*f+2*r+1]),r++)}for(;e<n;)M(t,l[2*e+1]),e++;for(;r<a;)M(l[2*f+2*r],l[2*f+2*r+1]),r++}return d}var h=n(99058),d=n(35522),m=n(51850),M=n(87811),g=n(10614);class y{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?A:v}write(t,e,n){I.seed=this._edgeHashFunction(n);let r=I.getIntRange(0,255),i=I.getIntRange(0,this.settings.variants-1),o=I.getFloat(),a=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(o/.7,1))+Math.max(0,o-.7)/.30000000000000004)+.5);t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1),t.componentIndex.set(e,n.componentIndex),t.variantOffset.set(e,r),t.variantStroke.set(e,i),t.variantExtension.set(e,a)}}const p=new Float32Array(6),b=new Uint32Array(p.buffer),w=new Uint32Array(1);function v(t){return p[0]=t.position0[0],p[1]=t.position0[1],p[2]=t.position0[2],p[3]=t.position1[0],p[4]=t.position1[1],p[5]=t.position1[2],w[0]=31*(31*(31*(31*(31*(166811+b[0])+b[1])+b[2])+b[3])+b[4])+b[5],w[0]}function A(t){let e=p;e[0]=x(t.position0[0]),e[1]=x(t.position0[1]),e[2]=x(t.position0[2]),e[3]=x(t.position1[0]),e[4]=x(t.position1[1]),e[5]=x(t.position1[2]),w[0]=5381;for(let t=0;t<b.length;t++)w[0]=31*w[0]+b[t];return w[0]}function x(t){return Math.round(1e4*t)/1e4}const S=(0,m.vt)(),I=new M.A;var _=n(93406);function U(t){let e=C(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return T.updateSettings(t.writerSettings),O.updateSettings(t.writerSettings),(0,_.K)(e,T,O)}function C(t,e,n,r){if(e){let e=c(n,r,t.count);return new E(n,r,e,t)}let i=o(t.buffer,t.stride/4,{originalIndices:n}),a=c(i.indices,r,i.uniqueCount);return{faces:i.indices,facesLength:i.indices.length,neighbors:a,vertices:h.I$.createView(i.buffer)}}class E{constructor(t,e,n,r){this.faces=t,this.facesLength=e,this.neighbors=n,this.vertices=r}}const T=new class{constructor(){this._commonWriter=new y}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return h.gr.createBuffer(t)}write(t,e,n){this._commonWriter.write(t,e,n),(0,d.WQ)(S,n.faceNormal0,n.faceNormal1),(0,d.S8)(S,S);let{typedBuffer:r,typedBufferStride:i}=t.normalCompressed;(0,g.aT)(r,e,S[0],S[1],S[2],i)}},O=new class{constructor(){this._commonWriter=new y}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return h.In.createBuffer(t)}write(t,e,n){this._commonWriter.write(t,e,n);{let{typedBuffer:r,typedBufferStride:i}=t.normalCompressed;(0,g.aT)(r,e,n.faceNormal0[0],n.faceNormal0[1],n.faceNormal0[2],i)}{let{typedBuffer:r,typedBufferStride:i}=t.normal2Compressed;(0,g.aT)(r,e,n.faceNormal1[0],n.faceNormal1[1],n.faceNormal1[2],i)}}},q=(0,f.BP)().vec3f("position0").vec3f("position1"),N=(0,f.BP)().vec3f("position0").vec3f("position1").u16("componentIndex",{integer:!0})}}]);
@@ -1 +1 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[8331],{83349(e,t,r){r.d(t,{e:()=>o});const n=new Set;let i=!1;function o(e,t,r=2){let i=t&&t.length,o=i?t[0]*r:e.length;n.size&&n.clear();let l=s(e,0,o,r,!0),u=[];if(!l||l.next===l.prev)return u;let c=0,f=0,p=0;if(i&&(l=g(e,t,l,r)),e.length>80*r){c=e[0],f=e[1];let t=c,n=f;for(let i=r;i<o;i+=r){let r=e[i],o=e[i+1];r<c&&(c=r),o<f&&(f=o),r>t&&(t=r),o>n&&(n=o)}p=Math.max(t-c,n-f),p=0===p?0:32767/p}return a(l,u,c,f,p),u}function s(e,t,r,n,i){let o=null;if(i===H(e,t,r,n)>0)for(let i=t;i<r;i+=n)o=D(i/n|0,e[i],e[i+1],o);else for(let i=r-n;i>=t;i-=n)o=D(i/n|0,e[i],e[i+1],o);return o&&O(o,o.next)&&(I(o),o=o.next),o}function l(e,t=e){let r,o=t===e,s=e;do{r=!1,s===s.next||0!==n.size&&n.has(s)||!O(s,s.next)&&0!==j(s.prev,s,s.next)?(o||s!==t)&&(s=s.next,r=!o):((o||s===t)&&(t=s.prev),i=!0,I(s),s=s.prev,r=!0)}while(r||s!==t);return t}function a(e,t,r,n,o){o&&function(e,t,r,n){let i=e,o=0;do{i.z=_(i.x,i.y,t,r,n),T[o++]=i,i=i.next}while(i!==e);!function(e){if(e<=32)for(let t=1;t<e;t++){let e=T[t],r=e.z,n=t-1;for(;n>=0&&T[n].z>r;)T[n+1]=T[n],n--;T[n+1]=e}else{R.length<e&&(R=new Uint32Array(e),Z=new Uint32Array(e),S=Array(e));for(let t=0;t<e;t++)R[t]=T[t].z;N(e,T,R,S,Z,0),N(e,S,Z,T,R,8),N(e,T,R,S,Z,16),N(e,S,Z,T,R,24)}}(o);let s=null;for(let e=0;e<o;e++){let t=T[e];t.prevZ=s,s&&(s.nextZ=t),s=t}s.nextZ=null,T.fill(null,0,o),S.fill(null,0,o)}(e,r,n,o);let s=e,a=!1;for(;e.prev!==e.next;){let h=e.prev,g=e.next;if(j(h,e,g)<0&&(o?c(e,r,n,o):u(e)))t.push(h.i,e.i,g.i),I(e),e=g,s=g;else if((e=g)===s){if(i=!1,e=l(e),i){s=e;continue}if(!a){s=e=f(e,t),a=!0;continue}p(e,t,r,n,o);break}}}function u(e){let t=e.prev,r=e,n=e.next,i=t.x,o=r.x,s=n.x,l=t.y,a=r.y,u=n.y,c=Math.min(i,o,s),f=Math.min(l,a,u),p=Math.max(i,o,s),h=Math.max(l,a,u),g=n.next;for(;g!==t;){if(g.x>=c&&g.x<=p&&g.y>=f&&g.y<=h&&(i!==g.x||l!==g.y)&&E(i,l,o,a,s,u,g.x,g.y)&&j(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function c(e,t,r,n){let i=e.prev,o=e,s=e.next,l=i.x,a=o.x,u=s.x,c=i.y,f=o.y,p=s.y,h=Math.min(l,a,u),g=Math.min(c,f,p),y=Math.max(l,a,u),m=Math.max(c,f,p),d=_(h,g,t,r,n),x=_(y,m,t,r,n),v=e.prevZ;for(;v&&v.z>=d;){if(v.x>=h&&v.x<=y&&v.y>=g&&v.y<=m&&v!==s&&(l!==v.x||c!==v.y)&&E(l,c,a,f,u,p,v.x,v.y)&&j(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let w=e.nextZ;for(;w&&w.z<=x;){if(w.x>=h&&w.x<=y&&w.y>=g&&w.y<=m&&w!==s&&(l!==w.x||c!==w.y)&&E(l,c,a,f,u,p,w.x,w.y)&&j(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function f(e,t){let r=e,n=!1;do{let i=r.prev,o=r.next.next;P(i,r,r.next,o,!1)&&z(i,o)&&z(o,i)&&(t.push(i.i,r.i,o.i),I(r),I(r.next),r=e=o,n=!0),r=r.next}while(r!==e);return n?l(r):r}function p(e,t,r,n,i){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&L(o,e)){let s=F(o,e);return o=l(o,o.next),s=l(s,s.next),a(o,t,r,n,i),void a(s,t,r,n,i)}e=e.next}o=o.next}while(o!==e)}let h=!1;function g(e,t,r,i){let o=[];for(let r=0,l=t.length;r<l;r++){let a=s(e,t[r]*i,r<l-1?t[r+1]*i:e.length,i,!1);a===a.next&&n.add(a),o.push(B(a))}o.sort(y),function(e,t){let r=Math.ceil((e+2*t)/16)+t+2;d.length<4*r&&(d=new Float64Array(4*r)),x=0}(e.length/i,t.length),A(r,r),h=!0;for(let e=0;e<o.length;e++)r=m(o[e],r);return h=!1,l(r)}function y(e,t){return e.x-t.x||e.y-t.y||(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)}function m(e,t){let r=function(e,t){let r,n=t,i=e.x,o=e.y,s=-1/0;if(O(e,n))return n;for(let t=0,l=0;t<x;t++,l+=4){if(o<d[l+1]||o>d[l+3]||d[l]>i||d[l+2]<=s)continue;let a=b(t);n=M(t);do{if(n.prev.next===n){if(O(e,n.next))return n.next;if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){let e=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=i&&e>s&&(s=e,r=n.x<n.next.x?n:n.next,e===i))return r}}n=n.next}while(n!==a)}if(!r)return null;let l=r.x,a=r.y,u=Math.min(o,a),c=Math.max(o,a),f=1/0;for(let t=0,p=0;t<x;t++,p+=4){if(d[p+2]<l||d[p]>i||d[p+3]<u||d[p+1]>c)continue;let h=b(t);n=M(t);do{if(n.prev.next===n&&i>=n.x&&n.x>=l&&i!==n.x&&E(o<a?i:s,o,l,a,o<a?s:i,o,n.x,n.y)){let t=Math.abs(o-n.y)/(i-n.x);(z(n,e)||n.y===o&&n.next.y===o&&n.next.x>i)&&(t<f||t===f&&(n.x>r.x||n.x===r.x&&C(r,n)))&&(r=n,f=t)}n=n.next}while(n!==h)}return r}(e,t);if(!r)return t;let n=F(r,e);return A(r,n.next.next),l(n,n.next),l(r,r.next)}let d=new Float64Array,x=0;const v=[],w=[];function A(e,t){let r=e;do{let e=x++;v[e]=r;let n=1/0,i=1/0,o=-1/0,s=-1/0,l=0;do{let t=r.next;r.z=e,r.x<n&&(n=r.x),r.x>o&&(o=r.x),r.y<i&&(i=r.y),r.y>s&&(s=r.y),t.x<n&&(n=t.x),t.x>o&&(o=t.x),t.y<i&&(i=t.y),t.y>s&&(s=t.y),r=t}while(++l<16&&r!==t);w[e]=r;let a=4*e;d[a]=n,d[a+1]=i,d[a+2]=o,d[a+3]=s}while(r!==t)}function b(e){let t=w[e];for(;t.prev.next!==t;)t=t.next;return w[e]=t,t}function M(e){let t=v[e];for(;t.prev.next!==t;)t=t.next;return v[e]=t,t}function C(e,t){return j(e.prev,e,t.prev)<0&&j(t.next,e,e.next)<0}const T=[];let S=[],R=new Uint32Array,Z=new Uint32Array;const U=new Uint32Array(256);function N(e,t,r,n,i,o){U.fill(0);for(let t=0;t<e;t++)U[r[t]>>>o&255]++;let s=0;for(let e=0;e<256;e++){let t=U[e];U[e]=s,s+=t}for(let s=0;s<e;s++){let e=r[s],l=U[e>>>o&255]++;n[l]=t[s],i[l]=e}}function _(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function B(e){let t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function E(e,t,r,n,i,o,s,l){return(i-s)*(t-l)>=(e-s)*(o-l)&&(e-s)*(n-l)>=(r-s)*(t-l)&&(r-s)*(o-l)>=(i-s)*(n-l)}function L(e,t){let r=O(e,t)&&j(e.prev,e,e.next)>0&&j(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||z(e,t)&&z(t,e)&&(0!==j(e.prev,e,t.prev)||0!==j(e,t.prev,t)))&&!function(e,t){let r=Math.min(e.x,t.x),n=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),s=e;do{let l=s.next;if(s.x>n&&l.x>n||s.x<r&&l.x<r||s.y>o&&l.y>o||s.y<i&&l.y<i)s=l;else{if(s.i!==e.i&&l.i!==e.i&&s.i!==t.i&&l.i!==t.i&&P(s,l,e,t))return!0;s=l}}while(s!==e);return!1}(e,t)&&(r||function(e,t){let r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{let e=r.next;r.y>o!=e.y>o&&i<(e.x-r.x)*(o-r.y)/(e.y-r.y)+r.x&&(n=!n),r=e}while(r!==e);return n}(e,t))}function j(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function O(e,t){return e.x===t.x&&e.y===t.y}function P(e,t,r,n,i=!0){let o=j(e,t,r),s=j(e,t,n),l=j(r,n,e),a=j(r,n,t);return(o>0&&s<0||o<0&&s>0)&&(l>0&&a<0||l<0&&a>0)||!!i&&!!(0===o&&$(e,r,t)||0===s&&$(e,n,t)||0===l&&$(r,e,n)||0===a&&$(r,t,n))}function $(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function z(e,t){return j(e.prev,e,e.next)<0?j(e,t,e.next)>=0&&j(e,e.prev,t)>=0:j(e,t,e.prev)<0||j(e,e.next,t)<0}function F(e,t){let r=k(e.i,e.x,e.y),n=k(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function D(e,t,r,n){let i=k(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function I(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),h&&function(e,t){let r=4*e.z;t.x<d[r]&&(d[r]=t.x),t.y<d[r+1]&&(d[r+1]=t.y),t.x>d[r+2]&&(d[r+2]=t.x),t.y>d[r+3]&&(d[r+3]=t.y)}(e.prev,e.next)}function k(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function H(e,t,r,n){let i=0;for(let o=t,s=r-n;o<r;o+=n)i+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return i}let W,K,q,V,G,Y=0,J=0;function Q(e,t,r,n,i,o){return(r-e)*(o-t)-(n-t)*(i-e)}function X(e,t,r,n,i,o,s,l){let a=e-s,u=t-l,c=r-s,f=n-l,p=i-s,h=o-l,g=a*a+u*u,y=c*c+f*f,m=p*p+h*h,d=g+y+m;return a*(f*m-y*h)-u*(c*m-y*p)+g*(c*h-f*p)<=1e-13*d*d}function ee(e){return e-e%3+(e+1)%3}o.deviation=function(e,t,r,n){let i=t&&t.length,o=i?t[0]*r:e.length,s=Math.abs(H(e,0,o,r));if(i)for(let n=0,i=t.length;n<i;n++){let o=t[n]*r,l=n<i-1?t[n+1]*r:e.length;s-=Math.abs(H(e,o,l,r))}let l=0;for(let t=0;t<n.length;t+=3){let i=n[t]*r,o=n[t+1]*r,s=n[t+2]*r;l+=Math.abs((e[i]-e[s])*(e[o+1]-e[i+1])-(e[i]-e[o])*(e[s+1]-e[i+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},o.flatten=function(e){let t=[],r=[],n=e[0][0].length,i=0,o=0;for(let s of e){for(let e of s)for(let r=0;r<n;r++)t.push(e[r]);o&&(i+=o,r.push(i)),o=s.length}return{vertices:t,holes:r,dimensions:n}},o.refine=function(e,t,r=2){let n=e,i=n.length;if(i<6)return;(function(e){(!W||W.length<e)&&(W=new Int32Array(e)),(!K||K.length<e)&&(K=new Int32Array(e)),(!G||G.length<e)&&(G=new Uint8Array(e));let t=1;for(;t<4*e;)t<<=1;(!q||q.length<t)&&(q=new Int32Array(t),V=new Uint32Array(t)),Y=t-1})(i),J++,K.fill(-1,0,i);let o=0;for(let e=0;e<i;e++){let t=n[e],r=n[ee(e)],i=t<r?t:r,s=t<r?r:t,l=(Math.imul(i,2654435761)^Math.imul(s,2246822507))&Y;for(;V[l]===J;){let t=q[l];if(-1!==t){let r=n[t],a=n[ee(t)];if(r===i&&a===s||r===s&&a===i){K[e]=t,K[t]=e,q[l]=-1,G[t]=1,W[o++]=t;break}}l=l+1&Y}V[l]!==J&&(q[l]=e,V[l]=J)}for(;o>0;){let e=W[--o];G[e]=0;let i=K[e];if(-1===i)continue;let s=e-e%3,l=i-i%3,a=s+(e+2)%3,u=s+(e+1)%3,c=l+(i+2)%3,f=l+(i+1)%3,p=n[a],h=n[e],g=n[u],y=n[c],m=t[p*r],d=t[p*r+1],x=t[h*r],v=t[h*r+1],w=t[g*r],A=t[g*r+1],b=t[y*r],M=t[y*r+1];if(!X(m,d,x,v,w,A,b,M)&&Q(m,d,x,v,b,M)>0&&Q(m,d,b,M,w,A)>0){n[e]=y,n[i]=p;let t=K[c],r=K[a];K[e]=t,-1!==t&&(K[t]=e),K[i]=r,-1!==r&&(K[r]=i),K[a]=c,K[c]=a,-1!==t&&0===G[e]&&(G[e]=1,W[o++]=e),-1!==r&&0===G[i]&&(G[i]=1,W[o++]=i),-1!==K[u]&&0===G[u]&&(G[u]=1,W[o++]=u),-1!==K[f]&&0===G[f]&&(G[f]=1,W[o++]=f)}}}},73354(e,t,r){r.d(t,{a:()=>f,b:()=>l,c:()=>i,d:()=>s,e:()=>p,f:()=>c,l:()=>u,n:()=>h,t:()=>o}),r(44208);var n=r(72727);function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[4],h=r[5],g=r[6],y=r[8],m=r[9],d=r[10],x=r[12],v=r[13],w=r[14],A=0,b=0;for(let r=0;r<a;r++){let r=t[A],n=t[A+1],s=t[A+2];e[b]=u*r+p*n+y*s+x,e[b+1]=c*r+h*n+m*s+v,e[b+2]=f*r+g*n+d*s+w,A+=o,b+=i}return e}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[3],h=r[4],g=r[5],y=r[6],m=r[7],d=r[8],x=0,v=0;for(let r=0;r<a;r++){let r=t[x],n=t[x+1],s=t[x+2];e[v]=u*r+p*n+y*s,e[v+1]=c*r+h*n+m*s,e[v+2]=f*r+g*n+d*s,x+=o,v+=i}}function a(e,t,r,n=3,i=n){let o=Math.min(e.length/n,t.length/i),s=0,l=0;for(let a=0;a<o;a++)e[l]=r*t[s],e[l+1]=r*t[s+1],e[l+2]=r*t[s+2],s+=i,l+=n;return e}function u(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,n,i=3,o=i){let s=Math.min(e.length/i,t.length/o),l=0,a=0,u=1/2.2;for(let c=0;c<s;c++)e[a]=n*(r*t[l])**u,e[a+1]=n*(r*t[l+1])**u,e[a+2]=n*(r*t[l+2])**u,l+=o,a+=i}function f(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=0,c=0;for(let n=0;n<a;n++)e[c]=t[u]+r[0],e[c+1]=t[u+1]+r[1],e[c+2]=t[u+2]+r[2],u+=o,c+=i;return e}function p(e,t){h(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r=3,n=r){let i=Math.min(e.length/r,t.length/n),o=0,s=0;for(let l=0;l<i;l++){let i=t[o],l=t[o+1],a=t[o+2],u=i*i+l*l+a*a;if(u>0){let t=1/Math.sqrt(u);e[s]=t*i,e[s+1]=t*l,e[s+2]=t*a}o+=n,s+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:h,normalizeView:p,scale:a,scaleView:function(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){let n=Math.min(e.count,t.count),i=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,l=t.typedBufferStride,a=0,u=0;for(let e=0;e<n;e++)i[u]=s[a]>>r,i[u+1]=s[a+1]>>r,i[u+2]=s[a+2]>>r,a+=l,u+=o},transformMat3:l,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},21287(e,t,r){r.d(t,{M5:()=>f,eV:()=>c});var n=r(78888),i=r(26306),o=r(49186),s=r(17676),l=r(84952);let a=null,u=!0;function c(e,t,r,n){if(!t||!r)throw Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,r)}catch{u=!1}let i=function(e,t,r){return r||=(a||(a=document.createElement("canvas"),a.width=1,a.height=1),a),r.getContext("2d").createImageData(e,t)}(t,r,n);return i.data.set(e,0),i}async function f(e,t){let{arrayBuffer:a,mediaType:u}=await async function(e,t){let r=(0,l.r$)(e);if(r?.isBase64)return{arrayBuffer:(0,i.M)(r.data),mediaType:r.mediaType};let o=await(0,n.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:n}=await r.e(820).then(()=>r(10820));if(e(a))return n(a,t)}if(c){let{isAnimatedPNG:e,parseApng:n}=await r.e(2390).then(()=>r(22390));if(e(a))return n(a,t)}return async function(e,t){let r=window.URL.createObjectURL(e);try{let{data:e}=await(0,n.A)(r,{...t,responseType:"image"});return e}catch(e){throw(0,s.zf)(e)?e:new o.A("invalid-image",`Could not fetch requested image at ${r}`)}finally{window.URL.revokeObjectURL(r)}}(new Blob([a],{type:u}),t)}},83300(e,t,r){r.d(t,{A:()=>Me});var n=r(32198),i=r(91429),o=r(69540),s=r(51850),l=r(92474),a=r(53966),u=r(61893),c=r(17676),f=r(36708),p=r(91075),h=r(86738),g=r(70328),y=r(24770),m=r(16939),d=r(95696),x=r(18251),v=r(73836),w=r(35522),A=r(65806),b=r(27615);function M(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var C=r(22141),T=r(72258);const S=()=>a.A.getLogger("esri.geometry.support.meshUtils.centerAt");const R=(0,s.vt)(),Z=(0,s.vt)(),U=(0,s.vt)();var N=r(9093),_=r(5443),B=r(48353),E=r(9762),L=r(99917),j=r(98764),O=r(73354),P=r(4197);const $=(0,N.vt)(),z=(0,P.jh)(24);var F=r(49186),D=r(84952);function I(e){let t=(0,D.nM)(e.url);return r=>{let n=(0,D.V1)(r,t,t),i=n?n.replace(/^ *\.\//,""):null;return(i?e.files.get(i):null)??r}}function k(e){return Y.fromBlob(e,J(e.name,e.type))}const H=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,K=/\.gltf$/i,q=/\.glb$/i;function V({mimeType:e,source:t,name:r}){return H.test(e)||K.test(r)?{url:t.url,type:"gltf"}:W.test(e)||q.test(r)?{url:t.url,type:"glb"}:null}function G(e){let t=new Map,r=null,n=null;for(let i of e){let{source:e,name:o}=i;r??=V(i),"ESRI3DO_NORM.glb"===o&&(n=V(i)),t.set(o,e.url),e.files.forEach((e,r)=>t.set(r,e))}let i=n??r;if(null==i)throw new F.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new Y(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class Y{constructor(e,t=()=>{},r=new Map,n){this.url=e,this.dispose=t,this.files=r,this.type=n}static fromBlob(e,t){let r=URL.createObjectURL(e);return new Y(r,()=>URL.revokeObjectURL(r),void 0,t)}}function J(e,t){return H.test(t)||K.test(e)?"gltf":W.test(t)||K.test(e)?"glb":void 0}var Q=r(66895),X=r(29461),ee=r(77690),te=r(29242),re=r(58083),ne=r(67026),ie=r(82534);const oe=()=>a.A.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,r,n=s.uY){if(null!=e){(0,re.$0)(ce,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=r){for(let r=0;r<3;r++)le[r]=e[t+r]-n[r];(0,w.Z0)(le,le,ce);for(let r=0;r<3;r++)e[t+r]=le[r]+n[r]}}}const le=(0,s.vt)(),ae=(0,N.vt)(),ue=(0,y.vt)(),ce=(0,N.vt)(),fe=(0,te.vt)(),pe=(0,s.vt)(),he=(0,ie.vt)(),ge=()=>a.A.getLogger("esri.geometry.support.meshUtils.scale");function ye(e,t,r=s.uY){if(e)for(let n=0;n<e.length;n+=3){for(let t=0;t<3;t++)me[t]=e[n+t]-r[t];(0,w.hs)(me,me,t);for(let t=0;t<3;t++)e[n+t]=me[t]+r[t]}}const me=(0,s.vt)(),de=(0,s.vt)(),xe=(0,N.vt)(),ve=(0,s.vt)();var we,Ae=r(1193);const be={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:d.A,local:x.A}};let Me=we=class extends((0,o.OU)((0,l.WV)((0,u.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new d.A,this.transform=null,this.metadata=new X.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Ae.A,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,f.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){let{spatialReference:e,vertexSpace:t}=this,r=this;return function(e){let{spatialReference:t,vertexSpace:r,untransformedBounds:n}=e,i=(0,g.gE)(n,z);if((0,b.Hq)(r)&&e.transform&&(0,O.t)(i,i,e.transform.localMatrix),"georeferenced"===r.type){let e=r.origin;return e&&(0,O.a)(i,i,e),(0,g.w1)((0,g.vY)(i),t)}let o=(0,j.lO)(t),s=r.origin;if(!(0,L.canProjectWithoutEngine)(o,t)){let[e,r,n]=s;return new _.A({xmin:e,ymin:r,zmin:n,xmax:e,ymax:r,zmax:n,spatialReference:t})}return(0,B.l)(t,s,$,o),(0,O.t)(i,i,$),(0,E.projectBuffer)(i,o,0,i,t,0),(0,g.w1)((0,g.vY)(i),t)}({get transform(){return r.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){let{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,g.vt)(g.v_):(0,g.vY)(e)}get origin(){let e=(0,b.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;let{center:t,zmin:r}=this._transformedExtent;return new h.A({x:t.x,y:t.y,z:r,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||=[],this.components.push(m.A.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){let t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}a.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,r,n){return(0,y.AU)(e,t,r,Ce),function(e,t,r){if(!e.vertexAttributes?.position||0===t[3])return;let{spatialReference:n,vertexSpace:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=le;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(oe(),r.spatialReference,o,C.JP);(0,ne.x8)(he,(0,y.yo)(t),(0,y.$I)(t));let p=(0,re.O7)(ae,he,s.uY,s.Un,f),{localMatrix:g}=i,m=(0,re.lw)(ae,p,g);i.scale=(0,re.X_)((0,s.vt)(),m),(0,re.hs)(m,m,(0,w.DI)(le,i.scale));let d=i.rotationAxis;i.rotation=(0,y.ui)(m),0===i.rotationAngle&&(i.rotationAxis=d),i.translation=(0,re.sC)((0,s.vt)(),m)}(e,t,o):M(i,n)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=pe;if(!(0,A.g)(r,o,i)&&((0,C.CN)(oe(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(oe(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,B.l)(i,o,ce,i),(0,ee.z0)(fe,ce);let p=ue;(0,w.ei)((0,y.yo)(ue),(0,y.yo)(t),fe),p[3]=t[3],(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(oe(),n,i):(se(u,p,3,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&(se(c,p,3),!(0,C.si)(c,s,n,u,i,l))||null!=a&&null!=f&&(se(f,p,4),!(0,C.Mv)(f,s,n,u,i,a))?(0,C.CN)(oe(),i,n):e.vertexAttributesChanged():(0,C.CN)(oe(),i,n)):(0,C.CN)(oe(),n,i)}(e,t,o):function(e,t,r){let n=pe;if((0,A.g)(r,n,e.spatialReference))se(e.vertexAttributes.position,t,3,n),se(e.vertexAttributes.normal,t,3),se(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(oe(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,Ce,n),this}offset(e,t,r){if(!this._checkIfLoaded("offset()"))return this;let{vertexSpace:n,vertexAttributes:i}=this,o=i?.position;if(!o)return this;if((0,b.Hq)(n)){let[i,o,l]=n.origin;n.origin=(0,s.fA)(i+e,o+t,l+r)}else{for(let n=0;n<o.length;n+=3)o[n]+=e,o[n+1]+=t,o[n+2]+=r;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n,spatialReference:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=me;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(ge(),r.spatialReference,o,C.JP);let p=(0,w.hZ)(de,t,t,t),g=(0,re.O7)(xe,ie.zK,s.uY,p,f),{localMatrix:m}=i,d=(0,re.lw)(xe,g,m);i.scale=(0,re.X_)((0,s.vt)(),d),(0,re.hs)(d,d,(0,w.DI)(me,i.scale));let x=i.rotationAxis;i.rotation=(0,y.ui)(d),0===i.rotationAngle&&(i.rotationAxis=x),i.translation=(0,re.sC)((0,s.vt)(),d)}(e,t,o):M(n,i)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=ve;if(!(0,A.g)(r,o,i)&&((0,C.CN)(ge(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(ge(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(ge(),n,i):(ye(u,t,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&!(0,C.si)(c,s,n,u,i,l)||null!=a&&null!=f&&!(0,C.Mv)(f,s,n,u,i,a)?(0,C.CN)(ge(),i,n):e.vertexAttributesChanged():(0,C.CN)(ge(),i,n)):(0,C.CN)(ge(),n,i)}(e,t,o):function(e,t,r){let n=ve;if((0,A.g)(r,n,e.spatialReference))ye(e.vertexAttributes.position,t,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(ge(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,e,t),this}centerAt(e,t){return this._checkIfLoaded("centerAt()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n}=e,i=r?.origin??e.origin;(0,b.Hq)(n)?function(e,t,r){let{vertexSpace:n}=e;if(!(0,b.Hq)(n))return;let i=Z,o=R;if(!(0,A.g)(t,o,e.spatialReference))return void(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP);if(!(0,A.g)(r,i,e.spatialReference))return void(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP);let l=(0,w.Re)(U,o,i);n.origin=(0,w.WQ)((0,s.vt)(),n.origin,l)}(e,t,i):M(n,i.spatialReference)?function(e,t,r){let n=(0,s.fA)(r.x,r.y,r.z??0),i=(0,T.UR)(e,new x.A({origin:n}));if(!i)return;let o=(0,s.fA)(t.x,t.y,t.z??0),l=(0,T.UR)({vertexAttributes:i,spatialReference:e.spatialReference,vertexSpace:new x.A({origin:o})},d.A.absolute);if(!l)return;let{position:a,normal:u,tangent:c}=l;e.vertexAttributes.position=a,e.vertexAttributes.normal=u,e.vertexAttributes.tangent=c,e.vertexAttributesChanged()}(e,t,i):function(e,t,r){let n=Z,i=R;if((0,A.g)(t,i,e.spatialReference))if((0,A.g)(r,n,e.spatialReference))(function(e,t,r){if(e)for(let n=0;n<e.length;n+=3)for(let i=0;i<3;i++)e[n+i]+=t[i]-r[i]})(e.vertexAttributes.position,i,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP)}else(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP)}(e,t,i)}(this,e,t),this}load(e){let{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,n){switch(t.source.type){case"client":case"service":return async function(e,t,n){let{source:i}=t,{loadGLTFMesh:o}=await(0,c.qr)(r.e(5841).then(()=>r(35841)),n),s=await async function(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");return G(e.map(e=>({name:e.name,mimeType:e.type,source:k(e)})))}(e.files):k(e.files);case"service":return async function(e,t){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");let r=await(0,c.nA)(e.map(async e=>{let r=await async function(e,t){let{parts:r,assetMimeType:n,assetName:i}=e;if(1===r.length)return new Y(r[0].partUrl);let o=await e.toBlob(t);return(0,c.Te)(t),Y.fromBlob(o,J(i,n))}(e);return(0,c.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:r}}));if((0,c.G4)(t))throw r.forEach(e=>e.source.dispose()),(0,c.NK)();return G(r)}(e.assets,t);default:throw new F.A("mesh-load-external:invalid-source","Invalid source type")}}(i,n);(0,c.Te)(n);let{mesh:{vertexAttributes:l,components:a},meta:{isDracoDecompressed:u}}=await o(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:I(s),signal:n?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}).finally(()=>s.dispose());if(u)throw new F.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=l,e.components=a}(e,t,n);case"loadable":return t.source.load(e,n);default:t.source}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(e){return super.clone((0,Q.WO)((0,Q.QN)(e)))}cloneShallow(){return new we({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){let[{toBinaryGLTF:t}]=await Promise.all([r.e(4038).then(()=>r(84038)),this.load(e)]);return(0,c.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(a.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}};(0,n.Cg)([(0,i.MZ)({type:[m.A],json:{write:!0}})],Me.prototype,"components",void 0),(0,n.Cg)([(0,i.MZ)({nonNullable:!0,types:be,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexSpace??e.clone(t)})],Me.prototype,"vertexSpace",void 0),(0,n.Cg)([(0,i.MZ)({type:v.A,clonable:(e,t)=>{let r=(0,Q.o2)(t);return r&&"transform"in r?r.transform:e?.clone()??e},json:{write:!0}})],Me.prototype,"transform",void 0),(0,n.Cg)([(0,i.MZ)({constructOnly:!0,type:X.O,clonable:(e,t)=>(0,Q.o2)(t)?.metadata??e.clone()})],Me.prototype,"metadata",void 0),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"hasExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_transformedExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_untransformedBounds",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"origin",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1}})],Me.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Me.prototype,"hasZ",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Me.prototype,"hasM",void 0),(0,n.Cg)([(0,i.MZ)({type:Ae.A,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexAttributes??e.clone(t)})],Me.prototype,"vertexAttributes",void 0),Me=we=(0,n.Cg)([(0,i.$K)("esri.geometry.Mesh")],Me);const Ce=(0,y.vt)()},15585(e,t,r){r.d(t,{If:()=>h,QT:()=>g});var n=r(32198),i=r(2741),o=r(49186),s=r(44208),l=r(53966);r(34727);class a{constructor(e,t){this.precision=e,this.importFactory=t,this.loading=null,this.exports=null,this.compiled=null,this.evictionTimer=null}}const u=new a("f32",async()=>(await r.e(2997).then(()=>r(42997))).default);function c(e){null!==e.evictionTimer&&(clearTimeout(e.evictionTimer),e.evictionTimer=null)}function f(e){c(e);let t=e.exports;null===t||t.HEAP8.byteLength<10485760||(e.evictionTimer=setTimeout(()=>{e.evictionTimer=null,async function(e,t){try{let r=e.compiled;if(null===r)return;let n=await e.importFactory();if(e.exports!==t)return;let i=await n(p(r));e.exports===t&&(c(e),e.exports=i)}catch(t){l.A.getLogger("esri.geometry.libtess").error("libtess:recycle-failed",`Failed to recycle libtess${e.precision.toUpperCase()}`,t)}}(e,t)},1e4))}function p(e){return{locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`),instantiateWasm:(t,r)=>(r(new WebAssembly.Instance(e,t),e),{})}}function h(){return function(e){if(null!==e.exports)return f(e),Promise.resolve();if(null!==e.loading)return e.loading;let t=async function(e){let t=await e.importFactory(),r=e.compiled??await async function(e){let t=`libtess-${e}.wasm`,r=(0,i.s)(`esri/core/libs/libtess/${t}`),n=await fetch(r,{credentials:"same-origin"});if(!n.ok)throw Error(`${n.status} : ${n.url}`);return WebAssembly.compile(await n.arrayBuffer())}(e.precision);e.compiled??=r,e.exports=await t(p(r)),f(e)}(e);e.loading=t;let r=()=>{e.loading===t&&(e.loading=null)};return t.then(r,r),t}(u)}function g(e,t,r=2){return function(e,t){c(e);try{return t()}finally{f(e)}}(u,()=>function(e,t,r=2){let i={stack:[],error:void 0,hasError:!1};try{let l=u.exports;if(!l)throw new o.A("libtess:not-loaded","libtessF32 not loaded");let a=(0,n.mS)(i,d.from(l,e),!1),c=(0,n.mS)(i,x.from(l,t),!1),f=e.length/r*4,p=(0,n.mS)(i,new d(l,f*r),!1),h=l.triangulate(a.ptr,c.ptr,c.size,r,p.ptr,f);if((0,s.A)("esri-tessellation-debug")){let e=l.getError();0!==e&&console.warn("libtess:triangulation",function(e){switch(e){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${e}`}}(e))}return{buffer:p.slice(0,h*r),vertexCount:h}}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}(e,t,r))}function y(e){return e.HEAPF32}function m(e){return e.HEAP32}new a("f64",async()=>(await r.e(9134).then(()=>r(99134))).default),new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,new Float64Array,new Uint32Array,new Uint32Array,new Uint32Array;class d{static from(e,t){let r=new d(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(e){y(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return y(this._libtess).slice(r+e,r+t)}}Symbol.dispose;class x{static from(e,t){let r=new x(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateLengthsArray(t)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(e){m(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return function(e){let t=m(e);return new Uint32Array(t.buffer,t.byteOffset,t.length)}(this._libtess).slice(r+e,r+t)}}},97146(e,t,r){r.d(t,{Dg:()=>o,lc:()=>f,my:()=>s,tM:()=>p,uW:()=>i});var n=r(34275);function i(e){return o(e,!0)}function o(e,t){if(Array.isArray(e)){if(e.length<1024)return e}else if(e.length<1024)return Array.from(e);let r=!0,i=!0;return e.some((e,t)=>(r&&=0===e,i&&=e===t,!r&&!i)),r?function(e){if(1===e)return u;if(e<1024)return Array(e).fill(0);if(e>a.length){let t=Math.max(2*a.length,e);a=new Uint8Array(t)}return new Uint8Array(a.buffer,0,e)}(e.length):i?p(e.length):(0,n.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(let r of e){if(r>=65536)return(0,n.iu)(e)?e:new Uint32Array(e);r>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e,t=e){return e<=1024?Array(e):t<=65536?new Uint16Array(e):new Uint32Array(e)}let l=h(131072),a=new Uint8Array(65536);const u=[0],c=(()=>{let e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function f(e){if(e===u)return!0;if(!(0,n.iu)(e))return!1;let{buffer:t}=e;return t===c.buffer||t===l.buffer||t===a.buffer}function p(e){return 1===e?u:e<1024?function(e){let t=Array(e).fill(0);for(let r=0;r<e;r++)t[r]=r;return t}(e):e<c.length?new Uint16Array(c.buffer,0,e):(e>l.length&&(l=h(Math.max(2*l.length,e))),new Uint32Array(l.buffer,0,e))}function h(e){let t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}},16939(e,t,r){r.d(t,{A:()=>h});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(25482),u=r(53966),c=r(19211),f=r(80882),p=r(31199);let h=n=class extends((0,l.OU)(a.o)){static from(e){return(0,s.PZ)(n,e)}constructor(e){super(e),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(e){this._set("faces",(0,p.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},u.A.getLogger(this)))}castMaterial(e){return e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?(0,s.PZ)(f.A,e):(0,s.PZ)(c.A,e)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,i.Cg)([(0,o.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"material",void 0),(0,i.Cg)([(0,o.wg)("material")],h.prototype,"castMaterial",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(93223);let u=class extends((0,s.OU)(l.o)){static{n=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new n}};(0,i.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(25482),l=r(51850),a=r(93223);let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.type="local",this.origin=(0,l.vt)()}};(0,n.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,r){r.d(t,{A:()=>f});var n=r(32198),i=r(68197),o=r(91429),s=r(69540),l=r(25482),a=r(35063),u=r(51147),c=r(66895);let f=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(e){this._set("colorTexture",null==e?null:a.A.from(e))}get normalTexture(){return this._get("normalTexture")}set normalTexture(e){this._set("normalTexture",null==e?null:a.A.from(e))}clone(e){let t=(0,c.hz)(e),r=t?.materialMap?.get(this);if(r)return r;let n=super.clone((0,c.QN)(e));return t?.materialMap?.set(this,n),n}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null==this.color?0:16,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null==this.colorTextureTransform?0:20,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null==this.normalTextureTransform?0:20,e}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterial")],f)},80882(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(68197),o=r(91429),s=r(19211),l=r(35063),a=r(51147);let u=class extends s.A{constructor(e){super(e),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(e){this._set("emissiveTexture",null==e?null:l.A.from(e))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(e){this._set("occlusionTexture",null==e?null:l.A.from(e))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(e){this._set("metallicRoughnessTexture",null==e?null:l.A.from(e))}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null==this.emissiveColor?0:16,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null==this.emissiveTextureTransform?0:20,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null==this.occlusionTextureTransform?0:20,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null==this.metallicRoughnessTextureTransform?0:20,e}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(e,t,r){r.d(t,{A:()=>m});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(21287),u=r(25482),c=r(97159),f=r(66895),p=r(43937),h=r(36005);const g=new WeakMap;let y=0,m=class extends((0,l.OU)(u.o)){static{n=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,r,n){e instanceof HTMLImageElement?t[r]={type:"image-element",src:(0,c.t)(e.src,n),crossOrigin:e.crossOrigin}:e instanceof HTMLCanvasElement?t[r]={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))}:e instanceof HTMLVideoElement?t[r]={type:"video-element",src:(0,c.t)(e.src,n),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload}:e instanceof ImageData&&(t[r]={type:"image-data",imageData:d(e)})}readData(e){switch(e.type){case"image-element":{let t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{let t=x(e.imageData),r=document.createElement("canvas");return r.width=t.width,r.height=t.height,r.getContext("2d").putImageData(t,0,0),r}case"image-data":return x(e.imageData);case"video-element":{let t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){let{data:e,url:t}=this,r=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?v(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?v(e):!!(t&&r(t)||e instanceof HTMLImageElement&&r(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){let e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null==this.url?null==this.data?t():this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(g.has(this.data)||g.set(this.data,++y),t(g.get(this.data))):t(this.url)}get memoryUsage(){let e=0;if(e+=null==this.url?0:this.url.length,null!=this.data){let t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(e){let t=(0,f.$N)(e),r=t?.textureMap?.get(this);if(r)return r;let n=super.clone(e);return t?.textureMap?.set(this,n),n}static from(e){return"string"==typeof e?new n({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new n({data:e}):(0,s.PZ)(n,e)}};function d(e){let t="";for(let r=0;r<e.data.length;r++)t+=String.fromCharCode(e.data[r]);return{data:btoa(t),width:e.width,height:e.height}}function x(e){let t=atob(e.data),r=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return(0,a.eV)(r,e.width,e.height)}function v(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,i.Cg)([(0,o.MZ)({type:String,json:{write:c.w}})],m.prototype,"url",null),(0,i.Cg)([(0,o.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],m.prototype,"data",null),(0,i.Cg)([(0,p.K)("data")],m.prototype,"writeData",null),(0,i.Cg)([(0,h.w)("data")],m.prototype,"readData",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],m.prototype,"transparent",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],m.prototype,"wrap",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"contentHash",null),m=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshTexture")],m)},51147(e,t,r){r.d(t,{A:()=>l});var n=r(32198),i=r(91429),o=r(69540),s=r(25482);let l=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshTextureTransform")],l)},1193(e,t,r){r.d(t,{A:()=>f});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(4718),u=r(53966),c=r(31199);let f=n=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,c.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},u.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&u.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},u.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clonePositional(){let e={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new n(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,i.Cg)([(0,o.wg)("color")],f.prototype,"castColor",null),(0,i.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,i.Cg)([(0,o.wg)("position")],f.prototype,"castPosition",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,i.Cg)([(0,o.wg)("uv")],f.prototype,"castUv",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,i.Cg)([(0,o.wg)("normal")],f.prototype,"castNormal",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,i.Cg)([(0,o.wg)("tangent")],f.prototype,"castTangent",null),f=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(e,t,r){function n(e,t,r){if(t<=0)return 0;let n=e-r;return n<0?0:Math.floor(n/t)+1}r.d(t,{k:()=>n}),r(53966)},31199(e,t,r){function n(e,t,r,n){let{loggerTag:i,stride:o}=t;return e.length%o===0?e:(n.error(i,`Invalid array length, expected a multiple of ${o}`),new r([]))}function i(e,t,r,i,o){if(!e)return e;if(e instanceof t)return n(e,i,t,o);for(let s of r)if(e instanceof s)return n(new t(e),i,t,o);if(Array.isArray(e))return n(new t(e),i,t,o);{let n=r.map(e=>`'${e.name}'`);return o.error(`Failed to set property, expected one of ${n}, but got ${e.constructor.name}`),new t([])}}function o(e,t,r){t[r]=function(e){let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r];return t}(e)}r.d(t,{B:()=>o,b:()=>i})},98331(e,t,r){r.d(t,{H5:()=>p,createWithExternalSource:()=>f});var n=r(49186),i=(r(17676),r(9762),r(4197),r(77690),r(29242)),o=(r(35522),r(51850));r(48353),r(13030),(0,i.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},r(62788);var s=r(95488);r(44208),r(83349),r(53966),r(15585),r(95108),r(97146),r(34727),r(86211),(0,r(27921).vt)(),new s.I,new WeakSet;var l=r(83300),a=(r(16939),r(95696),r(73836));r(1193),r(66895),r(72258);var u=r(29461),c=r(27615);function f(e,t,r){let n=r?.extent??null,{spatialReference:i}=e,o=r?.transform?.clone()??new a.A,s=(0,c.TE)(e,r),f={source:t,extent:n,unitConversionDisabled:r?.unitConversionDisabled},p=new u.O;return p.externalSources.push(f),new l.A({metadata:p,transform:o,vertexSpace:s,spatialReference:i})}function p(e,t){let{spatialReference:r}=e,i=t?.transform?.clone()??new a.A,o=(0,c.TE)(e,t),s=new l.A({transform:i,vertexSpace:o,spatialReference:r});return s.addResolvingPromise(Promise.reject(new n.A("mesh-incomplete","Mesh resources are not complete"))),s}(0,o.vt)(),(0,i.vt)()},63579(e,t,r){r.d(t,{Bq:()=>a,Qp:()=>l,WN:()=>m,dK:()=>d,eN:()=>h,fH:()=>y,in:()=>g,yr:()=>u});var n=r(4576),i=r(17676),o=r(20557),s=r(78888);class l{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,n.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,i.Te)(e),new Blob(r)}}class a{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(p):p(e.files);case"service":return e.assets.some(p);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(e){if(e instanceof File){let{type:t,name:r}=e;return c.test(t)||f.test(r)}return c.test(e.assetMimeType)||f.test(e.assetName)}function h(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function g(e,t){if(e===t)return!0;let{source:r}=e,{source:n}=t;if(r===n)return!0;if("service"===r.type&&"service"===n.type){if(r.assets.length!==n.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...n.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function y(e,t){return e instanceof File?(0,o.rq)(e,t):(0,o.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function d(e){return!!e.original}},29461(e,t,r){r.d(t,{O:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(7762),l=r(36708),a=r(63579);let u=class extends o.Pw{constructor(e){super(e),this.externalSources=new s.A,this._explicitDisplaySource=null,this.addHandles((0,l.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,a.yr)(e))throw Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,a.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,a.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(a.yr)}};(0,n.Cg)([(0,i.MZ)()],u.prototype,"externalSources",void 0),(0,n.Cg)([(0,i.MZ)()],u.prototype,"displaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(e,t,r){r.d(t,{$N:()=>c,Lz:()=>o,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>i});const n=Symbol("meshContext");function i(e){return e&&"object"==typeof e&&n in e?e[n]:void 0}function o(e,t){let r=i(e);return{...e,[n]:{...r,...t}}}const s=Symbol("meshMaterialContext");function l(e){return e&&"object"==typeof e&&s in e?e[s]:void 0}function a(e){if(l(e)?.materialMap)return e;let t={materialMap:new Map};return{...e,[s]:t}}const u=Symbol("meshTextureContext");function c(e){return e&&"object"==typeof e&&u in e?e[u]:void 0}function f(e){if(c(e)?.textureMap)return e;let t={textureMap:new Map};return{...e,[u]:t}}},27615(e,t,r){r.d(t,{CK:()=>a,Hq:()=>l,MW:()=>u,TE:()=>c,yJ:()=>f});var n=r(35522),i=r(86738),o=r(95696),s=r(18251);function l(e){return null!=e.origin}function a(e){return l(e.vertexSpace)}function u(e,t){if(!l(e))return null;let[r,n,o]=e.origin;return new i.A({x:r,y:n,z:o,spatialReference:t})}function c(e,t){let{x:r,y:n,z:i,spatialReference:l}=e,a=[r,n,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(l))?new s.A({origin:a}):new o.A({origin:a})}function f(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,n.t2)(e.origin,t.origin))}}}]);
1
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[8331],{83349(e,t,r){r.d(t,{e:()=>o});const n=new Set;let i=!1;function o(e,t,r=2){let i=t&&t.length,o=i?t[0]*r:e.length;n.size&&n.clear();let l=s(e,0,o,r,!0),u=[];if(!l||l.next===l.prev)return u;let c=0,f=0,p=0;if(i&&(l=g(e,t,l,r)),e.length>80*r){c=e[0],f=e[1];let t=c,n=f;for(let i=r;i<o;i+=r){let r=e[i],o=e[i+1];r<c&&(c=r),o<f&&(f=o),r>t&&(t=r),o>n&&(n=o)}p=Math.max(t-c,n-f),p=0===p?0:32767/p}return a(l,u,c,f,p),u}function s(e,t,r,n,i){let o=null;if(i===H(e,t,r,n)>0)for(let i=t;i<r;i+=n)o=D(i/n|0,e[i],e[i+1],o);else for(let i=r-n;i>=t;i-=n)o=D(i/n|0,e[i],e[i+1],o);return o&&O(o,o.next)&&(I(o),o=o.next),o}function l(e,t=e){let r,o=t===e,s=e;do{r=!1,s===s.next||0!==n.size&&n.has(s)||!O(s,s.next)&&0!==j(s.prev,s,s.next)?(o||s!==t)&&(s=s.next,r=!o):((o||s===t)&&(t=s.prev),i=!0,I(s),s=s.prev,r=!0)}while(r||s!==t);return t}function a(e,t,r,n,o){o&&function(e,t,r,n){let i=e,o=0;do{i.z=_(i.x,i.y,t,r,n),T[o++]=i,i=i.next}while(i!==e);!function(e){if(e<=32)for(let t=1;t<e;t++){let e=T[t],r=e.z,n=t-1;for(;n>=0&&T[n].z>r;)T[n+1]=T[n],n--;T[n+1]=e}else{R.length<e&&(R=new Uint32Array(e),Z=new Uint32Array(e),S=Array(e));for(let t=0;t<e;t++)R[t]=T[t].z;N(e,T,R,S,Z,0),N(e,S,Z,T,R,8),N(e,T,R,S,Z,16),N(e,S,Z,T,R,24)}}(o);let s=null;for(let e=0;e<o;e++){let t=T[e];t.prevZ=s,s&&(s.nextZ=t),s=t}s.nextZ=null,T.fill(null,0,o),S.fill(null,0,o)}(e,r,n,o);let s=e,a=!1;for(;e.prev!==e.next;){let h=e.prev,g=e.next;if(j(h,e,g)<0&&(o?c(e,r,n,o):u(e)))t.push(h.i,e.i,g.i),I(e),e=g,s=g;else if((e=g)===s){if(i=!1,e=l(e),i){s=e;continue}if(!a){s=e=f(e,t),a=!0;continue}p(e,t,r,n,o);break}}}function u(e){let t=e.prev,r=e,n=e.next,i=t.x,o=r.x,s=n.x,l=t.y,a=r.y,u=n.y,c=Math.min(i,o,s),f=Math.min(l,a,u),p=Math.max(i,o,s),h=Math.max(l,a,u),g=n.next;for(;g!==t;){if(g.x>=c&&g.x<=p&&g.y>=f&&g.y<=h&&(i!==g.x||l!==g.y)&&E(i,l,o,a,s,u,g.x,g.y)&&j(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function c(e,t,r,n){let i=e.prev,o=e,s=e.next,l=i.x,a=o.x,u=s.x,c=i.y,f=o.y,p=s.y,h=Math.min(l,a,u),g=Math.min(c,f,p),y=Math.max(l,a,u),m=Math.max(c,f,p),d=_(h,g,t,r,n),x=_(y,m,t,r,n),v=e.prevZ;for(;v&&v.z>=d;){if(v.x>=h&&v.x<=y&&v.y>=g&&v.y<=m&&v!==s&&(l!==v.x||c!==v.y)&&E(l,c,a,f,u,p,v.x,v.y)&&j(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let w=e.nextZ;for(;w&&w.z<=x;){if(w.x>=h&&w.x<=y&&w.y>=g&&w.y<=m&&w!==s&&(l!==w.x||c!==w.y)&&E(l,c,a,f,u,p,w.x,w.y)&&j(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function f(e,t){let r=e,n=!1;do{let i=r.prev,o=r.next.next;P(i,r,r.next,o,!1)&&z(i,o)&&z(o,i)&&(t.push(i.i,r.i,o.i),I(r),I(r.next),r=e=o,n=!0),r=r.next}while(r!==e);return n?l(r):r}function p(e,t,r,n,i){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&L(o,e)){let s=F(o,e);return o=l(o,o.next),s=l(s,s.next),a(o,t,r,n,i),void a(s,t,r,n,i)}e=e.next}o=o.next}while(o!==e)}let h=!1;function g(e,t,r,i){let o=[];for(let r=0,l=t.length;r<l;r++){let a=s(e,t[r]*i,r<l-1?t[r+1]*i:e.length,i,!1);a===a.next&&n.add(a),o.push(B(a))}o.sort(y),function(e,t){let r=Math.ceil((e+2*t)/16)+t+2;d.length<4*r&&(d=new Float64Array(4*r)),x=0}(e.length/i,t.length),A(r,r),h=!0;for(let e=0;e<o.length;e++)r=m(o[e],r);return h=!1,l(r)}function y(e,t){return e.x-t.x||e.y-t.y||(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)}function m(e,t){let r=function(e,t){let r,n=t,i=e.x,o=e.y,s=-1/0;if(O(e,n))return n;for(let t=0,l=0;t<x;t++,l+=4){if(o<d[l+1]||o>d[l+3]||d[l]>i||d[l+2]<=s)continue;let a=b(t);n=M(t);do{if(n.prev.next===n){if(O(e,n.next))return n.next;if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){let e=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=i&&e>s&&(s=e,r=n.x<n.next.x?n:n.next,e===i))return r}}n=n.next}while(n!==a)}if(!r)return null;let l=r.x,a=r.y,u=Math.min(o,a),c=Math.max(o,a),f=1/0;for(let t=0,p=0;t<x;t++,p+=4){if(d[p+2]<l||d[p]>i||d[p+3]<u||d[p+1]>c)continue;let h=b(t);n=M(t);do{if(n.prev.next===n&&i>=n.x&&n.x>=l&&i!==n.x&&E(o<a?i:s,o,l,a,o<a?s:i,o,n.x,n.y)){let t=Math.abs(o-n.y)/(i-n.x);(z(n,e)||n.y===o&&n.next.y===o&&n.next.x>i)&&(t<f||t===f&&(n.x>r.x||n.x===r.x&&C(r,n)))&&(r=n,f=t)}n=n.next}while(n!==h)}return r}(e,t);if(!r)return t;let n=F(r,e);return A(r,n.next.next),l(n,n.next),l(r,r.next)}let d=new Float64Array,x=0;const v=[],w=[];function A(e,t){let r=e;do{let e=x++;v[e]=r;let n=1/0,i=1/0,o=-1/0,s=-1/0,l=0;do{let t=r.next;r.z=e,r.x<n&&(n=r.x),r.x>o&&(o=r.x),r.y<i&&(i=r.y),r.y>s&&(s=r.y),t.x<n&&(n=t.x),t.x>o&&(o=t.x),t.y<i&&(i=t.y),t.y>s&&(s=t.y),r=t}while(++l<16&&r!==t);w[e]=r;let a=4*e;d[a]=n,d[a+1]=i,d[a+2]=o,d[a+3]=s}while(r!==t)}function b(e){let t=w[e];for(;t.prev.next!==t;)t=t.next;return w[e]=t,t}function M(e){let t=v[e];for(;t.prev.next!==t;)t=t.next;return v[e]=t,t}function C(e,t){return j(e.prev,e,t.prev)<0&&j(t.next,e,e.next)<0}const T=[];let S=[],R=new Uint32Array,Z=new Uint32Array;const U=new Uint32Array(256);function N(e,t,r,n,i,o){U.fill(0);for(let t=0;t<e;t++)U[r[t]>>>o&255]++;let s=0;for(let e=0;e<256;e++){let t=U[e];U[e]=s,s+=t}for(let s=0;s<e;s++){let e=r[s],l=U[e>>>o&255]++;n[l]=t[s],i[l]=e}}function _(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function B(e){let t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function E(e,t,r,n,i,o,s,l){return(i-s)*(t-l)>=(e-s)*(o-l)&&(e-s)*(n-l)>=(r-s)*(t-l)&&(r-s)*(o-l)>=(i-s)*(n-l)}function L(e,t){let r=O(e,t)&&j(e.prev,e,e.next)>0&&j(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||z(e,t)&&z(t,e)&&(0!==j(e.prev,e,t.prev)||0!==j(e,t.prev,t)))&&!function(e,t){let r=Math.min(e.x,t.x),n=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),s=e;do{let l=s.next;if(s.x>n&&l.x>n||s.x<r&&l.x<r||s.y>o&&l.y>o||s.y<i&&l.y<i)s=l;else{if(s.i!==e.i&&l.i!==e.i&&s.i!==t.i&&l.i!==t.i&&P(s,l,e,t))return!0;s=l}}while(s!==e);return!1}(e,t)&&(r||function(e,t){let r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{let e=r.next;r.y>o!=e.y>o&&i<(e.x-r.x)*(o-r.y)/(e.y-r.y)+r.x&&(n=!n),r=e}while(r!==e);return n}(e,t))}function j(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function O(e,t){return e.x===t.x&&e.y===t.y}function P(e,t,r,n,i=!0){let o=j(e,t,r),s=j(e,t,n),l=j(r,n,e),a=j(r,n,t);return(o>0&&s<0||o<0&&s>0)&&(l>0&&a<0||l<0&&a>0)||!!i&&!!(0===o&&$(e,r,t)||0===s&&$(e,n,t)||0===l&&$(r,e,n)||0===a&&$(r,t,n))}function $(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function z(e,t){return j(e.prev,e,e.next)<0?j(e,t,e.next)>=0&&j(e,e.prev,t)>=0:j(e,t,e.prev)<0||j(e,e.next,t)<0}function F(e,t){let r=k(e.i,e.x,e.y),n=k(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function D(e,t,r,n){let i=k(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function I(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),h&&function(e,t){let r=4*e.z;t.x<d[r]&&(d[r]=t.x),t.y<d[r+1]&&(d[r+1]=t.y),t.x>d[r+2]&&(d[r+2]=t.x),t.y>d[r+3]&&(d[r+3]=t.y)}(e.prev,e.next)}function k(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function H(e,t,r,n){let i=0;for(let o=t,s=r-n;o<r;o+=n)i+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return i}let W,K,q,V,G,Y=0,J=0;function Q(e,t,r,n,i,o){return(r-e)*(o-t)-(n-t)*(i-e)}function X(e,t,r,n,i,o,s,l){let a=e-s,u=t-l,c=r-s,f=n-l,p=i-s,h=o-l,g=a*a+u*u,y=c*c+f*f,m=p*p+h*h,d=g+y+m;return a*(f*m-y*h)-u*(c*m-y*p)+g*(c*h-f*p)<=1e-13*d*d}function ee(e){return e-e%3+(e+1)%3}o.deviation=function(e,t,r,n){let i=t&&t.length,o=i?t[0]*r:e.length,s=Math.abs(H(e,0,o,r));if(i)for(let n=0,i=t.length;n<i;n++){let o=t[n]*r,l=n<i-1?t[n+1]*r:e.length;s-=Math.abs(H(e,o,l,r))}let l=0;for(let t=0;t<n.length;t+=3){let i=n[t]*r,o=n[t+1]*r,s=n[t+2]*r;l+=Math.abs((e[i]-e[s])*(e[o+1]-e[i+1])-(e[i]-e[o])*(e[s+1]-e[i+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},o.flatten=function(e){let t=[],r=[],n=e[0][0].length,i=0,o=0;for(let s of e){for(let e of s)for(let r=0;r<n;r++)t.push(e[r]);o&&(i+=o,r.push(i)),o=s.length}return{vertices:t,holes:r,dimensions:n}},o.refine=function(e,t,r=2){let n=e,i=n.length;if(i<6)return;(function(e){(!W||W.length<e)&&(W=new Int32Array(e)),(!K||K.length<e)&&(K=new Int32Array(e)),(!G||G.length<e)&&(G=new Uint8Array(e));let t=1;for(;t<4*e;)t<<=1;(!q||q.length<t)&&(q=new Int32Array(t),V=new Uint32Array(t)),Y=t-1})(i),J++,K.fill(-1,0,i);let o=0;for(let e=0;e<i;e++){let t=n[e],r=n[ee(e)],i=t<r?t:r,s=t<r?r:t,l=(Math.imul(i,2654435761)^Math.imul(s,2246822507))&Y;for(;V[l]===J;){let t=q[l];if(-1!==t){let r=n[t],a=n[ee(t)];if(r===i&&a===s||r===s&&a===i){K[e]=t,K[t]=e,q[l]=-1,G[t]=1,W[o++]=t;break}}l=l+1&Y}V[l]!==J&&(q[l]=e,V[l]=J)}for(;o>0;){let e=W[--o];G[e]=0;let i=K[e];if(-1===i)continue;let s=e-e%3,l=i-i%3,a=s+(e+2)%3,u=s+(e+1)%3,c=l+(i+2)%3,f=l+(i+1)%3,p=n[a],h=n[e],g=n[u],y=n[c],m=t[p*r],d=t[p*r+1],x=t[h*r],v=t[h*r+1],w=t[g*r],A=t[g*r+1],b=t[y*r],M=t[y*r+1];if(!X(m,d,x,v,w,A,b,M)&&Q(m,d,x,v,b,M)>0&&Q(m,d,b,M,w,A)>0){n[e]=y,n[i]=p;let t=K[c],r=K[a];K[e]=t,-1!==t&&(K[t]=e),K[i]=r,-1!==r&&(K[r]=i),K[a]=c,K[c]=a,-1!==t&&0===G[e]&&(G[e]=1,W[o++]=e),-1!==r&&0===G[i]&&(G[i]=1,W[o++]=i),-1!==K[u]&&0===G[u]&&(G[u]=1,W[o++]=u),-1!==K[f]&&0===G[f]&&(G[f]=1,W[o++]=f)}}}},73354(e,t,r){r.d(t,{a:()=>f,b:()=>l,c:()=>i,d:()=>s,e:()=>p,f:()=>c,l:()=>u,n:()=>h,t:()=>o}),r(44208);var n=r(72727);function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[4],h=r[5],g=r[6],y=r[8],m=r[9],d=r[10],x=r[12],v=r[13],w=r[14],A=0,b=0;for(let r=0;r<a;r++){let r=t[A],n=t[A+1],s=t[A+2];e[b]=u*r+p*n+y*s+x,e[b+1]=c*r+h*n+m*s+v,e[b+2]=f*r+g*n+d*s+w,A+=o,b+=i}return e}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[3],h=r[4],g=r[5],y=r[6],m=r[7],d=r[8],x=0,v=0;for(let r=0;r<a;r++){let r=t[x],n=t[x+1],s=t[x+2];e[v]=u*r+p*n+y*s,e[v+1]=c*r+h*n+m*s,e[v+2]=f*r+g*n+d*s,x+=o,v+=i}}function a(e,t,r,n=3,i=n){let o=Math.min(e.length/n,t.length/i),s=0,l=0;for(let a=0;a<o;a++)e[l]=r*t[s],e[l+1]=r*t[s+1],e[l+2]=r*t[s+2],s+=i,l+=n;return e}function u(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,n,i=3,o=i){let s=Math.min(e.length/i,t.length/o),l=0,a=0,u=1/2.2;for(let c=0;c<s;c++)e[a]=n*(r*t[l])**u,e[a+1]=n*(r*t[l+1])**u,e[a+2]=n*(r*t[l+2])**u,l+=o,a+=i}function f(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=0,c=0;for(let n=0;n<a;n++)e[c]=t[u]+r[0],e[c+1]=t[u+1]+r[1],e[c+2]=t[u+2]+r[2],u+=o,c+=i;return e}function p(e,t){h(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r=3,n=r){let i=Math.min(e.length/r,t.length/n),o=0,s=0;for(let l=0;l<i;l++){let i=t[o],l=t[o+1],a=t[o+2],u=i*i+l*l+a*a;if(u>0){let t=1/Math.sqrt(u);e[s]=t*i,e[s+1]=t*l,e[s+2]=t*a}o+=n,s+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:h,normalizeView:p,scale:a,scaleView:function(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){let n=Math.min(e.count,t.count),i=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,l=t.typedBufferStride,a=0,u=0;for(let e=0;e<n;e++)i[u]=s[a]>>r,i[u+1]=s[a+1]>>r,i[u+2]=s[a+2]>>r,a+=l,u+=o},transformMat3:l,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},21287(e,t,r){r.d(t,{M5:()=>f,eV:()=>c});var n=r(78888),i=r(26306),o=r(49186),s=r(17676),l=r(84952);let a=null,u=!0;function c(e,t,r,n){if(!t||!r)throw Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,r)}catch{u=!1}let i=function(e,t,r){return r||=(a||(a=document.createElement("canvas"),a.width=1,a.height=1),a),r.getContext("2d").createImageData(e,t)}(t,r,n);return i.data.set(e,0),i}async function f(e,t){let{arrayBuffer:a,mediaType:u}=await async function(e,t){let r=(0,l.r$)(e);if(r?.isBase64)return{arrayBuffer:(0,i.M)(r.data),mediaType:r.mediaType};let o=await(0,n.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:n}=await r.e(820).then(()=>r(88439));if(e(a))return n(a,t)}if(c){let{isAnimatedPNG:e,parseApng:n}=await r.e(2390).then(()=>r(22390));if(e(a))return n(a,t)}return async function(e,t){let r=window.URL.createObjectURL(e);try{let{data:e}=await(0,n.A)(r,{...t,responseType:"image"});return e}catch(e){throw(0,s.zf)(e)?e:new o.A("invalid-image",`Could not fetch requested image at ${r}`)}finally{window.URL.revokeObjectURL(r)}}(new Blob([a],{type:u}),t)}},83300(e,t,r){r.d(t,{A:()=>Me});var n=r(32198),i=r(91429),o=r(69540),s=r(51850),l=r(92474),a=r(53966),u=r(61893),c=r(17676),f=r(36708),p=r(91075),h=r(86738),g=r(70328),y=r(24770),m=r(16939),d=r(95696),x=r(18251),v=r(73836),w=r(35522),A=r(65806),b=r(27615);function M(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var C=r(22141),T=r(72258);const S=()=>a.A.getLogger("esri.geometry.support.meshUtils.centerAt");const R=(0,s.vt)(),Z=(0,s.vt)(),U=(0,s.vt)();var N=r(9093),_=r(5443),B=r(48353),E=r(9762),L=r(99917),j=r(98764),O=r(73354),P=r(4197);const $=(0,N.vt)(),z=(0,P.jh)(24);var F=r(49186),D=r(84952);function I(e){let t=(0,D.nM)(e.url);return r=>{let n=(0,D.V1)(r,t,t),i=n?n.replace(/^ *\.\//,""):null;return(i?e.files.get(i):null)??r}}function k(e){return Y.fromBlob(e,J(e.name,e.type))}const H=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,K=/\.gltf$/i,q=/\.glb$/i;function V({mimeType:e,source:t,name:r}){return H.test(e)||K.test(r)?{url:t.url,type:"gltf"}:W.test(e)||q.test(r)?{url:t.url,type:"glb"}:null}function G(e){let t=new Map,r=null,n=null;for(let i of e){let{source:e,name:o}=i;r??=V(i),"ESRI3DO_NORM.glb"===o&&(n=V(i)),t.set(o,e.url),e.files.forEach((e,r)=>t.set(r,e))}let i=n??r;if(null==i)throw new F.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new Y(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class Y{constructor(e,t=()=>{},r=new Map,n){this.url=e,this.dispose=t,this.files=r,this.type=n}static fromBlob(e,t){let r=URL.createObjectURL(e);return new Y(r,()=>URL.revokeObjectURL(r),void 0,t)}}function J(e,t){return H.test(t)||K.test(e)?"gltf":W.test(t)||K.test(e)?"glb":void 0}var Q=r(66895),X=r(29461),ee=r(77690),te=r(29242),re=r(58083),ne=r(67026),ie=r(82534);const oe=()=>a.A.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,r,n=s.uY){if(null!=e){(0,re.$0)(ce,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=r){for(let r=0;r<3;r++)le[r]=e[t+r]-n[r];(0,w.Z0)(le,le,ce);for(let r=0;r<3;r++)e[t+r]=le[r]+n[r]}}}const le=(0,s.vt)(),ae=(0,N.vt)(),ue=(0,y.vt)(),ce=(0,N.vt)(),fe=(0,te.vt)(),pe=(0,s.vt)(),he=(0,ie.vt)(),ge=()=>a.A.getLogger("esri.geometry.support.meshUtils.scale");function ye(e,t,r=s.uY){if(e)for(let n=0;n<e.length;n+=3){for(let t=0;t<3;t++)me[t]=e[n+t]-r[t];(0,w.hs)(me,me,t);for(let t=0;t<3;t++)e[n+t]=me[t]+r[t]}}const me=(0,s.vt)(),de=(0,s.vt)(),xe=(0,N.vt)(),ve=(0,s.vt)();var we,Ae=r(1193);const be={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:d.A,local:x.A}};let Me=we=class extends((0,o.OU)((0,l.WV)((0,u.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new d.A,this.transform=null,this.metadata=new X.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Ae.A,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,f.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){let{spatialReference:e,vertexSpace:t}=this,r=this;return function(e){let{spatialReference:t,vertexSpace:r,untransformedBounds:n}=e,i=(0,g.gE)(n,z);if((0,b.Hq)(r)&&e.transform&&(0,O.t)(i,i,e.transform.localMatrix),"georeferenced"===r.type){let e=r.origin;return e&&(0,O.a)(i,i,e),(0,g.w1)((0,g.vY)(i),t)}let o=(0,j.lO)(t),s=r.origin;if(!(0,L.canProjectWithoutEngine)(o,t)){let[e,r,n]=s;return new _.A({xmin:e,ymin:r,zmin:n,xmax:e,ymax:r,zmax:n,spatialReference:t})}return(0,B.l)(t,s,$,o),(0,O.t)(i,i,$),(0,E.projectBuffer)(i,o,0,i,t,0),(0,g.w1)((0,g.vY)(i),t)}({get transform(){return r.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){let{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,g.vt)(g.v_):(0,g.vY)(e)}get origin(){let e=(0,b.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;let{center:t,zmin:r}=this._transformedExtent;return new h.A({x:t.x,y:t.y,z:r,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||=[],this.components.push(m.A.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){let t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}a.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,r,n){return(0,y.AU)(e,t,r,Ce),function(e,t,r){if(!e.vertexAttributes?.position||0===t[3])return;let{spatialReference:n,vertexSpace:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=le;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(oe(),r.spatialReference,o,C.JP);(0,ne.x8)(he,(0,y.yo)(t),(0,y.$I)(t));let p=(0,re.O7)(ae,he,s.uY,s.Un,f),{localMatrix:g}=i,m=(0,re.lw)(ae,p,g);i.scale=(0,re.X_)((0,s.vt)(),m),(0,re.hs)(m,m,(0,w.DI)(le,i.scale));let d=i.rotationAxis;i.rotation=(0,y.ui)(m),0===i.rotationAngle&&(i.rotationAxis=d),i.translation=(0,re.sC)((0,s.vt)(),m)}(e,t,o):M(i,n)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=pe;if(!(0,A.g)(r,o,i)&&((0,C.CN)(oe(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(oe(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,B.l)(i,o,ce,i),(0,ee.z0)(fe,ce);let p=ue;(0,w.ei)((0,y.yo)(ue),(0,y.yo)(t),fe),p[3]=t[3],(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(oe(),n,i):(se(u,p,3,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&(se(c,p,3),!(0,C.si)(c,s,n,u,i,l))||null!=a&&null!=f&&(se(f,p,4),!(0,C.Mv)(f,s,n,u,i,a))?(0,C.CN)(oe(),i,n):e.vertexAttributesChanged():(0,C.CN)(oe(),i,n)):(0,C.CN)(oe(),n,i)}(e,t,o):function(e,t,r){let n=pe;if((0,A.g)(r,n,e.spatialReference))se(e.vertexAttributes.position,t,3,n),se(e.vertexAttributes.normal,t,3),se(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(oe(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,Ce,n),this}offset(e,t,r){if(!this._checkIfLoaded("offset()"))return this;let{vertexSpace:n,vertexAttributes:i}=this,o=i?.position;if(!o)return this;if((0,b.Hq)(n)){let[i,o,l]=n.origin;n.origin=(0,s.fA)(i+e,o+t,l+r)}else{for(let n=0;n<o.length;n+=3)o[n]+=e,o[n+1]+=t,o[n+2]+=r;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n,spatialReference:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=me;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(ge(),r.spatialReference,o,C.JP);let p=(0,w.hZ)(de,t,t,t),g=(0,re.O7)(xe,ie.zK,s.uY,p,f),{localMatrix:m}=i,d=(0,re.lw)(xe,g,m);i.scale=(0,re.X_)((0,s.vt)(),d),(0,re.hs)(d,d,(0,w.DI)(me,i.scale));let x=i.rotationAxis;i.rotation=(0,y.ui)(d),0===i.rotationAngle&&(i.rotationAxis=x),i.translation=(0,re.sC)((0,s.vt)(),d)}(e,t,o):M(n,i)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=ve;if(!(0,A.g)(r,o,i)&&((0,C.CN)(ge(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(ge(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(ge(),n,i):(ye(u,t,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&!(0,C.si)(c,s,n,u,i,l)||null!=a&&null!=f&&!(0,C.Mv)(f,s,n,u,i,a)?(0,C.CN)(ge(),i,n):e.vertexAttributesChanged():(0,C.CN)(ge(),i,n)):(0,C.CN)(ge(),n,i)}(e,t,o):function(e,t,r){let n=ve;if((0,A.g)(r,n,e.spatialReference))ye(e.vertexAttributes.position,t,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(ge(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,e,t),this}centerAt(e,t){return this._checkIfLoaded("centerAt()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n}=e,i=r?.origin??e.origin;(0,b.Hq)(n)?function(e,t,r){let{vertexSpace:n}=e;if(!(0,b.Hq)(n))return;let i=Z,o=R;if(!(0,A.g)(t,o,e.spatialReference))return void(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP);if(!(0,A.g)(r,i,e.spatialReference))return void(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP);let l=(0,w.Re)(U,o,i);n.origin=(0,w.WQ)((0,s.vt)(),n.origin,l)}(e,t,i):M(n,i.spatialReference)?function(e,t,r){let n=(0,s.fA)(r.x,r.y,r.z??0),i=(0,T.UR)(e,new x.A({origin:n}));if(!i)return;let o=(0,s.fA)(t.x,t.y,t.z??0),l=(0,T.UR)({vertexAttributes:i,spatialReference:e.spatialReference,vertexSpace:new x.A({origin:o})},d.A.absolute);if(!l)return;let{position:a,normal:u,tangent:c}=l;e.vertexAttributes.position=a,e.vertexAttributes.normal=u,e.vertexAttributes.tangent=c,e.vertexAttributesChanged()}(e,t,i):function(e,t,r){let n=Z,i=R;if((0,A.g)(t,i,e.spatialReference))if((0,A.g)(r,n,e.spatialReference))(function(e,t,r){if(e)for(let n=0;n<e.length;n+=3)for(let i=0;i<3;i++)e[n+i]+=t[i]-r[i]})(e.vertexAttributes.position,i,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP)}else(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP)}(e,t,i)}(this,e,t),this}load(e){let{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,n){switch(t.source.type){case"client":case"service":return async function(e,t,n){let{source:i}=t,{loadGLTFMesh:o}=await(0,c.qr)(r.e(5841).then(()=>r(35841)),n),s=await async function(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");return G(e.map(e=>({name:e.name,mimeType:e.type,source:k(e)})))}(e.files):k(e.files);case"service":return async function(e,t){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");let r=await(0,c.nA)(e.map(async e=>{let r=await async function(e,t){let{parts:r,assetMimeType:n,assetName:i}=e;if(1===r.length)return new Y(r[0].partUrl);let o=await e.toBlob(t);return(0,c.Te)(t),Y.fromBlob(o,J(i,n))}(e);return(0,c.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:r}}));if((0,c.G4)(t))throw r.forEach(e=>e.source.dispose()),(0,c.NK)();return G(r)}(e.assets,t);default:throw new F.A("mesh-load-external:invalid-source","Invalid source type")}}(i,n);(0,c.Te)(n);let{mesh:{vertexAttributes:l,components:a},meta:{isDracoDecompressed:u}}=await o(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:I(s),signal:n?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}).finally(()=>s.dispose());if(u)throw new F.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=l,e.components=a}(e,t,n);case"loadable":return t.source.load(e,n);default:t.source}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(e){return super.clone((0,Q.WO)((0,Q.QN)(e)))}cloneShallow(){return new we({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){let[{toBinaryGLTF:t}]=await Promise.all([r.e(4038).then(()=>r(84038)),this.load(e)]);return(0,c.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(a.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}};(0,n.Cg)([(0,i.MZ)({type:[m.A],json:{write:!0}})],Me.prototype,"components",void 0),(0,n.Cg)([(0,i.MZ)({nonNullable:!0,types:be,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexSpace??e.clone(t)})],Me.prototype,"vertexSpace",void 0),(0,n.Cg)([(0,i.MZ)({type:v.A,clonable:(e,t)=>{let r=(0,Q.o2)(t);return r&&"transform"in r?r.transform:e?.clone()??e},json:{write:!0}})],Me.prototype,"transform",void 0),(0,n.Cg)([(0,i.MZ)({constructOnly:!0,type:X.O,clonable:(e,t)=>(0,Q.o2)(t)?.metadata??e.clone()})],Me.prototype,"metadata",void 0),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"hasExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_transformedExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_untransformedBounds",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"origin",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1}})],Me.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Me.prototype,"hasZ",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Me.prototype,"hasM",void 0),(0,n.Cg)([(0,i.MZ)({type:Ae.A,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexAttributes??e.clone(t)})],Me.prototype,"vertexAttributes",void 0),Me=we=(0,n.Cg)([(0,i.$K)("esri.geometry.Mesh")],Me);const Ce=(0,y.vt)()},15585(e,t,r){r.d(t,{If:()=>h,QT:()=>g});var n=r(32198),i=r(2741),o=r(49186),s=r(44208),l=r(53966);r(34727);class a{constructor(e,t){this.precision=e,this.importFactory=t,this.loading=null,this.exports=null,this.compiled=null,this.evictionTimer=null}}const u=new a("f32",async()=>(await r.e(2997).then(()=>r(42997))).default);function c(e){null!==e.evictionTimer&&(clearTimeout(e.evictionTimer),e.evictionTimer=null)}function f(e){c(e);let t=e.exports;null===t||t.HEAP8.byteLength<10485760||(e.evictionTimer=setTimeout(()=>{e.evictionTimer=null,async function(e,t){try{let r=e.compiled;if(null===r)return;let n=await e.importFactory();if(e.exports!==t)return;let i=await n(p(r));e.exports===t&&(c(e),e.exports=i)}catch(t){l.A.getLogger("esri.geometry.libtess").error("libtess:recycle-failed",`Failed to recycle libtess${e.precision.toUpperCase()}`,t)}}(e,t)},1e4))}function p(e){return{locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`),instantiateWasm:(t,r)=>(r(new WebAssembly.Instance(e,t),e),{})}}function h(){return function(e){if(null!==e.exports)return f(e),Promise.resolve();if(null!==e.loading)return e.loading;let t=async function(e){let t=await e.importFactory(),r=e.compiled??await async function(e){let t=`libtess-${e}.wasm`,r=(0,i.s)(`esri/core/libs/libtess/${t}`),n=await fetch(r,{credentials:"same-origin"});if(!n.ok)throw Error(`${n.status} : ${n.url}`);return WebAssembly.compile(await n.arrayBuffer())}(e.precision);e.compiled??=r,e.exports=await t(p(r)),f(e)}(e);e.loading=t;let r=()=>{e.loading===t&&(e.loading=null)};return t.then(r,r),t}(u)}function g(e,t,r=2){return function(e,t){c(e);try{return t()}finally{f(e)}}(u,()=>function(e,t,r=2){let i={stack:[],error:void 0,hasError:!1};try{let l=u.exports;if(!l)throw new o.A("libtess:not-loaded","libtessF32 not loaded");let a=(0,n.mS)(i,d.from(l,e),!1),c=(0,n.mS)(i,x.from(l,t),!1),f=e.length/r*4,p=(0,n.mS)(i,new d(l,f*r),!1),h=l.triangulate(a.ptr,c.ptr,c.size,r,p.ptr,f);if((0,s.A)("esri-tessellation-debug")){let e=l.getError();0!==e&&console.warn("libtess:triangulation",function(e){switch(e){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${e}`}}(e))}return{buffer:p.slice(0,h*r),vertexCount:h}}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}(e,t,r))}function y(e){return e.HEAPF32}function m(e){return e.HEAP32}new a("f64",async()=>(await r.e(9134).then(()=>r(99134))).default),new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,new Float64Array,new Uint32Array,new Uint32Array,new Uint32Array;class d{static from(e,t){let r=new d(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(e){y(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return y(this._libtess).slice(r+e,r+t)}}Symbol.dispose;class x{static from(e,t){let r=new x(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateLengthsArray(t)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(e){m(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return function(e){let t=m(e);return new Uint32Array(t.buffer,t.byteOffset,t.length)}(this._libtess).slice(r+e,r+t)}}},97146(e,t,r){r.d(t,{Dg:()=>o,lc:()=>f,my:()=>s,tM:()=>p,uW:()=>i});var n=r(34275);function i(e){return o(e,!0)}function o(e,t){if(Array.isArray(e)){if(e.length<1024)return e}else if(e.length<1024)return Array.from(e);let r=!0,i=!0;return e.some((e,t)=>(r&&=0===e,i&&=e===t,!r&&!i)),r?function(e){if(1===e)return u;if(e<1024)return Array(e).fill(0);if(e>a.length){let t=Math.max(2*a.length,e);a=new Uint8Array(t)}return new Uint8Array(a.buffer,0,e)}(e.length):i?p(e.length):(0,n.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(let r of e){if(r>=65536)return(0,n.iu)(e)?e:new Uint32Array(e);r>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e,t=e){return e<=1024?Array(e):t<=65536?new Uint16Array(e):new Uint32Array(e)}let l=h(131072),a=new Uint8Array(65536);const u=[0],c=(()=>{let e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function f(e){if(e===u)return!0;if(!(0,n.iu)(e))return!1;let{buffer:t}=e;return t===c.buffer||t===l.buffer||t===a.buffer}function p(e){return 1===e?u:e<1024?function(e){let t=Array(e).fill(0);for(let r=0;r<e;r++)t[r]=r;return t}(e):e<c.length?new Uint16Array(c.buffer,0,e):(e>l.length&&(l=h(Math.max(2*l.length,e))),new Uint32Array(l.buffer,0,e))}function h(e){let t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}},16939(e,t,r){r.d(t,{A:()=>h});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(25482),u=r(53966),c=r(19211),f=r(80882),p=r(31199);let h=n=class extends((0,l.OU)(a.o)){static from(e){return(0,s.PZ)(n,e)}constructor(e){super(e),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(e){this._set("faces",(0,p.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},u.A.getLogger(this)))}castMaterial(e){return e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?(0,s.PZ)(f.A,e):(0,s.PZ)(c.A,e)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,i.Cg)([(0,o.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"material",void 0),(0,i.Cg)([(0,o.wg)("material")],h.prototype,"castMaterial",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(93223);let u=class extends((0,s.OU)(l.o)){static{n=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new n}};(0,i.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(25482),l=r(51850),a=r(93223);let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.type="local",this.origin=(0,l.vt)()}};(0,n.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,r){r.d(t,{A:()=>f});var n=r(32198),i=r(68197),o=r(91429),s=r(69540),l=r(25482),a=r(35063),u=r(51147),c=r(66895);let f=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(e){this._set("colorTexture",null==e?null:a.A.from(e))}get normalTexture(){return this._get("normalTexture")}set normalTexture(e){this._set("normalTexture",null==e?null:a.A.from(e))}clone(e){let t=(0,c.hz)(e),r=t?.materialMap?.get(this);if(r)return r;let n=super.clone((0,c.QN)(e));return t?.materialMap?.set(this,n),n}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null==this.color?0:16,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null==this.colorTextureTransform?0:20,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null==this.normalTextureTransform?0:20,e}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterial")],f)},80882(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(68197),o=r(91429),s=r(19211),l=r(35063),a=r(51147);let u=class extends s.A{constructor(e){super(e),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(e){this._set("emissiveTexture",null==e?null:l.A.from(e))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(e){this._set("occlusionTexture",null==e?null:l.A.from(e))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(e){this._set("metallicRoughnessTexture",null==e?null:l.A.from(e))}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null==this.emissiveColor?0:16,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null==this.emissiveTextureTransform?0:20,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null==this.occlusionTextureTransform?0:20,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null==this.metallicRoughnessTextureTransform?0:20,e}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(e,t,r){r.d(t,{A:()=>m});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(21287),u=r(25482),c=r(97159),f=r(66895),p=r(43937),h=r(36005);const g=new WeakMap;let y=0,m=class extends((0,l.OU)(u.o)){static{n=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,r,n){e instanceof HTMLImageElement?t[r]={type:"image-element",src:(0,c.t)(e.src,n),crossOrigin:e.crossOrigin}:e instanceof HTMLCanvasElement?t[r]={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))}:e instanceof HTMLVideoElement?t[r]={type:"video-element",src:(0,c.t)(e.src,n),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload}:e instanceof ImageData&&(t[r]={type:"image-data",imageData:d(e)})}readData(e){switch(e.type){case"image-element":{let t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{let t=x(e.imageData),r=document.createElement("canvas");return r.width=t.width,r.height=t.height,r.getContext("2d").putImageData(t,0,0),r}case"image-data":return x(e.imageData);case"video-element":{let t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){let{data:e,url:t}=this,r=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?v(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?v(e):!!(t&&r(t)||e instanceof HTMLImageElement&&r(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){let e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null==this.url?null==this.data?t():this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(g.has(this.data)||g.set(this.data,++y),t(g.get(this.data))):t(this.url)}get memoryUsage(){let e=0;if(e+=null==this.url?0:this.url.length,null!=this.data){let t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(e){let t=(0,f.$N)(e),r=t?.textureMap?.get(this);if(r)return r;let n=super.clone(e);return t?.textureMap?.set(this,n),n}static from(e){return"string"==typeof e?new n({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new n({data:e}):(0,s.PZ)(n,e)}};function d(e){let t="";for(let r=0;r<e.data.length;r++)t+=String.fromCharCode(e.data[r]);return{data:btoa(t),width:e.width,height:e.height}}function x(e){let t=atob(e.data),r=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return(0,a.eV)(r,e.width,e.height)}function v(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,i.Cg)([(0,o.MZ)({type:String,json:{write:c.w}})],m.prototype,"url",null),(0,i.Cg)([(0,o.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],m.prototype,"data",null),(0,i.Cg)([(0,p.K)("data")],m.prototype,"writeData",null),(0,i.Cg)([(0,h.w)("data")],m.prototype,"readData",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],m.prototype,"transparent",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],m.prototype,"wrap",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"contentHash",null),m=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshTexture")],m)},51147(e,t,r){r.d(t,{A:()=>l});var n=r(32198),i=r(91429),o=r(69540),s=r(25482);let l=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshTextureTransform")],l)},1193(e,t,r){r.d(t,{A:()=>f});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(4718),u=r(53966),c=r(31199);let f=n=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,c.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},u.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&u.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},u.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clonePositional(){let e={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new n(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,i.Cg)([(0,o.wg)("color")],f.prototype,"castColor",null),(0,i.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,i.Cg)([(0,o.wg)("position")],f.prototype,"castPosition",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,i.Cg)([(0,o.wg)("uv")],f.prototype,"castUv",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,i.Cg)([(0,o.wg)("normal")],f.prototype,"castNormal",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,i.Cg)([(0,o.wg)("tangent")],f.prototype,"castTangent",null),f=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(e,t,r){function n(e,t,r){if(t<=0)return 0;let n=e-r;return n<0?0:Math.floor(n/t)+1}r.d(t,{k:()=>n}),r(53966)},31199(e,t,r){function n(e,t,r,n){let{loggerTag:i,stride:o}=t;return e.length%o===0?e:(n.error(i,`Invalid array length, expected a multiple of ${o}`),new r([]))}function i(e,t,r,i,o){if(!e)return e;if(e instanceof t)return n(e,i,t,o);for(let s of r)if(e instanceof s)return n(new t(e),i,t,o);if(Array.isArray(e))return n(new t(e),i,t,o);{let n=r.map(e=>`'${e.name}'`);return o.error(`Failed to set property, expected one of ${n}, but got ${e.constructor.name}`),new t([])}}function o(e,t,r){t[r]=function(e){let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r];return t}(e)}r.d(t,{B:()=>o,b:()=>i})},98331(e,t,r){r.d(t,{H5:()=>p,createWithExternalSource:()=>f});var n=r(49186),i=(r(17676),r(9762),r(4197),r(77690),r(29242)),o=(r(35522),r(51850));r(48353),r(13030),(0,i.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},r(62788);var s=r(95488);r(44208),r(83349),r(53966),r(15585),r(95108),r(97146),r(34727),r(86211),(0,r(27921).vt)(),new s.I,new WeakSet;var l=r(83300),a=(r(16939),r(95696),r(73836));r(1193),r(66895),r(72258);var u=r(29461),c=r(27615);function f(e,t,r){let n=r?.extent??null,{spatialReference:i}=e,o=r?.transform?.clone()??new a.A,s=(0,c.TE)(e,r),f={source:t,extent:n,unitConversionDisabled:r?.unitConversionDisabled},p=new u.O;return p.externalSources.push(f),new l.A({metadata:p,transform:o,vertexSpace:s,spatialReference:i})}function p(e,t){let{spatialReference:r}=e,i=t?.transform?.clone()??new a.A,o=(0,c.TE)(e,t),s=new l.A({transform:i,vertexSpace:o,spatialReference:r});return s.addResolvingPromise(Promise.reject(new n.A("mesh-incomplete","Mesh resources are not complete"))),s}(0,o.vt)(),(0,i.vt)()},63579(e,t,r){r.d(t,{Bq:()=>a,Qp:()=>l,WN:()=>m,dK:()=>d,eN:()=>h,fH:()=>y,in:()=>g,yr:()=>u});var n=r(4576),i=r(17676),o=r(20557),s=r(78888);class l{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,n.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,i.Te)(e),new Blob(r)}}class a{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(p):p(e.files);case"service":return e.assets.some(p);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(e){if(e instanceof File){let{type:t,name:r}=e;return c.test(t)||f.test(r)}return c.test(e.assetMimeType)||f.test(e.assetName)}function h(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function g(e,t){if(e===t)return!0;let{source:r}=e,{source:n}=t;if(r===n)return!0;if("service"===r.type&&"service"===n.type){if(r.assets.length!==n.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...n.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function y(e,t){return e instanceof File?(0,o.rq)(e,t):(0,o.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function d(e){return!!e.original}},29461(e,t,r){r.d(t,{O:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(7762),l=r(36708),a=r(63579);let u=class extends o.Pw{constructor(e){super(e),this.externalSources=new s.A,this._explicitDisplaySource=null,this.addHandles((0,l.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,a.yr)(e))throw Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,a.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,a.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(a.yr)}};(0,n.Cg)([(0,i.MZ)()],u.prototype,"externalSources",void 0),(0,n.Cg)([(0,i.MZ)()],u.prototype,"displaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(e,t,r){r.d(t,{$N:()=>c,Lz:()=>o,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>i});const n=Symbol("meshContext");function i(e){return e&&"object"==typeof e&&n in e?e[n]:void 0}function o(e,t){let r=i(e);return{...e,[n]:{...r,...t}}}const s=Symbol("meshMaterialContext");function l(e){return e&&"object"==typeof e&&s in e?e[s]:void 0}function a(e){if(l(e)?.materialMap)return e;let t={materialMap:new Map};return{...e,[s]:t}}const u=Symbol("meshTextureContext");function c(e){return e&&"object"==typeof e&&u in e?e[u]:void 0}function f(e){if(c(e)?.textureMap)return e;let t={textureMap:new Map};return{...e,[u]:t}}},27615(e,t,r){r.d(t,{CK:()=>a,Hq:()=>l,MW:()=>u,TE:()=>c,yJ:()=>f});var n=r(35522),i=r(86738),o=r(95696),s=r(18251);function l(e){return null!=e.origin}function a(e){return l(e.vertexSpace)}function u(e,t){if(!l(e))return null;let[r,n,o]=e.origin;return new i.A({x:r,y:n,z:o,spatialReference:t})}function c(e,t){let{x:r,y:n,z:i,spatialReference:l}=e,a=[r,n,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(l))?new s.A({origin:a}):new o.A({origin:a})}function f(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,n.t2)(e.origin,t.origin))}}}]);
@@ -1 +1 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2186],{2272(e,t,i){i.d(t,{Dl:()=>a,gf:()=>d,jV:()=>u,lF:()=>f});var n=i(92602),r=i(4718),s=i(84952),o=i(70333),l=i(926);function u(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function a(e){return"string"==typeof e?(0,s.An)(e):(0,r.o8)(e)}function f(e,t,i){let n={};for(let r in e){if("declaredClass"===r)continue;let s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[r]=s.map(e=>f(e));else if("object"==typeof s)if(s.toJSON){let e=s.toJSON(i?.[r]);n[r]=t?e:JSON.stringify(e)}else n[r]=t?s:JSON.stringify(s);else n[r]=s}return n}async function d(e,t,r){return function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&n.A.request.useIdentity&&await Promise.all([i.e(8673),i.e(7956),i.e(4189)]).then(()=>i(98232)),(await o.id.getCredential(e,r))?.token)}},32186(e,t,i){i.r(t),i.d(t,{deleteForwardEdits:()=>o});var n=i(49186),r=i(78888),s=i(2272);async function o(e,t,i,o){if(!t)throw new n.A("post:missing-guid","guid for version is missing");let l=(0,s.Dl)(e),u=i.toJSON(),a=(0,s.jV)(l.query,{query:(0,s.lF)({...u,f:"json"}),...o,method:"post"});t.startsWith("{")&&(t=t.slice(1,-1));let f=`${l.path}/versions/${t}/deleteForwardEdits`,{data:d}=await(0,r.A)(f,a);return d}}}]);
1
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2186],{2272(e,t,i){i.d(t,{Dl:()=>a,gf:()=>d,jV:()=>u,lF:()=>f});var n=i(92602),r=i(4718),s=i(84952),o=i(70333),l=i(926);function u(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function a(e){return"string"==typeof e?(0,s.An)(e):(0,r.o8)(e)}function f(e,t,i){let n={};for(let r in e){if("declaredClass"===r)continue;let s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[r]=s.map(e=>f(e));else if("object"==typeof s)if(s.toJSON){let e=s.toJSON(i?.[r]);n[r]=t?e:JSON.stringify(e)}else n[r]=t?s:JSON.stringify(s);else n[r]=s}return n}async function d(e,t,r){return function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&n.A.request.useIdentity&&await Promise.all([i.e(8673),i.e(37),i.e(4189)]).then(()=>i(98232)),(await o.id.getCredential(e,r))?.token)}},32186(e,t,i){i.r(t),i.d(t,{deleteForwardEdits:()=>o});var n=i(49186),r=i(78888),s=i(2272);async function o(e,t,i,o){if(!t)throw new n.A("post:missing-guid","guid for version is missing");let l=(0,s.Dl)(e),u=i.toJSON(),a=(0,s.jV)(l.query,{query:(0,s.lF)({...u,f:"json"}),...o,method:"post"});t.startsWith("{")&&(t=t.slice(1,-1));let f=`${l.path}/versions/${t}/deleteForwardEdits`,{data:d}=await(0,r.A)(f,a);return d}}}]);
@@ -1 +1 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2769],{69052(e,t,r){r.d(t,{hr:()=>i});var n=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return l(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return l(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function l(e,t,r,n,i=0,l=!1){return(n-=i)<t?n+=o(e,t-n):n>r&&(n-=o(e,n-r)),l&&n===r&&(n=t),n+i}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const s=new i(0,2*Math.PI),a=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,a,"uC",0,s])},18370(e,t,r){r.d(t,{z:()=>i});class n{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function i(e){return new n(e)}},52039(e,t,r){r.d(t,{O7:()=>p,Y_:()=>y,el:()=>u});var n=r(69052),i=(r(49186),r(18370)),l=r(17676),o=(r(5443),r(39829)),s=(r(82799),r(16930)),a=(r(80754),r(21325));async function u(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let n=null;for(let t of e)n??=t?.spatialReference;if(!n)return e;let i=(0,a.Vp)(n);if(!i)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(i);return["xmin"in t?t:new o.A(t)]}let[s,u]=i.valid,p=!1;for(let t of e){if(!t)continue;if("point"===t.type){p||=t.x>=u,p||=t.x<=s;continue}let{extent:e}=t;if(null==e){p=!0;break}p||=e.xmin>=u,p||=e.xmin<=s,p||=e.xmax>=u,p||=e.xmax<=s}if(!p)return e;let[{foldInto360Range:c},y]=await(0,l.qr)(Promise.all([f.getImportPromise(),m.getImportPromise()]),r),h=y.fromSpatialReference(n);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=y.fromGeometry(e),r=y.toGeometry(c(t,h),n);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const f=(0,i.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),m=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function p(e,t,r){let n=(0,a.Vp)(r);if(null==n)return e;let[i,l]=n.valid,o=2*l,s=0,u=0;t>l?s=Math.ceil(Math.abs(t-l)/o):t<i&&(s=-Math.ceil(Math.abs(t-i)/o)),e>l?u=Math.ceil(Math.abs(e-l)/o):e<i&&(u=-Math.ceil(Math.abs(e-i)/o));let f=e+(s-u)*o,m=f-t;return m>l?f-=o:m<i&&(f+=o),f}function c(e){let t=(0,a.Vp)(e);if(null==t)return null;let[r,i]=t.valid;return new n.hr(r,i)}const y=c(s.A.WGS84);c(s.A.WebMercator)},80754(e,t,r){r.d(t,{j7:()=>s,kS:()=>u,kd:()=>a});var n=r(82799),i=r(16930),l=r(52006),o=r(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,l.Ed)(e))for(let r of function(e){return(0,o.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,l.aO)(e)){let[r,n]=e.c;r[0]+=t,n[0]+=t}else if((0,l.FG)(e)){let[r,n]=e.a;r[0]+=t,n[0]+=t}else if((0,l.n1)(e)){let[r,n,i]=e.b;r[0]+=t,n[0]+=t,i[0]+=t}else e[0]+=t;for(let r of function(e){return(0,o.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}},41653(e,t,r){r.r(t),r.d(t,{queryModel:()=>g,queryModels:()=>d});var n=r(4576),i=r(49186),l=r(91869),o=r(84952),s=r(78888),a=r(99199),u=r(97552),f=r(20557),m=r(32198),p=r(56372),c=r(91429);let y=class extends p.A{constructor(e){super(e),this.name="",this.size=0}arrayBuffer(e){return this.loadArrayBuffer(e)}};(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"flags",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"loadArrayBuffer",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"name",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"size",void 0),y=(0,m.Cg)([(0,c.$K)("esri.layers.scene.ModelFileInfo")],y);let h=class extends p.A{constructor(e){super(e),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};async function d(e,t,r,s){let m=e.infoFor3D;if(!m)throw new i.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:e});let{objectIdField:p,globalIdField:c}=t;if(!p||!c)throw new i.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:e});let y=function(e,t,r,n){let i=function(e,t){let r=u.A.from(t)?.clone()??e.createQuery();return r.outFields=null,r.formatOf3DObjects=null,r.returnGeometry=!1,r}(e,t);return i.outFields=[r,n],i.returnGeometry=!1,i}(e,r,p,c),h=await t.queryFeatures(y,s);return await async function(e){let{infoFor3D:t,associatedLayer:r,options:i}=e,s=r.globalIdField,m=r.parsedUrl;if(!s||!m)return new Map;let p=await async function(e){let{options:t,infoFor3D:r,featureInfos:i}=e,s=[...i.keys()];if(t?.requestedFormat){let e=(0,f.fE)(t.requestedFormat,r.supportedFormats);return e?[{formatId:e,objectIds:s}]:[]}return await async function({options:e,infoFor3D:t,featureInfos:r,requestQuery:i,associatedLayer:s},m){let p=t.assetMapFieldRoles.parentGlobalId,c=t.assetMapFieldRoles.assetType,y=t.assetMapFieldRoles.flags,h=new Map;for(let[e,{globalId:t}]of r)t&&h.set(e,t);let d=(0,n.Am)(h.values()),g=(0,f.JZ)(t);if(!g||!d.length)return[];let w=(0,o.fj)(s.parsedUrl?.path??"",`../${g.id}`),M=!!e?.sourceOnly,A=new u.A({where:`${p} IN (${d.map(F).join(",")})`,outFields:M?[p,c,y]:[p,c],returnDistinctValues:!0,returnGeometry:!1}),{features:b}=await(0,a.s)(w,A,{query:i,signal:e?.signal}),x=new Set(m),v=new Map;for(let e of b){let t=e.getAttribute(p),r=e.getAttribute(c),n=e.getAttribute(y)??0;!r||!x.has(r)||!t||1&n||(0,l.tE)(v,t,()=>new Set).add(r)}let q=new Map;for(let[e,t]of h)for(let r of v.get(t)??[])(0,l.tE)(q,r,()=>[]).push(e);return m.map(e=>({formatId:e,objectIds:q.get(e)??[]})).filter(({objectIds:e})=>e.length>0)}(e,(0,n.Am)([...r.queryFormats,...r.editFormats]))}(e),c=new Map,y=await Promise.all(p.map(async({formatId:n,objectIds:l})=>{let o=(0,f.be)(n,t.supportedFormats),u=r.parsedUrl;if(null==o||!u||!l.length)return null;let m=(0,f._h)(n,t.supportedFormats),p=(0,f.qv)(m),c=r.createQuery();return c.objectIds=l,c.outFields=[s],c.formatOf3DObjects=n,c.returnGeometry=!0,{modelFormat:o,modelFileExtensions:p,featureSetJSON:await(0,a.e)(u.path,c,{query:e.requestQuery,signal:i?.signal},{uniqueIdFields:r.uniqueIdFields})}}));for(let t of y)t&&w(e,t.modelFormat,t.modelFileExtensions,t.featureSetJSON,c);return c}(new x(e,t,function(e){let t=new Map;for(let r of e.features){let e=r.getObjectId(),n=r.getGlobalId();null!=e&&null!=n&&t.set(e,{globalId:n})}return t}(h),m,s))}async function g(e,t,r,n){let i=n?.format;return((await d(e,t,{objectIds:[r]},{...n,requestedFormat:i,sourceOnly:null==i})).get(r)??[]).find(e=>i&&e.format===i||!i&&e.isSource)}function w({featureInfos:e,requestQuery:t,infoFor3D:r},n,i,o,s){let a=new Map;for(let e of o.assetMaps??[])(0,l.tE)(a,e.parentGlobalId,()=>[]).push(e);for(let[o,u]of e){let e=a.get(u.globalId);if(!e?.length)continue;let f=M(e,t,r);if(!f.length)continue;let m=f.reduce((e,t)=>e+t.size,0),p=b(f,i),c=!p.flags.includes("DERIVED");(0,l.tE)(s,o,()=>[]).push(new h({name:p.name,size:m,format:n,isSource:c,files:f}))}}function M(e,t,r){let n=new Map,i=({assetType:e})=>null!=(0,f.be)(e,r.supportedFormats),o=e.some(e=>i(e)&&!e.flags.includes("DERIVED"));for(let t of e)o&&i(t)&&t.flags.includes("DERIVED")||(0,l.tE)(n,t.assetName,()=>[]).push(t);let s=[];for(let[e,r]of n){r.sort((e,t)=>e.seqNo-t.seqNo);let n=r.reduce((e,t)=>e+t.size,0),i=r.map(({assetURL:e})=>e).filter(e=>!!e);i.length&&s.push(new y({name:e,size:n,flags:r[0].flags,loadArrayBuffer:e=>A(i,t,e)}))}return s}async function A(e,t,r){let n=await Promise.all(e.map(e=>(0,s.A)(e,{responseType:"array-buffer",query:t,signal:r?.signal}).then(({data:e})=>e)));return 1===n.length?n[0]:function(e){let t=e.reduce((e,t)=>e+t.byteLength,0),r=new Uint8Array(t),n=0;for(let t of e)r.set(new Uint8Array(t),n),n+=t.byteLength;return r.buffer}(n)}function b(e,t){return e.find(({name:e})=>t.some(t=>e.toLowerCase().endsWith(`.${t}`)))??e[0]}function F(e){return`'${e.replaceAll("'","''")}'`}(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"files",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"format",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"isSource",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"name",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"size",void 0),h=(0,m.Cg)([(0,c.$K)("esri.layers.scene.ModelInfo")],h);class x{constructor(e,t,r,n,i){this.layer=e,this.associatedLayer=t,this.featureInfos=r,this.infoFor3D=n,this.options=i,this.requestQuery={...t.parsedUrl?.query,...e.customParameters,...e.apiKey?{token:e.apiKey}:{}}}}},99199(e,t,r){r.d(t,{e:()=>a,s:()=>s});var n=r(22671),i=r(97552),l=r(2272),o=r(80893);async function s(e,t,r,i){let l=await a(e,t,r,i);return n.A.fromJSON(l)}function a(e,t,r,n){let s=(0,l.Dl)(e),a={...r},u=i.A.from(t);return(0,o.eW)(s,u,u.sourceSpatialReference,a,n)}},22671(e,t,r){r.d(t,{A:()=>w});var n,i=r(32198),l=r(91429),o=r(66552),s=r(25482),a=r(4718),u=r(16930),f=r(60408),m=r(65864),p=r(50498),c=r(52106),y=r(20437),h=r(36005),d=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,c.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);let{features:i}=this;if(i)for(let e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,n=(0,m.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=u.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let n=t.features[r];n.geometry&&=(e?.[r])?.toJSON()||n.geometry}return t}quantize(e){let{scale:[t,r],translate:[n,i]}=e,l=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=l.length;e<t;e++)o?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[n,i],scale:[l,o]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+n,e=>i-e*o,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let n=u.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){let l=e[t],o=r.fromJSON(l),s=l.geometry?.spatialReference;null!=o.geometry&&!s&&(o.geometry.spatialReference=n);let a=l.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i,l=[];for(let o=0,s=e.length;o<s;o++){let s=e[o];if(o>0){let e=t(s[0]),o=r(s[1]);(e!==n||o!==i)&&(l.push([e-n,o-i]),n=e,i=o)}else n=t(s[0]),i=r(s[1]),l.push([n,i])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let n=(0,f.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,l=n.length;e<l;e++){let l=n[e],o=this._quantizePoints(l,t,r);o&&i.push(o)}return i.length>0?((0,f.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{let n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,o,s=(0,f.Bi)(e)?e.rings:e.paths;for(let e=0,n=s.length;e<n;e++){let n=s[e];for(let e=0,i=n.length;e<i;e++){let i=n[e];e>0?(l+=i[0],o+=i[1]):(l=i[0],o=i[1]),i[0]=t(l),i[1]=r(o)}}if(n&&i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{let l,o,s=e.points;for(let e=0,n=s.length;e<n;e++){let n=s[e];e>0?(l+=n[0],o+=n[1]):(l=n[0],o=n[1]),n[0]=t(l),n[1]=r(o)}if(n&&i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,l.MZ)({type:[c.A],json:{write:!0}})],w.prototype,"features",void 0),(0,i.Cg)([(0,h.w)("features")],w.prototype,"readFeatures",null),(0,i.Cg)([(0,l.MZ)({type:[y.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,i.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i.Cg)([(0,d.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i.Cg)([(0,l.MZ)({types:p.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,h.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},2991(e,t,r){r.d(t,{G9:()=>u,RZ:()=>a});var n=r(39516);const i="=",l=">=",o="<=";function s(e,t,r,i){let l=i.get(e)?.type,o=i.getTimeZone(e);return`${(0,n.iA)(e)} ${t} ${(0,n.YG)(r,{type:"date"},{type:l,timeZone:o})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:u,endField:f}=t,{start:m,end:p}=e;if(!m&&!p||!u&&!f)return;let c=u??f,y=f??u;if(c&&y){if(m&&p){if(m.getTime()===p.getTime())return(0,n.mA)(a,s(c,i,m,r));if(!u||!f){let e=s(c,l,m,r),t=s(c,o,p,r);return(0,n.mA)(a,(0,n.mA)(e,t))}let e=s(u,l,m,r),t=s(f,o,p,r);return(0,n.mA)(a,(0,n.mA)(e,t))}if(m)return(0,n.mA)(a,s(c,l,m,r));if(p)return(0,n.mA)(a,s(y,o,p,r))}}function u(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>m,jV:()=>a,lF:()=>f});var n=r(92602),i=r(4718),l=r(84952),o=r(70333),s=r(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,l.An)(e):(0,i.o8)(e)}function f(e,t,r){let n={};for(let i in e){if("declaredClass"===i)continue;let l=e[i];if(null!=l&&"function"!=typeof l)if(Array.isArray(l))n[i]=l.map(e=>f(e));else if("object"==typeof l)if(l.toJSON){let e=l.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?l:JSON.stringify(l);else n[i]=l}return n}async function m(e,t,i){return function(e,t){return e?t&&(0,s.Qc)(e)?t:(0,s.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&n.A.request.useIdentity&&await Promise.all([r.e(8673),r.e(7956),r.e(4189)]).then(()=>r(98232)),(await o.id.getCredential(e,i))?.token)}}}]);
1
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2769],{69052(e,t,r){r.d(t,{hr:()=>i});var n=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return l(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return l(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function l(e,t,r,n,i=0,l=!1){return(n-=i)<t?n+=o(e,t-n):n>r&&(n-=o(e,n-r)),l&&n===r&&(n=t),n+i}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const s=new i(0,2*Math.PI),a=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,a,"uC",0,s])},18370(e,t,r){r.d(t,{z:()=>i});class n{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function i(e){return new n(e)}},52039(e,t,r){r.d(t,{O7:()=>p,Y_:()=>y,el:()=>u});var n=r(69052),i=(r(49186),r(18370)),l=r(17676),o=(r(5443),r(39829)),s=(r(82799),r(16930)),a=(r(80754),r(21325));async function u(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let n=null;for(let t of e)n??=t?.spatialReference;if(!n)return e;let i=(0,a.Vp)(n);if(!i)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(i);return["xmin"in t?t:new o.A(t)]}let[s,u]=i.valid,p=!1;for(let t of e){if(!t)continue;if("point"===t.type){p||=t.x>=u,p||=t.x<=s;continue}let{extent:e}=t;if(null==e){p=!0;break}p||=e.xmin>=u,p||=e.xmin<=s,p||=e.xmax>=u,p||=e.xmax<=s}if(!p)return e;let[{foldInto360Range:c},y]=await(0,l.qr)(Promise.all([f.getImportPromise(),m.getImportPromise()]),r),h=y.fromSpatialReference(n);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=y.fromGeometry(e),r=y.toGeometry(c(t,h),n);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const f=(0,i.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),m=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function p(e,t,r){let n=(0,a.Vp)(r);if(null==n)return e;let[i,l]=n.valid,o=2*l,s=0,u=0;t>l?s=Math.ceil(Math.abs(t-l)/o):t<i&&(s=-Math.ceil(Math.abs(t-i)/o)),e>l?u=Math.ceil(Math.abs(e-l)/o):e<i&&(u=-Math.ceil(Math.abs(e-i)/o));let f=e+(s-u)*o,m=f-t;return m>l?f-=o:m<i&&(f+=o),f}function c(e){let t=(0,a.Vp)(e);if(null==t)return null;let[r,i]=t.valid;return new n.hr(r,i)}const y=c(s.A.WGS84);c(s.A.WebMercator)},80754(e,t,r){r.d(t,{j7:()=>s,kS:()=>u,kd:()=>a});var n=r(82799),i=r(16930),l=r(52006),o=r(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,l.Ed)(e))for(let r of function(e){return(0,o.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,l.aO)(e)){let[r,n]=e.c;r[0]+=t,n[0]+=t}else if((0,l.FG)(e)){let[r,n]=e.a;r[0]+=t,n[0]+=t}else if((0,l.n1)(e)){let[r,n,i]=e.b;r[0]+=t,n[0]+=t,i[0]+=t}else e[0]+=t;for(let r of function(e){return(0,o.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}},41653(e,t,r){r.r(t),r.d(t,{queryModel:()=>g,queryModels:()=>d});var n=r(4576),i=r(49186),l=r(91869),o=r(84952),s=r(78888),a=r(99199),u=r(97552),f=r(20557),m=r(32198),p=r(56372),c=r(91429);let y=class extends p.A{constructor(e){super(e),this.name="",this.size=0}arrayBuffer(e){return this.loadArrayBuffer(e)}};(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"flags",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"loadArrayBuffer",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"name",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"size",void 0),y=(0,m.Cg)([(0,c.$K)("esri.layers.scene.ModelFileInfo")],y);let h=class extends p.A{constructor(e){super(e),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};async function d(e,t,r,s){let m=e.infoFor3D;if(!m)throw new i.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:e});let{objectIdField:p,globalIdField:c}=t;if(!p||!c)throw new i.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:e});let y=function(e,t,r,n){let i=function(e,t){let r=u.A.from(t)?.clone()??e.createQuery();return r.outFields=null,r.formatOf3DObjects=null,r.returnGeometry=!1,r}(e,t);return i.outFields=[r,n],i.returnGeometry=!1,i}(e,r,p,c),h=await t.queryFeatures(y,s);return await async function(e){let{infoFor3D:t,associatedLayer:r,options:i}=e,s=r.globalIdField,m=r.parsedUrl;if(!s||!m)return new Map;let p=await async function(e){let{options:t,infoFor3D:r,featureInfos:i}=e,s=[...i.keys()];if(t?.requestedFormat){let e=(0,f.fE)(t.requestedFormat,r.supportedFormats);return e?[{formatId:e,objectIds:s}]:[]}return await async function({options:e,infoFor3D:t,featureInfos:r,requestQuery:i,associatedLayer:s},m){let p=t.assetMapFieldRoles.parentGlobalId,c=t.assetMapFieldRoles.assetType,y=t.assetMapFieldRoles.flags,h=new Map;for(let[e,{globalId:t}]of r)t&&h.set(e,t);let d=(0,n.Am)(h.values()),g=(0,f.JZ)(t);if(!g||!d.length)return[];let w=(0,o.fj)(s.parsedUrl?.path??"",`../${g.id}`),M=!!e?.sourceOnly,A=new u.A({where:`${p} IN (${d.map(F).join(",")})`,outFields:M?[p,c,y]:[p,c],returnDistinctValues:!0,returnGeometry:!1}),{features:b}=await(0,a.s)(w,A,{query:i,signal:e?.signal}),x=new Set(m),v=new Map;for(let e of b){let t=e.getAttribute(p),r=e.getAttribute(c),n=e.getAttribute(y)??0;!r||!x.has(r)||!t||1&n||(0,l.tE)(v,t,()=>new Set).add(r)}let q=new Map;for(let[e,t]of h)for(let r of v.get(t)??[])(0,l.tE)(q,r,()=>[]).push(e);return m.map(e=>({formatId:e,objectIds:q.get(e)??[]})).filter(({objectIds:e})=>e.length>0)}(e,(0,n.Am)([...r.queryFormats,...r.editFormats]))}(e),c=new Map,y=await Promise.all(p.map(async({formatId:n,objectIds:l})=>{let o=(0,f.be)(n,t.supportedFormats),u=r.parsedUrl;if(null==o||!u||!l.length)return null;let m=(0,f._h)(n,t.supportedFormats),p=(0,f.qv)(m),c=r.createQuery();return c.objectIds=l,c.outFields=[s],c.formatOf3DObjects=n,c.returnGeometry=!0,{modelFormat:o,modelFileExtensions:p,featureSetJSON:await(0,a.e)(u.path,c,{query:e.requestQuery,signal:i?.signal},{uniqueIdFields:r.uniqueIdFields})}}));for(let t of y)t&&w(e,t.modelFormat,t.modelFileExtensions,t.featureSetJSON,c);return c}(new x(e,t,function(e){let t=new Map;for(let r of e.features){let e=r.getObjectId(),n=r.getGlobalId();null!=e&&null!=n&&t.set(e,{globalId:n})}return t}(h),m,s))}async function g(e,t,r,n){let i=n?.format;return((await d(e,t,{objectIds:[r]},{...n,requestedFormat:i,sourceOnly:null==i})).get(r)??[]).find(e=>i&&e.format===i||!i&&e.isSource)}function w({featureInfos:e,requestQuery:t,infoFor3D:r},n,i,o,s){let a=new Map;for(let e of o.assetMaps??[])(0,l.tE)(a,e.parentGlobalId,()=>[]).push(e);for(let[o,u]of e){let e=a.get(u.globalId);if(!e?.length)continue;let f=M(e,t,r);if(!f.length)continue;let m=f.reduce((e,t)=>e+t.size,0),p=b(f,i),c=!p.flags.includes("DERIVED");(0,l.tE)(s,o,()=>[]).push(new h({name:p.name,size:m,format:n,isSource:c,files:f}))}}function M(e,t,r){let n=new Map,i=({assetType:e})=>null!=(0,f.be)(e,r.supportedFormats),o=e.some(e=>i(e)&&!e.flags.includes("DERIVED"));for(let t of e)o&&i(t)&&t.flags.includes("DERIVED")||(0,l.tE)(n,t.assetName,()=>[]).push(t);let s=[];for(let[e,r]of n){r.sort((e,t)=>e.seqNo-t.seqNo);let n=r.reduce((e,t)=>e+t.size,0),i=r.map(({assetURL:e})=>e).filter(e=>!!e);i.length&&s.push(new y({name:e,size:n,flags:r[0].flags,loadArrayBuffer:e=>A(i,t,e)}))}return s}async function A(e,t,r){let n=await Promise.all(e.map(e=>(0,s.A)(e,{responseType:"array-buffer",query:t,signal:r?.signal}).then(({data:e})=>e)));return 1===n.length?n[0]:function(e){let t=e.reduce((e,t)=>e+t.byteLength,0),r=new Uint8Array(t),n=0;for(let t of e)r.set(new Uint8Array(t),n),n+=t.byteLength;return r.buffer}(n)}function b(e,t){return e.find(({name:e})=>t.some(t=>e.toLowerCase().endsWith(`.${t}`)))??e[0]}function F(e){return`'${e.replaceAll("'","''")}'`}(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"files",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"format",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"isSource",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"name",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"size",void 0),h=(0,m.Cg)([(0,c.$K)("esri.layers.scene.ModelInfo")],h);class x{constructor(e,t,r,n,i){this.layer=e,this.associatedLayer=t,this.featureInfos=r,this.infoFor3D=n,this.options=i,this.requestQuery={...t.parsedUrl?.query,...e.customParameters,...e.apiKey?{token:e.apiKey}:{}}}}},99199(e,t,r){r.d(t,{e:()=>a,s:()=>s});var n=r(22671),i=r(97552),l=r(2272),o=r(80893);async function s(e,t,r,i){let l=await a(e,t,r,i);return n.A.fromJSON(l)}function a(e,t,r,n){let s=(0,l.Dl)(e),a={...r},u=i.A.from(t);return(0,o.eW)(s,u,u.sourceSpatialReference,a,n)}},22671(e,t,r){r.d(t,{A:()=>w});var n,i=r(32198),l=r(91429),o=r(66552),s=r(25482),a=r(4718),u=r(16930),f=r(60408),m=r(65864),p=r(50498),c=r(52106),y=r(20437),h=r(36005),d=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,c.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);let{features:i}=this;if(i)for(let e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,n=(0,m.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=u.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let n=t.features[r];n.geometry&&=(e?.[r])?.toJSON()||n.geometry}return t}quantize(e){let{scale:[t,r],translate:[n,i]}=e,l=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=l.length;e<t;e++)o?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[n,i],scale:[l,o]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+n,e=>i-e*o,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let n=u.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){let l=e[t],o=r.fromJSON(l),s=l.geometry?.spatialReference;null!=o.geometry&&!s&&(o.geometry.spatialReference=n);let a=l.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i,l=[];for(let o=0,s=e.length;o<s;o++){let s=e[o];if(o>0){let e=t(s[0]),o=r(s[1]);(e!==n||o!==i)&&(l.push([e-n,o-i]),n=e,i=o)}else n=t(s[0]),i=r(s[1]),l.push([n,i])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let n=(0,f.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,l=n.length;e<l;e++){let l=n[e],o=this._quantizePoints(l,t,r);o&&i.push(o)}return i.length>0?((0,f.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{let n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,o,s=(0,f.Bi)(e)?e.rings:e.paths;for(let e=0,n=s.length;e<n;e++){let n=s[e];for(let e=0,i=n.length;e<i;e++){let i=n[e];e>0?(l+=i[0],o+=i[1]):(l=i[0],o=i[1]),i[0]=t(l),i[1]=r(o)}}if(n&&i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{let l,o,s=e.points;for(let e=0,n=s.length;e<n;e++){let n=s[e];e>0?(l+=n[0],o+=n[1]):(l=n[0],o=n[1]),n[0]=t(l),n[1]=r(o)}if(n&&i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,l.MZ)({type:[c.A],json:{write:!0}})],w.prototype,"features",void 0),(0,i.Cg)([(0,h.w)("features")],w.prototype,"readFeatures",null),(0,i.Cg)([(0,l.MZ)({type:[y.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,i.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i.Cg)([(0,d.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i.Cg)([(0,l.MZ)({types:p.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,h.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},2991(e,t,r){r.d(t,{G9:()=>u,RZ:()=>a});var n=r(39516);const i="=",l=">=",o="<=";function s(e,t,r,i){let l=i.get(e)?.type,o=i.getTimeZone(e);return`${(0,n.iA)(e)} ${t} ${(0,n.YG)(r,{type:"date"},{type:l,timeZone:o})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:u,endField:f}=t,{start:m,end:p}=e;if(!m&&!p||!u&&!f)return;let c=u??f,y=f??u;if(c&&y){if(m&&p){if(m.getTime()===p.getTime())return(0,n.mA)(a,s(c,i,m,r));if(!u||!f){let e=s(c,l,m,r),t=s(c,o,p,r);return(0,n.mA)(a,(0,n.mA)(e,t))}let e=s(u,l,m,r),t=s(f,o,p,r);return(0,n.mA)(a,(0,n.mA)(e,t))}if(m)return(0,n.mA)(a,s(c,l,m,r));if(p)return(0,n.mA)(a,s(y,o,p,r))}}function u(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>m,jV:()=>a,lF:()=>f});var n=r(92602),i=r(4718),l=r(84952),o=r(70333),s=r(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,l.An)(e):(0,i.o8)(e)}function f(e,t,r){let n={};for(let i in e){if("declaredClass"===i)continue;let l=e[i];if(null!=l&&"function"!=typeof l)if(Array.isArray(l))n[i]=l.map(e=>f(e));else if("object"==typeof l)if(l.toJSON){let e=l.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?l:JSON.stringify(l);else n[i]=l}return n}async function m(e,t,i){return function(e,t){return e?t&&(0,s.Qc)(e)?t:(0,s.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&n.A.request.useIdentity&&await Promise.all([r.e(8673),r.e(37),r.e(4189)]).then(()=>r(98232)),(await o.id.getCredential(e,i))?.token)}}}]);