@arcgis/core 4.23.0-next.20220118 → 4.23.0-next.20220126

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 (359) hide show
  1. package/Graphic.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/00c5bb5eecb0e89266df.js +1 -0
  4. package/assets/esri/core/workers/chunks/021a37e2b191298e80b7.js +1 -0
  5. package/assets/esri/core/workers/chunks/1370c92c40fd6271553c.js +1 -0
  6. package/assets/esri/core/workers/chunks/199670a3a564ebe3bd79.js +1 -0
  7. package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +1 -0
  8. package/assets/esri/core/workers/chunks/1fbcc8424452d0256bd6.js +1 -0
  9. package/assets/esri/core/workers/chunks/{7c9d2638693d5f798b23.js → 23b15e7c2f96d260e16c.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{b2ae5fc4f787ea568b88.js → 2460f3b6ada6ae900dec.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{99f0d896c17dd09cd285.js → 2629adf79e7fd9f25f07.js} +1 -1
  12. package/assets/esri/core/workers/chunks/2792ca40f1e92849247c.js +1 -0
  13. package/assets/esri/core/workers/chunks/2a96f1bba9ce6883e5e0.js +1 -0
  14. package/assets/esri/core/workers/chunks/2e899ef5881b4ec6fa55.js +1 -0
  15. package/assets/esri/core/workers/chunks/3231ee3e090bb4cac3fc.js +1 -0
  16. package/assets/esri/core/workers/chunks/{0c3e3a5baf54bd5e210c.js → 36e250278b5622ccf068.js} +1 -1
  17. package/assets/esri/core/workers/chunks/395ba088d4864588ff66.js +1 -0
  18. package/assets/esri/core/workers/chunks/3cc77692b2eee27b9c9e.js +1 -0
  19. package/assets/esri/core/workers/chunks/3f343f792fd9f44d6f25.js +1 -0
  20. package/assets/esri/core/workers/chunks/{8a250ec51097f16feb66.js → 40a1e713f63ec77110c0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/422537fc3df707bb62c9.js +1 -0
  22. package/assets/esri/core/workers/chunks/{ba6fdaed6c315dc13981.js → 434b16731c6a81f868ef.js} +1 -1
  23. package/assets/esri/core/workers/chunks/4385a268c2a64281d1c1.js +1 -0
  24. package/assets/esri/core/workers/chunks/{44b01d42d4ec72913229.js → 438f0b5ae5c53ae4f06a.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{4d539878bfbd7c549e60.js → 46b4bb66a54bbd8e2e57.js} +1 -1
  26. package/assets/esri/core/workers/chunks/4c76146014dc15143ba3.js +1 -0
  27. package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +1 -0
  28. package/assets/esri/core/workers/chunks/5d991b74d958005c26c4.js +1 -0
  29. package/assets/esri/core/workers/chunks/5dfe1f8d520025e2118b.js +1 -0
  30. package/assets/esri/core/workers/chunks/601e697dc7414bda128a.js +1 -0
  31. package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +1 -0
  32. package/assets/esri/core/workers/chunks/68a59ce98177d8513337.js +1 -0
  33. package/assets/esri/core/workers/chunks/{9cdaba126ac7fa5f33f0.js → 6cd5e4380d29b9a3c344.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{a7b1b75643ed31489495.js → 6f50a9647f026a8d4729.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{47395d225229d237f0ac.js → 7bc5cc5dbf1b7b70ddac.js} +1 -1
  36. package/assets/esri/core/workers/chunks/7d661129a0d8c466eeec.js +1 -0
  37. package/assets/esri/core/workers/chunks/{64276aacaafa4c8a15bd.js → 7dcf52d3db3903c8eb9f.js} +1 -1
  38. package/assets/esri/core/workers/chunks/8070972c0efb78523b68.js +1 -0
  39. package/assets/esri/core/workers/chunks/8fa0a14165d43ffe87a5.js +1 -0
  40. package/assets/esri/core/workers/chunks/94515fb3ef38067eeadd.js +1 -0
  41. package/assets/esri/core/workers/chunks/94b8dbf859df71858d1c.js +1 -0
  42. package/assets/esri/core/workers/chunks/97a28641b3b2fd31bea2.js +1 -0
  43. package/assets/esri/core/workers/chunks/{d1454155ee1b8a421cbb.js → 97ec9eef0048760fa260.js} +1 -1
  44. package/assets/esri/core/workers/chunks/98986e6601b0366376b4.js +1 -0
  45. package/assets/esri/core/workers/chunks/9cdcf9309d6feda70185.js +1 -0
  46. package/assets/esri/core/workers/chunks/a78757b9c7e8cbea08fa.js +1 -0
  47. package/assets/esri/core/workers/chunks/aa04b90b82bf70caaae4.js +1 -0
  48. package/assets/esri/core/workers/chunks/{b10fcbe1393c812fc219.js → aa861b8eae6c85f3dad4.js} +1 -1
  49. package/assets/esri/core/workers/chunks/aace7e1fef256bb961c9.js +1 -0
  50. package/assets/esri/core/workers/chunks/{ed0297fc61014e848c18.js → af5694b4d278cf1db2d9.js} +1 -1
  51. package/assets/esri/core/workers/chunks/afbb4f802ca5774f0326.js +1 -0
  52. package/assets/esri/core/workers/chunks/b0b036ad3ad3cd956747.js +1 -0
  53. package/assets/esri/core/workers/chunks/b2c5f92e3d7606297ca9.js +1 -0
  54. package/assets/esri/core/workers/chunks/b2d2de935487257c568b.js +1 -0
  55. package/assets/esri/core/workers/chunks/b2ebe4f6d100e15b512d.js +1 -0
  56. package/assets/esri/core/workers/chunks/b8316c6469a543029bc6.js +1 -0
  57. package/assets/esri/core/workers/chunks/{4b69129c0557852d9b3d.js → ba5eb394f098968c22d2.js} +1 -1
  58. package/assets/esri/core/workers/chunks/bf0a65b4be31959f921d.js +1 -0
  59. package/assets/esri/core/workers/chunks/bf6dda4a2af14c4b7716.js +1 -0
  60. package/assets/esri/core/workers/chunks/c890c7fca27170e3341f.js +1 -0
  61. package/assets/esri/core/workers/chunks/{573dc3064e84ca86844d.js → c959e0d1cf7dce0421b9.js} +1 -1
  62. package/assets/esri/core/workers/chunks/c976785f2391c77d8a30.js +1 -0
  63. package/assets/esri/core/workers/chunks/{1fd48459afb58a6cf14f.js → ca2f5faa01d99c21ec14.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{7aa543a97f055cddea99.js → cc146c57bbdac8029fd8.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{d39b7983b68d6e5b404d.js → cdbc005eebec1503b99d.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{7e596478507466953e65.js → cef4af64860ebbfc1c47.js} +1 -1
  67. package/assets/esri/core/workers/chunks/d72488db62fcf39447b6.js +1 -0
  68. package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +981 -0
  69. package/assets/esri/core/workers/chunks/e4b84ca8ddfd48dd79b1.js +1 -0
  70. package/assets/esri/core/workers/chunks/e4e2036373166c1d5cf5.js +1 -0
  71. package/assets/esri/core/workers/chunks/e4f93c55eaefab4192b5.js +1 -0
  72. package/assets/esri/core/workers/chunks/e6165e17fbb07bfc40a1.js +1 -0
  73. package/assets/esri/core/workers/chunks/e9e5196b44b6923be1a3.js +1 -0
  74. package/assets/esri/core/workers/chunks/{f678293de9a6d8f5b5db.js → ec89466f76d0ba22525e.js} +1 -1
  75. package/assets/esri/core/workers/chunks/ee45618c45806ab654cb.js +1 -0
  76. package/assets/esri/core/workers/chunks/f4baa5ea2e42b1317941.js +1 -0
  77. package/assets/esri/core/workers/chunks/f760a3e030b0f358a92a.js +1 -0
  78. package/assets/esri/core/workers/chunks/face43cf5abcd2f5bd9d.js +1 -0
  79. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  80. package/assets/esri/themes/base/_mixins.scss +4 -1
  81. package/assets/esri/themes/base/icons/style.scss +11 -2
  82. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +13 -10
  83. package/assets/esri/themes/base/widgets/_CoordinateConversion.scss +4 -2
  84. package/assets/esri/themes/base/widgets/_Directions.scss +5 -3
  85. package/assets/esri/themes/base/widgets/_Editor.scss +5 -2
  86. package/assets/esri/themes/base/widgets/_ElevationProfile.scss +6 -4
  87. package/assets/esri/themes/base/widgets/_FeatureTable.scss +6 -0
  88. package/assets/esri/themes/base/widgets/_ItemList.scss +1 -1
  89. package/assets/esri/themes/base/widgets/_LayerList.scss +13 -9
  90. package/assets/esri/themes/base/widgets/_Popup.scss +4 -2
  91. package/assets/esri/themes/base/widgets/_Print.scss +24 -11
  92. package/assets/esri/themes/base/widgets/_Search.scss +4 -2
  93. package/assets/esri/themes/base/widgets/_TableList.scss +9 -7
  94. package/assets/esri/themes/base/widgets/_Weather.scss +12 -0
  95. package/assets/esri/themes/base/widgets/_Widget.scss +18 -9
  96. package/assets/esri/themes/dark/main.css +1 -1
  97. package/assets/esri/themes/dark-blue/main.css +1 -1
  98. package/assets/esri/themes/dark-green/main.css +1 -1
  99. package/assets/esri/themes/dark-purple/main.css +1 -1
  100. package/assets/esri/themes/dark-red/main.css +1 -1
  101. package/assets/esri/themes/light/main.css +1 -1
  102. package/assets/esri/themes/light/view.css +1 -1
  103. package/assets/esri/themes/light-blue/main.css +1 -1
  104. package/assets/esri/themes/light-green/main.css +1 -1
  105. package/assets/esri/themes/light-purple/main.css +1 -1
  106. package/assets/esri/themes/light-red/main.css +1 -1
  107. package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
  108. package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
  109. package/chunks/CloudsComposition.glsl.js +4 -4
  110. package/chunks/ComponentShader.glsl.js +19 -19
  111. package/chunks/DefaultMaterial.glsl.js +2 -2
  112. package/chunks/Terrain.glsl.js +11 -11
  113. package/chunks/WaterSurface.glsl.js +21 -21
  114. package/chunks/pe.js +1 -1
  115. package/chunks/vec3.js +1 -1
  116. package/chunks/vxlLayer.js +1 -1
  117. package/core/accessorSupport/ensureType.js +1 -1
  118. package/core/accessorSupport/get.js +1 -1
  119. package/core/accessorSupport/read.js +1 -1
  120. package/core/accessorSupport/set.js +1 -1
  121. package/core/accessorSupport/write.js +1 -1
  122. package/core/has.js +1 -1
  123. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  124. package/core/typedArrayUtil.js +1 -1
  125. package/core/workers/workerFactory.js +1 -1
  126. package/geometry/pe.js +1 -1
  127. package/geometry/support/axisAngleDegrees.js +1 -1
  128. package/geometry/support/heightModelInfoUtils.js +1 -1
  129. package/interfaces.d.ts +315 -78
  130. package/layers/RouteLayer.js +1 -1
  131. package/layers/VoxelLayer.js +1 -1
  132. package/layers/VoxelWasmPerScene.js +1 -1
  133. package/layers/mixins/OperationalLayer.js +1 -1
  134. package/layers/support/RasterWorker.js +1 -1
  135. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  136. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  137. package/libs/vxl/enums.js +1 -1
  138. package/package.json +2 -2
  139. package/popup/content/AttachmentsContent.js +1 -1
  140. package/popup/content/support/mediaInfoTypes.js +1 -1
  141. package/portal/schemas/buildingSceneLayerItem.js +1 -1
  142. package/portal/schemas/definitions.js +1 -1
  143. package/portal/schemas/integratedMeshLayerItem.js +1 -1
  144. package/portal/schemas/pointCloudLayerItem.js +1 -1
  145. package/portal/schemas/sceneLayerItem.js +1 -1
  146. package/portal/schemas/webScene.js +1 -1
  147. package/rasterRenderers.js +1 -1
  148. package/rest/find.js +1 -1
  149. package/rest/geometryService/generalize.js +1 -1
  150. package/rest/geometryService/lengths.js +1 -1
  151. package/rest/geometryService/offset.js +1 -1
  152. package/rest/geometryService/relation.js +1 -1
  153. package/rest/geometryService/trimExtend.js +1 -1
  154. package/rest/identify.js +1 -1
  155. package/{tasks → rest}/operations/find.js +0 -0
  156. package/{tasks → rest}/operations/generalize.js +0 -0
  157. package/rest/operations/identify.js +5 -0
  158. package/{tasks → rest}/operations/lengths.js +0 -0
  159. package/{tasks → rest}/operations/offset.js +0 -0
  160. package/{tasks → rest}/operations/relation.js +0 -0
  161. package/{tasks → rest}/operations/trimExtend.js +0 -0
  162. package/{tasks → rest}/operations/urlUtils.js +0 -0
  163. package/rest/print.js +1 -1
  164. package/rest/query/operations/query.js +1 -1
  165. package/rest/query/operations/queryAttachments.js +1 -1
  166. package/rest/query/operations/queryRelatedRecords.js +1 -1
  167. package/rest/query/operations/queryTopFeatures.js +1 -1
  168. package/rest/route/utils.js +1 -1
  169. package/rest/support/NetworkServiceDescription.js +1 -1
  170. package/rest/support/RouteInfo.js +1 -1
  171. package/rest/support/RouteParameters.js +1 -1
  172. package/rest/support/RouteSettings.js +5 -0
  173. package/rest/support/Stop.js +1 -1
  174. package/rest/support/networkEnums.js +1 -1
  175. package/support/revision.js +1 -1
  176. package/symbols/Font.js +1 -1
  177. package/symbols/LabelSymbol3D.js +1 -1
  178. package/symbols/PointSymbol3D.js +1 -1
  179. package/symbols/TextSymbol.js +1 -1
  180. package/symbols/TextSymbol3DLayer.js +1 -1
  181. package/symbols/cim/CIMSymbolHelper.js +1 -1
  182. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  183. package/symbols/cim/cimAnalyzer.js +1 -1
  184. package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
  185. package/symbols/support/Symbol3DVerticalOffset.js +1 -1
  186. package/symbols/support/cimSymbolUtils.js +1 -1
  187. package/symbols/support/previewCIMSymbol.js +1 -1
  188. package/symbols/support/previewSymbol2D.js +1 -1
  189. package/symbols/support/previewSymbol3D.js +1 -1
  190. package/symbols/support/previewWebStyleSymbol.js +1 -1
  191. package/symbols/support/svgUtils.js +1 -1
  192. package/symbols/support/textUtils.js +5 -0
  193. package/symbols.js +1 -1
  194. package/views/2d/engine/vectorTiles/style/VectorTilesRequestManager.js +1 -1
  195. package/views/2d/engine/webgl/brushes/raster/BrushRasterBitmap.js +1 -1
  196. package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
  197. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  198. package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
  199. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  200. package/views/2d/support/engineHelpers.js +1 -1
  201. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  202. package/views/3d/environment/CloudsComposition.js +1 -1
  203. package/views/3d/environment/CloudsGenerator.js +1 -1
  204. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  205. package/views/3d/environment/Fog.js +1 -1
  206. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  207. package/views/3d/environment/weather.js +1 -1
  208. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  209. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  210. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  211. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  212. package/views/3d/layers/GraphicsView3D.js +1 -1
  213. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  214. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  215. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  216. package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayer.js +1 -1
  217. package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
  218. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +5 -0
  219. package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
  220. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  221. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  222. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  223. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  224. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  225. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  226. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  227. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  228. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  229. package/views/3d/layers/graphics/{Graphics3DGraphicLikeLayerView.js → GraphicsProcessor.js} +1 -1
  230. package/views/3d/layers/graphics/QueryEngine.js +1 -1
  231. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  232. package/views/3d/terrain/OverlayRenderer.js +1 -1
  233. package/views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js +7 -1
  234. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +28 -24
  235. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +21 -13
  236. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
  237. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +12 -14
  238. package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
  239. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  240. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  241. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  242. package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
  243. package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
  244. package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
  245. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  246. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  247. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  248. package/views/3d/webgl-engine/parts/Model.js +1 -1
  249. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  250. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  251. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  252. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  253. package/views/SceneView.js +1 -1
  254. package/views/interactive/dragEventPipeline.js +1 -1
  255. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  256. package/views/support/DefaultsFromMap.js +1 -1
  257. package/views/webgl/ContextState.js +1 -1
  258. package/views/webgl/FramebufferObject.js +1 -1
  259. package/views/webgl/Renderbuffer.js +1 -1
  260. package/views/webgl/RenderingContext.js +1 -1
  261. package/views/webgl/Texture.js +1 -1
  262. package/views/webgl/Util.js +1 -1
  263. package/views/webgl/enums.js +1 -1
  264. package/views/webgl/rasterUtils.js +1 -1
  265. package/views/webgl/testFloatBufferBlend.js +1 -1
  266. package/widgets/Attachments.js +1 -1
  267. package/widgets/Editor/workflowUtils.js +1 -1
  268. package/widgets/Feature/FeatureExpression.js +1 -1
  269. package/widgets/Feature/FeatureMedia/FeatureMediaViewModel.js +1 -1
  270. package/widgets/Feature/FeatureMedia.js +1 -1
  271. package/widgets/Feature/FeatureViewModel.js +1 -1
  272. package/widgets/FeatureForm/InputField.js +1 -1
  273. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  274. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  275. package/widgets/FeatureTable.js +1 -1
  276. package/widgets/LayerList/LayerListViewModel.js +1 -1
  277. package/widgets/Popup/PopupViewModel.js +1 -1
  278. package/widgets/Popup/actionUtils.js +1 -1
  279. package/widgets/Slice/SliceViewModel.js +1 -1
  280. package/widgets/Slider/SliderViewModel.js +1 -1
  281. package/widgets/Slider.js +1 -1
  282. package/widgets/Weather/WeatherViewModel.js +1 -1
  283. package/widgets/Weather/css.js +1 -1
  284. package/widgets/Weather.js +1 -1
  285. package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
  286. package/widgets/support/InteractiveToolViewModel.js +1 -1
  287. package/widgets/support/geolocationUtils.js +1 -1
  288. package/assets/components/assets/calcite-icon/checkSquareF16.json +0 -1
  289. package/assets/components/assets/calcite-icon/checkSquareF24.json +0 -1
  290. package/assets/components/assets/calcite-icon/checkSquareF32.json +0 -1
  291. package/assets/components/assets/calcite-icon/lineSolid4.json +0 -1
  292. package/assets/components/assets/calcite-icon/squareF16.json +0 -1
  293. package/assets/components/assets/calcite-icon/squareF24.json +0 -1
  294. package/assets/components/assets/calcite-icon/squareF32.json +0 -1
  295. package/assets/components/assets/calcite-icon/xHexagon16.json +0 -1
  296. package/assets/components/assets/calcite-icon/xHexagon24.json +0 -1
  297. package/assets/components/assets/calcite-icon/xHexagon32.json +0 -1
  298. package/assets/components/assets/calcite-icon/xHexagonF16.json +0 -1
  299. package/assets/components/assets/calcite-icon/xHexagonF24.json +0 -1
  300. package/assets/components/assets/calcite-icon/xHexagonF32.json +0 -1
  301. package/assets/components/assets/calcite-icon/xOctagonF16.json +0 -1
  302. package/assets/components/assets/calcite-icon/xOctagonF24.json +0 -1
  303. package/assets/components/assets/calcite-icon/xOctagonF32.json +0 -1
  304. package/assets/esri/core/workers/chunks/01ef8de7f76a8c61b464.js +0 -1
  305. package/assets/esri/core/workers/chunks/09da224052976e290828.js +0 -1
  306. package/assets/esri/core/workers/chunks/0f254c3e91e8fee55f28.js +0 -1
  307. package/assets/esri/core/workers/chunks/20411bb8e04703962ce6.js +0 -1
  308. package/assets/esri/core/workers/chunks/21a77eed1a4ef5b0ff08.js +0 -1
  309. package/assets/esri/core/workers/chunks/23745a5ab47c840dc452.js +0 -1
  310. package/assets/esri/core/workers/chunks/2416f8bf8bbd2ec786ab.js +0 -1
  311. package/assets/esri/core/workers/chunks/2d947080a27db6ce0d75.js +0 -1
  312. package/assets/esri/core/workers/chunks/2e445a8735ea2adb641a.js +0 -1
  313. package/assets/esri/core/workers/chunks/32f8c4af7e70ebdcb19e.js +0 -1
  314. package/assets/esri/core/workers/chunks/3564e14010953def6df9.js +0 -1
  315. package/assets/esri/core/workers/chunks/390d9021169e65c10eb8.js +0 -1
  316. package/assets/esri/core/workers/chunks/3a9740dccda6a733313c.js +0 -1
  317. package/assets/esri/core/workers/chunks/403c7d64f12f00330d88.js +0 -1
  318. package/assets/esri/core/workers/chunks/4409d77c9734de4e82a7.js +0 -1
  319. package/assets/esri/core/workers/chunks/4c301ca9c493b96df746.js +0 -1
  320. package/assets/esri/core/workers/chunks/60371c0f750cde87656d.js +0 -1
  321. package/assets/esri/core/workers/chunks/615aa2d3ecafe30c80c0.js +0 -1
  322. package/assets/esri/core/workers/chunks/631c5b514bb73782c570.js +0 -1
  323. package/assets/esri/core/workers/chunks/6c1e92ff4c732dfda756.js +0 -1
  324. package/assets/esri/core/workers/chunks/722a10c65456844d72b9.js +0 -1
  325. package/assets/esri/core/workers/chunks/75d53b28afe732c459b2.js +0 -1
  326. package/assets/esri/core/workers/chunks/85b34d91cf07567d6873.js +0 -1
  327. package/assets/esri/core/workers/chunks/8967288145f8fbd20e7d.js +0 -1
  328. package/assets/esri/core/workers/chunks/89de05207744149fb58b.js +0 -1
  329. package/assets/esri/core/workers/chunks/8fdd5bca3716816d359b.js +0 -1
  330. package/assets/esri/core/workers/chunks/987182b3a578fc7de251.js +0 -1
  331. package/assets/esri/core/workers/chunks/99a777693e4539f0b03b.js +0 -1
  332. package/assets/esri/core/workers/chunks/9d9dffc8884d66a258e4.js +0 -1
  333. package/assets/esri/core/workers/chunks/a28b53c61bddefb6616e.js +0 -1
  334. package/assets/esri/core/workers/chunks/a6ff3db3493543df81bc.js +0 -1
  335. package/assets/esri/core/workers/chunks/a8c13529367c037cdd94.js +0 -1
  336. package/assets/esri/core/workers/chunks/a960074644c3722be71e.js +0 -1
  337. package/assets/esri/core/workers/chunks/ac8dca61ade28c542ae2.js +0 -1
  338. package/assets/esri/core/workers/chunks/b99e69302ea701fff0ea.js +0 -971
  339. package/assets/esri/core/workers/chunks/b9de831ac379cf1d2969.js +0 -1
  340. package/assets/esri/core/workers/chunks/bc790b2f964144d10abe.js +0 -1
  341. package/assets/esri/core/workers/chunks/be2b7cce79fd41627931.js +0 -1
  342. package/assets/esri/core/workers/chunks/c13dfdd548dcb1bdb294.js +0 -1
  343. package/assets/esri/core/workers/chunks/c3eca92d02958732e141.js +0 -1
  344. package/assets/esri/core/workers/chunks/c6bd943fe8fd13bb4806.js +0 -1
  345. package/assets/esri/core/workers/chunks/c6f94b92e866b881d9b9.js +0 -1
  346. package/assets/esri/core/workers/chunks/cb68db7169b9dfd1c3ff.js +0 -1
  347. package/assets/esri/core/workers/chunks/cc96608b2802fbfe7a08.js +0 -1
  348. package/assets/esri/core/workers/chunks/cd02fe27eb07681cb366.js +0 -1
  349. package/assets/esri/core/workers/chunks/d52108864136c5a8a618.js +0 -1
  350. package/assets/esri/core/workers/chunks/da1c2873bdbc0956dca0.js +0 -1
  351. package/assets/esri/core/workers/chunks/dd433c160f7a0c120b82.js +0 -1
  352. package/assets/esri/core/workers/chunks/de03439ca2c9782bf325.js +0 -1
  353. package/assets/esri/core/workers/chunks/e2d68bcd2f99a65387bf.js +0 -1
  354. package/assets/esri/core/workers/chunks/ef8b75b92cf549e0507e.js +0 -1
  355. package/assets/esri/core/workers/chunks/f7fc4c993536e62f7f3e.js +0 -1
  356. package/assets/esri/core/workers/chunks/fd3e5d823dc7917f4b8f.js +0 -1
  357. package/symbols/support/constants.js +0 -5
  358. package/tasks/operations/identify.js +0 -5
  359. package/views/3d/layers/graphics/Graphics3DFeatureLikeLayerView.js +0 -5
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7616,3172,6006],{1692:(e,t,r)=>{r.d(t,{Z:()=>w});var n=r(43697),s=r(66577),i=r(51773),o=r(78223),a=r(15923),l=(r(80442),r(22974)),u=r(92604),c=r(70586),h=r(31263),d=r(1153),p=r(52011);u.Z.getLogger("esri.core.Clonable");const f=e=>{let t=class extends e{clone(){const e=(0,c.s3)((0,d.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,r=e.store,n={},s=new Map;for(const e in t){const i=t[e],o=null==r?void 0:r.originOf(e);if(i.readOnly||!1===i.clonable||o!==h.s3.USER&&o!==h.s3.DEFAULTS)continue;const a=this[e];let u=null;const c=i.clonable;u="function"==typeof c?c(a):"reference"===c?a:(0,l.Vo)(a),null!=a&&null==u||(o===h.s3.DEFAULTS?s.set(e,u):n[e]=u)}const i=new(0,Object.getPrototypeOf(this).constructor)(n);if(s.size){var o;const e=null==(o=(0,d.vw)(i))?void 0:o.store;if(e)for(const[t,r]of s)e.set(t,r,h.s3.DEFAULTS)}return i}};return t=(0,n._)([(0,p.j)("esri.core.Clonable")],t),t};let m=class extends(f(a.Z)){};m=(0,n._)([(0,p.j)("esri.core.Clonable")],m);var y=r(96674),g=r(99001),b=r(5600),v=(r(67676),r(75215),r(33955));let _=class extends(f(y.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,g.D)(),configurable:!0})}normalizeCtorArgs(e,t,r,n){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:r,popupTemplate:n}}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,c.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&this.attributes[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{geometry:(0,c.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,c.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,c.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,r,n){if(!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:r};"attributes"===e&&(s.attributeName=n),this.layer.graphicChanged(s)}};(0,n._)([(0,b.Cb)({value:null})],_.prototype,"attributes",null),(0,n._)([(0,b.Cb)({value:null,types:s.qM,json:{read:v.im}})],_.prototype,"geometry",null),(0,n._)([(0,b.Cb)({type:Boolean})],_.prototype,"isAggregate",void 0),(0,n._)([(0,b.Cb)({clonable:"reference"})],_.prototype,"layer",void 0),(0,n._)([(0,b.Cb)({type:i.Z})],_.prototype,"popupTemplate",void 0),(0,n._)([(0,b.Cb)({clonable:"reference"})],_.prototype,"sourceLayer",void 0),(0,n._)([(0,b.Cb)({value:null,types:o.LB})],_.prototype,"symbol",null),(0,n._)([(0,b.Cb)({type:Boolean,value:!0})],_.prototype,"visible",null),_=(0,n._)([(0,p.j)("esri.Graphic")],_),(_||(_={})).generateUID=g.D;const w=_},80539:(e,t,r)=>{r.d(t,{Z:()=>P});var n,s=r(43697),i=r(3894),o=r(32448),a=r(22974),l=r(70586),u=r(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(n||(n={}));var c,h=r(1654),d=r(5600),p=r(75215),f=r(52421),m=r(52011),y=r(58971),g=r(39020);class b{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new g.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}const v=new u.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),_=()=>{};function w(e){return e?e instanceof q?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function C(e){if(e&&e.length)return e[0]}function x(e,t,r,n){const s=Math.min(e.length-r,t.length-n);let i=0;for(;i<s&&e[r+i]===t[n+i];)i++;return i}function E(e,t,r,n){t&&t.forEach(((t,s,i)=>{e.push(t),E(e,r.call(n,t,s,i),r,n)}))}const T=new Set,S=new Set,O=new Set,I=new Map;let F=0,q=c=class extends o.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new b,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:F++})}static isCollection(e){return null!=e&&e instanceof c}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,y.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(n.ADD)||(this._splice(0,this.length,w(e)),this._emitAfterChanges(n.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=_,r.removed=!0,e.splice(e.indexOf(r),1)}}}return this._emitter.on(e,t)}once(e,t){const r=this.on(e,t);return{remove(){r.remove()}}}add(e,t){if((0,y.it)(this._observable),this._emitBeforeChanges(n.ADD))return this;const r=this.getNextIndex(null!=t?t:null);return this._splice(r,0,[e]),this._emitAfterChanges(n.ADD),this}addMany(e,t=this._items.length){if((0,y.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(n.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,w(e)),this._emitAfterChanges(n.ADD),this}removeAll(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(n.REMOVE),e}clone(){return(0,y.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...e){(0,y.it)(this._observable);const t=e.map(w);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const r=(0,l.j0)(this._splice(0,this.length)),s=r.length;for(let n=0;n<s;n++)e.call(t,r[n],n,r);this._emitAfterChanges(n.REMOVE)}every(e,t){return(0,y.it)(this._observable),this._items.every(e,t)}filter(e,t){let r;return(0,y.it)(this._observable),r=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return(0,y.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,y.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,y.it)(this._observable);const r=[];return E(r,this,e,t),new c(r)}forEach(e,t){return(0,y.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,y.it)(this._observable),this._items[e]}getNextIndex(e){(0,y.it)(this._observable);const t=this.length;return(e=null==e?t:e)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,y.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,y.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,y.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,y.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,y.it)(this._observable);const r=this._items.map(e,t);return new c({items:r})}reorder(e,t=this.length-1){(0,y.it)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(n.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(n.MOVE)}return e}}pop(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const e=C(this._splice(this.length-1,1));return this._emitAfterChanges(n.REMOVE),e}push(...e){return(0,y.it)(this._observable),this._emitBeforeChanges(n.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(n.ADD)),this.length}reduce(e,t){(0,y.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,y.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,y.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,y.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(n.REMOVE))return;const t=C(this._splice(e,1));return this._emitAfterChanges(n.REMOVE),t}removeMany(e){if((0,y.it)(this._observable),!e||!e.length||this._emitBeforeChanges(n.REMOVE))return[];const t=e instanceof c?e.toArray():e,r=this._items,s=[],i=t.length;for(let e=0;e<i;e++){const n=t[e],i=r.indexOf(n);if(i>-1){const n=1+x(t,r,e+1,i+1),o=this._splice(i,n);o&&o.length>0&&s.push.apply(s,o),e+=n-1}}return this._emitAfterChanges(n.REMOVE),s}reverse(){if((0,y.it)(this._observable),this._emitBeforeChanges(n.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(n.MOVE),this}shift(){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.REMOVE))return;const e=C(this._splice(0,1));return this._emitAfterChanges(n.REMOVE),e}slice(e=0,t=this.length){return(0,y.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,y.it)(this._observable),this._items.some(e,t)}sort(e){if((0,y.it)(this._observable),!this.length||this._emitBeforeChanges(n.MOVE))return this;const t=(0,l.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(n.MOVE),this}splice(e,t,...r){(0,y.it)(this._observable);const s=(t?n.REMOVE:0)|(r.length?n.ADD:0);if(this._emitBeforeChanges(s))return[];const i=this._splice(e,t,r)||[];return this._emitAfterChanges(s),i}toArray(){return(0,y.it)(this._observable),this._items.slice()}toJSON(){return(0,y.it)(this._observable),this.toArray()}toLocaleString(){return(0,y.it)(this._observable),this._items.toLocaleString()}toString(){return(0,y.it)(this._observable),this._items.toString()}unshift(...e){return(0,y.it)(this._observable),!e.length||this._emitBeforeChanges(n.ADD)||(this._splice(0,0,e),this._emitAfterChanges(n.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const n=this._items,s=this.itemType;let i,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,h.Os)((()=>this._dispatchChange()))),t){if(o=n.splice(e,t),this.hasEventListener("before-remove")){const t=v.acquire();t.target=this,t.cancellable=!0;for(let r=0,s=o.length;r<s;r++)i=o[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),n.splice(e,0,i),e+=1,r-=1,s-=1);v.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=v.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let r=0;r<t;r++)e.reset(o[r]),this.emit("after-remove",e);v.release(e)}}if(r&&r.length){if(s){const e=[];for(const t of r){const r=s.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),o=e===this.length;if(t||i){const s=v.acquire();s.target=this,s.cancellable=!0;const a=v.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(s.reset(l),this.emit("before-add",s),s.defaultPrevented||(o?n.push(l):n.splice(e++,0,l),this._set("length",n.length),i&&(a.reset(l),this.emit("after-add",a)))):(o?n.push(l):n.splice(e++,0,l),this._set("length",n.length),a.reset(l),this.emit("after-add",a));v.release(a),v.release(s)}else{if(o)for(const e of r)n.push(e);else n.splice(e,0,...r);this._set("length",n.length)}}return(r&&r.length||o&&o.length)&&this._notifyChangeEvent(r,o),o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=v.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,v.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=v.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),v.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;T.clear(),S.clear(),O.clear();for(const{added:t,removed:r}of e){if(t)if(0===O.size&&0===S.size)for(const e of t)T.add(e);else for(const e of t)S.has(e)?(O.add(e),S.delete(e)):O.has(e)||T.add(e);if(r)if(0===O.size&&0===T.size)for(const e of r)S.add(e);else for(const e of r)T.has(e)?T.delete(e):(O.delete(e),S.add(e))}const r=i.Z.acquire();T.forEach((e=>{r.push(e)}));const n=i.Z.acquire();S.forEach((e=>{n.push(e)}));const s=this._items,o=t.items,a=i.Z.acquire();if(O.forEach((e=>{o.indexOf(e)!==s.indexOf(e)&&a.push(e)})),t.listeners&&(r.length||n.length||a.length)){const e={target:this,added:r,removed:n,moved:a},s=t.listeners.length;for(let r=0;r<s;r++){const n=t.listeners[r];n.removed||n.callback.call(this,e)}}i.Z.release(r),i.Z.release(n),i.Z.release(a)}T.clear(),S.clear(),O.clear()}};q.ofType=e=>{if(!e)return c;if(I.has(e))return I.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const n=e.typeMap[r].prototype.declaredClass;t?t+=` | ${n}`:t=n}let r=class extends c{};return(0,s._)([(0,f.c)({Type:e,ensureType:"function"==typeof e?(0,p.se)(e):(0,p.N7)(e)})],r.prototype,"itemType",void 0),r=(0,s._)([(0,m.j)(`esri.core.Collection<${t}>`)],r),I.set(e,r),r},(0,s._)([(0,d.Cb)()],q.prototype,"length",void 0),(0,s._)([(0,d.Cb)()],q.prototype,"items",null),q=c=(0,s._)([(0,m.j)("esri.core.Collection")],q);const P=q},32448:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),s=r(15923),i=r(50758),o=r(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this.target=e,this._listenersMap=null}clear(){this._listenersMap&&this._listenersMap.clear(),this._listenersMap=null}emit(e,t){const r=this._listenersMap&&this._listenersMap.get(e);if(!r)return!1;const n=this.target||this;return[...r].forEach((e=>{e.call(n,t)})),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,i.AL)(r)}if(e.indexOf(",")>-1)throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap||(this._listenersMap=new Map);const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),{remove:()=>{const r=this._listenersMap&&this._listenersMap.get(e)||[],n=r.indexOf(t);n>=0&&r.splice(n,1)}}}once(e,t){const r=this.on(e,(e=>{r.remove(),t.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,n._)([(0,o.j)("esri.core.Evented")],r),r};let r=class extends s.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,n._)([(0,o.j)("esri.core.Evented")],r),e.EventedAccessor=r}(a||(a={}));const l=a},36030:(e,t,r)=>{r.d(t,{J:()=>i});var n=r(35454),s=r(5600);function i(e,t={}){var r;const i=e instanceof n.Xn?e:new n.Xn(e,t),o={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?i.apiValues:String,json:{type:i.jsonValues,read:(null==t||!t.readOnly)&&{reader:i.read},write:{writer:i.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(o.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(o.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(o.json.name=t.name),(0,s.Cb)(o)}},52421:(e,t,r)=>{function n(e){return(t,r)=>{t[r]=e}}r.d(t,{c:()=>n})},74085:(e,t,r)=>{function n(e){}r.d(t,{Bg:()=>n}),r(80442)},91460:(e,t,r)=>{function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function i(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const i=s(e,t,(t=>{i.remove(),r.call(e,t)}));return{remove(){i.remove()}}}r.d(t,{vT:()=>n,on:()=>s,IH:()=>i})},95330:(e,t,r)=>{r.d(t,{e4:()=>S,$6:()=>l,Ue:()=>u,zE:()=>c,dD:()=>w,hh:()=>q,vr:()=>P,Ds:()=>F,as:()=>C,WW:()=>x,R8:()=>_,D_:()=>v,Hc:()=>p,y8:()=>O,fu:()=>y,$F:()=>g,d1:()=>E,DB:()=>T,r9:()=>f,k_:()=>h,H9:()=>m,Yn:()=>R,gx:()=>I,Hl:()=>b});const n=(s=globalThis,{setTimeout:(e,t)=>{const r=s.setTimeout(e,t);return{remove:()=>s.clearTimeout(r)}}});var s,i=r(20102),o=r(91460),a=(r(92604),r(70586));function l(e){return Promise.all(e)}function u(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function c(e="Aborted"){return new i.Z("AbortError",e)}function h(e,t="Aborted"){if(p(e))throw c(t)}function d(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=d(e);return(0,a.pC)(t)&&t.aborted}function f(e){if(v(e))throw e}function m(e){if(!v(e))throw e}function y(e,t){const r=d(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,o.IH)(r,"abort",(()=>t()));t()}}function g(e,t){const r=d(e);if(!(0,a.Wi)(r))return h(r),(0,o.IH)(r,"abort",(()=>t(c())))}function b(e,t){const r=d(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let s=y(t,(()=>n(c())));const i=()=>s=(0,a.hw)(s);e.then(i,i),e.then(r,n)}))}function v(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!v(e))throw e}))}function w(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function C(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return C(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return u((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const s={promise:t||Promise.resolve(t)};r.push(s),s.promise.then((e=>{s.value=e})).catch((e=>{s.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function x(e){return C(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function E(e){return Promise.reject(e)}function T(e){return Promise.resolve(e)}function S(e,t,r){const n=new AbortController;return y(r,(()=>n.abort())),new Promise(((r,s)=>{let i=setTimeout((()=>{i=0,r(t)}),e);y(n,(()=>{i&&(clearTimeout(i),s(c()))}))}))}function O(e){return e&&"function"==typeof e.then}function I(e){return O(e)?e:Promise.resolve(e)}function F(e,t=-1){let r,n,s,i,o=null;const l=(...u)=>{if(r){n=u,i&&i.reject(c()),i=w();const e=(0,a.j0)(i.promise);if(o){const e=o;o=null,e.abort()}return e}if(s=i||w(),i=null,t>0){const n=new AbortController;r=I(e(...u,n.signal));const s=r;S(t).then((()=>{r===s&&(i?n.abort():o=n)}))}else r=1,r=I(e(...u));const h=()=>{const e=n;n=s=r=o=null,null!=e&&l(...e)},d=r,p=s;return d.then(h,h),d.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return l}function q(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),s=t=>{e(t)};return s.resolve=t=>e(t),s.reject=e=>t(e),s.timeout=(e,t)=>n.setTimeout((()=>s.reject(t)),e),s.promise=r,s}function P(e,t){let r,n=new AbortController;const s=e(n.signal);let i={promise:s,finished:!1,abort:()=>{n&&(n.abort(),n=null)}};const o=()=>{i&&(i.finished=!0,i=null),(0,a.pC)(r)&&(r.remove(),r=null),n=null};return s.then(o,o),r=y(t,(()=>{(0,a.pC)(i)&&i.abort()})),i}function R(e){return Promise.resolve().then((()=>{h(e)}))}},67900:(e,t,r)=>{r.d(t,{gV:()=>Z,En:()=>x,Z7:()=>F,c9:()=>I,_R:()=>S,qE:()=>R,cM:()=>O,hd:()=>c,ty:()=>E,Jo:()=>D,$C:()=>T}),r(80442);var n=r(35454),s=r(70586),i=r(24678),o=r(82971),a=r(68441),l=r(8744),u=r(58116);const c=39.37,h=a.sv.radius*Math.PI/200,d=/UNIT\[([^\]]+)\]\]$/i,p=u.Z,f=/UNIT\[([^\]]+)\]/i,m=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,n.wY)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),g=e=>e*e,b=e=>e*e*e,v={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:g(.001)},"square-centimeters":{inBaseUnits:g(.01)},"square-decimeters":{inBaseUnits:g(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:g(1e3)},"square-inches":{inBaseUnits:g(.0254)},"square-feet":{inBaseUnits:g(.3048)},"square-yards":{inBaseUnits:g(.9144)},"square-miles":{inBaseUnits:g(1609.344)},"square-us-feet":{inBaseUnits:g(1200/3937)},acres:{inBaseUnits:.0015625*g(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*b(.001)},"cubic-centimeters":{inBaseUnits:1e3*b(.01)},"cubic-decimeters":{inBaseUnits:1e3*b(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*b(1e3)},"cubic-inches":{inBaseUnits:1e3*b(.0254)},"cubic-feet":{inBaseUnits:1e3*b(.3048)},"cubic-yards":{inBaseUnits:1e3*b(.9144)},"cubic-miles":{inBaseUnits:1e3*b(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},_=function(){const e={};for(const t in v)for(const r in v[t].units)e[r]=t;return e}();function w(e){const t=_[e];if(t)return t;throw new Error("unknown measure")}function C(e,t=null){return t=t||w(e),v[t].baseUnit===e}function x(e,t,r){if(t===r)return e;const n=w(t);if(n!==w(r))throw new Error("incompatible units");const s=C(t,n)?e:function(e,t,r){return e*v[r].units[t].inBaseUnits}(e,t,n);return C(r,n)?s:function(e,t,r){return e/v[r].units[t].inBaseUnits}(s,r,n)}function E(e,t,r){return x(e,t,"meters")/(r*Math.PI/180)}function T(e){return y.fromJSON(e.toLowerCase())||null}function S(e){if(e&&"object"==typeof e&&!(0,l.N$)(e))return 1;const t=I(e);return t>1e5?1:t}function O(e){return I(e)>=(e instanceof o.Z?(0,i.Iu)(e).metersPerDegree:1e5)?"meters":R(e)}function I(e,t=a.sv.metersPerDegree){return F(e,!0)||t}function F(e,t=!1){let r,n,s=null;if(null!=e&&("object"==typeof e?(r=e.wkid,n=e.wkt):"number"==typeof e?r=e:"string"==typeof e&&(n=e)),r){if((0,l.o$)(r))return a.yr.metersPerDegree;if((0,l.ME)(r))return a.Z1.metersPerDegree;s=p.values[p[r]],!s&&t&&m.has(r)&&(s=h)}else n&&(M(n)?s=q(d.exec(n),s):U(n)&&(s=q(f.exec(n),s)));return s}function q(e,t){return e&&e[1]?P(e[1]):t}function P(e){return parseFloat(e.split(",")[1])}function R(e){let t,r,n=null;if(null!=e&&("object"==typeof e?(t=e.wkid,r=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(r=e)),t)n=p.units[p[t]];else if(r){const e=M(r)?d:U(r)?f:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||-1===p.units.indexOf(r)){const t=P(e);r=null;const n=p.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=p.units[e];break}}return r}(t[1]))}}return(0,s.pC)(n)?T(n):null}function U(e){return/^GEOCCS/i.test(e)}function M(e){return/^PROJCS/i.test(e)}const L={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},A={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},Z=(0,n.wY)()(L),D=(0,n.wY)()(A);(0,n.wY)()({...L,...A})},17452:(e,t,r)=>{r.d(t,{R9:()=>b,qg:()=>F,tD:()=>U,ZN:()=>de,fl:()=>pe,Ie:()=>ue,sJ:()=>Q,AH:()=>J,io:()=>X,L:()=>x,TI:()=>C,vt:()=>ae,oh:()=>Z,P$:()=>B,Ml:()=>fe,ed:()=>M,b7:()=>I,D6:()=>D,tm:()=>L,YP:()=>z,jc:()=>H,HK:()=>W,$U:()=>re,oC:()=>ee,kl:()=>N,v_:()=>$,hF:()=>k,_l:()=>K,PF:()=>V,Fv:()=>G,B7:()=>O,u0:()=>T,Yd:()=>oe,Hu:()=>he,Qj:()=>le,hO:()=>ne,mN:()=>E});var n=r(68773),s=r(20102),i=r(92604),o=r(70586);const a=i.Z.getLogger("esri.core.urlUtils"),l=n.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,h=/^\s*http:/i,d=/^\s*https:/i,p=/^\s*file:/i,f=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class b{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,o.j0)(this.uri.match(y));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,o.j0)(this.authority.match(g)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v={};let _=new b(n.Z.applicationUrl);let w=function(){const e=(0,o.j0)(_.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${_.scheme}://${_.host}${null!=_.port?`:${_.port}`:""}${t}`}();const C=()=>_,x=()=>w;function E(e){const t={path:null,query:null},r=new b(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=T(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function T(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,s;t<0?(n=decodeURIComponent(e),s=""):(n=decodeURIComponent(e.slice(0,t)),s=decodeURIComponent(e.slice(t+1)));let i=r[n];"string"==typeof i&&(i=r[n]=[i]),Array.isArray(i)?i.push(s):r[n]=s}return r}function S(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function O(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const s=encodeURIComponent(r)+"=",i=t&&t[r];return i?s+encodeURIComponent(i(n)):Array.isArray(n)?n.map((e=>S(e)?s+encodeURIComponent(JSON.stringify(e)):s+encodeURIComponent(e))).join("&"):S(n)?s+encodeURIComponent(JSON.stringify(n)):s+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function I(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=re(e);const n=M(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(u),new s.Z("urlutils:proxy-not-set",u);return t&&se()&&(r=ne(r)),E(r)}function F(e){const t=M(e);let r,n;if(t){const e=P(t.proxyUrl);r=e.path,n=e.query?T(e.query):null}if(r){const t=E(e);e=r+"?"+t.path;const s=O({...n,...t.query});s&&(e=`${e}?${s}`)}return e}const q={path:"",query:""};function P(e){const t=e.indexOf("?");return-1!==t?(q.path=e.slice(0,t),q.query=e.slice(t+1)):(q.path=e,q.query=null),q}function R(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=P(e).path),!0)).toLowerCase()}function U(e){const t={proxyUrl:e.proxyUrl,urlPrefix:R(e.urlPrefix)},r=l.proxyRules,n=t.urlPrefix;let s=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;s=e;break}0===t.indexOf(n)&&(s=e+1)}return r.splice(s,0,t),s}function M(e){const t=l.proxyRules,r=R(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function L(e,t){return e=A(e),t=A(t),ie(e)===ie(t)}function A(e){const t=(e=G(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function Z(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=l.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function D(e,t,r=!1){const n=ce(e),s=ce(t);return!(!r&&n.scheme!==s.scheme)&&null!=n.host&&null!=s.host&&n.host.toLowerCase()===s.host.toLowerCase()&&n.port===s.port}function N(e){if("string"==typeof e){if(!z(e))return!0;e=ce(e)}if(D(e,_))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=j(t[r]);for(let t=0;t<n.length;t++)if(D(e,n[t]))return!0}return!1}function j(e){return v[e]||(te(e)||ee(e)?v[e]=[new b(k(e))]:v[e]=[new b(`http://${e}`),new b(`https://${e}`)]),v[e]}function k(e,t=w,r){return ee(e)?r&&r.preserveProtocolRelative?e:"http"===_.scheme&&_.authority===B(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,o.j0)($("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function V(e,t=w,r){if(!z(e))return e;const n=G(e),s=n.toLowerCase(),i=G(t).toLowerCase().replace(/\/+$/,""),o=r?G(r).toLowerCase().replace(/\/+$/,""):null;if(o&&0!==i.indexOf(o))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let l=a(s,"/",s.indexOf("//")+2),u=-1;for(;s.slice(0,l+1)===i.slice(0,l)+"/"&&(u=l+1,l!==s.length);)l=a(s,"/",l+1);if(-1===u)return e;if(o&&u<o.length)return e;e=n.slice(u);const c=i.slice(u-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function G(e){return function(e){const t=l.httpsDomains;if(!function(e){return h.test(e)||"http"===_.scheme&&ee(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),f.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===_.scheme&&n===_.authority&&!m.test(e)||(se()&&n===_.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||se()&&!M(e))&&(e=ne(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=P(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=k(e=e.trim()))))}function $(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(z(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function B(e,t=!1){if(H(e)||W(e))return null;let r=e.indexOf("://");if(-1===r&&ee(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ie(e,!0)),e}function z(e){return ee(e)||te(e)}function H(e){return null!=e&&"blob:"===e.slice(0,5)}function W(e){return"data:"===e.slice(0,5)}function J(e){const t=Q(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const Y=/^data:(.*?)(;base64)?,(.*)$/;function Q(e){const t=e.match(Y);if(!t)return null;const[,r,n,s]=t;return{mediaType:r,isBase64:!!n,data:s}}function K(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function X(e,t){(function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);return r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function re(e){return d.test(e)||"https"===_.scheme&&ee(e)}function ne(e){return ee(e)?`https:${e}`:e.replace(h,"https:")}function se(){return"https"===_.scheme}function ie(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function oe(e){let t=0;if(z(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ae(e,t){if(!e)return"";const r=E(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const s=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(s,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&z(e)))return e;const n=e.indexOf("//"),s=e.indexOf("/",n+2),i=e.indexOf(":",n+2),o=Math.min(s<0?e.length:s,i<0?e.length:i);return e.slice(n+2,o).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(o)}`}function ce(e){return"string"==typeof e?new b(k(e)):(e.scheme||(e.scheme=_.scheme),e)}function he(e,t){const r=E(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function de(e,t,r){const n=E(e),s=n.query||{};return s[t]=String(r),`${n.path}?${O(s)}`}function pe(e,t){const r=E(e),n=r.query||{};for(const e in t)n[e]=t[e];const s=O(n);return s?`${r.path}?${s}`:r.path}function fe(e){if((0,o.Wi)(e))return null;const t=e.match(me);return t?t[1]:null}const me=/.*?\.([^\/]*)$/},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),s=r(6570),i=r(9361),o=r(65091),a=r(13473),l=r(17332),u=r(58901);r(82971),r(86973),r(33955);const c={base:i.Z,key:"type",typeMap:{extent:s.Z,multipoint:o.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},24678:(e,t,r)=>{r.d(t,{GG:()=>a,HQ:()=>l,VY:()=>u,wY:()=>c,Iu:()=>d,e8:()=>p,rS:()=>h});var n=r(82971),s=r(68441),i=r(8744);function o(e){return new n.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const a=o(s.sv),l=o(s.yr),u=o(s.Z1),c=new n.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${s.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function h(e){return e&&((0,i.BZ)(e)||e===l)?l:e&&((0,i.V2)(e)||e===u)?u:a}function d(e){return e&&((0,i.BZ)(e)||e===l)?s.yr:e&&((0,i.V2)(e)||e===u)?s.Z1:s.sv}function p(e){return(0,i.o$)(e)?s.yr:(0,i.ME)(e)?s.Z1:s.sv}},33955:(e,t,r)=>{r.d(t,{im:()=>m,q9:()=>b,Ji:()=>y,YX:()=>c,aW:()=>h,wp:()=>d,oU:()=>f,l9:()=>p});var n=r(70586),s=r(6570),i=r(9361),o=r(65091),a=r(13473),l=r(17332),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function h(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function p(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function m(e){return(0,n.Wi)(e)?null:e instanceof i.Z?e:d(e)?a.Z.fromJSON(e):p(e)?u.Z.fromJSON(e):f(e)?l.Z.fromJSON(e):h(e)?o.Z.fromJSON(e):c(e)?s.Z.fromJSON(e):null}function y(e){return e?d(e)?"esriGeometryPoint":p(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":h(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:s.Z,esriGeometryMultipoint:o.Z};function b(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>s,P$:()=>i});var n=r(35454);const s=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},40330:(e,t,r)=>{r.d(t,{Dp:()=>u,id:()=>a,qh:()=>l,i8:()=>i,Nv:()=>o});var n=r(80442),s=r(17452);const i="4.23",o={async request(e,t){var n;const{default:i}=await r.e(3172).then(r.bind(r,3172)),o=e.options,a=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,s.oh)(e.url))&&n.after?a:"array-buffer";const l=await i(e.url,o),u={data:l.data,ssl:l.ssl};switch(l.requestOptions.responseType){case"native-request-init":return delete u.data.signal,u;case"blob":u.data=await u.data.arrayBuffer();break;case"json":u.data=(new TextEncoder).encode(JSON.stringify(u.data)).buffer;break;case"text":u.data=(new TextEncoder).encode(u.data).buffer}return{result:u,transferList:[u.data]}}};let a;function l(e){a=e}function u(e){const t=a&&a.findCredential(e);return t&&t.token?(0,s.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},88068:(e,t,r)=>{r.r(t),r.d(t,{default:()=>V});var n=r(43697),s=(r(66577),r(51773)),i=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382),r(30687),r(91423),r(32400)),o=r(16453),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),u=r(86973),c=r(29600),h=r(20102),d=r(83379),p=r(70586),f=r(16467),m=r(74889),y=r(82971);let g=class extends d.Z{constructor(){super(...arguments),this.featureDefinition=null,this.type="ogc-feature"}load(e){return this.addResolvingPromise(this._loadOGCServices(this.layer,e)),this.when()}getFeatureDefinition(){const{featureDefinition:{collection:e,layerDefinition:t,spatialReference:r,supportedCrs:n},layer:{apiKey:s,capabilities:i,customParameters:o}}=this;return{capabilities:i,collection:e,layerDefinition:t,queryParameters:{apiKey:s,customParameters:o},spatialReference:r,supportedCrs:n}}queryExtent(e,t={}){return null}queryFeatureCount(e,t={}){return null}queryFeatures(e,t={}){return this.queryFeaturesJSON(e,t).then((e=>m.default.fromJSON(e)))}queryFeaturesJSON(e,t={}){const r=this.getFeatureDefinition();return this.load(t).then((()=>(0,f.yN)(r,e,t)))}queryObjectIds(e,t={}){return null}supportsSpatialReference(e){return!(!e.isWGS84&&!e.isWebMercator&&!this.featureDefinition.supportedCrs[e.wkid])}_conformsToType(e,t){var r;const n=new RegExp(`^${t}$`,"i");return null!=(r=e.conformsTo.some((e=>n.test(e))))&&r}_getCapabilities(e,t){var r,n,s,i,o,a,l;const u=(0,p.pC)(t)?null==(r=t.components)?void 0:r.parameters:null;return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},query:{maxRecordCount:null!=(n=null!=(s=null==u||null==(i=u.limit)||null==(o=i.schema)?void 0:o.maximum)?s:null==u||null==(a=u.limitFeatures)||null==(l=a.schema)?void 0:l.maximum)?n:5e3,maxRecordCountFactor:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsSqlExpression:!1,tileMaxRecordCount:void 0},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1}}}_getExtent(e){var t;const r=null==(t=e.extent)?void 0:t.spatial;if(!r)return null;const n=r.bbox[0],s=4===n.length,i=n[0],o=n[1],a=s?void 0:n[2];return{xmin:i,ymin:o,xmax:s?n[2]:n[3],ymax:s?n[3]:n[4],zmin:a,zmax:s?void 0:n[5],spatialReference:y.Z.WGS84.toJSON()}}_getStorageSpatialReference(e){var t;const r=null!=(t=e.storageCrs)?t:f.$9,n=(0,f.d)(r);return(0,p.Wi)(n)?y.Z.WGS84:new y.Z({wkid:n})}_getSupportedSpatialReferences(e,t){var r;const n="#/crs",s=null!=(r=e.crs)?r:[f.$9],i=s.includes(n)?s.filter((e=>e!==n)).concat(t.crs):s,o=/^http:\/\/www\.opengis.net\/def\/crs\/epsg\/.*\/3785$/i;return i.filter((e=>!o.test(e)))}async _loadOGCServices(e,t){const r=(0,p.pC)(t)?t.signal:null,{apiKey:n,collectionId:s,customParameters:i,fields:o,geometryType:a,hasZ:l,objectIdField:c,timeInfo:d,url:m}=e,y={fields:null==o?void 0:o.map((e=>e.toJSON())),geometryType:u.P$.toJSON(a),hasZ:l,objectIdField:c,timeInfo:null==d?void 0:d.toJSON()},g={apiKey:n,customParameters:i,signal:r},b=await(0,f.gp)(m,g),[v,_]=await Promise.all([(0,f.G4)(b,g),(0,f.j)(b,g)]);if(!this._conformsToType(v,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson"))throw new h.Z("ogc-feature-layer:no-geojson-support","Server does not support geojson");const w=_.collections.find((e=>e.id===s));if(!w)throw new h.Z("ogc-feature-layer:collection-not-found","Server does not contain the named collection");const C=this._conformsToType(v,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30")?await(0,f.eS)(b,g):null,x=await(0,f.w9)(w,y,g),E=this._getCapabilities(x.hasZ,C),T=this._getExtent(w),S=this._getStorageSpatialReference(w).toJSON(),O=this._getSupportedSpatialReferences(w,_),I=new RegExp(`^${f.Lu}`,"i"),F={};for(const e of O){const t=(0,f.d)(e);(0,p.pC)(t)&&(F[t]||(F[t]=e.replace(I,"")))}x.extent=T,this.featureDefinition={capabilities:E,collection:w,layerDefinition:x,queryParameters:{},spatialReference:S,supportedCrs:F}}};(0,n._)([(0,a.Cb)()],g.prototype,"featureDefinition",void 0),(0,n._)([(0,a.Cb)({constructOnly:!0})],g.prototype,"layer",void 0),(0,n._)([(0,a.Cb)()],g.prototype,"type",void 0),g=(0,n._)([(0,l.j)("esri.layers.graphics.sources.OGCFeatureSource")],g);const b=g;var v=r(54295),_=r(71612),w=r(17017),C=r(69637),x=r(38009),E=r(68825),T=r(16859),S=r(34760),O=r(72965),I=r(28294),F=r(21506),q=r(55785),P=r(16451),R=r(1231),U=r(53518),M=r(35671),L=r(2319),A=r(30707),Z=r(57444),D=r(32163),N=r(6570);const j=(0,U.v)();let k=class extends((0,v.V)((0,w.N)((0,C.b)((0,_.h)((0,E.c)((0,I.n)((0,O.M)((0,x.q)((0,T.I)((0,S.Q)((0,o.R)(c.Z)))))))))))){constructor(e){super(e),this.collectionId=null,this.copyright=null,this.definitionExpression=null,this.description=null,this.displayField=null,this.elevationInfo=null,this.featureReduction=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.hasZ=void 0,this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="OGCFeatureLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new b({layer:this}),this.spatialReference=null,this.title=null,this.type="ogc-feature",this.typeIdField=null,this.types=null,this.url=null}destroy(){var e;null==(e=this.source)||e.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["OGCFeatureServer"]},e).then((()=>this._fetchService(e)))),this.when()}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}set renderer(e){(0,M.YN)(e,this.fieldsIndex),this._set("renderer",e)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,D.eZ)(this,e)}createQuery(){return new Z.Z}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){var r;let n,s=!1;const i=null==t||null==(r=t.feature)?void 0:r.attributes,o=this.typeIdField&&(null==i?void 0:i[this.typeIdField]);return null!=o&&this.types&&(s=this.types.some((t=>{var r,s;return t.id==o&&(n=null==(r=t.domains)?void 0:r[e],"inherited"===(null==(s=n)?void 0:s.type)&&(n=this._getLayerDomain(e)),!0)}))),s||n||(n=this._getLayerDomain(e)),n}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(Z.Z.from(e)||this.createQuery(),t))).then((e=>{var t;return null==e||null==(t=e.features)||t.forEach((e=>{e.layer=e.sourceLayer=this})),e}))}async _fetchService(e){await this.source.load(e),this.read(this.source.featureDefinition,{origin:"service"}),(0,M.YN)(this.renderer,this.fieldsIndex),(0,M.UF)(this.timeInfo,this.fieldsIndex)}_getLayerDomain(e){if(!this.fields)return null;for(const t of this.fields)if(t.name===e&&t.domain)return t.domain;return null}};(0,n._)([(0,a.Cb)({readOnly:!0,json:{origins:{service:{read:!0}}}})],k.prototype,"capabilities",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],k.prototype,"collectionId",void 0),(0,n._)([(0,a.Cb)({type:String})],k.prototype,"copyright",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],k.prototype,"defaultPopupTemplate",null),(0,n._)([(0,a.Cb)({type:String})],k.prototype,"definitionExpression",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,type:String,json:{origins:{service:{name:"collection.description"}}}})],k.prototype,"description",void 0),(0,n._)([(0,a.Cb)({type:String})],k.prototype,"displayField",void 0),(0,n._)([(0,a.Cb)(F.PV)],k.prototype,"elevationInfo",void 0),(0,n._)([(0,a.Cb)(q.d)],k.prototype,"featureReduction",void 0),(0,n._)([(0,a.Cb)({type:[R.Z],json:{origins:{service:{name:"layerDefinition.fields"}}}})],k.prototype,"fields",void 0),(0,n._)([(0,a.Cb)(j.fieldsIndex)],k.prototype,"fieldsIndex",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,type:N.Z,json:{origins:{service:{name:"layerDefinition.extent"}}}})],k.prototype,"fullExtent",void 0),(0,n._)([(0,a.Cb)({type:u.Mk.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:u.Mk.read}}}}})],k.prototype,"geometryType",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{origins:{service:{name:"layerDefinition.hasZ"}}}})],k.prototype,"hasZ",void 0),(0,n._)([(0,a.Cb)({type:Boolean,readOnly:!0})],k.prototype,"isTable",null),(0,n._)([(0,a.Cb)({type:[L.Z],json:{origins:{"web-document":{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:A.r},write:!0}}}})],k.prototype,"labelingInfo",void 0),(0,n._)([(0,a.Cb)(F.iR)],k.prototype,"labelsVisible",void 0),(0,n._)([(0,a.Cb)(F.rn)],k.prototype,"legendEnabled",void 0),(0,n._)([(0,a.Cb)({type:String,json:{origins:{service:{name:"layerDefinition.objectIdField"}}}})],k.prototype,"objectIdField",void 0),(0,n._)([(0,a.Cb)({type:["OGCFeatureLayer"]})],k.prototype,"operationalLayerType",void 0),(0,n._)([(0,a.Cb)(F.C_)],k.prototype,"popupEnabled",void 0),(0,n._)([(0,a.Cb)({type:s.Z,json:{name:"popupInfo",write:!0}})],k.prototype,"popupTemplate",void 0),(0,n._)([(0,a.Cb)({types:i.A,json:{origins:{service:{name:"layerDefinition.drawingInfo.renderer",write:!1},"web-scene":{types:i.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:!0}})],k.prototype,"renderer",null),(0,n._)([(0,a.Cb)(F.YI)],k.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],k.prototype,"source",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,type:y.Z,json:{origins:{service:{read:!0}}}})],k.prototype,"spatialReference",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"collection.title"}}}})],k.prototype,"title",void 0),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],k.prototype,"type",void 0),(0,n._)([(0,a.Cb)({type:String,readOnly:!0})],k.prototype,"typeIdField",void 0),(0,n._)([(0,a.Cb)({type:[P.Z]})],k.prototype,"types",void 0),(0,n._)([(0,a.Cb)(F.HQ)],k.prototype,"url",void 0),k=(0,n._)([(0,l.j)("esri.layers.OGCFeatureLayer")],k);const V=k},70272:(e,t,r)=>{r.d(t,{nd:()=>o,ZP:()=>s,S6:()=>i});var n=r(70586);class s{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new s(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function i(e){return!((0,n.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class o extends s{}},44876:(e,t,r)=>{r.d(t,{Z:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},5428:(e,t,r)=>{r.d(t,{Z:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=r}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}clone(e){return e?(e.set(this.coords),new n(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new n(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},61159:(e,t,r)=>{r.d(t,{g:()=>n});const n={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},98732:(e,t,r)=>{r.d(t,{XA:()=>j,h_:()=>H,Yn:()=>k,GH:()=>G,Uy:()=>Z,EI:()=>V,cn:()=>z,di:()=>$,Iv:()=>R,fQ:()=>C,eG:()=>A,J6:()=>M,oB:()=>ie,zj:()=>Q,$:()=>ee,lz:()=>se,RZ:()=>J,Nh:()=>Y,Jd:()=>b,IN:()=>v,hY:()=>re,lM:()=>W,$g:()=>te});var n=r(20102),s=r(92604),i=r(70586),o=r(33955),a=r(70272),l=r(44876),u=r(5428);function c(e,t){return e?t?4:3:t?3:2}const h=s.Z.getLogger("esri.tasks.support.optimizedFeatureSet"),d={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},p=(e,t,r,n,s,i)=>{e[r]=s,e[r+1]=i},f=(e,t,r,n,s,i)=>{e[r]=s,e[r+1]=i,e[r+2]=t[n+2]},m=(e,t,r,n,s,i)=>{e[r]=s,e[r+1]=i,e[r+2]=t[n+3]},y=(e,t,r,n,s,i)=>{e[r]=s,e[r+1]=i,e[r+2]=t[n+2],e[r+3]=t[n+3]};function g(e,t,r,n){if(e){if(r)return t&&n?y:f;if(t&&n)return m}else if(t&&n)return f;return p}function b({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function v({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function _({scale:e,translate:t},r){return r*e[0]+t[0]}function w({scale:e,translate:t},r){return t[1]-r*e[1]}function C(e,t,r){return e?t?r?F(e):T(e):r?O(e):x(e):null}function x(e){const t=e.coords;return{x:t[0],y:t[1]}}function E(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function T(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function O(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function I(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function F(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function q(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function P(e,t){return e&&t?q:e?S:t?I:E}function R(e,t,r){if((0,i.Wi)(e))return null;const n=c(t,r),s=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let s=0;s<n;s++)r.push(e.coords[t+s]);s.push(r)}return t?r?{points:s,hasZ:t,hasM:r}:{points:s,hasZ:t}:r?{points:s,hasM:r}:{points:s}}function U(e,t,r=c(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let s=0;for(const e of t.points)for(let t=0;t<r;t++)n[s++]=e[t];return e}function M(e,t,r){if(!e)return null;const n=c(t,r),{coords:s,lengths:i}=e,o=[];let a=0;for(const e of i){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(s[a++]);t.push(e)}o.push(t)}return t?r?{paths:o,hasZ:t,hasM:r}:{paths:o,hasZ:t}:r?{paths:o,hasM:r}:{paths:o}}function L(e,t,r=c(t.hasZ,t.hasM)){const{lengths:n,coords:s}=e;let i=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)s[i++]=t[e];n.push(e.length)}return e}function A(e,t,r){if(!e)return null;const n=c(t,r),{coords:s,lengths:i}=e,o=[];let a=0;for(const e of i){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(s[a++]);t.push(e)}o.push(t)}return t?r?{rings:o,hasZ:t,hasM:r}:{rings:o,hasZ:t}:r?{rings:o,hasM:r}:{rings:o}}function Z(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const s=c(r,n),{lengths:i,coords:o}=e;let a=0;i.length=o.length=0;for(const e of t){for(const t of e)for(let e=0;e<s;e++)o[a++]=t[e];i.push(e.length)}}(e,t.rings,r,n),e}const D=[],N=[];function j(e,t,r,n,s){D[0]=e;const[i]=k(N,D,t,r,n,s);return D.length=N.length=0,i}function k(e,t,r,s,o,l){if(e.length=0,!r){for(const r of t){const t=r.attributes[l];e.push(new a.ZP(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,s){const i=P(r,n);for(const r of t){const{geometry:t,attributes:n}=r;let o;t&&(o=i(new u.Z,t)),e.push(new a.ZP(o,n,null,n[s]))}return e}(e,t,s,o,l);case"esriGeometryMultipoint":return function(e,t,r,n,s){const i=c(r,n);for(const r of t){const t=r.geometry,n=r.attributes;let o;t&&(o=U(new u.Z,t,i)),e.push(new a.ZP(o,n,null,n[s]))}return e}(e,t,s,o,l);case"esriGeometryPolyline":return function(e,t,r,n,s){const i=c(r,n);for(const r of t){const t=r.geometry,n=r.attributes;let o;t&&(o=L(new u.Z,t,i)),e.push(new a.ZP(o,n,null,n[s]))}return e}(e,t,s,o,l);case"esriGeometryPolygon":return function(e,t,r,n,s){for(const o of t){const t=o.geometry,l=o.centroid,c=o.attributes;let h;t&&(h=Z(new u.Z,t,r,n)),(0,i.pC)(l)?e.push(new a.ZP(h,c,E(new u.Z,l),c[s])):e.push(new a.ZP(h,c,null,c[s]))}return e}(e,t,s,o,l);default:h.error("convertToFeatureSet:unknown-geometry",new n.Z(`Unable to parse unknown geometry type '${r}'`)),e.length=0}return e}function V(e,t,r,n){N[0]=e,B(D,N,t,r,n);const s=D[0];return D.length=N.length=0,s}function G(e,t,r){if((0,i.Wi)(e))return null;const s=new u.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,o.wp)(e)?P(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(s,e):(0,o.oU)(e)?Z(s,e,t,r):(0,o.l9)(e)?L(s,e,c(t,r)):(0,o.aW)(e)?U(s,e,c(t,r)):void h.error("convertFromGeometry:unknown-geometry",new n.Z(`Unable to parse unknown geometry type '${e}'`))}function $(e,t,r,s){const o=e&&("coords"in e?e:e.geometry);if((0,i.Wi)(o))return null;switch(t){case"esriGeometryPoint":{let e=x;return r&&s?e=F:r?e=T:s&&(e=O),e(o)}case"esriGeometryMultipoint":return R(o,r,s);case"esriGeometryPolyline":return M(o,r,s);case"esriGeometryPolygon":return A(o,r,s);default:return void h.error("convertToGeometry:unknown-geometry",new n.Z(`Unable to parse unknown geometry type '${t}'`))}}function B(e,t,r,s,o){if(e.length=0,(0,i.Wi)(r))return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let s=x;r&&n?s=F:r?s=T:n&&(s=O);for(const r of t){const{geometry:t,attributes:n}=r,o=(0,i.pC)(t)?s(t):null;e.push({attributes:n,geometry:o})}return e}(e,t,s,o);case"esriGeometryMultipoint":return function(e,t,r,n){for(const s of t){const{geometry:t,attributes:i}=s;let o;t&&(o=R(t,r,n)),e.push({attributes:i,geometry:o})}return e}(e,t,s,o);case"esriGeometryPolyline":return function(e,t,r,n){for(const s of t){const{geometry:t,attributes:o}=s;let a;(0,i.pC)(t)&&(a=M(t,r,n)),e.push({attributes:o,geometry:a})}return e}(e,t,s,o);case"esriGeometryPolygon":return function(e,t,r,n){for(const s of t){const{geometry:t,attributes:o,centroid:a}=s;let l;if((0,i.pC)(t)&&(l=A(t,r,n)),a){const t=x(a);e.push({attributes:o,centroid:t,geometry:l})}else e.push({attributes:o,geometry:l})}return e}(e,t,s,o);default:h.error("convertToFeatureSet:unknown-geometry",new n.Z(`Unable to parse unknown geometry type '${r}'`))}return e}function z(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:s,hasM:i,hasZ:o,features:a,geometryType:l,exceededTransferLimit:u,uniqueIdField:c,queryGeometry:h,queryGeometryType:d}=e,p={features:B([],a,l,o,i),fields:s,geometryType:l,objectIdFieldName:t,spatialReference:r,uniqueIdField:c,queryGeometry:$(h,d,!1,!1)};return n&&(p.transform=n),u&&(p.exceededTransferLimit=u),i&&(p.hasM=i),o&&(p.hasZ=o),p}function H(e,t){const r=new l.Z,{hasM:s,hasZ:i,features:o,objectIdFieldName:a,spatialReference:u,geometryType:c,exceededTransferLimit:d,transform:p,fields:f}=e;return f&&(r.fields=f),r.geometryType=c,r.objectIdFieldName=a||t,r.spatialReference=u,r.objectIdFieldName?(o&&k(r.features,o,c,i,s,r.objectIdFieldName),d&&(r.exceededTransferLimit=d),s&&(r.hasM=s),i&&(r.hasZ=i),p&&(r.transform=p),r):(h.error(new n.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function W(e){const{transform:t,features:r,hasM:n,hasZ:s}=e;if(!t)return e;for(const e of r)(0,i.pC)(e.geometry)&&te(e.geometry,e.geometry,n,s,t),e.centroid&&te(e.centroid,e.centroid,n,s,t);return e.transform=null,e}function J(e,t){const{geometryType:r,features:n,hasM:s,hasZ:i}=t;if(!e)return t;for(let t=0;t<n.length;t++){const o=n[t],a=o.weakClone();a.geometry=new u.Z,Y(a.geometry,o.geometry,s,i,r,e),o.centroid&&(a.centroid=new u.Z,Y(a.centroid,o.centroid,s,i,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function Y(e,t,r,n,s,o,a=r,l=n){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,i.Wi)(t)||!t.coords.length)return null;const u=d[s],{coords:h,lengths:p}=t,f=c(r,n),m=c(r&&a,n&&l),y=g(r,n,a,l);if(!p.length)return y(e.coords,h,0,0,b(o,h[0]),v(o,h[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=f,e;let _,w,C,x,E=0,T=0,S=T;for(const t of p){if(t<u)continue;let r=0;T=S,C=_=b(o,h[E]),x=w=v(o,h[E+1]),y(e.coords,h,T,E,C,x),r++,E+=f,T+=m;for(let n=1;n<t;n++,E+=f)C=b(o,h[E]),x=v(o,h[E+1]),C===_&&x===w||(y(e.coords,h,T,E,C-_,x-w),T+=m,r++,_=C,w=x);r>=u&&(e.lengths.push(r),S=T)}return e.coords.length=S,e.coords.length?e:null}function Q(e,t,r,n,s,i,o=r,a=n){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const l=d[s],{coords:u,lengths:h}=t,p=c(r,n),f=c(r&&o,n&&a),m=g(r,n,o,a);if(!h.length)return m(e.coords,u,0,0,u[0],u[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=p,e;let y=0;const b=i*i;for(const t of h){if(t<l){y+=t*p;continue}const r=e.coords.length/f,n=y,s=y+(t-1)*p;m(e.coords,u,e.coords.length,n,u[n],u[n+1]),X(e.coords,u,p,b,m,n,s),m(e.coords,u,e.coords.length,s,u[s],u[s+1]);const i=e.coords.length/f-r;i>=l?e.lengths.push(i):e.coords.length=r*f,y+=t*p}return e.coords.length?e:null}function K(e,t,r,n){const s=e[t],i=e[t+1],o=e[r],a=e[r+1],l=e[n],u=e[n+1];let c=o,h=a,d=l-c,p=u-h;if(0!==d||0!==p){const e=((s-c)*d+(i-h)*p)/(d*d+p*p);e>1?(c=l,h=u):e>0&&(c+=d*e,h+=p*e)}return d=s-c,p=i-h,d*d+p*p}function X(e,t,r,n,s,i,o){let a,l=n,u=0;for(let e=i+r;e<o;e+=r)a=K(t,e,i,o),a>l&&(u=e,l=a);l>n&&(u-i>r&&X(e,t,r,n,s,i,u),s(e,t,e.length,u,t[u],t[u+1]),o-u>r&&X(e,t,r,n,s,u,o))}function ee(e,t,r,n){if((0,i.Wi)(t)||!t.coords||!t.coords.length)return null;const s=c(r,n);let o=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=s){const r=e[t],n=e[t+1];o=Math.min(o,r),l=Math.max(l,r),a=Math.min(a,n),u=Math.max(u,n)}}return e[0]=o,e[1]=a,e[2]=l,e[3]=u,e}function te(e,t,r,n,s){const{coords:i,lengths:o}=t,a=r?n?y:f:n?f:p,l=c(r,n);if(!i.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;if(!o.length)return a(e.coords,i,0,0,_(s,i[0]),w(s,i[1])),e!==t&&(e.lengths.length=0,e.coords.length=l),e;const[u,h]=s.scale;let d=0;for(let t=0;t<o.length;t++){const r=o[t];e.lengths[t]=r;let n=_(s,i[d]),c=w(s,i[d+1]);a(e.coords,i,d,d,n,c),d+=l;for(let t=1;t<r;t++,d+=l)n+=i[d]*u,c-=i[d+1]*h,a(e.coords,i,d,d,n,c)}return e!==t&&(e.lengths.length=o.length,e.coords.length=i.length),e}function re(e,t,r,n,s,i){const o=c(r,n),a=g(r,n,s,i),l=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<l.length;t+=o)a(e.coords,l,e.coords.length,t,l[t],l[t+1]);return e}function ne(e,t,r,n){let s=0,i=e[n*t],o=e[n*(t+1)];for(let a=1;a<r;a++){const r=i+e[n*(t+a)],l=o+e[n*(t+a)+1],u=(r-i)*(l+o);i=r,o=l,s+=u}return.5*s}function se(e,t){const{coords:r,lengths:n}=e;let s=0,i=0;for(let e=0;e<n.length;e++)i+=ne(r,s,n[e],t),s+=e;return Math.abs(i)}function ie(e,t){if((0,i.Wi)(e))return null;const r=e.clone(),n=e.coords,s=e.lengths;let o=0;for(let e=0;e<s.length;e++){const i=s[e];let a=n[t*o],l=n[t*o+1];for(let e=1;e<i;e++){const s=a+n[t*(o+e)],i=l+n[t*(o+e)+1];r.coords[t*(o+e)]=s,r.coords[t*(o+e)+1]=i,a=s,l=i}o+=i}return r}},54295:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(43697),s=r(5600),i=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{get apiKey(){var e;return this._isOverridden("apiKey")?this._get("apiKey"):function(e){return"portalItem"in e}(this)?null==(e=this.portalItem)?void 0:e.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n._)([(0,s.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,n._)([(0,i.j)("esri.layers.mixins.APIKeyMixin")],t),t}},68825:(e,t,r)=>{r.d(t,{c:()=>m});var n,s=r(43697),i=r(78286),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(35454),u=r(96674);const c=new l.Xn({asc:"ascending",desc:"descending"});let h=n=class extends u.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s._)([(0,o.Cb)({type:c.apiValues,json:{read:c.read,write:c.write}})],h.prototype,"order",void 0),h=n=(0,s._)([(0,a.j)("esri.layers.support.OrderByInfo")],h);const d=h;function p(e,t,r){if(!e)return null;const n=e.find((e=>!!e.field));if(!n)return null;const s=new d;return s.read(n,r),[s]}function f(e,t,r,n){const s=e.find((e=>!!e.field));s&&(0,i.RB)(r,[s.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,s._)([(0,o.Cb)({type:[d],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:p},write:{target:"layerDefinition.orderBy",writer:f}}})],t.prototype,"orderBy",void 0),t=(0,s._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>_});var n=r(43697),s=r(40330),i=r(3172),o=r(66643),a=r(20102),l=r(92604),u=r(70586),c=r(95330),h=r(17452),d=r(5600),p=(r(67676),r(80442),r(75215),r(71715)),f=r(52011),m=r(30556),y=r(65587),g=r(15235),b=r(86082);const v=l.Z.getLogger("esri.layers.mixins.PortalLayer"),_=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const n=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await n.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,c.D_)(e)||v.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==s.id?void 0:s.id.findCredential(this.url):null;if(!t)return!0;const r=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const n=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(n)return n;const a=s.id.findServerInfo(this.url);if(null==a||!a.owningSystemUrl)return null;const l=`${a.owningSystemUrl}/sharing/rest`,c=y.Z.getDefault();if(c&&c.loaded&&(0,h.Fv)(c.restUrl)===(0,h.Fv)(l))return c.user;const d=`${l}/community/self`,p=(0,u.pC)(e)?e.signal:null,f=await(0,o.q6)((0,i.default)(d,{authMode:"no-prompt",query:{f:"json"},signal:p}));return f.ok?b.default.fromJSON(f.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,n=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||y.Z.getDefault());return r&&n&&!(0,h.tm)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n._)([(0,d.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,n._)([(0,p.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,d.Cb)()],t.prototype,"resourceReferences",void 0),(0,n._)([(0,d.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,n._)([(0,f.j)("esri.layers.mixins.PortalLayer")],t),t},w={credential:null,user:null}},70082:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(43697),s=r(35454),i=r(96674),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011));const l=new s.Xn({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends i.wq{constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,n._)([(0,o.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.Cb)({json:{write:!0}})],u.prototype,"description",void 0),(0,n._)([(0,o.Cb)({json:{read:l.read,write:l.write}})],u.prototype,"drawingTool",void 0),(0,n._)([(0,o.Cb)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,n._)([(0,o.Cb)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,n._)([(0,a.j)("esri.layers.support.FeatureTemplate")],u);const c=u},16451:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(43697),s=r(96674),i=r(5600),o=(r(67676),r(80442),r(75215),r(71715)),a=r(52011),l=r(30556),u=r(72729),c=r(70082);let h=class extends s.wq{constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,u.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e)){var n;e[t]&&(r[t]=null==(n=e[t])?void 0:n.toJSON())}t.domains=r}};(0,n._)([(0,i.Cb)({json:{write:!0}})],h.prototype,"id",void 0),(0,n._)([(0,i.Cb)({json:{write:!0}})],h.prototype,"name",void 0),(0,n._)([(0,i.Cb)({json:{write:!0}})],h.prototype,"domains",void 0),(0,n._)([(0,o.r)("domains")],h.prototype,"readDomains",null),(0,n._)([(0,l.c)("domains")],h.prototype,"writeDomains",null),(0,n._)([(0,i.Cb)({type:[c.Z],json:{write:!0}})],h.prototype,"templates",void 0),h=(0,n._)([(0,a.j)("esri.layers.support.FeatureType")],h);const d=h},35671:(e,t,r)=>{r.d(t,{io:()=>g,AB:()=>y,gd:()=>m,Mu:()=>_,Q0:()=>f,YN:()=>c,UF:()=>d,O5:()=>b,os:()=>w,H7:()=>P,qN:()=>R,Pz:()=>L,Qc:()=>A,vP:()=>V});var n,s,i=r(20102),o=r(78286);(s=n||(n={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",s.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var a=r(59266);const l=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],u=["field","normalizationField"];function c(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(h(l,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)h(u,e,t)}function h(e,t,r){if(e)for(const n of e){const e=(0,o.hS)(n,t),s=e&&"function"!=typeof e&&r.get(e);s&&(0,o.RB)(n,s.name,t)}}function d(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const r=t.get(e.startField),n=t.get(e.endField);e.startField=r&&r.name||null,e.endField=n&&n.name||null}else{const r=t.get(e.startTimeField),n=t.get(e.endTimeField);e.startTimeField=r&&r.name||null,e.endTimeField=n&&n.name||null}}const p=new Set;function f(e,t){return e&&t?(p.clear(),m(p,e,t),Array.from(p).sort()):[]}function m(e,t,r){var n;if(r)if(null!=t&&null!=(n=t.fields)&&n.length)if(r.includes("*"))for(const{name:r}of t.fields)e.add(r);else for(const n of r)y(e,t,n);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)e.add(t)}}function y(e,t,r){if("string"==typeof r)if(t){const n=t.get(r);n&&e.add(n.name)}else e.add(r)}async function g(e,t,r){var n;if(!r)return;const{arcadeUtils:s}=await(0,a.LC)(),i=s.extractFieldNames(r,null==t||null==(n=t.fields)?void 0:n.map((e=>e.name)));for(const r of i)y(e,t,r)}function b({displayField:e,fields:t}){return e||(t&&t.length?v(t,"name-or-title")||v(t,"unique-identifier")||v(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function v(e,t){for(const r of e)if(r&&r.valueType&&r.valueType===t)return r.name;return null}async function _(e,t){const{labelingInfo:n,fieldsIndex:s}=t;n&&n.length&&await Promise.all(n.map((t=>async function(e,t,n){if(!n)return;const s=n.getLabelExpression(),o=n.where;if("arcade"===s.type)await g(e,t,s.expression);else{const r=s.expression.match(/{[^}]*}/g);r&&r.forEach((r=>{y(e,t,r.slice(1,-1))}))}await async function(e,t,n){if(n&&"1=1"!==n){const s=(await Promise.all([r.e(1534),r.e(5732)]).then(r.bind(r,41534))).WhereClause.create(n,t);if(!s.isStandardized)throw new i.Z("fieldUtils:collectFilterFields","Where clause is not standardized");m(e,t,s.fieldNames)}}(e,t,o)}(e,s,t))))}function w(e){const t=e.defaultValue;return void 0!==t&&F(e,t)?t:e.nullable?null:void 0}function C(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function x(e){return null===e||C(e)}const E="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function T(e){return null===e||E(e)}function S(e){return null!=e&&"string"==typeof e}function O(e){return null===e||S(e)}function I(){return!0}function F(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":r=e.nullable?T:E;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?x:C;break;case"string":case"esriFieldTypeString":r=e.nullable?O:S;break;default:r=I}return 1===arguments.length?r:r(t)}const q=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function P(e){return null!=e&&q.has(e.type)}function R(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var U,M;function L(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function A(e,t){return e.nullable&&null===t?null:P(e)&&!function(e,t){const r="string"==typeof e?Z(e):e;return!!r&&(r.isInteger?E(t)&&t>=r.min&&t<=r.max:t>=r.min&&t<=r.max)}(e.type,Number(t))?U.OUT_OF_RANGE:F(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const r="range"in e?e.range[0]:e.minValue,s="range"in e?e.range[1]:e.maxValue;if(+t<r||+t>s)return n.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return n.INVALID_CODED_VALUE}return null}(e.domain,t):null:M.INVALID_TYPE}function Z(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return D;case"esriFieldTypeInteger":case"integer":return N;case"esriFieldTypeSingle":case"single":return j;case"esriFieldTypeDouble":case"double":return k}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(U||(U={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(M||(M={}));const D={min:-32768,max:32767,isInteger:!0},N={min:-2147483648,max:2147483647,isInteger:!0},j={min:-34e37,max:12e37,isInteger:!1},k={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function V(e,t,r){switch(e){case n.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case n.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case M.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case U.OUT_OF_RANGE:{const{min:e,max:n}=Z(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${n}`}}}},99282:(e,t,r)=>{r.d(t,{a:()=>i});var n=r(67900),s=r(68441);const i={inches:(0,n.En)(1,"meters","inches"),feet:(0,n.En)(1,"meters","feet"),"us-feet":(0,n.En)(1,"meters","us-feet"),yards:(0,n.En)(1,"meters","yards"),miles:(0,n.En)(1,"meters","miles"),"nautical-miles":(0,n.En)(1,"meters","nautical-miles"),millimeters:(0,n.En)(1,"meters","millimeters"),centimeters:(0,n.En)(1,"meters","centimeters"),decimeters:(0,n.En)(1,"meters","decimeters"),meters:(0,n.En)(1,"meters","meters"),kilometers:(0,n.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,n.ty)(1,"meters",s.sv.radius)}},51706:(e,t,r)=>{var n,s;function i(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?n.Expression:e.field&&"string"==typeof e.field?n.Field:n.Unknown}function l(e,t){const r=t||a(e),i=e.valueUnit||"unknown";return r===n.Unknown?s.Constant:e.stops?s.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?s.ClampedLinear:"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?s.Proportional:s.Additive:s.Identity:s.RealWorldSize}r.d(t,{RY:()=>n,hL:()=>s,PS:()=>a,QW:()=>l,iY:()=>i,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(n||(n={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(s||(s={}))},28101:(e,t,r)=>{r.d(t,{PR:()=>C,Lq:()=>f,Km:()=>m,cM:()=>y,ap:()=>g,V3:()=>_,B3:()=>p});var n=r(22303),s=r(1692),i=r(74085),o=r(92604),a=r(70586),l=r(99282),u=r(51706);const c=o.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),h=new s.Z,d=Math.PI,p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function f(e,t,r){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"color"===e.type))[0]:e;if(!s)return;if("esri.renderers.visualVariables.ColorVariable"!==s.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const i="number"==typeof t,o=i?null:t,l=o&&o.attributes;let u=i?t:null;const h=s.field,{ipData:d,hasExpression:p}=s.cache;let f=s.cache.compiledFunc;if(!h&&!p){const e=s.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(p){if(!(0,a.pC)(r)||!(0,a.pC)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,n=t.getViewInfo(e),i=t.createExecContext(o,n);if(!f){const e=t.createSyntaxTree(s.valueExpression);f=t.createFunction(e),s.cache.compiledFunc=f}u=t.executeFunction(f,i)}else l&&(u=l[h]);const m=s.normalizationField,y=l?parseFloat(l[m]):void 0;if(null!=u&&(!m||i||!isNaN(y)&&0!==y)){isNaN(y)||i||(u/=y);const e=w(u,d);if(e){const t=e[0],i=e[1],o=t===i?s.stops[t].color:n.Z.blendColors(s.stops[t].color,s.stops[i].color,e[2],(0,a.pC)(r)?r.color:void 0);return new n.Z(o)}}}function m(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.OpacityVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const s="number"==typeof t,i=s?null:t,o=i&&i.attributes;let l=s?t:null;const u=n.field,{ipData:h,hasExpression:d}=n.cache;let p=n.cache.compiledFunc;if(!u&&!d){const e=n.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(d){if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,s=t.getViewInfo(e),o=t.createExecContext(i,s);if(!p){const e=t.createSyntaxTree(n.valueExpression);p=t.createFunction(e),n.cache.compiledFunc=p}l=t.executeFunction(p,o)}else o&&(l=o[u]);const f=n.normalizationField,m=o?parseFloat(o[f]):void 0;if(null!=l&&(!f||s||!isNaN(m)&&0!==m)){isNaN(m)||s||(l/=m);const e=w(l,h);if(e){const t=e[0],r=e[1];if(t===r)return n.stops[t].opacity;{const s=n.stops[t].opacity;return s+(n.stops[r].opacity-s)*e[2]}}}}function y(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.RotationVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const s=n.axis||"heading",i="heading"===s&&"arithmetic"===n.rotationType?90:0,o="heading"===s&&"arithmetic"===n.rotationType?-1:1,l="number"==typeof t?null:t,u=l&&l.attributes,h=n.field,{hasExpression:d}=n.cache;let p=n.cache.compiledFunc,f=0;if(!h&&!d)return f;if(d){if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,s=t.getViewInfo(e),i=t.createExecContext(l,s);if(!p){const e=t.createSyntaxTree(n.valueExpression);p=t.createFunction(e),n.cache.compiledFunc=p}f=t.executeFunction(p,i)}else u&&(f=u[h]||0);return f="number"!=typeof f||isNaN(f)?null:i+o*f,f}function g(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.SizeVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const s=function(e,t,r,n,s){switch(t.transformationType){case u.hL.Additive:return function(e,t,r,n){return e+(b(t.minSize,r,n)||t.minDataValue)}(e,t,r,n);case u.hL.Constant:return function(e,t,r){const n=e.stops;let s=n&&n.length&&n[0].size;return null==s&&(s=e.minSize),b(s,t,r)}(t,r,n);case u.hL.ClampedLinear:return function(e,t,r,n){const s=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),i=b(t.minSize,r,n),o=b(t.maxSize,r,n),l=(0,a.pC)(n)?n.shape:void 0;if(e<=t.minDataValue)return i;if(e>=t.maxDataValue)return o;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?d*(i/2)**2:i*i,r=t+s*((e?d*(o/2)**2:o*o)-t);return e?2*Math.sqrt(r/d):Math.sqrt(r)}return i+s*(o-i)}(e,t,r,n);case u.hL.Proportional:return function(e,t,r,n){const s=(0,a.pC)(n)?n.shape:void 0,i=e/t.minDataValue,o=b(t.minSize,r,n),l=b(t.maxSize,r,n);let u=null;return u="circle"===s?2*Math.sqrt(i*(o/2)**2):"square"===s||"diamond"===s||"image"===s?Math.sqrt(i*o**2):i*o,v(u,o,l)}(e,t,r,n);case u.hL.Stops:return function(e,t,r,n,s){const[i,o,a]=w(e,s);if(i===o)return b(t.stops[i].size,r,n);{const e=b(t.stops[i].size,r,n);return e+(b(t.stops[o].size,r,n)-e)*a}}(e,t,r,n,s);case u.hL.RealWorldSize:return function(e,t,r,n){const s=((0,a.pC)(n)&&n.resolution?n.resolution:1)*l.a[t.valueUnit],i=b(t.minSize,r,n),o=b(t.maxSize,r,n),{valueRepresentation:u}=t;let c=null;return c="area"===u?2*Math.sqrt(e/d)/s:"radius"===u||"distance"===u?2*e/s:e/s,v(c,i,o)}(e,t,r,n);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,r){const n="number"==typeof t,s=n?null:t,i=s&&s.attributes;let o=n?t:null;const{isScaleDriven:l}=e.cache;let h=e.cache.compiledFunc;if(l){const t=(0,a.pC)(r)?r.scale:void 0,n=(0,a.pC)(r)?r.view:void 0;o=null==t||"3d"===n?function(e){let t=null,r=null;const n=e.stops;return n?(t=n[0].value,r=n[n.length-1].value):(t=e.minDataValue||0,r=e.maxDataValue||0),(t+r)/2}(e):t}else if(!n)switch(e.inputValueType){case u.RY.Expression:{if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const t={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},n=r.arcade.arcadeUtils,i=n.getViewInfo(t),l=n.createExecContext(s,i);if(!h){const t=n.createSyntaxTree(e.valueExpression);h=n.createFunction(t),e.cache.compiledFunc=h}o=n.executeFunction(h,l);break}case u.RY.Field:i&&(o=i[e.field]);break;case u.RY.Unknown:o=null}if(!(0,u.qh)(o))return null;if(n||!e.normalizationField)return o;const d=i?parseFloat(i[e.normalizationField]):null;return(0,u.qh)(d)&&0!==d?o/d:null}(n,t,r),n,t,r,n.cache.ipData);return null==s||isNaN(s)?0:s}function b(e,t,r){return null==e?null:(0,u.iY)(e)?g(e,t,r):(0,u.qh)(e)?e:null}function v(e,t,r){return(0,u.qh)(r)&&e>r?r:(0,u.qh)(t)&&e<t?t:e}function _(e,t,r){const{isScaleDriven:n}=e.cache;if(!(n&&"3d"===r||t))return null;const s={scale:t,view:r};let i=b(e.minSize,h,s),o=b(e.maxSize,h,s);if(null!=i||null!=o){if(i>o){const e=o;o=i,i=e}return{minSize:i,maxSize:o}}}function w(e,t){if(!t)return;let r=0,n=t.length-1;return t.some(((t,s)=>e<t?(n=s,!0):(r=s,!1))),[r,n,(e-t[r])/(t[n]-t[r])]}function C(e,t,r){const n=["proportional","proportional","proportional"];for(const s of e){const e=s.useSymbolValue?"symbol-value":g(s,t,r);switch(s.axis){case"width":n[0]=e;break;case"depth":n[1]=e;break;case"height":n[2]=e;break;case"width-and-depth":n[0]=e,n[1]=e;break;case"all":case void 0:case null:n[0]=e,n[1]=e,n[2]=e;break;default:(0,i.Bg)(s.axis)}}return n}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var n=r(68773),s=r(40330),i=r(20102),o=r(80442),a=r(22974),l=r(70586),u=r(95330),c=r(17452),h=r(71058),d=r(85958);async function p(e,t){var a;const d=(0,c.HK)(e),g=(0,c.jc)(e);g||d||(e=(0,c.Fv)(e));const b={url:e,requestOptions:{...(0,l.Wg)(t)}};let v=(0,c.oh)(e);if(v){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=x("request:interceptor",e,t)}if((n instanceof Error||n instanceof i.Z)&&(r=x("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(v,b);if(null!=e)return{data:e,getHeader:_,requestOptions:b.requestOptions,url:b.url};v.after||v.error||(v=null)}if(e=b.url,"image"===(t=b.requestOptions).responseType){if((0,o.Z)("host-webworker")||(0,o.Z)("host-node"))throw x("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),b)}else if(d)throw x("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),b);if("head"===t.method){if(t.body)throw x("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),b);if(d||g)throw x("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),b)}if(await async function(){(0,o.Z)("host-webworker")?f||(f=await Promise.all([r.e(102),r.e(9884)]).then(r.bind(r,29884))):p._abortableFetch||(p._abortableFetch=globalThis.fetch.bind(globalThis))}(),f)return f.execute(e,t);const w=new AbortController;(0,u.fu)(t,(()=>w.abort()));const C={controller:w,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:v,params:b,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},O=await async function(e){var t,r;let i,o;await async function(e){const t=e.params.url,r=e.params.requestOptions,i=e.controller.signal,o=r.body;let a=null,l=null,c=null;if(y&&"HTMLFormElement"in globalThis&&(o instanceof FormData?a=o:o instanceof HTMLFormElement&&(l=o,a=new FormData(l))),"string"==typeof o&&(c=o),e.fetchOptions={cache:r.cacheBust&&!p._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:i},(a||c)&&(e.fetchOptions.body=a||c),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query&&r.query.token||a&&a.get&&a.get("token")||l&&l.elements.token),!e.hasToken&&n.Z.apiKey&&(0,h.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!T(t)&&!(0,u.Hc)(i)){let n;"immediate"===r.authMode?(await E(),n=await s.id.getCredential(t,{signal:i}),e.credential=n):"no-prompt"===r.authMode?(await E(),n=await s.id.getCredential(t,{prompt:!1,signal:i}).catch((()=>{})),e.credential=n):s.id&&(n=s.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[i,o]=await S(e)}while(!await I(e,i,o))}catch(t){const r=x("request:server",t,e.params,i);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const a=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)&&!e.hasToken&&!e.credentialToken&&null!=(t=o)&&null!=(r=t.user)&&r.username&&!(0,c.kl)(a)){const e=(0,c.P$)(a,!0);e&&m.trustedServers.push(e)}const l=e.credential;if(l&&s.id){const e=s.id.findServerInfo(l.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=s.id.findCredential(t,l.userId);e&&-1===s.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:o,getHeader:i?e=>i.headers.get(e):_,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(C);return null==(a=v)||null==a.after||a.after(O),O}let f;const m=n.Z.request,y="FormData"in globalThis,g=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],v=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],_=()=>null,w=Symbol();function C(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||p._corsServers.includes(t)||(0,c.kl)(t)}function x(e,t,r,n){let s="Error";const o={url:r.url,requestOptions:r.requestOptions,getHeader:_,ssl:!1};if(t instanceof i.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,i=t.message;i&&(s=i),e&&(o.getHeader=e),o.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,o.subCode=t.subcode,o.messageCode=t.messageCode,"string"==typeof t.details?o.messages=[t.details]:o.messages=t.details,o.raw=w in t?t[w]:t}return(0,u.D_)(t)?(0,u.zE)():new i.Z(e,s,o)}async function E(){s.id||await Promise.all([r.e(280),r.e(2785),r.e(102),r.e(8536)]).then(r.bind(r,85976))}function T(e){return v.some((t=>t.test(e)))}async function S(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions,i=(0,c.jc)(t)||(0,c.HK)(t),a=r.responseType||"json",l=i?0:null!=r.timeout?r.timeout:m.timeout;let h=!1;if(!i){e.useSSL&&(t=(0,c.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let i={...r.query};e.credentialToken&&(i.token=e.credentialToken);let a=(0,c.B7)(i);(0,o.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let u;h="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>m.maxUrlLength;const d=r.useProxy||!!(0,c.ed)(t);if(d){const e=(0,c.b7)(t);u=e.path,!h&&u.length+1+l>m.maxUrlLength&&(h=!0),e.query&&(i={...e.query,...i})}if("HEAD"===n.method&&(h||d)){if(h){if(l>m.maxUrlLength)throw x("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw x("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw x("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(h?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,c.fl)(t,i):(n.body=(0,c.B7)(i),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,i),d&&(e.useProxy=!0,t=`${u}?${t}`),i.token&&y&&n.body instanceof FormData){const e=n.body;e.set?e.set("token",i.token):e.append("token",i.token)}if(r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(s.id){const r=s.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include")}let d,f,g=0,b=!1;l>0&&(g=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)f=n,f.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||h||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!i&&!e.useProxy&&m.proxyUrl&&!C(t)){if(d=await p._abortableFetch(t,n),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!p._corsServers.includes(t)&&p._corsServers.push(t)}(t),"native"===r.responseType)f=d;else if("HEAD"!==n.method)if(d.ok){switch(a){case"array-buffer":f=await d.arrayBuffer();break;case"blob":case"image":f=await d.blob();break;default:f=await d.text()}if(g&&(clearTimeout(g),g=0),"json"===a||"xml"===a||"document"===a)if(f)switch(a){case"json":f=JSON.parse(f);break;case"xml":f=O(f,"application/xml");break;case"document":f=O(f,"text/html")}else f=null;if(f){if("array-buffer"===a||"blob"===a){const e=d.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&f["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(f).json();e.error&&(f=e)}catch{}}"image"===a&&f instanceof Blob&&(f=await F(URL.createObjectURL(f),e,!0))}}else f=await d.text()}else f=await F(t,e)}catch(n){if("AbortError"===n.name){if(b)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!d&&n instanceof TypeError&&m.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||C(t))throw n;e.redoRequest=!0,(0,c.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,c.P$)(t)})}finally{g&&clearTimeout(g)}return[d,f]}function O(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function I(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let i,o,a,l;if(!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[w]=r,i;null!=r&&r.error&&(i=r.error),i&&(o=Number(i.code),a=i.hasOwnProperty("subcode")?Number(i.subcode):null,l=i.messageCode,l=l&&l.toUpperCase());const u=n.authMode;if(403===o&&(4===a||i.message&&i.message.toLowerCase().indexOf("ssl")>-1&&-1===i.message.toLowerCase().indexOf("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===o)&&-1!==g.indexOf(o)&&!T(e.params.url)&&(403!==o||-1===b.indexOf(l)&&(null==a||2===a&&e.credentialToken))){await E();try{const t=await s.id.getCredential(e.params.url,{error:x("request:server",i,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=null,e.credentialToken=null,!1;i=t}}if(i)throw i;return!0}function F(e,t,r=!1){const n=t.controller.signal,s=new Image;return t.withCredentials?s.crossOrigin="use-credentials":s.crossOrigin="anonymous",s.alt="",s.src=e,(0,d.f)(s,e,r,n)}p._abortableFetch=null,p._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n,s=r(43697),i=r(66577),o=r(1692),a=r(35454),l=r(96674),u=r(22974),c=r(70586),h=r(5600),d=(r(75215),r(71715)),p=r(52011),f=r(30556),m=r(82971),y=r(33955),g=r(1231);const b=new a.Xn({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=n=class extends l.wq{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){const r=m.Z.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],i=o.Z.fromJSON(s),a=s.geometry&&s.geometry.spatialReference;(0,c.pC)(i.geometry)&&!a&&(i.geometry.spatialReference=r),n.push(i)}return n}writeGeometryType(e,t,r,n){if(e)return void b.write(e,t,r,n);const{features:s}=this;if(s)for(const e of s)if(e&&(0,c.pC)(e.geometry))return void b.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,y.im)(e);return!r&&t.spatialReference&&(n.spatialReference=m.Z.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,c.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e&&e[r];n.geometry=t&&t.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,s]}=e,i=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=i.length;e<t;e++)o((0,c.Wg)(i[e].geometry))||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,s],scale:[i,o]}=r,a=this._getHydrationFunction(e,(e=>e*i+n),(e=>s-e*o));for(const{geometry:e}of t)(0,c.pC)(e)&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let n,s;const i=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===n&&o===s||(i.push([e-n,o-s]),n=e,s=o)}else n=t(a[0]),s=r(a[1]),i.push([n,s])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,y.oU)(e)?e.rings:e.paths,s=[];for(let e=0,i=n.length;e<i;e++){const i=n[e],o=this._quantizePoints(i,t,r);o&&s.push(o)}return s.length>0?((0,y.oU)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const n=(0,y.oU)(e)?e.rings:e.paths;let s,i;for(let e=0,o=n.length;e<o;e++){const o=n[e];for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],i+=n[1]):(s=n[0],i=n[1]),n[0]=t(s),n[1]=r(i)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const n=e.points;let s,i;for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(s+=o[0],i+=o[1]):(s=o[0],i=o[1]),o[0]=t(s),o[1]=r(i)}}:void 0}};(0,s._)([(0,h.Cb)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s._)([(0,h.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,h.Cb)({type:[o.Z],json:{write:!0}})],v.prototype,"features",void 0),(0,s._)([(0,d.r)("features")],v.prototype,"readFeatures",null),(0,s._)([(0,h.Cb)({type:[g.Z],json:{write:!0}})],v.prototype,"fields",void 0),(0,s._)([(0,h.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:b.read}}})],v.prototype,"geometryType",void 0),(0,s._)([(0,f.c)("geometryType")],v.prototype,"writeGeometryType",null),(0,s._)([(0,h.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s._)([(0,h.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s._)([(0,h.Cb)({types:i.qM,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s._)([(0,d.r)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s._)([(0,h.Cb)({type:m.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s._)([(0,f.c)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s._)([(0,h.Cb)({json:{write:!0}})],v.prototype,"transform",void 0),v=n=(0,s._)([(0,p.j)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v},71058:(e,t,r)=>{r.d(t,{r:()=>i});var n=r(17452);const s=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function i(e){const t=(0,n.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!s.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},59266:(e,t,r)=>{r.d(t,{mz:()=>c,pp:()=>u,WW:()=>a,Yi:()=>l,LC:()=>o}),r(66577);var n=r(70586),s=r(82971);let i;function o(){return i||(i=(async()=>{const e=await Promise.all([r.e(9490),r.e(6690)]).then(r.bind(r,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),i}const a=(e,t,r)=>c.create(e,t,r,null,["$feature"]),l=(e,t,r)=>c.create(e,t,r,null,["$feature","$view"]),u=(e,t,r,n)=>c.create(e,t,r,n,["$feature","$view"]);class c{constructor(e,t,r,n,s,i,o,a){this.script=e,this.evaluate=s;const l=Array.isArray(o)?o:o.fields;this.fields=l,this._syntaxTree=n,this._arcade=t,this._arcadeDictionary=r,this._arcadeFeature=i,this._spatialReference=a,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,r,i,a,l){const{arcade:u,Feature:h,Dictionary:d}=await o(),p=s.Z.fromJSON(t),f=u.parseScript(e,l),m=a.reduce(((e,t)=>({...e,[t]:null})),{});let y=null;(0,n.pC)(i)&&(y=new d(i),y.immutable=!0,m.$config=null);const g=u.scriptUsesGeometryEngine(f)&&u.enableGeometrySupport(),b=u.scriptUsesFeatureSet(f)&&u.enableFeatureSetSupport(),v=u.scriptIsAsync(f)&&u.enableAsyncSupport(),_={vars:m,spatialReference:p,useAsync:!!v},w=new d;w.immutable=!1,w.setField("scale",0);const C=u.compileScript(f,_);return await Promise.all([g,b,v]),new c(e,u,d,f,(e=>("$view"in e&&e.$view&&(w.setField("scale",e.$view.scale),e.$view=w),y&&(e.$config=y),C({vars:e,spatialReference:p}))),new h,r,p)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}},85958:(e,t,r)=>{r.d(t,{f:()=>o});var n=r(80442),s=r(70586),i=r(95330);function o(e,t,r=!1,o){return new Promise(((l,u)=>{if((0,i.Hc)(o))return void u(a());let c=()=>{p(),u(new Error(`Unable to load ${t}`))},h=()=>{const t=e;p(),l(t)},d=()=>{if(!e)return;const t=e;p(),t.src="",u(a())};const p=()=>{(0,n.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",h)),c=null,h=null,e=null,(0,s.pC)(o)&&o.removeEventListener("abort",d),d=null,r&&URL.revokeObjectURL(t)};(0,s.pC)(o)&&o.addEventListener("abort",d),(0,n.Z)("esri-image-decode")?e.decode().then(h,c):(e.addEventListener("error",c),e.addEventListener("load",h))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4547],{99880:(e,t,n)=>{n.d(t,{V:()=>P});var r=n(68773),o=(n(3172),n(20102)),_=n(92604),s=n(17452);const i=_.Z.getLogger("esri.assets");function P(e){if(!r.Z.assetsPath)throw i.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,s.v_)(r.Z.assetsPath,e)}},83305:(e,t,n)=>{n.d(t,{e:()=>l,f:()=>E,g:()=>u,h:()=>A,i:()=>i,j:()=>N,l:()=>P,p:()=>G});var r=n(99880),o=n(80442);let _,s=null;function i(){return!!s}function P(){return _||(_=n.e(6774).then(n.bind(n,66774)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,r.V)(`esri/geometry/support/${e}`)}))).then((e=>{T(e)})),_)}var u,E,l,c;!function(e){function t(e,t,n){s.ensureCache.prepare();const r=L(n),o=n===r,_=s.ensureFloat64(r),i=s._pe_geog_to_proj(s.getPointer(e),t,_);return i&&d(n,t,_,o),i}function n(e,t,n){return r(e,t,n,0)}function r(e,t,n,r){s.ensureCache.prepare();const o=L(n),_=n===o,i=s.ensureFloat64(o),P=s._pe_proj_to_geog_center(s.getPointer(e),t,i,r);return P&&d(n,t,i,_),P}e.geogToProj=t,e.projGeog=function(e,r,o,_){switch(_){case E.PE_TRANSFORM_P_TO_G:return n(e,r,o);case E.PE_TRANSFORM_G_TO_P:return t(e,r,o)}return 0},e.projToGeog=n,e.projToGeogCenter=r}(u||(u={})),(c=E||(E={})).init=function(){c.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,c.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,c.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,c.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,c.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,c.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,c.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,c.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,c.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,c.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,c.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,c.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,c.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,c.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,c.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,c.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,c.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,c.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,c.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,c.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,c.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,c.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,c.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,c.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,c.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,c.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,c.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,c.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,c.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,c.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const t={},n={},r=e=>{if(e){const t=e.getType();switch(t){case E.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case E.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case E.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:t&E.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}}return e};function o(e,n){let o=null,_=t[e];if(_||(_={},t[e]=_),_.hasOwnProperty(String(n)))o=_[n];else{const t=s.PeFactory.prototype.factoryByType(e,n);s.compare(t,s.NULL)||(o=t,_[n]=o)}return o=r(o),o}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return o(E.PE_TYPE_COORDSYS,e)},e.factoryByType=o,e.fromString=function(e,t){let o=null,_=n[e];if(_||(_={},n[e]=_),_.hasOwnProperty(t))o=_[t];else{const n=s.PeFactory.prototype.fromString(e,t);s.compare(n,s.NULL)||(o=n,_[t]=o)}return o=r(o),o},e.geogcs=function(e){return o(E.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return o(E.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return o(E.PE_TYPE_PROJCS,e)},e.unit=function(e){return o(E.PE_TYPE_UNIT,e)}}(l||(l={}));let a=null;var S,C,A,f,R,p,O,N,M;function T(e){function t(e,t,n){e[t]=n(e[t])}s=e,E.init(),S.init(),R.init(),O.init(),N.init(),a=class extends s.PeGCSExtent{destroy(){s.destroy(this)}};const n=[s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of n)t(e.prototype,"getName",(e=>function(){return e.call(this,new Array(E.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(E.PE_PARM_MAX);let n=e.call(this);for(let e=0;e<t.length;e++){const r=s.getValue(n,"*");t[e]=r?s.wrapPointer(r,s.PeParameter):null,n+=Int32Array.BYTES_PER_ELEMENT}return t}));t(s.PeHorizon.prototype,"getCoord",(e=>function(){const t=this.getSize();if(!t)return null;const n=[];return d(n,t,e.call(this)),n})),t(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=s._pe_getPeGTlistExtendedGTsSize();return function(){let n=null;const r=e.call(this);if(!s.compare(r,s.NULL)){n=[r];const e=this.getSteps();if(e>1){const o=s.getPointer(r);for(let r=1;r<e;r++)n.push(s.wrapPointer(o+t*r,s.PeGTlistExtendedGTs))}}return n}}));const r=s._pe_getPeHorizonSize(),o=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let n=null;const o=e.call(this);if(!s.compare(o,s.NULL)){n=[o];const e=o.getNump();if(e>1){const t=s.getPointer(o);for(let o=1;o<e;o++)n.push(s.wrapPointer(t+r*o,s.PeHorizon))}}return t.set(e,n),n};t(s.PeProjcs.prototype,"horizonGcsGenerate",o),t(s.PeProjcs.prototype,"horizonPcsGenerate",o),s.PeObject.prototype.toString=function(e=E.PE_STR_OPTS_NONE){s.ensureCache.prepare();const t=s.getPointer(this),n=s.ensureInt8(new Array(E.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(t,e,n))}}function g(e){if(!e)return;const t=s.getClass(e);if(!t)return;const n=s.getCache(t);if(!n)return;const r=s.getPointer(e);r&&delete n[r]}function h(e,t){const n=[],r=new Array(t);for(let t=0;t<e;t++)n.push(s.ensureInt8(r));return n}function L(e){let t;return Array.isArray(e[0])?(t=[],e.forEach((e=>{t.push(e[0],e[1])}))):t=e,t}function d(e,t,n,r=!1){if(r)for(let r=0;r<2*t;r++)e[r]=s.getValue(n+r*Float64Array.BYTES_PER_ELEMENT,"double");else{const r=0===e.length;for(let o=0;o<t;o++)r&&(e[o]=new Array(2)),e[o][0]=s.getValue(n,"double"),e[o][1]=s.getValue(n+Float64Array.BYTES_PER_ELEMENT,"double"),n+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,n,r,o,_,i){let P=null;const u=new s.PeInteger(i);try{const E=s.PeGTlistExtended.prototype.getGTlist(e,n,r,o,_,u);if((i=u.val)&&(P=[E],i>1)){const e=s.getPointer(E);for(let n=1;n<i;n++)P.push(s.wrapPointer(e+t*n,s.PeGTlistExtendedEntry))}}finally{s.destroy(u)}return P}}(S||(S={})),function(e){e.destroy=function(e){if(e&&e.length){for(const t of e)g(t),t.getEntries().forEach((e=>{g(e);const t=e.getGeogtran();g(t),t.getParameters().forEach(g),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{g(e);const t=e.getDatum();g(t),g(t.getSpheroid()),g(e.getPrimem()),g(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(C||(C={})),function(e){e.geogToGeog=function(e,t,n,r,o){s.ensureCache.prepare();const _=L(n),i=n===_,P=s.ensureFloat64(_);let u=0;r&&(u=s.ensureFloat64(r));const E=s._pe_geog_to_geog(s.getPointer(e),t,P,u,o);return E&&d(n,t,P,i),E}}(A||(A={})),function(e){const t=(e,t,n,r,o,_)=>{let i,P;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_geog_to_dd,P=E.PE_DD_MAX;break;case"ddm":i=s._pe_geog_to_ddm,P=E.PE_DDM_MAX;break;case"dms":i=s._pe_geog_to_dms,P=E.PE_DMS_MAX}let u=0;t&&(u=s.getPointer(t));const l=L(r),c=s.ensureFloat64(l),a=h(n,P),S=i(u,n,c,o,s.ensureInt32(a));if(S)for(let e=0;e<n;e++)_[e]=s.UTF8ToString(a[e]);return S},n=(e,t,n,r,o)=>{let _;switch(s.ensureCache.prepare(),e){case"dd":_=s._pe_dd_to_geog;break;case"ddm":_=s._pe_ddm_to_geog;break;case"dms":_=s._pe_dms_to_geog}let i=0;t&&(i=s.getPointer(t));const P=r.map((e=>s.ensureString(e))),u=s.ensureInt32(P),E=s.ensureFloat64(new Array(2*n)),l=_(i,n,u,E);return l&&d(o,n,E),l};e.geogToDms=function(e,n,r,o,_){return t("dms",e,n,r,o,_)},e.dmsToGeog=function(e,t,r,o){return n("dms",e,t,r,o)},e.geogToDdm=function(e,n,r,o,_){return t("ddm",e,n,r,o,_)},e.ddmToGeog=function(e,t,r,o){return n("ddm",e,t,r,o)},e.geogToDd=function(e,n,r,o,_){return t("dd",e,n,r,o,_)},e.ddToGeog=function(e,t,r,o){return n("dd",e,t,r,o)}}(f||(f={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,n,r,o,_,i){s.ensureCache.prepare();let P=0;e&&(P=s.getPointer(e));const u=L(n),l=s.ensureFloat64(u),c=h(t,E.PE_MGRS_MAX),a=s.ensureInt32(c),S=s._pe_geog_to_mgrs_extended(P,t,l,r,o,_,a);if(S)for(let e=0;e<t;e++)i[e]=s.UTF8ToString(c[e]);return S},e.mgrsToGeogExtended=function(e,t,n,r,o){s.ensureCache.prepare();let _=0;e&&(_=s.getPointer(e));const i=n.map((e=>s.ensureString(e))),P=s.ensureInt32(i),u=s.ensureFloat64(new Array(2*t)),E=s._pe_mgrs_to_geog_extended(_,t,P,r,u);return E&&d(o,t,u),E}}(R||(R={})),function(e){e.geogToUsng=function(e,t,n,r,o,_,i){s.ensureCache.prepare();let P=0;e&&(P=s.getPointer(e));const u=L(n),l=s.ensureFloat64(u),c=h(t,E.PE_MGRS_MAX),a=s.ensureInt32(c),S=s._pe_geog_to_usng(P,t,l,r,o,_,a);if(S)for(let e=0;e<t;e++)i[e]=s.UTF8ToString(c[e]);return S},e.usngToGeog=function(e,t,n,r){s.ensureCache.prepare();let o=0;e&&(o=s.getPointer(e));const _=n.map((e=>s.ensureString(e))),i=s.ensureInt32(_),P=s.ensureFloat64(new Array(2*t)),u=s._pe_usng_to_geog(o,t,i,P);return u&&d(r,t,P),u}}(p||(p={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,n,r,o){s.ensureCache.prepare();let _=0;e&&(_=s.getPointer(e));const i=L(n),P=s.ensureFloat64(i),u=h(t,E.PE_UTM_MAX),l=s.ensureInt32(u),c=s._pe_geog_to_utm(_,t,P,r,l);if(c)for(let e=0;e<t;e++)o[e]=s.UTF8ToString(u[e]);return c},e.utmToGeog=function(e,t,n,r,o){s.ensureCache.prepare();let _=0;e&&(_=s.getPointer(e));const i=n.map((e=>s.ensureString(e))),P=s.ensureInt32(i),u=s.ensureFloat64(new Array(2*t)),E=s._pe_utm_to_geog(_,t,P,r,u);return E&&d(o,t,u),E}}(O||(O={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(n,r=e.PE_PCSINFO_OPTION_DOMAIN){let o,_;return t.has(n)&&(_=t.get(n),_[r]&&(o=_[r])),o||(o=s.PePCSInfo.prototype.generate(n,r),_||(_=[],t.set(n,_)),_[r]=o),o}}(N||(N={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(M||(M={}));const G=Object.freeze({__proto__:null,get _pe(){return s},isLoaded:i,isSupported:function(){return!!(0,o.Z)("esri-wasm")},load:P,get PeCSTransformations(){return u},get PeDefs(){return E},get PeFactory(){return l},get PeGCSExtent(){return a},get PeGTlistExtended(){return S},get PeGTlistExtendedEntry(){return C},get PeGTTransformations(){return A},get PeNotationDms(){return f},get PeNotationMgrs(){return R},get PeNotationUsng(){return p},get PeNotationUtm(){return O},get PePCSInfo(){return N},get PeVersion(){return M},_init:T})},44547:(e,t,n)=>{n.d(t,{Up:()=>w,Bm:()=>Z,iQ:()=>U,kR:()=>G,zD:()=>I,iV:()=>y,CM:()=>B,oj:()=>F,KC:()=>k,Wt:()=>D});var r=n(20102),o=n(22021),_=n(70586),s=n(95330),i=n(67900),P=n(52138),u=(n(17896),n(65617)),E=n(6570),l=n(65091),c=n(83305),a=n(13473),S=n(17332),C=n(58901),A=n(24678),f=(n(24470),n(68441));Math.PI;const R=f.sv.radius,p=f.sv.eccentricitySquared,O={a1:R*p,a2:R*p*R*p,a3:R*p*p/2,a4:R*p*R*p*2.5,a5:R*p+R*p*p/2,a6:1-p};f.sv.radius,f.sv.flattening,f.Z1.radius,f.Z1.flattening,f.yr.radius,f.yr.flattening,f.yr.radius;var N=n(18571),M=n(8744),T=n(56726);n(69285);let g=null,h=null,L=null,d={};function G(){return!!g&&(0,c.i)()}function I(e){return(0,_.Wi)(L)&&(L=Promise.all([(0,c.l)(),n.e(5837).then(n.bind(n,45837)).then((e=>e.g)),n.e(819).then(n.bind(n,80819))])),L.then((([,t,{hydratedAdapter:n}])=>{(0,s.k_)(e),h=n,g=t.default,g._enableProjection(c.p)}))}function y(e,t,n=null){return Array.isArray(e)?0===e.length?[]:F(h,e,e[0].spatialReference,t,n):F(h,[e],e.spatialReference,t,n)[0]}function F(e,t,n,r,o=null){if((0,_.Wi)(n)||(0,_.Wi)(r))return t;if(w(n,r,o))return t.map((e=>(0,_.Wg)(function(e,t,n){return e?"x"in e?function(e,t,n,r,o){Oe[0]=e.x,Oe[1]=e.y;const _=e.z;return Oe[2]=void 0!==_?_:o,B(Oe,t,0,Oe,r,0,1)?(n.x=Oe[0],n.y=Oe[1],n.spatialReference=r,void 0===_?(n.z=void 0,n.hasZ=!1):(n.z=Oe[2],n.hasZ=!0),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}(e,t,new a.Z,n,0):"xmin"in e?function(e,t,n,r,o){const{xmin:_,ymin:s,xmax:i,ymax:P,hasZ:u,hasM:E}=e;return v(_,s,u?e.zmin:o,t,Oe,r)?(n.xmin=Oe[0],n.ymin=Oe[1],u&&(n.zmin=Oe[2]),v(i,P,u?e.zmax:o,t,Oe,r)?(n.xmax=Oe[0],n.ymax=Oe[1],u&&(n.zmax=Oe[2]),E&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null):null}(e,t,new E.Z,n,0):"rings"in e?H(e,t,new S.Z,n,0):"paths"in e?function(e,t,n,r,o){const{paths:_,hasZ:s,hasM:i}=e,P=[];return Y(_,s,i,t,P,r,o)?(n.paths=P,n.spatialReference=r,n.hasZ=s,n.hasM=i,n):null}(e,t,new C.Z,n,0):"points"in e?function(e,t,n,r,o){const{points:_,hasZ:s,hasM:i}=e,P=[],u=_.length,E=[];for(const e of _)E.push(e[0],e[1],s?e[2]:o);if(!B(E,t,0,E,r,0,u))return null;for(let e=0;e<u;++e){const t=3*e,n=E[t],r=E[t+1];s&&i?P.push([n,r,E[t+2],_[e][3]]):s?P.push([n,r,E[t+2]]):i?P.push([n,r,_[e][2]]):P.push([n,r])}return n.points=P,n.spatialReference=r,n.hasZ=s,n.hasM=i,n}(e,t,new l.Z,n,0):null:null}(e,n,r))));if((0,_.Wi)(o)){const e=N.Z.cacheKey(n,r);void 0!==d[e]?o=d[e]:(o=function(e,t,n=null){if((0,_.Wi)(g))throw new W;if((0,_.Wi)(e)||(0,_.Wi)(t))return null;const r=g._getTransformation(h,e,t,n,null==n?void 0:n.spatialReference);return null!==r?N.Z.fromGE(r):null}(n,r,null),(0,_.Wi)(o)&&(o=new N.Z),d[e]=o)}if((0,_.Wi)(g))throw new W;return g._project(e,t,n,r,o)}class W extends r.Z{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}var m;function w(e,t,n){return!n&&(!!(0,M.fS)(e,t)||(0,M.JY)(e)&&(0,M.JY)(t)&&!!Ee(e,t,Se))}async function U(e,t,n,r){if(!G())if(Array.isArray(e)){for(const{source:t,dest:n,geographicTransformation:o}of e)if(!w(t,n,o))return I(r)}else if(!w(e,t,n))return I(r)}function D(e,t,n=t.spatialReference,r=0){return(0,_.pC)(n)&&(0,_.pC)(H(e,e.spatialReference,t,n,r))}function H(e,t,n,r,o){const{rings:_,hasZ:s,hasM:i}=e,P=[];return Y(_,s,i,t,P,r,o)?(n.rings=P,n.spatialReference=r,n.hasZ=s,n.hasM=i,n):null}function k(e,t,n,r=0){Oe[0]=e.x,Oe[1]=e.y;const o=e.z;return Oe[2]=void 0!==o?o:r,B(Oe,e.spatialReference,0,t,n,0,1)}function v(e,t,n,r,o,_){return fe[0]=e,fe[1]=t,fe[2]=n,B(fe,r,0,o,_,0,1)}function B(e,t,n,r,o,s,i=1){const P=Ee(t,o,Se);if((0,_.Wi)(P))return!1;if(P===X){if(e===r&&n===s)return!0;const t=n+3*i;for(let o=n,_=s;o<t;o++,_++)r[_]=e[o];return!0}const u=n+3*i;for(let t=n,o=s;t<u;t+=3,o+=3)P(e,t,r,o);return!0}function Y(e,t,n,r,o,_,s=0){const i=new Array;for(const n of e)for(const e of n)i.push(e[0],e[1],t?e[2]:s);if(!B(i,r,0,i,_,0,i.length/3))return!1;let P=0;o.length=0;for(const r of e){const e=new Array;for(const o of r)t&&n?e.push([i[P++],i[P++],i[P++],o[3]]):t?e.push([i[P++],i[P++],i[P++]]):n?(e.push([i[P++],i[P++],o[2]]),P++):(e.push([i[P++],i[P++]]),P++);o.push(e)}return!0}function Z(e,t,n,r){if((0,_.Wi)(e)||(0,_.Wi)(r))return!1;const o=K(e,ce),s=K(r,ae);if(o===s&&!j(s)&&(o!==m.UNKNOWN||(0,M.fS)(e,r)))return(0,P.f)(n,t),!0;if(j(s)){const e=ue[o][m.LON_LAT],r=ue[m.LON_LAT][s];return!(0,_.Wi)(e)&&!(0,_.Wi)(r)&&(e(t,0,Re,0),r(Re,0,pe,0),x(Ce*Re[0],Ce*Re[1],n),n[12]=pe[0],n[13]=pe[1],n[14]=pe[2],!0)}if(!(s!==m.WEB_MERCATOR&&s!==m.PLATE_CARREE||o!==m.WGS84&&o!==m.SPHERICAL_ECEF&&o!==m.WEB_MERCATOR)){const e=ue[o][m.LON_LAT],r=ue[m.LON_LAT][s];return!(0,_.Wi)(e)&&!(0,_.Wi)(r)&&(e(t,0,Re,0),r(Re,0,pe,0),o===m.SPHERICAL_ECEF?function(e,t,n){x(e,t,n),(0,P.t)(n,n)}(Ce*Re[0],Ce*Re[1],n):(0,P.i)(n),n[12]=pe[0],n[13]=pe[1],n[14]=pe[2],!0)}return!1}function j(e){return e===m.SPHERICAL_ECEF||e===m.SPHERICAL_MARS_PCPF||e===m.SPHERICAL_MOON_PCPF}function x(e,t,n){const r=Math.sin(e),o=Math.cos(e),_=Math.sin(t),s=Math.cos(t),i=n;return i[0]=-r,i[4]=-_*o,i[8]=s*o,i[12]=0,i[1]=o,i[5]=-_*r,i[9]=s*r,i[13]=0,i[2]=0,i[6]=s,i[10]=_,i[14]=0,i[3]=0,i[7]=0,i[11]=0,i[15]=1,i}function K(e,t){return t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.c9)(e,1)),e.wkt===A.GG.wkt?t.spatialReferenceId=m.SPHERICAL_ECEF:(0,M.oR)(e)?t.spatialReferenceId=m.WGS84:(0,M.sS)(e)?t.spatialReferenceId=m.WEB_MERCATOR:(0,M.QM)(e)?t.spatialReferenceId=m.PLATE_CARREE:e.wkt===A.wY.wkt?t.spatialReferenceId=m.WGS84_ECEF:e.wkid===T.W.CGCS2000?t.spatialReferenceId=m.CGCS2000:e.wkt===A.HQ.wkt?t.spatialReferenceId=m.SPHERICAL_MARS_PCPF:e.wkt===A.VY.wkt?t.spatialReferenceId=m.SPHERICAL_MOON_PCPF:(0,M.BZ)(e)?t.spatialReferenceId=m.GCSMARS2000:(0,M.V2)(e)?t.spatialReferenceId=m.GCSMOON2000:t.spatialReferenceId=m.UNKNOWN)}function X(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function b(e,t,n,r){n[r++]=Ae*(e[t++]/f.sv.radius),n[r++]=Ae*(Math.PI/2-2*Math.atan(Math.exp(-e[t++]/f.sv.radius))),n[r]=e[t]}function z(e,t,n,r){!function(e,t,n,r,_){const s=.4999999*Math.PI,i=(0,o.uZ)(Ce*e[t+1],-s,s),P=Math.sin(i);n[r++]=Ce*e[t]*_.radius,n[r++]=_.halfSemiMajorAxis*Math.log((1+P)/(1-P)),n[r]=e[t+2]}(e,t,n,r,f.sv)}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",e[e.WGS84=2]="WGS84",e[e.WEB_MERCATOR=3]="WEB_MERCATOR",e[e.WGS84_ECEF=4]="WGS84_ECEF",e[e.CGCS2000=5]="CGCS2000",e[e.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",e[e.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",e[e.GCSMARS2000=8]="GCSMARS2000",e[e.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",e[e.GCSMOON2000=10]="GCSMOON2000",e[e.LON_LAT=11]="LON_LAT",e[e.PLATE_CARREE=12]="PLATE_CARREE"}(m||(m={}));const V=f.sv.radius*Math.PI/180,q=180/(f.sv.radius*Math.PI);function J(e,t,n,r){n[r]=e[t]*V,n[r+1]=e[t+1]*V,n[r+2]=e[t+2]}function Q(e,t,n,r){n[r]=e[t]*q,n[r+1]=e[t+1]*q,n[r+2]=e[t+2]}function $(e,t,n,r,o){const _=o+e[t+2],s=Ce*e[t+1],i=Ce*e[t],P=Math.cos(s);n[r++]=Math.cos(i)*P*_,n[r++]=Math.sin(i)*P*_,n[r]=Math.sin(s)*_}function ee(e,t,n,r){$(e,t,n,r,f.Z1.radius)}function te(e,t,n,r){$(e,t,n,r,f.yr.radius)}function ne(e,t,n,r){$(e,t,n,r,f.sv.radius)}function re(e,t,n,r,_){const s=e[t],i=e[t+1],P=e[t+2],u=Math.sqrt(s*s+i*i+P*P),E=(0,o.Kt)(P/(0===u?1:u)),l=Math.atan2(i,s);n[r++]=Ae*l,n[r++]=Ae*E,n[r]=u-_}function oe(e,t,n,r){re(e,t,n,r,f.Z1.radius)}function _e(e,t,n,r){re(e,t,n,r,f.yr.radius)}function se(e,t,n,r){re(e,t,n,r,f.sv.radius)}function ie(e,t,n,r){!function(e,t,n,r,o){const _=Ce*e[t],s=Ce*e[t+1],i=e[t+2],P=Math.sin(s),u=Math.cos(s),E=o.radius/Math.sqrt(1-o.eccentricitySquared*P*P);n[r++]=(E+i)*u*Math.cos(_),n[r++]=(E+i)*u*Math.sin(_),n[r++]=(E*(1-o.eccentricitySquared)+i)*P}(e,t,n,r,f.sv)}function Pe(e,t,n,r){const o=O,_=e[t],s=e[t+1],i=e[t+2];let P,u,E,l,c,a,S,C,A,R,p,N,M,T,g,h,L,d,G,I,y;P=Math.abs(i),u=_*_+s*s,E=Math.sqrt(u),l=u+i*i,c=Math.sqrt(l),I=Math.atan2(s,_),a=i*i/l,S=u/l,T=o.a2/c,g=o.a3-o.a4/c,S>.3?(C=P/c*(1+S*(o.a1+T+a*g)/c),G=Math.asin(C),R=C*C,A=Math.sqrt(1-R)):(A=E/c*(1-a*(o.a5-T-S*g)/c),G=Math.acos(A),R=1-A*A,C=Math.sqrt(R)),p=1-f.sv.eccentricitySquared*R,N=f.sv.radius/Math.sqrt(p),M=o.a6*N,T=E-N*A,g=P-M*C,L=A*T+C*g,h=A*g-C*T,d=h/(M/p+L),G+=d,y=L+h*d/2,i<0&&(G=-G),n[r++]=Ae*I,n[r++]=Ae*G,n[r]=y}const ue={[m.WGS84]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:X,[m.SPHERICAL_ECEF]:ne,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:z,[m.PLATE_CARREE]:J,[m.WGS84]:X,[m.WGS84_ECEF]:ie},[m.CGCS2000]:{[m.CGCS2000]:X,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:X,[m.SPHERICAL_ECEF]:ne,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:J,[m.WGS84]:null,[m.WGS84_ECEF]:ie},[m.GCSMARS2000]:{[m.CGCS2000]:null,[m.GCSMARS2000]:X,[m.GCSMOON2000]:null,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:null,[m.SPHERICAL_ECEF]:null,[m.SPHERICAL_MARS_PCPF]:te,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:null,[m.WGS84]:null,[m.WGS84_ECEF]:null},[m.GCSMOON2000]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:X,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:null,[m.SPHERICAL_ECEF]:null,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:ee,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:null,[m.WGS84]:null,[m.WGS84_ECEF]:null},[m.WEB_MERCATOR]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:b,[m.WGS84_COMPARABLE_LON_LAT]:b,[m.SPHERICAL_ECEF]:function(e,t,n,r){b(e,t,n,r),ne(n,r,n,r)},[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:X,[m.PLATE_CARREE]:function(e,t,n,r){b(e,t,n,r),J(n,r,n,r)},[m.WGS84]:b,[m.WGS84_ECEF]:function(e,t,n,r){b(e,t,n,r),ie(n,r,n,r)}},[m.WGS84_ECEF]:{[m.CGCS2000]:Pe,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:Pe,[m.WGS84_COMPARABLE_LON_LAT]:Pe,[m.SPHERICAL_ECEF]:function(e,t,n,r){Pe(e,t,n,r),ne(n,r,n,r)},[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:function(e,t,n,r){Pe(e,t,n,r),z(n,r,n,r)},[m.PLATE_CARREE]:function(e,t,n,r){Pe(e,t,n,r),J(n,r,n,r)},[m.WGS84]:Pe,[m.WGS84_ECEF]:X},[m.SPHERICAL_ECEF]:{[m.CGCS2000]:se,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:se,[m.WGS84_COMPARABLE_LON_LAT]:se,[m.SPHERICAL_ECEF]:X,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:function(e,t,n,r){se(e,t,n,r),z(n,r,n,r)},[m.PLATE_CARREE]:function(e,t,n,r){se(e,t,n,r),J(n,r,n,r)},[m.WGS84]:se,[m.WGS84_ECEF]:function(e,t,n,r){se(e,t,n,r),ie(n,r,n,r)}},[m.SPHERICAL_MARS_PCPF]:{[m.CGCS2000]:null,[m.GCSMARS2000]:_e,[m.GCSMOON2000]:null,[m.LON_LAT]:_e,[m.WGS84_COMPARABLE_LON_LAT]:null,[m.SPHERICAL_ECEF]:null,[m.SPHERICAL_MARS_PCPF]:X,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:null,[m.WGS84]:null,[m.WGS84_ECEF]:null},[m.SPHERICAL_MOON_PCPF]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:oe,[m.LON_LAT]:oe,[m.WGS84_COMPARABLE_LON_LAT]:null,[m.SPHERICAL_ECEF]:null,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:X,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:null,[m.WGS84]:null,[m.WGS84_ECEF]:null},[m.UNKNOWN]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:null,[m.WGS84_COMPARABLE_LON_LAT]:null,[m.SPHERICAL_ECEF]:null,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:X,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:null,[m.WGS84]:null,[m.WGS84_ECEF]:null},[m.LON_LAT]:{[m.CGCS2000]:X,[m.GCSMARS2000]:X,[m.GCSMOON2000]:X,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:X,[m.SPHERICAL_ECEF]:ne,[m.SPHERICAL_MARS_PCPF]:te,[m.SPHERICAL_MOON_PCPF]:ee,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:z,[m.PLATE_CARREE]:J,[m.WGS84]:X,[m.WGS84_ECEF]:ie},[m.WGS84_COMPARABLE_LON_LAT]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:X,[m.SPHERICAL_ECEF]:ne,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:J,[m.WGS84]:X,[m.WGS84_ECEF]:ie},[m.PLATE_CARREE]:{[m.CGCS2000]:Q,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:Q,[m.WGS84_COMPARABLE_LON_LAT]:Q,[m.SPHERICAL_ECEF]:function(e,t,n,r){Q(e,t,n,r),ne(n,r,n,r)},[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:function(e,t,n,r){Q(e,t,n,r),z(n,r,n,r)},[m.PLATE_CARREE]:X,[m.WGS84]:Q,[m.WGS84_ECEF]:function(e,t,n,r){Q(e,t,n,r),ie(n,r,n,r)}}};function Ee(e,t,n=le()){return(0,_.Wi)(e)||(0,_.Wi)(t)?null:function(e,t,n){if((0,_.Wi)(e)||(0,_.Wi)(t)||n.source.spatialReference===e&&n.dest.spatialReference===t)return n;const r=K(e,n.source),o=K(t,n.dest);return r===m.UNKNOWN&&o===m.UNKNOWN?(0,M.fS)(e,t)?n.projector=X:n.projector=null:n.projector=ue[r][o],n}(e,t,n).projector}function le(){return{source:{spatialReference:null,spatialReferenceId:m.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:m.UNKNOWN,metersPerUnit:1},projector:X}}const ce={spatialReference:null,spatialReferenceId:m.UNKNOWN},ae={spatialReference:null,spatialReferenceId:m.UNKNOWN},Se=le(),Ce=(le(),(0,o.Vl)(1)),Ae=(0,o.BV)(1),fe=(0,u.c)(),Re=(0,u.c)(),pe=(0,u.c)(),Oe=(0,u.c)();(0,u.c)()},18571:(e,t,n)=>{n.d(t,{Z:()=>_});let r=0;class o{constructor(e=null){this.uid=r++,e?(this._wkt=void 0!==e.wkt?e.wkt:null,this._wkid=void 0!==e.wkid?e.wkid:-1,this._isInverse=void 0!==e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}static fromGE(e){const t=new o;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=r++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=r++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=r++}getInverse(){const e=new o;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class _{constructor(e){if(this.steps=[],this._cached_projection={},this._chain="",this._gtlistentry=null,e&&e.steps)for(const t of e.steps)t instanceof o?this.steps.push(t):this.steps.push(new o({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}static cacheKey(e,t){return[void 0!==e.wkid&&null!==e.wkid?e.wkid.toString():"-1",void 0!==e.wkt&&null!==e.wkt?e.wkt.toString():"",void 0!==t.wkid&&null!==t.wkid?t.wkid.toString():"-1",void 0!==t.wkt&&null!==t.wkt?t.wkt.toString():""].join(",")}static fromGE(e){const t=new _;let n="";for(const r of e.steps){const e=o.fromGE(r);t.steps.push(e),n+=e.uid.toString()+","}return t._cached_projection={},t._gtlistentry=null,t._chain=n,t}getInverse(){const e=new _;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cached_projection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,n){this._cached_projection[_.cacheKey(e,t)]=n}getCachedGeTransformation(e,t){let n="";for(const e of this.steps)n+=e.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cached_projection={},this._chain=n);const r=this._cached_projection[_.cacheKey(e,t)];return void 0===r?null:r}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5410],{92835:(e,t,r)=>{r.d(t,{Z:()=>E});var i,s=r(43697),n=r(96674),o=r(70586),a=r(35463),l=r(5600),_=(r(67676),r(80442),r(75215),r(71715)),u=r(52011),d=r(30556);let c=i=class extends n.wq{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return p}static get empty(){return h}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,o.pC)(this.start)?this.start.getTime():this.start,r=(0,o.pC)(this.end)?this.end.getTime():this.end,i=(0,o.pC)(e.start)?e.start.getTime():e.start,s=(0,o.pC)(e.end)?e.end.getTime():e.end;return t===i&&r===s}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,o.Po)(this.start,(t=>(0,a.JE)(t,e))),r=(0,o.Po)(this.end,(t=>(0,a.Nm)((0,a.JE)(t,e),1,e)));return new i({start:t,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,o.R2)(this.start,-1/0,(e=>e.getTime())),r=(0,o.R2)(this.end,1/0,(e=>e.getTime())),s=(0,o.R2)(e.start,-1/0,(e=>e.getTime())),n=(0,o.R2)(e.end,1/0,(e=>e.getTime()));let a,l;if(s>=t&&s<=r?a=s:t>=s&&t<=n&&(a=t),r>=s&&r<=n?l=r:n>=t&&n<=r&&(l=n),!isNaN(a)&&!isNaN(l)){const e=new i;return e.start=a===-1/0?null:new Date(a),e.end=l===1/0?null:new Date(l),e}return i.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const r=new i,{start:s,end:n}=this;return(0,o.pC)(s)&&(r.start=(0,a.Nm)(s,e,t)),(0,o.pC)(n)&&(r.end=(0,a.Nm)(n,e,t)),r}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=(0,o.pC)(this.start)&&(0,o.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=(0,o.pC)(this.end)&&(0,o.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,s._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,s._)([(0,_.r)("end")],c.prototype,"readEnd",null),(0,s._)([(0,d.c)("end")],c.prototype,"writeEnd",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,s._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,s._)([(0,_.r)("start")],c.prototype,"readStart",null),(0,s._)([(0,d.c)("start")],c.prototype,"writeStart",null),c=i=(0,s._)([(0,u.j)("esri.TimeExtent")],c);const p=new c,h=new c({start:void 0,end:void 0}),E=c},99880:(e,t,r)=>{r.d(t,{V:()=>l});var i=r(68773),s=(r(3172),r(20102)),n=r(92604),o=r(17452);const a=n.Z.getLogger("esri.assets");function l(e){if(!i.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new s.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(i.Z.assetsPath,e)}},25929:(e,t,r)=>{r.d(t,{M:()=>p,f:()=>n,i:()=>d,p:()=>E,r:()=>a,t:()=>o,w:()=>l});var i=r(70586),s=r(17452);function n(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,s.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,s.PF)(e,t.portalItem.itemUrl);u.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return c(e,t&&t.portal)}function o(e,t,r=p.YES){if(!e)return e;!(0,s.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let i=(0,s.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const n=c(r,t.portal);i=(0,s.PF)(c(i,t.portal),n,n),i!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(i)}}return i=function(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,s.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}(i,t&&t.portal),(0,s.YP)(i)&&(i=(0,s.Fv)(i)),null!=t&&t.resources&&null!=t&&t.portalItem&&!(0,s.YP)(i)&&!(0,s.HK)(i)&&r===p.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(i)}),i}function a(e,t,r){return n(e,r)}function l(e,t,r,i){const s=o(e,i);void 0!==s&&(t[r]=s)}const _=/\/items\/([^\/]+)\/resources\//,u=/^\.\/resources\//;function d(e){const t=(0,i.pC)(e)?e.match(_):null;return(0,i.pC)(t)?t[1]:null}function c(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,i=(0,s.TI)();return(0,s.D6)(i,`${i.scheme}://${r}`)?(0,s.Ie)(e,t.portalHostname,r):(0,s.Ie)(e,r,t.portalHostname)}var p,h;(h=p||(p={}))[h.YES=0]="YES",h[h.NO=1]="NO";const E=Object.freeze({__proto__:null,fromJSON:n,toJSON:o,read:a,write:l,itemIdFromResourceUrl:d,get MarkKeep(){return p}})},10699:(e,t,r)=>{r.d(t,{I:()=>o});var i=r(43697),s=r(52011);let n=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,s.j)("esri.core.Identifiable")],t),t};let a=class extends(o(class{})){};a=(0,i._)([(0,s.j)("esri.core.Identifiable")],a)},16453:(e,t,r)=>{r.d(t,{R:()=>S,w:()=>A});var i=r(43697),s=r(15923),n=r(70586),o=r(41103),a=r(22974),l=r(31263);class _{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new _,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,a.d9)(e),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,a.d9)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=l.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||(0,n.j0)(this._propertyOriginMap.get(e))<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=l.s3.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r&&r.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var u=r(50549),d=r(1153),c=r(52011);const p=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,n.j0)((0,d.vw)(this)),r=t.store,i=new _;t.store=i,(0,o.M)(t,r,i)}read(e,t){(0,u.i)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,l.M9)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,l.M9)(t),s=(0,d.vw)(this);let n;n="string"==typeof e?"*"===e?r.keys(i):[e]:e,n.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,c.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,d.vw)(e).store}let E=class extends(p(s.Z)){};E=(0,i._)([(0,c.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],E);var y=r(76169);const T=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return R(this).delete(e,(0,l.M9)(t))}write(e={},t){return(0,y.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,d.vw)(this).setAtOrigin(e,t,(0,l.M9)(r))}removeOrigin(e){const t=R(this),r=(0,l.M9)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),l.s3.USER)}updateOrigin(e,t){const r=R(this),i=(0,l.M9)(t),s=this.get(e);for(let t=i+1;t<l.kk;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,c.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function R(e){return(0,d.vw)(e).store}const S=e=>{let t=class extends(T(p(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,c.j)("esri.core.MultiOriginJSONSupport")],t),t};let A=class extends(S(s.Z)){};A=(0,i._)([(0,c.j)("esri.core.MultiOriginJSONSupport")],A)},70921:(e,t,r)=>{r.d(t,{R:()=>n,Z:()=>s});var i=r(80539);function s(e,t,r=i.Z){return t||(t=new r),t===e||(t.removeAll(),(s=e)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?t.addMany(e):e&&t.add(e)),t;var s}function n(e){return e}},35463:(e,t,r)=>{r.d(t,{rJ:()=>a,Nm:()=>n,JE:()=>o}),r(80442);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},s={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function n(e,t,r){const i=new Date(e.getTime());if(t&&r){const e=s[r],{getter:n,setter:o,multiplier:a}=e;if("months"===r){const e=function(e,t){const r=new Date(e,t+1,1);return r.setDate(0),r.getDate()}(i.getFullYear(),i.getMonth()+t);i.getDate()>e&&i.setDate(e)}i[o](i[n]()+t*a)}return i}function o(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function a(e,t,r){return 0===e?0:e*i[t]/i[r]}},79235:(e,t,r)=>{r.d(t,{Z:()=>S});var i,s=r(43697),n=r(67676),o=r(35454),a=r(96674),l=r(67900),_=r(20941),u=r(5600),d=(r(80442),r(75215),r(71715)),c=r(52011),p=r(30556);const h=(0,o.wY)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),E=h.jsonValues.slice();(0,n.e$)(E,"orthometric");const y=(0,o.wY)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let T=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new _.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return y.read(e)||(r&&r.messages&&r.messages.push(R(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||y.read(e)||(r&&r.messages&&r.messages.push(R(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function R(e,t){return new _.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,u.Cb)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:E,default:"ellipsoidal"}}}})],T.prototype,"heightModel",void 0),(0,s._)([(0,p.c)("web-scene","heightModel")],T.prototype,"writeHeightModel",null),(0,s._)([(0,d.r)(["web-scene","service"],"heightModel")],T.prototype,"readHeightModel",null),(0,s._)([(0,u.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y.jsonValues,write:y.write}}}})],T.prototype,"heightUnit",void 0),(0,s._)([(0,d.r)("web-scene","heightUnit")],T.prototype,"readHeightUnit",null),(0,s._)([(0,d.r)("service","heightUnit")],T.prototype,"readHeightUnitService",null),(0,s._)([(0,u.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],T.prototype,"vertCRS",void 0),(0,s._)([(0,d.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],T.prototype,"readVertCRS",null),T=i=(0,s._)([(0,c.j)("esri.geometry.HeightModelInfo")],T);const S=T},29600:(e,t,r)=>{r.d(t,{Z:()=>A});var i=r(43697),s=r(68773),n=(r(66577),r(3172)),o=r(20102),a=r(32448),l=r(10699),_=r(83379),u=r(92604),d=r(95330),c=r(17452),p=r(5600),h=(r(67676),r(80442),r(75215),r(52011)),E=r(6570),y=r(82971);let T=0;const R=u.Z.getLogger("esri.layers.Layer");let S=class extends(a.Z.EventedMixin((0,l.I)(_.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new E.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+T++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,i=await r.e(3529).then(r.bind(r,63529));try{return await i.fromUrl(t)}catch(e){throw R.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},i=await r.e(4579).then(r.bind(r,44579));try{return await i.fromItem(t)}catch(e){const r=t&&t.portalItem,i=r&&r.id||"unset",n=r&&r.portal&&r.portal.url||s.Z.portalUrl;throw R.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,d.D_)(e)||u.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,c.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,p.Cb)({type:String})],S.prototype,"attributionDataUrl",void 0),(0,i._)([(0,p.Cb)({type:E.Z})],S.prototype,"fullExtent",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],S.prototype,"hasAttributionData",null),(0,i._)([(0,p.Cb)({type:String})],S.prototype,"id",void 0),(0,i._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],S.prototype,"legendEnabled",void 0),(0,i._)([(0,p.Cb)({type:["show","hide","hide-children"]})],S.prototype,"listMode",void 0),(0,i._)([(0,p.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],S.prototype,"opacity",void 0),(0,i._)([(0,p.Cb)()],S.prototype,"parent",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],S.prototype,"parsedUrl",null),(0,i._)([(0,p.Cb)({type:Boolean})],S.prototype,"popupEnabled",void 0),(0,i._)([(0,p.Cb)({type:Boolean})],S.prototype,"attributionVisible",void 0),(0,i._)([(0,p.Cb)({type:y.Z})],S.prototype,"spatialReference",void 0),(0,i._)([(0,p.Cb)({type:String})],S.prototype,"title",void 0),(0,i._)([(0,p.Cb)({type:String,readOnly:!0,json:{read:!1}})],S.prototype,"type",void 0),(0,i._)([(0,p.Cb)()],S.prototype,"url",void 0),(0,i._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],S.prototype,"visible",void 0),S=(0,i._)([(0,h.j)("esri.layers.Layer")],S);const A=S},58092:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Ue});var i,s,n,o,a,l=r(43697),_=r(80539),u=r(61247),d=r(92604),c=r(70586),p=r(16453),h=r(95330),E=r(17445),y=r(5600),T=(r(67676),r(80442),r(75215)),R=r(71715),S=r(52011),A=r(17896),g=r(65617),m=r(29600),C=r(3172);!function(e){e[e.Binary=0]="Binary",e[e.JSON=1]="JSON"}(i||(i={})),function(e){e[e.TreeIndex=0]="TreeIndex",e[e.TreeStats=1]="TreeStats",e[e.TreeData=2]="TreeData",e[e.BrickBundles=3]="BrickBundles",e[e.Section=4]="Section",e[e.VariableStats=5]="VariableStats"}(s||(s={})),function(e){e[e.None=1]="None",e[e.Front=2]="Front",e[e.Back=3]="Back"}(n||(n={})),function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High"}(o||(o={})),function(e){e[e.None=0]="None",e[e.StaticSections=1]="StaticSections",e[e.Slices=2]="Slices",e[e.DynamicSections=4]="DynamicSections",e[e.GhostShell=8]="GhostShell",e[e.Isosurface=16]="Isosurface",e[e.Quality=32]="Quality",e[e.SunLocation=64]="SunLocation",e[e.StaticSectionSelection=128]="StaticSectionSelection",e[e.ExaggerationAndOffset=256]="ExaggerationAndOffset",e[e.CurrentTime=512]="CurrentTime",e[e.CurrentVariable=1024]="CurrentVariable",e[e.DeleteIsosurface=2048]="DeleteIsosurface",e[e.ContainerVisibility=4096]="ContainerVisibility",e[e.RenderMode=8192]="RenderMode",e[e.Optimization=16384]="Optimization"}(a||(a={}));var b=r(99880);function v(e){return(0,b.V)(`esri/libs/vxl/${e}`)}var N=r(50173),I=r(97995),f=r(54738),L=r(35371);const w=d.Z.getLogger("esri.layers.VoxelWasmPerScene");var O;!function(e){e[e.Lifetime=1]="Lifetime",e[e.RequestResponse=2]="RequestResponse",e[e.Rendering=3]="Rendering",e[e.Error=4]="Error"}(O||(O={}));class M{constructor(e){this._halfIntTexturesAvailable=!1,this._havePreparedWithAllLayers=!1,this._renderPluginContext=null,this._vxl=null,this._pluginIsActive=!1,this._moreToLoad=!1,this._viewportWidth=-1,this._viewportHeight=-1,this._newLayers=[],this._layers=new Map,this._renderPass=N.C.MATERIAL,this._renderSlot=I.r.VOXEL,this._rctx=null,this._renderTargetToRestore=null,this._lastFrameWasStationary=!1,this._wasmMemBlockSizes=[512,1024,2048,4096,8192,16384,32768,65536],this._wasmMemBlocks=new Map,this._dbgFlags=new Set,this._view=e,this._initialize()}get canRender(){return!!this._vxl&&"local"===this._view.viewingMode}_dbg(e,t){this._dbgFlags.has(e)&&(e===O.Error?w.error(t):w.warn(t))}_removeRenderPlugin(){this._pluginIsActive&&this._view._stage&&(this._dbg(O.Lifetime,"--removeRenderPlugin--"),this._view._stage.removeRenderPlugin(this)),this._pluginIsActive=!1}_initialize(){this._dbg(O.Lifetime,"--initialize--");for(const e of this._wasmMemBlockSizes)this._wasmMemBlocks.set(e,0);this._readyWatchHandle=(0,E.YP)((()=>this._view.ready),(e=>{e&&"local"===this._view.viewingMode?(this._dbg(O.Lifetime,"view ready status changed to ready on a local view, calling addRenderPlugin"),this._view._stage.addRenderPlugin([this._renderSlot],this),this._pluginIsActive=!0):(this._dbg(O.Lifetime,"view ready status changed, not ready or not a local view!"),this._removeRenderPlugin())}),{initial:!0}),this._qualityWatchHandle=(0,E.YP)((()=>{var e;return null==(e=this._view)?void 0:e.qualityProfile}),(e=>{this._dbg(O.Rendering,"qualityProfile changed to "+e),this._vxl&&this._vxl.set_quality(this._toWasmQuality(e))}),{initial:!0}),this._timeExtentWatchHandle=(0,E.YP)((()=>{var e;return null==(e=this._view)?void 0:e.timeExtent}),(()=>{if(this._vxl){var e;const t=this._getTimeArgs(null==(e=this._view)?void 0:e.timeExtent);this._dbg(O.Rendering,"sceneView timeExtent changed to useTime="+t.useTime+" st="+t.startTime+" et="+t.endTime),this._vxl.set_scene_time_extent(t.startTime,t.endTime,t.useTime),this._renderPluginContext.requestRender()}}),{initial:!0}),this._stationaryWatchHandle=(0,E.YP)((()=>{var e;return null==(e=this._view)?void 0:e.stationary}),(e=>{this._vxl&&e&&!this._lastFrameWasStationary&&this._renderPluginContext.requestRender()}))}initializeRenderContext(e){this._dbg(O.Lifetime,"--initializeRenderContext--");const t=e.renderContext.rctx;t.type===f.zO.WEBGL2?(this._renderPluginContext=e,this._rctx=e.renderContext.rctx,this._halfIntTexturesAvailable=!!this._rctx.capabilities.textureNorm16,this._initializeWasm(t.gl)):this._dbg(O.Error,"WebGL 1 context only!")}uninitializeRenderContext(){this._renderPluginContext=null,this._rctx=null,this._dbg(O.Lifetime,"--uninitializeRenderContext--")}_restoreFramebuffer(){if(!this._renderTargetToRestore)return;const e=this._renderTargetToRestore.fbo;if(!this._rctx)return void this._dbg(O.Error,"no context in restoreFramebuffer!");this._rctx.bindFramebuffer(e,!0);const t=this._renderTargetToRestore.viewport;this._rctx.setViewport(t.x,t.y,t.width,t.height)}_bindPreviousDepthToSlot(e,t){const r=!!this._rctx,i=!!this._renderTargetToRestore;if(!r||!i)return 0;const s=this._renderTargetToRestore.fbo.depthStencilTexture;return s?(0===t?this._rctx.bindTexture(null,e,!0):this._rctx.bindTexture(s,e,!0),1):(this._dbg(O.Error,"no depth/stencil texture exists!"),0)}_setBlendState(e,t,r,i){this._rctx?(this._rctx.setBlendingEnabled(1===e),this._rctx.setBlendFunction(t,r),this._rctx.setBlendEquation(i)):this._dbg(O.Error,"setBlendState callback has no rendering context!")}_setFrontFace(e){this._rctx?this._rctx.setFrontFace(e):this._dbg(O.Error,"setFrontFace callback has no rendering context!")}_setDepthStencilStateFunction(e,t,r){this._rctx?(this._rctx.setDepthFunction(r),this._rctx.setDepthTestEnabled(1===e),this._rctx.setDepthWriteEnabled(1===t),this._rctx.setStencilTestEnabled(!1),this._rctx.setStencilFunction(L.wb.ALWAYS,0,255),this._rctx.setStencilOpSeparate(L.LR.FRONT,L.xS.KEEP,L.xS.INCR,L.xS.KEEP),this._rctx.setStencilOpSeparate(L.LR.BACK,L.xS.KEEP,L.xS.DECR,L.xS.KEEP)):this._dbg(O.Error,"setDepthStencilStateFunction callback has no rendering context!")}_setRasterizerState(e){if(this._rctx)switch(e){case n.None:this._rctx.setFaceCullingEnabled(!1);break;case n.Back:this._rctx.setCullFace(L.LR.BACK),this._rctx.setFaceCullingEnabled(!0);break;case n.Front:this._rctx.setCullFace(L.LR.FRONT),this._rctx.setFaceCullingEnabled(!0)}else this._dbg(O.Error,"setRasterizerState callback has no rendering context!")}_setViewport(e,t,r,i){this._rctx?this._rctx.setViewport(e,t,r,i):this._dbg(O.Error,"setViewport callback has no rendering context!")}_updateMemoryUsage(){this._layers.forEach(((e,t)=>{if(e.needMemoryUsageUpdate){const r=this._vxl.estimate_memory_usage(t);r>=0&&(e.needMemoryUsageUpdate=!1,e.layerView.setUsedMemory(r))}}))}_syncRequestsResponses(){this._layers.forEach(((e,t)=>{const r=[];e.responses.forEach(((i,n)=>{r.push(n),this._dbg(O.RequestResponse,"responding for requestID:"+n+" size:"+i.size),this._vxl.respond(t,n,i),i.requestType!==s.TreeIndex&&i.requestType!==s.Section||(e.needMemoryUsageUpdate=!0)}));const i=e.responses;for(const e of r)i.delete(e);const n=this._vxl.get_new_requests(t),o=e.abortController.signal;for(const t in n){e.outstandingRequestCount+=1,1===e.outstandingRequestCount&&e.layerView.updatingFlagChanged();const r=n[t],s={responseType:"array-buffer",signal:o};this._dbg(O.RequestResponse,"making requestID:"+t+" url:"+r.url),(0,C.default)(r.url,s).then((s=>{e.outstandingRequestCount-=1,0===e.outstandingRequestCount&&e.layerView.updatingFlagChanged(),this._dbg(O.RequestResponse,"have response for requestID:"+t);let n=0;if(s.data.byteLength>0){n=this._vxl._malloc(s.data.byteLength);const e=new Uint8Array(this._vxl.HEAPU8.buffer,n,s.data.byteLength),t=new Uint8Array(s.data);for(let r=0;r<s.data.byteLength;++r)e[r]=t[r]}i.set(+t,{responseType:r.responseType,ptr:n,size:s.data.byteLength,success:!0,requestType:r.requestType})})).catch((s=>{e.outstandingRequestCount-=1,0===e.outstandingRequestCount&&e.layerView.updatingFlagChanged(),(0,h.D_)(s)||(this._dbg(O.Error,`requestID:${t} failed, error=${s.toString()}`),i.set(+t,{responseType:r.responseType,ptr:0,size:0,success:!1,requestType:r.requestType}))}))}}))}updateWasmCamera(e){this._vxl.set_projection_matrix.apply(this._vxl,e.projectionMatrix),this._vxl.set_view_matrix.apply(this._vxl,e.viewMatrix),this._vxl.set_near_far(e.near,e.far)}isUpdating(e){return!(this._vxl||!this._vxlPromise)||!!this._layers.has(e)&&this._layers.get(e).outstandingRequestCount>0}setEnabled(e,t){this._layers.forEach(((r,i)=>{r.layerView===e&&(this._vxl.set_enabled(i,t),this._renderPluginContext.requestRender())}))}setSlices(e,t){const r={mask:a.Slices,slices:{planes:t,currentEditPlane:-1}};return this._doMaskedUIUpdate(e,r,!0)}setDynamicSections(e,t){const r={mask:a.DynamicSections,dynamicSections:{planes:t,currentEditPlane:-1}};return this._doMaskedUIUpdate(e,r,!0)}setStaticSections(e,t){const r={mask:a.StaticSections,staticSections:t};return this._doMaskedUIUpdate(e,r,!0)}setCurrentVariable(e,t){const r={mask:a.CurrentVariable,currentVariable:t};return this._doMaskedUIUpdate(e,r,!0)}setRenderMode(e,t){const r={mask:a.RenderMode,renderMode:t};return this._doMaskedUIUpdate(e,r,!0)}_doMaskedUIUpdate(e,t,r){if(!this._vxl)return!1;let i=!1;return this._layers.forEach(((r,s)=>{if(r.layerView===e){const e={str:JSON.stringify(t),byteCount:0,ptr:0,isReusable:!1};this._allocateBlock(e)&&(i=1===this._vxl.handle_masked_ui_update(s,e.ptr,e.byteCount),e.isReusable||this._vxl._free(e.ptr))}})),i&&r&&this._renderPluginContext.requestRender(),i}addVoxelLayer(e){if(!this._vxl){const t={layerView:e,resolveCallback:null,rejectCallback:null},r=new Promise(((e,r)=>{t.resolveCallback=e,t.rejectCallback=r}));return this._newLayers.push(t),r}const t=this._addVoxelLayer(e);return t<0?Promise.reject(-1):Promise.resolve(t)}removeVoxelLayer(e){if(!this._vxl){const t=this._newLayers.findIndex((t=>e===t.layerView));t>=0&&(this._newLayers[t].resolveCallback(-1),this._newLayers.splice(t,1));const r=this._newLayers.length;return 0===r&&(this._dbg(O.Lifetime," no voxel layers left after removing a layer, removing RenderPlugin and destroying"),this.destroy()),r}let t=-1;this._layers.forEach(((r,i)=>{r.layerView===e&&(t=i,r.abortController.abort(),this._vxl.remove_layer(t))})),t>=0&&this._layers.delete(t);const r=this._layers.size;return 0===r&&(this._dbg(O.Lifetime," no voxel layers left after removing a layer, removing RenderPlugin and destroying"),this.destroy()),r}_getBlockSize(e){for(const t of this._wasmMemBlockSizes)if(e<t)return t;return-1}_allocateBlock(e){e.byteCount=this._vxl.lengthBytesUTF8(e.str)+1;const t=this._getBlockSize(e.byteCount);return t<0?(e.isReusable=!1,e.ptr=this._vxl._malloc(e.byteCount)):(e.isReusable=!0,e.ptr=this._wasmMemBlocks.get(t),0===e.ptr&&(e.ptr=this._vxl._malloc(t),this._wasmMemBlocks.set(t,e.ptr))),0!==e.ptr&&(this._vxl.stringToUTF8(e.str,e.ptr,e.byteCount),!0)}_getTimeArgs(e){let t=-Number.MAX_VALUE,r=Number.MAX_VALUE,i=!1;return(0,c.pC)(e)&&(e.isAllTime?i=!0:((0,c.pC)(e.start)&&(i=!0,t=e.start.getTime()/1e3),(0,c.pC)(e.end)&&(i=!0,r=e.end.getTime()/1e3))),{startTime:t,endTime:r,useTime:i}}_addVoxelLayer(e){var t;const r=e.layer;let i=-1;const s=r.getConfiguration();if(s.length<1)return-1;const n={str:s,byteCount:0,ptr:0,isReusable:!1};if(!this._allocateBlock(n))return-1;const o=this._getTimeArgs(null==(t=this._view)?void 0:t.timeExtent),a=this._view.spatialReference.isWGS84&&r.spatialReference.isWGS84?111319.49079327357:1;if(i=this._vxl.add_layer(r.serviceRoot,n.ptr,n.byteCount,a,a,o.startTime,o.endTime,o.useTime,this._toWasmQuality(this._view.qualityProfile)),n.isReusable||this._vxl._free(n.ptr),i>=0){const t=new AbortController;if(this._layers.set(i,{layerView:e,responses:new Map,outstandingRequestCount:0,abortController:t,needMemoryUsageUpdate:!1}),!this._halfIntTexturesAvailable){const t=[];let r="";for(const i of e.layer.variables)"Int16"!==i.renderingFormat.type&&"UInt16"!==i.renderingFormat.type||(t.push(i.name),i.id===e.layer.style.currentVariableId&&(r=i.name));""!==r&&w.error("#addVoxelLayer_error()",e.layer,`The voxel layer '${e.layer.title}' cannot render the current variable '${r}' in this browser`),t.length>0&&w.warn("#addVoxelLayer_warning()",e.layer,`The voxel layer '${e.layer.title}' cannot render the variables '${t.toString()}' in this browser`)}return i}return-1}prepareRender(e){if(!this._vxl)return;const t=e.viewForward,r=e.eye;this._vxl.update_camera_pos_and_direction(r[0],r[1],r[2],t[0],t[1],t[2]);const i=this._vxl.cull();this._dbg(O.RequestResponse,"missingResourceCount="+i),this._moreToLoad=i>0,this._havePreparedWithAllLayers=0===this._newLayers.length,this._updateMemoryUsage()}render(e){if(!this._vxl||e.pass!==this._renderPass||e.slot!==this._renderSlot)return;for(const e of this._newLayers){const t=this._addVoxelLayer(e.layerView);-1===t?e.rejectCallback(-1):e.resolveCallback(t)}if(this._newLayers=[],0===this._layers.size)return void this._dbg(O.Error,"No voxel layers but RenderPlugin instance is being asked to render!");this._renderTargetToRestore={fbo:this._rctx.getBoundFramebufferObject(),viewport:this._rctx.getViewport()},this._syncRequestsResponses(),this._lastFrameWasStationary=this._view.stationary,this._vxl.begin_color_frame(!this._view.stationary||this._moreToLoad,e.scenelightingData.lightingMainDirection[0],e.scenelightingData.lightingMainDirection[1],e.scenelightingData.lightingMainDirection[2]);const t=this._renderTargetToRestore.viewport;t.width===this._viewportWidth&&t.height===this._viewportHeight||(this._viewportWidth=t.width,this._viewportHeight=t.height,this._vxl.set_viewport(t.width,t.height),this._layers.forEach((e=>{e.needMemoryUsageUpdate=!0}))),0===t.x&&0===t.y||this._dbg(O.Error,"Unsupported viewport parameters detected!"),this.updateWasmCamera(e.camera),this._vxl.draw(),this._renderTargetToRestore.fbo=null,e.rctx.externalTextureUnitUpdate(this._vxl.get_texture_units_bound_in_frame(),this._vxl.get_active_texture_unit()),e.rctx.externalVertexArrayObjectUpdate(),e.rctx.externalVertexBufferUpdate(),this._rctx.externalProgramUpdate(),(this._moreToLoad||!this._havePreparedWithAllLayers&&this._layers.size>0)&&this._renderPluginContext.requestRender()}destroy(){this._dbg(O.Lifetime,"--destroy--"),this._removeRenderPlugin(),this._readyWatchHandle=(0,c.hw)(this._readyWatchHandle),this._qualityWatchHandle=(0,c.hw)(this._qualityWatchHandle),this._timeExtentWatchHandle=(0,c.hw)(this._timeExtentWatchHandle),this._stationaryWatchHandle=(0,c.hw)(this._stationaryWatchHandle),this._vxl&&(this._layers.forEach((e=>{e.abortController.abort()})),this._wasmMemBlocks.forEach((e=>{0!==e&&this._vxl._free(e)})),this._vxl.uninitialize_voxel_wasm(),this._vxl=null)}_initializeWasm(e){return this._vxl?Promise.resolve():(this._vxlPromise||(this._vxlPromise=function(e){return new Promise((t=>r.e(6550).then(r.bind(r,6550)).then((e=>e.v)).then((({default:r})=>{const i=r({locateFile:v,preinitializedWebGLContext:e,onRuntimeInitialized:()=>t(i)})})))).catch((e=>Promise.reject(e)))}(e).then((e=>{var t;if(this._vxl=e,this._vxlPromise=null,this._newLayers.length<=0)return this._dbg(O.Lifetime," no voxel layers left after WASM downloaded, removing RenderPlugin and destroying"),void this.destroy();const r=this._getTimeArgs(null==(t=this._view)?void 0:t.timeExtent),i=this._vxl.addFunction(this._restoreFramebuffer.bind(this),"v"),s=this._vxl.addFunction(this._setBlendState.bind(this),"viiii"),n=this._vxl.addFunction(this._setFrontFace.bind(this),"vi"),o=this._vxl.addFunction(this._setRasterizerState.bind(this),"vi"),a=this._vxl.addFunction(this._setDepthStencilStateFunction.bind(this),"viii"),l=this._vxl.addFunction(this._setViewport.bind(this),"viiii"),_=this._vxl.addFunction(this._bindPreviousDepthToSlot.bind(this),"iii");this._vxl.initialize_voxel_wasm(i,s,n,o,a,l,_,r.startTime,r.endTime,r.useTime),this._renderPluginContext&&this._renderPluginContext.requestRender()})).catch((()=>{for(const e of this._newLayers)e.rejectCallback(-2);this._dbg(O.Error," WASM failed to download, removing RenderPlugin and destroying"),this.destroy()}))),this._vxlPromise)}pickDepth(e,t,r){if(!this._vxl||!this._rctx||0===this._layers.size)return null;const i=r.viewport[3]-t;if(e<0||e>r.viewport[2]||t<0||t>r.viewport[3])return this._dbg(O.Error,`pickDepth: outOfRange, screenXY=[${e}, ${i}], vp=[${r.viewport.toString()}]`),null;this._renderTargetToRestore={fbo:this._rctx.getBoundFramebufferObject(),viewport:this._rctx.getViewport()};const s=r.viewForward,n=r.eye;this._vxl.update_camera_pos_and_direction(n[0],n[1],n[2],s[0],s[1],s[2]),this.updateWasmCamera(r),this._vxl.begin_frame();const o=this._vxl.pick_depth(e,i);return this._renderTargetToRestore.fbo=null,this._rctx.externalTextureUnitUpdate(this._vxl.get_texture_units_bound_in_frame(),this._vxl.get_active_texture_unit()),this._rctx.externalVertexArrayObjectUpdate(),this._rctx.externalVertexBufferUpdate(),this._rctx.externalProgramUpdate(),o.success?o.distanceToCamera:null}_toWasmQuality(e){switch(e){case"low":return 0;case"medium":return 1;case"high":return 2}}}class x{constructor(){this.view2WASM=new Map}static getInstance(){return x.instance||(x.instance=new x),x.instance}getVoxelWasmPerSceneView(e){return this.view2WASM.has(e)?this.view2WASM.get(e):null}isUpdating(e,t){return!!this.view2WASM.has(e)&&this.view2WASM.get(e).isUpdating(t)}addLayer(e,t){return this.view2WASM.has(e)||this.view2WASM.set(e,new M(e)),this.view2WASM.get(e).addVoxelLayer(t)}removeLayer(e,t){this.view2WASM.has(e)&&this.view2WASM.get(e).removeVoxelLayer(t)<1&&this.view2WASM.delete(e)}setLayerEnabled(e,t,r){this.view2WASM.has(e)&&this.view2WASM.get(e).setEnabled(t,r)}setLayerSlices(e,t){let r=!1;return this.view2WASM.forEach(((i,s)=>{s.allLayerViews.filter((e=>"voxel-3d"===e.type)).forEach((s=>{s.layer===e&&(r=i.setSlices(s,t))}))})),r}setLayerDynamicSections(e,t){let r=!1;return this.view2WASM.forEach(((i,s)=>{s.allLayerViews.filter((e=>"voxel-3d"===e.type)).forEach((s=>{s.layer===e&&(r=i.setDynamicSections(s,t))}))})),r}setLayerCurrentVariable(e,t){let r=!1;return this.view2WASM.forEach(((i,s)=>{s.allLayerViews.filter((e=>"voxel-3d"===e.type)).forEach((s=>{s.layer===e&&(r=i.setCurrentVariable(s,t))}))})),r}setLayerRenderMode(e,t){let r=!1;return this.view2WASM.forEach(((i,s)=>{s.allLayerViews.filter((e=>"voxel-3d"===e.type)).forEach((s=>{s.layer===e&&(r=i.setRenderMode(s,t))}))})),r}setLayerStaticSections(e,t){let r=!1;return this.view2WASM.forEach(((i,s)=>{s.allLayerViews.filter((e=>"voxel-3d"===e.type)).forEach((s=>{s.layer===e&&(r=i.setStaticSections(s,t))}))})),r}}var D=r(54295),P=r(17287),U=r(38009),F=r(16859),G=r(72965),B=r(13496),V=r(66677),H=r(21506),j=r(96674);let W=class extends j.wq{constructor(){super(...arguments),this.enabled=!0,this.label="",this.normal=null,this.point=null}};(0,l._)([(0,y.Cb)({type:Boolean,json:{default:!0,write:!0}})],W.prototype,"enabled",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],W.prototype,"label",void 0),(0,l._)([(0,y.Cb)({type:[Number],json:{write:!0}})],W.prototype,"normal",void 0),(0,l._)([(0,y.Cb)({type:[Number],json:{write:!0}})],W.prototype,"point",void 0),W=(0,l._)([(0,S.j)("esri.layers.support.VoxelDynamicSection")],W);const q=W;let Y=class extends j.wq{constructor(){super(...arguments),this.enabled=!0,this.label="",this.normal=null,this.point=null}};(0,l._)([(0,y.Cb)({type:Boolean,json:{write:!0}})],Y.prototype,"enabled",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],Y.prototype,"label",void 0),(0,l._)([(0,y.Cb)({type:[Number],json:{write:!0}})],Y.prototype,"normal",void 0),(0,l._)([(0,y.Cb)({type:[Number],json:{write:!0}})],Y.prototype,"point",void 0),Y=(0,l._)([(0,S.j)("esri.layers.support.VoxelSlice")],Y);const k=Y;var Z=r(25929);let z=class extends j.wq{constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}readHref(e,t,r){return(0,Z.f)(e,r)}};(0,l._)([(0,y.Cb)({type:Boolean,json:{default:!0,write:!0}})],z.prototype,"enabled",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],z.prototype,"href",void 0),(0,l._)([(0,R.r)(["service","web-scene"],"href")],z.prototype,"readHref",null),(0,l._)([(0,y.Cb)({type:T.z8,json:{write:{enabled:!0,isRequired:!0}}})],z.prototype,"id",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],z.prototype,"label",void 0),(0,l._)([(0,y.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],z.prototype,"normal",void 0),(0,l._)([(0,y.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],z.prototype,"point",void 0),(0,l._)([(0,y.Cb)({type:[T.z8],json:{write:{enabled:!0,isRequired:!0}}})],z.prototype,"sizeInPixel",void 0),(0,l._)([(0,y.Cb)({type:[k],json:{write:!0}})],z.prototype,"slices",void 0),(0,l._)([(0,y.Cb)({type:T.z8,json:{default:0,write:!0}})],z.prototype,"timeId",void 0),(0,l._)([(0,y.Cb)({type:T.z8,json:{write:{enabled:!0,isRequired:!0}}})],z.prototype,"variableId",void 0),z=(0,l._)([(0,S.j)("esri.layers.support.VoxelSection")],z);const X=z;var $=r(70921);let J=class extends j.wq{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,l._)([(0,y.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],J.prototype,"diffuseFactor",void 0),(0,l._)([(0,y.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],J.prototype,"specularFactor",void 0),J=(0,l._)([(0,S.j)("esri.layers.support.VoxelSimpleShading")],J);const K=J;var Q=r(22303);let ee=class extends j.wq{constructor(){super(...arguments),this.color=null,this.value=null,this.enabled=!0,this.label=null}};(0,l._)([(0,y.Cb)({type:Q.Z,json:{type:[T.z8],write:{enabled:!0,isRequired:!0}}})],ee.prototype,"color",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"value",void 0),(0,l._)([(0,y.Cb)({type:Boolean,json:{default:!0,write:!0}})],ee.prototype,"enabled",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],ee.prototype,"label",void 0),ee=(0,l._)([(0,S.j)("esri.layers.support.VoxelIsosurface")],ee);const te=ee;let re=class extends j.wq{constructor(){super(...arguments),this.alpha=0,this.position=0}};(0,l._)([(0,y.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"alpha",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"position",void 0),re=(0,l._)([(0,S.j)("esri.layers.support.VoxelAlphaStop")],re);const ie=re;let se=class extends j.wq{constructor(){super(...arguments),this.color=null,this.position=0}};(0,l._)([(0,y.Cb)({type:Q.Z,json:{type:[T.z8],write:{enabled:!0,isRequired:!0}}})],se.prototype,"color",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],se.prototype,"position",void 0),se=(0,l._)([(0,S.j)("esri.layers.support.VoxelColorStop")],se);const ne=se;let oe=class extends j.wq{constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,l._)([(0,y.Cb)({type:Boolean,json:{default:!1,write:!0}})],oe.prototype,"enabled",void 0),(0,l._)([(0,y.Cb)({type:[Number],json:{write:!0}})],oe.prototype,"range",void 0),oe=(0,l._)([(0,S.j)("esri.layers.support.VoxelRangeFilter")],oe);const ae=oe;let le=class extends j.wq{constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this.colorStops=new _.Z,this.alphaStops=new _.Z}set colorStops(e){this._set("colorStops",(0,$.Z)(e,this._get("colorStops"),_.Z.ofType(ne)))}set alphaStops(e){this._set("alphaStops",(0,$.Z)(e,this._get("alphaStops"),_.Z.ofType(ie)))}};(0,l._)([(0,y.Cb)({type:["linear","nearest"],json:{write:!0}})],le.prototype,"interpolation",void 0),(0,l._)([(0,y.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],le.prototype,"stretchRange",void 0),(0,l._)([(0,y.Cb)({type:_.Z.ofType(ne),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],le.prototype,"colorStops",null),(0,l._)([(0,y.Cb)({type:_.Z.ofType(ie),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.alphaStops&&this.alphaStops.length>0}}}}})],le.prototype,"alphaStops",null),(0,l._)([(0,y.Cb)({type:ae,json:{write:!0}})],le.prototype,"rangeFilter",void 0),le=(0,l._)([(0,S.j)("esri.layers.support.VoxelTransferFunctionStyle")],le);const _e=le;let ue=class extends j.wq{constructor(){super(...arguments),this.color=null,this.value=0,this.enabled=!0,this.label=null}};(0,l._)([(0,y.Cb)({type:Q.Z,json:{type:[T.z8],write:{enabled:!0,isRequired:!0}}})],ue.prototype,"color",void 0),(0,l._)([(0,y.Cb)({type:T.z8,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"value",void 0),(0,l._)([(0,y.Cb)({type:Boolean,json:{default:!0,write:!0}})],ue.prototype,"enabled",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],ue.prototype,"label",void 0),ue=(0,l._)([(0,S.j)("esri.layers.support.VoxelUniqueValue")],ue);const de=ue;let ce=class extends j.wq{constructor(e){super(e),this.variableId=0,this.label=null,this.transferFunction=null,this.uniqueValues=new _.Z,this.isosurfaces=new _.Z}set uniqueValues(e){this._set("uniqueValues",(0,$.Z)(e,this._get("uniqueValues"),_.Z.ofType(de)))}set isosurfaces(e){this._set("isosurfaces",(0,$.Z)(e,this._get("isosurfaces"),_.Z.ofType(te)))}};(0,l._)([(0,y.Cb)({type:T.z8,json:{write:{enabled:!0,isRequired:!0}}})],ce.prototype,"variableId",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],ce.prototype,"label",void 0),(0,l._)([(0,y.Cb)({type:_e,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],ce.prototype,"transferFunction",void 0),(0,l._)([(0,y.Cb)({type:_.Z.ofType(de),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],ce.prototype,"uniqueValues",null),(0,l._)([(0,y.Cb)({type:_.Z.ofType(te),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],ce.prototype,"isosurfaces",null),ce=(0,l._)([(0,S.j)("esri.layers.support.VoxelVariableStyle")],ce);const pe=ce;let he=class extends j.wq{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new _.Z,this.dynamicSections=new _.Z}set slices(e){this._set("slices",(0,$.Z)(e,this._get("slices"),_.Z.ofType(k)))}set dynamicSections(e){this._set("dynamicSections",(0,$.Z)(e,this._get("dynamicSections"),_.Z.ofType(q)))}};(0,l._)([(0,y.Cb)({type:T.z8,json:{write:{enabled:!0,isRequired:!0}}})],he.prototype,"volumeId",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{default:1,write:!0}})],he.prototype,"verticalExaggeration",void 0),(0,l._)([(0,y.Cb)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],he.prototype,"exaggerationMode",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{default:0,write:!0}})],he.prototype,"verticalOffset",void 0),(0,l._)([(0,y.Cb)({type:_.Z.ofType(k),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],he.prototype,"slices",null),(0,l._)([(0,y.Cb)({type:_.Z.ofType(q),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],he.prototype,"dynamicSections",null),he=(0,l._)([(0,S.j)("esri.layers.support.VoxelVolumeStyle")],he);const Ee=he;let ye=class extends j.wq{constructor(e){super(e),this.currentVariableId=0,this.renderMode="volume",this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new K,this.volumeStyles=new _.Z,this.variableStyles=new _.Z}set volumeStyles(e){this._set("volumeStyles",(0,$.Z)(e,this._get("volumeStyles"),_.Z.ofType(Ee)))}set variableStyles(e){this._set("variableStyles",(0,$.Z)(e,this._get("variableStyles"),_.Z.ofType(pe)))}};(0,l._)([(0,y.Cb)({type:_.Z.ofType(Ee),json:{write:!0}})],ye.prototype,"volumeStyles",null),(0,l._)([(0,y.Cb)({type:T.z8,json:{write:{enabled:!0,isRequired:!0}}})],ye.prototype,"currentVariableId",void 0),(0,l._)([(0,y.Cb)({type:["volume","surfaces"],json:{write:!0}})],ye.prototype,"renderMode",void 0),(0,l._)([(0,y.Cb)({type:_.Z.ofType(pe),json:{write:!0}})],ye.prototype,"variableStyles",null),(0,l._)([(0,y.Cb)({type:Boolean,json:{write:!0}})],ye.prototype,"enableSlices",void 0),(0,l._)([(0,y.Cb)({type:Boolean,json:{write:!0}})],ye.prototype,"enableSections",void 0),(0,l._)([(0,y.Cb)({type:Boolean,json:{write:!0}})],ye.prototype,"enableDynamicSections",void 0),(0,l._)([(0,y.Cb)({type:Boolean,json:{write:!0}})],ye.prototype,"enableIsosurfaces",void 0),(0,l._)([(0,y.Cb)({type:K,json:{write:!0}})],ye.prototype,"shading",void 0),ye=(0,l._)([(0,S.j)("esri.layers.support.VoxelStyle")],ye);const Te=ye;let Re=class extends j.wq{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,l._)([(0,y.Cb)({type:["discrete","continuous"],json:{write:!0}})],Re.prototype,"continuity",void 0),(0,l._)([(0,y.Cb)({type:Boolean,json:{write:!0}})],Re.prototype,"hasNoData",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{write:!0}})],Re.prototype,"noData",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{write:!0}})],Re.prototype,"offset",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{write:!0}})],Re.prototype,"scale",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"type",void 0),Re=(0,l._)([(0,S.j)("esri.layers.support.VoxelFormat")],Re);const Se=Re;let Ae=class extends j.wq{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,l._)([(0,y.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ae.prototype,"id",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],Ae.prototype,"description",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ae.prototype,"name",void 0),(0,l._)([(0,y.Cb)({type:Se,json:{write:!0}})],Ae.prototype,"originalFormat",void 0),(0,l._)([(0,y.Cb)({type:Se,json:{write:{enabled:!0,isRequired:!0}}})],Ae.prototype,"renderingFormat",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],Ae.prototype,"unit",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{write:!0}})],Ae.prototype,"volumeId",void 0),(0,l._)([(0,y.Cb)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],Ae.prototype,"type",void 0),Ae=(0,l._)([(0,S.j)("esri.layers.support.VoxelVariable")],Ae);const ge=Ae;let me=class extends j.wq{constructor(){super(...arguments),this.values=null}};(0,l._)([(0,y.Cb)({type:[Number],json:{write:!0}})],me.prototype,"values",void 0),me=(0,l._)([(0,S.j)("esri.layers.support.VoxelIrregularSpacing")],me);const Ce=me;let be=class extends j.wq{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,l._)([(0,y.Cb)({type:Number,json:{write:!0}})],be.prototype,"scale",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{write:!0}})],be.prototype,"offset",void 0),be=(0,l._)([(0,S.j)("esri.layers.support.VoxelRegularSpacing")],be);const ve=be;let Ne=class extends j.wq{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=null,this.isWrappedDateLine=null,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}};(0,l._)([(0,y.Cb)({type:Ce,json:{write:!0}})],Ne.prototype,"irregularSpacing",void 0),(0,l._)([(0,y.Cb)({type:Boolean,json:{write:!0}})],Ne.prototype,"isPositiveUp",void 0),(0,l._)([(0,y.Cb)({type:Boolean,json:{write:!0}})],Ne.prototype,"isWrappedDateLine",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],Ne.prototype,"label",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],Ne.prototype,"name",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],Ne.prototype,"quantity",void 0),(0,l._)([(0,y.Cb)({type:ve,json:{write:!0}})],Ne.prototype,"regularSpacing",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{write:!0}})],Ne.prototype,"size",void 0),(0,l._)([(0,y.Cb)({type:String,json:{write:!0}})],Ne.prototype,"unit",void 0),Ne=(0,l._)([(0,S.j)("esri.layers.support.VoxelDimension")],Ne);const Ie=Ne;let fe=class extends j.wq{constructor(){super(...arguments),this.id=0,this.dimensions=null}getZDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}isVolumeValid(){return!!this.dimensions&&!!Array.isArray(this.dimensions)&&4===this.dimensions.length&&!(this.dimensions[0].size<1||this.dimensions[1].size<1)&&-1!==this.getZDimension()}};(0,l._)([(0,y.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],fe.prototype,"id",void 0),(0,l._)([(0,y.Cb)({type:[Ie],json:{write:{enabled:!0,isRequired:!0}}})],fe.prototype,"dimensions",void 0),fe=(0,l._)([(0,S.j)("esri.layers.support.VoxelVolume")],fe);const Le=fe;var we;let Oe=we=class extends j.wq{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new we;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,l._)([(0,y.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"apronWidth",void 0),(0,l._)([(0,y.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"brickSize",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"maxLodLevel",void 0),(0,l._)([(0,y.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"nodeSize",void 0),Oe=we=(0,l._)([(0,S.j)("esri.layers.support.VoxelVolumeIndex")],Oe);const Me=Oe,xe=d.Z.getLogger(" esri.layers.VoxelLayer");var De;!function(e){e[e.API=1]="API",e[e.VerboseAPI=2]="VerboseAPI",e[e.Error=3]="Error"}(De||(De={}));let Pe=class extends((0,B.Vt)((0,P.Y)((0,U.q)((0,F.I)((0,G.M)((0,p.R)((0,D.V)(m.Z)))))))){constructor(e){super(e),this.serviceRoot="",this.popupEnabled=!0,this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=new _.Z,this.style=null,this.opacity=1,this.variables=new _.Z,this.volumes=new _.Z,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this._dbgFlags=new Set,this._handles=new u.Z,this.version={major:Number.NaN,minor:Number.NaN,versionString:""}}set url(e){this._set("url",(0,V.Nm)(e,xe))}destroy(){this._handles=(0,c.SC)(this._handles)}_dbg(e,t){this._dbgFlags.has(e)&&(e===De.Error?xe.error(t):xe.warn(t))}load(e){const t=(0,c.pC)(e)?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.r9).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(r),Promise.resolve(this)}getConfiguration(){this._handles.add([(0,E.YP)((()=>this._getRenderMode()),(e=>this._pushRenderModeToWasm(e))),(0,E.YP)((()=>this._getCurrentVariableId()),(e=>this._pushCurrentVariableIdToWasm(e))),(0,E.YP)((()=>this._getDynamicSections()),(e=>this._pushDynamicSectionsToWasm(e))),(0,E.YP)((()=>this._getSlices()),(e=>this._pushSlicesToWasm(e))),(0,E.YP)((()=>this._getSections()),(e=>this._pushSectionsToWasm(e)))]);const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index.toJSON(),sections:this.sections.toJSON(),style:this.style};return e.index&&this.index.isValid()?JSON.stringify(e):""}readVersion(e,t){return super.parseVersionString(e)}_getSections(){const e=[];for(const t of this.sections)e.push(new X({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}_pushSectionsToWasm(e){this._dbg(De.VerboseAPI,"VoxelLayer._pushSectionsToWasm() called"),x.getInstance().setLayerStaticSections(this,e)||this._dbg(De.Error,"VoxelLayer._pushSectionsToWasm() failed!")}_isPlaneValid(e,t,r){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;for(let i=0;i<3;++i){const s=e.point[i];if(s<0||s>=r[t[i]].size)return!1}const i=(0,g.f)(e.normal[0],e.normal[1],e.normal[2]);return(0,A.n)(i,i),!(Math.abs(i[0])+Math.abs(i[1])+Math.abs(i[2])<1e-6||(e.normal[0]=i[0],e.normal[1]=i[1],e.normal[2]=i[2],0))}getVariableStyle(e){let t=-1;if(t=(0,c.pC)(e)?e:this._getCurrentVariableId(),!(null==this?void 0:this.style.variableStyles)||-1===t)return null;const r=this.style.variableStyles.findIndex((e=>e.variableId===t));return r<0?null:this.style.variableStyles.getItemAt(r)}getVariable(e){let t=-1;if(t=(0,c.pC)(e)?e:this._getCurrentVariableId(),!this.variables||-1===t)return null;const r=this.variables.findIndex((e=>e.id===t));return r<0?null:this.variables.getItemAt(r)}getVolume(e){const t=this.getVariable(e);return(0,c.pC)(t)?this.volumes.find((({id:e})=>e===t.volumeId)):null}_getVolumeStyle(e){const t=this.getVariable(e);return(0,c.pC)(t)?this.style.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}_getSlices(){const e=[],t=this.getVolume(null);if(!(0,c.pC)(t)||!t.isVolumeValid())return e;const r=this._getVolumeStyle(null);if(!(0,c.pC)(r))return e;for(const i of r.slices)this._isPlaneValid(i,[0,1,t.getZDimension()],t.dimensions)?e.push(new k({enabled:i.enabled,label:i.label,point:i.point,normal:i.normal})):e.push(new k({enabled:!1,label:"invalid",point:i.point,normal:i.normal}));return e}_pushSlicesToWasm(e){this._dbg(De.VerboseAPI,"VoxelLayer._pushSlicesToWasm() called!"),x.getInstance().setLayerSlices(this,e)||this._dbg(De.Error,"VoxelLayer._pushSlicesToWasm() failed!")}_getDynamicSections(){const e=[],t=this.getVolume(null);if(!(0,c.pC)(t)||!t.isVolumeValid())return e;const r=this._getVolumeStyle(null);if(!(0,c.pC)(r))return e;for(const i of r.dynamicSections)this._isPlaneValid(i,[0,1,t.getZDimension()],t.dimensions)?e.push(new q({enabled:i.enabled,label:i.label,point:i.point,normal:i.normal})):e.push(new q({enabled:!1,label:"invalid",point:i.point,normal:i.normal}));return e}_pushDynamicSectionsToWasm(e){this._dbg(De.VerboseAPI,"VoxelLayer._pushDynamicSectionsToWasm() called!"),x.getInstance().setLayerDynamicSections(this,e)||this._dbg(De.Error,"VoxelLayer._updateDynamicSections() failed!")}_getCurrentVariableId(){return this.style?this.style.currentVariableId:-1}_pushCurrentVariableIdToWasm(e){this._dbg(De.VerboseAPI,"VoxelLayer._pushCurrentVariableIdToWasm() called!"),x.getInstance().setLayerCurrentVariable(this,e)||this._dbg(De.Error,"VoxelLayer._pushCurrentVariableIdToWasm() failed!")}_getRenderMode(){return this.style?this.style.renderMode:"volume"}_pushRenderModeToWasm(e){this._dbg(De.VerboseAPI,"VoxelLayer._pushRenderModeToWasm() called!"),x.getInstance().setLayerRenderMode(this,e)||this._dbg(De.Error,"VoxelLayer.setLayerRenderMode() failed!")}};(0,l._)([(0,y.Cb)(H.C_)],Pe.prototype,"popupEnabled",void 0),(0,l._)([(0,y.Cb)({type:["Voxel"]})],Pe.prototype,"operationalLayerType",void 0),(0,l._)([(0,y.Cb)(H.rn)],Pe.prototype,"legendEnabled",void 0),(0,l._)([(0,y.Cb)({json:{write:!0}})],Pe.prototype,"title",void 0),(0,l._)([(0,y.Cb)(H.HQ)],Pe.prototype,"url",null),(0,l._)([(0,y.Cb)({type:_.Z.ofType(X),json:{write:!0,origins:{"web-scene":{name:"layerDefinition.sections",write:!0},service:{write:!1}}}})],Pe.prototype,"sections",void 0),(0,l._)([(0,y.Cb)({type:Te,json:{write:!0,origins:{"web-scene":{name:"layerDefinition.style",write:!0},service:{write:!1}}}})],Pe.prototype,"style",void 0),(0,l._)([(0,y.Cb)({type:["show","hide"]})],Pe.prototype,"listMode",void 0),(0,l._)([(0,y.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],Pe.prototype,"opacity",void 0),(0,l._)([(0,y.Cb)({type:_.Z.ofType(ge)})],Pe.prototype,"variables",void 0),(0,l._)([(0,y.Cb)({type:_.Z.ofType(Le)})],Pe.prototype,"volumes",void 0),(0,l._)([(0,y.Cb)({type:Me})],Pe.prototype,"index",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{name:"layerDefinition.minScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],Pe.prototype,"minScale",void 0),(0,l._)([(0,y.Cb)({type:Number,json:{name:"layerDefinition.maxScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],Pe.prototype,"maxScale",void 0),(0,l._)([(0,y.Cb)({json:{read:!1},readOnly:!0})],Pe.prototype,"type",void 0),(0,l._)([(0,y.Cb)({readOnly:!0,json:{name:"serviceVersion"}})],Pe.prototype,"version",void 0),(0,l._)([(0,R.r)("service","version")],Pe.prototype,"readVersion",null),Pe=(0,l._)([(0,S.j)("esri.layers.VoxelLayer")],Pe);const Ue=Pe},38009:(e,t,r)=>{r.d(t,{q:()=>p});var i=r(43697),s=r(20102),n=r(17452),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(30556),_=r(50549),u=r(76169);const d={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var c=r(21506);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,u.d)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r,i){!e||i&&"tables"===i.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,_.$)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(null!=t&&t.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,i=d[e];let n=i&&i[this.operationalLayerType];var r;if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(n=!1),!n)return null==(r=t.messages)||r.push(new s.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const i=super.write(e,{...t,layer:this}),o=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof s.Z&&"web-document-write:property-required"===e.name)).length;var a;return(0,n.jc)(null==i?void 0:i.url)?(null==t||null==(a=t.messages)||a.push(new s.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&o?null:i}beforeSave(){}};return(0,i._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i._)([(0,o.Cb)({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"listMode",void 0),(0,i._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,i._)([(0,o.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,i._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i._)([(0,o.Cb)(c.Oh)],t.prototype,"opacity",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i._)([(0,l.c)("title")],t.prototype,"writeTitle",null),(0,i._)([(0,o.Cb)({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=(0,i._)([(0,a.j)("esri.layers.mixins.OperationalLayer")],t),t}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var i=r(43697),s=r(5600),n=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,s.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,s.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,s.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},21506:(e,t,r)=>{r.d(t,{qG:()=>A,PV:()=>y,id:()=>m,iR:()=>p,rn:()=>E,u1:()=>b,rO:()=>C,Oh:()=>R,bT:()=>S,C_:()=>c,Lx:()=>T,vg:()=>g,YI:()=>d,HQ:()=>h});var i=r(92835),s=r(6570),n=r(82971),o=r(25929),a=r(70586),l=(r(95330),r(35463)),_=r(20682),u=r(65242);const d={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},c={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},p={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},h={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},E={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},y={value:null,type:_.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function T(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const R={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},S={...R,json:{...R.json,origins:{"web-document":{...R.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,u.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,u.b)(t.drawingInfo.transparency)}}},A={type:i.Z,readOnly:!0,get(){var e,t;if(null==(e=this.layer)||!e.timeInfo)return null;const{datesInUnknownTimezone:r,timeOffset:s,useViewTime:n}=this.layer,o=null==(t=this.view)?void 0:t.timeExtent;let _=this.layer.timeExtent;r&&(_=function(e){if(!e)return e;const{start:t,end:r}=e;return new i.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(_));let u=n?o&&_?o.intersection(_):o||_:_;if(!u||u.isEmpty||u.isAllTime)return u;s&&(u=u.offset(-s.value,s.unit)),r&&(u=function(e){if(!e)return e;const{start:t,end:r}=e;return new i.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(u));const d=this._get("timeExtent");return u.equals(d)?d:u}},g={type:s.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=s.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=n.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},m={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},C={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},b={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}}},20682:(e,t,r)=>{r.d(t,{Z:()=>g});var i,s=r(43697),n=r(35454),o=r(96674),a=r(70586),l=r(5600),_=(r(67676),r(80442),r(75215),r(71715)),u=r(52011),d=r(30556),c=r(35671);let p=i=class extends o.wq{async collectRequiredFields(e,t){return(0,c.io)(e,t,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}};(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],p.prototype,"expression",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],p.prototype,"title",void 0),p=i=(0,s._)([(0,u.j)("esri.layers.support.FeatureExpressionInfo")],p);const h=p;var E=r(99282);const y=function(){const e=Object.keys(E.a);return e.sort(),e}();var T;const R=(0,n.wY)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),S=new n.Xn({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let A=T=class extends o.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,i){t[r]=e.write({},i),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,a.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new T({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}};(0,s._)([(0,l.Cb)({type:h,json:{write:!0}})],A.prototype,"featureExpressionInfo",void 0),(0,s._)([(0,_.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],A.prototype,"readFeatureExpressionInfo",null),(0,s._)([(0,d.c)("featureExpressionInfo",{featureExpressionInfo:{type:h},"featureExpression.value":{type:[0]}})],A.prototype,"writeFeatureExpressionInfo",null),(0,s._)([(0,l.Cb)({type:R.apiValues,nonNullable:!0,json:{type:R.jsonValues,read:R.read,write:{writer:R.write,isRequired:!0}}})],A.prototype,"mode",null),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],A.prototype,"offset",void 0),(0,s._)([(0,l.Cb)({type:y,json:{type:String,read:S.read,write:S.write}})],A.prototype,"unit",null),A=T=(0,s._)([(0,u.j)("esri.layers.support.ElevationInfo")],A);const g=A},50173:(e,t,r)=>{var i;r.d(t,{C:()=>i}),function(e){e[e.MATERIAL=0]="MATERIAL",e[e.MATERIAL_ALPHA=1]="MATERIAL_ALPHA",e[e.MATERIAL_DEPTH=2]="MATERIAL_DEPTH",e[e.MATERIAL_NORMAL=3]="MATERIAL_NORMAL",e[e.MATERIAL_DEPTH_SHADOWMAP_ALL=4]="MATERIAL_DEPTH_SHADOWMAP_ALL",e[e.MATERIAL_HIGHLIGHT=5]="MATERIAL_HIGHLIGHT",e[e.MATERIAL_DEPTH_SHADOWMAP_DEFAULT=6]="MATERIAL_DEPTH_SHADOWMAP_DEFAULT",e[e.MATERIAL_DEPTH_SHADOWMAP_HIGHLIGHT=7]="MATERIAL_DEPTH_SHADOWMAP_HIGHLIGHT",e[e.MAX_PASS=8]="MAX_PASS"}(i||(i={}))},97995:(e,t,r)=>{var i;r.d(t,{r:()=>i}),function(e){e[e.INTEGRATED_MESH=0]="INTEGRATED_MESH",e[e.OPAQUE_TERRAIN=1]="OPAQUE_TERRAIN",e[e.OPAQUE_MATERIAL=2]="OPAQUE_MATERIAL",e[e.OPAQUE_PLUGIN=3]="OPAQUE_PLUGIN",e[e.TRANSPARENT_MATERIAL=4]="TRANSPARENT_MATERIAL",e[e.TRANSPARENT_PLUGIN=5]="TRANSPARENT_PLUGIN",e[e.TRANSPARENT_TERRAIN=6]="TRANSPARENT_TERRAIN",e[e.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL=7]="TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL",e[e.OCCLUDED_TERRAIN=8]="OCCLUDED_TERRAIN",e[e.OCCLUDER_MATERIAL=9]="OCCLUDER_MATERIAL",e[e.TRANSPARENT_OCCLUDER_MATERIAL=10]="TRANSPARENT_OCCLUDER_MATERIAL",e[e.OCCLUSION_PIXELS=11]="OCCLUSION_PIXELS",e[e.POSTPROCESSING_ENVIRONMENT_OPAQUE=12]="POSTPROCESSING_ENVIRONMENT_OPAQUE",e[e.POSTPROCESSING_ENVIRONMENT_TRANSPARENT=13]="POSTPROCESSING_ENVIRONMENT_TRANSPARENT",e[e.LASERLINES=14]="LASERLINES",e[e.LASERLINES_CONTRAST_CONTROL=15]="LASERLINES_CONTRAST_CONTROL",e[e.HUD_MATERIAL=16]="HUD_MATERIAL",e[e.LABEL_MATERIAL=17]="LABEL_MATERIAL",e[e.LINE_CALLOUTS=18]="LINE_CALLOUTS",e[e.LINE_CALLOUTS_HUD_DEPTH=19]="LINE_CALLOUTS_HUD_DEPTH",e[e.DRAPED_MATERIAL=20]="DRAPED_MATERIAL",e[e.DRAPED_WATER=21]="DRAPED_WATER",e[e.VOXEL=22]="VOXEL",e[e.MAX_SLOTS=23]="MAX_SLOTS"}(i||(i={}))},54738:(e,t,r)=>{var i,s;function n(e,t,r={}){const s=t===i.WEBGL1?["webgl","experimental-webgl","webkit-3d","moz-webgl"]:["webgl2"];let n=null;for(const t of s){try{n=e.getContext(t,r)}catch(e){}if(n)break}return n}r.d(t,{zO:()=>i,kr:()=>n}),r(80442),(s=i||(i={}))[s.WEBGL1=1]="WEBGL1",s[s.WEBGL2=2]="WEBGL2"},35371:(e,t,r)=>{var i,s,n,o,a,l,_,u,d,c,p,h,E,y,T,R,S,A,g,m,C,b,v,N;r.d(t,{zi:()=>n,db:()=>o,w0:()=>a,VY:()=>N,wb:()=>d,q_:()=>f,Wf:()=>_,g:()=>u,Lu:()=>I,OU:()=>b,LR:()=>l,qi:()=>m,VI:()=>y,Br:()=>R,MX:()=>s,Tg:()=>S,_g:()=>v,lP:()=>T,xS:()=>c,Lm:()=>C,cw:()=>p,No:()=>E,e8:()=>h,l1:()=>A}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(i||(i={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(s||(s={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(n||(n={})),function(e){e[e.ADD=32774]="ADD",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(o||(o={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(a||(a={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(l||(l={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(_||(_={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT"}(u||(u={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(d||(d={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(c||(c={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(p||(p={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(h||(h={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(E||(E={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(y||(y={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(T||(T={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(R||(R={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(S||(S={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(A||(A={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(g||(g={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(m||(m={})),function(e){e[e.TEXTURE=0]="TEXTURE",e[e.RENDER_BUFFER=1]="RENDER_BUFFER",e[e.CUBEMAP=2]="CUBEMAP"}(C||(C={})),function(e){e[e.NONE=0]="NONE",e[e.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",e[e.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(b||(b={})),function(e){e[e.Texture=0]="Texture",e[e.Buffer=1]="Buffer",e[e.VAO=2]="VAO",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.Framebuffer=5]="Framebuffer",e[e.Renderbuffer=6]="Renderbuffer",e[e.COUNT=7]="COUNT"}(v||(v={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(N||(N={}));const I=33306;var f,L,w,O,M,x,D;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(f||(f={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(L||(L={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(w||(w={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(O||(O={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(M||(M={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(x||(x={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(D||(D={}))},65242:(e,t,r)=>{r.d(t,{a:()=>s,b:()=>n});var i=r(75215);function s(e){const t=(0,i.vU)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);