@arcgis/core 4.22.0-next.20211021 → 4.22.0-next.20211025

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 (440) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/00ac1ce56f9885a8be83.js +1 -0
  3. package/assets/esri/core/workers/chunks/01c9afe41ab4ccc597c9.js +1 -0
  4. package/assets/esri/core/workers/chunks/02a3d14adc504a51fa24.js +1 -0
  5. package/assets/esri/core/workers/chunks/035a9ab0202d5386b782.js +1 -0
  6. package/assets/esri/core/workers/chunks/062bace5505f13689c7d.js +1 -0
  7. package/assets/esri/core/workers/chunks/06c7745d813bcb540ce8.js +1 -0
  8. package/assets/esri/core/workers/chunks/0950b488a60b2abc21fc.js +1 -0
  9. package/assets/esri/core/workers/chunks/0af396f2e0de681113ef.js +1 -0
  10. package/assets/esri/core/workers/chunks/131838059f0f81d8eaee.js +1 -0
  11. package/assets/esri/core/workers/chunks/146cba0d172ec2f4eba2.js +1 -0
  12. package/assets/esri/core/workers/chunks/17e49c0dfa5a5a6213e2.js +1 -0
  13. package/assets/esri/core/workers/chunks/1a0b08190274725dc956.js +1 -0
  14. package/assets/esri/core/workers/chunks/1add7f0779accdf8d204.js +1 -0
  15. package/assets/esri/core/workers/chunks/20b81d11e6286d347bfc.js +1 -0
  16. package/assets/esri/core/workers/chunks/{e596bd3de960d1dc1c57.js → 2207580a78ee292ed9b8.js} +1 -1
  17. package/assets/esri/core/workers/chunks/2d3646a83465c75986f9.js +1 -0
  18. package/assets/esri/core/workers/chunks/2d38ee3ef3ebe32a1194.js +1 -0
  19. package/assets/esri/core/workers/chunks/3737dcc3c0dea3ca05d5.js +1 -0
  20. package/assets/esri/core/workers/chunks/3e2042e70647c1afa6aa.js +1 -0
  21. package/assets/esri/core/workers/chunks/3ebfaab2855a2236a95d.js +1 -0
  22. package/assets/esri/core/workers/chunks/{d6fe616192a8efbfbc3e.js → 440f8101402a4c0d7019.js} +1 -1
  23. package/assets/esri/core/workers/chunks/4587d770767966985e22.js +1 -0
  24. package/assets/esri/core/workers/chunks/487b8892fae85810a8c0.js +1 -0
  25. package/assets/esri/core/workers/chunks/4901a78f32c3ea6b823b.js +1 -0
  26. package/assets/esri/core/workers/chunks/496fe47fc4d28e1a716d.js +1 -0
  27. package/assets/esri/core/workers/chunks/{9f22f47d4b2e72d7bdcf.js → 4c010119c24510ea31bb.js} +2 -2
  28. package/assets/esri/core/workers/chunks/{9f22f47d4b2e72d7bdcf.js.LICENSE.txt → 4c010119c24510ea31bb.js.LICENSE.txt} +0 -0
  29. package/assets/esri/core/workers/chunks/4f5076e1f2b18ce8156d.js +1 -0
  30. package/assets/esri/core/workers/chunks/{f291ebc4b089bd1f0a3f.js → 50e86a6bb13042b1dbac.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{64d9a062c1f1ac08a3ac.js → 565020b1c02a8cb33c2b.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{d78c60a22f76df7c48c7.js → 59640d78295e2e363f18.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{a0356f320a1b2fbd03f0.js → 5ac2b2598245aa17cdbd.js} +1 -1
  34. package/assets/esri/core/workers/chunks/5b4a8cce5601cc92c8a3.js +1 -0
  35. package/assets/esri/core/workers/chunks/5b92d5d4049622531109.js +1 -0
  36. package/assets/esri/core/workers/chunks/{751c1a2838b54a74a9a6.js → 5f3caa0ddb215342c728.js} +2 -2
  37. package/assets/esri/core/workers/chunks/615e995d5ce8fa044b09.js +1 -0
  38. package/assets/esri/core/workers/chunks/62a2453699e0dd2393b9.js +1 -0
  39. package/assets/esri/core/workers/chunks/67013547be1a7ae1670a.js +1 -0
  40. package/assets/esri/core/workers/chunks/67eddf4808f8888faeb4.js +1 -0
  41. package/assets/esri/core/workers/chunks/695dbedff2340aa019ba.js +1 -0
  42. package/assets/esri/core/workers/chunks/6a7e388c94206d2f61ff.js +1 -0
  43. package/assets/esri/core/workers/chunks/6e22b69d55e791ab3d9a.js +1 -0
  44. package/assets/esri/core/workers/chunks/71e6c0c5ef0aa7eb1703.js +1 -0
  45. package/assets/esri/core/workers/chunks/7a74e230439c5111f852.js +1 -0
  46. package/assets/esri/core/workers/chunks/7e76a8e6fa67e607d09e.js +1 -0
  47. package/assets/esri/core/workers/chunks/7fe4985ca0cb3e6d35c6.js +1 -0
  48. package/assets/esri/core/workers/chunks/8027330714ff5ffb020e.js +1 -0
  49. package/assets/esri/core/workers/chunks/844b564d1a422a17f6ac.js +1 -0
  50. package/assets/esri/core/workers/chunks/856f9281a08cb032238e.js +1 -0
  51. package/assets/esri/core/workers/chunks/89b4983de872780e9aa1.js +1 -0
  52. package/assets/esri/core/workers/chunks/8f3bc0cd2c2b01ab80cd.js +1 -0
  53. package/assets/esri/core/workers/chunks/8fd912e325ccd48b98a9.js +1 -0
  54. package/assets/esri/core/workers/chunks/901907a5c01f0fd1478f.js +1 -0
  55. package/assets/esri/core/workers/chunks/92a0b88a14c92239df8a.js +1 -0
  56. package/assets/esri/core/workers/chunks/972e9aeb3c29c9bf441a.js +1 -0
  57. package/assets/esri/core/workers/chunks/9758c34ce61c3714515a.js +1 -0
  58. package/assets/esri/core/workers/chunks/{457ea4feaa006d60c6b1.js → 9a04d087a29f0f3937a3.js} +1 -1
  59. package/assets/esri/core/workers/chunks/9b0bb171224b35ce2031.js +1 -0
  60. package/assets/esri/core/workers/chunks/9cbe7afdaef8720dfc8d.js +1 -0
  61. package/assets/esri/core/workers/chunks/9ccde5b6562f0007fe45.js +1 -0
  62. package/assets/esri/core/workers/chunks/9d320bbeedeea15522ab.js +1 -0
  63. package/assets/esri/core/workers/chunks/a001b3b4527817548094.js +1 -0
  64. package/assets/esri/core/workers/chunks/{197b72bca45065e0eb4a.js → a0c580d4a1915ddd3fe4.js} +1 -1
  65. package/assets/esri/core/workers/chunks/a4a9c15929b43d83701f.js +1 -0
  66. package/assets/esri/core/workers/chunks/a54d11f44721f808b82f.js +1 -0
  67. package/assets/esri/core/workers/chunks/a646a11673d513c00e7a.js +1 -0
  68. package/assets/esri/core/workers/chunks/a792e2bc7cafdc29f05e.js +1 -0
  69. package/assets/esri/core/workers/chunks/acae1771697034f265b1.js +1 -0
  70. package/assets/esri/core/workers/chunks/af2ee804a9c63eea610c.js +1 -0
  71. package/assets/esri/core/workers/chunks/b28b487047da3aeef3fd.js +1 -0
  72. package/assets/esri/core/workers/chunks/b3e57824a5855cb37a96.js +1 -0
  73. package/assets/esri/core/workers/chunks/b89449ead32e4cd21edd.js +1 -0
  74. package/assets/esri/core/workers/chunks/b99891ed5a02cab02173.js +1 -0
  75. package/assets/esri/core/workers/chunks/bac84bc621be73a7a4bc.js +1 -0
  76. package/assets/esri/core/workers/chunks/{25037dcf8a0c72b7b647.js → bbe068388167e9dd0c11.js} +1 -1
  77. package/assets/esri/core/workers/chunks/c271a1857bcc4e9a36dd.js +1 -0
  78. package/assets/esri/core/workers/chunks/{eb3035e49a45ecc82575.js → c5030664720fcdc6d85e.js} +1 -1
  79. package/assets/esri/core/workers/chunks/c534ed122f8a1202d3a3.js +1 -0
  80. package/assets/esri/core/workers/chunks/c5ef2e28b0c539ddb6a7.js +1 -0
  81. package/assets/esri/core/workers/chunks/c65e5ccfae03d148d82b.js +1 -0
  82. package/assets/esri/core/workers/chunks/c91660f3982be4e03705.js +1 -0
  83. package/assets/esri/core/workers/chunks/ce93113b99bdbeddd07b.js +1 -0
  84. package/assets/esri/core/workers/chunks/cf2d408e669cfa2c65be.js +1 -0
  85. package/assets/esri/core/workers/chunks/d08f63ffeecefa02ad91.js +1 -0
  86. package/assets/esri/core/workers/chunks/{8d33644192c01e5416b4.js → d1a71b58ef62e71979c5.js} +1 -1
  87. package/assets/esri/core/workers/chunks/d30eade5afecd334f6cb.js +1 -0
  88. package/assets/esri/core/workers/chunks/d8782d0856b9d815cb6c.js +1 -0
  89. package/assets/esri/core/workers/chunks/db16c21b650001502e6c.js +1 -0
  90. package/assets/esri/core/workers/chunks/db18110c57253a31ac96.js +1 -0
  91. package/assets/esri/core/workers/chunks/dbaa5fb466d6c0214f24.js +1 -0
  92. package/assets/esri/core/workers/chunks/deae370788a7aacf4dd5.js +1 -0
  93. package/assets/esri/core/workers/chunks/e6ca132e1eeea3aa174e.js +1 -0
  94. package/assets/esri/core/workers/chunks/e878ccc431729ef3360f.js +1 -0
  95. package/assets/esri/core/workers/chunks/eb124f15ad4b9193f00a.js +1 -0
  96. package/assets/esri/core/workers/chunks/ebc71c06c1c22aaef54e.js +1 -0
  97. package/assets/esri/core/workers/chunks/f183da283af0836421ab.js +1 -0
  98. package/assets/esri/core/workers/chunks/f42bdc2a134833d33b4e.js +1 -0
  99. package/assets/esri/core/workers/chunks/{736d628cda4e02d40337.js → f8612c2fc5739e98be58.js} +1 -1
  100. package/assets/esri/core/workers/chunks/f965e3e5f6f4f9ba54ac.js +1 -0
  101. package/assets/esri/core/workers/chunks/fa4089640f480b69962e.js +1 -0
  102. package/assets/esri/core/workers/chunks/fb219563e5169ea67d68.js +1 -0
  103. package/assets/esri/libs/i3s/i3s.wasm +0 -0
  104. package/chunks/ChapmanAtmosphere.glsl.js +56 -77
  105. package/chunks/Clouds.glsl.js +1 -1
  106. package/chunks/Pattern.glsl.js +9 -11
  107. package/chunks/RibbonLine.glsl.js +60 -68
  108. package/chunks/i3s.js +1 -1
  109. package/chunks/mat4.js +1 -1
  110. package/chunks/vec3.js +1 -1
  111. package/core/Collection.js +1 -1
  112. package/core/Loadable.js +1 -1
  113. package/core/accessorSupport/ensureType.js +1 -1
  114. package/core/promiseUtils.js +1 -1
  115. package/core/support/OwningCollection.js +1 -1
  116. package/core/workers/RemoteClient.js +1 -1
  117. package/core/workers/WorkerOwner.js +1 -1
  118. package/core/workers/workers.js +2 -2
  119. package/geometry/projection.js +1 -1
  120. package/identity/IdentityManagerBase.js +1 -1
  121. package/interfaces.d.ts +205 -497
  122. package/layers/ElevationLayer.js +1 -1
  123. package/layers/GeoJSONLayer.js +1 -1
  124. package/layers/ImageryTileLayer.js +1 -1
  125. package/layers/VectorTileLayer.js +1 -1
  126. package/layers/VoxelWasmPerScene.js +1 -1
  127. package/layers/WCSLayer.js +1 -1
  128. package/layers/analyses/AreaMeasurement3D.js +1 -1
  129. package/layers/analyses/DirectLineMeasurement3D.js +1 -1
  130. package/layers/analyses/Slice.js +1 -1
  131. package/layers/effects/EffectList.js +1 -1
  132. package/layers/effects/effects.js +1 -1
  133. package/layers/effects/jsonUtils.js +1 -1
  134. package/layers/effects/parser.js +1 -1
  135. package/layers/effects/utils.js +5 -0
  136. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  137. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  138. package/layers/graphics/data/QueryEngine.js +1 -1
  139. package/layers/graphics/data/QueryEngineResult.js +1 -1
  140. package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
  141. package/layers/mixins/ImageryTileMixin.js +1 -1
  142. package/layers/support/RasterWorker.js +1 -1
  143. package/layers/support/TilemapCache.js +1 -1
  144. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  145. package/layers/support/rasterDatasets/ImageServerRaster.js +1 -1
  146. package/layers/support/rasterDatasets/WCSRaster.js +1 -1
  147. package/layers/support/rasterFunctions/pixelUtils.js +1 -1
  148. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  149. package/package.json +2 -2
  150. package/portal/support/portalLayers.js +1 -1
  151. package/request.js +1 -1
  152. package/smartMapping/renderers/support/utils.js +1 -1
  153. package/smartMapping/statistics/support/WorkerClient.js +1 -1
  154. package/smartMapping/statistics/support/statsWorker.js +1 -1
  155. package/smartMapping/statistics/support/utils.js +1 -1
  156. package/smartMapping/support/adapters/CSVLayerAdapter.js +1 -1
  157. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  158. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  159. package/smartMapping/support/adapters/support/utils.js +1 -1
  160. package/statistics/utils.js +1 -1
  161. package/support/GraphicsCollection.js +1 -1
  162. package/support/revision.js +1 -1
  163. package/symbols/FillSymbol3DLayer.js +1 -1
  164. package/symbols/IconSymbol3DLayer.js +1 -1
  165. package/symbols/LineSymbol3DLayer.js +1 -1
  166. package/symbols/patterns/LinePattern3D.js +5 -0
  167. package/symbols/patterns/LineStylePattern3D.d.ts +4 -0
  168. package/symbols/patterns/LineStylePattern3D.js +5 -0
  169. package/symbols/patterns/StylePattern3D.js +1 -1
  170. package/symbols/patterns/lineStyles.js +5 -0
  171. package/symbols/patterns/utils.js +1 -1
  172. package/symbols/support/Symbol3DFillMaterial.js +1 -1
  173. package/symbols/support/Symbol3DIconOutline.js +5 -0
  174. package/symbols/support/Symbol3DMaterial.js +1 -1
  175. package/symbols/support/Symbol3DOutline.js +1 -1
  176. package/symbols/support/defaults3D.js +1 -1
  177. package/symbols/support/previewSymbol3D.js +1 -1
  178. package/symbols/support/symbolLayerUtils3D.js +1 -1
  179. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  180. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  181. package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
  182. package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
  183. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  184. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  185. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  186. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  187. package/views/2d/layers/features/controllers/EditsQueue.js +1 -1
  188. package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
  189. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  190. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  191. package/views/2d/layers/support/FeatureLayerProxy.js +1 -1
  192. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  193. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  194. package/views/3d/environment/CloudsGenerator.js +1 -1
  195. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  196. package/views/3d/environment/PanoramicAtmosphere.js +1 -1
  197. package/views/3d/environment/SimpleAtmosphere.js +1 -1
  198. package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
  199. package/views/3d/externalRenderers.js +1 -1
  200. package/views/3d/interactive/Manipulator3D.js +1 -1
  201. package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
  202. package/views/3d/interactive/analysisTools/slice/images/Factory.js +5 -0
  203. package/views/3d/interactive/analysisTools/slice/sliceToolConfig.js +1 -1
  204. package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
  205. package/views/3d/interactive/editingTools/settings.js +1 -1
  206. package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
  207. package/views/3d/interactive/graphics/Slice/SliceController.js +1 -1
  208. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  209. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  210. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  211. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  212. package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
  213. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  214. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  215. package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
  216. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  217. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  218. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  219. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  220. package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
  221. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  222. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  223. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  224. package/views/3d/layers/I3SMeshView3D.js +1 -1
  225. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  226. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  227. package/views/3d/layers/analyses/AreaMeasurement3D/AreaMeasurementView3D.js +1 -1
  228. package/views/3d/layers/analyses/AreaMeasurement3D/support/AreaMeasurementPathHelper.js +1 -1
  229. package/views/3d/layers/analyses/AreaMeasurement3D/support/AreaMeasurementVisualization.js +1 -1
  230. package/views/3d/layers/analyses/DirectLineMeasurement3D/DirectLineMeasurementView3D.js +1 -1
  231. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  232. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  233. package/views/3d/layers/graphics/ElevationQuery.js +1 -1
  234. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  235. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  236. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  237. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  238. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  239. package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
  240. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  241. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  242. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  243. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  244. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  245. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  246. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  247. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  248. package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
  249. package/views/3d/layers/graphics/Labeler.js +1 -1
  250. package/views/3d/layers/graphics/Loadable.js +1 -1
  251. package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
  252. package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
  253. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  254. package/views/3d/layers/graphics/labelPlacement.js +1 -1
  255. package/views/3d/layers/graphics/pointUtils.js +1 -1
  256. package/views/3d/layers/i3s/I3SAttributeOverrides.js +1 -1
  257. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  258. package/views/3d/layers/i3s/I3SStreamDataController.js +1 -1
  259. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  260. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  261. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  262. package/views/3d/layers/support/patternUtils.js +1 -1
  263. package/views/3d/state/GoToOperation.js +1 -1
  264. package/views/3d/state/ViewStateManager.js +1 -1
  265. package/views/3d/support/LaserLineRenderer.js +1 -1
  266. package/views/3d/support/SharedSymbolResources.js +1 -1
  267. package/views/3d/support/StreamDataLoader.js +1 -1
  268. package/views/3d/support/StreamTextureCollection.js +5 -0
  269. package/views/3d/support/TextureCollection.js +1 -1
  270. package/views/3d/support/debugFlags.js +1 -1
  271. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  272. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  273. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  274. package/views/3d/terrain/OverlayManager.js +1 -1
  275. package/views/3d/terrain/OverlayRenderTarget.js +1 -1
  276. package/views/3d/terrain/OverlayRenderer.js +1 -1
  277. package/views/3d/terrain/Tile.js +1 -1
  278. package/views/3d/webgl-engine/Stage.js +1 -1
  279. package/views/3d/webgl-engine/core/material/RenderTexture.js +1 -1
  280. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +13 -12
  281. package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +1 -1
  282. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +10 -3
  283. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  284. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  285. package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
  286. package/views/3d/webgl-engine/lib/GLMaterialTexture.js +1 -1
  287. package/views/3d/webgl-engine/lib/GLMaterials.js +1 -1
  288. package/views/3d/webgl-engine/lib/Material.js +1 -1
  289. package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
  290. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  291. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  292. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  293. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  294. package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
  295. package/views/3d/webgl-engine/lib/TextTexture.js +1 -1
  296. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  297. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  298. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  299. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  300. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  301. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  302. package/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +1 -1
  303. package/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +1 -1
  304. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  305. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  306. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  307. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  308. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  309. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  310. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  311. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  312. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  313. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  314. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  315. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  316. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  317. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  318. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  319. package/views/3d/webgl-engine/materials/WaterGLMaterial.js +1 -1
  320. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  321. package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
  322. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  323. package/views/3d/webgl-engine/parts/Model.js +1 -1
  324. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  325. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  326. package/views/LayerViewManager.js +1 -1
  327. package/views/SceneView.js +1 -1
  328. package/views/ToolViewManager.js +1 -1
  329. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  330. package/views/support/AllocationTracer.js +1 -1
  331. package/views/support/DefaultsFromMap.js +1 -1
  332. package/views/support/QueueProcessor.js +1 -1
  333. package/views/webgl/capabilities/load.js +1 -1
  334. package/webscene/Slide.js +1 -1
  335. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  336. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  337. package/widgets/BuildingExplorer/support/layerUtils.js +1 -1
  338. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  339. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  340. package/widgets/Editor/UpdateWorkflow.js +1 -1
  341. package/widgets/Feature/FeatureViewModel.js +1 -1
  342. package/widgets/Home/HomeViewModel.js +1 -1
  343. package/widgets/Locate/LocateViewModel.js +1 -1
  344. package/widgets/Popup/PopupViewModel.js +1 -1
  345. package/widgets/Search/SearchViewModel.js +1 -1
  346. package/widgets/Search.js +1 -1
  347. package/widgets/Sketch/SketchViewModel.js +1 -1
  348. package/widgets/Slice/SliceViewModel.js +1 -1
  349. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  350. package/assets/esri/core/workers/chunks/0283801d442984997abe.js +0 -1
  351. package/assets/esri/core/workers/chunks/0419e14a520b8fcf3e7a.js +0 -1
  352. package/assets/esri/core/workers/chunks/05318446b6a40caea361.js +0 -1
  353. package/assets/esri/core/workers/chunks/09e714d4381649348ac9.js +0 -1
  354. package/assets/esri/core/workers/chunks/0cecd668b9d5d3f83293.js +0 -1
  355. package/assets/esri/core/workers/chunks/13a73a88efd4f464173e.js +0 -1
  356. package/assets/esri/core/workers/chunks/1576727e8174d672555b.js +0 -1
  357. package/assets/esri/core/workers/chunks/1a3cbeb0a53d03a51dad.js +0 -1
  358. package/assets/esri/core/workers/chunks/1b8524b617bfc6fe422c.js +0 -1
  359. package/assets/esri/core/workers/chunks/1dc1d750046912ff6cef.js +0 -1
  360. package/assets/esri/core/workers/chunks/21fa174c114640be5e40.js +0 -1
  361. package/assets/esri/core/workers/chunks/2a3f6e56079620421a02.js +0 -1
  362. package/assets/esri/core/workers/chunks/2a5bcc73e55986ad93fe.js +0 -1
  363. package/assets/esri/core/workers/chunks/2a6f2e3d639aae491171.js +0 -1
  364. package/assets/esri/core/workers/chunks/2c17d1bad17bcee53f7d.js +0 -1
  365. package/assets/esri/core/workers/chunks/2cea27a0d07aa9a88ad4.js +0 -1
  366. package/assets/esri/core/workers/chunks/2e193d97d199b29b00c2.js +0 -1
  367. package/assets/esri/core/workers/chunks/2eb41fdf0d0a3b0c3232.js +0 -1
  368. package/assets/esri/core/workers/chunks/2f09ea639ca5d1d6ca7e.js +0 -1
  369. package/assets/esri/core/workers/chunks/2fb847ab1440bd1bdf15.js +0 -1
  370. package/assets/esri/core/workers/chunks/402d22ebbae608760b4f.js +0 -1
  371. package/assets/esri/core/workers/chunks/44daef7f0cbc6f6af09f.js +0 -1
  372. package/assets/esri/core/workers/chunks/46899156159e398c693f.js +0 -1
  373. package/assets/esri/core/workers/chunks/46bf8921db25845c63c0.js +0 -1
  374. package/assets/esri/core/workers/chunks/4eb23554e375350f73b5.js +0 -1
  375. package/assets/esri/core/workers/chunks/551917be63a513dfa4de.js +0 -1
  376. package/assets/esri/core/workers/chunks/564f6f5484bcb13ebb2b.js +0 -1
  377. package/assets/esri/core/workers/chunks/61df67ae47b7fb5875d9.js +0 -1
  378. package/assets/esri/core/workers/chunks/62642a8fc7bafe339984.js +0 -1
  379. package/assets/esri/core/workers/chunks/6304f4e53027df04eb8f.js +0 -1
  380. package/assets/esri/core/workers/chunks/6331987617ad166ea098.js +0 -1
  381. package/assets/esri/core/workers/chunks/6b13fcbc71c0088d317e.js +0 -1
  382. package/assets/esri/core/workers/chunks/6f7a6841e7269d2764ad.js +0 -1
  383. package/assets/esri/core/workers/chunks/70110efd2de23d9a5263.js +0 -1
  384. package/assets/esri/core/workers/chunks/7eae3f0588cde44fce39.js +0 -1
  385. package/assets/esri/core/workers/chunks/80d3c7a429c6412f1a8d.js +0 -1
  386. package/assets/esri/core/workers/chunks/80deebdf54bea04a0889.js +0 -1
  387. package/assets/esri/core/workers/chunks/81aa5fe7dcb4fdeb0974.js +0 -1
  388. package/assets/esri/core/workers/chunks/840d08b41913cad4df89.js +0 -1
  389. package/assets/esri/core/workers/chunks/85d154aeb511c5d70bb1.js +0 -1
  390. package/assets/esri/core/workers/chunks/8681e99e2bc9ece61c43.js +0 -1
  391. package/assets/esri/core/workers/chunks/8e5ef967f6518f4c93b1.js +0 -1
  392. package/assets/esri/core/workers/chunks/8edd7f70c8b95c34125c.js +0 -1
  393. package/assets/esri/core/workers/chunks/9044a7b90a53312b6392.js +0 -1
  394. package/assets/esri/core/workers/chunks/905b4dfc1ce57a225fa4.js +0 -1
  395. package/assets/esri/core/workers/chunks/945f90b31ebfae623ea0.js +0 -1
  396. package/assets/esri/core/workers/chunks/9943fd69b67cd1871d68.js +0 -1
  397. package/assets/esri/core/workers/chunks/9ad91c23480ffb656030.js +0 -1
  398. package/assets/esri/core/workers/chunks/9d103681372ab01a4147.js +0 -1
  399. package/assets/esri/core/workers/chunks/9d3230f59b4c4d1b2713.js +0 -1
  400. package/assets/esri/core/workers/chunks/9db75bc0980d16b730a1.js +0 -1
  401. package/assets/esri/core/workers/chunks/a0659b8bdc067da7badd.js +0 -1
  402. package/assets/esri/core/workers/chunks/a480ee9a994410177961.js +0 -1
  403. package/assets/esri/core/workers/chunks/a9b279975d7df0f295d7.js +0 -1
  404. package/assets/esri/core/workers/chunks/aa3abaa5ad4a5a3bcb84.js +0 -1
  405. package/assets/esri/core/workers/chunks/aa8e607f908297786675.js +0 -1
  406. package/assets/esri/core/workers/chunks/ab5a302b5f62d38293f9.js +0 -1
  407. package/assets/esri/core/workers/chunks/abd6a84396e0eb3f01ad.js +0 -1
  408. package/assets/esri/core/workers/chunks/abe9f8516b03a3fb0477.js +0 -1
  409. package/assets/esri/core/workers/chunks/aff6aa5c7f75f8e052d9.js +0 -1
  410. package/assets/esri/core/workers/chunks/b601cc5304b132536239.js +0 -1
  411. package/assets/esri/core/workers/chunks/b85f614ddbddd3c3007e.js +0 -1
  412. package/assets/esri/core/workers/chunks/b944f4ab25a691b3e611.js +0 -1
  413. package/assets/esri/core/workers/chunks/bbdacddb61e651ca0098.js +0 -1
  414. package/assets/esri/core/workers/chunks/c2fa728e805637a1783e.js +0 -1
  415. package/assets/esri/core/workers/chunks/c901f5f85d962254fc2c.js +0 -1
  416. package/assets/esri/core/workers/chunks/ca173b908d89a4e334f6.js +0 -1
  417. package/assets/esri/core/workers/chunks/cc2ef3bfa1f614d7452c.js +0 -1
  418. package/assets/esri/core/workers/chunks/cdb32a9ac9f5804c4212.js +0 -1
  419. package/assets/esri/core/workers/chunks/ce9a4997973da80141a5.js +0 -1
  420. package/assets/esri/core/workers/chunks/d0674b50a358d3bb9db2.js +0 -1
  421. package/assets/esri/core/workers/chunks/d18b7b4b3b9bea7204b0.js +0 -1
  422. package/assets/esri/core/workers/chunks/d2ce983f7babdf18a0ed.js +0 -1
  423. package/assets/esri/core/workers/chunks/d38a0d867dc6cecdc551.js +0 -1
  424. package/assets/esri/core/workers/chunks/e39ca33e9e463c1d6060.js +0 -1
  425. package/assets/esri/core/workers/chunks/e471d103205018a5cf7f.js +0 -1
  426. package/assets/esri/core/workers/chunks/e542fb044fc96f7e8af2.js +0 -1
  427. package/assets/esri/core/workers/chunks/e94e00a28591337b2def.js +0 -1
  428. package/assets/esri/core/workers/chunks/eb2709ccbc001f42ac1b.js +0 -1
  429. package/assets/esri/core/workers/chunks/f905511ca5f9b59fc17f.js +0 -1
  430. package/assets/esri/core/workers/chunks/f910e80dd87727af5184.js +0 -1
  431. package/assets/esri/core/workers/chunks/f9300a24305b0af1d227.js +0 -1
  432. package/assets/esri/core/workers/chunks/fa1e1ac5b3ef7bdf8a78.js +0 -1
  433. package/assets/esri/core/workers/chunks/fce76a84c7d25d8d47e8.js +0 -1
  434. package/assets/esri/core/workers/chunks/fef4f97fbe861a1b60e8.js +0 -1
  435. package/layers/AreaMeasurementLayer.d.ts +0 -4
  436. package/layers/DirectLineMeasurementLayer.d.ts +0 -4
  437. package/symbols/support/symbolPreview.d.ts +0 -4
  438. package/symbols/support/symbolPreview.js +0 -5
  439. package/views/3d/layers/AreaMeasurementLayerView3D.d.ts +0 -4
  440. package/views/3d/layers/DirectLineMeasurementLayerView3D.d.ts +0 -4
@@ -0,0 +1 @@
1
+ (self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9625],{41993:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=41993,e.exports=t},99880:(e,t,r)=>{"use strict";r.d(t,{V:()=>l});var s=r(68773),n=(r(3172),r(20102)),i=r(92604),o=r(17452);const a=i.Z.getLogger("esri.assets");function l(e){if(!s.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(s.Z.assetsPath,e)}},81049:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O});var s,n=r(43697),i=r(3894),o=r(32448),a=r(22974),l=r(70586),h=r(71143),c=r(90584),u=r(5600),d=r(75215),p=r(52421),f=r(52011),m=r(58971),g=r(39020);class _{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 h.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})),y=()=>{};function w(e){return e?e instanceof T?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function b(e){if(e&&e.length)return e[0]}function S(e,t,r,s){const n=Math.min(e.length-r,t.length-s);let i=0;for(;i<n&&e[r+i]===t[s+i];)i++;return i}function I(e,t,r,s){t&&t.forEach(((t,n,i)=>{e.push(t),I(e,r.call(s,t,n,i),r,s)}))}const A=new Set,k=new Set,C=new Set,x=new Map;let U=0,T=s=class extends o.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new _,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:U++})}static isCollection(e){return null!=e&&e instanceof s}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof s?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,m.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,...w(e)),this._emitAfterChanges(1))}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=y,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,m.it)(this._observable),this._emitBeforeChanges(1))return this;const r=this.getNextIndex(null!=t?t:null);return this._splice(r,0,e),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,m.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t);return this._splice(r,0,...w(e)),this._emitAfterChanges(1),this}removeAll(){if((0,m.it)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(2),e}clone(){return(0,m.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...e){(0,m.it)(this._observable);const t=e.map(w);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.it)(this._observable),!this.length||this._emitBeforeChanges(2))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(2)}every(e,t){return(0,m.it)(this._observable),this._items.every(e,t)}filter(e,t){let r;return(0,m.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,m.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,m.it)(this._observable);const r=[];return I(r,this,e,t),new s(r)}forEach(e,t){return(0,m.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.it)(this._observable),this._items[e]}getNextIndex(e){(0,m.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,m.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.it)(this._observable);const r=this._items.map(e,t);return new s({items:r})}reorder(e,t=this.length-1){(0,m.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(4))return e;this._splice(r,1),this._splice(t,0,e),this._emitAfterChanges(4)}return e}}pop(){if((0,m.it)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=b(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,m.it)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,...e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,m.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,m.it)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,m.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=b(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,m.it)(this._observable),!e||!e.length||this._emitBeforeChanges(2))return[];const t=e instanceof s?e.toArray():e,r=this._items,n=[],i=t.length;for(let e=0;e<i;e++){const s=t[e],i=r.indexOf(s);if(i>-1){const s=1+S(t,r,e+1,i+1),o=this._splice(i,s);o&&o.length>0&&n.push.apply(n,o),e+=s-1}}return this._emitAfterChanges(2),n}reverse(){if((0,m.it)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,...e)),this._emitAfterChanges(4),this}shift(){if((0,m.it)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=b(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,m.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.it)(this._observable),this._items.some(e,t)}sort(e){if((0,m.it)(this._observable),!this.length||this._emitBeforeChanges(4))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(4),this}splice(e,t,...r){(0,m.it)(this._observable);const s=(t?2:0)|(r.length?1:0);if(this._emitBeforeChanges(s))return[];const n=this._splice(e,t,...r)||[];return this._emitAfterChanges(s),n}toArray(){return(0,m.it)(this._observable),this._items.slice()}toJSON(){return(0,m.it)(this._observable),this.toArray()}toLocaleString(){return(0,m.it)(this._observable),this._items.toLocaleString()}toString(){return(0,m.it)(this._observable),this._items.toString()}unshift(...e){return(0,m.it)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,...e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,...r){const s=this._items,n=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,c.Os)((()=>this._dispatchChange()))),t){if(o=s.splice(e,t),this.hasEventListener("before-remove")){const t=v.acquire();t.target=this,t.cancellable=!0;for(let r=0,n=o.length;r<n;r++)i=o[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),s.splice(e,0,i),e+=1,r-=1,n-=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(n){const e=[];for(const t of r){const r=n.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 n=v.acquire();n.target=this,n.cancellable=!0;const a=v.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(n.reset(l),this.emit("before-add",n),n.defaultPrevented||(o?s.push(l):s.splice(e++,0,l),this._set("length",s.length),i&&(a.reset(l),this.emit("after-add",a)))):(o?s.push(l):s.splice(e++,0,l),this._set("length",s.length),a.reset(l),this.emit("after-add",a));v.release(a),v.release(n)}else{if(o)for(const e of r)s.push(e);else s.splice(e,0,...r);this._set("length",s.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;A.clear(),k.clear(),C.clear();for(const{added:t,removed:r}of e){if(t)if(0===C.size&&0===k.size)for(const e of t)A.add(e);else for(const e of t)k.has(e)?(C.add(e),k.delete(e)):C.has(e)||A.add(e);if(r)if(0===C.size&&0===A.size)for(const e of r)k.add(e);else for(const e of r)A.has(e)?A.delete(e):(C.delete(e),k.add(e))}const r=i.Z.acquire();A.forEach((e=>{r.push(e)}));const s=i.Z.acquire();k.forEach((e=>{s.push(e)}));const n=this._items,o=t.items,a=i.Z.acquire();if(C.forEach((e=>{o.indexOf(e)!==n.indexOf(e)&&a.push(e)})),t.listeners&&(r.length||s.length||a.length)){const e={target:this,added:r,removed:s,moved:a},n=t.listeners.length;for(let r=0;r<n;r++){const s=t.listeners[r];s.removed||s.callback.call(this,e)}}i.Z.release(r),i.Z.release(s),i.Z.release(a)}A.clear(),k.clear(),C.clear()}};T.ofType=e=>{if(!e)return s;if(x.has(e))return x.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 s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends s{};return(0,n._)([(0,p.c)({Type:e,ensureType:"function"==typeof e?(0,d.se)(e):(0,d.N7)(e)})],r.prototype,"itemType",void 0),r=(0,n._)([(0,f.j)(`esri.core.Collection<${t}>`)],r),x.set(e,r),r},(0,n._)([(0,u.Cb)()],T.prototype,"length",void 0),(0,n._)([(0,u.Cb)()],T.prototype,"items",null),T=s=(0,n._)([(0,f.j)("esri.core.Collection")],T);const O=T},32448:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var s=r(43697),n=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 s=this.target||this;return[...r].forEach((e=>{e.call(s,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)||[],s=r.indexOf(t);s>=0&&r.splice(s,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,s._)([(0,o.j)("esri.core.Evented")],r),r};let r=class extends n.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,s._)([(0,o.j)("esri.core.Evented")],r),e.EventedAccessor=r}(a||(a={}));const l=a},61247:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var s=r(43697),n=r(15923),i=r(81049),o=r(70586),a=r(5600),l=r(52011);let h=class extends n.Z{constructor(e){super(e),this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach((t=>{e+=t.length})),e}add(e,t){if(!this._isHandle(e)&&!Array.isArray(e)&&!i.Z.isCollection(e))return this;const r=this._getOrCreateGroup(t);return Array.isArray(e)||i.Z.isCollection(e)?e.forEach((e=>this._isHandle(e)&&r.push(e))):r.push(e),this.notifyChange("size"),this}forEach(e,t){if("function"==typeof e)this._groups.forEach((t=>t.forEach(e)));else{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(this._ensureGroupKey(e))}remove(e){if(Array.isArray(e)||i.Z.isCollection(e))return e.forEach(this.remove,this),this;if(!this.has(e))return this;const t=this._getGroup(e);for(let e=0;e<t.length;e++)t[e].remove();return this._deleteGroup(e),this.notifyChange("size"),this}removeAll(){return this._groups.forEach((e=>{for(let t=0;t<e.length;t++)e[t].remove()})),this._groups.clear(),this.notifyChange("size"),this}_isHandle(e){return e&&!!e.remove}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(this._ensureGroupKey(e),t),t}_getGroup(e){return(0,o.j0)(this._groups.get(this._ensureGroupKey(e)))}_deleteGroup(e){return this._groups.delete(this._ensureGroupKey(e))}_ensureGroupKey(e){return e||"_default_"}};(0,s._)([(0,a.Cb)({readOnly:!0})],h.prototype,"size",null),h=(0,s._)([(0,l.j)("esri.core.Handles")],h);const c=h},609:(e,t,r)=>{"use strict";r.d(t,{D:()=>c,v:()=>h});var s=r(43697),n=r(15923),i=r(70586),o=r(95330),a=r(52011);class l{constructor(e){this.instance=e,this._resolver=(0,o.dD)(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=1,this._cleanUp()}),(()=>{this._status=2,this._cleanUp()}))}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,o.zE)())}when(e,t){return this._resolver.promise.then(e,t)}_cleanUp(){this._allPromise=this._resolvingPromises=this._allPromise=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,o.dD)(),t=[...this._resolvingPromises,(0,i.j0)(e.promise)],r=this._allPromise=Promise.all(t);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve(this.instance)}),(e=>{this.isFulfilled()||this._allPromise!==r||(0,o.D_)(e)||this._resolver.reject(e)})),e.resolve()}}const h=e=>{let t=class extends e{constructor(...e){super(...e),this._promiseProps=new l(this),this.addResolvingPromise(Promise.resolve())}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return new Promise(((e,t)=>{this._promiseProps.when(e,t)})).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}};return t=(0,s._)([(0,a.j)("esri.core.Promise")],t),t};let c=class extends(h(n.Z)){};c=(0,s._)([(0,a.j)("esri.core.Promise")],c)},52421:(e,t,r)=>{"use strict";function s(e){return(t,r)=>{t[r]=e}}r.d(t,{c:()=>s})},91460:(e,t,r)=>{"use strict";function s(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function n(e,t,r){if(!s(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 s=t.slice();for(const t of s)e.addEventListener(t,r);return{remove(){for(const t of s)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function i(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const i=n(e,t,(t=>{i.remove(),r.call(e,t)}));return{remove(){i.remove()}}}r.d(t,{vT:()=>s,on:()=>n,IH:()=>i})},35454:(e,t,r)=>{"use strict";r.d(t,{Xn:()=>n,wY:()=>i});var s=r(78286);class n{constructor(e,t={ignoreUnknown:!1}){this.jsonToAPI=e,this.options=t,this.apiValues=[],this.jsonValues=[],this.apiToJSON=this.invertMap(e),this.apiValues=this.getKeysSorted(this.apiToJSON),this.jsonValues=this.getKeysSorted(this.jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,s.RB)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){return this.apiToJSON.hasOwnProperty(e)?this.apiToJSON[e]:this.options.ignoreUnknown?void 0:e}fromJSON(e){return this.jsonToAPI.hasOwnProperty(e)?this.jsonToAPI[e]:this.options.ignoreUnknown?void 0:e}invertMap(e){const t={};for(const r in e)t[e[r]]=r;return t}getKeysSorted(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}}function i(){return function(e){return new n(e,{ignoreUnknown:!0})}}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>C,$6:()=>l,Ue:()=>h,zE:()=>c,dD:()=>b,hh:()=>P,vr:()=>R,Ds:()=>O,as:()=>S,WW:()=>I,R8:()=>w,D_:()=>y,Hc:()=>p,tI:()=>T,y8:()=>x,fu:()=>g,$F:()=>_,d1:()=>A,DB:()=>k,r9:()=>f,k_:()=>u,H9:()=>m,gx:()=>U,Hl:()=>v});const s=(n=r(16358).Z,{setTimeout:(e,t)=>{const r=n.setTimeout(e,t);return{remove:()=>n.clearTimeout(r)}}});var n,i=r(20102),o=r(91460),a=(r(92604),r(70586));function l(e){return Promise.all(e)}function h(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 u(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(y(e))throw e}function m(e){if(!y(e))throw e}function g(e,t){const r=d(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,o.IH)(r,"abort",(()=>t()));t()}}function _(e,t){const r=d(e);if(!(0,a.Wi)(r))return u(r),(0,o.IH)(r,"abort",(()=>t(c())))}function v(e,t){const r=d(t);return(0,a.Wi)(r)?e:new Promise(((r,s)=>{let n=g(t,(()=>s(c())));const i=()=>n=(0,a.hw)(n);e.then(i,i),e.then(r,s)}))}function y(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!y(e))throw e}))}function b(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function S(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return S(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,s)=>r[t]=e[s])),r}))}const t=e;return h((e=>{const r=[];let s=t.length;0===s&&e(r),t.forEach((t=>{const n={promise:t||Promise.resolve(t)};r.push(n),n.promise.then((e=>{n.value=e})).catch((e=>{n.error=e})).then((()=>{--s,0===s&&e(r)}))}))}))}function I(e){return S(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function A(e){return Promise.reject(e)}function k(e){return Promise.resolve(e)}function C(e,t,r){const s=new AbortController;return g(r,(()=>s.abort())),new Promise(((r,n)=>{let i=setTimeout((()=>{i=0,r(t)}),e);g(s,(()=>{i&&(clearTimeout(i),n(c()))}))}))}function x(e){return e&&"function"==typeof e.then}function U(e){return T(e)?e:Promise.resolve(e)}function T(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function O(e,t=-1){let r,s,n,i,o=null;const l=(...h)=>{if(r){s=h,i&&i.reject(c()),i=b();const e=(0,a.j0)(i.promise);if(o){const e=o;o=null,e.abort()}return e}if(n=i||b(),i=null,t>0){const s=new AbortController;r=U(e(...h,s.signal));const n=r;C(t).then((()=>{r===n&&(i?s.abort():o=s)}))}else r=1,r=U(e(...h));const u=()=>{const e=s;s=n=r=o=null,null!=e&&l(...e)},d=r,p=n;return d.then(u,u),d.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return l}function P(){let e,t;const r=new Promise(((r,s)=>{e=r,t=s})),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>s.setTimeout((()=>n.reject(t)),e),n.promise=r,n}function R(e){let t=new AbortController;const r=e(t.signal);let s={promise:r,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const n=()=>{s&&(s.finished=!0,s=null),t=null};return r.then(n,n),s}},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>v,qg:()=>x,tD:()=>P,ZN:()=>he,fl:()=>ce,AX:()=>b,Gd:()=>y,Ie:()=>oe,sJ:()=>G,AH:()=>J,vt:()=>ne,oh:()=>j,P$:()=>H,Ml:()=>ue,ed:()=>R,b7:()=>C,D6:()=>L,tm:()=>E,YP:()=>F,jc:()=>z,HK:()=>V,$U:()=>Q,oC:()=>K,kl:()=>D,v_:()=>B,hF:()=>q,_l:()=>Y,PF:()=>M,Fv:()=>Z,B7:()=>k,u0:()=>I,Yd:()=>se,Hu:()=>le,Qj:()=>ie,hO:()=>ee,mN:()=>S});var s=r(68773),n=r(20102),i=(r(16358),r(92604)),o=r(70586);const a=i.Z.getLogger("esri.core.urlUtils"),l=s.Z.request,h="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,u=/^\s*http:/i,d=/^\s*https:/i,p=/^\s*file:/i,f=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),_=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{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(g));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(_)),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 y=new v(s.Z.applicationUrl),w={},b=(()=>{const e=(0,o.j0)(y.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${y.scheme}://${y.host}${null!=y.port?`:${y.port}`:""}${t}`})();function S(e){const t={path:null,query:null},r=new v(e),s=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,s),t.query=I(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 I(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let s,n;t<0?(s=decodeURIComponent(e),n=""):(s=decodeURIComponent(e.slice(0,t)),n=decodeURIComponent(e.slice(t+1)));let i=r[s];"string"==typeof i&&(i=r[s]=[i]),Array.isArray(i)?i.push(n):r[s]=n}return r}function A(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function k(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 s=e[r];if(null==s)return"";const n=encodeURIComponent(r)+"=",i=t&&t[r];return i?n+encodeURIComponent(i(s)):Array.isArray(s)?s.map((e=>A(e)?n+encodeURIComponent(JSON.stringify(e)):n+encodeURIComponent(e))).join("&"):A(s)?n+encodeURIComponent(JSON.stringify(s)):n+encodeURIComponent(s)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=Q(e);const s=R(e);s&&(r=s.proxyUrl)}else t=!!e;if(!r)throw a.warn(h),new n.Z("urlutils:proxy-not-set",h);return t&&te()&&(r=ee(r)),S(r)}function x(e){const t=R(e);let r,s;if(t){const e=T(t.proxyUrl);r=e.path,s=e.query?I(e.query):null}if(r){const t=S(e);e=r+"?"+t.path;const n=k({...s,...t.query});n&&(e=`${e}?${n}`)}return e}const U={path:"",query:""};function T(e){const t=e.indexOf("?");return-1!==t?(U.path=e.slice(0,t),U.query=e.slice(t+1)):(U.path=e,U.query=null),U}function O(e){return(e=re(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=T(e).path),!0)).toLowerCase()}function P(e){const t={proxyUrl:e.proxyUrl,urlPrefix:O(e.urlPrefix)},r=l.proxyRules,s=t.urlPrefix;let n=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===s.indexOf(t)){if(s.length===t.length)return-1;n=e;break}0===t.indexOf(s)&&(n=e+1)}return r.splice(n,0,t),n}function R(e){const t=l.proxyRules,r=O(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function E(e,t){return e=N(e),t=N(t),re(e)===re(t)}function N(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function j(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 L(e,t,r=!1){const s=ae(e),n=ae(t);return!(!r&&s.scheme!==n.scheme)&&null!=s.host&&null!=n.host&&s.host.toLowerCase()===n.host.toLowerCase()&&s.port===n.port}function D(e){if("string"==typeof e){if(!F(e))return!0;e=ae(e)}if(L(e,y))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const s=$(t[r]);for(let t=0;t<s.length;t++)if(L(e,s[t]))return!0}return!1}function $(e){return w[e]||(X(e)||K(e)?w[e]=[new v(q(e))]:w[e]=[new v(`http://${e}`),new v(`https://${e}`)]),w[e]}function q(e,t=b,r){return K(e)?r&&r.preserveProtocolRelative?e:"http"===y.scheme&&y.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:X(e)?e:(0,o.j0)(B("/"===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 M(e,t=b,r){if(!F(e))return e;const s=Z(e),n=s.toLowerCase(),i=Z(t).toLowerCase().replace(/\/+$/,""),o=r?Z(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(n,"/",n.indexOf("//")+2),h=-1;for(;n.slice(0,l+1)===i.slice(0,l)+"/"&&(h=l+1,l!==n.length);)l=a(n,"/",l+1);if(-1===h)return e;if(o&&h<o.length)return e;e=s.slice(h);const c=i.slice(h-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=l.httpsDomains;if(!function(e){return u.test(e)||"http"===y.scheme&&K(e)}(e))return e;const r=e.indexOf("/",7);let s;if(s=-1===r?e:e.slice(0,r),s=s.toLowerCase().slice(7),f.test(s)){if(!s.endsWith(":80"))return e;s=s.slice(0,-3),e=e.replace(":80","")}return"http"===y.scheme&&s===y.authority&&!m.test(e)||(te()&&s===y.authority||t&&t.some((e=>s===e||s.endsWith(`.${e}`)))||te()&&!R(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=T(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function B(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(F(t[0])){const e=t[0],s=e.indexOf("//");-1!==s&&(r.push(e.slice(0,s+1)),function(e){return p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(s+2))}else"/"===t[0][0]&&r.push("");const s=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<s.length;e++){const t=s[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===s.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(z(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&K(e))r=2;else{if(-1===r)return null;r+=3}const s=e.indexOf("/",r);return-1!==s&&(e=e.slice(0,s)),t&&(e=re(e,!0)),e}function F(e){return K(e)||X(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function V(e){return"data:"===e.slice(0,5)}function J(e){const t=G(e);if(!t||!t.isBase64)return null;const r=atob(t.data),s=new Uint8Array(r.length);for(let e=0;e<r.length;e++)s[e]=r.charCodeAt(e);return s.buffer}const W=/^data:(.*?)(;base64)?,(.*)$/;function G(e){const t=e.match(W);if(!t)return null;const[,r,s,n]=t;return{mediaType:r,isBase64:!!s,data:n}}function Y(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function K(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function X(e){return c.test(e)}function Q(e){return d.test(e)||"https"===y.scheme&&K(e)}function ee(e){return K(e)?`https:${e}`:e.replace(u,"https:")}function te(){return"https"===y.scheme}function re(e,t=!1){return K(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function se(e){let t=0;if(F(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ne(e,t){if(!e)return"";const r=S(e).path.replace(/\/+$/,""),s=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return s;const n=new RegExp(`.(${t.join("|")})$`,"ig");return s.replace(n,"")}function ie(e){return e.replace(/\/+$/,"")}function oe(e,t,r){if(!(t&&r&&e&&F(e)))return e;const s=e.indexOf("//"),n=e.indexOf("/",s+2),i=e.indexOf(":",s+2),o=Math.min(n<0?e.length:n,i<0?e.length:i);return e.slice(s+2,o).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,s+2)}${r}${e.slice(o)}`}function ae(e){return"string"==typeof e?new v(q(e)):(e.scheme||(e.scheme=y.scheme),e)}function le(e,t){const r=S(e),s=Object.keys(r.query||{});return s.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${s.join(", ")}.`),r.path}function he(e,t,r){const s=S(e),n=s.query||{};return n[t]=String(r),`${s.path}?${k(n)}`}function ce(e,t){const r=S(e),s=r.query||{};for(const e in t)s[e]=t[e];const n=k(s);return n?`${r.path}?${n}`:r.path}function ue(e){if((0,o.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},41123:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});var s=r(16358);function n(){const e=i.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16);return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}const i=s.Z.crypto||s.Z.msCrypto},43050:(e,t,r)=>{"use strict";r.d(t,{S1:()=>o,on:()=>u,OY:()=>c,cm:()=>l,N1:()=>a,LR:()=>h,tH:()=>d});var s=r(91460),n=(r(22974),r(95330));const i=/\?(\.|$)/g;function o(e,t,r,s){const n=Array.isArray(t)?t:t.indexOf(",")>-1?t.split(","):[t],o=function(e,t,r,s){return e.watch(t,r,s)}(e,t,r,s);for(const t of n){const s=t.trim().replace(i,"$1"),n=e.get(s);r.call(e,n,n,s,e)}return o}function a(e,t,r,s){return d(e,t,p,r,s)}function l(e,t,r,s){return d(e,t,f,r,s)}function h(e,t,r,s){return d(e,t,m,r,s)}function c(e,t,r,s){return d(e,t,g,r,s)}function u(e,t,r,n,i,a,l){const h={};function c(t){const s=h[t];s&&(a&&a(s.target,t,e,r),s.handle.remove(),delete h[t])}const u=o(e,t,((t,o,a)=>{c(a),(0,s.vT)(t)&&(h[a]={handle:(0,s.on)(t,r,n),target:t},i&&i(t,a,e,r))}),l);return{remove(){u.remove();for(const e in h)c(e)}}}function d(e,t,r,s,i){const o="function"==typeof s?s:null,a="object"==typeof s?s:null;"boolean"==typeof s&&(i=s);let l,h=!1;function c(){l&&(l.remove(),l=null)}const u=(0,n.dD)();(0,n.fu)(a,(()=>{c(),u.reject((0,n.zE)())}));const d={then:u.promise.then.bind(u.promise),catch:u.promise.catch.bind(u.promise),remove:c};return Object.freeze(d),l=function(e,t,r,s,n){const i=e.watch(t,((t,n,i,o)=>{r&&!r(t)||null==s||s.call(e,t,n,i,o)}),n);if(Array.isArray(t))for(const n of t){const i=e.get(n);r&&r(i)&&(null==s||s.call(e,i,i,t,e))}else{const n=e.get(t);r&&r(n)&&(null==s||s.call(e,n,n,t,e))}return i}(e,t,r,((t,r,s,n)=>{h=!0,c(),o&&o.call(e,t,r,s,n),u.resolve({value:t,oldValue:r,propertyName:s,target:n})}),i),h&&c(),d}function p(e){return!!e}function f(e){return!e}function m(e){return!0===e}function g(e){return!1===e}},79339:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>pt});var s=r(40330),n=r(43697),i=r(68773),o=r(3172),a=r(20102),l=r(32448),h=r(91460),c=r(16358),u=r(22974),d=r(78286),p=r(95330),f=r(17452),m=r(5600),g=(r(75215),r(52011)),_=(r(67676),r(80442),r(940)),v=(r(2587),r(60235));(()=>{if("function"==typeof Element.prototype.closest)return(e,t)=>e.closest(t);Element.prototype.matches||Element.prototype.msMatchesSelector})();var y=r(61247),w=r(92604),b=r(70586),S=r(609),I=r(41123),A=r(43050),k=r(90578),C=r(58971),x=r(38805),U=r(8728),T=r(3894);function O(e){const t=T.Z.acquire();for(let e=0;e<arguments.length;e++){const r=arguments[e],s=typeof r;if("string"===s)t.push(r);else if(Array.isArray(r))t.push.apply(t,r);else if("object"===s)for(const e in r)r[e]&&t.push(e)}const r=t.join(" ");return T.Z.release(t),r}function P(e){this[e.getAttribute("data-node-ref")]=e}w.Z.getLogger("esri.widgets.support.widgetUtils");const R=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce(((e,t)=>(e[t]=[],e)),{}),E=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],N=new U.Z({whiteList:R,onTagAttr:(e,t,r)=>{const s=`${t}="${r}"`;if(E.includes(t))return s},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0);const j="http://www.w3.org/",L=`${j}2000/svg`,D=`${j}1999/xlink`;let $,q=[],M=(e,t)=>{let r={};return Object.keys(e).forEach((t=>{r[t]=e[t]})),t&&Object.keys(t).forEach((e=>{r[e]=t[e]})),r},Z=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),B=e=>{if("string"!=typeof e)throw new Error("Style values must be strings")},H=(e,t,r)=>{if(""!==t.vnodeSelector)for(let s=r;s<e.length;s++)if(Z(e[s],t))return s;return-1},F=(e,t,r,s)=>{let n=e[t];if(""===n.vnodeSelector)return;let i=n.properties;if(!(i?void 0===i.key?i.bind:i.key:void 0))for(let i=0;i<e.length;i++)if(i!==t){let t=e[i];if(Z(t,n))throw new Error(`${r.vnodeSelector} had a ${n.vnodeSelector} child ${"added"===s?s:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}},z=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},V=[],J=!1,W=e=>{(e.children||[]).forEach(W),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},G=()=>{J=!1,V.forEach(W),V.length=0},Y=e=>{V.push(e),J||(J=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(G,{timeout:16}):setTimeout(G,16))},K=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r){t.style.pointerEvents="none";let s=()=>{t.parentNode&&(t.parentNode.removeChild(t),Y(e))};return void r(t,s,e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),Y(e))},X=(e,t,r)=>{if(!t)return;let s=r.eventHandlerInterceptor,n=Object.keys(t),i=n.length;for(let o=0;o<i;o++){let i=n[o],a=t[i];if("className"===i)throw new Error('Property "className" is not supported, use "class".');if("class"===i)te(e,a,!0);else if("classes"===i){let t=Object.keys(a),r=t.length;for(let s=0;s<r;s++){let r=t[s];a[r]&&e.classList.add(r)}}else if("styles"===i){let t=Object.keys(a),s=t.length;for(let n=0;n<s;n++){let s=t[n],i=a[s];i&&(B(i),r.styleApplyer(e,s,i))}}else if("key"!==i&&null!=a){let n=typeof a;"function"===n?(0===i.lastIndexOf("on",0)&&(s&&(a=s(i,a,e,t)),"oninput"===i&&function(){let e=a;a=function(t){e.apply(this,[t]),t.target["oninput-value"]=t.target.value}}()),e[i]=a):r.namespace===L?"href"===i?e.setAttributeNS(D,i,a):e.setAttribute(i,a):"string"===n&&"value"!==i?"innerHTML"===i?e[i]=N.sanitize(a):e.setAttribute(i,a):e[i]=a}}},Q=(e,t,r)=>{((e,t,r)=>{if(t)for(let s of t)ee(s,e,void 0,r)})(e,t.children,r),t.text&&(e.textContent=t.text),X(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},ee=(e,t,r,s)=>{let n,i=0,o=e.vnodeSelector,a=t.ownerDocument;if(""===o)n=e.domNode=a.createTextNode(e.text),void 0!==r?t.insertBefore(n,r):t.appendChild(n);else{for(let l=0;l<=o.length;++l){let h=o.charAt(l);if(l===o.length||"."===h||"#"===h){let h=o.charAt(i-1),c=o.slice(i,l);"."===h?n.classList.add(c):"#"===h?n.id=c:("svg"===c&&(s=M(s,{namespace:L})),void 0!==s.namespace?n=e.domNode=a.createElementNS(s.namespace,c):(n=e.domNode=e.domNode||a.createElement(c),"input"===c&&e.properties&&void 0!==e.properties.type&&n.setAttribute("type",e.properties.type)),void 0!==r?t.insertBefore(n,r):n.parentNode!==t&&t.appendChild(n)),i=l+1}}Q(n,e,s)}},te=(e,t,r)=>{t&&t.split(" ").forEach((t=>{t&&e.classList.toggle(t,r)}))};$=(e,t,r)=>{let s=e.domNode,n=!1;if(e===t)return!1;let i=!1;if(""===t.vnodeSelector){if(t.text!==e.text){let e=s.ownerDocument.createTextNode(t.text);return s.parentNode.replaceChild(e,s),t.domNode=e,n=!0,n}t.domNode=s}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(r=M(r,{namespace:L})),e.text!==t.text&&(i=!0,void 0===t.text?s.removeChild(s.firstChild):s.textContent=t.text),t.domNode=s,i=((e,t,r,s,n)=>{if(r===s)return!1;s=s||q;let i,o=(r=r||q).length,a=s.length,l=0,h=0,c=!1;for(;h<a;){let a=l<o?r[l]:void 0,u=s[h];if(void 0!==a&&Z(a,u))c=$(a,u,n)||c,l++;else{let a=H(r,u,l+1);if(a>=0){for(i=l;i<a;i++)K(r[i]),F(r,i,e,"removed");c=$(r[a],u,n)||c,l=a+1}else ee(u,t,l<o?r[l].domNode:void 0,n),z(u),F(s,h,e,"added")}h++}if(o>l)for(i=l;i<o;i++)K(r[i]),F(r,i,e,"removed");return c})(t,s,e.children,t.children,r)||i,i=((e,t,r,s)=>{if(!r)return;let n=!1,i=Object.keys(r),o=i.length;for(let a=0;a<o;a++){let o=i[a],l=r[o],h=t[o];if("class"===o)h!==l&&(te(e,h,!1),te(e,l,!0));else if("classes"===o){let t=e.classList,r=Object.keys(l),s=r.length;for(let e=0;e<s;e++){let s=r[e],i=!!l[s];i!==!!h[s]&&(n=!0,i?t.add(s):t.remove(s))}}else if("styles"===o){let t=Object.keys(l),r=t.length;for(let i=0;i<r;i++){let r=t[i],o=l[r];o!==h[r]&&(n=!0,o?(B(o),s.styleApplyer(e,r,o)):s.styleApplyer(e,r,""))}}else if(l||"string"!=typeof h||(l=""),"value"===o){let t=e[o];t!==l&&(e["oninput-value"]?t===e["oninput-value"]:l!==h)&&(e[o]=l,e["oninput-value"]=void 0),l!==h&&(n=!0)}else if(l!==h){let t=typeof l;"function"===t&&s.eventHandlerInterceptor||(s.namespace===L?"href"===o?e.setAttributeNS(D,o,l):e.setAttribute(o,l):"string"===t?"innerHTML"===o?e[o]=N.sanitize(l):"role"===o&&""===l?e.removeAttribute(o):e.setAttribute(o,l):e[o]!==l&&(e[o]=l),n=!0)}}return n})(s,e.properties,t.properties,r)||i,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[s,r,t.vnodeSelector,t.properties,t.children]);return i&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(s,t.properties,e.properties),n};let re=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let s=e;e=r,$(s,r,t)},domNode:e.domNode});const se={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{"-"===t.charAt(0)?e.style.setProperty(t,r):e.style[t]=r}};let ne,ie=e=>M(se,e),oe=(e,t,r)=>(r=ie(r),ee(t,e,void 0,r),re(t,r)),ae=(e,t,r)=>(r=ie(r),ee(t,e.parentNode,e,r),re(t,r)),le=(e,t,r)=>(r=ie(r),t.domNode=e,Q(e,t,r),re(t,r)),he=(e,t,r)=>(r=ie(r),ee(t,e.parentNode,e,r),e.parentNode.removeChild(e),re(t,r));ne=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0];const ce={handleInterceptedEvent:(e,t,r,s)=>(e.scheduleRender(),t.properties[`on${s.type}`].apply(t.properties.bind||r,[s]))},ue={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{e.style[t]=r}},de=(e,t,r=!1)=>{let s=e;return t.forEach(((e,n)=>{var i;const o=null!=(i=s)&&i.children?((e,t)=>e.find(t))(s.children,(t=>t.domNode===e)):void 0;r&&!o&&n!==t.length-1||(s=o)})),s};var pe=r(94786),fe=r(99880);let me;me="components/assets";var ge=r(50758);const _e=Symbol("widget"),ve=[],ye={},we=new WeakMap;function be(e,t){let r=t.children;if(r&&r.length)for(let t=0;t<r.length;++t)r[t]=be(e,r[t]);else r=ve;const s=t.vnodeSelector;if(ke(s)){const n=t.properties||ye,i=n.key||s;return{vnodeSelector:"div",properties:{key:i,afterCreate:Se,afterUpdate:Ie,afterRemoved:Ae,parentWidget:e,widgetConstructor:s,widgetProperties:{...n,key:i,children:r}},children:void 0,text:void 0,domNode:null}}return t}function Se(e,t,r,{parentWidget:s,widgetConstructor:n,widgetProperties:i}){const o=new n(i);o.container=e,we.set(e,o),null==o.afterCreate||o.afterCreate(o,e),s._internalHandles.add((0,ge.kB)((()=>Ae(e))))}function Ie(e,t,r,{widgetProperties:s}){const n=we.get(e);n&&(n.set(s),null==n.afterUpdate||n.afterUpdate(n,e))}function Ae(e){const t=we.get(e);t&&(t.destroy(),we.delete(e))}function ke(e){return"function"==typeof e&&e[_e]}var Ce=r(70171),xe=r(94443);const Ue="esri.widgets.Widget",Te=w.Z.getLogger(Ue);let Oe=0;const Pe=new Map;function Re(e,t){for(const r in t)null!=e[r]&&("object"==typeof e[r]&&"object"==typeof t[r]?Re(e[r],t[r]):e[r]=t[r]);return e}const Ee=(e=>{let t;const r={...ce,...e},s=(i=r,{...ue,...i}),n=s.performanceLogger;var i;let o,a=!0,l=!1;const h=[],c=[],u=(e,i,o)=>{let a;s.eventHandlerInterceptor=(e,s,i,o)=>function(e){let s;n("domEvent",e);const i=((e,t)=>{const r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r})(e.currentTarget,a.domNode),o=i.some((e=>{var t;return customElements.get(null==e||null==(t=e.tagName)?void 0:t.toLowerCase())}));if(e.eventPhase!==Event.CAPTURING_PHASE&&o){const t=e.composedPath(),r=t.slice(t.indexOf(e.currentTarget),t.indexOf(a.domNode)).filter((e=>e.getRootNode()===e.ownerDocument)).reverse();s=de(a.getLastRender(),r,!0)}else i.reverse(),s=de(a.getLastRender(),i);let l;return s&&(l=r.handleInterceptedEvent(t,s,this,e)),n("domEventProcessed",e),l},null==r.postProcessProjectionOptions||r.postProcessProjectionOptions(s);const l=o();a=e(i,l,s),h.push(a),c.push(o),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(a,l)};let d=()=>{if(o=void 0,a){a=!1,n("renderStart",void 0);for(let e=0;e<h.length;e++){const t=c[e]();n("rendered",void 0),h[e].update(t),n("patched",void 0)}n("renderDone",void 0),a=!0}};return r.modifyDoRenderImplementation&&(d=r.modifyDoRenderImplementation(d,h,c)),t={renderNow:d,scheduleRender:()=>{o||l||(o=requestAnimationFrame(d))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),l=!0},resume:()=>{l=!1,a=!0,t.scheduleRender()},append:(e,t)=>{u(oe,e,t)},insertBefore:(e,t)=>{u(ae,e,t)},merge:(e,t)=>{u(le,e,t)},replace:(e,t)=>{u(he,e,t)},detach:e=>{for(let t=0;t<c.length;t++)if(c[t]===e)return c.splice(t,1),h.splice(t,1)[0];throw new Error("renderFunction was not found")}},t})({postProcessProjectionOptions(e){const t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(e,s,n,i)=>{const o=t(e,s,n,i),a=r.test(e);if(!((e=e.replace(r,"")).toLowerCase()in n)||a){const t=e[2].toLowerCase()+e.slice(3),r=e=>o.call(n,e);n.addEventListener(t,r,a);const s=()=>n.removeEventListener(t,r,a),l=i.afterRemoved;i.afterRemoved=e=>{null==l||l(e),s()}}return o}},handleInterceptedEvent(e,t,r,s){const{eventPhase:n,type:i}=s,o=n===Event.CAPTURING_PHASE;let a=`on${i}${o?"capture":""}`;const l=t.properties;(a in l||(a=`on${i[0].toUpperCase()}${i.slice(1)}${o?"Capture":""}`,a in l))&&(Pe.clear(),e.scheduleRender(),l[a].call(l.bind||r,s))}});let Ne=!1,je=class extends((0,S.v)(l.Z.EventedAccessor)){constructor(e,t){super(e,t),this._attached=!1,this._internalHandles=new y.Z,this._projector=Ee,this._readyForTrueRender=!1,this.domNode=null,this.iconClass="esri-icon-checkbox-unchecked",this.label=this.declaredClass.split(".").pop(),this.visible=!0,this.key=this,this._loadLocale=(0,p.Ds)((async()=>{if(this._messageBundleProps&&this._messageBundleProps.length){const e=await(0,p.as)(this._messageBundleProps.map((async({bundlePath:e,propertyName:t})=>{let r=await(0,xe.ME)(e);this.uiStrings&&Object.keys(this.uiStrings)&&(r=Re((0,u.d9)(r),this.uiStrings)),this[t]=r})));for(const t of e)t.error&&Te.error("widget-intl:locale-error",this.declaredClass,t.error)}await this.loadLocale()})),(0,pe.B)((0,f.hF)((0,fe.V)("components/assets")));const r=getComputedStyle(document.body).getPropertyValue("--esri-calcite-theme-name").replace(/\s|'|"/g,"")||"light";["light","dark"].includes(r)||(0,v.x9)(Te,"The following themes are deprecated: light-blue, dark-blue, light-green, dark-green, light-purple, dark-purple, light-red, and dark-red.",{version:"4.19",warnOnce:!0,see:"https://developers.arcgis.com/javascript/latest/styling/"});const s="esri-widget-uid-"+(0,I.D)(),n=this.render.bind(this);this._trackingTarget=new x.M((()=>this.scheduleRender()));const i=()=>{var e;if(!this._readyForTrueRender||this.destroyed)return null;if(!this.visible)return{vnodeSelector:"div",properties:{key:s,class:"",styles:{display:"none"}},domNode:void 0,children:void 0,text:void 0};const t=n();let{properties:r}=t;r||(t.properties=r={});let{key:i,styles:o}=r;i||(r.key=s),o||(r.styles=o={}),o.display||(o.display="");let a=0;return null==(e=t.children)||e.forEach((e=>{if(ke(e.vnodeSelector))return;let{properties:t}=e;t||(e.properties=t={}),t.key||(t.key=`${this.id}--${a++}`)})),be(this,t)};this.render=()=>{if(Ne)return i();let e=Pe.get(this);if(e)return e;this._trackingTarget.clear(),Ne=!0;try{e=(0,C.LJ)(this._trackingTarget,i)}finally{Ne=!1}return Pe.set(this,e),e},this.addResolvingPromise(this._resourcesFetch=this.beforeFirstRender().then((()=>{this._readyForTrueRender=!0,this._postInitialize()})))}normalizeCtorArgs(e,t){const r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){return Promise.all([this.loadDependencies(),this._loadLocale()]).then((()=>{})).catch(p.H9)}async loadDependencies(){}async loadLocale(){}destroy(){this.destroyed||(this._trackingTarget=(0,b.SC)(this._trackingTarget),this.viewModel=(0,b.SC)(this.viewModel),this._detach(this.container),this._set("container",null),this._internalHandles.destroy(),this._emitter.clear(),this.render=()=>null,this._projector=null,Pe.delete(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return function(e){return"string"==typeof e?document.getElementById(e):e}(e)}get id(){return this._get("id")||this.get("container.id")||Date.now().toString(16)+"-widget-"+Oe++}set id(e){e&&this._set("id",e)}get renderable(){return this._resourcesFetch}get test(){return{projector:this._projector,handles:this._internalHandles}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(Pe.delete(this),this._projector.scheduleRender())}classes(...e){return O.apply(this,e)}own(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments)),this._internalHandles.add(e)}renderNow(){Pe.delete(this),this._projector.renderNow()}_postInitialize(){var e;if(this.destroyed)return;this.scheduleRender(),null!=(e=this._delegatedEventNames)&&e.length&&this._internalHandles.add((0,A.S1)(this,"viewModel",((e,t)=>{t&&this._internalHandles.remove("delegated-events"),e&&this._internalHandles.add(this._delegatedEventNames.map((t=>e.on(t,(e=>{this.emit(t,e)})))),"delegated-events")}))),this.postInitialize();const t=async()=>{await this._loadLocale().catch(p.H9),this.scheduleRender()};this._internalHandles.add([(0,Ce.qe)(t),this.watch("uiStrings",t),(0,A.N1)(this,"container",(async e=>{this.destroyed||this._attach(e)}))])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){e&&this._attached&&(this._projector.detach(this.render),e.parentNode&&e.parentNode.removeChild(e),this._attached=!1)}};je[_e]=!0,(0,n._)([(0,m.Cb)()],je.prototype,"_readyForTrueRender",void 0),(0,n._)([(0,m.Cb)({value:null})],je.prototype,"container",null),(0,n._)([(0,k.p)("container")],je.prototype,"castContainer",null),(0,n._)([(0,m.Cb)({aliasOf:"container"})],je.prototype,"domNode",void 0),(0,n._)([(0,m.Cb)()],je.prototype,"iconClass",void 0),(0,n._)([(0,m.Cb)()],je.prototype,"id",null),(0,n._)([(0,m.Cb)()],je.prototype,"label",void 0),(0,n._)([(0,m.Cb)()],je.prototype,"renderable",null),(0,n._)([(0,m.Cb)()],je.prototype,"uiStrings",void 0),(0,n._)([(0,m.Cb)()],je.prototype,"viewModel",void 0),(0,n._)([(0,m.Cb)()],je.prototype,"visible",void 0),(0,n._)([(0,m.Cb)()],je.prototype,"key",void 0),(0,n._)([(0,m.Cb)()],je.prototype,"children",void 0),(0,n._)([(0,m.Cb)()],je.prototype,"afterCreate",void 0),(0,n._)([(0,m.Cb)()],je.prototype,"afterUpdate",void 0),(0,n._)([(0,m.Cb)()],je.prototype,"afterRemoved",void 0),je=(0,n._)([(0,g.j)(Ue)],je);const Le=je;function De(e){return function(t,r){t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var $e=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},qe=function(e,t){for(var r=0,s=e.length;r<s;r++){var n=e[r];Array.isArray(n)?qe(n,t):null!=n&&!1!==n&&(n.hasOwnProperty("vnodeSelector")||(n=$e(n)),t.push(n))}};function Me(e,t,...r){return"function"!=typeof e||ke(e)?function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(1===r.length&&"string"==typeof r[0])return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var n=[];return qe(r,n),{vnodeSelector:e,properties:t||void 0,children:n,text:void 0,domNode:null}}(e,t,...r):e(t,...r)}const Ze="esri-identity-form__group",Be="esri-identity-form__label",He="esri-input",Fe="esri-button";let ze=class extends Le{constructor(e,t){super(e,t),this._usernameInputNode=null,this._passwordInputNode=null,this.messages=null,this.signingIn=!1,this.server=null,this.resource=null,this.error=null,this.oAuthPrompt=!1}render(){const{error:e,server:t,resource:r,signingIn:s,oAuthPrompt:n,messages:i}=this,o=Me("div",{class:Ze},(0,_.n)(n?i.oAuthInfo:i.info,{server:/\.arcgis\.com/i.test(t)?"ArcGIS Online":t,resource:`(${r||i.lblItem})`})),a=n?null:Me("div",{class:Ze,key:"username"},Me("label",{class:Be},i.lblUser,Me("input",{value:"",required:!0,autocomplete:"off",spellcheck:!1,type:"text",bind:this,afterCreate:P,"data-node-ref":"_usernameInputNode",class:He}))),l=n?null:Me("div",{class:Ze,key:"password"},Me("label",{class:Be},i.lblPwd,Me("input",{value:"",required:!0,type:"password",bind:this,afterCreate:P,"data-node-ref":"_passwordInputNode",class:He}))),h=Me("div",{class:this.classes(Ze,"esri-identity-form__footer")},Me("input",{type:"submit",disabled:!!s,value:s?i.lblSigning:i.lblOk,class:Fe}),Me("input",{type:"button",value:i.lblCancel,bind:this,onclick:this._cancel,class:this.classes(Fe,"esri-button--secondary")})),c=e?Me("div",null,e.details&&e.details.httpStatus?i.invalidUser:i.noAuthService):null;return Me("form",{class:"esri-identity-form",bind:this,onsubmit:this._submit},o,c,a,l,h)}_cancel(){this._set("signingIn",!1),this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);const t=this.oAuthPrompt?{}:{username:this._usernameInputNode&&this._usernameInputNode.value,password:this._passwordInputNode&&this._passwordInputNode.value};this.emit("submit",t)}};(0,n._)([(0,m.Cb)(),De("esri/identity/t9n/identity")],ze.prototype,"messages",void 0),(0,n._)([(0,m.Cb)()],ze.prototype,"signingIn",void 0),(0,n._)([(0,m.Cb)()],ze.prototype,"server",void 0),(0,n._)([(0,m.Cb)()],ze.prototype,"resource",void 0),(0,n._)([(0,m.Cb)()],ze.prototype,"error",void 0),(0,n._)([(0,m.Cb)()],ze.prototype,"oAuthPrompt",void 0),ze=(0,n._)([(0,g.j)("esri.identity.IdentityForm")],ze);const Ve=ze;var Je=r(44291);const We="esri-identity-modal__content";let Ge=class extends Le{constructor(e,t){super(e,t),this.container=document.createElement("div"),this.content=null,this.open=!1,this._close=()=>{this.open=!1},document.body.appendChild(this.container),this.own(this.watch("open",(()=>this._toggleFocusTrap())))}destroy(){this._destroyFocusTrap()}render(){const e=this.id,{open:t,content:r,title:s,messages:n}=this,i=t&&!!r,o={"esri-identity-modal--open":i,"esri-identity-modal--closed":!i},a=Me("button",{class:"esri-identity-modal__close-button","aria-label":n.close,title:n.close,bind:this,onclick:this._close},Me("span",{"aria-hidden":"true",class:"esri-icon-close"})),l=`${e}_title`,h=`${e}_content`,c=s?Me("h1",{id:l,class:"esri-identity-modal__title"},s):null,u=i?Me("div",{bind:this,class:"esri-identity-modal__dialog",role:"dialog","aria-labelledby":l,"aria-describedby":h,afterCreate:this._createFocusTrap},a,c,this._renderContent(h)):null;return Me("div",{tabIndex:-1,class:this.classes("esri-identity-modal",o)},u)}_destroyFocusTrap(){var e;null==(e=this._focusTrap)||e.deactivate({onDeactivate:null}),this._focusTrap=null}_toggleFocusTrap(){const{_focusTrap:e,open:t}=this;e&&(t?e.activate():e.deactivate())}_createFocusTrap(e){this._destroyFocusTrap();const t=requestAnimationFrame((()=>{this._focusTrap=(0,Je.v)(e,{initialFocus:"input",onDeactivate:this._close}),this._toggleFocusTrap()}));this.own((0,ge.kB)((()=>cancelAnimationFrame(t))))}_renderContent(e){const t=this.content;return"string"==typeof t?Me("div",{class:We,id:e,innerHTML:t}):function(e){return e&&"function"==typeof e.render}(t)?Me("div",{class:We,id:e},t.render()):t instanceof HTMLElement?Me("div",{class:We,id:e,bind:t,afterCreate:this._attachToNode}):null}_attachToNode(e){e.appendChild(this)}};(0,n._)([(0,m.Cb)({readOnly:!0})],Ge.prototype,"container",void 0),(0,n._)([(0,m.Cb)()],Ge.prototype,"content",void 0),(0,n._)([(0,m.Cb)()],Ge.prototype,"open",void 0),(0,n._)([(0,m.Cb)(),De("esri/t9n/common")],Ge.prototype,"messages",void 0),(0,n._)([(0,m.Cb)({aliasOf:"messages.auth.signIn"})],Ge.prototype,"title",void 0),Ge=(0,n._)([(0,g.j)("esri.identity.IdentityModal")],Ge);const Ye=Ge,Ke="esriJSAPIOAuth";class Xe{constructor(e,t){this.oAuthInfo=null,this.storage=null,this.appId=null,this.expires=null,this.ssl=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=t,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.token&&this.userId){const t=Date.now();this.expires>t&&(this.expires-t)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}return e}save(){if(!this.storage)return;const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r||(r=e[t.authNamespace]={}),r[t.portalUrl]={appId:this.appId=t.appId,expires:this.expires,ssl:this.ssl,token:this.token,userId:this.userId};try{this.storage.setItem(Ke,JSON.stringify(e))}catch(e){console.log(e)}}}destroy(){const e=this._load(),t=this.oAuthInfo;if(t&&t.appId&&t.portalUrl&&this.token&&this.expires>Date.now()){const e=t.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",r=new FormData;if(r.append("f","json"),r.append("auth_token",this.token),r.append("client_id",t.appId),r.append("token_type_hint","access_token"),"function"==typeof navigator.sendBeacon)navigator.sendBeacon(e,r);else{const t=new XMLHttpRequest;t.open("POST",e),t.send(r)}}if(t&&t.authNamespace&&t.portalUrl&&this.storage){const r=e[t.authNamespace];if(r){delete r[t.portalUrl];try{this.storage.setItem(Ke,JSON.stringify(e))}catch(e){console.log(e)}}}t&&(t._oAuthCred=null,this.oAuthInfo=null)}_init(){const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r&&(r=r[t.portalUrl],r&&(this.appId=r.appId,this.expires=r.expires,this.ssl=r.ssl,this.token=r.token,this.userId=r.userId))}}_load(){let e={};if(this.storage){const t=this.storage.getItem(Ke);if(t)try{e=JSON.parse(t)}catch(e){console.log(e)}}return e}}Xe.prototype.declaredClass="esri.identity.OAuthCredential";var Qe,et=r(10736);let tt=Qe=class extends et.wq{constructor(e){super(e),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return Qe.fromJSON(this.toJSON())}};(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"appId",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"authNamespace",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"expiration",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"forceLogin",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"forceUserId",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"locale",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"minTimeUntilExpiration",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"popup",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"popupCallbackUrl",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"popupWindowFeatures",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"portalUrl",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"preserveUrlHash",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],tt.prototype,"userId",void 0),tt=Qe=(0,n._)([(0,g.j)("esri.identity.OAuthInfo")],tt);const rt=tt;let st=class extends et.wq{constructor(e){super(e),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};(0,n._)([(0,m.Cb)({json:{write:!0}})],st.prototype,"adminTokenServiceUrl",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],st.prototype,"currentVersion",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],st.prototype,"hasPortal",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],st.prototype,"hasServer",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],st.prototype,"owningSystemUrl",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],st.prototype,"owningTenant",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],st.prototype,"server",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],st.prototype,"shortLivedTokenValidity",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],st.prototype,"tokenServiceUrl",void 0),(0,n._)([(0,m.Cb)({json:{write:!0}})],st.prototype,"webTierAuth",void 0),st=(0,n._)([(0,g.j)("esri.identity.ServerInfo")],st);const nt=st,it={},ot=e=>{const t=new f.R9(e.owningSystemUrl).host,r=new f.R9(e.server).host,s=/.+\.arcgis\.com$/i;return s.test(t)&&s.test(r)},at=(e,t)=>!!(ot(e)&&t&&t.some((t=>t.test(e.server))));let lt=null,ht=null;try{lt=window.localStorage,ht=window.sessionStorage}catch{}class ct extends l.Z{constructor(){super(),this._portalConfig=c.Z.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this.defaultOAuthInfo=null,this.defaultTokenValidity=60,this.dialog=null,this.formConstructor=Ve,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"!==window.origin?window.origin:window.location.origin,this._appUrlObj=(0,f.mN)(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthHash=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^\/]+\/[^\/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|MapServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer)).*/gi,this._gwUser=/http.+\/users\/([^\/]+)\/?.*/i,this._gwItem=/http.+\/items\/([^\/]+)\/?.*/i,this._gwGroup=/http.+\/groups\/([^\/]+)\/?.*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getOAuthHash(),window.addEventListener("pageshow",(e=>{this._pageShowHandler(e)}))}registerServers(e){const t=this.serverInfos;t?(e=e.filter((e=>!this.findServerInfo(e.server))),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach((e=>{e.owningSystemUrl&&this._portals.push(e.owningSystemUrl),e.hasPortal&&this._portals.push(e.server)}))}registerOAuthInfos(e){const t=this.oAuthInfos;if(t){for(const r of e){const e=this.findOAuthInfo(r.portalUrl);e&&t.splice(t.indexOf(e),1)}this.oAuthInfos=t.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};const t=this._sanitizeUrl(e.server),r=this._isServerRsrc(t);let s,n=this.findServerInfo(t),i=!0;n||(n=new nt,n.server=this._getServerInstanceRoot(t),r?n.hasServer=!0:(n.tokenServiceUrl=this._getTokenSvcUrl(t),n.hasPortal=!0),this.registerServers([n])),s=this._findCredential(t),s?(delete e.server,Object.assign(s,e),i=!1):(s=new ut({userId:e.userId,server:n.server,token:e.token,expires:e.expires,ssl:e.ssl,scope:r?"server":"portal"}),s.resources=[t],this.credentials.push(s)),s.emitTokenChange(!1),i||s.refreshServerTokens()}toJSON(){return(0,u.yd)({serverInfos:this.serverInfos.map((e=>e.toJSON())),oAuthInfos:this.oAuthInfos.map((e=>e.toJSON())),credentials:this.credentials.map((e=>e.toJSON()))})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));const t=e.serverInfos,r=e.oAuthInfos,s=e.credentials;if(t){const e=[];t.forEach((t=>{t.server&&t.tokenServiceUrl&&e.push(t.declaredClass?t:new nt(t))})),e.length&&this.registerServers(e)}if(r){const e=[];r.forEach((t=>{t.appId&&e.push(t.declaredClass?t:new rt(t))})),e.length&&this.registerOAuthInfos(e)}s&&s.forEach((e=>{e.server&&e.token&&e.expires&&e.expires>Date.now()&&((e=e.declaredClass?e:new ut(e)).emitTokenChange(),this.credentials.push(e))}))}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.serverInfos)if(this._hasSameServerInstance(r.server,e)){t=r;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.oAuthInfos)if(this._hasSameServerInstance(r.portalUrl,e)){t=r;break}return t}findCredential(e,t){let r;e=this._sanitizeUrl(e);const s=this._isServerRsrc(e)?"server":"portal";if(t){for(const n of this.credentials)if(this._hasSameServerInstance(n.server,e)&&t===n.userId&&n.scope===s){r=n;break}}else for(const t of this.credentials)if(this._hasSameServerInstance(t.server,e)&&-1!==this._getIdenticalSvcIdx(e,t)&&t.scope===s){r=t;break}return r}getCredential(e,t){let r,s,n=!0;t&&(r=!!t.token,s=t.error,n=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);const i=new AbortController,o=(0,p.hh)();if(t.signal&&(0,p.fu)(t.signal,(()=>{i.abort()})),(0,p.fu)(i,(()=>{o.reject(new a.Z("identity-manager:user-aborted","ABORTED"))})),(0,p.Hc)(i))return o.promise;t.signal=i.signal;const l=this._isAdminResource(e),h=r?this.findCredential(e):null;let c;if(h&&s&&s.details&&498===s.details.httpStatus)h.destroy();else if(h)return c=new a.Z("identity-manager:not-authorized","You are currently signed in as: '"+h.userId+"'. You do not have access to this resource: "+e,{error:s}),o.reject(c),o.promise;const u=this._findCredential(e,t);if(u)return o.resolve(u),o.promise;let d=this.findServerInfo(e);if(d)!d.hasServer&&this._isServerRsrc(e)&&(d._restInfoPms=this._getTokenSvcUrl(e),d.hasServer=!0);else{const t=this._getTokenSvcUrl(e);if(!t)return c=new a.Z("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),o.reject(c),o.promise;d=new nt,d.server=this._getServerInstanceRoot(e),"string"==typeof t?(d.tokenServiceUrl=t,d.hasPortal=!0):(d._restInfoPms=t,d.hasServer=!0),this.registerServers([d])}return d.hasPortal&&void 0===d._selfReq&&(n||(0,f.D6)(d.tokenServiceUrl,this._appOrigin)||this._gwDomains.some((e=>e.tokenServiceUrl===d.tokenServiceUrl)))&&(d._selfReq={owningTenant:t&&t.owningTenant,selfDfd:this._getPortalSelf(d.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,d,t,o,l)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,r){const s=this._rePortalTokenSvc.test(e.tokenServiceUrl),n=new f.R9(this._appOrigin),i=e.shortLivedTokenValidity;let l,h,c,u,d,p,m,g;t&&(g=this.tokenValidity||i||this.defaultTokenValidity,g>i&&i>0&&(g=i)),r&&(l=r.isAdmin,h=r.serverUrl,c=r.token,p=r.signal,m=r.ssl,e.customParameters=r.customParameters),l?u=e.adminTokenServiceUrl:(u=e.tokenServiceUrl,d=new f.R9(u.toLowerCase()),e.webTierAuth&&null!=r&&r.serverUrl&&!m&&"http"===n.scheme&&((0,f.D6)(n.uri,u,!0)||"https"===d.scheme&&n.host===d.host&&"7080"===n.port&&"7443"===d.port)&&(u=u.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));const _={query:{request:"getToken",username:null==t?void 0:t.username,password:null==t?void 0:t.password,serverUrl:h,token:c,expiration:g,referer:l||s?this._appOrigin:null,client:l?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,r),signal:p,...null==r?void 0:r.ioArgs};return s||(_.withCredentials=!1),(0,o.default)(u,_).then((r=>{const s=r.data;if(!s||!s.token)return new a.Z("identity-manager:authentication-failed","Unable to generate token");const n=e.server;return it[n]||(it[n]={}),t&&(it[n][t.username]=t.password),s.validity=g,s}))}isBusy(){return!!this._busy}checkSignInStatus(e){return this.checkAppAccess(e,"").then((e=>e.credential))}checkAppAccess(e,t,r){let s=!1;return this.getCredential(e,{prompt:!1}).then((n=>{let i;const l={f:"json"};if("portal"===n.scope)if(t&&(this._doPortalSignIn(e)||r&&r.force))i=n.server+"/sharing/rest/oauth2/validateAppAccess",l.client_id=t;else{if(!n.token)return{credential:n};i=n.server+"/sharing/rest"}else{if(!n.token)return{credential:n};i=n.server+"/rest/services"}return n.token&&(l.token=n.token),(0,o.default)(i,{query:l,authMode:"anonymous"}).then((e=>{if(!1===e.data.valid)throw new a.Z("identity-manager:not-authorized",`You are currently signed in as: '${n.userId}'.`,e.data);return s=!!e.data.viewOnlyUserTypeApp,{credential:n}})).catch((e=>{if("identity-manager:not-authorized"===e.name)throw e;const t=e.details&&e.details.httpStatus;if(498===t)throw n.destroy(),new a.Z("identity-manager:not-authenticated","User is not signed in.");if(400===t)throw new a.Z("identity-manager:invalid-request");return{credential:n}}))})).then((e=>({credential:e.credential,viewOnly:s})))}setOAuthResponseHash(e){var t;const r=this._oAuthDfd;if(this._oAuthDfd=null,!r||!e)return;clearInterval(this._oAuthIntervalId),null==(t=this._oAuthOnHashHandle)||t.remove(),"#"===e.charAt(0)&&(e=e.substring(1));const s=(0,f.u0)(e);if(s.error){const e="access_denied"===s.error,t=new a.Z(e?"identity-manager:user-aborted":"identity-manager:authentication-failed",e?"ABORTED":"OAuth: "+s.error+" - "+s.error_description);r.reject(t)}else{const e=r.sinfo_,t=r.oinfo_,n=t._oAuthCred,i=new ut({userId:s.username,server:e.server,token:s.access_token,expires:Date.now()+1e3*Number(s.expires_in),ssl:"true"===s.ssl,_oAuthCred:n});t.userId=i.userId,n.storage=s.persist?lt:ht,n.token=i.token,n.expires=i.expires,n.userId=i.userId,n.ssl=i.ssl,n.save(),r.resolve(i)}}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,t,r={}){const s=(0,p.hh)(),n=()=>{var e,t,r,s,n;null==(e=l)||e.remove(),null==(t=h)||t.remove(),null==(r=c)||r.remove(),null==(s=o)||s.destroy(),null==(n=this.dialog)||n.destroy(),this.dialog=o=l=h=c=null},i=()=>{n(),this._oAuthDfd=null,s.reject(new a.Z("identity-manager:user-aborted","ABORTED"))};r.signal&&(0,p.fu)(r.signal,(()=>{i()}));let o=new this.formConstructor;o.resource=this.getResourceName(e),o.server=t.server,this.dialog=new Ye,this.dialog.content=o,this.dialog.open=!0,this.emit("dialog-create");let l=o.on("cancel",i),h=this.dialog.watch("open",i),c=o.on("submit",(e=>{this.generateToken(t,e,{isAdmin:r.isAdmin,signal:r.signal}).then((i=>{n();const o=new ut({userId:e.username,server:t.server,token:i.token,expires:null!=i.expires?Number(i.expires):null,ssl:!!i.ssl,isAdmin:r.isAdmin,validity:i.validity});s.resolve(o)})).catch((e=>{o.error=e,o.signingIn=!1}))}));return s.promise}oAuthSignIn(e,t,r,s){this._oAuthDfd=(0,p.hh)();const n=this._oAuthDfd;null!=s&&s.signal&&(0,p.fu)(s.signal,(()=>{const e=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;e&&!e.closed?e.close():this.dialog&&l()})),n.resUrl_=e,n.sinfo_=t,n.oinfo_=r;const i=!s||!1!==s.oAuthPopupConfirmation;if(!r.popup||!i)return this._doOAuthSignIn(e,t,r),n.promise;const o=new this.formConstructor;o.oAuthPrompt=!0,o.server=t.server,this.dialog=new Ye,this.dialog.content=o,this.dialog.open=!0,this.emit("dialog-create");const l=()=>{d(),this._oAuthDfd=null,n.reject(new a.Z("identity-manager:user-aborted","ABORTED"))},h=o.on("cancel",l),c=this.dialog.watch("open",l),u=o.on("submit",(()=>{d(),this._doOAuthSignIn(e,t,r)})),d=()=>{h.remove(),c.remove(),u.remove(),o.destroy(),this.dialog.destroy(),this.dialog=null};return n.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach((e=>{e.destroy()})),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=(0,h.on)(window,"message",(t=>{var r;if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===(null==(r=t.data)?void 0:r.type)){const r=t.source;this.getCredential(e).then((e=>{r.postMessage({type:"arcgis:auth:credential",credential:{expires:e.expires,server:e.server,ssl:e.ssl,token:e.token,userId:e.userId}},t.origin)})).catch((e=>{r.postMessage({type:"arcgis:auth:error",error:{name:e.name,message:e.message}},t.origin)}))}}))}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthHash(){let e=window.location.hash;if(e){"#"===e.charAt(0)&&(e=e.substring(1));const t=(0,f.u0)(e);let r=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),"object"==typeof t.state&&t.state.portalUrl&&(this._oAuthHash=t,r=!0)}catch{}else t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(r=!0));r&&(window.location.hash="object"==typeof t.state&&t.state.hash||"")}}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){const e=new a.Z("identity-manager:user-aborted","ABORTED");this._errbackFunc(e)}}_findCredential(e,t){let r,s,n,i,o=-1;const a=t&&t.token,l=t&&t.resource,h=this._isServerRsrc(e)?"server":"portal",c=this.credentials.filter((t=>this._hasSameServerInstance(t.server,e)&&t.scope===h));if(e=l||e,c.length)if(1===c.length){if(r=c[0],i=this.findServerInfo(r.server),s=i&&i.owningSystemUrl,n=s&&this.findCredential(s,r.userId),o=this._getIdenticalSvcIdx(e,r),!a)return-1===o&&r.resources.push(e),this._addResource(e,n),r;-1!==o&&(r.resources.splice(o,1),this._removeResource(e,n))}else{let t,r;if(c.some((a=>(r=this._getIdenticalSvcIdx(e,a),-1!==r&&(t=a,i=this.findServerInfo(t.server),s=i&&i.owningSystemUrl,n=s&&this.findCredential(s,t.userId),o=r,!0)))),a)t&&(t.resources.splice(o,1),this._removeResource(e,n));else if(t)return this._addResource(e,n),t}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(const r of this.oAuthInfos)if(this._isIdProvider(r.portalUrl,e)){t=r;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e)}_removeResource(e,t){let r=-1;t&&(r=this._getIdenticalSvcIdx(e,t),r>-1&&t.resources.splice(r,1))}_useProxy(e,t){return t&&t.isAdmin&&!(0,f.D6)(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!(0,f.D6)(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){const t=new f.R9(e);return t.scheme+"://"+t.host+(null!=t.port?":"+t.port:"")}_getServerInstanceRoot(e){const t=e.toLowerCase();let r=t.indexOf(this._agsRest);return-1===r&&this._isAdminResource(e)&&(r=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1===r&&(r=t.indexOf("/sharing")),-1===r&&"/"===t.substr(-1)&&(r=t.length-1),r>-1?e.substring(0,r):e}_hasSameServerInstance(e,t){return"/"===e.substr(-1)&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=this._normalizeAGOLorgDomain(e),t=this._normalizeAGOLorgDomain(t),(e=e.substr(e.indexOf(":")))===t.substr(t.indexOf(":"))}_normalizeAGOLorgDomain(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,s=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):s.test(e)&&(e=e.replace(s,"https://qaext.arcgis.com")),e}_sanitizeUrl(e){const t=(i.Z.request.proxyUrl||"").toLowerCase(),r=t?e.toLowerCase().indexOf(t+"?"):-1;return-1!==r&&(e=e.substring(r+t.length+1)),e=(0,f.Fv)(e),(0,f.mN)(e).path}_isRESTService(e){return e.indexOf(this._agsRest)>-1}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let r;if(this._isRESTService(e)&&this._isRESTService(t)){const s=this._getSuffix(e).toLowerCase(),n=this._getSuffix(t).toLowerCase();if(r=s===n,!r){const e=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;r=s.replace(e,"$1")===n.replace(e,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(t)?r=!0:this._isServerRsrc(e)||this._isServerRsrc(t)||!this._isPortalDomain(e)||(r=!0);return r}_isPortalDomain(e){const t=new f.R9(e.toLowerCase()),r=this._portalConfig;let s=this._gwDomains.some((e=>e.regex.test(t.uri)));return!s&&r&&(s=this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t.uri)),s||i.Z.portalUrl&&(s=(0,f.D6)(t,i.Z.portalUrl,!0)),s||(s=this._portals.some((e=>this._hasSameServerInstance(e,t.uri)))),s=s||this._agsPortal.test(t.path),s}_isIdProvider(e,t){let r=-1,s=-1;this._gwDomains.forEach(((n,i)=>{-1===r&&n.regex.test(e)&&(r=i),-1===s&&n.regex.test(t)&&(s=i)}));let n=!1;if(r>-1&&s>-1&&(0===r||4===r?0!==s&&4!==s||(n=!0):1===r?1!==s&&2!==s||(n=!0):2===r?2===s&&(n=!0):3===r&&3===s&&(n=!0)),!n){const r=this.findServerInfo(t),s=r&&r.owningSystemUrl;s&&ot(r)&&this._isPortalDomain(s)&&this._isIdProvider(e,s)&&(n=!0)}return n}_getIdenticalSvcIdx(e,t){let r=-1;for(let s=0;s<t.resources.length;s++){const n=t.resources[s];if(this._isIdenticalService(e,n)){r=s;break}}return r}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let t,r,s;if(this._isRESTService(e)||this._isAdminResource(e)){const s=this._getServerInstanceRoot(e);return t=s+"/admin/generateToken",r=(0,o.default)(e=s+"/rest/info",{query:{f:"json"}}).then((e=>e.data)),{adminUrl:t,promise:r}}if(this._isPortalDomain(e)){let t="";if(this._gwDomains.some((r=>(r.regex.test(e)&&(t=r.tokenServiceUrl),!!t))),t||this._portals.some((r=>(this._hasSameServerInstance(r,e)&&(t=r+this._gwTokenUrl),!!t))),t||(s=e.toLowerCase().indexOf("/sharing"),-1!==s&&(t=e.substring(0,s)+this._gwTokenUrl)),t||(t=this._getOrigin(e)+this._gwTokenUrl),t){const r=new f.R9(e).port;/^http:\/\//i.test(e)&&"7080"===r&&(t=t.replace(/:7080/i,":7443")),t=t.replace(/http:/i,"https:")}return t}if(-1!==e.toLowerCase().indexOf("premium.arcgisonline.com"))return"https://premium.arcgisonline.com/server/tokens"}_exchangeToken(e,t,r){return(0,o.default)(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:r}}).then((e=>e.data.token))}_getPlatformSelf(e,t){return e=e.replace(/^http:/i,"https:"),(0,o.default)(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json"},withCredentials:!0}).then((e=>e.data))}_getPortalSelf(e,t){let r;return this._gwDomains.some((t=>(t.regex.test(e)&&(r=t.customBaseUrl),!!r))),r?Promise.resolve({allSSL:!0,currentVersion:"4.4",customBaseUrl:r,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),(0,o.default)(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then((e=>e.data)))}_doPortalSignIn(e){const t=this._portalConfig,r=window.location.href,s=this.findServerInfo(e);return!(!t&&!this._isPortalDomain(r)||!(s?s.hasPortal||s.owningSystemUrl&&this._isPortalDomain(s.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(r,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||(0,f.D6)(r,e,!0)))}_checkProtocol(e,t,r,s){let n=!0;const i=s?t.adminTokenServiceUrl:t.tokenServiceUrl;return i.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&(0,f.ed)(i)&&(n=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),!n)&&r(new a.Z("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),n}_enqueue(e,t,r,s,n,i){return s||(s=(0,p.hh)()),s.resUrl_=e,s.sinfo_=t,s.options_=r,s.admin_=n,s.refresh_=i,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(s)):this._xoReqs.push(s):this._doSignIn(s),s.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;const t=t=>{const r=e.options_&&e.options_.resource,s=e.resUrl_,n=e.refresh_;let i=!1;-1===this.credentials.indexOf(t)&&(n&&-1!==this.credentials.indexOf(n)?(n.userId=t.userId,n.token=t.token,n.expires=t.expires,n.validity=t.validity,n.ssl=t.ssl,n.creationTime=t.creationTime,i=!0,t=n):this.credentials.push(t)),t.resources||(t.resources=[]),t.resources.push(r||s),t.scope=this._isServerRsrc(s)?"server":"portal",t.emitTokenChange();const o=this._soReqs,a={};this._soReqs=[],o.forEach((e=>{if(!this._isIdenticalService(s,e.resUrl_)){const r=this._getSuffix(e.resUrl_);a[r]||(a[r]=!0,t.resources.push(e.resUrl_))}})),e.resolve(t),o.forEach((e=>{this._hasSameServerInstance(this._getServerInstanceRoot(s),e.resUrl_)?e.resolve(t):this._soReqs.push(e)})),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,i||this.emit("credential-create",{credential:t}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},r=t=>{e.reject(t),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},s=(s,n,i,o)=>{var l,c;const u=e.sinfo_,d=!e.options_||!1!==e.options_.prompt,m=u.hasPortal&&this._findOAuthInfo(e.resUrl_);let g,_;if(s)t(new ut({userId:s,server:u.server,token:i||null,expires:null!=o?Number(o):null,ssl:!!n}));else if(window!==window.parent&&null!=(l=this._appUrlObj.query)&&l["arcgis-auth-origin"]&&null!=(c=this._appUrlObj.query)&&c["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){var v;window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);const s=(0,h.on)(window,"message",(e=>{e.source===window.parent&&e.data&&("arcgis:auth:credential"===e.data.type?(s.remove(),t(new ut(e.data.credential))):"arcgis:auth:error"===e.data.type&&(s.remove(),r(a.Z.fromJSON(e.data.error))))}));(0,p.fu)(null==(v=e.options_)?void 0:v.signal,(()=>{s.remove()}))}else if(m){let s=m._oAuthCred;if(!s){const e=new Xe(m,lt),t=new Xe(m,ht);e.isValid()&&t.isValid()?e.expires>t.expires?(s=e,t.destroy()):(s=t,e.destroy()):s=e.isValid()?e:t,m._oAuthCred=s}if(s.isValid())g=new ut({userId:s.userId,server:u.server,token:s.token,expires:s.expires,ssl:s.ssl,_oAuthCred:s}),m.appId!==s.appId&&this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._exchangeToken(g.server,m.appId,g.token).then((e=>{g.token=e,s.token=e,s.save(),t(g)})).catch((()=>{t(g)})):t(g);else if(this._oAuthHash&&this._hasSameServerInstance(m.portalUrl,this._oAuthHash.state.portalUrl)){const e=this._oAuthHash;g=new ut({userId:e.username,server:u.server,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:s}),m.userId=g.userId,s.storage=e.persist?lt:ht,s.token=g.token,s.expires=g.expires,s.userId=g.userId,s.ssl=g.ssl,s.save(),this._oAuthHash=null,t(g)}else{const s=()=>{d?e._pendingDfd=this.oAuthSignIn(e.resUrl_,u,m,e.options_).then(t,r):(_=new a.Z("identity-manager:not-authenticated","User is not signed in."),r(_))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(u.server,m.appId).then((({portalUrl:e,token:r,username:n})=>{!e||(0,f.D6)(e,this._appOrigin,!0)?(g=new ut({server:u.server,userId:n,token:r}),t(g)):s()})).catch(s):s()}}else if(d){if(this._checkProtocol(e.resUrl_,u,r,e.admin_)){let s=e.options_;e.admin_&&(s=s||{},s.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,u,s).then(t,r)}}else _=new a.Z("identity-manager:not-authenticated","User is not signed in."),r(_)},n=()=>{const s=e.sinfo_,n=s.owningSystemUrl,i=e.options_;let o,a,l,h;if(i&&(o=i.token,a=i.error,l=i.prompt),h=this._findCredential(n,{token:o,resource:e.resUrl_}),!h)for(const e of this.credentials)if(this._isIdProvider(n,e.server)){h=e;break}if(h){const n=this.findCredential(e.resUrl_,h.userId);if(n)t(n);else if(at(s,this._legacyFed)){const e=h.toJSON();e.server=s.server,e.resources=null,t(new ut(e))}else(e._pendingDfd=this.generateToken(this.findServerInfo(h.server),null,{serverUrl:e.resUrl_,token:h.token,signal:e.options_.signal,ssl:h.ssl})).then((r=>{t(new ut({userId:h.userId,server:s.server,token:r.token,expires:null!=r.expires?Number(r.expires):null,ssl:!!r.ssl,isAdmin:e.admin_,validity:r.validity}))}),r)}else this._busy=null,o&&(e.options_.token=null),(e._pendingDfd=this.getCredential(n.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:s.owningTenant,signal:e.options_.signal,token:o,error:a,prompt:l})).then((()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)}),(t=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject(t)}))};this._errbackFunc=r;const i=e.sinfo_.owningSystemUrl,o=this._isServerRsrc(e.resUrl_),l=e.sinfo_._restInfoPms;l?l.promise.then((t=>{const r=e.sinfo_;if(r._restInfoPms){r.adminTokenServiceUrl=r._restInfoPms.adminUrl,r._restInfoPms=null,r.tokenServiceUrl=(0,d.hS)("authInfo.tokenServicesUrl",t)||(0,d.hS)("authInfo.tokenServiceUrl",t)||(0,d.hS)("tokenServiceUrl",t),r.shortLivedTokenValidity=(0,d.hS)("authInfo.shortLivedTokenValidity",t),r.currentVersion=t.currentVersion,r.owningTenant=t.owningTenant;const e=r.owningSystemUrl=t.owningSystemUrl;e&&this._portals.push(e)}o&&r.owningSystemUrl?n():s()}),(()=>{e.sinfo_._restInfoPms=null;const t=new a.Z("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");r(t)})):o&&i?n():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then((t=>{const r={};let s,n,i,o;return t&&(s=t.user&&t.user.username,r.username=s,r.allSSL=t.allSSL,n=t.supportsOAuth,i=t.currentVersion,"multitenant"===t.portalMode&&(o=t.customBaseUrl)),e.sinfo_.webTierAuth=!!s,s&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:r.allSSL}).catch((()=>null)).then((e=>(r.portalToken=e&&e.token,r.tokenExpiration=e&&e.expires,r))):!s&&n&&parseFloat(i)>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:o,owningTenant:e.sinfo_._selfReq.owningTenant}).catch((()=>null)).then((()=>r)):r})).catch((()=>null)).then((t=>{e.sinfo_._selfReq=null,t?s(t.username,t.allSSL,t.portalToken,t.tokenExpiration):s()})):s()}_generateOAuthInfo(e){let t,r,s=e.portalUrl;const n=e.customBaseUrl,i=e.owningTenant,a=!this.defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){r=window.location.href;let e=r.indexOf("?");e>-1&&(r=r.slice(0,e)),e=r.search(/\/(apps|home)\//),r=e>-1?r.slice(0,e):null}return a&&r?(this._hasTestedIfAppIsOnPortal=!0,t=(0,o.default)(r+"/sharing/rest",{query:{f:"json"}}).then((()=>{this.defaultOAuthInfo=new rt({appId:"arcgisonline",popupCallbackUrl:r+"/home/oauth-callback.html"})}))):t=Promise.resolve(),t.then((()=>{if(this.defaultOAuthInfo)return s=s.replace(/^http:/i,"https:"),(0,o.default)(s+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:i,client_id:this.defaultOAuthInfo.appId,redirect_uri:(0,f.hF)(this.defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then((e=>{if(e.data.valid){const t=this.defaultOAuthInfo.clone();e.data.urlKey&&n?t.portalUrl="https://"+e.data.urlKey.toLowerCase()+"."+n:t.portalUrl=s,t.popup=window!==window.top||!((0,f.D6)(s,this._appOrigin)||this._gwDomains.some((e=>e.regex.test(s)&&e.regex.test(this._appOrigin)))),this.oAuthInfos.push(t)}}))}))}_doOAuthSignIn(e,t,r){const s={portalUrl:r.portalUrl};!r.popup&&r.preserveUrlHash&&window.location.hash&&(s.hash=window.location.hash);const n={client_id:r.appId,response_type:"token",state:JSON.stringify(s),expiration:r.expiration,locale:r.locale,redirect_uri:r.popup?(0,f.hF)(r.popupCallbackUrl):window.location.href.replace(/#.*$/,"")};r.forceLogin&&(n.force_login=!0),r.forceUserId&&r.userId&&(n.prepopulatedusername=r.userId),!r.popup&&this._doPortalSignIn(e)&&(n.redirectToUserOrgUrl=!0);const i=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",o=i+"?"+(0,f.B7)(n);if(r.popup){const e=window.open(o,"esriJSAPIOAuth",r.popupWindowFeatures);if(e)e.focus(),this._oAuthDfd.oAuthWin_=e,this._oAuthIntervalId=setInterval((()=>{if(e.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnHashHandle.remove();const e=this._oAuthDfd;if(e){const t=new a.Z("identity-manager:user-aborted","ABORTED");e.reject(t)}}}),500),this._oAuthOnHashHandle=(0,h.on)(c.Z,"arcgis:auth:hash",(e=>{this.setOAuthResponseHash(e.detail)}));else{const e=new a.Z("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(e)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:n,authorizeUrl:i,resourceUrl:e,serverInfo:t,oAuthInfo:r}):window.location.href=o}}ct.prototype.declaredClass="esri.identity.IdentityManagerBase";let ut=class extends l.Z.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e&&e._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],null==this.creationTime&&(this.creationTime=Date.now())}refreshToken(){const e=s.id.findServerInfo(this.server),t=e&&e.owningSystemUrl,r=!!t&&"server"===this.scope,n=r&&at(e,s.id._legacyFed),i=e.webTierAuth,o=i&&s.id.normalizeWebTierAuth,a=it[this.server],l=a&&a[this.userId];let h,c=this.resources&&this.resources[0],u=r&&s.id.findServerInfo(t),d={username:this.userId,password:l};if(i&&!o)return;r&&!u&&s.id.serverInfos.some((e=>(s.id._isIdProvider(t,e.server)&&(u=e),!!u)));const p=u&&s.id.findCredential(u.server,this.userId);if(!r||p){if(!n){if(r)h={serverUrl:c,token:p&&p.token,ssl:p&&p.ssl};else if(o)d=null,h={ssl:this.ssl};else{if(!l){let t;return c&&(c=s.id._sanitizeUrl(c),this._enqueued=1,t=s.id._enqueue(c,e,null,null,this.isAdmin,this),t.then((()=>{this._enqueued=0,this.refreshServerTokens()})).catch((()=>{this._enqueued=0}))),t}this.isAdmin&&(h={isAdmin:!0})}return s.id.generateToken(r?u:e,r?null:d,h).then((e=>{this.token=e.token,this.expires=null!=e.expires?Number(e.expires):null,this.creationTime=Date.now(),this.validity=e.validity,this.emitTokenChange(),this.refreshServerTokens()})).catch((()=>{}))}p.refreshToken()}}refreshServerTokens(){"portal"===this.scope&&s.id.credentials.forEach((e=>{const t=s.id.findServerInfo(e.server),r=t&&t.owningSystemUrl;e!==this&&e.userId===this.userId&&r&&"server"===e.scope&&(s.id._hasSameServerInstance(this.server,r)||s.id._isIdProvider(r,this.server))&&(at(t,s.id._legacyFed)?(e.token=this.token,e.expires=this.expires,e.creationTime=this.creationTime,e.validity=this.validity,e.emitTokenChange()):e.refreshToken())}))}emitTokenChange(e){clearTimeout(this._refreshTimer);const t=this.server&&s.id.findServerInfo(this.server),r=t&&t.owningSystemUrl,n=r&&s.id.findServerInfo(r);!1===e||r&&"portal"!==this.scope&&(!n||!n.webTierAuth||s.id.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);const e=s.id.credentials.indexOf(this);e>-1&&s.id.credentials.splice(e,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){const e=(0,u.yd)({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);const e=6e4*this.tokenRefreshBuffer,t=2**31-1;let r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r)}};(0,n._)([(0,m.Cb)()],ut.prototype,"creationTime",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"expires",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"isAdmin",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"oAuthState",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"resources",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"scope",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"server",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"ssl",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"token",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"tokenRefreshBuffer",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"userId",void 0),(0,n._)([(0,m.Cb)()],ut.prototype,"validity",void 0),ut=(0,n._)([(0,g.j)("esri.identity.Credential")],ut);class dt extends ct{}dt.prototype.declaredClass="esri.identity.IdentityManager";const pt=new dt;(0,s.qh)(pt)},2587:(e,t,r)=>{"use strict";r(90344),r(18848),r(940),r(70171);var s=r(94443),n=r(3172),i=r(20102),o=r(16358),a=r(70586);async function l(e){if((0,a.pC)(c.fetchBundleAsset))return c.fetchBundleAsset(e);const t=await(0,n.default)(e,{responseType:"text"});return JSON.parse(t.data)}class h{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,o.Z.location)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,n){const o=t.exec(r);if(!o)throw new i.Z("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const a=o[1]?`${o[1]}/`:"",h=o[2],c=(0,s.Su)(n),u=`${a}${h}.json`,d=c?`${a}${h}_${c}.json`:u;let p;try{p=await l(e(d))}catch(t){if(d===u)throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{p=await l(e(u))}catch(e){throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return p}(this.getAssetUrl,this.matcher,e,t)}}const c={};var u,d=r(99880);(0,s.tz)((u={pattern:"esri/",location:d.V},new h(u)))},90344:(e,t,r)=>{"use strict";r.d(t,{Ze:()=>g,p6:()=>_});var s=r(35454),n=r(70171);const i={year:"numeric",month:"numeric",day:"numeric"},o={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},c={...h,second:"numeric"},u={"short-date":i,"short-date-short-time":{...i,...h},"short-date-short-time-24":{...i,...h,hour12:!1},"short-date-long-time":{...i,...c},"short-date-long-time-24":{...i,...c,hour12:!1},"short-date-le":i,"short-date-le-short-time":{...i,...h},"short-date-le-short-time-24":{...i,...h,hour12:!1},"short-date-le-long-time":{...i,...c},"short-date-le-long-time-24":{...i,...c,hour12:!1},"long-month-day-year":o,"long-month-day-year-short-time":{...o,...h},"long-month-day-year-short-time-24":{...o,...h,hour12:!1},"long-month-day-year-long-time":{...o,...c},"long-month-day-year-long-time-24":{...o,...c,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...h},"day-short-month-year-short-time-24":{...a,...h,hour12:!1},"day-short-month-year-long-time":{...a,...c},"day-short-month-year-long-time-24":{...a,...c,hour12:!1},"long-date":l,"long-date-short-time":{...l,...h},"long-date-short-time-24":{...l,...h,hour12:!1},"long-date-long-time":{...l,...c},"long-date-long-time-24":{...l,...c,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":c},d=(0,s.wY)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),p=(d.apiValues,d.toJSON.bind(d),d.fromJSON.bind(d),{ar:"ar-u-nu-latn-ca-gregory"});let f=new WeakMap,m=u["short-date-short-time"];function g(e){return u[e]||null}function _(e,t){return function(e){const t=e||m;if(!f.has(t)){const e=(0,n.Kd)(),r=p[(0,n.Kd)()]||e;f.set(t,new Intl.DateTimeFormat(r,t))}return f.get(t)}(t).format(e)}(0,n.Ze)((()=>{f=new WeakMap,m=u["short-date-short-time"]}))},70171:(e,t,r)=>{"use strict";r.d(t,{Ze:()=>f,Kd:()=>c,qe:()=>d});var s,n,i,o=r(16358);let a;const l=null!=(s=null==(n=o.Z.esriConfig)?void 0:n.locale)?s:null==(i=o.Z.dojoConfig)?void 0:i.locale;function h(){var e,t;return null!=(e=null!=l?l:null==(t=o.Z.navigator)?void 0:t.language)?e:"en"}function c(){return void 0===a&&(a=h()),a}const u=[];function d(e){return u.push(e),{remove(){u.splice(u.indexOf(e),1)}}}const p=[];function f(e){return p.push(e),{remove(){u.splice(p.indexOf(e),1)}}}null==o.Z.addEventListener||o.Z.addEventListener("languagechange",(function(){const e=null!=undefined?undefined:h();a!==e&&(a=e,[...p].forEach((t=>{t.call(null,e)})),[...u].forEach((t=>{t.call(null,e)})))}))},94443:(e,t,r)=>{"use strict";r.d(t,{ME:()=>p,Su:()=>f,tz:()=>d});var s=r(20102),n=r(95330),i=r(70171);const o=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const h=[],c=new Map;function u(e){for(const t of c.keys())m(e.pattern,t)&&c.delete(t)}function d(e){return h.includes(e)||(u(e),h.unshift(e)),{remove(){const t=h.indexOf(e);t>-1&&(h.splice(t,1),u(e))}}}async function p(e){const t=(0,i.Kd)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const s of h)if(m(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new s.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new s.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return await g.add(r),r}function f(e){if(!o.test(e))return null;const[,t,r]=o.exec(e),s=t+(r?"-"+r.toUpperCase():"");return l(s)?s:l(t)?t:null}function m(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ze)((()=>{c.clear()}));const g=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,n.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,r)=>{"use strict";r.d(t,{sh:()=>l,uf:()=>h});var s=r(70586),n=r(70171);const i={ar:"ar-u-nu-latn"};let o=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function h(e,t){return function(e){const t=e||a;if(!o.has(t)){const r=(0,n.Kd)(),s=i[(0,n.Kd)()]||r;o.set(t,new Intl.NumberFormat(s,e))}return(0,s.j0)(o.get(t))}(t).format(e)}(0,n.Ze)((()=>{o=new WeakMap,a={}}))},940:(e,t,r)=>{"use strict";r.d(t,{n:()=>h});var s=r(92604),n=r(78286),i=r(19153),o=r(90344),a=r(18848);const l=s.Z.getLogger("esri.intl");function h(e,t,r={}){const{format:s={}}=r;return(0,i.gx)(e,(e=>function(e,t,r){let s,i;const o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!s)return"";const a=(0,n.hS)(s,t);if(null==a)return"";const l=r[i]||r[s];return l?c(a,l):i?u(a,i):d(a)}(e,t,s)))}function c(e,t){switch(t.type){case"date":return(0,o.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),d(e)}}function u(e,t){switch(t.toLowerCase()){case"dateformat":return(0,o.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,o.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):d(e)}}function d(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,o.p6)(e):""}}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>h,id:()=>a,qh:()=>l,i8:()=>i,Nv:()=>o});var s=r(80442),n=r(17452);const i="4.22",o={async request(e,t){var s;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!=(s=(0,n.oh)(e.url))&&s.after?a:"array-buffer";const l=await i(e.url,o),h={data:l.data,ssl:l.ssl};switch(l.requestOptions.responseType){case"native-request-init":return delete h.data.signal,h;case"blob":h.data=await h.data.arrayBuffer();break;case"json":h.data=(new TextEncoder).encode(JSON.stringify(h.data)).buffer;break;case"text":h.data=(new TextEncoder).encode(h.data).buffer}return{result:h,transferList:[h.data]}}};let a;function l(e){a=e}function h(e){const t=a&&a.findCredential(e);return t&&t.token?(0,n.ZN)(e,"token",t.token):e}(0,s.Z)("host-webworker")||((0,s.Z)("edge")||(0,s.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6919],{92722:(e,t,n)=>{n.d(t,{lG:()=>C,q9:()=>l,my:()=>T,O3:()=>S});var r=n(20102),o=n(70272),i=n(5428),a=n(35671);const s={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function l(e){return s[e]}function*u(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*c(e){if(!e)return null;switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function p(e){for(const t of e)if(t.length>2)return!0;return!1}function d(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n],o=e[(n+1)%e.length];t+=r[0]*o[1]-o[0]*r[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function f(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return h(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const r of t.coordinates)h(e,r,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const r of t.coordinates){m(e,r[0],n);for(let t=1;t<r.length;t++)g(e,r[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const r=t.coordinates;m(e,r[0],n);for(let t=1;t<r.length;t++)g(e,r[t],n);return e}(e,t,n)}}function m(e,t,n){const r=y(t);!function(e){return!d(e)}(r)?h(e,r,n):w(e,r,n)}function g(e,t,n){const r=y(t);!function(e){return d(e)}(r)?h(e,r,n):w(e,r,n)}function h(e,t,n){for(const r of t)b(e,r,n);e.lengths.push(t.length)}function w(e,t,n){for(let r=t.length-1;r>=0;r--)b(e,t[r],n);e.lengths.push(t.length)}function b(e,t,n){const[r,o,i]=t;e.coords.push(r,o),n.hasZ&&e.coords.push(i||0)}function v(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function S(e){if(!e)throw new r.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new r.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:t}=e;if(!t)return;const n="string"==typeof t?t:"name"===t.type?t.properties.name:"EPSG"===t.type?t.properties.code:null,o=new RegExp(".*(CRS84H?|4326)$","i");if(!n||!o.test(n))throw new r.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:t})}function T(e,t={}){const n=[],r=new Set,o=new Set;let i,s=!1,d=null,y=!1,{geometryType:f=null}=t,m=!1;for(const t of u(e)){const{geometry:e,properties:a,id:u}=t;if((!e||(f||(f=l(e.type)),l(e.type)===f))&&(s||(s=p(c(e))),y||(y=null!=u,y&&(i=typeof u,d=Object.keys(a).filter((e=>a[e]===u)))),y&&null!=u&&(d.length>1?d=d.filter((e=>a[e]===u)):1===d.length&&(d=a[d[0]]===u?d:[])),!m&&a)){let e=!0;for(const t in a){if(r.has(t))continue;const i=a[t];if(null==i){e=!1,o.add(t);continue}const s=v(i);"unknown"!==s?(o.delete(t),r.add(t),n.push({name:t,alias:t,type:s})):o.add(t)}m=e}}const g=d&&1===d.length&&d[0]||null;if(g)for(const e of n)if(e.name===g&&(0,a.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:f,hasZ:s,objectIdFieldName:g,objectIdFieldType:i,unknownFields:Array.from(o)}}function C(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:r}=t;for(const s of e){var a;const{geometry:e,properties:u,id:c}=s;if(e&&l(e.type)!==n)continue;const p=u||{};let d=null!=(a=p[r])?a:null;r&&null!=c&&!p[r]&&(p[r]=d=c);const y=new o.ZP(e?f(new i.Z,e,t):null,p,null,d);yield y}}(u(e),t))}},46919:(e,t,n)=>{n.d(t,{M8:()=>T,ft:()=>k,FU:()=>x,Bm:()=>_,be:()=>j,eB:()=>G}),n(66577);var r=n(3172),o=n(20102);function i(e,t){for(const n of e)if(null!=n&&t(n))return n}var a=n(70586),s=n(95330),l=n(17452),u=n(42894),c=n(8744),p=n(86973),d=n(92722);function y(e){var t;return null!=(t=f(e))?t:function(e){const t=new Date(e).getTime();return Number.isNaN(t)?null:t}(e)}function f(e){var t,n,r,o;const i=m.exec(e);if(!i)return null;const a=i.groups,s=+a.year,l=+a.month-1,u=+a.day,c=+(null!=(t=a.hours)?t:"0"),p=+(null!=(n=a.minutes)?n:"0"),d=+(null!=(r=a.seconds)?r:"0");if(c>23)return null;if(p>59)return null;if(d>59)return null;const y=null!=(o=a.ms)?o:"0",f=y?+y.padEnd(3,"0").substring(0,3):0;let g;if(a.isUTC)g=Date.UTC(s,l,u,c,p,d,f);else if(a.offsetSign){const e=+a.offsetHours,t=+a.offsetMinutes;g=6e4*("+"===a.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,l,u,c,p,d,f)}else g=new Date(s,l,u,c,p,d,f).getTime();return Number.isNaN(g)?null:g}const m=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/;var g=n(88724),h=n(1231),w=n(82971),b=n(6570);const v="xlink:href",S="2.0.0",T="__esri_wfs_id__",C="wfs-layer:feature-type-not-found",F="wfs-layer:unknown-geometry-type";async function x(e,t){const n=function(e){const t=D(e);(function(e){const t=e.firstElementChild.getAttribute("version");if(t&&t!==S)throw new o.Z("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${S}`)})(t),M(t);const n=t.firstElementChild,r=new Map;return{operations:P(n),get featureTypes(){return Array.from(V(n,r))},readFeatureTypes:()=>V(n,r)}}((await(0,r.default)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:S,...null==t?void 0:t.customParameters},signal:null==t?void 0:t.signal})).data);return function(e,t){(0,l.$U)(e)&&((0,l.D6)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,l.hO)(t.operations.DescribeFeatureType.url)),(0,l.D6)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,l.hO)(t.operations.GetFeature.url)))}(e,n),n}const N=new Set(["json","application/json","geojson","application/json; subtype=geojson"]);function P(e){let t=!1;const n={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}};if((0,g.h)(e,{OperationsMetadata:{Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{n.GetCapabilities.url=e.getAttribute(v)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{n.DescribeFeatureType.url=e.getAttribute(v)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{n.GetFeature.url=e.getAttribute(v)}}},Parameter:e=>{if("outputFormat"===e.getAttribute("name"))return{AllowedValues:{Value:e=>{const t=e.textContent;N.has(t.toLowerCase())&&(n.GetFeature.outputFormat=t)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{n.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),!t)throw new o.Z("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if((0,a.Wi)(n.GetFeature.outputFormat))throw new o.Z("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return n}function V(e,t){return(0,g.H)(e,{FeatureTypeList:{FeatureType:e=>{if(t.has(e))return t.get(e);const n={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",supportedSpatialReferences:[]},r=new Set([4326]),o=e=>{var t,n;const o=parseInt(null==(t=e.textContent.match(/(?<wkid>\d+$)/i))||null==(n=t.groups)?void 0:n.wkid,10);Number.isNaN(o)||r.add(o)};return(0,g.h)(e,{Name:e=>{const{name:t,prefix:r}=A(e.textContent);n.typeName=`${r}:${t}`,n.name=t,n.namespacePrefix=r,n.namespaceUri=e.lookupNamespaceURI(r)},Abstract:e=>{n.description=e.textContent},Title:e=>{n.title=e.textContent},WGS84BoundingBox:e=>{n.extent=function(e){let t,n,r,o;for(const i of e.children)switch(i.localName){case"LowerCorner":[t,n]=i.textContent.split(" ").map((e=>Number.parseFloat(e)));break;case"UpperCorner":[r,o]=i.textContent.split(" ").map((e=>Number.parseFloat(e)))}return{xmin:t,ymin:n,xmax:r,ymax:o,spatialReference:c.Zn}}(e)},DefaultSRS:o,DefaultCRS:o,OtherSRS:o,OtherCRS:o}),n.title||(n.title=n.name),n.supportedSpatialReferences.push(...r),t.set(e,n),n}}})}function k(e,t,n){return i(e,(e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t))}async function j(e,t,n,r={}){var i;const{featureType:l,extent:p}=await async function(e,t,n,r={}){const{spatialReference:i=w.Z.WGS84}=r,s=e.readFeatureTypes(),l=t?k(s,t,n):s.next().value;if((0,a.Wi)(l))throw t?new o.Z(C,`The type '${t}' could not be found in the service`):new o.Z("wfs-layer:empty-service","The service is empty");let p=new b.Z({...l.extent,spatialReference:i});if(!(0,c.fS)(i,c.Zn))try{await(0,u.iQ)(c.Zn,i,void 0,r),p=(0,u.iV)(p,c.Zn)}catch{throw new o.Z("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:p,spatialReference:i,featureType:l}}(e,t,n,r),{fields:d,geometryType:y,swapXY:f,objectIdField:m,geometryField:g}=await async function(e,t,n={}){const[r,i]=await(0,s.as)([Z(e.operations.DescribeFeatureType.url,t,n),O(e,t,n)]);if(r.error||i.error)throw new o.Z("wfs-layer:getWFSLayerTypeInfo-error",`An error occurred while getting info about the feature type '${t}'`,{error:r.error||i.error});const{fields:l,errors:u}=r.value,c=r.value.geometryType||i.value.geometryType,p=i.value.swapXY;if((0,a.Wi)(c))throw new o.Z(F,`The geometry type could not be determined for type '${t}`,{typeName:t,geometryType:c,fields:l,errors:u});return{...G(l),geometryType:c,swapXY:p}}(e,l.typeName,r);return{url:e.operations.GetCapabilities.url,name:l.name,namespaceUri:l.namespaceUri,fields:d,geometryField:g,geometryType:y,objectIdField:m,spatialReference:null!=(i=r.spatialReference)?i:w.Z.WGS84,extent:p,swapXY:f,wfsCapabilities:e,customParameters:r.customParameters}}function G(e){var t;const n=e.find((e=>"geometry"===e.type));let r=e.find((e=>"oid"===e.type));return e=e.filter((e=>"geometry"!==e.type)),r||(r=new h.Z({name:T,type:"oid",alias:T}),e.unshift(r)),{geometryField:null!=(t=null==n?void 0:n.name)?t:null,objectIdField:r.name,fields:e}}async function O(e,t,n={}){var o;let i,a=!1;const[s,l]=await Promise.all([_(e.operations.GetFeature.url,t,e.operations.GetFeature.outputFormat,{...n,count:1}),(0,r.default)(e.operations.GetFeature.url,{responseType:"text",query:R(t,void 0,{...n,count:1}),signal:null==n?void 0:n.signal})]),u="FeatureCollection"===s.type&&(null==(o=s.features[0])?void 0:o.geometry);if(u){let e;switch(i=p.Mk.fromJSON((0,d.q9)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const n=e[0].toFixed(3),r=e[1].toFixed(3),o=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&r===o&&(a=!0)}}return{geometryType:i,swapXY:a}}async function Z(e,t,n){return function(e,t){const{name:n}=A(e),r=D(t);M(r);const s=i((0,g.H)(r.firstElementChild,{element:e=>({name:e.getAttribute("name"),typeName:A(e.getAttribute("type")).name})}),(({name:e})=>e===n));if((0,a.pC)(s)){const e=i((0,g.H)(r.firstElementChild,{complexType:e=>e}),(e=>e.getAttribute("name")===s.typeName));if((0,a.pC)(e))return function(e){var t,n;const r=[],i=[];let a;const s=(0,g.H)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const l of s){const s=l.getAttribute("name");if(!s)continue;let u,c;if(l.hasAttribute("type")?u=A(l.getAttribute("type")).name:(0,g.h)(l,{simpleType:{restriction:e=>(u=A(e.getAttribute("base")).name,{maxLength:e=>{c=+e.getAttribute("value")}})}}),!u)continue;const p="true"===l.getAttribute("nillable");let d=!1;switch(u.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":i.push(new h.Z({name:s,alias:s,type:"integer",nullable:p}));break;case"float":case"double":case"decimal":i.push(new h.Z({name:s,alias:s,type:"double",nullable:p}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":i.push(new h.Z({name:s,alias:s,type:"string",nullable:p,length:null!=(t=c)?t:255}));break;case"datetime":case"date":i.push(new h.Z({name:s,alias:s,type:"date",nullable:p,length:null!=(n=c)?n:36}));break;case"pointpropertytype":a="point",d=!0;break;case"multipointpropertytype":a="multipoint",d=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":a="polyline",d=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":a="polygon",d=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":d=!0,r.push(new o.Z(F,`geometry type '${u}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:r.push(new o.Z("wfs-layer:unknown-field-type",`Unknown field type '${u}'`,{type:(new XMLSerializer).serializeToString(e)}))}d&&i.push(new h.Z({name:s,alias:s,type:"geometry",nullable:p}))}for(const e of i)if("integer"===e.type&&!e.nullable&&E.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:a,fields:i,errors:r}}(e)}throw new o.Z(C,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(r)})}(t,(await(0,r.default)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:S,TYPENAME:t,...null==n?void 0:n.customParameters},signal:null==n?void 0:n.signal})).data)}const E=new Set(["objectid","fid"]);async function _(e,t,n,i){let{data:a}=await(0,r.default)(e,{responseType:"text",query:R(t,n,i),signal:null==i?void 0:i.signal});a=a.replace(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{var s;if(null!=i&&null!=(s=i.dateFields)&&s.length){const e=new Set(i.dateFields);return JSON.parse(a,((t,n)=>e.has(t)?y(n):n))}return JSON.parse(a)}catch(e){throw new o.Z("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function R(e,t,n){return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:S,TYPENAMES:e,OUTPUTFORMAT:t,SRSNAME:"EPSG:4326",STARTINDEX:null==n?void 0:n.startIndex,COUNT:null==n?void 0:n.count,...null==n?void 0:n.customParameters}}function D(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function A(e){const[t,n]=e.split(":");return{prefix:n?t:"",name:null!=n?n:t}}function M(e){let t,n;if((0,g.h)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new o.Z(`wfs-layer:${t}`,n)}},88724:(e,t,n)=>{function r(e,t){for(const n of e.children)if(n.localName in t){const e=t[n.localName];if("function"==typeof e){const t=e(n);t&&r(n,t)}else r(n,e)}}function*o(e,t){for(const n of e.children)if(n.localName in t){const e=t[n.localName];"function"==typeof e?yield e(n):yield*o(n,e)}}n.d(t,{H:()=>o,h:()=>r})},1231:(e,t,n)=>{n.d(t,{Z:()=>g});var r,o=n(43697),i=n(35454),a=n(10736),s=n(5600),l=(n(67676),n(80442),n(75215)),u=n(36030),c=n(71715),p=n(52011),d=n(72729),y=n(86719);const f=new i.Xn({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=r=class extends a.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?n.value:null}readValueType(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?f.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,o._)([(0,s.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,o._)([(0,s.Cb)()],m.prototype,"description",void 0),(0,o._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,o._)([(0,s.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],m.prototype,"domain",void 0),(0,o._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,o._)([(0,s.Cb)({type:l.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,o._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,o._)([(0,u.J)(y.v)],m.prototype,"type",void 0),(0,o._)([(0,s.Cb)()],m.prototype,"valueType",void 0),(0,o._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),m=r=(0,o._)([(0,p.j)("esri.layers.support.Field")],m);const g=m},72729:(e,t,n)=>{n.d(t,{im:()=>x,V5:()=>F}),n(80442);var r,o=n(43697),i=n(22974),a=n(5600),s=(n(75215),n(36030)),l=n(52011),u=n(10736);n(67676);let c=r=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,o._)([(0,a.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=r=(0,o._)([(0,l.j)("esri.layers.support.CodedValue")],c);const p=c,d=new(n(35454).Xn)({inherited:"inherited",codedValue:"coded-value",range:"range"});let y=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,o._)([(0,s.J)(d)],y.prototype,"type",void 0),y=(0,o._)([(0,l.j)("esri.layers.support.Domain")],y);const f=y;var m;let g=m=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,i.d9)(this.codedValues),name:this.name})}};(0,o._)([(0,a.Cb)({type:[p],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,o._)([(0,s.J)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=m=(0,o._)([(0,l.j)("esri.layers.support.CodedValueDomain")],g);const h=g;var w;n(92604),n(37697);let b=w=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new w}};(0,o._)([(0,s.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=w=(0,o._)([(0,l.j)("esri.layers.support.InheritedDomain")],b);const v=b;var S;let T=S=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new S({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,a.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,o._)([(0,a.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,o._)([(0,s.J)({range:"range"})],T.prototype,"type",void 0),T=S=(0,o._)([(0,l.j)("esri.layers.support.RangeDomain")],T);const C=T,F={key:"type",base:f,typeMap:{range:T,"coded-value":h,inherited:v}};function x(e){if(!e||!e.type)return null;switch(e.type){case"range":return C.fromJSON(e);case"codedValue":return h.fromJSON(e);case"inherited":return v.fromJSON(e)}return null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8008,8062],{87344:(e,a,t)=>{t.d(a,{T:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3485),t.e(6458)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(3596),t.e(7284),t.e(1812),t.e(3353),t.e(223)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(3596),t.e(7284),t.e(5775)]).then(t.bind(t,45425))).default,ElevationLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(3485),t.e(1938),t.e(9932),t.e(3394)]).then(t.bind(t,49932))).default,FeatureLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(3596),t.e(7284),t.e(4868)]).then(t.bind(t,67284))).default,GroupLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(1755),t.e(7049)]).then(t.bind(t,63144))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(2012)]).then(t.bind(t,3723))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(9196)]).then(t.bind(t,23477))).default,ImageryLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(3596),t.e(3782),t.e(3942),t.e(7303),t.e(9875),t.e(8658)]).then(t.bind(t,23232))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(2894),t.e(3485),t.e(3782),t.e(1938),t.e(7303),t.e(9875),t.e(8614)]).then(t.bind(t,91384))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(2894),t.e(1812),t.e(9930)]).then(t.bind(t,4717))).default,KMLLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3118)]).then(t.bind(t,42756))).default,MapImageLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(4369),t.e(1368),t.e(8256)]).then(t.bind(t,75823))).default,MapNotesLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(2894),t.e(7900),t.e(3596),t.e(7284),t.e(837)]).then(t.bind(t,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(6312),t.e(8876)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3485),t.e(1661),t.e(6237)]).then(t.bind(t,66237))).default,PointCloudLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(1812),t.e(4823),t.e(7323)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(3596),t.e(7284),t.e(9407)]).then(t.bind(t,28240))).default,SceneLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(7900),t.e(3596),t.e(7284),t.e(1812),t.e(3353),t.e(9254)]).then(t.bind(t,49254))).default,StreamLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(8387)]).then(t.bind(t,88387))).default,TileLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(3485),t.e(1938),t.e(4369),t.e(5001)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(4166)]).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(9296)]).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3485),t.e(1938),t.e(2508),t.e(8634)]).then(t.bind(t,23357))).default,VoxelLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(1812),t.e(2921)]).then(t.bind(t,53489))).default,WebTileLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3485),t.e(1661)]).then(t.bind(t,16199))).default,WFSLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(5008),t.e(6308),t.e(2894),t.e(7900),t.e(6919),t.e(5627)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(1368),t.e(2415)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(8778),t.e(6570),t.e(9928),t.e(102),t.e(7002),t.e(3485),t.e(1661),t.e(2594)]).then(t.bind(t,72594))).default}},33516:(e,a,t)=>{t.d(a,{m:()=>l});var r=t(17452),n=t(65587);function l(e){return{origin:"portal-item",url:(0,r.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}},18062:(e,a,t)=>{t.r(a),t.d(a,{getFirstLayerOrTableId:()=>p,getNumLayersAndTables:()=>f,load:()=>u,preprocessFSItemData:()=>m});var r=t(20102),n=t(87344),l=t(65587),i=t(33516),s=t(40555),o=t(96187);async function u(e,a){const t=e.instance.portalItem;return t&&t.id?(await t.load(a),function(e){const a=e.instance.portalItem;if(-1===e.supportedTypes.indexOf(a.type))throw new r.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const t=e.instance,l=t.portalItem,{url:u,title:y}=l,p=(0,i.m)(l);if("group"===t.type)return t.read({title:y},p),function(e,a){let t;const l=e.portalItem.type;switch(l){case"Feature Service":case"Feature Collection":t=n.T.FeatureLayer;break;case"Stream Service":t=n.T.StreamLayer;break;case"Scene Service":t=n.T.SceneLayer;break;default:throw new r.Z("portal:unsupported-item-type-as-group",`The item type '${l}' is not supported as a 'IGroupLayer'`)}let i;return t().then((e=>(i=e,d(a)))).then((async a=>"Feature Service"===l?(a=await m(a,e.portalItem.url),c(e,i,a)):f(a)>0?c(e,i,a):function(e,a){return e.portalItem.url?(0,o.b)(e.portalItem.url).then((t=>{var r,n;function l(e){return{id:e.id,name:e.name}}t&&c(e,a,{layers:null==(r=t.layers)?void 0:r.map(l),tables:null==(n=t.tables)?void 0:n.map(l)})})):Promise.resolve()}(e,i)))}(t,e);u&&t.read({url:u},p);const h=await d(e,a);return h&&t.read(h,p),t.resourceReferences={portalItem:l,paths:p.readResourcePaths},t.read({title:y},p),(0,s.y)(t,p)}(e,a)):Promise.resolve()}function c(e,a,t){let r=t.layers||[];const n=t.tables||[];"Feature Collection"===e.portalItem.type&&(r.forEach((e=>{var a;"Table"===(null==e||null==(a=e.layerDefinition)?void 0:a.type)&&n.push(e)})),r=r.filter((e=>{var a;return"Table"!==(null==e||null==(a=e.layerDefinition)?void 0:a.type)}))),r.reverse().forEach((r=>{const n=y(e,a,t,r);e.add(n)})),n.reverse().forEach((r=>{const n=y(e,a,t,r);e.tables.add(n)}))}function y(e,a,t,r){const n=new a({portalItem:e.portalItem.clone(),layerId:r.id,sublayerTitleMode:"service-name"});if("Feature Collection"===e.portalItem.type){const a={origin:"portal-item",portal:e.portalItem.portal||l.Z.getDefault()};n.read(r,a);const i=t.showLegend;null!=i&&n.read({showLegend:i},a)}return n}function d(e,a){if(!1===e.supportsData)return Promise.resolve(void 0);const t=e.instance;return t.portalItem.fetchData("json",a).catch((()=>null)).then((async e=>{if(function(e){return"stream"!==e.type&&"layerId"in e}(t)){let a,r=!0;return e&&f(e)>0&&(null==t.layerId&&(t.layerId=p(e)),a=function(e,a){const t=e.layers;if(t)for(let e=0;e<t.length;e++)if(t[e].id===a)return t[e];const r=e.tables;if(r)for(let e=0;e<r.length;e++)if(r[e].id===a)return r[e];return null}(e,t.layerId),a&&(1===f(e)&&(r=!1),null!=e.showLegend&&(a.showLegend=e.showLegend))),r&&"service-name"!==t.sublayerTitleMode&&(t.sublayerTitleMode="item-title-and-service-name"),a}return e}))}async function m(e,a){var t,r;if(null==(null==(t=e)?void 0:t.layers)||null==(null==(r=e)?void 0:r.tables)){const t=await(0,o.b)(a);(e=e||{}).layers=e.layers||(null==t?void 0:t.layers),e.tables=e.tables||(null==t?void 0:t.tables)}return e}function p(e){const a=e.layers;if(a&&a.length)return a[0].id;const t=e.tables;return t&&t.length?t[0].id:null}function f(e){var a,t,r,n;return(null!=(a=null==e||null==(t=e.layers)?void 0:t.length)?a:0)+(null!=(r=null==e||null==(n=e.tables)?void 0:n.length)?r:0)}},14661:(e,a,t)=>{function r(e,a){return!!e.typeKeywords&&e.typeKeywords.indexOf(a)>-1}t.d(a,{_$:()=>r})},28008:(e,a,t)=>{t.r(a),t.d(a,{fromItem:()=>u,selectLayerClassPath:()=>c});var r=t(20102),n=t(87344),l=t(15235),i=t(18062),s=t(14661),o=t(96187);function u(e){return!e.portalItem||e.portalItem instanceof l.default||(e={...e,portalItem:new l.default(e.portalItem)}),function(e){return e.load().then(c).then(y)}(e.portalItem).then((a=>{const t={portalItem:e.portalItem,...a.properties},r=a.constructor;return Promise.resolve(new r(t))}))}function c(e){switch(e.type){case"Map Service":return(a=e,(0,o.b)(a.url).then((e=>e.tileInfo))).then((e=>e?{className:"TileLayer"}:{className:"MapImageLayer"}));case"Feature Service":return function(e){return d(e).then((e=>{if("object"==typeof e){const a={};return null!=e.id&&(a.layerId=e.id),{className:"FeatureLayer",properties:a}}return{className:"GroupLayer"}}))}(e);case"Feature Collection":return async function(e){if(await e.load(),(0,s._$)(e,"Map Notes"))return{className:"MapNotesLayer"};if((0,s._$)(e,"Route Layer"))return{className:"RouteLayer"};const a=await e.fetchData();return 1===(0,i.getNumLayersAndTables)(a)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return function(e){return d(e).then((a=>{if("object"==typeof a){const t={};let r;if(null!=a.id?(t.layerId=a.id,r=`${e.url}/layers/${a.id}`):r=e.url,Array.isArray(e.typeKeywords)&&e.typeKeywords.length>0){const a={IntegratedMesh:"IntegratedMeshLayer","3DObject":"SceneLayer",Point:"SceneLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};for(const t of Object.keys(a))if(-1!==e.typeKeywords.indexOf(t))return{className:a[t]}}return(0,o.b)(r).then((e=>{let a="SceneLayer";const r={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};return e&&e.layerType&&r[e.layerType]&&(a=r[e.layerType]),{className:a,properties:t}}))}return!1===a?(0,o.b)(e.url).then((e=>"Voxel"===(null==e?void 0:e.layerType)?{className:"VoxelLayer"}:{className:"GroupLayer"})):{className:"GroupLayer"}}))}(e);case"Image Service":return async function(e){var a,t,r;await e.load();const n=null!=(a=null==(t=e.typeKeywords)?void 0:t.map((e=>e.toLowerCase())))?a:[];if(n.indexOf("elevation 3d layer")>-1)return{className:"ElevationLayer"};if(n.indexOf("tiled imagery")>-1)return{className:"ImageryTileLayer"};const l=await e.fetchData(),i=null==l?void 0:l.layerType;return"ArcGISTiledImageServiceLayer"===i?{className:"ImageryTileLayer"}:"ArcGISImageServiceLayer"===i?{className:"ImageryLayer"}:"map"===(null==(r=(await(0,o.b)(e.url)).cacheType)?void 0:r.toLowerCase())?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:return Promise.reject(new r.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type}))}var a}function y(e){return(0,n.T[e.className])().then((a=>({constructor:a,properties:e.properties})))}function d(e){return!e.url||e.url.match(/\/\d+$/)?Promise.resolve({}):e.load().then((()=>e.fetchData())).then((async a=>"Feature Service"===e.type?m(a=await(0,i.preprocessFSItemData)(a,e.url)):(0,i.getNumLayersAndTables)(a)>0?m(a):(0,o.b)(e.url).then(m)))}function m(e){return 1===(0,i.getNumLayersAndTables)(e)&&{id:(0,i.getFirstLayerOrTableId)(e)}}},40555:(e,a,t)=>{t.d(a,{y:()=>i});var r=t(66643),n=t(95330),l=t(20941);async function i(e,a,t){const i=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(i&&"unique-value"===i.type&&i.styleOrigin){const s=await(0,r.q6)(i.populateFromStyle());if((0,n.k_)(t),!1===s.ok){const t=s.error;a&&a.messages&&a.messages.push(new l.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a.origin)}}}},96187:(e,a,t)=>{t.d(a,{b:()=>n});var r=t(3172);async function n(e){const{data:a}=await(0,r.default)(e,{responseType:"json",query:{f:"json"}});return a}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5883],{36030:(e,t,n)=>{n.d(t,{J:()=>o});var r=n(35454),s=n(5600);function o(e,t={}){var n;const o=e instanceof r.Xn?e:new r.Xn(e,t),i={type:null==(n=null==t?void 0:t.ignoreUnknown)||n?o.apiValues:String,readOnly:null==t?void 0:t.readOnly,json:{type:o.jsonValues,read:(null==t||!t.readOnly)&&{reader:o.read},write:{writer:o.write}}};return void 0!==(null==t?void 0:t.default)&&(i.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(i.json.name=t.name),(0,s.Cb)(i)}},67900:(e,t,n)=>{n.d(t,{gV:()=>C,En:()=>T,Z7:()=>S,c9:()=>P,_R:()=>N,qE:()=>B,cM:()=>x,hd:()=>a,ty:()=>Z,Jo:()=>_,$C:()=>G}),n(80442);var r=n(35454),s=n(70586),o=n(24678),i=n(82971),u=n(68441),c=n(8744),l=n(58116);const a=39.37,h=u.sv.radius*Math.PI/200,f=/UNIT\[([^\]]+)\]\]$/i,d=l.Z,m=/UNIT\[([^\]]+)\]/i,g=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,r.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"}),p=e=>e*e,I=e=>e*e*e,b={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:p(.001)},"square-centimeters":{inBaseUnits:p(.01)},"square-decimeters":{inBaseUnits:p(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:p(1e3)},"square-inches":{inBaseUnits:p(.0254)},"square-feet":{inBaseUnits:p(.3048)},"square-yards":{inBaseUnits:p(.9144)},"square-miles":{inBaseUnits:p(1609.344)},"square-us-feet":{inBaseUnits:p(1200/3937)},acres:{inBaseUnits:.0015625*p(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*I(.001)},"cubic-centimeters":{inBaseUnits:1e3*I(.01)},"cubic-decimeters":{inBaseUnits:1e3*I(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*I(1e3)},"cubic-inches":{inBaseUnits:1e3*I(.0254)},"cubic-feet":{inBaseUnits:1e3*I(.3048)},"cubic-yards":{inBaseUnits:1e3*I(.9144)},"cubic-miles":{inBaseUnits:1e3*I(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},w=function(){const e={};for(const t in b)for(const n in b[t].units)e[n]=t;return e}();function M(e){const t=w[e];if(t)return t;throw new Error("unknown measure")}function U(e,t=null){return t=t||M(e),b[t].baseUnit===e}function T(e,t,n){if(t===n)return e;const r=M(t);if(r!==M(n))throw new Error("incompatible units");const s=U(t,r)?e:function(e,t,n){return e*b[n].units[t].inBaseUnits}(e,t,r);return U(n,r)?s:function(e,t,n){return e/b[n].units[t].inBaseUnits}(s,n,r)}function Z(e,t,n){return T(e,t,"meters")/(n*Math.PI/180)}function G(e){return y.fromJSON(e.toLowerCase())||null}function N(e){if(e&&"object"==typeof e&&!(0,c.N$)(e))return 1;const t=P(e);return t>1e5?1:t}function x(e){return P(e)>=(e instanceof i.Z?(0,o.Iu)(e).metersPerDegree:1e5)?"meters":B(e)}function P(e,t=u.sv.metersPerDegree){return S(e,!0)||t}function S(e,t=!1){let n,r,s=null;if(null!=e&&("object"==typeof e?(n=e.wkid,r=e.wkt):"number"==typeof e?n=e:"string"==typeof e&&(r=e)),n){if((0,c.o$)(n))return u.yr.metersPerDegree;if((0,c.ME)(n))return u.Z1.metersPerDegree;s=d.values[d[n]],!s&&t&&g.has(n)&&(s=h)}else r&&(v(r)?s=q(f.exec(r),s):F(r)&&(s=q(m.exec(r),s)));return s}function q(e,t){return e&&e[1]?k(e[1]):t}function k(e){return parseFloat(e.split(",")[1])}function B(e){let t,n,r=null;if(null!=e&&("object"==typeof e?(t=e.wkid,n=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(n=e)),t)r=d.units[d[t]];else if(n){const e=v(n)?f:F(n)?m:null;if(e){const t=e.exec(n);t&&t[1]&&(r=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let n=t&&t[1];if(!n||-1===d.units.indexOf(n)){const t=k(e);n=null;const r=d.values;for(let e=0;e<r.length;++e)if(Math.abs(t-r[e])<1e-7){n=d.units[e];break}}return n}(t[1]))}}return(0,s.pC)(r)?G(r):null}function F(e){return/^GEOCCS/i.test(e)}function v(e){return/^PROJCS/i.test(e)}const E={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"},R={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},C=(0,r.wY)()(E),_=(0,r.wY)()(R);(0,r.wY)()({...E,...R})},24678:(e,t,n)=>{n.d(t,{GG:()=>u,HQ:()=>c,VY:()=>l,wY:()=>a,Iu:()=>d,e8:()=>m,rS:()=>f,N_:()=>h});var r=n(82971),s=n(68441),o=n(8744);function i(e){return new r.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 u=i(s.sv),c=i(s.yr),l=i(s.Z1),a=new r.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&&e===s.yr?c:e&&e===s.Z1?l:u}function f(e){return e&&((0,o.BZ)(e)||e===c)?c:e&&((0,o.V2)(e)||e===l)?l:u}function d(e){return e&&((0,o.BZ)(e)||e===c)?s.yr:e&&((0,o.V2)(e)||e===l)?s.Z1:s.sv}function m(e){return(0,o.o$)(e)?s.yr:(0,o.ME)(e)?s.Z1:s.sv}},60437:(e,t,n)=>{n.d(t,{Gv:()=>y,Ue:()=>s,cS:()=>f,fS:()=>g,TC:()=>i,pp:()=>u,JR:()=>d,al:()=>o,t8:()=>h,Tn:()=>a,op:()=>l,dp:()=>c});var r=n(70586);function s(e=p){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,r,o,i,u=s()){return u[0]=e,u[1]=t,u[2]=n,u[3]=r,u[4]=o,u[5]=i,u}function i(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function u(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function c(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function l(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function a(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?h(e,y):s(y)}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function m(e){return 6===e.length}function g(e,t,n){if((0,r.Wi)(e)||(0,r.Wi)(t))return e===t;if(!m(e)||!m(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n(6570),n(24470);const y=[1/0,1/0,1/0,-1/0,-1/0,-1/0],p=[0,0,0,0,0,0];s()},24470:(e,t,n)=>{n.d(t,{Gv:()=>f,SO:()=>l,r3:()=>h,Ue:()=>o,oJ:()=>u,al:()=>i,kK:()=>a,HH:()=>c}),n(80442),n(22021);var r=n(70586),s=n(6570);function o(e=d){return[e[0],e[1],e[2],e[3]]}function i(e,t,n,r,s=o()){return s[0]=e,s[1]=t,s[2]=n,s[3]=r,s}function u(e,t=o()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function c(e,t){return new s.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function l(e){return function(e){return(0,r.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function a(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function h(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}const f=[1/0,1/0,-1/0,-1/0],d=[0,0,0,0]},82397:(e,t,n)=>{n.d(t,{vY:()=>u,J9:()=>f,U1:()=>d,Ie:()=>m,G6:()=>g});var r=n(70586);n(33955);const s=(e,t,n)=>[t,n],o=(e,t,n)=>[t,n,e[2]],i=(e,t,n)=>[t,n,e[2],e[3]];function u(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:(0,r.pC)(e.extent)?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function c({scale:e,translate:t},n){return n*e[0]+t[0]}function l({scale:e,translate:t},n){return t[1]-n*e[1]}function a(e,t,n){const r=new Array(n.length);if(!n.length)return r;const[s,o]=e.scale;let i=c(e,n[0][0]),u=l(e,n[0][1]);r[0]=t(n[0],i,u);for(let e=1;e<n.length;e++){const c=n[e];i+=c[0]*s,u-=c[1]*o,r[e]=t(c,i,u)}return r}function h(e,t,n){const r=new Array(n.length);for(let s=0;s<n.length;s++)r[s]=a(e,t,n[s]);return r}function f(e,t,n,u,c){return(0,r.pC)(n)&&(t.points=function(e,t,n,r){return a(e,n?r?i:o:r?o:s,t)}(e,n.points,u,c)),t}function d(e,t,n,s,o){return(0,r.Wi)(n)||(t.x=c(e,n.x),t.y=l(e,n.y),t!==n&&(s&&(t.z=n.z),o&&(t.m=n.m))),t}function m(e,t,n,u,c){return(0,r.pC)(n)&&(t.rings=function(e,t,n,r){return h(e,n?r?i:o:r?o:s,t)}(e,n.rings,u,c)),t}function g(e,t,n,u,c){return(0,r.pC)(n)&&(t.paths=function(e,t,n,r){return h(e,n?r?i:o:r?o:s,t)}(e,n.paths,u,c)),t}},70272:(e,t,n)=>{n.d(t,{nd:()=>i,ZP:()=>s,S6:()=>o});var r=n(70586);class s{constructor(e=null,t={},n,r){this.geometry=e,this.attributes=t,this.centroid=n,this.objectId=r,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 o(e){return!((0,r.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class i extends s{}},44876:(e,t,n)=>{n.d(t,{Z:()=>r});class r{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 r;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,n)=>{n.d(t,{Z:()=>r});class r{constructor(e=[],t=[],n=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=n}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 n=0;n<this.lengths.length;n++){const r=this.lengths[n];for(let n=0;n<r;n++)e(this.coords[2*(n+t)],this.coords[2*(n+t)+1]);t+=r}}clone(e){return e?(e.set(this.coords),new r(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new r(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},98732:(e,t,n)=>{n.d(t,{XA:()=>Y,h_:()=>$,Yn:()=>A,GH:()=>H,Uy:()=>C,EI:()=>j,cn:()=>V,di:()=>W,Iv:()=>B,fQ:()=>U,eG:()=>R,J6:()=>v,oB:()=>oe,zj:()=>J,$:()=>ee,lz:()=>se,RZ:()=>L,Nh:()=>D,Jd:()=>I,IN:()=>b,hY:()=>ne,lM:()=>z,$g:()=>te});var r=n(20102),s=n(92604),o=n(70586),i=n(33955),u=n(70272),c=n(44876),l=n(5428);function a(e,t){return e?t?4:3:t?3:2}const h=s.Z.getLogger("esri.tasks.support.optimizedFeatureSet"),f={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},d=(e,t,n,r,s,o)=>{e[n]=s,e[n+1]=o},m=(e,t,n,r,s,o)=>{e[n]=s,e[n+1]=o,e[n+2]=t[r+2]},g=(e,t,n,r,s,o)=>{e[n]=s,e[n+1]=o,e[n+2]=t[r+3]},y=(e,t,n,r,s,o)=>{e[n]=s,e[n+1]=o,e[n+2]=t[r+2],e[n+3]=t[r+3]};function p(e,t,n,r){if(e){if(n)return t&&r?y:m;if(t&&r)return g}else if(t&&r)return m;return d}function I({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function b({scale:e,translate:t},n){return Math.round((t[1]-n)/e[1])}function w({scale:e,translate:t},n){return n*e[0]+t[0]}function M({scale:e,translate:t},n){return t[1]-n*e[1]}function U(e,t,n){return e?t?n?S(e):G(e):n?x(e):T(e):null}function T(e){const t=e.coords;return{x:t[0],y:t[1]}}function Z(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function G(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function N(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function x(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function P(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function S(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 k(e,t){return e&&t?q:e?N:t?P:Z}function B(e,t,n){if((0,o.Wi)(e))return null;const r=a(t,n),s=[];for(let t=0;t<e.coords.length;t+=r){const n=[];for(let s=0;s<r;s++)n.push(e.coords[t+s]);s.push(n)}return t?n?{points:s,hasZ:t,hasM:n}:{points:s,hasZ:t}:n?{points:s,hasM:n}:{points:s}}function F(e,t,n=a(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const r=e.coords;let s=0;for(const e of t.points)for(let t=0;t<n;t++)r[s++]=e[t];return e}function v(e,t,n){if(!e)return null;const r=a(t,n),{coords:s,lengths:o}=e,i=[];let u=0;for(const e of o){const t=[];for(let n=0;n<e;n++){const e=[];for(let t=0;t<r;t++)e.push(s[u++]);t.push(e)}i.push(t)}return t?n?{paths:i,hasZ:t,hasM:n}:{paths:i,hasZ:t}:n?{paths:i,hasM:n}:{paths:i}}function E(e,t,n=a(t.hasZ,t.hasM)){const{lengths:r,coords:s}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<n;e++)s[o++]=t[e];r.push(e.length)}return e}function R(e,t,n){if(!e)return null;const r=a(t,n),{coords:s,lengths:o}=e,i=[];let u=0;for(const e of o){const t=[];for(let n=0;n<e;n++){const e=[];for(let t=0;t<r;t++)e.push(s[u++]);t.push(e)}i.push(t)}return t?n?{rings:i,hasZ:t,hasM:n}:{rings:i,hasZ:t}:n?{rings:i,hasM:n}:{rings:i}}function C(e,t,n=t.hasZ,r=t.hasM){return function(e,t,n,r){const s=a(n,r),{lengths:o,coords:i}=e;let u=0;o.length=i.length=0;for(const e of t){for(const t of e)for(let e=0;e<s;e++)i[u++]=t[e];o.push(e.length)}}(e,t.rings,n,r),e}const _=[],O=[];function Y(e,t,n,r,s){_[0]=e;const[o]=A(O,_,t,n,r,s);return _.length=O.length=0,o}function A(e,t,n,s,i,c){if(e.length=0,!n){for(const n of t){const t=n.attributes[c];e.push(new u.ZP(null,n.attributes,null,t))}return e}switch(n){case"esriGeometryPoint":return function(e,t,n,r,s){const o=k(n,r);for(const n of t){const{geometry:t,attributes:r}=n;let i;t&&(i=o(new l.Z,t)),e.push(new u.ZP(i,r,null,r[s]))}return e}(e,t,s,i,c);case"esriGeometryMultipoint":return function(e,t,n,r,s){const o=a(n,r);for(const n of t){const t=n.geometry,r=n.attributes;let i;t&&(i=F(new l.Z,t,o)),e.push(new u.ZP(i,r,null,r[s]))}return e}(e,t,s,i,c);case"esriGeometryPolyline":return function(e,t,n,r,s){const o=a(n,r);for(const n of t){const t=n.geometry,r=n.attributes;let i;t&&(i=E(new l.Z,t,o)),e.push(new u.ZP(i,r,null,r[s]))}return e}(e,t,s,i,c);case"esriGeometryPolygon":return function(e,t,n,r,s){for(const i of t){const t=i.geometry,c=i.centroid,a=i.attributes;let h;t&&(h=C(new l.Z,t,n,r)),(0,o.pC)(c)?e.push(new u.ZP(h,a,Z(new l.Z,c),a[s])):e.push(new u.ZP(h,a,null,a[s]))}return e}(e,t,s,i,c);default:h.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`)),e.length=0}return e}function j(e,t,n,r){O[0]=e,X(_,O,t,n,r);const s=_[0];return _.length=O.length=0,s}function H(e,t,n){if((0,o.Wi)(e))return null;const s=new l.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==n&&(n=e.hasM),(0,i.wp)(e)?k(null!=t?t:null!=e.z,null!=n?n:null!=e.m)(s,e):(0,i.oU)(e)?C(s,e,t,n):(0,i.l9)(e)?E(s,e,a(t,n)):(0,i.aW)(e)?F(s,e,a(t,n)):void h.error("convertFromGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${e}'`))}function W(e,t,n,s){const i=e&&("coords"in e?e:e.geometry);if((0,o.Wi)(i))return null;switch(t){case"esriGeometryPoint":{let e=T;return n&&s?e=S:n?e=G:s&&(e=x),e(i)}case"esriGeometryMultipoint":return B(i,n,s);case"esriGeometryPolyline":return v(i,n,s);case"esriGeometryPolygon":return R(i,n,s);default:return void h.error("convertToGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${t}'`))}}function X(e,t,n,s,i){if(e.length=0,(0,o.Wi)(n))return function(e,t){for(const n of t)e.push({attributes:n.attributes});return e}(e,t);switch(n){case"esriGeometryPoint":return function(e,t,n,r){let s=T;n&&r?s=S:n?s=G:r&&(s=x);for(const n of t){const{geometry:t,attributes:r}=n,i=(0,o.pC)(t)?s(t):null;e.push({attributes:r,geometry:i})}return e}(e,t,s,i);case"esriGeometryMultipoint":return function(e,t,n,r){for(const s of t){const{geometry:t,attributes:o}=s;let i;t&&(i=B(t,n,r)),e.push({attributes:o,geometry:i})}return e}(e,t,s,i);case"esriGeometryPolyline":return function(e,t,n,r){for(const s of t){const{geometry:t,attributes:i}=s;let u;(0,o.pC)(t)&&(u=v(t,n,r)),e.push({attributes:i,geometry:u})}return e}(e,t,s,i);case"esriGeometryPolygon":return function(e,t,n,r){for(const s of t){const{geometry:t,attributes:i,centroid:u}=s;let c;if((0,o.pC)(t)&&(c=R(t,n,r)),u){const t=T(u);e.push({attributes:i,centroid:t,geometry:c})}else e.push({attributes:i,geometry:c})}return e}(e,t,s,i);default:h.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`))}return e}function V(e){const{objectIdFieldName:t,spatialReference:n,transform:r,fields:s,hasM:o,hasZ:i,features:u,geometryType:c,exceededTransferLimit:l,uniqueIdField:a,queryGeometry:h,queryGeometryType:f}=e,d={features:X([],u,c,i,o),fields:s,geometryType:c,objectIdFieldName:t,spatialReference:n,uniqueIdField:a,queryGeometry:W(h,f,!1,!1)};return r&&(d.transform=r),l&&(d.exceededTransferLimit=l),o&&(d.hasM=o),i&&(d.hasZ=i),d}function $(e,t){const n=new c.Z,{hasM:s,hasZ:o,features:i,objectIdFieldName:u,spatialReference:l,geometryType:a,exceededTransferLimit:f,transform:d,fields:m}=e;return m&&(n.fields=m),n.geometryType=a,n.objectIdFieldName=u||t,n.spatialReference=l,n.objectIdFieldName?(i&&A(n.features,i,a,o,s,n.objectIdFieldName),f&&(n.exceededTransferLimit=f),s&&(n.hasM=s),o&&(n.hasZ=o),d&&(n.transform=d),n):(h.error(new r.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),n)}function z(e){const{transform:t,features:n,hasM:r,hasZ:s}=e;if(!t)return e;for(const e of n)(0,o.pC)(e.geometry)&&te(e.geometry,e.geometry,r,s,t),e.centroid&&te(e.centroid,e.centroid,r,s,t);return e.transform=null,e}function L(e,t){const{geometryType:n,features:r,hasM:s,hasZ:o}=t;if(!e)return t;for(let t=0;t<r.length;t++){const i=r[t],u=i.weakClone();u.geometry=new l.Z,D(u.geometry,i.geometry,s,o,n,e),i.centroid&&(u.centroid=new l.Z,D(u.centroid,i.centroid,s,o,"esriGeometryPoint",e)),r[t]=u}return t.transform=e,t}function D(e,t,n,r,s,i,u=n,c=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,o.Wi)(t)||!t.coords.length)return null;const l=f[s],{coords:h,lengths:d}=t,m=a(n,r),g=a(n&&u,r&&c),y=p(n,r,u,c);if(!d.length)return y(e.coords,h,0,0,I(i,h[0]),b(i,h[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=m,e;let w,M,U,T,Z=0,G=0,N=G;for(const t of d){if(t<l)continue;let n=0;G=N,U=w=I(i,h[Z]),T=M=b(i,h[Z+1]),y(e.coords,h,G,Z,U,T),n++,Z+=m,G+=g;for(let r=1;r<t;r++,Z+=m)U=I(i,h[Z]),T=b(i,h[Z+1]),U===w&&T===M||(y(e.coords,h,G,Z,U-w,T-M),G+=g,n++,w=U,M=T);n>=l&&(e.lengths.push(n),N=G)}return e.coords.length=N,e.coords.length?e:null}function J(e,t,n,r,s,o,i=n,u=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const c=f[s],{coords:l,lengths:h}=t,d=a(n,r),m=a(n&&i,r&&u),g=p(n,r,i,u);if(!h.length)return g(e.coords,l,0,0,l[0],l[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=d,e;let y=0;const I=o*o;for(const t of h){if(t<c){y+=t*d;continue}const n=e.coords.length/m,r=y,s=y+(t-1)*d;g(e.coords,l,e.coords.length,r,l[r],l[r+1]),Q(e.coords,l,d,I,g,r,s),g(e.coords,l,e.coords.length,s,l[s],l[s+1]);const o=e.coords.length/m-n;o>=c?e.lengths.push(o):e.coords.length=n*m,y+=t*d}return e.coords.length?e:null}function K(e,t,n,r){const s=e[t],o=e[t+1],i=e[n],u=e[n+1],c=e[r],l=e[r+1];let a=i,h=u,f=c-a,d=l-h;if(0!==f||0!==d){const e=((s-a)*f+(o-h)*d)/(f*f+d*d);e>1?(a=c,h=l):e>0&&(a+=f*e,h+=d*e)}return f=s-a,d=o-h,f*f+d*d}function Q(e,t,n,r,s,o,i){let u,c=r,l=0;for(let e=o+n;e<i;e+=n)u=K(t,e,o,i),u>c&&(l=e,c=u);c>r&&(l-o>n&&Q(e,t,n,r,s,o,l),s(e,t,e.length,l,t[l],t[l+1]),i-l>n&&Q(e,t,n,r,s,l,i))}function ee(e,t,n,r){if((0,o.Wi)(t)||!t.coords||!t.coords.length)return null;const s=a(n,r);let i=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=s){const n=e[t],r=e[t+1];i=Math.min(i,n),c=Math.max(c,n),u=Math.min(u,r),l=Math.max(l,r)}}return e[0]=i,e[1]=u,e[2]=c,e[3]=l,e}function te(e,t,n,r,s){const{coords:o,lengths:i}=t,u=n?r?y:m:r?m:d,c=a(n,r);if(!o.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;if(!i.length)return u(e.coords,o,0,0,w(s,o[0]),M(s,o[1])),e!==t&&(e.lengths.length=0,e.coords.length=c),e;const[l,h]=s.scale;let f=0;for(let t=0;t<i.length;t++){const n=i[t];e.lengths[t]=n;let r=w(s,o[f]),a=M(s,o[f+1]);u(e.coords,o,f,f,r,a),f+=c;for(let t=1;t<n;t++,f+=c)r+=o[f]*l,a-=o[f+1]*h,u(e.coords,o,f,f,r,a)}return e!==t&&(e.lengths.length=i.length,e.coords.length=o.length),e}function ne(e,t,n,r,s,o){const i=a(n,r),u=p(n,r,s,o),c=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<c.length;t+=i)u(e.coords,c,e.coords.length,t,c[t],c[t+1]);return e}function re(e,t,n,r){let s=0,o=e[r*t],i=e[r*(t+1)];for(let u=1;u<n;u++){const n=o+e[r*(t+u)],c=i+e[r*(t+u)+1],l=(n-o)*(c+i);o=n,i=c,s+=l}return.5*s}function se(e,t){const{coords:n,lengths:r}=e;let s=0,o=0;for(let e=0;e<r.length;e++)o+=re(n,s,r[e],t),s+=e;return Math.abs(o)}function oe(e,t){if((0,o.Wi)(e))return null;const n=e.clone(),r=e.coords,s=e.lengths;let i=0;for(let e=0;e<s.length;e++){const o=s[e];let u=r[t*i],c=r[t*i+1];for(let e=1;e<o;e++){const s=u+r[t*(i+e)],o=c+r[t*(i+e)+1];n.coords[t*(i+e)]=s,n.coords[t*(i+e)+1]=o,u=s,c=o}i+=o}return n}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3594],{22303:(t,n,r)=>{r.d(n,{Z:()=>l});var e=r(35270),o=r(22021),i=r(70586),a=r(75215);function s(t){return(0,o.uZ)((0,a.vU)(t),0,255)}function u(t,n,r){return t=Number(t),isNaN(t)?r:t<n?n:t>r?r:t}class l{constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}static blendColors(t,n,r,e=new l){return e.r=Math.round(t.r+(n.r-t.r)*r),e.g=Math.round(t.g+(n.g-t.g)*r),e.b=Math.round(t.b+(n.b-t.b)*r),e.a=t.a+(n.a-t.a)*r,e._sanitize()}static fromRgb(t,n){const r=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const t=r[2].split(/\s*,\s*/),o=r[1];if("rgb"===o&&3===t.length||"rgba"===o&&4===t.length){const r=t[0];if("%"===r.charAt(r.length-1)){const r=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(r[3]=parseFloat(t[3])),l.fromArray(r,n)}return l.fromArray(t.map((t=>parseFloat(t))),n)}if("hsl"===o&&3===t.length||"hsla"===o&&4===t.length)return l.fromArray((0,e.B7)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),n)}return null}static fromHex(t,n=new l){if(4!==t.length&&7!==t.length||"#"!==t[0])return null;const r=4===t.length?4:8,e=(1<<r)-1;let o=Number("0x"+t.substr(1));return isNaN(o)?null:(["b","g","r"].forEach((t=>{const i=o&e;o>>=r,n[t]=4===r?17*i:i})),n.a=1,n)}static fromArray(t,n=new l){return n._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(n.a)&&(n.a=1),n._sanitize()}static fromString(t,n){const r=(0,e.h$)(t);return r&&l.fromArray(r,n)||l.fromRgb(t,n)||l.fromHex(t,n)}static fromJSON(t){return t&&new l([t[0],t[1],t[2],t[3]/255])}static toUnitRGB(t){return(0,i.pC)(t)?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return(0,i.pC)(t)?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)l.fromString(t,this);else if(Array.isArray(t))l.fromArray(t,this);else{var n,r,e,o;this._set(null!=(n=t.r)?n:0,null!=(r=t.g)?r:0,null!=(e=t.b)?e:0,null!=(o=t.a)?o:1),t instanceof l||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const t=this.r.toString(16),n=this.g.toString(16),r=this.b.toString(16);return`#${t.length<2?"0"+t:t}${n.length<2?"0"+n:n}${r.length<2?"0"+r:r}`}toCss(t=!1){const n=this.r+", "+this.g+", "+this.b;return t?`rgba(${n}, ${this.a})`:`rgb(${n})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const n=s(this.r),r=s(this.g),e=s(this.b);return 0===t||1!==this.a?[n,r,e,s(255*this.a)]:[n,r,e]}clone(){return new l(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(t,n,r,e){this.r=t,this.g=n,this.b=r,this.a=e}}l.prototype.declaredClass="esri.Color"},46851:(t,n,r)=>{r.d(n,{E:()=>e,R:()=>o});const e=1e-6,o=Math.random,i=Math.PI/180,a=180/Math.PI;Object.freeze({__proto__:null,EPSILON:e,RANDOM:o,toRadian:function(t){return t*i},toDegree:function(t){return t*a},equals:function(t,n){return Math.abs(t-n)<=e*Math.max(1,Math.abs(t),Math.abs(n))}})},17896:(t,n,r)=>{r.d(n,{E:()=>h,a:()=>m,b:()=>u,c:()=>y,d:()=>b,e:()=>p,f:()=>l,g:()=>a,h:()=>d,i:()=>f,k:()=>S,l:()=>i,m:()=>v,n:()=>M,p:()=>g,q:()=>N,r:()=>q,s:()=>s,t:()=>k,u:()=>z,w:()=>Z});var e=r(65617),o=r(46851);function i(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function u(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function l(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function c(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function m(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function f(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function d(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function g(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function M(t,n){const r=n[0],e=n[1],o=n[2];let i=r*r+e*e+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function b(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function y(t,n,r){const e=n[0],o=n[1],i=n[2],a=r[0],s=r[1],u=r[2];return t[0]=o*u-i*s,t[1]=i*a-e*u,t[2]=e*s-o*a,t}function p(t,n,r,e){const o=n[0],i=n[1],a=n[2];return t[0]=o+e*(r[0]-o),t[1]=i+e*(r[1]-i),t[2]=a+e*(r[2]-a),t}function v(t,n,r){const e=n[0],o=n[1],i=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*i+r[12],t[1]=r[1]*e+r[5]*o+r[9]*i+r[13],t[2]=r[2]*e+r[6]*o+r[10]*i+r[14],t}function k(t,n,r){const e=n[0],o=n[1],i=n[2];return t[0]=e*r[0]+o*r[3]+i*r[6],t[1]=e*r[1]+o*r[4]+i*r[7],t[2]=e*r[2]+o*r[5]+i*r[8],t}function N(t,n,r){const e=r[0],o=r[1],i=r[2],a=r[3],s=n[0],u=n[1],l=n[2];let c=o*l-i*u,h=i*s-e*l,m=e*u-o*s,f=o*m-i*h,d=i*c-e*m,g=e*h-o*c;const M=2*a;return c*=M,h*=M,m*=M,f*=2,d*=2,g*=2,t[0]=s+c+f,t[1]=u+h+d,t[2]=l+m+g,t}const x=(0,e.c)(),w=(0,e.c)();function S(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function q(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],i=r[2]-n[2];let a=e*e+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=e*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const Z=l,O=c,P=h,J=f,_=d,z=i,A=g;Object.freeze({__proto__:null,length:i,copy:a,set:s,add:u,subtract:l,multiply:c,divide:h,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},min:function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t},max:function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:m,scaleAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t},distance:f,squaredDistance:d,squaredLength:g,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},normalize:M,dot:b,cross:y,lerp:p,hermite:function(t,n,r,e,o,i){const a=i*i,s=a*(2*i-3)+1,u=a*(i-2)+i,l=a*(i-1),c=a*(3-2*i);return t[0]=n[0]*s+r[0]*u+e[0]*l+o[0]*c,t[1]=n[1]*s+r[1]*u+e[1]*l+o[1]*c,t[2]=n[2]*s+r[2]*u+e[2]*l+o[2]*c,t},bezier:function(t,n,r,e,o,i){const a=1-i,s=a*a,u=i*i,l=s*a,c=3*i*s,h=3*u*a,m=u*i;return t[0]=n[0]*l+r[0]*c+e[0]*h+o[0]*m,t[1]=n[1]*l+r[1]*c+e[1]*h+o[1]*m,t[2]=n[2]*l+r[2]*c+e[2]*h+o[2]*m,t},random:function(t,n){n=n||1;const r=2*(0,o.R)()*Math.PI,e=2*(0,o.R)()-1,i=Math.sqrt(1-e*e)*n;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=e*n,t},transformMat4:v,transformMat3:k,transformQuat:N,rotateX:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[0],i[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),i[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),i[1]=o[1],i[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),i[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),i[2]=o[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},angle:function(t,n){a(x,t),a(w,n),M(x,x),M(w,w);const r=b(x,w);return r>1?0:r<-1?Math.PI:Math.acos(r)},str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},exactEquals:S,equals:function(t,n){if(t===n)return!0;const r=t[0],e=t[1],i=t[2],a=n[0],s=n[1],u=n[2];return Math.abs(r-a)<=o.E*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(e-s)<=o.E*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(i-u)<=o.E*Math.max(1,Math.abs(i),Math.abs(u))},direction:q,sub:Z,mul:O,div:P,dist:J,sqrDist:_,len:z,sqrLen:A})},65617:(t,n,r)=>{function e(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,r){return[t,n,r]}function a(t){const n=[0,0,0],r=Math.min(3,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n}function s(t,n){return new Float64Array(t,n,3)}function u(){return i(1,1,1)}function l(){return i(1,0,0)}function c(){return i(0,1,0)}function h(){return i(0,0,1)}r.d(n,{O:()=>f,Z:()=>m,a:()=>o,b:()=>s,c:()=>e,d:()=>a,f:()=>i});const m=[0,0,0],f=u(),d=l(),g=c(),M=h();Object.freeze({__proto__:null,create:e,clone:o,fromValues:i,fromArray:a,createView:s,zeros:function(){return[0,0,0]},ones:u,unitX:l,unitY:c,unitZ:h,ZEROS:m,ONES:f,UNIT_X:d,UNIT_Y:g,UNIT_Z:M})},98766:(t,n,r)=>{r.d(n,{a:()=>a,b:()=>c,c:()=>o,d:()=>M,e:()=>f,f:()=>d,g:()=>p,h:()=>v,l:()=>b,n:()=>g,s:()=>i,t:()=>y});var e=r(46851);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,r,e,o){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t}function a(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t}function s(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}function u(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t[3]=n[3]*r[3],t}function l(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t[3]=n[3]/r[3],t}function c(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t}function h(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(r*r+e*e+o*o+i*i)}function m(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return r*r+e*e+o*o+i*i}function f(t){const n=t[0],r=t[1],e=t[2],o=t[3];return Math.sqrt(n*n+r*r+e*e+o*o)}function d(t){const n=t[0],r=t[1],e=t[2],o=t[3];return n*n+r*r+e*e+o*o}function g(t,n){const r=n[0],e=n[1],o=n[2],i=n[3];let a=r*r+e*e+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=r*a,t[1]=e*a,t[2]=o*a,t[3]=i*a),t}function M(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function b(t,n,r,e){const o=n[0],i=n[1],a=n[2],s=n[3];return t[0]=o+e*(r[0]-o),t[1]=i+e*(r[1]-i),t[2]=a+e*(r[2]-a),t[3]=s+e*(r[3]-s),t}function y(t,n,r){const e=n[0],o=n[1],i=n[2],a=n[3];return t[0]=r[0]*e+r[4]*o+r[8]*i+r[12]*a,t[1]=r[1]*e+r[5]*o+r[9]*i+r[13]*a,t[2]=r[2]*e+r[6]*o+r[10]*i+r[14]*a,t[3]=r[3]*e+r[7]*o+r[11]*i+r[15]*a,t}function p(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function v(t,n){const r=t[0],o=t[1],i=t[2],a=t[3],s=n[0],u=n[1],l=n[2],c=n[3];return Math.abs(r-s)<=e.E*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-u)<=e.E*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(i-l)<=e.E*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-c)<=e.E*Math.max(1,Math.abs(a),Math.abs(c))}const k=s,N=u,x=l,w=h,S=m,q=f,Z=d;Object.freeze({__proto__:null,copy:o,set:i,add:a,subtract:s,multiply:u,divide:l,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},min:function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t[3]=Math.min(n[3],r[3]),t},max:function(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t[3]=Math.max(n[3],r[3]),t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:c,scaleAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t},distance:h,squaredDistance:m,length:f,squaredLength:d,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},normalize:g,dot:M,lerp:b,random:function(t,n){let r,o,i,a,s,u;n=n||1;do{r=2*(0,e.R)()-1,o=2*(0,e.R)()-1,s=r*r+o*o}while(s>=1);do{i=2*(0,e.R)()-1,a=2*(0,e.R)()-1,u=i*i+a*a}while(u>=1);const l=Math.sqrt((1-s)/u);return t[0]=n*r,t[1]=n*o,t[2]=n*i*l,t[3]=n*a*l,t},transformMat4:y,transformQuat:function(t,n,r){const e=n[0],o=n[1],i=n[2],a=r[0],s=r[1],u=r[2],l=r[3],c=l*e+s*i-u*o,h=l*o+u*e-a*i,m=l*i+a*o-s*e,f=-a*e-s*o-u*i;return t[0]=c*l+f*-a+h*-u-m*-s,t[1]=h*l+f*-s+m*-a-c*-u,t[2]=m*l+f*-u+c*-s-h*-a,t[3]=n[3],t},str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},exactEquals:p,equals:v,sub:k,mul:N,div:x,dist:w,sqrDist:S,len:q,sqrLen:Z})},35270:(t,n,r)=>{r.d(n,{h$:()=>o,VL:()=>i,rW:()=>u,B7:()=>s});const e={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){var n;return null!=(n=e[t.toLowerCase()])?n:null}function i(t){const n=o(t);return n?[...n]:n}function a(t,n,r){r<0&&++r,r>1&&--r;const e=6*r;return e<1?t+(n-t)*e:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t}function s(t,n,r,e=1){const o=(t%360+360)%360/360,i=r<=.5?r*(n+1):r+n-r*n,s=2*r-i;return[Math.round(255*a(s,i,o+1/3)),Math.round(255*a(s,i,o)),Math.round(255*a(s,i,o-1/3)),e]}function u(t){const n=t.length>5,r=n?8:4,e=(1<<r)-1,o=n?1:17,i=n?9===t.length:5===t.length;let a=Number("0x"+t.substr(1));if(isNaN(a))return null;const s=[0,0,0,1];let u;return i&&(u=a&e,a>>=r,s[3]=o*u/255),u=a&e,a>>=r,s[2]=o*u,u=a&e,a>>=r,s[1]=o*u,u=a&e,a>>=r,s[0]=o*u,s}},22021:(t,n,r)=>{r.d(n,{ZF:()=>h,Kt:()=>m,jE:()=>g,uZ:()=>a,oK:()=>f,Vl:()=>l,wt:()=>s,t7:()=>u,Sf:()=>i,BV:()=>c});var e=r(17896);r(98766);const o=new Float32Array(1);function i(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function a(t,n,r){return Math.min(Math.max(t,n),r)}function s(t){return 0==(t&t-1)}function u(t,n,r){return t+(n-t)*r}function l(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function h(t){return Math.acos(a(t,-1,1))}function m(t){return Math.asin(a(t,-1,1))}function f(t){return d(Math.max(-M,Math.min(t,M)))}function d(t){return o[0]=t,o[0]}function g(t,n){const r=(0,e.l)(t),o=m(t[2]/r),i=Math.atan2(t[1]/r,t[0]/r);return(0,e.s)(n,r,o,i),n}const M=d(34028234663852886e22)},66577:(t,n,r)=>{r.d(n,{qM:()=>c});var e=r(75215),o=r(6570),i=r(9361),a=r(65091),s=r(13473),u=r(17332),l=r(58901);r(82971),r(86973),r(33955);const c={base:i.Z,key:"type",typeMap:{extent:o.Z,multipoint:a.Z,point:s.Z,polyline:l.Z,polygon:u.Z}};(0,e.N7)(c)},33955:(t,n,r)=>{r.d(n,{im:()=>g,q9:()=>y,Ji:()=>M,YX:()=>c,aW:()=>h,wp:()=>m,oU:()=>d,l9:()=>f});var e=r(70586),o=r(6570),i=r(9361),a=r(65091),s=r(13473),u=r(17332),l=r(58901);function c(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function h(t){return void 0!==t.points}function m(t){return void 0!==t.x&&void 0!==t.y}function f(t){return void 0!==t.paths}function d(t){return void 0!==t.rings}function g(t){return(0,e.Wi)(t)?null:t instanceof i.Z?t:m(t)?s.Z.fromJSON(t):f(t)?l.Z.fromJSON(t):d(t)?u.Z.fromJSON(t):h(t)?a.Z.fromJSON(t):c(t)?o.Z.fromJSON(t):null}function M(t){return t?m(t)?"esriGeometryPoint":f(t)?"esriGeometryPolyline":d(t)?"esriGeometryPolygon":c(t)?"esriGeometryEnvelope":h(t)?"esriGeometryMultipoint":null:null}const b={esriGeometryPoint:s.Z,esriGeometryPolyline:l.Z,esriGeometryPolygon:u.Z,esriGeometryEnvelope:o.Z,esriGeometryMultipoint:a.Z};function y(t){return t&&b[t]||null}},86973:(t,n,r)=>{r.d(n,{Mk:()=>o,P$:()=>i});var e=r(35454);const o=(0,e.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,e.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},61576:(t,n,r)=>{r.r(n),r.d(n,{default:()=>c}),r(66577);var e=r(70586),o=r(54163),i=r(75993),a=r(55914),s=r(80676),u=r(91219),l=r(6570);class c{convertVectorFieldData(t){const n=o.Z.fromJSON(t.pixelBlock),r=(0,s.KC)(n,t.type);return Promise.resolve((0,e.pC)(r)&&r.toJSON())}async decode(t){const n=await(0,i.Jx)(t.data,t.options);return n&&n.toJSON()}symbolize(t){t.pixelBlock=o.Z.fromJSON(t.pixelBlock),t.extent=t.extent?l.Z.fromJSON(t.extent):null;const n=this.symbolizer.symbolize(t);return Promise.resolve((0,e.pC)(n)&&n.toJSON())}async updateSymbolizer(t){var n;this.symbolizer=u.Z.fromJSON(t.symbolizerJSON),t.histograms&&"rasterStretch"===(null==(n=this.symbolizer)?void 0:n.rendererJSON.type)&&(this.symbolizer.rendererJSON.histograms=t.histograms)}stretch(t){const n=this.symbolizer.simpleStretch(o.Z.fromJSON(t.srcPixelBlock),t.stretchParams);return Promise.resolve((0,e.pC)(n)&&n.toJSON())}estimateStatisticsHistograms(t){const n=(0,a.Hv)(o.Z.fromJSON(t.srcPixelBlock));return Promise.resolve(n)}split(t){const n=(0,a.Vl)(o.Z.fromJSON(t.srcPixelBlock),t.tileSize,t.maximumPyramidLevel);return n&&n.forEach(((t,r)=>{n.set(r,null==t?void 0:t.toJSON())})),Promise.resolve(n)}async mosaicAndTransform(t){const n=t.srcPixelBlocks.map((t=>t?new o.Z(t):null)),r=(0,a.us)(n,t.srcMosaicSize,{blockWidths:t.blockWidths,alignmentInfo:t.alignmentInfo});if(!t.coefs)return r&&r.toJSON();const e=(0,a.Uk)(r,t.destDimension,t.coefs,t.sampleSpacing,t.interpolation);return e&&e.toJSON()}}}}]);