@arcgis/core 6.0.0-next.21 → 6.0.0-next.23

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 (345) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/analysis/LineOfSightAnalysis.d.ts +1 -1
  3. package/analysis/LineOfSightAnalysisObserver.d.ts +5 -4
  4. package/analysis/LineOfSightAnalysisTarget.d.ts +4 -4
  5. package/analysis/Viewshed.d.ts +4 -4
  6. package/arcgisGlobal.d.ts +0 -5
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{3c277a0f099d67090d07.js → 02335385b1476fe322eb.js} +1 -1
  9. package/assets/esri/core/workers/chunks/092e311cb7aea92a6a26.js +1 -0
  10. package/assets/esri/core/workers/chunks/0df9a906f7823c23d426.js +1 -0
  11. package/assets/esri/core/workers/chunks/{4911ce62421a6c3320b0.js → 13c64087be3b2985a21b.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{8e19629899a5becf8e19.js → 150e7a7bd5df25693da7.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{3704b4e7efc3abc1a7b1.js → 242a77066ac5cdb5b7d7.js} +1 -1
  14. package/assets/esri/core/workers/chunks/2ad69cc496235702bbf2.js +1 -0
  15. package/assets/esri/core/workers/chunks/2c0cb214fedb29487eef.js +1 -0
  16. package/assets/esri/core/workers/chunks/2f91fd61019d2a37476d.js +1 -0
  17. package/assets/esri/core/workers/chunks/3cd04d23b73beaf79650.js +1 -0
  18. package/assets/esri/core/workers/chunks/434a8ba841a59e0deab9.js +1 -0
  19. package/assets/esri/core/workers/chunks/{60f92eb03c6e17ab4747.js → 435b90168f79c5587a07.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{f00458654c7c34c369ef.js → 45ba4aa87a4732198596.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{2e096537a3a5555a4a93.js → 4cb751dc8d00bdaeb04c.js} +1 -1
  22. package/assets/esri/core/workers/chunks/504184828048310a052c.js +1 -0
  23. package/assets/esri/core/workers/chunks/{eca44e53bcee9b08d70a.js → 5046214dd32029cb733d.js} +1 -1
  24. package/assets/esri/core/workers/chunks/517106048980a3cbe072.js +1 -0
  25. package/assets/esri/core/workers/chunks/53ff68d4f9e365fc15cd.js +1 -0
  26. package/assets/esri/core/workers/chunks/542e5640ea1b80ef801a.js +1 -0
  27. package/assets/esri/core/workers/chunks/58865772bed48141a56a.js +1 -0
  28. package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +1 -0
  29. package/assets/esri/core/workers/chunks/5d76f4d97beee494bbbf.js +1 -0
  30. package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +1 -0
  31. package/assets/esri/core/workers/chunks/{d08ff41e2a9bcd58b64a.js → 636cd05abfbdff19029e.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{461e63a0f436c41a9f4a.js → 64b360625c68cb863a08.js} +1 -1
  33. package/assets/esri/core/workers/chunks/67f54efc817b241f8746.js +1 -0
  34. package/assets/esri/core/workers/chunks/6d41444b46677aa762a7.js +1 -0
  35. package/assets/esri/core/workers/chunks/6dfe96b056bec30068df.js +1 -0
  36. package/assets/esri/core/workers/chunks/7159d9c36869cd82599e.js +29 -0
  37. package/assets/esri/core/workers/chunks/792d2b62356a1d953c88.js +1 -0
  38. package/assets/esri/core/workers/chunks/{814751e705c05099f864.js → 7c75a8ee266c36baa902.js} +1 -1
  39. package/assets/esri/core/workers/chunks/947674b2ca8be65b9bcc.js +1 -0
  40. package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +1 -0
  41. package/assets/esri/core/workers/chunks/{a0c9e3f8b7d55d6dc1d5.js → 96c4ea9cfa3930f1c3fb.js} +25 -21
  42. package/assets/esri/core/workers/chunks/{601e1d020b8115497944.js → 9d40786c5ceface786ba.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{a35c69a4751d28c39907.js → 9e7c4eda135c4911b268.js} +1 -1
  44. package/assets/esri/core/workers/chunks/a64446a3328a7323e307.js +1 -0
  45. package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +1 -0
  46. package/assets/esri/core/workers/chunks/aa4f3751f0d830113bed.js +1 -0
  47. package/assets/esri/core/workers/chunks/ad96132bc89671e595f3.js +1 -0
  48. package/assets/esri/core/workers/chunks/b0ca81a07cff25df19d2.js +1 -0
  49. package/assets/esri/core/workers/chunks/b1d989b72203113a06fe.js +1 -0
  50. package/assets/esri/core/workers/chunks/{9e0559cd0bb01a0ed9d7.js → b3273f847405799e3362.js} +1 -1
  51. package/assets/esri/core/workers/chunks/b4c3ec081874b49ff89b.js +1 -0
  52. package/assets/esri/core/workers/chunks/b6d71a4ab788a09714f3.js +1 -0
  53. package/assets/esri/core/workers/chunks/c0d7ae314ebfad1e3791.js +1 -0
  54. package/assets/esri/core/workers/chunks/c82daefb193aae895bc0.js +1 -0
  55. package/assets/esri/core/workers/chunks/d8a7eba588d374b2f961.js +1 -0
  56. package/assets/esri/core/workers/chunks/ee08ae5b73439a1ff666.js +1 -0
  57. package/assets/esri/core/workers/chunks/{557671c897ca5563be6c.js → f6bd7b52745b82ba73dc.js} +1 -1
  58. package/assets/esri/core/workers/chunks/fcaf9450642fcef83286.js +1 -0
  59. package/assets/esri/core/workers/chunks/feb41abc03d677df6f73.js +1 -0
  60. package/assets/esri/core/workers/chunks/ffcb99693182a621a93e.js +1 -0
  61. package/assets/esri/themes/base/_core.scss +0 -2
  62. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -0
  63. package/assets/esri/themes/dark/main.css +1 -1
  64. package/assets/esri/themes/light/main.css +1 -1
  65. package/assets/esri/themes/light/view.css +1 -1
  66. package/chunks/CloudsComposition.glsl.js +2 -2
  67. package/chunks/Component.glsl.js +9 -12
  68. package/chunks/DefaultMaterial.glsl.js +4 -5
  69. package/chunks/Path.glsl.js +2 -4
  70. package/chunks/RealisticTree.glsl.js +3 -3
  71. package/chunks/SSAO.glsl.js +1 -2
  72. package/config.d.ts +11 -30
  73. package/config.js +1 -1
  74. package/core/accessorSupport/trackingUtils.js +1 -1
  75. package/core/accessorSupport/watch.js +1 -1
  76. package/core/workers/workerFactory.js +1 -1
  77. package/core/workers.d.ts +17 -0
  78. package/geometry/support/MeshComponent.d.ts +1 -1
  79. package/geometry/support/clipRay.js +1 -1
  80. package/geometry/support/plane.js +1 -1
  81. package/geometry/support/vcsData.js +1 -1
  82. package/interfaces.d.ts +0 -55
  83. package/kernel.js +1 -1
  84. package/layers/ElevationLayer.d.ts +6 -2
  85. package/layers/FeatureLayer.d.ts +32 -14
  86. package/layers/GeoJSONLayer.d.ts +2 -107
  87. package/layers/IntegratedMeshLayer.js +1 -1
  88. package/layers/MapImageLayer.d.ts +2 -1
  89. package/layers/SceneLayer.d.ts +40 -16
  90. package/layers/SubtypeGroupLayer.d.ts +63 -0
  91. package/layers/ViewshedLayer.d.ts +10 -4
  92. package/layers/WMSLayer.d.ts +2 -69
  93. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  94. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  95. package/layers/graphics/sources/support/QueryTask.js +1 -1
  96. package/layers/mixins/TemporalLayer.d.ts +70 -48
  97. package/layers/mixins/TiledImagery.d.ts +0 -11
  98. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  99. package/layers/support/LabelClass.d.ts +20 -2
  100. package/layers/support/Sublayer.d.ts +32 -2
  101. package/layers/support/TimeInformation.js +2 -0
  102. package/libs/basisu/textureMetadata.js +2 -0
  103. package/package.json +3 -3
  104. package/popup/content.d.ts +38 -1
  105. package/popup/content.js +1 -1
  106. package/rest/layerSources/DynamicWorkspaceLayer.d.ts +10 -6
  107. package/rest/query/operations/queryUtils.js +1 -1
  108. package/rest/support/timeUtils.js +2 -0
  109. package/smartMapping/popup/support/clusterUtils.js +1 -1
  110. package/smartMapping/popup/support/utils.js +2 -2
  111. package/smartMapping/renderers/size.js +1 -1
  112. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  113. package/support/timeUtils.d.ts +11 -0
  114. package/symbols/TextSymbol.d.ts +27 -2
  115. package/time/legacyTimeZoneMap.js +1 -1
  116. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  117. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  118. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  119. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
  120. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  121. package/views/2d/layers/features/Processor.js +1 -1
  122. package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
  123. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  124. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  125. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  126. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  127. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  128. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  129. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  130. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  131. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  132. package/views/2d/layers/features/processor/AggregateStrategy.js +1 -1
  133. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  134. package/views/2d/layers/features/processor/bins/BinAdapter.js +1 -1
  135. package/views/2d/layers/features/processor/bins/BinLevelState.js +1 -1
  136. package/views/2d/layers/features/processor/clusters/ClusterAdapter.js +1 -1
  137. package/views/2d/layers/features/processor/clusters/ClusterLevelState.js +1 -1
  138. package/views/2d/layers/features/processor/tracks/TrackAdapter.js +1 -1
  139. package/views/2d/layers/features/processor/tracks/TrackLevelState.js +1 -1
  140. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  141. package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
  142. package/views/2d/layers/features/sources/strategies/chunks/ByReferenceTileSourceChunk.js +1 -1
  143. package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
  144. package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
  145. package/views/2d/layers/features/sources/strategies/chunks/ParquetSnapshotSourceChunk.js +1 -1
  146. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  147. package/views/2d/layers/features/sources/strategies/chunks/StreamSourceChunk.js +1 -1
  148. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  149. package/views/2d/layers/features/support/FeatureFilterEvaluator.js +1 -1
  150. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  151. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  152. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  153. package/views/3d/GroundView3D.js +1 -1
  154. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
  155. package/views/3d/environment/SunLighting.d.ts +16 -1
  156. package/views/3d/environment/SunLighting.js +1 -1
  157. package/views/3d/environment/VirtualLighting.d.ts +16 -1
  158. package/views/3d/environment/VirtualLighting.js +1 -1
  159. package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
  160. package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
  161. package/views/3d/layers/I3SMeshView3D.js +1 -1
  162. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  163. package/views/3d/layers/TiledLayerView3D.js +1 -1
  164. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  165. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  166. package/views/3d/support/elevationUpdateUtils.js +1 -1
  167. package/views/3d/terrain/TerrainSurface.js +1 -1
  168. package/views/3d/terrain/TileAgent.js +1 -1
  169. package/views/3d/terrain/tileUtils.js +1 -1
  170. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  171. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -2
  172. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +2 -2
  173. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +1 -1
  174. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -2
  175. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +1 -1
  176. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +6 -6
  177. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
  178. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +9 -4
  179. package/views/3d/webgl-engine/effects/snowcover/applySnow.glsl.js +18 -0
  180. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  181. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  182. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  183. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  184. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  185. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  186. package/views/3d/webgl-engine/materials/internal/worldSizedRibbonLineIntersectionUtils.js +2 -0
  187. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  188. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  189. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  190. package/views/BasemapView.js +1 -1
  191. package/views/GroundView.d.ts +1 -1
  192. package/views/GroundView.js +1 -1
  193. package/views/SceneView.js +1 -1
  194. package/views/layers/LineOfSightLayerView.d.ts +2 -2
  195. package/views/layers/ViewshedLayerView.d.ts +2 -1
  196. package/widgets/Daylight/DaylightViewModel.js +1 -1
  197. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  198. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  199. package/widgets/Locate.d.ts +1 -1
  200. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  201. package/widgets/OrientedImageryViewer.js +2 -2
  202. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  203. package/widgets/Search/SearchViewModel.js +1 -1
  204. package/widgets/Search/support/layerSearchUtils.js +1 -1
  205. package/widgets/Sketch/SketchViewModel.d.ts +61 -2
  206. package/widgets/Sketch/SketchViewModel.js +1 -1
  207. package/widgets/Sketch/support/PluginManager.js +1 -1
  208. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +3 -2
  209. package/widgets/TimeSlider.d.ts +5 -4
  210. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  211. package/widgets/support/GeolocationPositioning.d.ts +1 -2
  212. package/assets/esri/core/workers/chunks/0bd5012da287469b17d5.js +0 -1
  213. package/assets/esri/core/workers/chunks/1f6b601147521a42e65c.js +0 -1
  214. package/assets/esri/core/workers/chunks/25d14874198773d2d836.js +0 -1
  215. package/assets/esri/core/workers/chunks/2d13a22f7b2427927fdc.js +0 -1
  216. package/assets/esri/core/workers/chunks/34e0a8a3a2beea50f4f5.js +0 -1
  217. package/assets/esri/core/workers/chunks/42045cf46497828cd3c0.js +0 -1
  218. package/assets/esri/core/workers/chunks/42fd2a7b22b03dacc6a7.js +0 -1
  219. package/assets/esri/core/workers/chunks/494bd434fee9032e1d02.js +0 -1
  220. package/assets/esri/core/workers/chunks/4e350d6c76957f5beb70.js +0 -1
  221. package/assets/esri/core/workers/chunks/4fe34da1c5d63e66ce98.js +0 -1
  222. package/assets/esri/core/workers/chunks/501c6e14ab119785252b.js +0 -1
  223. package/assets/esri/core/workers/chunks/576248e9ae2654569420.js +0 -1
  224. package/assets/esri/core/workers/chunks/6059853ef3b6cddbe869.js +0 -1
  225. package/assets/esri/core/workers/chunks/6c255c029d67423e4dac.js +0 -1
  226. package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +0 -1
  227. package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +0 -1
  228. package/assets/esri/core/workers/chunks/728837812940d7f2ef43.js +0 -1
  229. package/assets/esri/core/workers/chunks/74c866e0b66e61751861.js +0 -1
  230. package/assets/esri/core/workers/chunks/7bbfe9ff352afc566367.js +0 -1
  231. package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +0 -1
  232. package/assets/esri/core/workers/chunks/95dbbddac6581b9d671f.js +0 -1
  233. package/assets/esri/core/workers/chunks/a8df3f59728f841b608e.js +0 -1
  234. package/assets/esri/core/workers/chunks/aa1ac7954e4f0fefe15b.js +0 -1
  235. package/assets/esri/core/workers/chunks/b48952e1fb4cb7360dd0.js +0 -1
  236. package/assets/esri/core/workers/chunks/b5df193c93e9c19f9700.js +0 -1
  237. package/assets/esri/core/workers/chunks/befa32b9e7b3fbdd431e.js +0 -1
  238. package/assets/esri/core/workers/chunks/c2c1f51a4668055c2838.js +0 -1
  239. package/assets/esri/core/workers/chunks/d0f5bee9db1ad51ae687.js +0 -1
  240. package/assets/esri/core/workers/chunks/d678828726371243d5eb.js +0 -1
  241. package/assets/esri/core/workers/chunks/dd0310184fe4832755a8.js +0 -1
  242. package/assets/esri/core/workers/chunks/de5ecb567bd69c613e9d.js +0 -1
  243. package/assets/esri/core/workers/chunks/dfc81e66196c402f39b4.js +0 -29
  244. package/assets/esri/core/workers/chunks/e1f5d00878f27e1d413e.js +0 -1
  245. package/assets/esri/core/workers/chunks/fb70ab267a08e24b710f.js +0 -1
  246. package/assets/esri/core/workers/chunks/fc44d45598a7476bc606.js +0 -1
  247. package/assets/esri/themes/base/widgets/_DirectionalPad.scss +0 -85
  248. package/assets/esri/widgets/DirectionalPad/t9n/messages.ar.json +0 -1
  249. package/assets/esri/widgets/DirectionalPad/t9n/messages.bg.json +0 -1
  250. package/assets/esri/widgets/DirectionalPad/t9n/messages.bs.json +0 -1
  251. package/assets/esri/widgets/DirectionalPad/t9n/messages.ca.json +0 -1
  252. package/assets/esri/widgets/DirectionalPad/t9n/messages.cs.json +0 -1
  253. package/assets/esri/widgets/DirectionalPad/t9n/messages.da.json +0 -1
  254. package/assets/esri/widgets/DirectionalPad/t9n/messages.de.json +0 -1
  255. package/assets/esri/widgets/DirectionalPad/t9n/messages.el.json +0 -1
  256. package/assets/esri/widgets/DirectionalPad/t9n/messages.en.json +0 -1
  257. package/assets/esri/widgets/DirectionalPad/t9n/messages.es.json +0 -1
  258. package/assets/esri/widgets/DirectionalPad/t9n/messages.et.json +0 -1
  259. package/assets/esri/widgets/DirectionalPad/t9n/messages.fi.json +0 -1
  260. package/assets/esri/widgets/DirectionalPad/t9n/messages.fr.json +0 -1
  261. package/assets/esri/widgets/DirectionalPad/t9n/messages.he.json +0 -1
  262. package/assets/esri/widgets/DirectionalPad/t9n/messages.hr.json +0 -1
  263. package/assets/esri/widgets/DirectionalPad/t9n/messages.hu.json +0 -1
  264. package/assets/esri/widgets/DirectionalPad/t9n/messages.id.json +0 -1
  265. package/assets/esri/widgets/DirectionalPad/t9n/messages.it.json +0 -1
  266. package/assets/esri/widgets/DirectionalPad/t9n/messages.ja.json +0 -1
  267. package/assets/esri/widgets/DirectionalPad/t9n/messages.ko.json +0 -1
  268. package/assets/esri/widgets/DirectionalPad/t9n/messages.lt.json +0 -1
  269. package/assets/esri/widgets/DirectionalPad/t9n/messages.lv.json +0 -1
  270. package/assets/esri/widgets/DirectionalPad/t9n/messages.nl.json +0 -1
  271. package/assets/esri/widgets/DirectionalPad/t9n/messages.no.json +0 -1
  272. package/assets/esri/widgets/DirectionalPad/t9n/messages.pl.json +0 -1
  273. package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-BR.json +0 -1
  274. package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-PT.json +0 -1
  275. package/assets/esri/widgets/DirectionalPad/t9n/messages.ro.json +0 -1
  276. package/assets/esri/widgets/DirectionalPad/t9n/messages.ru.json +0 -1
  277. package/assets/esri/widgets/DirectionalPad/t9n/messages.sk.json +0 -1
  278. package/assets/esri/widgets/DirectionalPad/t9n/messages.sl.json +0 -1
  279. package/assets/esri/widgets/DirectionalPad/t9n/messages.sr.json +0 -1
  280. package/assets/esri/widgets/DirectionalPad/t9n/messages.sv.json +0 -1
  281. package/assets/esri/widgets/DirectionalPad/t9n/messages.th.json +0 -1
  282. package/assets/esri/widgets/DirectionalPad/t9n/messages.tr.json +0 -1
  283. package/assets/esri/widgets/DirectionalPad/t9n/messages.uk.json +0 -1
  284. package/assets/esri/widgets/DirectionalPad/t9n/messages.vi.json +0 -1
  285. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-CN.json +0 -1
  286. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-HK.json +0 -1
  287. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-TW.json +0 -1
  288. package/assets/esri/widgets/Track/t9n/messages.ar.json +0 -1
  289. package/assets/esri/widgets/Track/t9n/messages.bg.json +0 -1
  290. package/assets/esri/widgets/Track/t9n/messages.bs.json +0 -1
  291. package/assets/esri/widgets/Track/t9n/messages.ca.json +0 -1
  292. package/assets/esri/widgets/Track/t9n/messages.cs.json +0 -1
  293. package/assets/esri/widgets/Track/t9n/messages.da.json +0 -1
  294. package/assets/esri/widgets/Track/t9n/messages.de.json +0 -1
  295. package/assets/esri/widgets/Track/t9n/messages.el.json +0 -1
  296. package/assets/esri/widgets/Track/t9n/messages.en.json +0 -1
  297. package/assets/esri/widgets/Track/t9n/messages.es.json +0 -1
  298. package/assets/esri/widgets/Track/t9n/messages.et.json +0 -1
  299. package/assets/esri/widgets/Track/t9n/messages.fi.json +0 -1
  300. package/assets/esri/widgets/Track/t9n/messages.fr.json +0 -1
  301. package/assets/esri/widgets/Track/t9n/messages.he.json +0 -1
  302. package/assets/esri/widgets/Track/t9n/messages.hr.json +0 -1
  303. package/assets/esri/widgets/Track/t9n/messages.hu.json +0 -1
  304. package/assets/esri/widgets/Track/t9n/messages.id.json +0 -1
  305. package/assets/esri/widgets/Track/t9n/messages.it.json +0 -1
  306. package/assets/esri/widgets/Track/t9n/messages.ja.json +0 -1
  307. package/assets/esri/widgets/Track/t9n/messages.ko.json +0 -1
  308. package/assets/esri/widgets/Track/t9n/messages.lt.json +0 -1
  309. package/assets/esri/widgets/Track/t9n/messages.lv.json +0 -1
  310. package/assets/esri/widgets/Track/t9n/messages.nl.json +0 -1
  311. package/assets/esri/widgets/Track/t9n/messages.no.json +0 -1
  312. package/assets/esri/widgets/Track/t9n/messages.pl.json +0 -1
  313. package/assets/esri/widgets/Track/t9n/messages.pt-BR.json +0 -1
  314. package/assets/esri/widgets/Track/t9n/messages.pt-PT.json +0 -1
  315. package/assets/esri/widgets/Track/t9n/messages.ro.json +0 -1
  316. package/assets/esri/widgets/Track/t9n/messages.ru.json +0 -1
  317. package/assets/esri/widgets/Track/t9n/messages.sk.json +0 -1
  318. package/assets/esri/widgets/Track/t9n/messages.sl.json +0 -1
  319. package/assets/esri/widgets/Track/t9n/messages.sr.json +0 -1
  320. package/assets/esri/widgets/Track/t9n/messages.sv.json +0 -1
  321. package/assets/esri/widgets/Track/t9n/messages.th.json +0 -1
  322. package/assets/esri/widgets/Track/t9n/messages.tr.json +0 -1
  323. package/assets/esri/widgets/Track/t9n/messages.uk.json +0 -1
  324. package/assets/esri/widgets/Track/t9n/messages.vi.json +0 -1
  325. package/assets/esri/widgets/Track/t9n/messages.zh-CN.json +0 -1
  326. package/assets/esri/widgets/Track/t9n/messages.zh-HK.json +0 -1
  327. package/assets/esri/widgets/Track/t9n/messages.zh-TW.json +0 -1
  328. package/views/2d/layers/features/FeatureSpatialIndex.js +0 -2
  329. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +0 -2
  330. package/views/3d/webgl-engine/effects/snowcover/SnowCover.glsl.js +0 -12
  331. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +0 -85
  332. package/widgets/DirectionalPad/DirectionalPadViewModel.js +0 -2
  333. package/widgets/DirectionalPad/VisibleElements.d.ts +0 -40
  334. package/widgets/DirectionalPad/VisibleElements.js +0 -2
  335. package/widgets/DirectionalPad/constants.js +0 -2
  336. package/widgets/DirectionalPad/css.js +0 -2
  337. package/widgets/DirectionalPad/types.d.ts +0 -27
  338. package/widgets/DirectionalPad/utils.js +0 -2
  339. package/widgets/DirectionalPad.d.ts +0 -156
  340. package/widgets/DirectionalPad.js +0 -2
  341. package/widgets/Track/TrackViewModel.d.ts +0 -131
  342. package/widgets/Track/TrackViewModel.js +0 -2
  343. package/widgets/Track/types.d.ts +0 -6
  344. package/widgets/Track.d.ts +0 -278
  345. package/widgets/Track.js +0 -2
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7301],{46130(e,t,r){r.d(t,{v:()=>i});var a=r(76553);function i(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},76553(e,t,r){function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},87301(e,t,r){r.d(t,{save:()=>u,saveAs:()=>p});var a=r(71530),i=r(10407);const n="Stream Service";function o(e){return{isValid:"stream"===e.type&&!!e.url&&!e.webSocketUrl,errorMessage:"Stream layer should be created using a url to a stream service"}}function l(e){let t=e.layerJSON;return Promise.resolve(t&&Object.keys(t).length?t:null)}async function s(e,t){let{parsedUrl:r,title:a,fullExtent:n}=e;t.url=r.path,t.title||=a,t.extent=null,null!=n&&(t.extent=await(0,i.sQ)(n)),(0,i.OM)(t,i.mm.METADATA),(0,i.LG)(t,i.mm.SINGLE_LAYER)}async function u(e,t){return(0,a.UN)({layer:e,itemType:n,additionalItemType:"Feed",validateLayer:o,createItemData:l,errorNamePrefix:"stream-layer-save"},t)}async function p(e,t,r){return(0,a.Uh)({layer:e,itemType:n,validateLayer:o,createItemData:l,errorNamePrefix:"stream-layer-save-as",newItem:t,setItemProperties:s},r)}},71530(e,t,r){r.d(t,{UN:()=>I,Uh:()=>h});var a=r(49186),i=r(46130),n=r(20655),o=r(80812),l=r(88788),s=r(10407),u=r(26121);async function p(e){let{layer:t,errorNamePrefix:r,validateLayer:i}=e;await t.load(),function(e,t,r){let i=r(e);if(!i.isValid)throw new a.A(`${t}:invalid-parameters`,i.errorMessage,{layer:e})}(t,r,i)}function m(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function c(e){let{item:t,errorNamePrefix:r,layer:i,validateItem:n}=e;if(function(e){let{item:t,itemType:r,additionalItemType:i,errorNamePrefix:n,layer:o}=e,l=[r];if(i&&l.push(i),!l.includes(t.type)){let e=l.map(e=>`'${e}'`).join(", ");throw new a.A(`${n}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:o})}}(e),n){let e=n(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:i})}}function d(e){let{layer:t,errorNamePrefix:r}=e,{portalItem:i}=t;if(!i)throw new a.A(`${r}:portal-item-not-set`,m(t,"requires the portalItem property to be set"));if(!i.loaded)throw new a.A(`${r}:portal-item-not-loaded`,m(t,"cannot be saved to a portal item that does not exist or is inaccessible"));c({...e,item:i})}function f(e){let{newItem:t,itemType:r}=e,a=o.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=n.A.getDefault(),c({...e,item:a}),a}function y(e){return(0,l.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();let a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.ci)(t,{errorName:"layer-write:unsupported"},r),a}function v(e){(0,s.LG)(e,s.mm.JSAPI),e.typeKeywords&&=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t)}async function I(e,t){let{layer:r,createItemData:a,createJSONContext:n,setItemProperties:o,saveResources:l,supplementalUnsupportedErrors:s}=e;await p(e),d(e);let u=r.portalItem,m=n?n(u):y(u),c=await a({layer:r,layerJSON:await w(r,m,{...t,supplementalUnsupportedErrors:s})},u);return await(o?.(r,u,c)),v(u),await u.update({data:c}),(0,i.v)(m),await(l?.(u,m)),u}async function h(e,t){let{layer:r,createItemData:a,createJSONContext:n,setItemProperties:o,saveResources:l,supplementalUnsupportedErrors:s}=e;await p(e);let u=f(e),m=n?n(u):y(u),c=await a({layer:r,layerJSON:await w(r,m,{...t,supplementalUnsupportedErrors:s})},u);return await o(r,u,c),v(u),await async function(e,t,r){let a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,c,t),r.portalItem=u,(0,i.v)(m),await(l?.(u,m)),u}},88788(e,t,r){r.d(t,{m:()=>o,v:()=>n});var a=r(84952),i=r(20655);function n(e,t){return{...l(e,t),readResourcePaths:[]}}function o(e,t,r){let i=(0,a.An)(r?.forceNewItemContext?null:e.itemUrl);return{...l(e,t,r),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:i?{rootPath:i.path,writtenUrls:[]}:null,resources:r?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function l(e,t,r){return{origin:t,url:(0,a.An)(r?.forceNewItemContext?null:e.itemUrl),portal:e.portal||i.A.getDefault(),portalItem:e}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9575],{65529(e,a,t){var n=t(69622),i=t(36563);const r=e=>{let a=e;return class extends a{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,a){let t=this._listenersMap?.get(e);if(!t)return!1;let n=!1;for(let e of t.slice()){let t="deref"in e?e.deref():e;t?t?.call(this,a):n=!0}return n&&(t=t.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,t)),t.length>0}on(e,a){if(Array.isArray(e)){let t=e.map(e=>this.on(e,a));return(0,i.vE)(t)}if(e.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let t=this._listenersMap.get(e)||[];return t.push(a),this._listenersMap.set(e,t),(0,i.hA)(()=>{let t=this._listenersMap?.get(e),n=t?.indexOf(a)??-1;n>=0&&t.splice(n,1)})}once(e,a){let t=this.on(e,e=>{t.remove(),("deref"in a?a.deref():a)?.call(null,e)});return t}hasEventListener(e){let a=this._listenersMap?.get(e);return null!=a&&a.length>0}}},l=r(class{}),o=l,s=r(n.A);t.d(a,["Zt",0,r,"a$",0,l,"bk",0,o,"nJ",0,s])},3483(e,a,t){function n(e,a){for(let t of e.values())if(a(t))return!0;return!1}function i(e,a){if(a)for(let t of a)null!=t&&e.add(t)}function r(e,a){null!=a&&e.add(a)}function l(e,a){let t=new Set;return i(t,e),i(t,a),t}function o(e,a){let t=new Set;for(let n of a)e.has(n)&&t.add(n);return t}function s(e,a){if(!e||!a)return!1;if(e===a)return!0;for(let t of e)if(!a.has(t))return!1;return!0}function d(e,a){if(null==e&&null==a)return!0;if(null==e||null==a||e.size!==a.size)return!1;for(let t of e)if(!a.has(t))return!1;return!0}function u(e,a){let t=new Set(e);for(let e of a)t.delete(e);return t}t.d(a,{E$:()=>o,FB:()=>i,KC:()=>l,Yy:()=>s,aI:()=>d,bw:()=>n,iv:()=>u,kb:()=>r})},95488(e,a,t){t.d(a,{I:()=>i});var n=t(11406);class i extends n.T{notify(){let e=this._observers;if(e&&e.length>0){let a=e.slice();for(let e of a)e.onInvalidated(),e.onCommitted()}}}},39516(e,a,t){let n;async function i(e,a){let i=await async function(){return n??=Promise.all([t.e(9696),t.e(5248)]).then(()=>t(44123)).then(e=>new e.WhereClauseCache(500,500)),n}(),r=i.get(e,a);if(null==r)throw i.getError(e,a);return r}function r(e,a){return e||=null,a||=null,"1=1"===e?a??e:"1=1"===a?e??a:e&&a?`(${e}) AND (${a})`:e??a}function l(e,a){return e||=null,a||=null,"1=1"===e||"1=1"===a||e===a?"1=1"===e?e:a:e&&a?`(${e}) OR (${a})`:e??a}t.d(a,{GP:()=>i,IW:()=>l,mA:()=>r}),t(3330),t(56400)},3330(e,a,t){t.d(a,{GB:()=>i,Qo:()=>l,Y4:()=>r});var n=t(34747);class i{static{this.instance=n.mQ.parseSpecifier("UTC")}}function r(e){return e instanceof n.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function l(e){return r(e)?i.instance:e}},68463(e,a,t){t.d(a,{Mh:()=>c,A5:()=>g});var n=t(3483),i=t(97768),r=t(54218),l=t(34747);const o=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"];function s(e){if(!e||!(0,r.Kg)(e))return null;let a=l.c9.fromFormat(e,"yyyy-MM-dd");return a.isValid?a:null}function d(e){return e&&(0,r.Kg)(e)?(0,i.Pb)(o,a=>{let t=l.c9.fromFormat(e,a);return t.isValid?t:null})??null:null}function u(e){if(!e||!(0,r.Kg)(e))return null;let a=l.c9.fromISO(e);return a.isValid?a:null}const c={VALUE_OUT_OF_RANGE:"domain-validation-error::value-out-of-range",INVALID_CODED_VALUE:"domain-validation-error::invalid-coded-value"},m=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]);function f(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function T(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function p(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const S=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]);function g(e,a){let t=a??e?.domain;if(!t||"range"!==t.type)return;let n="range"in t?t.range[0]:t.minValue,i="range"in t?t.range[1]:t.maxValue,r=function(e){return null!=e&&m.has(e.type)}(e);return f(e)||p(e)||T(e)?{...A(e,i,n),isInteger:r}:{min:null!=n&&"number"==typeof n?n:null,max:null!=i&&"number"==typeof i?i:null,rawMin:n,rawMax:i,isInteger:r}}function A(e,a,t){return f(e)?{min:s(t)?.toMillis(),max:s(a)?.toMillis(),rawMin:t,rawMax:a}:p(e)?{min:d(t)?.toMillis(),max:d(a)?.toMillis(),rawMin:t,rawMax:a}:T(e)?{min:u(t)?.toMillis(),max:u(a)?.toMillis(),rawMin:t,rawMax:a}:{max:null,min:null}}(0,n.KC)(m,S)},30524(e,a,t){t.d(a,{Ah:()=>J,Bz:()=>L,CJ:()=>ie,DB:()=>A,Dx:()=>M,GZ:()=>be,JL:()=>Se,Jl:()=>U,Kl:()=>pe,NF:()=>he,OG:()=>q,OH:()=>Q,R$:()=>x,R3:()=>K,Vb:()=>ye,WA:()=>R,WX:()=>te,XT:()=>ne,Xz:()=>Y,_b:()=>G,_w:()=>y,e7:()=>Ae,eX:()=>F,hL:()=>b,lD:()=>N,mB:()=>C,nw:()=>ge,rS:()=>c,rq:()=>h,sv:()=>S,te:()=>X,uo:()=>Te,vE:()=>H,yM:()=>W,yp:()=>T,zD:()=>j}),t(49186);var n=t(93637),i=t(3483),r=(t(39516),t(68463)),l=t(69309),o=t(54218),s=t(43668);const d=/^([0-9_])/,u=/[^a-z0-9_\u0080-\uffff]+/gi;function c(e){return null==e?null:e.trim().replaceAll(u,"_").replace(d,"F$1")||null}const m=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],f=["field","normalizationField"];function T(e,a){if(null!=e&&null!=a)for(let t of Array.isArray(e)?e:[e])if(p(m,t,a),"visualVariables"in t&&t.visualVariables)for(let e of t.visualVariables)p(f,e,a)}function p(e,a,t){if(e)for(let i of e){let e=(0,n.wc)(i,a),r=e&&"function"!=typeof e&&t.get(e);r&&(0,n.sM)(i,r.name,a)}}function S(e,a){if(null!=e&&a?.fields?.length){if("startField"in e){let t=a.get(e.startField),n=a.get(e.endField);e.startField=t?.name??null,e.endField=n?.name??null}else{let t=a.get(e.startTimeField),n=a.get(e.endTimeField);e.startTimeField=t?.name??null,e.endTimeField=n?.name??null}e.trackIdField=a.get(e.trackIdField)?.name??null}}const g=new Set;function A(e,a){return e&&a?(g.clear(),y(g,e,a),Array.from(g).sort()):[]}function y(e,a,t){if(t)if(a?.fields?.length)if(t.includes("*"))for(let{name:t}of a.fields)e.add(t);else for(let n of t)h(e,a,n);else{if(t.includes("*"))return e.clear(),void e.add("*");for(let a of t)null!=a&&e.add(a)}}function h(e,a,t){if("string"==typeof t)if(a){let n=a.get(t);n&&e.add(n.name)}else e.add(t)}function b(e,a){return null==a||null==e?[]:a.includes("*")?(e.fields??[]).map(e=>e.name):a}async function M(e,a,t,n){if(!n)return;let i=(0,l.o)(n);if(i)h(e,a,i);else{let{arcadeUtils:i}=await(0,s.l)(),r=i.extractFieldNames(n,t?.partitions??a?.fields?.map(e=>e.name));for(let n of r)h(e,t?.index??a,n)}}function C({displayField:e,fields:a}){return e||(a?.length?function(e){return E(e,"name-or-title")||E(e,"unique-identifier")||E(e,"type-or-category")||function(e){for(let a of e){if(!a?.name)continue;let e=a.name.toLowerCase();if(e.includes("name")||e.includes("title"))return a.name}return null}(e)}(a):null)}function E(e,a){for(let t of e)if(t?.valueType&&t.valueType===a)return t.name;return null}function F(e){return e?A(e.fieldsIndex,_(e)):[]}const w=new Set(["oid","global-id","guid"]),v=new Set(["oid","global-id"]),I=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/objectid/i,/^perimeter_/i,/_perimeter$/i,/_i$/i];function _(e){if(!e)return[];let a="editFieldsInfo"in e&&e.editFieldsInfo;if(!a)return[];let{creationDateField:t,creatorField:n,editDateField:i,editorField:r}=a;return[t,n,i,r].filter(Boolean)}function k(e){return _(e).map(e=>e.toLowerCase())}function U(e){return!!e.type}function x(e,a){return!!e.editable&&U(e)&&!w.has(e.type)&&!k(a).includes(e.name?.toLowerCase()??"")}function L(e,a){let t=e.name?.toLowerCase()??"";return!(null!=a?.objectIdField&&t===a.objectIdField.toLowerCase()||null!=a?.globalIdField&&t===a.globalIdField.toLowerCase()||function(e){let a=new Set;k(e).forEach(e=>a.add(e)),function(e){if(!e)return[];let a=e.geometryFieldsInfo;return a?A(e.fieldsIndex,[a.shapeAreaField,a.shapeLengthField]):[]}(e).forEach(e=>a.add(e.toLowerCase()));let t=e&&"infoFor3D"in e?e.infoFor3D:void 0;return t&&(Object.values(t.assetMapFieldRoles).forEach(e=>a.add(e.toLowerCase())),Object.values(t.transformFieldRoles).forEach(e=>a.add(e.toLowerCase()))),Array.from(a)}(a).includes(t)||v.has(e.type)||I.some(e=>e.test(t)))}function N(e){let a=e.defaultValue;return void 0!==a&&V(e,a)?a:e.nullable?null:void 0}function G(e){let a="string"==typeof e?{type:e}:e;return W(a)?255:"esriFieldTypeDate"===a.type||"date"===a.type?8:void 0}function $(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function P(e){return null===e||$(e)}function D(e){return null===e||Number.isInteger(e)}function O(){return!0}function V(e,a){let t;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":t=e.nullable?D:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":t=e.nullable?P:$;break;case"string":case"esriFieldTypeString":t=e.nullable?o.CO:o.Kg;break;default:t=O}return 1===arguments.length?t:t(a)}const B=new Set(["integer","small-integer","big-integer","long","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),Z=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),z=(0,i.KC)(B,Z);function K(e){return null!=e&&B.has(e.type)}function R(e){return null!=e&&z.has(e.type)}function W(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function H(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function j(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function J(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function Q(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function X(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function Y(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function q(e,a){return null===ie(e,a)}const ee="numeric-range-validation-error::out-of-range",ae="type-validation-error::invalid-type";function te(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function ne(e){return parseFloat(e.replaceAll("_",""))}function ie(e,a){return null==e||e.nullable&&null===a?null:V(e,a)?R(e)&&!function(e,a){let t="string"==typeof e?re(e):e;if(!t)return!1;let n=t.min,i=t.max;return t.isInteger?Number.isInteger(a)&&a>=n&&a<=i:a>=n&&a<=i}(e.type,Number(a))?ee:null:ae}function re(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return le;case"esriFieldTypeInteger":case"esriFieldTypeLong":case"integer":case"long":return de;case"esriFieldTypeBigInteger":case"big-integer":return ue;case"esriFieldTypeSingle":case"single":return me;case"esriFieldTypeDouble":case"double":return fe}}const le={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},oe=-2147483648,se=2**31-1,de={min:oe,max:se,isInteger:!0,rawMin:oe,rawMax:se},ue={min:-(2**53-1),max:2**53-1,isInteger:!0,rawMin:-(2**53-1),rawMax:2**53-1},ce=(2-2**-23)*2**127,me={min:-ce,max:ce,isInteger:!1,rawMin:-ce,rawMax:ce},fe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function Te(e,a,t){switch(e){case r.Mh.INVALID_CODED_VALUE:return`Value ${t} is not in the coded domain - field: ${a.name}, domain: ${JSON.stringify(a.domain)}`;case r.Mh.VALUE_OUT_OF_RANGE:return`Value ${t} is out of the range of valid values - field: ${a.name}, domain: ${JSON.stringify(a.domain)}`;case ae:return`Value ${t} is not a valid value for the field type - field: ${a.name}, type: ${a.type}, nullable: ${a.nullable}`;case ee:{let{min:e,max:n}=re(a.type);return`Value ${t} is out of range for the number type - field: ${a.name}, type: ${a.type}, value range is ${e} to ${n}`}}}function pe(e,a){return!function(e,a){if(!e?.attributes||!a)return!0;let t=new Set(Object.keys(e.attributes)),n=!1;for(let e of a)if(!t.has(e)){n=!0;break}return n}(e,a)}function Se(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some(a=>e.toLowerCase().startsWith(a))}function ge(e){let a=e?.match(/{[^}]+}/g);return a?a.map(e=>e.slice(1,-1).split(":")[0].trim()):[]}function Ae(e,a){let{statisticType:t,onStatisticField:n,onStatisticExpression:i}=e,r=a.get(n),l=R(r),o=i?.returnType;switch(t){case"avg":case"avg_angle":return r?l||H(r)?"double":null:o&&"number"===o?"double":null;case"count":return"integer";case"min":case"max":return r?l||function(e){return null!=e&&("date"===e.type||"date-only"===e.type||"time-only"===e.type||"timestamp-offset"===e.type)}(r)?r?.type??null:null:o&&"number"===o?"double":null;case"sum":return r?l?r?.type??null:null:o&&"number"===o?"double":null;case"mode":return r?r?.type??null:o?"number"===o?"double":"string":null;default:return null}}function ye(e){let{fieldName:a,fieldsMap:t,normalizedFieldsMap:n}=e;if(!a)return;let i=t.get(a);return i||(i=t.get(he(a))??n.get(be(a)),i&&t.set(a,i),i)}function he(e){return e.trim().toLowerCase()}function be(e){return c(e)?.toLowerCase()??""}},69309(e,a,t){function n(e){if(!e)return;let a=e.match(i);return a?.groups?a.groups.doubleQuoted??a.groups.singleQuoted??a.groups.dotNotation:void 0}t.d(a,{D:()=>r,o:()=>n});const i=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-z_][a-z0-9_]*))$/i;function r(e){return e.match(l)?.[1]?.replaceAll("\\'","'")??null}const l=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},54218(e,a,t){function n(e){return"number"==typeof e}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function r(e){return"boolean"==typeof e}function l(e){return"string"==typeof e||e instanceof String}function o(e){return null==e||l(e)}function s(e){return Array.isArray(e)}function d(e){return e instanceof Date}t.d(a,{$P:()=>d,CO:()=>o,Et:()=>n,Fq:()=>i,Kg:()=>l,Lm:()=>r,cy:()=>s})},43668(e,a,t){let n;function i(){return n||=Promise.all([t.e(6854),t.e(9696),t.e(5879),t.e(5606)]).then(()=>t(55606)).then(e=>({arcade:e.arcade,arcadeUtils:e,batchExec:e.batchExec,aiServices:e.aiServices,languageUtils:e.languageUtils,Dictionary:e.Dictionary,Feature:e.arcadeFeature,Voxel:e.Voxel,Pixel:e.Pixel})),n}t.d(a,{l:()=>i})},98623(e,a,t){const n=Intl.DateTimeFormat().resolvedOptions().timeZone;t.d(a,["L",0,"unknown","N",0,n])},84741(e,a,t){t.d(a,{p:()=>o});var n=t(44208),i=t(34747);class r extends i.oh{constructor(e){super(e),this._start=[],this._end=[],this._offset=[]}get type(){return"temporal"}equals(e){return"temporal"===e.type&&e.name===this.name}_findIndexOfLatestStartIncluding(e){let a=0,t=this._start.length;for(;a<t;){let n=a+t>>>1;this._start[n]>e?t=n:a=n+1}return a-1}offset(e){if(e<-864e13||864e13<e)return NaN;let a=this._findIndexOfLatestStartIncluding(e);if(a>=0&&e<this._end[a])return this._offset[a];let t=Temporal.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(this.name),n=t.offsetNanoseconds/6e10,i=t.add({nanoseconds:1}).getTimeZoneTransition("previous")?.epochMilliseconds??-1/0,r=t.getTimeZoneTransition("next")?.epochMilliseconds??1/0;return this._start.splice(a+1,0,i),this._end.splice(a+1,0,r),this._offset.splice(a+1,0,n),n}}const l=new Map;function o(e){if((0,n.A)("esri-temporal")){let a=l.get(e);return void 0===a&&(a=new r(e),l.set(e,a)),a}return i.oh.create(e)}},56400(e,a,t){t.d(a,{ZS:()=>d,S3:()=>m,hv:()=>u,wr:()=>c,P6:()=>s});var n=t(3330),i=t(98623),r=t(84741);const l=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var o=t(34747);function s(e,a=!1,t=!0){let n=!!a&&{allowNull:t,writer(a,t){t[e]=a?function(e){return{timeZoneIANA:e}}(a):null},target:{[`${e}.timeZoneIANA`]:{type:String}}};return{json:{read:{source:e,reader:(a,t)=>t[e]?d(t[e]):null},write:n}}}function d(e,a="system"){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,a="system"){if(!e||!l.has(e.timeZone))return a;let t=l.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?t:function(e){let a=o.c9.local().setZone(e),t=Math.min(a.set({month:1,day:1}).offset,a.set({month:5}).offset);return 0===t?"Etc/UTC":`Etc/GMT${o.mQ.instance(-t).formatOffset(0,"narrow")}`}(t)}(e,a):a}function u(e,a,t,n,r){if(a&&"date"===r)return{timeZone:"UTC",timeZoneName:void 0};let l=n.hour,o="timestamp-offset"===r?void 0:e??"UTC",s=t===i.L;return{timeZone:s?o:t,timeZoneName:s&&l?"shortOffset":void 0}}function c(e){let a=new Set(["etc/utc","etc/gmt","gmt"]),t=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return"system"===e||e===i.L||a.has(e.toLowerCase())||t.has(e.toLowerCase())}function m(e){return e===i.L?n.GB.instance:"UTC"===e||"Etc/UTC"===e?o.mQ.utcInstance:(0,r.p)(e)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8548],{96520(e,t,r){r.d(t,{u:()=>a});var l=r(86211),i=r(21325),n=r(52006);function o(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e)t.length>2&&(t[2]*=r)}function s(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e){let e=(0,n.yP)(t);e.length>2&&(e[2]*=r)}}function a(e,t,r){if(!e&&!t||!r)return;let i=(0,l.G9)(r);f(e,r,i),f(t,r,i)}function f(e,t,r){if(e)for(let l of e)u(l.geometry,t,r)}function u(e,t,r){if(!e?.spatialReference||(0,i.aI)(e.spatialReference,t))return;let n=(0,l.G9)(e.spatialReference)/r;if(1!==n)if("x"in e)null!=e.z&&(e.z*=n);else if("curveRings"in e)s(e,e.curveRings,n);else if("curvePaths"in e)s(e,e.curvePaths,n);else if("rings"in e)o(e,e.rings,n);else if("paths"in e)o(e,e.paths,n);else if("points"in e&&(null==e.hasM||e.hasZ))for(let t of e.points)t.length>2&&(t[2]*=n)}},22671(e,t,r){r.d(t,{A:()=>x});var l,i=r(32198),n=r(52106),o=r(66552),s=r(25482),a=r(4718),f=r(91429),u=r(16930),p=r(60408),y=r(65864),h=r(50498),m=r(20437),g=r(36005),c=r(43937);const d=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let x=l=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,l){if(e)return void d.write(e,t,r,l);let{features:i}=this;if(i)for(let e of i)if(null!=e?.geometry)return void d.write(e.geometry.type,t,r,l)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,l=(0,y.rS)(e);return l&&!r&&t.spatialReference&&(l.spatialReference=u.A.fromJSON(t.spatialReference)),l}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new l(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let l=t.features[r];l.geometry&&=(e?.[r])?.toJSON()||l.geometry}return t}quantize(e){let{scale:[t,r],translate:[l,i]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-l)/t),e=>Math.round((i-e)/r));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[l,i],scale:[n,o]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let f=this._getHydrationFunction(e,e=>e*n+l,e=>i-e*o,s,a);for(let{geometry:e}of t)null!=e&&f&&f(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let l=u.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){let n=e[t],o=r.fromJSON(n),s=n.geometry?.spatialReference;null!=o.geometry&&!s&&(o.geometry.spatialReference=l);let a=n.aggregateGeometries,f=o.aggregateGeometries;if(a&&null!=f)for(let e in f){let t=f[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=l)}i.push(o)}return i}_quantizePoints(e,t,r){let l,i,n=[];for(let o=0,s=e.length;o<s;o++){let s=e[o];if(o>0){let e=t(s[0]),o=r(s[1]);(e!==l||o!==i)&&(n.push([e-l,o-i]),l=e,i=o)}else l=t(s[0]),i=r(s[1]),n.push([l,i])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let l=(0,p.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,n=l.length;e<n;e++){let n=l[e],o=this._quantizePoints(n,t,r);o&&i.push(o)}return i.length>0?((0,p.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{let l=this._quantizePoints(e.points,t,r);return l&&l.length>0?(e.points=l,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,l,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),l&&(e.z=l(e.z))}:"polyline"===e||"polygon"===e?e=>{let n,o,s=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,l=s.length;e<l;e++){let l=s[e];for(let e=0,i=l.length;e<i;e++){let i=l[e];e>0?(n+=i[0],o+=i[1]):(n=i[0],o=i[1]),i[0]=t(n),i[1]=r(o)}}if(l&&i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=l(r[2]),r[3]=i(r[3])}}else if(l)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=l(r[2])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),l&&null!=e.zmax&&null!=e.zmin&&(e.zmax=l(e.zmax),e.zmin=l(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{let n,o,s=e.points;for(let e=0,l=s.length;e<l;e++){let l=s[e];e>0?(n+=l[0],o+=l[1]):(n=l[0],o=l[1]),l[0]=t(n),l[1]=r(o)}if(l&&i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=l(t[2]),t[3]=i(t[3])}else if(l)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=l(t[2])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,f.MZ)({type:String,json:{write:!0}})],x.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],x.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,f.MZ)({type:[n.A],json:{write:!0}})],x.prototype,"features",void 0),(0,i.Cg)([(0,g.w)("features")],x.prototype,"readFeatures",null),(0,i.Cg)([(0,f.MZ)({type:[m.A],json:{write:!0}})],x.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:d.read}}})],x.prototype,"geometryType",void 0),(0,i.Cg)([(0,c.K)("geometryType")],x.prototype,"writeGeometryType",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],x.prototype,"hasM",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],x.prototype,"hasZ",void 0),(0,i.Cg)([(0,f.MZ)({types:h.yR,json:{write:!0}})],x.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,g.w)("queryGeometry")],x.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,f.MZ)({type:u.A,json:{write:!0}})],x.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.K)("spatialReference")],x.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,f.MZ)({json:{write:!0}})],x.prototype,"transform",void 0),x=l=(0,i.Cg)([(0,f.$K)("esri.rest.support.FeatureSet")],x),x.prototype.toJSON.isDefaultToJSON=!0}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3467,8548,9714],{78955(e,t,r){r.d(t,{Bw:()=>d,C:()=>i,Cc:()=>x,LI:()=>p,Om:()=>v,S8:()=>M,T9:()=>h,WQ:()=>o,Z0:()=>w,aI:()=>C,hG:()=>y,hZ:()=>l,hs:()=>c,jk:()=>f,m3:()=>g,t2:()=>R});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function s(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function h(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function p(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function c(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function m(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],l=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+l*l)}function y(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],l=t[3]-e[3];return r*r+n*n+i*i+l*l}function d(e){let t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function g(e){let t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function M(e,t){let r=t[0],n=t[1],i=t[2],l=t[3],o=r*r+n*n+i*i+l*l;return o>0&&(o=1/Math.sqrt(o),e[0]=r*o,e[1]=n*o,e[2]=i*o,e[3]=l*o),e}function v(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function x(e,t,r,n){let i=t[0],l=t[1],o=t[2],a=t[3];return e[0]=i+n*(r[0]-i),e[1]=l+n*(r[1]-l),e[2]=o+n*(r[2]-o),e[3]=a+n*(r[3]-a),e}function w(e,t,r){let n=t[0],i=t[1],l=t[2],o=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*l+r[12]*o,e[1]=r[1]*n+r[5]*i+r[9]*l+r[13]*o,e[2]=r[2]*n+r[6]*i+r[10]*l+r[14]*o,e[3]=r[3]*n+r[7]*i+r[11]*l+r[15]*o,e}function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function C(e,t){let r=e[0],i=e[1],l=e[2],o=e[3],a=t[0],s=t[1],u=t[2],f=t[3],h=(0,n.FD)();return Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=h*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(l-u)<=h*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(o-f)<=h*Math.max(1,Math.abs(o),Math.abs(f))}const S=a,b=s,Z=u,q=m,F=y,z=d,G=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:q,distance:m,div:Z,divide:u,dot:v,equals:C,exactEquals:R,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:z,length:d,lerp:x,max:h,min:f,mul:b,multiply:s,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:M,random:function(e,t=1){let r,i,l,o,a,s,u=n.Ov;do{r=2*u()-1,i=2*u()-1,a=r*r+i*i}while(a>=1);do{l=2*u()-1,o=2*u()-1,s=l*l+o*o}while(s>=1);let f=Math.sqrt((1-a)/s);return e[0]=t*r,e[1]=t*i,e[2]=t*l*f,e[3]=t*o*f,e},round:p,scale:c,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:l,sqrDist:F,sqrLen:G,squaredDistance:y,squaredLength:g,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:S,subtract:a,transformMat4:w,transformQuat:function(e,t,r){let n=t[0],i=t[1],l=t[2],o=r[0],a=r[1],s=r[2],u=r[3],f=u*n+a*l-s*i,h=u*i+s*n-o*l,p=u*l+o*i-a*n,c=-o*n-a*i-s*l;return e[0]=f*u+c*-o+h*-s-p*-a,e[1]=h*u+c*-a+p*-o-f*-s,e[2]=p*u+c*-s+f*-a-h*-o,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},96520(e,t,r){r.d(t,{u:()=>s});var n=r(86211),i=r(21325),l=r(52006);function o(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e)t.length>2&&(t[2]*=r)}function a(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e){let e=(0,l.yP)(t);e.length>2&&(e[2]*=r)}}function s(e,t,r){if(!e&&!t||!r)return;let i=(0,n.G9)(r);u(e,r,i),u(t,r,i)}function u(e,t,r){if(e)for(let n of e)f(n.geometry,t,r)}function f(e,t,r){if(!e?.spatialReference||(0,i.aI)(e.spatialReference,t))return;let l=(0,n.G9)(e.spatialReference)/r;if(1!==l)if("x"in e)null!=e.z&&(e.z*=l);else if("curveRings"in e)a(e,e.curveRings,l);else if("curvePaths"in e)a(e,e.curvePaths,l);else if("rings"in e)o(e,e.rings,l);else if("paths"in e)o(e,e.paths,l);else if("points"in e&&(null==e.hasM||e.hasZ))for(let t of e.points)t.length>2&&(t[2]*=l)}},22671(e,t,r){r.d(t,{A:()=>M});var n,i=r(32198),l=r(52106),o=r(66552),a=r(25482),s=r(4718),u=r(91429),f=r(16930),h=r(60408),p=r(65864),c=r(50498),m=r(20437),y=r(36005),d=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=n=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);let{features:i}=this;if(i)for(let e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,n=(0,p.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=f.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,s.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let n=t.features[r];n.geometry&&=(e?.[r])?.toJSON()||n.geometry}return t}quantize(e){let{scale:[t,r],translate:[n,i]}=e,l=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=l.length;e<t;e++)o?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[n,i],scale:[l,o]}=r,a=null,s=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;s=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+n,e=>i-e*o,a,s);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let n=f.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){let l=e[t],o=r.fromJSON(l),a=l.geometry?.spatialReference;null!=o.geometry&&!a&&(o.geometry.spatialReference=n);let s=l.aggregateGeometries,u=o.aggregateGeometries;if(s&&null!=u)for(let e in u){let t=u[e],r=s[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i,l=[];for(let o=0,a=e.length;o<a;o++){let a=e[o];if(o>0){let e=t(a[0]),o=r(a[1]);(e!==n||o!==i)&&(l.push([e-n,o-i]),n=e,i=o)}else n=t(a[0]),i=r(a[1]),l.push([n,i])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let n=(0,h.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,l=n.length;e<l;e++){let l=n[e],o=this._quantizePoints(l,t,r);o&&i.push(o)}return i.length>0?((0,h.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{let n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,o,a=(0,h.Bi)(e)?e.rings:e.paths;for(let e=0,n=a.length;e<n;e++){let n=a[e];for(let e=0,i=n.length;e<i;e++){let i=n[e];e>0?(l+=i[0],o+=i[1]):(l=i[0],o=i[1]),i[0]=t(l),i[1]=r(o)}}if(n&&i)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{let l,o,a=e.points;for(let e=0,n=a.length;e<n;e++){let n=a[e];e>0?(l+=n[0],o+=n[1]):(l=n[0],o=n[1]),n[0]=t(l),n[1]=r(o)}if(n&&i)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=n(t[2])}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[l.A],json:{write:!0}})],M.prototype,"features",void 0),(0,i.Cg)([(0,y.w)("features")],M.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[m.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],M.prototype,"geometryType",void 0),(0,i.Cg)([(0,d.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:c.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,y.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:f.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=n=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},20816(e,t,r){r.d(t,{We:()=>a,ZJ:()=>s,w5:()=>u});var n=r(56507);const i=(0,r(13069).vD)(),l=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;let i=new URL(e).host,o=l.get(i);if(!o){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,n.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function s(e,t,n=!1){if(!e||!t)return!0;let l=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(l)?.entries();if(a)for(let[e,o]of a)if(o.name===t){let t=!o.stack?.hasForwardEdits();if(!t&&n){let[{deleteForwardEdits:t},{default:n}]=await Promise.all([r.e(2186).then(()=>r(32186)),r.e(2558).then(()=>r(32558))]),a=await t(l,e,new n({sessionId:i,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;let r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=o.get(r)?.entries();if(n)for(let[e,r]of n)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,i,"Z3",0,l])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9229],{56512(e,t,i){function r(e){let t,i,r=[],o=!1;return function(...n){return o&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}(n,r)||(i=e.apply(this,n),t=this,r=n,o=!0),i}}i.d(t,{B:()=>r})},76553(e,t,i){function r(e){return e&&"getAtOrigin"in e&&"originOf"in e}i.d(t,{H:()=>r})},13069(e,t,i){i.d(t,{AG:()=>l,lk:()=>o,vD:()=>s,yS:()=>n});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}function l(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},65806(e,t,i){i.d(t,{g:()=>s});var r=i(51850),o=i(99917),n=i(9762);function s(e,t,i,r){if((0,o.canProjectWithoutEngine)(e.spatialReference,i))return l[0]=e.x,l[1]=e.y,l[2]=e.z??0,(0,n.projectBuffer)(l,e.spatialReference,0,t,i,0);let s=(0,o.tryProject)(e,i,r);return!!s&&(t[0]=s.x,t[1]=s.y,t[2]=s.z??0,!0)}const l=(0,r.vt)()},27993(e,t,i){i.d(t,{F:()=>l});var r=i(99917),o=i(16930),n=i(9762),s=i(65806);function l(e,t,i,o){return!(null==t||null==o||e.length<2)&&((0,r.canProjectWithoutEngine)(t,o)?(0,n.projectBuffer)(e,t,0,i,o,0,1):(a.x=e[0],a.y=e[1],a.z=e[2],a.spatialReference=t,(0,s.g)(a,i,o)))}const a={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},80754(e,t,i){i.d(t,{kS:()=>u,kd:()=>a});var r=i(82799),o=i(16930),n=i(60408),s=i(52006);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,s.Ed)(e))for(let i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i)if((0,s.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t}else if((0,s.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t}else if((0,s.n1)(e)){let[i,r,o]=e.b;i[0]+=t,r[0]+=t,o[0]+=t}else e[0]+=t;for(let i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,l])},61528(e,t,i){i.r(t);var r=i(32198),o=i(56507),n=i(69540),s=i(49186),l=i(44208),a=i(53966),u=i(25728),p=i(17676),h=i(36708),c=i(91429),d=i(87024),f=i(5443),y=i(16930),g=i(4146),m=i(52136),S=i(18768),v=i(69208),_=i(34287),C=i(8303),M=i(25036),A=i(10873),w=i(58325),R=i(88546),x=i(20655),T=i(24212),E=i(80215),b=i(97159),Z=i(16215),k=i(72772),I=i(98697),G=i(36005);let P=class extends((0,S.b)((0,_.q)((0,C.A)((0,M.j)((0,u.M)((0,v.d)((0,m.p)((0,n.OU)(g.A))))))))){readModifications(e,t,i){this._modificationsSource={url:(0,b.f)(e,i),context:i}}initialize(){this.addHandles([(0,h.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},h.OH),(0,h.wB)(()=>this.modifications,()=>this._modificationsGeneration++)])}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=R.Zx,this.fullExtent=R.zq,this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null,this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null,this.queryElevationCallback=null,this._modificationsGeneration=0,this._simulateGoogleUrl=!1}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[y.A.WGS84,this.esriCrsSpatialReference]:[y.A.WGS84]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[R.zq,this.esriCrsFullExtent]:[R.zq]}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){let t=[e];for(;t?.length>0;){let e=t.pop();if(!e)return;for(let[i,r]of Object.entries(e)){if("uri"===i)try{let e=new URL("https://tmp"+r).searchParams.get("session");if(e)return e}catch{}"object"==typeof r&&r&&t.push(r)}}return null}async requestRootAndSession(e){let t=(e,t)=>new s.A("3dtiles-init:"+e,t);return this._rootRequestPromise||=new Promise((i,r)=>{this.url||r(t("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((e,i)=>{if(this.replacesTerrain&&!this._key){let r=this.portalItem?.portal||this.parent?.portalItem?.portal||x.A.getDefault();r.signIn().then(()=>{r.g3dTilesEnabled?(0,o.A)(r.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>i(t("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):i(t("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+r.url))},()=>i(t("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{(0,o.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(e){return void r(t("root-parse-failed","Error parsing root tile, details: "+e))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=(0,R.uB)(this._rootTilesetJSON),(0,R._8)(this._rootTilesetJSON)&&(this.esriCrsFullExtent=(0,R.uB)(this._rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference,this.spatialReference=this.esriCrsSpatialReference),i(),this._rootRequestPromise=null):r(t("root-is-null","Root tile is null."))},e=>{(0,p.QP)(e),r(t("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>r(e))}),this._rootRequestPromise}_haveWGS84ZModifications(e){for(let t of e)if(!t.geometry?.spatialReference||115700===t.geometry?.spatialReference.vcsWkid&&4326===t.geometry?.spatialReference.wkid)return!0;return!1}async _doLoad(e){let t=null==e?null:e.signal;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new s.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(e){(0,p.QP)(e)}if(null!=this._modificationsSource){let t=await w.A.fromUrl(this._modificationsSource.url,this.spatialReference,e,!0);if(this._haveWGS84ZModifications(t)){await(0,k.initialize)();try{let e=(0,I.Ir)(null,t.toArray(),y.A.WGS84),i=(0,k.switchMeshModificationPolygonVCSSync)({modifications:e,inVCS:115700});i.success&&i.modifications&&(0,I.H1)(i.modifications,t)}catch(e){a.A.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",e)}}this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}async beforeSave(){if(null==this._modificationsSource){let{modifications:e}=this;e&&e.length>0&&await(0,k.initialize)()}else await this.load().then(()=>{},()=>{})}get memoizedElevationQueryDependencies(){return[this.loadStatus,null!=this.queryElevationCallback,(0,T.M7)(this.elevationInfo),this._modificationsGeneration]}get hasAttributionData(){return!1}_validateElevationInfo(e){let t="Integrated mesh 3d tiles layers";(0,T.XF)(a.A.getLogger(this),(0,T.B)(t,"absolute-height",e)),(0,T.XF)(a.A.getLogger(this),(0,T.tW)(t,e))}get replacesTerrain(){return this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return(0,l.A)("enable-feature:im-as-ground")?(0,Z.S)(this.parent)||(0,E.Q)(this.parent):(0,Z.S)(this.parent)}get hasGoogleUrl(){return this._simulateGoogleUrl||!!this.url?.match(/.+\.googleapis.com/)}get test(){}};(0,r.Cg)([(0,c.MZ)({type:["IntegratedMesh3DTilesLayer"]})],P.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,c.MZ)({type:w.A,clonable:e=>e?.clone()??null}),(0,d.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],P.prototype,"modifications",void 0),(0,r.Cg)([(0,c.MZ)({clonable:e=>e?{...e}:null})],P.prototype,"_modificationsSource",void 0),(0,r.Cg)([(0,G.w)(["web-scene","portal-item"],"modifications")],P.prototype,"readModifications",null),(0,r.Cg)([(0,c.MZ)({type:y.A})],P.prototype,"spatialReference",void 0),(0,r.Cg)([(0,c.MZ)({type:f.A})],P.prototype,"fullExtent",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],P.prototype,"supportedSpatialReferences",null),(0,r.Cg)([(0,c.MZ)({type:[f.A]})],P.prototype,"fullExtents",null),(0,r.Cg)([(0,c.MZ)(A.Yj)],P.prototype,"elevationInfo",null),(0,r.Cg)([(0,c.MZ)({type:["show","hide"]})],P.prototype,"listMode",void 0),(0,r.Cg)([(0,c.MZ)(A.OZ)],P.prototype,"url",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],P.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],P.prototype,"path",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],P.prototype,"minScale",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],P.prototype,"maxScale",void 0),(0,r.Cg)([(0,c.MZ)()],P.prototype,"queryElevationCallback",void 0),(0,r.Cg)([(0,c.MZ)()],P.prototype,"_modificationsGeneration",void 0),(0,r.Cg)([(0,c.MZ)()],P.prototype,"memoizedElevationQueryDependencies",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],P.prototype,"hasAttributionData",null),(0,r.Cg)([(0,c.MZ)()],P.prototype,"replacesTerrain",null),(0,r.Cg)([(0,c.MZ)()],P.prototype,"isUsedAsGroundLayer",null),(0,r.Cg)([(0,c.MZ)()],P.prototype,"hasGoogleUrl",null),(0,r.Cg)([(0,c.MZ)()],P.prototype,"_simulateGoogleUrl",void 0),P=(0,r.Cg)([(0,c.$K)("esri.layers.IntegratedMesh3DTilesLayer")],P);const O=P;i.d(t,["default",0,O])},52136(e,t,i){var r=i(32198),o=i(91429);i.d(t,["p",0,e=>{let t=e,i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,r.Cg)([(0,o.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},24212(e,t,i){i.d(t,{$7:()=>a,B:()=>l,M7:()=>h,XF:()=>p,tW:()=>u,w7:()=>s});var r=i(56512),o=i(86211),n=i(16271);function s(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?c:d}(e).mode}(null==e||(e.hasZ??!1),t)}function l(e,t,i){return i&&i.mode!==t?`${e} only support ${t} elevation mode`:null}function a(e,t,i){return i?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function p(e,t){t&&e.warn(".elevationInfo=",t)}function h(e){return(e?.offset??0)*(0,n.Ao)(e?.unit)}(0,r.B)((e,t,i)=>{if(!e||"decimal-degrees"===t)return 0;let r="unknown"!==t&&t?t:"meters",n=(0,o.mq)(i);return n?(0,o.oU)(e,r,n):0});const c={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,895,1150,1359,1948,3354,4144,5223,6742,7085,8125,9096],{61691(e,t,r){r.d(t,{G:()=>i});class i{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>n});var i=r(61691);class n extends i.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},73354(e,t,r){r.d(t,{a:()=>c,b:()=>a,c:()=>n,d:()=>o,e:()=>d,f:()=>h,l:()=>u,n:()=>p,t:()=>s}),r(44208);var i=r(72727);function n(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,s=n){let o=(0,i.k)(e.length,n,3),a=(0,i.k)(t.length,s,3),l=Math.min(o,a),u=r[0],h=r[1],c=r[2],d=r[4],p=r[5],f=r[6],m=r[8],g=r[9],y=r[10],v=r[12],_=r[13],w=r[14],x=0,C=0;for(let r=0;r<l;r++){let r=t[x],i=t[x+1],o=t[x+2];e[C]=u*r+d*i+m*o+v,e[C+1]=h*r+p*i+g*o+_,e[C+2]=c*r+f*i+y*o+w,x+=s,C+=n}return e}function o(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,s=n){let o=(0,i.k)(e.length,n,3),a=(0,i.k)(t.length,s,3),l=Math.min(o,a),u=r[0],h=r[1],c=r[2],d=r[3],p=r[4],f=r[5],m=r[6],g=r[7],y=r[8],v=0,_=0;for(let r=0;r<l;r++){let r=t[v],i=t[v+1],o=t[v+2];e[_]=u*r+d*i+m*o,e[_+1]=h*r+p*i+g*o,e[_+2]=c*r+f*i+y*o,v+=s,_+=n}}function l(e,t,r,i=3,n=i){let s=Math.min(e.length/i,t.length/n),o=0,a=0;for(let l=0;l<s;l++)e[a]=r*t[o],e[a+1]=r*t[o+1],e[a+2]=r*t[o+2],o+=n,a+=i;return e}function u(e,t,r,i){h(e.typedBuffer,t.typedBuffer,r,i,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r,i,n=3,s=n){let o=Math.min(e.length/n,t.length/s),a=0,l=0,u=1/2.2;for(let h=0;h<o;h++)e[l]=i*(r*t[a])**u,e[l+1]=i*(r*t[a+1])**u,e[l+2]=i*(r*t[a+2])**u,a+=s,l+=n}function c(e,t,r,n=3,s=n){let o=(0,i.k)(e.length,n,3),a=(0,i.k)(t.length,s,3),l=Math.min(o,a),u=0,h=0;for(let i=0;i<l;i++)e[h]=t[u]+r[0],e[h+1]=t[u+1]+r[1],e[h+2]=t[u+2]+r[2],u+=s,h+=n;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,r=3,i=r){let n=Math.min(e.length/r,t.length/i),s=0,o=0;for(let a=0;a<n;a++){let n=t[s],a=t[s+1],l=t[s+2],u=n*n+a*a+l*l;if(u>0){let t=1/Math.sqrt(u);e[o]=t*n,e[o+1]=t*a,e[o+2]=t*l}s+=i,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:h,linearToSRGBView:u,normalize:p,normalizeView:d,scale:l,scaleView:function(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){let i=Math.min(e.count,t.count),n=e.typedBuffer,s=e.typedBufferStride,o=t.typedBuffer,a=t.typedBufferStride,l=0,u=0;for(let e=0;e<i;e++)n[u]=o[l]>>r,n[u+1]=o[l+1]>>r,n[u+2]=o[l+2]>>r,l+=a,u+=s},transformMat3:a,transformMat3View:o,transformMat4:s,transformMat4View:n,translate:c},Symbol.toStringTag,{value:"Module"}))},69540(e,t,r){var i=r(32198),n=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let r=e,n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,i=t.store,n={},l=new Map;for(let t in r){let o=r[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],c=null;if("function"==typeof u)c=u(h,e);else if("reference"===u)c=h;else if(c=(0,s.TU)(h,e),null!=h&&null==c)continue;0===a?l.set(t,c):n[t]=c}let u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,r]of l)e.set(t,r,0)}return u}};return n=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],n),n},c=h(n.A);r.d(t,["OU",0,h,"Pw",0,c])},7762(e,t,r){var i,n=r(32198),s=r(98291),o=r(4576),a=r(65529),l=r(36563),u=r(4718),h=r(53966),c=r(93687),d=r(76030),p=r(78888),f=r(62788),m=r(10107),g=r(7695),y=r(64108),v=r(95488),_=r(12195);class w{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}}class x{constructor(e,t,r,i,n){this.target=e,this.added=t,this.removed=r,this.start=i,this.deleteCount=n}}const C=new c.A(()=>new w,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function b(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function M(e){return e?e instanceof I?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function T(e){if(e?.length)return e[0]}function A(e,t,r,i){let n=Math.min(e.length-r,t.length-i),s=0;for(;s<n&&e[r+s]===t[i+s];)s++;return s}function R(e,t,r,i){t&&t.forEach((t,n,s)=>{e.push(t),R(e,r.call(i,t,n,s),r,i)})}const S=new Set,Z=new Set,P=new Set,E=new Map;let O=0,I=i=class extends a.nJ{static ofType(e){if(!e)return i;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let r in e.typeMap){let i=e.typeMap[r].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends i{};return(0,n.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,p.dp)(e):(0,p.aq)(e)})],r.prototype,"itemType",void 0),r=(0,n.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],r),E.set(e,r),r}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:O++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof i?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?h.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,M(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){let 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:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{r()?.call(null,e),i.remove()});return i}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t);return this._splice(r,0,M(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(u.o8)})}concat(...e){(0,f.gc)(this._observable);let t=e.map(M);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let r=this._splice(0,this.length),i=r.length;for(let n=0;n<i;n++)e.call(t,r[n],n,r);this._emitAfterChanges(2)}destroyAll(){this.drain(b)}destroyMany(e){let t=this.removeMany(e);return t.forEach(b),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);let r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,f.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,f.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);let r=[];return R(r,this,e,t),new i(r)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);let r=this._items.map(e,t);return new i({items:r})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);let 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,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=T(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=T(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof i?e.toArray():e,r=this._items,n=[],s=t.length;for(let e=0;e<s;e++){let i=t[e],s=r.indexOf(i);if(s>-1){let i=1+A(t,r,e+1,s+1),o=this._splice(s,i);o&&o.length>0&&n.push.apply(n,o),e+=i-1}}return this._emitAfterChanges(2),n}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=T(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let i=(t?2:0)|!!r.length;if(this._emitBeforeChanges(i))return[];let n=this._splice(e,t,r)||[];return this._emitAfterChanges(i),n}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,_.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(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){let i,n,s=this._items,o=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(n=s.splice(e,t),this.hasEventListener("before-remove")){let t=C.acquire();t.target=this,t.cancellable=!0;for(let r=0,o=n.length;r<o;r++)i=n[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(n.splice(r,1),s.splice(e,0,i),e+=1,--r,--o);C.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=C.acquire();e.target=this,e.cancellable=!1;let t=n.length;for(let r=0;r<t;r++)e.reset(n[r]),this.emit("after-remove",e);C.release(e)}}if(r?.length){if(o){let e=[];for(let t of r){let r=o.ensureType(t);(null!=r||null==t)&&e.push(r)}r=e}let t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),n=e===this.length;if(t||i){let o=C.acquire();o.target=this,o.cancellable=!0;let a=C.acquire();a.target=this,a.cancellable=!1;for(let l of r)t?(o.reset(l),this.emit("before-add",o),o.defaultPrevented||(n?s.push(l):s.splice(e++,0,l),this._length=s.length,i&&(a.reset(l),this.emit("after-add",a)))):(n?s.push(l):s.splice(e++,0,l),this._length=s.length,a.reset(l),this.emit("after-add",a));C.release(a),C.release(o)}else{if(n)for(let e of r)s.push(e);else s.splice(e,0,...r);this._length=s.length}}if((r?.length||n?.length)&&this._notifyChangeEvent(r,n),this.hasEventListener("after-splice")){let i=new x(this,r,n,e,t);this.emit("after-splice",i)}return n}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=C.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,C.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=C.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),C.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})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;S.clear(),Z.clear(),P.clear();for(let{added:t,removed:r}of e){if(t)if(0===P.size&&0===Z.size)for(let e of t)S.add(e);else for(let e of t)Z.has(e)?(P.add(e),Z.delete(e)):P.has(e)||S.add(e);if(r)if(0===P.size&&0===S.size)for(let e of r)Z.add(e);else for(let e of r)S.has(e)?S.delete(e):(P.delete(e),Z.add(e))}let r=s.A.acquire();S.forEach(e=>{r.push(e)});let i=s.A.acquire();Z.forEach(e=>{i.push(e)});let n=this._items,o=t.items,a=s.A.acquire();if(P.forEach(e=>{o.indexOf(e)!==n.indexOf(e)&&a.push(e)}),t.listeners&&(r.length||i.length||a.length)){let e={target:this,added:r,removed:i,moved:a},n=t.listeners.length;for(let r=0;r<n;r++){let i=t.listeners[r];i.removed||i.callback.call(this,e)}}s.A.release(r),s.A.release(i),s.A.release(a)}S.clear(),Z.clear(),P.clear()}};(0,n.Cg)([(0,m.MZ)()],I.prototype,"_updating",void 0),(0,n.Cg)([(0,m.MZ)()],I.prototype,"_length",void 0),(0,n.Cg)([(0,m.MZ)()],I.prototype,"length",null),(0,n.Cg)([(0,m.MZ)()],I.prototype,"items",null),(0,n.Cg)([(0,m.MZ)({readOnly:!0})],I.prototype,"updating",null),I=i=(0,n.Cg)([(0,y.$)("esri.core.Collection")],I);const N=I;r.d(t,["A",0,N])},4902(e,t,r){var i=r(32198),n=r(64108);let s=0;const o=e=>{let t=e,r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return r=(0,i.Cg)([(0,n.$)("esri.core.Identifiable")],r),r};o(class{}),r.d(t,["s",0,o])},9775(e,t,r){r.d(t,{A:()=>s});var i=r(62788),n=r(95488);class s{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,i.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,i.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.gc)(this._observable),yield*this._items}}},563(e,t,r){r.d(t,{QueueProcessor:()=>u,SharedConcurrency:()=>c});var i=r(97768),n=r(17676),s=r(9775),o=r(32587),a=r(76030),l=r(44794);class u{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,l.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??d,this._queue=new s.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,i.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){this._controllers.get(e)?.abort()}clear(){this._queue.clear();let e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}_get(e){return this._deferreds.get(e)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){let r=this._get(e);if(r)return r;let i=new AbortController,s=Promise.withResolvers(),o=t?(0,n.u7)(t,()=>i.abort()):null,a=(0,n.NY)(i.signal,()=>{let t=this._processingItems.get(e);t&&t.controller.abort(),l(),s.reject((0,n.NK)())}),l=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,s),this._controllers.set(e,i),s.promise.then(l,l),this._queue.push(e),this._scheduleNext(),s.promise}last(){return this._queue.last()}reset(){let e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!(!this._deferreds.get(e.item)||this._processingItems.get(e.item)!==e)}_process(e){if(null==e)return;let t,r=new AbortController,i=new h(e,r);this._processingItems.set(e,i),this.sharedConcurrency.current.value+=1;try{t=this.process(e,r.signal)}catch(e){this._processError(i,e)}(0,n.$X)(t)?(i.promise=t,t.then(e=>this._processResult(i,e),e=>this._processError(i,e))):this._processResult(i,t)}}class h{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class c{constructor(e){this.limit=e,this.current=(0,l.v)(0)}get full(){return this.current.value>=this.limit}}const d=new c(1/0)},32587(e,t,r){r.d(t,{A:()=>s});var i=r(62788),n=r(95488);class s{constructor(e){this._observable=new n.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,i.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){let t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,i.gc)(this._observable),this._map.entries()}forEach(e,t){(0,i.gc)(this._observable),this._map.forEach((r,i)=>e.call(t,r,i,this),t)}get(e){return(0,i.gc)(this._observable),this._map.get(e)}has(e){return(0,i.gc)(this._observable),this._map.has(e)}keys(){return(0,i.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(let r of t){if(!this._map.has(r))continue;let t=this._map.get(r),i=e(t,r);i!==t&&this.set(r,i)}})}values(){return(0,i.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,i.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},7695(e,t,r){function i(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>i})},82534(e,t,r){function i(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>n,vt:()=>i});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:i,fromValues:function(e,t,r,i){return[e,t,r,i]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,s])},48163(e,t,r){function i(){return[0,0]}function n(e){return[e[0],e[1]]}function s(e,t){return[e,t]}function o(){return s(1,1)}function a(){return s(-1,-1)}function l(){return s(1,0)}function u(){return s(0,1)}r.d(t,{fA:()=>s,o8:()=>n,vt:()=>i});const h=o(),c=a(),d=l(),p=u();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:h,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:n,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:s,negativeOnes:a,ones:o,unitX:l,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,c,"Un",0,h])},17799(e,t,r){r.d(t,{T9:()=>a,d_:()=>n,gT:()=>s});var i=r(86211);function n(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function s(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function o(e,t,r="arithmetic"){return{type:(0,i.t$)(t),value:e,unit:t,rotationType:r}}function a(e,t){return null==e?t:null==t||e.value>(0,i.oU)(t.value,t.unit,e.unit)?e:t}n(0,"meters"),s(0,"square-meters"),o(0,"radians"),o(0,"degrees"),o(0,"degrees","geographic")},36708(e,t,r){r.d(t,{C_:()=>d,on:()=>c,wB:()=>l,z7:()=>u});var i=r(37955),n=r(36563),s=r(97768),o=r(17676),a=r(14012);function l(e,t,r={}){return h(e,t,r,p)}function u(e,t,r={}){return h(e,t,r,f)}function h(e,t,r={},i){let n=null,o=r.once?(e,r)=>{i(e)&&((0,s.xt)(n),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(n=(0,a.Cn)(e,o,r.sync,r.equals),r.initial){let t=e();o(t,t)}return n}function c(e,t,r,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,s.xt)(h),r(e)}let p=l(e,(e,r)=>{c(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,n.hA)(()=>{p.remove(),c()}),h}function d(e,t){return function(e,t,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());let i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((i,s)=>{a=(0,n.vE)([(0,o.u7)(r,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,r){r.d(t,{v:()=>a});var i=r(4718),n=r(62788),s=r(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=i.gh){return new o(e,t)}},88930(e,t,r){r.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>c});var i=r(97770),n=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,r,s="system"){if("unknown"===r)return e;let o=new n.oh((0,i.wj)(s)),a=n.c9.fromJSDate(e,{zone:o}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){let i=e.getTime(),n=c(t,r,"milliseconds");return new Date(i+n)}function u(e,t,r="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new n.oh((0,i.wj)(r)),l=n.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:r,mm:i,ss:n,ms:a}=t.groups;return Number(r)*o.hours+Number(i)*o.minutes+Number(n||0)*o.seconds+Number(a||0)}function c(e,t,r){return 0===e?0:e*o[t]/o[r]}},87992(e,t,r){r.d(t,{JR:()=>M,ME:()=>x,MY:()=>A,NO:()=>w,Nh:()=>b,V2:()=>E,_s:()=>O,e6:()=>N,gh:()=>C,jm:()=>T,tr:()=>z,uX:()=>m});var i=r(32198),n=r(16930),s=r(19419),o=r(60408),a=r(21325),l=r(513),u=r(50954),h=r(79567),c=r(52006),d=r(49663),p=r(46068),f=r(92722);class m{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:i,vertexZ:n,vertexM:s,partCount:o,partOffsets:a,partFlags:l,segmentFlags:u,segmentIndices:h,segmentParams:c,segmentCountArc:d,segmentCountBezier:p}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=i,this.vertexZ=n,this.vertexM=s,this.partCount=o,this.partOffsets=a,this.partFlags=l,this.segmentFlags=u,this.segmentIndices=h,this.segmentParams=c,this.segmentCountArc=d,this.segmentCountBezier=p}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:i,hasM:n,segmentCountArc:s,segmentCountBezier:o}=this,a=E(e,t,r,i,n,this.hasCurves(),s,o);a.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:u,vertexM:h}=this;if(a.vertexXY.set(l.subarray(0,2*t),0),a.vertexZ?.set(u.subarray(0,t),0),a.vertexM?.set(h.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:i,segmentParamCount:n}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(i.subarray(0,n),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new g(this):[][Symbol.iterator]()}}class g{constructor(e){this.geometry=e,this.value=new y(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(e){this.geometry=e,this.index=-1,this._readVertex=Z(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new _(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class _{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],i=t[r++],n=t[r++],s=t[r++];return{b:[this.end,[e,i],[n,s]]}}let i=t[r++],n=t[r++],s=t[r++],o=t[r++],a=t[r++],l=t[r++];r++,r++;let u=t[r++],h=t[r++];if(!(4&i)&&1===s)return{c:[this.end,[u,h]]};let c=2&i?0:1,d=1&i?0:1;return{a:[this.end,[a,l],c,d,o,n,s]}}}function w(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,s.Ie)(),(0,i.mS)(r,new R(e,["vertexZ","vertexM","spatialReference"]),!1),(0,s.bx)(t,function(e){let t,{vertexCount:r,vertexXY:n,vertexZ:o,vertexM:a}=e,l=S(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(r,new R(e,["vertexZ","vertexM"]),!1);let n=(0,s.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,h.e)(n,e,r),e=(0,c.yP)(r)}let[o,a,u,d]=n;t={xmin:o,ymin:a,xmax:u,ymax:d,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}else{let e,i,s,o;e=i=1/0,s=o=-1/0;for(let t=0;t<r;++t){let r=n[2*t],a=n[2*t+1];e=Math.min(e,r),s=Math.max(s,r),i=Math.min(i,a),o=Math.max(o,a)}t={xmin:e,ymin:i,xmax:s,ymax:o,spatialReference:l}}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}function x(e){let t,r,i;if((0,o.fT)(e)){i="point";let{x:n,y:s,z:o,m:a}=e,l=[n,s];null!=o&&l.push(o),null!=a&&l.push(a),r=[[l]],t=1}else(0,o.U9)(e)?(i="multipoint",r=[e.points],t=e.points.length):(0,o.Rg)(e)?(i="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(i="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,P(t[0],(0,c.yP)(t.at(-1)))&&--e),e),0));let n=E(i,t,i.includes("point")?0:r.length,(0,o.Pv)(e),(0,o.W0)(e),(0,c.Ed)(e)),{hasZ:s,hasM:a,vertexXY:l,vertexZ:u,vertexM:h}=n;function d(e){l[2*f]=e[0],l[2*f+1]=e[1],s&&(u[f]=e[2]),a&&(h[f]=e[p]),++f}n.spatialReference=e.spatialReference??void 0;let p=n.hasZ?3:2,f=0;if(!n.isMultipart()){if(!s&&!a){for(let[e,t]of r[0])l[2*f]=e,l[2*f+1]=t,++f;return n}for(let e of r[0])d(e);return n}let m="polygon"===i,{partOffsets:g}=n,y=0;if(!(0,c.Ed)(e)){for(let e of r){if(g[y++]=f,0===e.length)continue;let t=e.length;if(m&&P(e[0],e.at(-1))&&--t,s||a)for(let r=0;r<t;++r)d(e[r]);else for(let r=0;r<t;++r){let[t,i]=e[r];l[2*f]=t,l[2*f+1]=i,++f}}return g[y]=f,n}function v(e){let t=_+e;if(t<=(n.segmentParams?.length??0))return;let r=t*F;r=20*Math.ceil(r/20);let i=n.segmentParams;n.segmentParams=new Float64Array(r),null!=i&&n.segmentParams.set(i)}let _=0;for(let e of r){if(n.partOffsets[y++]=f,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let i=e[t];d(r);let s=f-1;(0,c.wY)(i)?(v(10),++n.segmentCountArc,_=O(r,i,n,s,_),r=i.a[0]):(0,c.DA)(i)?(v(10),++n.segmentCountArc,_=I(r,i,n,s,_),r=i.a[0]):(0,c.aO)(i)?(v(10),++n.segmentCountArc,_=N(r,i,n,s,_),r=i.c[0]):(0,c.n1)(i)?(v(4),++n.segmentCountBezier,_=z(0,i,n,s,_),r=i.b[0]):r=i}m&&P(t,r)||d(r)}return n.partOffsets[y]=f,n}function C(e){let t=Z(e),{vertexCount:r,partCount:i,hasZ:n,hasM:s}=e,o=S(e),a=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:o}}let i=[];for(;a<r;)i.push(t(a++));return{points:i,spatialReference:o,hasZ:n,hasM:s}}if(!e.hasCurves()){let r=[];for(let n=0;n<i;++n){let i=!!(1&e.partFlags[n]),s=e.partOffsets[n+1],o=[];for(;a<s;)o.push(t(a++));i&&o.length>0&&o.push([...o[0]]),r.push(o)}return"polygon"===e.type?{rings:r,hasZ:n,hasM:s,spatialReference:o}:{paths:r,hasZ:n,hasM:s,spatialReference:o}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:n,hasM:s,spatialReference:o}:{paths:[],curvePaths:l,hasZ:n,hasM:s,spatialReference:o}}function b(e,{lengths:t,coords:r,hasZ:i,hasM:n},s){let o=e.includes("point")?0:t.length,a="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);i??=!1,n??=!1;let u=E(e,l,o,i,n,!1,0,0);if(u.spatialReference=s??void 0,!u.isMultipart()){for(let e=0,t=0;e<l;++e)u.vertexXY[2*e]=r[t++],u.vertexXY[2*e+1]=r[t++],i&&(u.vertexZ[e]=r[t++]),n&&(u.vertexM[e]=r[t++]);return u}let h=2+Number(i)+Number(n),c=0,d=0;u.partOffsets[0]=0;for(let e of t){let t=u.partOffsets[d],s=t+e-Number(a);u.partOffsets[++d]=s;for(let e=t;e<s;++e)u.vertexXY[2*e]=r[c++],u.vertexXY[2*e+1]=r[c++],i&&(u.vertexZ[e]=r[c++]),n&&(u.vertexM[e]=r[c++]);a&&(c+=h)}return u}function M({type:e,vertexCount:t,vertexXY:r,vertexZ:i,vertexM:n,partCount:s,partOffsets:o,partFlags:a,hasZ:l,hasM:u}){let h=new f.A([],[],l,u);s=Math.max(s,1);let c=0;for(let e=0;e<s;++e){let s=o?.[e+1]??t,d=h.coords.length;for(let e=c;e<s;++e)h.coords.push(r[2*e],r[2*e+1]),l&&h.coords.push(i[e]),u&&h.coords.push(n[e]);if(a&&1&a[e]){let e=c;h.coords.push(r[2*e],r[2*e+1]),l&&h.coords.push(i[e]),u&&h.coords.push(n[e])}h.lengths.push((h.coords.length-d)/h.stride),c=s}return"point"===e&&(h.lengths.length=0),h}function T(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function A(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let i=e.getLatestID();(i<=0||i===r)&&(i=void 0);let n=e.getVCS();if(null==n)return{wkid:r,latestWkid:i,wkt:t};let s=n.isCustomWkid()?0:n.getOldID();if(s<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===s)&&(o=void 0),{wkid:r,wkt:t,latestWkid:i,vcsWkid:s,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new m({...e.toFlatGeometry(),spatialReference:t})}class R{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function S({spatialReference:e}){return e instanceof n.A?e.toJSON():e}function Z({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?i=>[e[2*i],e[2*i+1],t[i],r[i]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function P(e,t){return e.every((e,r)=>e===t[r])}function E(e,t,r,i,n,s,o,a){o??=0,a??=0;let l=new m({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a}),u=2*Float64Array.BYTES_PER_ELEMENT*t;i&&(u+=Float64Array.BYTES_PER_ELEMENT*t),n&&(u+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),s&&(u+=t*Int8Array.BYTES_PER_ELEMENT,u+=t*Int32Array.BYTES_PER_ELEMENT,u+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let h=new ArrayBuffer(u),c=0;return l.vertexXY=new Float64Array(h,c,2*t),c+=l.vertexXY.byteLength,i&&(l.vertexZ=new Float64Array(h,c,t),c+=l.vertexZ.byteLength),n&&(l.vertexM=new Float64Array(h,c,t),c+=l.vertexM.byteLength),s&&(l.segmentParams=new Float64Array(h,c,l.segmentParamCount),c+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(h,c,t),l.segmentIndices.fill(V),c+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(h,c,r+1),c+=l.partOffsets.byteLength,l.partFlags=new Int8Array(h,c,r+1),c+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),s&&(l.segmentFlags=new Int8Array(h,c,t),l.segmentFlags.fill(1),c+=l.segmentFlags.byteLength),l}function O(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:n},s,o){r[s]=4,i[s]=o;let[a,[l,u],h,c,d,f,m]=t.a,g=4;c||(g|=1),h||(g|=2);let y=(0,p.SW)(e,t),[v,_]=(0,p.Uk)(y,.5);return n[o++]=g,n[o++]=f,n[o++]=m,n[o++]=d,n[o++]=l,n[o++]=u,n[o++]=y.u2-y.u1,n[o++]=y.u1,n[o++]=v,n[o++]=_,o}function I(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:n},s,o){r[s]=4,i[s]=o;let a=(0,d.io)(e,t);return D(a,4,...(0,l.mq)(a,.5),n,o)}function N(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:n},s,o){return r[s]=4,i[s]=o,D((0,u.pM)(e,t),0,...t.c[1],n,o)}function D(e,t,r,i,n,s){let{cx:o,cy:a,thetaStart:l,thetaEnd:u,radius:h}=e;return l>u||(t|=1),Math.abs(u-l)<=Math.PI||(t|=2),n[s++]=t,n[s++]=h,n[s++]=1,n[s++]=0,n[s++]=o,n[s++]=a,n[s++]=u-l,n[s++]=l,n[s++]=r,n[s++]=i,s}function z(e,{b:[t,[r,i],[n,s]]},{segmentFlags:o,segmentIndices:a,segmentParams:l},u,h){return o[u]=2,a[u]=h,l[h++]=r,l[h++]=i,l[h++]=n,l[h++]=s,h}const F=1.61803,V=-1},48526(e,t,r){r.d(t,{A:()=>g});var i,n=r(32198),s=r(4576),o=r(4718),a=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),d=r(90634),p=r(47610),f=r(56993),m=r(43937);let g=i=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:i,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=c.A.WGS84,{...e,hasM:r,hasZ:i,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,d.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:n}=this;return new i({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,s.aI)(this.points,e.points,p.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},i=2;return this.hasZ&&(r.z=t[2],i=3),this.hasM&&(r.m=t[i]),new h.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)&&((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,n.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,n.Cg)([(0,m.K)("points")],g.prototype,"writePoints",null),g=i=(0,n.Cg)([(0,a.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>f});var i,n=r(32198),s=r(4718),o=r(91429),a=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),d=r(56993),p=r(43937);let f=i=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:i,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=h.A.WGS84,{...e,hasM:r,hasZ:i,paths:t,spatialReference:n}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let i=[];for(let t=0,r=e.length;t<r;t++)i[t]=e[t].toArray();t[r]=i}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new i;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],i=this.hasZ,n=this.hasM;return i&&!n?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):n&&!i?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):i&&n?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,d.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,i=t.map(e=>new u.A(e,r));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,d.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let i=this.paths[e];if(r&&(t<0||t>i.length)||!r&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,n.Cg)([(0,p.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,n.Cg)([(0,p.K)("paths")],f.prototype,"writePaths",null),f=i=(0,n.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},89506(e,t,r){r.d(t,{WP:()=>u}),r(86211);var i=r(86742);let n,s,o,a,l;async function u(){if(!n||!(0,i.s)()){let[e]=await Promise.all([r.e(506).then(()=>r(78125)),(0,i.load)()]);n=e.fromGeometry,s=e.fromSpatialReference,o=e.getSpatialReference,a=(0,i.f)(),l=a}}r(85036)},40427(e,t,r){r.d(t,{nG:()=>u}),r(86211);var i=r(35223);let n,s,o,a,l;async function u(){if(!n||!(0,i.s)()){let[e]=await Promise.all([r.e(506).then(()=>r(78125)),(0,i.load)()]);n=e.fromGeometry,s=e.fromSpatialReference,o=e.getSpatialReference,a=(0,i.f)(),l=a}}r(85036)},86742(e,t,r){r.d(t,{execute:()=>a,f:()=>l,load:()=>o,s:()=>s});var i=r(83290);let n;function s(){return!!n&&(0,i.i)()}async function o(){if(!s()){let[e,t]=await Promise.all([Promise.all([r.e(2024),r.e(6558)]).then(()=>r(6558)),r.e(3375).then(()=>r(15756)).then(({injectPe:e})=>e),(0,i.l)()]);n=new e.OperatorGeodeticArea,t(i.p)}}function a(e,t,r){return n.execute(e,t,r,null)}function l(){return n.supportsCurves()}},77085(e,t,r){r.d(t,{execute:()=>o,load:()=>s}),r(76061);var i=r(83290);let n;async function s(){if(!n||!(0,i.i)()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(1088)]).then(()=>r(31088)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(5756)]).then(()=>r(15756)).then(({injectPe:e})=>e),(0,i.l)()]);n=new e.OperatorGeodeticDensifyByLength,t(i.p)}}function o(e,t,r,i){return n.execute(e,t,r,i,null)}},35223(e,t,r){r.d(t,{execute:()=>a,f:()=>l,load:()=>o,s:()=>s});var i=r(83290);let n;function s(){return!!n&&(0,i.i)()}async function o(){if(!s()){let[e,t]=await Promise.all([r.e(8879).then(()=>r(28879)),r.e(3375).then(()=>r(15756)).then(({injectPe:e})=>e),(0,i.l)()]);n=new e.OperatorGeodeticLength,t(i.p)}}function a(e,t,r){return n.execute(e,t,r,null)}function l(){return n.supportsCurves()}},4144(e,t,r){r.r(t),r.d(t,{clipToSpatialReference:()=>l,execute:()=>u,executeMany:()=>h,foldInto360Range:()=>c,foldInto360RangeGeodetic:()=>d,isLoaded:()=>o,load:()=>a,normalizeGeometry:()=>p,supportsCurves:()=>f,transform:()=>m});var i=r(76061),n=r(83290);let s;function o(){return!!s&&(0,n.i)()}async function a(){if(!o()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(9192)]).then(()=>r(9192)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(5756)]).then(()=>r(15756)).then(({injectPe:e})=>e),(0,n.l)()]);s=new e.OperatorProject,t(n.p)}}function l(e,t,r){return s.clipToSpatialReference(e,t,null,r)}function u(e,t){return s.execute(e,t,null)}function h(e,t){let r=s.executeMany(new i.S(e),t,null);return Array.from(r)}function c(e,t){return s.foldInto360Range(e,t)}function d(e,t,r){return s.foldInto360RangeGeodetic(e,t,r)}function p(e,t,r){return s.normalizeGeometry(e,t,r)}function f(){return s.supportsCurves()}function m(e,t,r,i,n){return s.transform(e,t,r,i,n)}},81150(e,t,r){r.d(t,{execute:()=>o,f:()=>u,isSimpleAsFeature:()=>l,z:()=>a});var i=r(76061),n=(r(55537),r(88885),r(39117));r(95213);const s=new n.J;function o(e,t,r){return s.execute(e,t,r,null)}function a(e,t,r){let n=s.executeMany(new i.S(e),t,r,null);return Array.from(n)}function l(e,t,r){return s.isSimpleAsFeature(e,t,r,null,null)}function u(){return s.supportsCurves()}},965(e,t,r){r.d(t,{lengthExecute:()=>s});var i=r(86211),n=r(78125);function s(e,t={}){let{unit:r}=t,s=(0,n.fromGeometry)(e).calculateLength2D();if(s&&r){let t=(0,n.getSpatialReference)(e);s=(0,i.PQ)(s,t,r)}return s}r(85036)},83276(e,t,r){r.r(t),r.d(t,{execute:()=>v,executeMany:()=>w,isLoaded:()=>f,load:()=>g,projectExecute:()=>y,projectExecuteMany:()=>_,projectIsLoaded:()=>p,projectLoad:()=>m,projectSupportsCurves:()=>c,supportsCurves:()=>d});var i=r(4144),n=r(85036),s=r(17499);let o,a,l,u,h,c,d;function p(){return!!o&&(0,i.isLoaded)()}function f(){return(0,n.Q)("projectOperator","isLoaded","projectIsLoaded"),p()}async function m(){if(!p()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1666)]).then(()=>r(78125)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(6129)]).then(()=>r(86129)),(0,i.load)()]);o=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,u=e.toGeometry,h=t.createProjectionTransformation,c=(0,i.supportsCurves)(),d=c}}function g(){return(0,n.Q)("projectOperator","load","projectLoad"),m()}function y(e,t,r){let n=l(e),c=h(a(n),a(t),r),d=u((0,i.execute)(o(e),c),t);return!r?.zConversionDisabled&&d?.hasZ&&(0,s.g)([d],n,t),d}function v(e,t,r){return(0,n.Q)("projectOperator","execute","projectExecute"),y(e,t,r)}function _(e,t,r){let n=e.map(o),c=l(e),d=h(a(c),a(t),r),p=(0,i.executeMany)(n,d).map(e=>u(e,t));return!r?.zConversionDisabled&&p&&(0,s.g)(p,c,t),p}function w(e,t,r){return(0,n.Q)("projectOperator","executeMany","projectExecuteMany"),_(e,t,r)}},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>g,fromGeometry:()=>m,fromMultipoint:()=>y,fromPoint:()=>v,fromPolygon:()=>_,fromPolyline:()=>w,fromPolylineUsingImportOperator:()=>x,fromSpatialReference:()=>C,getSpatialReference:()=>f,toExtent:()=>M,toGeometry:()=>b,toMultipoint:()=>T,toPoint:()=>A,toPolygon:()=>R,toPolyline:()=>S});var i=r(83661),n=r(55537),s=r(95213),o=r(88885),a=r(5443),l=r(48526),u=r(86738),h=r(39829),c=r(82799),d=(r(90293),r(83299));const p="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function m(e){switch(e.type){case"point":return v(e);case"multipoint":return y(e);case"polyline":return w(e);case"polygon":return _(e);case"extent":return g(e);default:throw Error(`Unsupported geometry type: ${e.type}`)}}function g(e){if(!e.getCacheValue(p)){let t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function y(e){if(!e.getCacheValue(p)){let t=new o.M,r=new s.P,i=e.points,n=e.hasM,a=e.hasZ,l=a?3:2;for(let e=0,s=i.length;e<s;e++){let s=i[e];r.setXYCoords(s[0],s[1]),a&&r.setZ(s[2]??0),n&&r.setM(s[l]??NaN),t.add(r)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){let t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function _(e){if(!e.getCacheValue(p)){let{curveRings:t,hasM:r,hasZ:i,rings:n}=e,s=(0,d.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:i,rings:n});e.setCacheValue(p,s)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){let{curvePaths:t,hasM:r,hasZ:i,paths:n}=e,s=(0,d.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:i,paths:n});e.setCacheValue(p,s)}return e.getCacheValue(p)}function x(e){if(!e.getCacheValue(p)){let{curvePaths:t,hasM:r,hasZ:i,paths:n}=e,s=(0,d.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:i,paths:n});e.setCacheValue(p,s)}return e.getCacheValue(p)}function C(e){return e.cache?(e.cache[p]??=(0,d.fromSpatialReference)(e),e.cache[p]):(0,d.fromSpatialReference)(e)}function b(e,t){if(e)switch(e.getGeometryType()){case n.G.enumPoint:return A(e,t);case n.G.enumEnvelope:return M(e,t);case n.G.enumMultiPoint:return T(e,t);case n.G.enumPolyline:return S(e,t);case n.G.enumPolygon:return R(e,t)}return null}function M(e,t){if(e.isEmpty())return null;let r=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),i=e.getDescription();if(i.hasM()){let t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(i.hasZ()){let t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(p,e),r}function T(e,t){if(e.isEmpty())return null;let r=e.getDescription(),i=r.hasM(),n=r.hasZ(),o=[],a=new s.P;for(let t=0,r=e.getPointCount();t<r;t++){e.getPointByVal(t,a);let r=[a.getX(),a.getY()];n&&r.push(a.getZ()),i&&r.push(a.getM()),o.push(r)}let u=new l.A({hasM:i,hasZ:n,points:o,spatialReference:t});return u.setCacheValue(p,e),u}function A(e,t){if(e instanceof i.P)return new u.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;let r=new u.A({x:e.getX(),y:e.getY(),spatialReference:t}),n=e.getDescription();return n.hasM()&&(r.m=e.getM()),n.hasZ()&&(r.z=e.getZ()),r.setCacheValue(p,e),r}function R(e,t){if(e.isEmpty())return null;let r=h.A.fromJSON({...(0,d.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(p,e),r}function S(e,t){if(e.isEmpty())return null;let r=c.A.fromJSON({...(0,d.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(p,e),r}},85036(e,t,r){r.d(t,{Q:()=>s});var i=r(51447),n=r(53966);function s(e,t,r){(0,i.io)(n.A.getLogger(`esri.geometry.operators.${e}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${r} instead.`,{replacement:r,warnOnce:!0})}},17499(e,t,r){r.d(t,{g:()=>s});var i=r(60408),n=r(62815);function s(e,t,r){let s;for(let o of e)if(o&&(0,i.Pv)(o)&&!("vertexAttributes"in o)){if(!s){let e="type"in o?o.type:(0,i.$B)(o);if(s=(0,n.N)(e,t,r),!s)return}s(o)}}},72727(e,t,r){function i(e,t,r){if(t<=0)return 0;let i=e-r;return i<0?0:Math.floor(i/t)+1}r.d(t,{k:()=>i}),r(53966)},60408(e,t,r){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function c(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>n,W0:()=>c,ZC:()=>i,fT:()=>s,uW:()=>l})},65864(e,t,r){r.d(t,{rS:()=>h,xD:()=>d});var i=r(5443),n=r(91075),s=r(48526),o=r(86738),a=r(39829),l=r(82799),u=r(60408);function h(e){return null==e?null:e instanceof n.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?i.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function d(e){return e&&c[e]||null}},27921(e,t,r){r.d(t,{$Q:()=>S,BX:()=>R,C:()=>u,Cr:()=>p,H:()=>P,LV:()=>l,O_:()=>d,Qj:()=>h,T7:()=>M,Ui:()=>b,_I:()=>E,fA:()=>c,gv:()=>T,lU:()=>f,mN:()=>O,mP:()=>x,mR:()=>C,vE:()=>D,vt:()=>a,wE:()=>I});var i=r(34727),n=r(35522),s=r(51850),o=(r(78955),r(44280),r(32114));function a(e=z){return[e[0],e[1],e[2],e[3]]}function l(e=z[0],t=z[1],r=z[2],i=z[3]){return c(e,t,r,i,o.Km.get())}function u(e,t){return c(t[0],t[1],t[2],t[3],e)}function h(e){return e}function c(e,t,r,i,n=a()){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function d(e,t,r){let i=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=Math.abs(i-1)>1e-5&&i>1e-12?1/Math.sqrt(i):1;return r[0]=t[0]*n,r[1]=t[1]*n,r[2]=t[2]*n,r[3]=-(r[0]*e[0]+r[1]*e[1]+r[2]*e[2]),r}function p(e,t,r,i=a()){let n=r[0]-t[0],s=r[1]-t[1],o=r[2]-t[2],l=e[0]-t[0],u=e[1]-t[1],h=e[2]-t[2],c=s*h-o*u,d=o*l-n*h,p=n*u-s*l,f=c*c+d*d+p*p,m=Math.abs(f-1)>1e-5&&f>1e-12?1/Math.sqrt(f):1;return i[0]=c*m,i[1]=d*m,i[2]=p*m,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function f(e,t,r,i=0,s=Math.floor(1/3*r),o=Math.floor(2/3*r)){if(r<3)return!1;t(g,i);let a=s,l=!1;for(;a<r-1&&!l;)t(y,a),a++,l=!(0,n.t2)(g,y);if(!l)return!1;for(a=Math.max(a,o),l=!1;a<r&&!l;)t(v,a),a++,(0,n.Re)(_,g,y),(0,n.S8)(_,_),(0,n.Re)(w,y,v),(0,n.S8)(w,w),l=!(0,n.t2)(g,v)&&!(0,n.t2)(y,v)&&Math.abs((0,n.Om)(_,w))<m;return l?(p(g,y,v,e),!0):(0!==i||1!==s||2!==o)&&f(e,t,r,0,1,2)}r(32728);const m=.99619469809,g=(0,s.vt)(),y=(0,s.vt)(),v=(0,s.vt)(),_=(0,s.vt)(),w=(0,s.vt)();function x(e,t,r){return t!==e&&u(e,t),e[3]=-(0,n.Om)(e,r),e}function C(e,t,r,i){return(0,n.$A)(v,t,e),d(r,v,i)}function b(e,t,r){return null!=t&&N(D(e,t.origin,t.direction,F,r))}function M(e,t,r){return N(D(e,t.origin,t.vector,0,r))}function T(e,t,r){return N(D(e,t.origin,t.vector,1,r))}function A(e,t){return O(e,t)<=0}function R(e,t){return O(e,t)>=0}function S(e,t){return function(e,t,r,i,s,o,a){let l=(0,n.Om)(e,r),u=O(e,t);if(l>-1e-6&&l<1e-6)return Z(u,s,o);let h=-u/l,c=Z(l,s,!1);return!(a&&!c&&!Z(u,s,o))&&(c?h>i.c0&&(i.c0=h):h<i.c1&&(i.c1=h),i.c0<=i.c1)}(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function Z(e,t,r){return r?t?e>=0:e<=0:t?e>0:e<0}function P(e,t,r,i=!1){let s=t.at(-1),o=O(e,s),a=i?o>0:o<=0;for(let l=0;l<t.length;l++){let u=t.at(l),h=O(e,u),c=i?h>0:h<=0;a!==c&&(0,n.Cc)(r(),s,u,o/(o-h)),c&&(0,n.C)(r(),u),s=u,o=h,a=c}}function E(e,t,r){let i=(0,n.hs)(o.rq.get(),e,-e[3]),s=function(e,t,r){let i=(0,n.hs)(o.rq.get(),e,(0,n.Om)(e,t));return(0,n.Re)(r,t,i),r}(e,(0,n.Re)(o.rq.get(),t,i),o.rq.get());return(0,n.WQ)(r,s,i),r}function O(e,t){return(0,n.Om)(e,t)+e[3]}function I(e,t,r){for(let i=0;i<r;++i)if(A(e,t[i]))return!1;return!0}function N(e){return 0===e||1===e}function D(e,t,r,s,o){let a=(0,n.Om)(e,r),l=O(e,t);if(0===a)return l>=0?2:3;let u=-l/a;return 1&s&&(u=(0,i.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?l>=0?2:3:((0,n.WQ)(o,t,(0,n.hs)(o,r,u)),l>=0?0:1)}const z=[0,0,1,0],F=8;(0,s.vt)()},44280(e,t,r){r.d(t,{g7:()=>a,gr:()=>o});var i=r(34727),n=r(35522),s=r(51850);function o(e,t){return(0,n.Om)(e,t)/(0,n.Bw)(e)}function a(e,t){let r=(0,n.Om)(e,t)/((0,n.Bw)(e)*(0,n.Bw)(t));return-(0,i.XM)(r)}(0,s.vt)(),(0,s.vt)()},32114(e,t,r){r.d(t,{Rc:()=>p,rq:()=>c,Km:()=>d}),r(44208);var i=r(26390),n=r(29242),s=r(9093),o=r(82534),a=r(48163),l=r(51850),u=r(91829);class h{constructor(e){this._create=e,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,i.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(l.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(n.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const c=h.createVec3f64(),d=h.createVec4f64(),p=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},97770(e,t,r){r.d(t,{Ey:()=>P,F8:()=>Z,J2:()=>T,Yq:()=>R,_m:()=>A,iS:()=>S,wj:()=>E});var i=r(66552),n=r(73444),s=r(98623),o=r(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},m={...f,second:"numeric"},g={hourCycle:"h23"},y={...f,...g},v={...m,...g},_={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...y},"short-date-long-time":{...h,...m},"short-date-long-time-24":{...h,...v},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...y},"short-date-le-long-time":{...h,...m},"short-date-le-long-time-24":{...h,...v},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...f},"long-month-day-year-short-time-24":{...c,...y},"long-month-day-year-long-time":{...c,...m},"long-month-day-year-long-time-24":{...c,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...m},"day-short-month-year-long-time-24":{...d,...v},"long-date":p,"long-date-short-time":{...p,...f},"long-date-short-time-24":{...p,...y},"long-date-long-time":{...p,...m},"long-date-long-time-24":{...p,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":m},w=(0,i.O)()({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"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function C(){let e=(0,n.lR)();return(e&&x[e])??(0,n.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(x.bs="sr-Latn-CS");let b=new WeakMap;const M=_["short-date-short-time"];function T(e){return _[e]}function A(e){let{dateStyle:t,timeStyle:r,hour12:i,year:n,month:s}=e,o={};return t?o.dateStyle=t:n&&(o.year=n,o.month=s||void 0),r&&!o.year&&(o.timeStyle=r,o.hour12="auto"===i?void 0:"always"===i),o}function R(e,t=M){return function(e){let t=b.get(e);if(!t){let r=C(),i=E(e.timeZone??"system"),n={...e,timeZone:i};t=new Intl.DateTimeFormat(r,n),b.set(e,t)}return t}(t).format(e)}function S(e,t=M){return R(new Date(e),{...t,...u,...l})}function Z(e,t=M){return R(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function P(e,t=M){let r=o.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return R(r.toJSDate(),t);let i=0===r.offset?"UTC":t.timeZone,n={...t,timeZone:i};return r.toLocaleString(n,{locale:C()})}function E(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,n.Ml)(()=>{b=new WeakMap}),r.d(t,["_v",0,w])},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>g,QC:()=>c,lR:()=>h,oQ:()=>f});var i=r(36563);let n;r(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===n&&(n=a()),n}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return d(e)?.language}function c(e=l()){let t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return u.exec(e)?.groups}const p=[];function f(e){return p.push(e),(0,i.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const m=[];function g(e){return m.push(e),(0,i.hA)(()=>m.splice(m.indexOf(e),1))}function y(){let e=a();n!==e&&([...m].forEach(t=>t(e)),n=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),o&&new MutationObserver(()=>{y()}).observe(o,{attributeFilter:["lang"]})},4146(e,t,r){r.d(t,{A:()=>v});var i=r(32198),n=r(56507),s=r(49186),o=r(65529),a=r(4902),l=r(92474),u=r(53966),h=r(17676),c=r(84952),d=r(91429),p=r(5443),f=r(16930),m=r(92602),g=r(79677);let y=0,v=class extends((0,o.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,f.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(9917),r.e(812),r.e(5613)]).then(()=>r(45613));try{return await i(t)}catch(e){let r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,h.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,i.Cg)([(0,d.MZ)({type:p.A})],v.prototype,"fullExtent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:f.A})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,i.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,d.$K)("esri.layers.Layer")],v)},92722(e,t,r){r.d(t,{A:()=>n});var i=r(69397);class n{constructor(e=[],t=[],r=!1,i=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=i}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:i}){return new n(e,t,r||!1,i||!1)}static fromRect([e,t,r,i]){let s=r-e,o=i-t;return new n([5],[e,t,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,i.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:i}=this,n=this.coords[i*t],s=this.coords[i*t+1];for(let o=1;o<r;o+=1){let r=i*(t+o),a=this.coords[r],l=this.coords[r+1];e+=-.5*(a-n)*(l+s),n=a,s=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let i of this.lengths){for(let n=0;n<i;n++){let i=r*(t+n);e(this.coords[i],this.coords[i+1])}t+=i}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,i=0,{stride:n}=this;for(let e of r){for(let r=1;r<e;r++){let e=n*(i+r);t[e]+=t[e-n],t[e+1]+=t[e+1-n]}i+=e}return e}clone(e){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:i}=this,s=this.coords.slice(0,i*r);return e?(e.set(s),new n(t,e,this.hasZ,this.hasM)):new n(t,Array.from(s),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,i=0;t<r.length;t+=e)r[i++]=this.coords[t],r[i++]=this.coords[t+1];return new n(this.lengths,r,!1,!1)}}},63490(e,t,r){r.d(t,{Mr:()=>l,TH:()=>a});var i=r(32198),n=r(69540),s=r(25482),o=r(91429);let a=class extends((0,n.OU)(s.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,i.Cg)([(0,o.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),r.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,r){r.d(t,{eR:()=>C,yP:()=>T,R:()=>Z,o:()=>P,RR:()=>b,l6:()=>M});var i=r(66552),n=(r(86211),r(28735),r(32198)),s=r(69540),o=r(25482),a=r(91429),l=r(69622),u=r(21325);let h=class extends l.A{set horizontalWKID(e){e?(0,u.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,u.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:n}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&n?.length>1}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"horizontalWKID",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"verticalWKID",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"z",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"type",void 0),h=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],h);const c=h;let d=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,heading:o,pitch:a,roll:l,affineTransformations:u,focalLength:h,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,r,i,n,s,o,a,l];return this.isAdvanced&&(u?.forEach(e=>f.push(e)),f.push(h),c?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const p=d;let f=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=4}toString(){let{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:n,properties:s}=this,o=`${s}`.split("|");return o.splice(1,1),`${e}|${t}|${r}|${i}|${n}|${o.join("|")}`}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"latitude",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"longitude",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"ellipsoidRadius",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"squaredEccentricity",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"properties",void 0),f=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],f);const m=f;let g=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=2}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,omega:o,phi:a,kappa:l,affineTransformations:u,focalLength:h,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,r,i,n,s,o,a,l];return this.isAdvanced&&(u?.forEach(e=>f.push(e)),f.push(h),c?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>isNaN(e)?"":e).join("|")}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const y=g;let v=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=3}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:n}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||n?.length>1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,yaw:o,pitch:a,roll:l,affineTransformations:u,focalLength:h,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,r,i,n,s,o,a,l];return this.isAdvanced&&(u?.forEach(e=>f.push(e)),f.push(h),c?.forEach(e=>f.push(e)),c?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const _=v,w=new Map;w.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),w.set("1",{desc:"Using Heading, Pitch and Roll",constructor:p}),w.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:_}),w.set("4",{desc:"Using Local Tangent Plane",constructor:m});var x=r(63490);function C(e,t,r){return e&&((0,x.E1)(e)?new x.Mr(e):function(e,t,r){let{url:i}=e;return i?(i=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(i,t,r),new x.TH({...e,url:i})):null}(e,t,r))}const b=new i.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),M=new i.J({Feet:"feet",Meter:"meter"}),T=new i.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),A=new Map;A.set("1",function(e){let[t,r,i,n,s,o,a,l,u,h,c,d,p,f,m,g,y,v,_,w,x,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,heading:o,pitch:a,roll:l,...S([u,h,c,d,p,f],[g,y],[v,_,w],[x,C],m)}}),A.set("3",function(e){let[t,r,i,n,s,o,a,l,u,h,c,d,p,f,m,g,y,v,_,w,x,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,yaw:o,pitch:a,roll:l,...S([u,h,c,d,p,f],[g,y],[v,_,w],[x,C],m)}}),A.set("2",function(e){let[t,r,i,n,s,o,a,l,u,h,c,d,p,f,m,g,y,v,_,w,x,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,omega:o,phi:a,kappa:l,...S([u,h,c,d,p,f],[g,y],[v,_,w],[x,C],m)}}),A.set("4",function(e){let[t,r,i,n,s,...o]=e.slice(1),a=A.get(s),l=w.get(s)?.constructor;return a&&l?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:n,properties:new l(a([s,"",...o]))}:null});const R=e=>{let t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function S(e,t,r,i,n){let s=R(e),o=R(t),a=R(r),l=R(i);return{affineTransformations:6===s?.length?s:void 0,focalLength:6===s?.length?parseFloat(n):void 0,principalOffsetPoint:2===o?.length?o:[0,0],radialDistortionCoefficients:3===a?.length?a:[0,0,0],tangentialDistortionCoefficients:2===l?.length?l:[0,0]}}function Z(e){if("string"!=typeof e)return null;let t=e.split(";");return t.some(e=>!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(e.trim()))?null:function(e){return function(e){if(!Array.isArray(e)||e.length<=5)return!1;for(let t of e)if("number"!=typeof t||!Number.isFinite(t)||t<0)return!1;return!0}(e)?function(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}(e):null}(t.map(e=>Number(e.trim())))}function P(e,t,r){let i=function(e,t){return e?.length?e.map(({field:e,order:r})=>{let i=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return i?{fieldName:i.name,sortOrder:"desc"===r?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(r,t);if(i?.length)return i;if(!e){let e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}let n=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return n?[{fieldName:n.name,sortOrder:"asc"}]:null}},39357(e,t,r){r.d(t,{A:()=>a});var i,n=r(32198),s=r(25482),o=r(91429);let a=i=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,r){r.d(t,{A:()=>h});var i,n=r(32198),s=r(4718),o=r(91429),a=r(39357),l=r(76357),u=r(93223);let h=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,n.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],h.prototype,"codedValues",void 0),(0,n.Cg)([(0,u.e)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],h)},76357(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(66552),s=r(25482),o=r(91429),a=r(93223);const l=new n.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},1359(e,t,r){r.d(t,{createSampler:()=>A,query:()=>T});var i=r(60999),n=r(49186),s=r(44208),o=r(97768),a=r(17676),l=r(86211),u=r(99917),h=r(19419),c=r(4576),d=r(72802);class p{constructor(e,t){this.layer=e,this.parameters=t}}class f extends p{constructor(e,t,r){super(e,r),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{let{tileInfo:t,tilemapCache:r}=this.layer,i=y(t,r)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(i,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(let e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(let t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(let t of this.geometry.coordinates){let r=t.tile?.id;t.tile=r?e[r]:null}}getTilesToFetch(){return(0,c.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(let t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class m extends p{constructor(e,t,r,i){super(e,r),this.maskExtents=i,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){let r=this._maximumLodForRequests(t),i=Math.min(r,e);i<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(i)}_maximumLodForRequests(e){let{tileInfo:t,tilemapCache:r}=this.layer,i=y(t,r);if(!e)return i.length-1;let n=this.extent;if(null==n)return-1;for(let r=i.length-1;r>=0;r--){let s=i[r],o=s.resolution*t.size[0],a=s.resolution*t.size[1];if(Math.ceil(n.width/o)*Math.ceil(n.height/a)<=e)return r}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(let t of this._candidateTiles){let r=t.id&&e[t.id];r&&(this._fetchedCandidates.add(t),this.elevationTiles.push(r))}}remapTiles(e){this._candidateTiles=v(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){let r=this._candidateTiles;this._candidateTiles=[],r.forEach(r=>{if(this._fetchedCandidates.has(r))return void t?.(r);let i=!1;e(r,()=>i=!0),i?t?.(r):this._candidateTiles.push(r)}),this._candidateTiles=v(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;let t=this.extent;if(null==t)return;let{tileInfo:r,tilemapCache:i}=this.layer,n=y(r,i)[e],s=r.tileAt(n.level,t.xmin,t.ymin),o=s.extent,a=n.resolution*r.size[0],l=n.resolution*r.size[1],u=Math.ceil((t.xmax-o[0])/a),h=Math.ceil((t.ymax-o[1])/l);for(let e=0;e<h;e++)for(let t=0;t<u;t++){let i=new d.U(s.level,s.row-e,s.col+t);r.updateTileInfo(i),this._tileIsMasked(i)||this._candidateTiles.push(i)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,h.gR)(t,e.extent))??!1}}function g(e){return null!=e?.tileInfo}function y(e,t){let r=e.lods;if(g(t)){let{effectiveMinLOD:e,effectiveMaxLOD:i}=t;return r.filter(t=>t.level>=e&&t.level<=i)}return r}function v(e,t){let r={},i=[];for(let n of e){let e=n.id;e&&!r[e]?(r[e]=n,i.push(n)):t?.(n)}let n=i.sort((e,t)=>e.level-t.level);return n.filter((e,r)=>{for(let i=0;i<r;i++){let r=n[i].extent;if(r&&(0,h.gR)(r,e.extent))return t?.(e),!1}return!0})}class _{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){let r=e.extent;this._samplerData=new _(t,r)}}get zmin(){return null==this._samplerData?0:this._samplerData.data.minValue}get zmax(){return null==this._samplerData?0:this._samplerData.data.maxValue}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;let{safeWidth:r,data:i,dx:n,dy:s,y1:o,x0:a}=this._samplerData,{width:l,values:u,noDataValue:h}=i,c=x(s*(o-t),0,r),d=x(n*(e-a),0,r),p=Math.floor(c),f=Math.floor(d),m=p*l+f,g=m+l,y=u[m],v=u[g],_=u[m+1],w=u[g+1];if(y!==h&&v!==h&&_!==h&&w!==h){let e=d-f,t=y+(_-y)*e;return t+(v+(w-v)*e-t)*(c-p)}}}function x(e,t,r){return e<t?t:e>r?r:e}var C=r(87378),b=r(10292),M=r(57984);async function T(e,t,r){if(!e)throw new n.A(D,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof b.q)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new n.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");let i={...I,...r},a=i.signal;if("integrated-mesh-3dtiles"===e.type){let n=b.q.fromGeometry(t);if(e.queryElevationCallback&&((0,s.A)("enable-feature:im-as-ground")?e.isUsedAsGroundLayer:e.replacesTerrain)){let s=12.9*(r?.minDemResolution||0)+.71,o=await(await e.queryElevationCallback(n,{signal:a,maxGeometricError:s})).project(t.spatialReference,a);if(o){if(void 0!==i.noDataValue&&i.noDataValue!==Number.MAX_VALUE)for(let e of o.coordinates)e.z===Number.MAX_VALUE&&(e.z=i.noDataValue);let t=i.noDataValue??Number.MAX_VALUE,r=o.coordinates.map(r=>({demResolution:r.z===t?-1:1,source:e}));return{geometry:o.export(),noDataValue:t,sampleInfo:r}}}let o=n.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:n.export(),noDataValue:Number.MAX_VALUE,sampleInfo:o}}if("integrated-mesh"===e.type){let r=b.q.fromGeometry(t),i=r.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:i}}let h=new f(e,t.spatialReference,i);return await e.load({signal:a}),await async function(e,t,r){let i,s=e.layer.tileInfo.spatialReference;if(t instanceof b.q?i=await t.project(s,r):(await(0,u.initializeProjection)([{source:t.spatialReference,dest:s}],{signal:r}),i=(0,u.project)(t,s)),!i)throw new n.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${s.wkid}'`);e.geometry=b.q.fromGeometry(i)}(h,t,a),await Z(h,a),await N(h,a),function(e){e.geometry.coordinates.forEach(t=>{let r=t.elevationTile,i=e.parameters.noDataValue;if(r){let e=r.sample(t.x,t.y);null==e?t.elevationTile=null:i=e}t.z=i})}(h),async function(e,t){let r=await e.geometry.project(e.outSpatialReference,t);(0,o.Lw)(r);let i={geometry:r.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(i.sampleInfo=function(e){let t=e.layer.tileInfo,r=(0,l.GA)(t.spatialReference);return e.geometry.coordinates.map(i=>{let n=-1;return i.elevationTile&&i.elevationTile!==e.outsideExtentTile&&(n=t.lodAt(i.elevationTile.key.level).resolution*r),{demResolution:n,source:-1===n?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),i}(h,a)}async function A(e,t,r){if(e=Array.isArray(e)?e:[e],0===(e=r?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new n.A(D,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new n.A("elevation-query:invalid-extent","Invalid or undefined extent");let i={...I,...r,returnSampleInfo:!0},s=R(e[e.length-1],t,i);return 1===e.length?s:S(e,t,await s,i)}async function R(e,t,r,i){let n=r.signal;await e.load({signal:n});let s=t.spatialReference,o=e.tileInfo.spatialReference;s.equals(o)||(await(0,u.initializeProjection)([{source:s,dest:o}],{signal:n}),t=(0,u.project)(t,o));let a=new m(e,t,r,i);await Z(a,n),await N(a,n);let l=a.elevationTiles,h=a.layer.tileInfo,c=a.parameters.noDataValue;return new M.C({noDataValue:c,tiles:l,tileInfo:h})}async function S(e,t,r,i){if(e.pop(),!e.length)return r;let n=r.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,h.VY)(e.extent)),s=await R(e[e.length-1],t,i,n);if(0===s.samplers.length)return r;let o=r.samplers.concat(s.samplers),a=i.noDataValue;return S(e,t,new M.C({samplers:o,noDataValue:a}),i)}async function Z(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;let t=new w(new d.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;let r=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{let i=e.x,n=e.y;(i<r.xmin||i>r.xmax||n<r.ymin||n>r.ymax)&&(e.elevationTile=t)})}(e);let r=e.parameters.demResolution;if("number"==typeof r)!function(e,t){let r=function(e,t){let{tileInfo:r,tilemapCache:i}=e.layer,n=t/(0,l.GA)(r.spatialReference),s=y(r,i),o=s[0],a=0;for(let e=1;e<s.length;e++){let t=s[e];Math.abs(t.resolution-n)<Math.abs(o.resolution-n)&&(o=t,a=e)}return a}(e,t);e.selectTilesAtLOD(r)}(e,r);else if("finest-contiguous"===r)await async function(e,t){let{tileInfo:r,tilemapCache:i}=e.layer;await P(e,O(r,i,e.parameters.minDemResolution),t)}(e,t);else{if("auto"!==r)throw new n.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${r}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){let{tileInfo:t,tilemapCache:r}=e.layer,i=O(t,r,e.parameters.minDemResolution);e.selectTilesAtLOD(i,e.parameters.maximumAutoTileRequests)})(e),function(e){let t=e.layer.tileInfo,r=0,i={},n=e=>{null!=e.id&&(e.id in i?i[e.id]++:(i[e.id]=1,r++))},s=e=>{if(null==e.id)return;let t=i[e.id];1===t?(delete i[e.id],r--):i[e.id]=t-1};e.forEachTileToFetch(n,s);let o=!0;for(;o&&(o=!1,e.forEachTileToFetch(i=>{r<=e.parameters.maximumAutoTileRequests||(s(i),t.upsampleTile(i)&&(o=!0),n(i))},s),o););}(e);let r=e.layer.tilemapCache;if(!r||g(r))return E(e,t);let n=e.getTilesToFetch(),s={},o=n.map(async e=>{let n=new d.U(0,0,0),o=await(0,i.Ke)(r.fetchAvailabilityUpsample(e.level,e.row,e.col,n,{signal:t}));!1===o.ok?(0,a.QP)(o.error):null!=e.id&&(s[e.id]=n)});await(0,a.qr)(Promise.all(o),t),e.remapTiles(s)}(e,t)}}async function P(e,t,r){let i=e.layer;if(e.selectTilesAtLOD(t),t<0)return;let s=i.tilemapCache,o=e.getTilesToFetch();try{if(s&&!g(s))await(0,a.qr)(Promise.all(o.map(e=>s.fetchAvailability(e.level,e.row,e.col,{signal:r}))),r);else if(await N(e,r),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new n.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(i){(0,a.QP)(i),await P(e,t-1,r)}}async function E(e,t){let r=e.layer.tileInfo;await N(e,t);let i=!1;e.forEachTileToFetch((e,t)=>{r.upsampleTile(e)?i=!0:t()}),i&&await E(e,t)}function O(e,t,r=0){let i=y(e,t),n=i.length-1;if(r>0){let t=r/(0,l.GA)(e.spatialReference),s=i.findIndex(e=>e.resolution<t);0===s?n=0:s>0&&(n=s-1)}return n}const I={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function N(e,t){let r=e.getTilesToFetch(),i={},n=e.parameters.cache,s=e.parameters.noDataValue,o={noDataValue:s,signal:t},l=r.map(async t=>{if(null==t.id)return;let r=`${e.layer.uid}:${t.id}:${s}`,a=n?.get(r)??C.A.from(await e.layer.fetchTile(t.level,t.row,t.col,o));n?.put(r,a),i[t.id]=new w(t,a)});await(0,a.qr)(Promise.allSettled(l),t),e.populateElevationTiles(i)}const D="elevation-query:invalid-layer"},7236(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(65529),s=r(53966),o=r(91429),a=r(86738),l=r(28735);let u=class extends n.nJ{queryElevation(e){let t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,r){return e.hasZ=!0,e.z=r.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,r){h.spatialReference=t.spatialReference;let i=e.hasM&&!e.hasZ;for(let n=0;n<e.paths.length;n++){let s=e.paths[n],o=t.paths[n];for(let e=0;e<s.length;e++){let t=s[e],n=o[e];h.x=n[0],h.y=n[1],i&&(t[3]=t[2]),t[2]=r.elevationAt(h.x,h.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,r){h.spatialReference=t.spatialReference;let i=e.hasM&&!e.hasZ;for(let n=0;n<e.points.length;n++){let s=e.points[n],o=t.points[n];h.x=o[0],h.y=o[1],i&&(s[3]=s[2]),s[2]=r.elevationAt(h.x,h.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;let r=e.spatialReference;if(r.equals(t))return e;let i=(0,l.Cv)(e,t);return i||s.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${r.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),i}};u=(0,i.Cg)([(0,o.$K)("esri.layers.support.ElevationSampler")],u);const h=new a.A},20437(e,t,r){r.d(t,{A:()=>f});var i,n=r(32198),s=r(66552),o=r(25482),a=r(91429),l=r(78888),u=r(8631),h=r(98453),c=r(36005),d=r(93223);const p=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",marginOfError:"margin-of-error",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let f=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?p.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"description",void 0),(0,n.Cg)([(0,c.w)("description")],f.prototype,"readDescription",null),(0,n.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],f.prototype,"domain",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,n.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,n.Cg)([(0,d.e)(h.m)],f.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,n.Cg)([(0,c.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.Field")],f)},95466(e,t,r){r.d(t,{A:()=>u});var i=r(49186),n=r(53966),s=r(12195),o=r(30524),a=r(98623),l=r(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let r=[];for(let e of this.fields){let t=e?.name,i=(0,o.GZ)(t);if(t&&i){let n=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,d=n?function(e){return"timeZone"in e}(n)?n.timeZone??c:n.dateFieldsTimeReference?(0,l.ZS)(n.dateFieldsTimeReference):c??"UTC":null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.timeReference?(0,l.ZS)(i.timeReference):c:null,f=new Map([[(0,o.NF)(n?.creationDateField??""),d],[(0,o.NF)(n?.editDateField??""),d],[(0,o.NF)(s),p],[(0,o.NF)(u),p]]);for(let{name:i,type:n}of e.fields)if(h.has(n))t.set(i,a.L);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,a.L);else{let e=f.get((0,o.NF)(i??""))??c;t.set(i,e)}return t}},10292(e,t,r){r.d(t,{q:()=>a});var i=r(48526),n=r(86738),s=r(82799),o=r(99917);class a{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){let t=new a(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,o.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});let r=new i.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,o.project)(r,e);if(!n)return null;let s=this.coordinates.map((e,t)=>{let r=e.clone(),i=n.points[t];return r.x=i[0],r.y=i[1],r}),a=this.clone(s);return a.spatialReference=e,a}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new i.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,o.project)(t,e);if(!r)return null;let n=this.coordinates.map((e,t)=>{let i=e.clone(),n=r.points[t];return i.x=n[0],i.y=n[1],i}),s=this.clone(n);return s.spatialReference=e,s}static fromGeometry(e){let t=new a(e);if(e instanceof a)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{let i=e.clone(t);return i.spatialReference=r,i},t;switch(e.type){case"point":{let r=e,{hasZ:i,hasM:s}=r;return t.coordinates=i&&s?[new l(r.x,r.y,r.z,r.m)]:i?[new l(r.x,r.y,r.z)]:s?[new l(r.x,r.y,null,r.m)]:[new l(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new n.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new n.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{let r=e,{hasZ:n,hasM:s}=r;return t.coordinates=n&&s?r.points.map(e=>new l(e[0],e[1],e[2],e[3])):n?r.points.map(e=>new l(e[0],e[1],e[2])):s?r.points.map(e=>new l(e[0],e[1],null,e[2])):r.points.map(e=>new l(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new i.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new i.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{let r=e,i=[],n=[],{hasZ:o,hasM:a}=e,u=0;for(let e of r.paths)if(n.push([u,u+e.length]),u+=e.length,o&&a)for(let t of e)i.push(new l(t[0],t[1],t[2],t[3]));else if(o)for(let t of e)i.push(new l(t[0],t[1],t[2]));else if(a)for(let t of e)i.push(new l(t[0],t[1],null,t[2]));else for(let t of e)i.push(new l(t[0],t[1]));return t.coordinates=i,t._exporter=(t,r)=>{let i=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=n.map(e=>i.slice(e[0],e[1]));return new s.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class l{constructor(e,t,r=null,i=null,n=null,s=null){this.x=e,this.y=t,this.z=r,this.m=i,this.tile=n,this.elevationTile=s}clone(){return new l(this.x,this.y,this.z,this.m)}}},41628(e,t,r){r.d(t,{A:()=>l});var i,n=r(32198),s=r(91429),o=r(76357),a=r(93223);let l=class extends o.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,n.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},57984(e,t,r){r.d(t,{C:()=>h});var i=r(32198),n=r(53966),s=r(86211),o=r(91429),a=r(16930),l=r(19419),u=r(7236);let h=class extends u.A{get spatialReference(){return this.extent.spatialReference}constructor(e){let t=e.noDataValue,r="tiles"in e?e.tiles.map(r=>new c({tile:r,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:r});let i=r[0];if(i){this.extent=i.extent.clone();let{min:e,max:t}=i.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<r.length;e++){let t=r[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{let t="tileInfo"in e?e.tileInfo:null;this.extent=(0,l.w1)((0,l.vt)(),t?.spatialReference??a.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let r;for(let i of this.samplers)if(i.containsAt(e,t)&&(r=i.elevationAt(e,t),r!==i.noDataValue))return r;return r??(n.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],h.prototype,"samplers",void 0),h=(0,i.Cg)([(0,o.$K)("esri.layers.support.TileElevationSampler")],h);let c=class extends u.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);let t=e.tile.key.extent;this.extent=(0,l.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;let r=(0,s.GA)(e.tileInfo.spatialReference),i=e.tileInfo.lodAt(e.tile.key.level).resolution*r;this.demResolution={min:i,max:i}}contains(e){let t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,l.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"tile",void 0),(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"noDataValue",void 0),(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"tileInfo",void 0),c=(0,i.Cg)([(0,o.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],c)},8631(e,t,r){r.d(t,{r:()=>d,g:()=>c});var i,n=r(53177),s=r(76357),o=r(32198),a=r(91429),l=r(93223);let u=class extends s.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var h=r(41628);const c={key:"type",base:s.A,typeMap:{range:h.A,"coded-value":n.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return h.A.fromJSON(e);case"codedValue":return n.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,i])},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>A,BR:()=>T,p2:()=>b,qd:()=>R,wI:()=>M,G$:()=>Z,$x:()=>S,Ov:()=>_,cM:()=>d,UC:()=>p,Qz:()=>f,OP:()=>P,TU:()=>v,F2:()=>m,XX:()=>y,Qi:()=>w,jy:()=>x});var i=r(70333),n=r(56507),s=r(7762),o=(r(84952),r(36563)),a=r(36708),l=r(4146);const u=new WeakMap;function h(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,a.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||h(t))},t=>u.set(e,t),a.pc),(0,o.hA)(()=>u.delete(e))]),u.get(e))}function c(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function d(e){return c(e,"knowledge-graph")&&"layers"in e}function p(e){return c(e,"knowledge-graph-sublayer")}function f(e){return c(e,"link-chart")&&"layers"in e}function m(e){return c(e,"subtype-group")&&"sublayers"in e}function g(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function _(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function x(e){return function(e){return c(e,"catalog-footprint")}(e)||function(e){return c(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return c(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){let t=e?.type;return"binning"===t||"cluster"===t}function b(e,t){if(!x(e))return;let r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){let e=r.origin;return e&&"featureReductionProvider"in e&&i?C(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?C(i)?i:null:e}async function M(e,t){let r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;let s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;let o=`${e.slice(0,s)}/rest/info`,a=null==t?null:t.signal,{data:l}=await(0,n.A)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function T(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function R(e){let t=new s.A;for(let r of e.allLayers.concat(e.allTables))h(r)||g(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function S(e,t){return null}function Z(e){return null}function P(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!P(e))return;let r=(e.url,null);r&&(e.url=r)}},38969(e,t,r){r.d(t,{i:()=>n});var i=r(37955);function n(e,t){return new Promise((r,n)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?r():(t((0,i.Oo)(e,"canplay",r)),t((0,i.Oo)(e,"error",n)))})}},73133(e,t,r){const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});r.d(t,["j",0,i])},7861(e,t,r){r.d(t,{L:()=>n});var i=r(56507);async function n(e,t){return(await(0,i.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,r){r.d(t,{S:()=>n});const i=Symbol("BasemapInstance");function n(e){return"object"==typeof e&&!!e&&i in e}r.d(t,["Y",0,i])},79677(e,t,r){r.d(t,{A:()=>c});var i,n=r(32198),s=r(25482),o=r(88930),a=r(91429),l=(r(98623),r(10184)),u=r(36005),h=r(43937);let c=class extends s.o{static{i=this}static get allTime(){return d}static get empty(){return p}static fromArray(e){return new i({start:null==e[0]?e[0]:new Date(e[0]),end:null==e[1]?e[1]:new Date(e[1])})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null==t.end?null:new Date(t.end)}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null==t.start?null:new Date(t.start)}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&=(0,o.lL)(r,new l.A({value:1,unit:e}),t);let n=this.end;if(n){let r=(0,o.lL)(n,new l.A({value:1,unit:e}),t);n=n.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t,r,n=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,o=e.start?.getTime()??-1/0,a=e.end?.getTime()??1/0;return o>=n&&o<=s?t=o:n>=o&&n<=a&&(t=n),s>=o&&s<=a?r=s:a>=n&&a<=s&&(r=a),null==t||null==r||isNaN(t)||isNaN(r)?i.empty:new i({start:t===-1/0?null:new Date(t),end:r===1/0?null:new Date(r)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let n=new i,{start:s,end:a}=this;return null!=s&&(n.start=(0,o.S1)(s,e,t,r)),null!=a&&(n.end=(0,o.S1)(a,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();let t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n.Cg)([(0,u.w)("end")],c.prototype,"readEnd",null),(0,n.Cg)([(0,h.K)("end")],c.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n.Cg)([(0,u.w)("start")],c.prototype,"readStart",null),(0,n.Cg)([(0,h.K)("start")],c.prototype,"writeStart",null),c=i=(0,n.Cg)([(0,a.$K)("esri.time.TimeExtent")],c);const d=new c,p=new c({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>h});var i=r(32198),n=r(69540),s=r(25482),o=r(88930),a=r(91429),l=r(73133),u=r(93223);let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,u.e)(l.j,{nonNullable:!0})],h.prototype,"unit",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],h.prototype,"value",void 0),h=(0,i.Cg)([(0,a.$K)("esri.time.TimeInterval")],h)},32728(e,t,r){r.d(t,{YH:()=>o,nu:()=>a,wp:()=>s}),r(34727);var i=r(35522),n=r(51850);function s(e,t){let r=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),n=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),s=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,i.hZ)(e,r,n,s),e}function o(e,t,r){r||=e;let n=(0,i.Om)(e,t);(0,i.hZ)(r,e[0]-n*t[0],e[1]-n*t[1],e[2]-n*t[2]),(0,i.S8)(r,r)}function a(e,t,r,s=(0,n.vt)()){let o=(0,i.Bw)(e),a=(0,i.Bw)(t),h=(0,i.Om)(e,t)/(o*a);if(h<.9999999999999999){let n=Math.acos(h),c=((1-r)*o+r*a)/Math.sin(n),d=c/o*Math.sin((1-r)*n),p=c/a*Math.sin(r*n);return(0,i.hs)(l,e,d),(0,i.hs)(u,t,p),(0,i.WQ)(s,l,u)}return(0,i.Cc)(s,e,t,r)}(0,n.vt)(),(0,n.vt)(),(0,n.vt)();const l=(0,n.vt)(),u=(0,n.vt)()},44012(e,t,r){r.r(t),r.d(t,{generateCombinationsPanoramicWorker:()=>T,generateCombinationsWorker:()=>M});var i=r(34727),n=r(17676);r(17799),r(69052),r(799),r(86211),r(18047),new Map,r(77690),r(29242),r(51850),r(37585),r(35522);var s=r(49186),o=(r(78888),r(86738),r(39829),r(82799),r(16930));r(34403),r(21325),r(99917),r(78125),r(85036),r(89506),r(77085),r(40427),r(965),(0,r(81150).f)(),r(4576),r(87811);var a=r(53966),l=(r(44208),r(27921),r(5443));r(83276),r(19419),r(38732),r(87772),r(23281),r(1359),r(87378),r(22796),r(57984),r(87045),r(72802),r(7861);const u=[1920,1080],h={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},c=(o.A.fromJSON(h.spatialReference),.001);new l.A({xmin:h.xmin+c,ymin:h.ymin+c,xmax:h.xmax-c,ymax:h.ymax-c,spatialReference:h.spatialReference}),(0,i.KJ)(Math.acos(.05));var d=r(32198),p=r(97768),f=r(61893),m=r(10107),g=r(64108);let y=class extends f.Z{constructor(e){super(e),this.autoLoad=!1,this.customParameters=null,this.datasetFormat=null,this.url=null,this.rotation=null}destroy(){this._cache=(0,p.pR)(this._cache)}get layer(){return this._cache}get size(){if(!this._cache?.loaded||!this._cache.serviceRasterInfo)return;let{serviceRasterInfo:e}=this._cache;return[e.width,e.height]}async load(e){if(this._cache?.loaded)return await this._cache.load(e),{layer:this._cache,size:this.size};let{url:t,customParameters:i}=this,s=this.datasetFormat;if(!t)throw Error("URL is required to load NonPanoramicMedia.");let o=await r.e(7835).then(()=>r(97835));if((0,n.Te)(e),s||=o.guessExtensionFromURI(t),!s){try{s=await o.getDatasetFormat(t)}catch(e){a.A.getLogger(this).warn("non-panoramic-media:dataset-format",e)}(0,n.Te)(e)}s??="UNKNOWN FORMAT",this.datasetFormat=s;let l=(await Promise.all([r.e(2754),r.e(9235),r.e(3500),r.e(1003),r.e(2806),r.e(124)]).then(()=>r(90124))).default;(0,n.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:s},customParameters:i??void 0});let u=this._cache.load(e);return this.addResolvingPromise(u),await u,(0,n.Te)(e),{layer:this._cache,size:this.size}}};(0,d.Cg)([(0,m.MZ)()],y.prototype,"_cache",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"autoLoad",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"customParameters",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"datasetFormat",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"url",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"layer",null),(0,d.Cg)([(0,m.MZ)()],y.prototype,"rotation",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"size",null),y=(0,d.Cg)([(0,g.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],y);var v=r(37955),_=r(38969);class w extends s.A{constructor(e,t,r){super(e,t,r),this.name="unknown",this.name=e}}const x=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),C=new Set(["MRF","TIFF","TIF"]);let b=class extends f.Z{constructor(e){super(e),this._size=[0,0],this._cache=null,this.autoLoad=!1,this.cameraHeading=null,this.extension=null,this.imagePyramid=null,this.type="image",this.uiStrings={}}destroy(){this._cache=null}get horizonPitch(){let{matrix:e}=this;return e?(0,i.KJ)(Math.asin(-e[6])):0}get horizonRoll(){let{matrix:e}=this;return e?(0,i.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){let{matrix:e,cameraHeading:t}=this;return e?(0,i.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){let{guessExtensionFromURI:t}=await r.e(7835).then(()=>r(97835));if((0,n.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let i=this.extension;if(i||=t(this.url),!i||!x.has(i))throw new w("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:i??"UNKNOWN FORMAT"});return C.has(i)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){let{loadMeshes:t,loadPyramid:i,loadRaster:s}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060)),o=await s(this.url,e);(0,n.Te)(e),this.imagePyramid=await i(o,{pitch:this.horizonPitch,yaw:this.horizonYaw,roll:this.horizonRoll},e),(0,n.Te)(e);let a=this.imagePyramid.getLowResolutionTiles(),l=await t(a,e);return(0,n.Te)(e),this._size=this.imagePyramid.imageSize,{meshOrMeshes:l,size:this._size,tileKeys:a?.map(e=>e.key)}}async loadVideoMesh(e){let{createImageSphere:t}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060));if((0,n.Te)(e),this._cache){let r=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:r,size:this._size}}let i=await this._resolveMedia(e);(0,n.Te)(e),this._cache=i.media,this._size=[...u];let s=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:s,size:this._size}}async loadImageMesh(e){let{createImageSphere:t}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060));if((0,n.Te)(e),this._cache){let r=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:r,size:this._size}}let i=await this._resolveMedia(e);(0,n.Te)(e),this._cache=i.media;let s=i.mesh;return this._size=[i.media.width,i.media.height],{meshOrMeshes:s,size:this._size}}async _resolveMedia(e){let t=Promise.withResolvers(),i=(0,n.u7)(e?.signal,t.resolve),s="video"===this.type?document.createElement("video"):document.createElement("img");s.crossOrigin="anonymous",s.src=this.url;let o=null,a="video"===this.type?(0,_.i)(s,this.addHandles):await new Promise((e,t)=>{o=[(0,v.on)(s,"error",e=>{t(e)}),(0,v.on)(s,"load",e)]}).finally(()=>{o?.forEach(e=>e.remove()),o=null}),l=Promise.race([a,t.promise]);this.addResolvingPromise(l);try{await l}finally{i?.remove()}(0,n.Te)(e);let u=s;if(!u)throw new w("unknown","Could not load media",{url:this.url});let{createImageSphere:h}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060));(0,n.Te)(e);let c=await h({data:s,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{media:u,mesh:c}}};function M(e){return function(e,t){let{cameraPitch:r,cameraRoll:i,cameraLocation:n}=e,{x:s,y:o,z:a,spatialReference:l}=n;if(t.every(e=>0===e)||!t||!t.length||!l)throw Error("Invalid parameters");let[u,h,,c,d]=t,p=[-c,0,c],f=[-d,0,d],m=[-u,0,u],g=[-h,0,h],y=[];for(let t of p)for(let n of f)for(let u of m)for(let h of m)for(let c of g){let d={...e};d.cameraPitch=r+t,d.cameraRoll=i+n,d.cameraLocation={x:s+u,y:o+h,z:a?a+c:0,spatialReference:{wkid:l.wkid}},y.push(d)}return y}(e.imageToWorldProps,e.accuracyParameters)}function T(e){return function(e,t){let{cameraHeading:r,cameraLocation:i}=e,{x:n,y:s,z:o,spatialReference:a}=i;if(!t||t.every(e=>0===e)||!t.length||!a)throw Error("Invalid parameters");let[l,u,h]=t,c=h>0?[-h,0,h]:[],d=l>0?[-l,0,l]:[],p=u>0?[-u,0,u]:[],f=[];for(let t of c)for(let i of d)for(let l of d)for(let u of p){let h={...e};h.cameraHeading=r+t,h.cameraLocation={x:n+i,y:s+l,z:o?o+u:0,spatialReference:{wkid:a.wkid}},f.push(h)}return f}(e.imageToWorldProps,e.accuracyParameters)}(0,d.Cg)([(0,m.MZ)()],b.prototype,"_size",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"autoLoad",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"cameraHeading",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"extension",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"horizonPitch",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"horizonRoll",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"horizonYaw",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"id",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"imagePyramid",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"matrix",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"size",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"type",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"uiStrings",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"url",void 0),b=(0,d.Cg)([(0,g.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],b),r(9093),r(91829),r(58083),r(79258),r(73354),r(63490),r(28208),r(28735)},28208(e,t,r){var i=r(86738),n=r(16930);const s=new i.A({x:0,y:0,z:0,spatialReference:n.A.WebMercator});r.d(t,["NU",0,.3515625,"ZH",0,s])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{37838(t,e,o){o.d(e,{A:()=>oe});var i,r=o(32198),s=o(5757),n=o(69540),l=o(7762),a=o(25482),p=o(4718),d=o(53966),u=o(17676),c=o(91429),y=o(78888),h=o(30524),m=o(89893),g=o(84424);let f=i=class extends g.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,p.o8)(this.outFields):null})}};(0,r.Cg)([(0,c.MZ)()],f.prototype,"creator",void 0),(0,r.Cg)([(0,c.MZ)()],f.prototype,"destroyer",void 0),(0,r.Cg)([(0,c.MZ)()],f.prototype,"outFields",void 0),(0,r.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],f.prototype,"type",void 0),f=i=(0,r.Cg)([(0,c.$K)("esri.popup.content.CustomContent")],f);const v=f;var w;let C=w=class extends a.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new w({title:this.title,expression:this.expression})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],C.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],C.prototype,"expression",void 0),(0,r.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],C.prototype,"returnType",void 0),C=w=(0,r.Cg)([(0,c.$K)("esri.popup.ElementExpressionInfo")],C);const M=C;var x;let F=x=class extends g.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new x({expressionInfo:this.expressionInfo?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:M,json:{write:!0}})],F.prototype,"expressionInfo",void 0),(0,r.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],F.prototype,"type",void 0),F=x=(0,r.Cg)([(0,c.$K)("esri.popup.content.ExpressionContent")],F);const Z=F;var I=o(66159);let j=class extends a.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],j.prototype,"altText",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],j.prototype,"caption",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],j.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],j.prototype,"type",void 0),j=(0,r.Cg)([(0,c.$K)("esri.popup.content.mixins.MediaInfo")],j);const A=j;var N,b=o(68197),S=o(69622);let _=N=class extends S.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new N({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,r.Cg)([(0,c.MZ)()],_.prototype,"color",void 0),(0,r.Cg)([(0,c.MZ)()],_.prototype,"fieldName",void 0),(0,r.Cg)([(0,c.MZ)()],_.prototype,"tooltip",void 0),(0,r.Cg)([(0,c.MZ)()],_.prototype,"value",void 0),_=N=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ChartMediaInfoValueSeries")],_);const R=_;var O;let T=O=class extends a.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new O({colors:(0,p.o8)(this.colors),fields:(0,p.o8)(this.fields),normalizeField:this.normalizeField,series:(0,p.o8)(this.series),tooltipField:this.tooltipField})}};(0,r.Cg)([(0,c.MZ)({type:[b.A],json:{type:[[y.jz]],write:!0}})],T.prototype,"colors",void 0),(0,r.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],T.prototype,"fields",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],T.prototype,"normalizeField",void 0),(0,r.Cg)([(0,c.MZ)({type:[R],json:{read:!1}})],T.prototype,"series",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],T.prototype,"tooltipField",void 0),T=O=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ChartMediaInfoValue")],T);const $=T;let K=class extends A{constructor(t){super(t),this.type=null,this.value=void 0}};(0,r.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],K.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:$,json:{write:{isRequired:!0}}})],K.prototype,"value",void 0),K=(0,r.Cg)([(0,c.$K)("esri.popup.content.mixins.ChartMediaInfo")],K);const E=K,B=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var k;let J=k=class extends E{constructor(t){super(t),this.type="bar-chart"}clone(){return new k({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:B.write,isRequired:!0}}})],J.prototype,"type",void 0),J=k=(0,r.Cg)([(0,c.$K)("esri.popup.content.BarChartMediaInfo")],J);const q=J;var L;let D=L=class extends E{constructor(t){super(t),this.type="column-chart"}clone(){return new L({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:B.write,isRequired:!0}}})],D.prototype,"type",void 0),D=L=(0,r.Cg)([(0,c.$K)("esri.popup.content.ColumnChartMediaInfo")],D);const U=D;var W;let z=W=class extends a.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new W({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],z.prototype,"linkURL",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],z.prototype,"sourceURL",void 0),z=W=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ImageMediaInfoValue")],z);const P=z;var G;let V=G=class extends A{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new G({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],V.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],V.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:P,json:{write:{isRequired:!0}}})],V.prototype,"value",void 0),V=G=(0,r.Cg)([(0,c.$K)("esri.popup.content.ImageMediaInfo")],V);const H=V;var X;let Q=X=class extends E{constructor(t){super(t),this.type="line-chart"}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:B.write,isRequired:!0}}})],Q.prototype,"type",void 0),Q=X=(0,r.Cg)([(0,c.$K)("esri.popup.content.LineChartMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends E{constructor(t){super(t),this.type="pie-chart"}clone(){return new tt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:B.write,isRequired:!0}}})],et.prototype,"type",void 0),et=tt=(0,r.Cg)([(0,c.$K)("esri.popup.content.PieChartMediaInfo")],et);const ot=et,it={base:A,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":q,"column-chart":U,"line-chart":Y,"pie-chart":ot,image:H}};var rt,st=o(36005),nt=o(43937);let lt=rt=class extends g.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?H.fromJSON(t):"barchart"===t.type?q.fromJSON(t):"columnchart"===t.type?U.fromJSON(t):"linechart"===t.type?Y.fromJSON(t):"piechart"===t.type?ot.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new rt((0,p.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r.Cg)([(0,c.MZ)()],lt.prototype,"activeMediaInfoIndex",void 0),(0,r.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],lt.prototype,"attributes",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],lt.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({types:[it]})],lt.prototype,"mediaInfos",void 0),(0,r.Cg)([(0,st.w)("mediaInfos")],lt.prototype,"readMediaInfos",null),(0,r.Cg)([(0,nt.K)("mediaInfos")],lt.prototype,"writeMediaInfos",null),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],lt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],lt.prototype,"type",void 0),lt=rt=(0,r.Cg)([(0,c.$K)("esri.popup.content.MediaContent")],lt);const at=lt;var pt=o(49852);let dt=class extends((0,n.OU)(g.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],dt.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:!0}})],dt.prototype,"displayCount",void 0),(0,r.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],dt.prototype,"displayType",void 0),(0,r.Cg)([(0,c.MZ)({type:[pt.A],json:{write:!0}})],dt.prototype,"orderByFields",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:{isRequired:!0}}})],dt.prototype,"relationshipId",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],dt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],dt.prototype,"type",void 0),dt=(0,r.Cg)([(0,c.$K)("esri.popup.content.RelationshipContent")],dt);const ut=dt;var ct;let yt=ct=class extends g.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new ct({text:this.text})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],yt.prototype,"text",void 0),(0,r.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],yt.prototype,"type",void 0),yt=ct=(0,r.Cg)([(0,c.$K)("esri.popup.content.TextContent")],yt);const ht=yt;var mt=o(83342),gt=o(93223);let ft=class extends((0,n.OU)(g.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ft.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:!0}})],ft.prototype,"displayCount",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ft.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:[mt.A],json:{write:!0}})],ft.prototype,"associationTypes",void 0),(0,r.Cg)([(0,gt.e)({utilityNetworkAssociations:"utility-network-associations"})],ft.prototype,"type",void 0),ft=(0,r.Cg)([(0,c.$K)("esri.popup.content.UtilityNetworkAssociationsContent")],ft);const vt=ft,wt=m.A,Ct=g.A,Mt=v,xt=Z,Ft=I.A,Zt=at,It=ut,jt=ht,At=vt,Nt={base:null,key:"type",typeMap:{attachment:wt,media:Zt,text:jt,expression:xt,field:Ft,relationship:It,utilityNetworkAssociations:At}},bt={base:null,key:"type",typeMap:{attachment:wt,media:Zt,text:jt,expression:xt,field:Ft,relationship:It}};var St,_t=o(93705),Rt=o(41227);let Ot=St=class extends a.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new St({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Ot.prototype,"returnTopmostRaster",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Ot.prototype,"showNoDataRecords",void 0),Ot=St=(0,r.Cg)([(0,c.$K)("esri.popup.LayerOptions")],Ot);const Tt=Ot;var $t;let Kt=$t=class extends a.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new $t({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,p.o8)(this.orderByFields):null})}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Kt.prototype,"showRelatedRecords",void 0),(0,r.Cg)([(0,c.MZ)({type:[pt.A],json:{write:!0}})],Kt.prototype,"orderByFields",void 0),Kt=$t=(0,r.Cg)([(0,c.$K)("esri.popup.RelatedRecordsInfo")],Kt);const Et=Kt;var Bt=o(51447),kt=o(4902);let Jt=class extends((0,kt.s)(S.A)){constructor(t){super(t),this.active=!1,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}_internalSetClassName(t){return this._set("className",t),this}get className(){return this._get("className")??null}set className(t){(0,Bt.Lx)(d.A.getLogger(this),"className",{replacement:"icon",version:"5.1",warnOnce:!0}),this._set("className",t)}};(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"active",void 0),(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"className",null),(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"disabled",void 0),(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"icon",void 0),(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"id",void 0),(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"indicator",void 0),(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"visible",void 0),Jt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionBase")],Jt);const qt=Jt;var Lt;let Dt=Lt=class extends qt{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Lt({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})._internalSetClassName(this.className)}};(0,r.Cg)([(0,c.MZ)()],Dt.prototype,"image",void 0),Dt=Lt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionButton")],Dt);const Ut=Dt;var Wt;let zt=Wt=class extends qt{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Wt({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})._internalSetClassName(this.className)}};(0,r.Cg)([(0,c.MZ)()],zt.prototype,"image",void 0),(0,r.Cg)([(0,c.MZ)()],zt.prototype,"value",void 0),zt=Wt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionToggle")],zt);const Pt=zt;var Gt;const Vt="relationships/",Ht="expression/",Xt=l.A.ofType({key:"type",defaultKeyValue:"button",base:qt,typeMap:{button:Ut,toggle:Pt}}),Qt={base:Ct,key:"type",typeMap:{media:Zt,custom:Mt,text:jt,attachments:wt,fields:Ft,expression:xt,relationship:It,utilityNetworkAssociations:At}},Yt=new Set(["attachments","fields","media","text","expression","relationship"]),te=new Set([...Yt,"utility-network-associations"]);let ee=class extends((0,n.OU)(a.o)){static{Gt=s.P}constructor(t){super(t),this[Gt]=!0,this.actions=null,this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}get content(){return this._get("content")??""}set content(t){this._set("content",t)}castContent(t){return Array.isArray(t)?t.map(t=>(0,y.aq)(Qt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,u.$X)(t)?t:(d.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){let{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){let{content:r}=this,s=Array.isArray(r)?r:null,{writeFieldFormat:n,...l}=i||{};if(t){let o=s?s.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{let e=t.toJSON(l);return i&&(e.visible=!1),e})}if(s)for(let t of s)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){let i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,h._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){let o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"==typeof t?e.description=t:Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Yt.has(t.type):te.has(t.type)).map(t=>t?.toJSON(o)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))}_writeFieldsContent(t,e,o){let i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;let r=e.fieldInfos;if(Array.isArray(r))for(let t of i){let e=r.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:r.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||=!0}_writeRelationshipContent(t,e){let o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;let o=(0,p.o8)(t.mediaInfos);e.mediaInfos=Array.isArray(e.mediaInfos)?[...e.mediaInfos,...o]:o}_readPopupInfoElements(t,e,o){let i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(!o.mediaInfos&&e&&!i.mediaInfos&&(o.mediaInfos=e,i.mediaInfos=!0),Zt.fromJSON(o)):"text"===o.type?(!o.text&&t&&!i.description&&(o.text=t,i.description=!0),jt.fromJSON(o)):"attachments"===o.type?wt.fromJSON(o):"fields"===o.type?Ft.fromJSON(o):"expression"===o.type?xt.fromJSON(o):"relationship"===o.type?It.fromJSON(o):"utilityNetworkAssociations"===o.type?At.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){let{field:e,order:o}=t;if(!e?.startsWith(Vt))return null;let i=e.replace(Vt,"").split("/");if(2!==i.length)return null;let r=parseInt(i[0],10),s=i[1];return!Number.isNaN(r)&&s?It.fromJSON({relationshipId:r,orderByFields:[{field:s,order:o}]}):null}_toFieldOrderJSON(t,e){let{order:o,field:i}=t;return{field:`${Vt}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){let r=[];t?r.push(new jt({text:t})):r.push(new Ft),Array.isArray(e)&&e.length&&r.push(Zt.fromJSON({mediaInfos:e})),o&&r.push(wt.fromJSON({displayType:"auto"}));let{showRelatedRecords:s,orderByFields:n}=i;return s&&n?.length&&n.forEach(t=>{let e=this._toRelationshipContent(t);e&&r.push(e)}),r.length?r:t}_getContentElementFields(t){let e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){let e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){let{caption:e,title:o,value:i}=t,{fields:r,normalizeField:s,tooltipField:n,sourceURL:l,linkURL:a}=i||{},p=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return s&&p.push(s),n&&p.push(n),p}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,o,i){i&&await Promise.all(i.map(i=>(0,h.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(Vt)||t.startsWith(Ht))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){let{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,h.nw)(t).filter(t=>!(t.startsWith(Vt)||t.startsWith(Ht)))}};(0,r.Cg)([(0,c.MZ)({type:Xt})],ee.prototype,"actions",void 0),(0,r.Cg)([(0,c.MZ)()],ee.prototype,"content",null),(0,r.Cg)([(0,c.wg)("content")],ee.prototype,"castContent",null),(0,r.Cg)([(0,st.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],ee.prototype,"readContent",null),(0,r.Cg)([(0,nt.K)("web-scene","content",{popupElements:{type:l.A.ofType(bt)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(it)},description:{type:String},relatedRecordsInfo:{type:Et}})],ee.prototype,"writeWebSceneContent",null),(0,r.Cg)([(0,nt.K)("content",{popupElements:{type:l.A.ofType(Nt)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(it)},description:{type:String},relatedRecordsInfo:{type:Et}})],ee.prototype,"writeWebMapContent",null),(0,r.Cg)([(0,c.MZ)({type:[_t.A],json:{write:!0}})],ee.prototype,"expressionInfos",void 0),(0,r.Cg)([(0,c.MZ)({type:[Rt.A]})],ee.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,nt.K)("fieldInfos")],ee.prototype,"writeFieldInfos",null),(0,r.Cg)([(0,c.MZ)({type:Tt})],ee.prototype,"layerOptions",void 0),(0,r.Cg)([(0,nt.K)("layerOptions")],ee.prototype,"writeLayerOptions",null),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],ee.prototype,"lastEditInfoEnabled",void 0),(0,r.Cg)([(0,c.MZ)()],ee.prototype,"outFields",void 0),(0,r.Cg)([(0,c.MZ)()],ee.prototype,"overwriteActions",void 0),(0,r.Cg)([(0,c.MZ)()],ee.prototype,"returnGeometry",void 0),(0,r.Cg)([(0,c.MZ)({json:{type:String}})],ee.prototype,"title",void 0),(0,r.Cg)([(0,nt.K)("title")],ee.prototype,"writeTitle",null),ee=(0,r.Cg)([(0,c.$K)("esri.PopupTemplate")],ee);const oe=ee},60950(t,e,o){o.d(e,{E_:()=>r});const i=Symbol("popupProvider");function r(t){return function(t){return!!t&&i in t}(t)?t[i]:null}o.d(e,["ym",0,i])},39663(t,e,o){o.d(e,{$P:()=>J,iu:()=>x,HK:()=>F,PK:()=>O,fg:()=>M,qH:()=>Z});var i=o(32198),r=o(10107),s=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,s.$)("esri.layers.support.FieldFormat")],a);const p=a,d="auto";let u=class extends p{constructor(t){super(t),this.dateStyle=null,this.hour12=d,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],u.prototype,"dateStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:d,write:!0}})],u.prototype,"hour12",void 0),(0,i.Cg)([(0,r.MZ)({type:["long","short"],json:{write:!0}})],u.prototype,"month",void 0),(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],u.prototype,"timeStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["date-time"]})],u.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["numeric"],json:{write:!0}})],u.prototype,"year",void 0),u=(0,i.Cg)([(0,s.$)("esri.layers.support.DateTimeFieldFormat")],u);const c=u;var y=o(30524),h=o(78888);const m={min:0,max:20},g="decimal",f="auto";let v=class extends p{constructor(t){super(t),this.maximumFractionDigits=2,this.minimumFractionDigits=0,this.style=g,this.type="number",this.useGrouping=f}};(0,i.Cg)([(0,r.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:2,write:!0}})],v.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:0,write:!0}})],v.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:["decimal"],nonNullable:!0,json:{default:g,write:!0}})],v.prototype,"style",void 0),(0,i.Cg)([(0,r.MZ)({type:["number"]})],v.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:f,write:!0}})],v.prototype,"useGrouping",void 0),v=(0,i.Cg)([(0,s.$)("esri.layers.support.NumberFieldFormat")],v);const w=v;var C=o(68780);const M={base:p,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":c,number:w}};function x(t,e){let{format:o}=t;return e&&Z(e)?o?F(o,e):J(e,{hour12:"always",useGrouping:"always"}):null}function F(t,e){let{dateFormat:o}=t;if(!e)return o?A(t):j(t);if(!Z(e))return;let i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return I(t);case"single":case"double":return j(t);case"date":case"timestamp-offset":return o?A(t):J(e,i);case"date-only":return o?function(t){return new c({dateStyle:N(t),year:R(t),month:S(t)})}(t):J(e);case"time-only":return o?function(t){return new c({timeStyle:_(t),hour12:b(t)})}(t):J(e,i)}}function Z(t){return(0,y.Jl)(t)&&((0,y.WA)(t)||(0,y.vE)(t)||(0,y.zD)(t)||(0,y.OH)(t)||(0,y.Ah)(t))}function I(t){return new w({useGrouping:t.digitSeparator?"always":"never"})}function j(t){let e=I(t),{places:o}=t;return e.minimumFractionDigits=o??0,e.maximumFractionDigits=o??2,e}function A(t){return new c({dateStyle:N(t),year:R(t),month:S(t),timeStyle:_(t),hour12:b(t)})}function N(t){let{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function b(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function S(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function _(t){let{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function R(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function O(t,e){let o="number"===t.type,i="date-time"===t.type;if(!e)return o?$(t):i?K(t):null;if(Z(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?T(t):null;case"single":case"double":return o?$(t):null;case"date":case"timestamp-offset":return i?K(t):null;case"date-only":return i?function(t){let e,o=E(t),i="numeric"===t.year?"year":null,r=k(t);return o?e=o:i&&r?e=`${r}-${i}`:i&&(e=i),e?new C.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e,o=B(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new C.A({dateFormat:e}):null}(t):null}}function T(t){return new C.A({digitSeparator:"never"!==t.useGrouping})}function $(t){let e=T(t);return e.places=t.maximumFractionDigits,e}function K(t){let e,o=E(t),i=B(t),r="never"===t.hour12?"24":null,s="numeric"===t.year?"year":null,n=k(t);return o&&i&&r?e=`${o}-${i}-${r}`:o&&i?e=`${o}-${i}`:o?e=o:s&&n?e=`${n}-${s}`:s&&(e=s),e?new C.A({dateFormat:e}):null}function E(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function B(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function k(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function J(t,e){if(!Z(t))return;let o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new w({minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:o});case"single":case"double":return new w({minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:o});case"date":case"timestamp-offset":return new c({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new c({dateStyle:"short"});case"time-only":return new c({timeStyle:"short",hour12:i})}}},93705(t,e,o){var i,r=o(32198),s=o(25482),n=o(91429);let l=i=class extends s.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.popup.ExpressionInfo")],l);const a=l;o.d(e,["A",0,a])},41227(t,e,o){var i=o(32198),r=o(69540),s=o(66552),n=o(25482),l=o(91429),a=o(39663),p=o(68780),d=o(36005),u=o(93223);let c=class extends((0,r.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,a.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,a.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?p.A.fromJSON(t):null}clone(){let t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:a.fg,json:{write:{overridePolicy(t,e,o){let{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],c.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:p.A,json:{write:!0}})],c.prototype,"format",null),(0,i.Cg)([(0,d.w)("format")],c.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,i.Cg)([(0,u.e)(new s.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=(0,i.Cg)([(0,l.$K)("esri.popup.FieldInfo")],c);const y=c;o.d(e,["A",0,y])},89893(t,e,o){o.d(e,{A:()=>y});var i=o(32198),r=o(69540),s=o(91429),n=o(84424),l=o(66552),a=o(25482);const p=new l.J({asc:"ascending",desc:"descending"});let d=class extends((0,r.OU)(a.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,i.Cg)([(0,s.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],d.prototype,"order",void 0),d=(0,i.Cg)([(0,s.$K)("esri.popup.support.AttachmentsOrderByInfo")],d);const u=d;let c=class extends((0,r.OU)(n.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],c.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,s.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:["auto","preview","list","carousel"],json:{write:!0}})],c.prototype,"displayType",void 0),(0,i.Cg)([(0,s.MZ)({type:[u],json:{write:!0}})],c.prototype,"orderByFields",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.popup.content.AttachmentsContent")],c);const y=c},84424(t,e,o){var i=o(32198),r=o(25482),s=o(91429);let n=class extends r.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],n.prototype,"type",void 0),n=(0,i.Cg)([(0,s.$K)("esri.popup.content.Content")],n);const l=n;o.d(e,["A",0,l])},66159(t,e,o){var i,r=o(32198),s=o(4718),n=o(91429),l=o(41227),a=o(84424);let p=i=class extends a.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,s.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],p.prototype,"attributes",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:[l.A],json:{write:!0}})],p.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],p.prototype,"type",void 0),p=i=(0,r.Cg)([(0,n.$K)("esri.popup.content.FieldsContent")],p);const d=p;o.d(e,["A",0,d])},68780(t,e,o){var i=o(32198),r=o(69540),s=o(25482),n=o(91429),l=o(78888),a=o(97770),p=o(93223);let d=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,p.e)(a._v)],d.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],d.prototype,"places",void 0),d=(0,i.Cg)([(0,n.$K)("esri.popup.support.FieldInfoFormat")],d);const u=d;o.d(e,["A",0,u])},49852(t,e,o){var i,r=o(32198),s=o(25482),n=o(91429);let l=i=class extends s.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,r.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l;o.d(e,["A",0,a])},83342(t,e,o){var i=o(32198),r=o(69540),s=o(25482),n=o(91429),l=o(78888);let a=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,i.Cg)([(0,n.$K)("esri.popup.support.UtilityNetworkAssociationType")],a);const p=a;o.d(e,["A",0,p])},78553(t,e,o){o.d(e,{D:()=>s,p:()=>r});var i=o(78888);function r(t){let e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){let e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);