@arcgis/core 5.2.0-next.125 → 5.2.0-next.126

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 (283) hide show
  1. package/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +3 -2
  2. package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +1 -0
  3. package/arcgisGlobal.d.ts +1 -0
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/{fe9582bc2244667e40ab.js → 05afa8c2b5929ce0545a.js} +1 -1
  6. package/assets/esri/core/workers/chunks/0a20f84b5f004a77a9f9.js +1 -0
  7. package/assets/esri/core/workers/chunks/{cfd56e0a716baf95e17b.js → 0a2b7c691a577cb3d189.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{6cf34cfdd063a1b6fe3e.js → 0ccd4200c5a2a5de6e16.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{bdf012e591a8476db467.js → 1406a884241809b62bff.js} +1 -1
  10. package/assets/esri/core/workers/chunks/17218d714cb07b607c2f.js +1 -0
  11. package/assets/esri/core/workers/chunks/1d040aa8951fff3141d9.js +1 -0
  12. package/assets/esri/core/workers/chunks/30604a29df320d7a4c6b.js +1 -0
  13. package/assets/esri/core/workers/chunks/3ef367c9b7bf1588307d.js +1 -0
  14. package/assets/esri/core/workers/chunks/{5b9b76e180cf206a8a0c.js → 4327d2c39a660bd89da7.js} +1 -1
  15. package/assets/esri/core/workers/chunks/4678a8170d8a3ccd1a7b.js +1 -0
  16. package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +1 -0
  17. package/assets/esri/core/workers/chunks/{f05becec0952a61bc654.js → 4d18451e0ea6ca54101a.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{26bc509a031788bfa678.js → 4f464047c6f6c9486efd.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{58528ccb7f72ae76d52b.js → 540f60e31b19d85e9371.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{44857a76be2c0ac65bb9.js → 55a560fd872f7463b33d.js} +1 -1
  21. package/assets/esri/core/workers/chunks/56acda1eed3a013430e2.js +1 -0
  22. package/assets/esri/core/workers/chunks/{1f55701d23a5e5a0c70c.js → 57ab87e70ef85b9405f9.js} +122 -122
  23. package/assets/esri/core/workers/chunks/{f0901f9c7135b708434f.js → 5adf2792416b22cd602f.js} +1 -1
  24. package/assets/esri/core/workers/chunks/5fe5ef5ccf480634d159.js +1 -0
  25. package/assets/esri/core/workers/chunks/67678054342178b601cf.js +1 -0
  26. package/assets/esri/core/workers/chunks/67dcf9b873cb037b2647.js +1 -0
  27. package/assets/esri/core/workers/chunks/76548469fe1b9c3b2051.js +1 -0
  28. package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +1 -0
  29. package/assets/esri/core/workers/chunks/7dd94567833386dc74de.js +1 -0
  30. package/assets/esri/core/workers/chunks/806f96ad09e882be41af.js +1 -0
  31. package/assets/esri/core/workers/chunks/{bbaaebe1774a22dba39b.js → 97602019a1ccad22a03a.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{378bdb4e5cd1ebada1f4.js → 9ca98fffd43e63d5ade3.js} +1 -1
  33. package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +1 -0
  34. package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +1 -0
  35. package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +1 -0
  36. package/assets/esri/core/workers/chunks/{e22a013ec38989caf9de.js → a790fc6b22acf651574b.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{2f52ad525744b8793d49.js → a8258636096416c837a2.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{813dd84933b407c8fe86.js → b34305474a861aaf6ccb.js} +1 -1
  39. package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +1 -0
  40. package/assets/esri/core/workers/chunks/{f0709c48daca93e759c8.js → c692e583e87af58f6d91.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{4f7e8e4ddf52b5245ea4.js → c77496c350004ee66eb2.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{0fba5c0e89b057da548d.js → cb7cb7d57c4e7f76600f.js} +1 -1
  43. package/assets/esri/core/workers/chunks/d371d9279b30548efa02.js +1 -0
  44. package/assets/esri/core/workers/chunks/d5f0fed415b5b155d57c.js +1 -0
  45. package/assets/esri/core/workers/chunks/{3f082329a544c2c1d62d.js → d5f72670634e73c0b53a.js} +1 -1
  46. package/assets/esri/core/workers/chunks/d6e914f6ed45ea59034e.js +1 -0
  47. package/assets/esri/core/workers/chunks/{5afc12671a9a1bb6c56c.js → dc52e036547612949d32.js} +1 -1
  48. package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +1 -0
  49. package/assets/esri/core/workers/chunks/e1ae83ff3e0225708d4d.js +1 -0
  50. package/assets/esri/core/workers/chunks/{df79c00b5ddbef7148a0.js → eaa7cb3ffa8c11706a09.js} +1 -1
  51. package/assets/esri/core/workers/chunks/eebbc86a15ae3adb5f38.js +1 -0
  52. package/assets/esri/core/workers/chunks/fdbda3d2afea25142b86.js +1 -0
  53. package/assets/esri/libs/pdfjs/pdf.worker.mjs +4 -63051
  54. package/assets/esri/widgets/Editor/t9n/messages.ar.json +1 -1
  55. package/assets/esri/widgets/Editor/t9n/messages.bg.json +1 -1
  56. package/assets/esri/widgets/Editor/t9n/messages.bs.json +1 -1
  57. package/assets/esri/widgets/Editor/t9n/messages.ca.json +1 -1
  58. package/assets/esri/widgets/Editor/t9n/messages.cs.json +1 -1
  59. package/assets/esri/widgets/Editor/t9n/messages.da.json +1 -1
  60. package/assets/esri/widgets/Editor/t9n/messages.de.json +1 -1
  61. package/assets/esri/widgets/Editor/t9n/messages.el.json +1 -1
  62. package/assets/esri/widgets/Editor/t9n/messages.es.json +1 -1
  63. package/assets/esri/widgets/Editor/t9n/messages.et.json +1 -1
  64. package/assets/esri/widgets/Editor/t9n/messages.fi.json +1 -1
  65. package/assets/esri/widgets/Editor/t9n/messages.fr.json +1 -1
  66. package/assets/esri/widgets/Editor/t9n/messages.he.json +1 -1
  67. package/assets/esri/widgets/Editor/t9n/messages.hr.json +1 -1
  68. package/assets/esri/widgets/Editor/t9n/messages.hu.json +1 -1
  69. package/assets/esri/widgets/Editor/t9n/messages.id.json +1 -1
  70. package/assets/esri/widgets/Editor/t9n/messages.it.json +1 -1
  71. package/assets/esri/widgets/Editor/t9n/messages.ja.json +1 -1
  72. package/assets/esri/widgets/Editor/t9n/messages.ko.json +1 -1
  73. package/assets/esri/widgets/Editor/t9n/messages.lt.json +1 -1
  74. package/assets/esri/widgets/Editor/t9n/messages.lv.json +1 -1
  75. package/assets/esri/widgets/Editor/t9n/messages.nl.json +1 -1
  76. package/assets/esri/widgets/Editor/t9n/messages.no.json +1 -1
  77. package/assets/esri/widgets/Editor/t9n/messages.pl.json +1 -1
  78. package/assets/esri/widgets/Editor/t9n/messages.pt-BR.json +1 -1
  79. package/assets/esri/widgets/Editor/t9n/messages.pt-PT.json +1 -1
  80. package/assets/esri/widgets/Editor/t9n/messages.ro.json +1 -1
  81. package/assets/esri/widgets/Editor/t9n/messages.ru.json +1 -1
  82. package/assets/esri/widgets/Editor/t9n/messages.sk.json +1 -1
  83. package/assets/esri/widgets/Editor/t9n/messages.sl.json +1 -1
  84. package/assets/esri/widgets/Editor/t9n/messages.sr.json +1 -1
  85. package/assets/esri/widgets/Editor/t9n/messages.sv.json +1 -1
  86. package/assets/esri/widgets/Editor/t9n/messages.th.json +1 -1
  87. package/assets/esri/widgets/Editor/t9n/messages.tr.json +1 -1
  88. package/assets/esri/widgets/Editor/t9n/messages.uk.json +1 -1
  89. package/assets/esri/widgets/Editor/t9n/messages.vi.json +1 -1
  90. package/assets/esri/widgets/Editor/t9n/messages.zh-CN.json +1 -1
  91. package/assets/esri/widgets/Editor/t9n/messages.zh-HK.json +1 -1
  92. package/assets/esri/widgets/Editor/t9n/messages.zh-TW.json +1 -1
  93. package/chunks/GlobalIllumination.glsl.js +9 -9
  94. package/chunks/GlobalIlluminationBlur.glsl.js +8 -8
  95. package/chunks/HeatmapDensity.glsl.js +5 -5
  96. package/chunks/Pattern.glsl.js +30 -30
  97. package/chunks/RibbonLine.glsl.js +19 -19
  98. package/config.js +1 -1
  99. package/core/accessorSupport/types.d.ts +5 -1
  100. package/interfaces.d.ts +3 -0
  101. package/kernel.js +1 -1
  102. package/layers/ParquetLayer.d.ts +3 -2
  103. package/layers/ParquetLayer.js +1 -1
  104. package/layers/SceneLayer.js +1 -1
  105. package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
  106. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +2 -2
  107. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  108. package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
  109. package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
  110. package/layers/geospatialPDF/geospatialPDFParserUtils.js +2 -0
  111. package/layers/geospatialPDF/projectionToWKTUtils.js +2 -0
  112. package/layers/geospatialPDF/renderExtentUtils.js +1 -1
  113. package/layers/geospatialPDF/sharedUtils.js +1 -1
  114. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  115. package/layers/orientedImagery/transformations/utils.js +1 -1
  116. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  117. package/layers/raster/types.d.ts +6 -0
  118. package/layers/support/TimeSeriesCalculation.d.ts +32 -0
  119. package/layers/support/TimeSeriesCalculation.js +2 -0
  120. package/layers/support/TimeSeriesInfo.d.ts +19 -0
  121. package/layers/support/TimeSeriesInfo.js +1 -1
  122. package/layers/support/commonProperties.js +1 -1
  123. package/layers/support/timeSeriesUtils.d.ts +25 -1
  124. package/layers/support/timeSeriesUtils.js +1 -1
  125. package/layers/types.d.ts +1 -0
  126. package/package.json +2 -2
  127. package/popup/FeatureContentCollection.d.ts +4 -1
  128. package/popup/FeatureContentCollection.js +1 -1
  129. package/popup/types.d.ts +14 -3
  130. package/portal/schemas/definitions.js +1 -1
  131. package/portal/schemas/sceneLayerItem.js +1 -1
  132. package/renderers/support/AuthoringInfo.d.ts +8 -1
  133. package/renderers/support/AuthoringInfo.js +1 -1
  134. package/renderers/support/AuthoringInfoVisualVariable.d.ts +8 -1
  135. package/renderers/support/AuthoringInfoVisualVariable.js +1 -1
  136. package/rest/imageService/fetchRasterInfo.js +1 -1
  137. package/rest/knowledgeGraph/DataModel.js +1 -1
  138. package/smartMapping/renderers/color.d.ts +12 -0
  139. package/smartMapping/renderers/color.js +1 -1
  140. package/smartMapping/renderers/opacity.d.ts +6 -0
  141. package/smartMapping/renderers/opacity.js +1 -1
  142. package/smartMapping/renderers/size.d.ts +12 -0
  143. package/smartMapping/renderers/size.js +1 -1
  144. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  145. package/smartMapping/renderers/support/rendererUtils.js +1 -1
  146. package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
  147. package/smartMapping/renderers/type.d.ts +6 -0
  148. package/smartMapping/renderers/type.js +1 -1
  149. package/smartMapping/renderers/univariateColorSize.d.ts +6 -0
  150. package/smartMapping/renderers/univariateColorSize.js +1 -1
  151. package/support/revision.js +1 -1
  152. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  153. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +8 -0
  154. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  155. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  156. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +8 -0
  157. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
  158. package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +3 -2
  159. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  160. package/views/3d/analysis/Dimension/DimensionController.js +1 -1
  161. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
  162. package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +3 -2
  163. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  164. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  165. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  166. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  167. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  168. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  169. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +1 -0
  170. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  171. package/views/3d/input/handlers/DragRotate.js +1 -1
  172. package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
  173. package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
  174. package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
  175. package/views/3d/state/Constraints.js +1 -1
  176. package/views/3d/state/controllers/GroundNavigationController.js +1 -1
  177. package/views/3d/state/controllers/RotateController.js +1 -1
  178. package/views/3d/support/engineContent/line.js +1 -1
  179. package/views/3d/support/planarDistanceToGroundRatio.js +2 -0
  180. package/views/3d/terrain/OverlayManager.js +1 -1
  181. package/views/3d/terrain/OverlayRenderer.js +1 -1
  182. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +13 -13
  183. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +2 -2
  184. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  185. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  186. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  187. package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +1 -1
  188. package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
  189. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  190. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  191. package/views/DOMContainer.js +1 -1
  192. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  193. package/views/analysis/LengthDimensionResult.d.ts +4 -1
  194. package/views/draw/support/managers/TooltipManager.js +1 -1
  195. package/views/interactive/options/SnappingOptions.d.ts +4 -2
  196. package/views/interactive/options/SnappingOptions.js +1 -1
  197. package/views/interactive/options/ViewOptions.d.ts +18 -0
  198. package/views/interactive/options/bindViewToolOptions.js +2 -0
  199. package/views/interactive/snapping/SnappingManagerPool.js +1 -1
  200. package/views/interactive/snapping/allLayerSnapping.js +1 -1
  201. package/views/overlay/FocusRegionOverlayItem.js +1 -1
  202. package/views/selection/SelectionOperation.d.ts +27 -1
  203. package/views/selection/types.d.ts +8 -20
  204. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +1 -0
  205. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
  206. package/widgets/AreaMeasurement2D.js +1 -1
  207. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +1 -0
  208. package/widgets/BasemapLayerList.d.ts +1 -0
  209. package/widgets/BatchAttributeForm/expressions/types.d.ts +1 -0
  210. package/widgets/BatchAttributeForm/types.d.ts +5 -1
  211. package/widgets/BatchAttributeForm.d.ts +1 -0
  212. package/widgets/Bookmarks/BookmarksViewModel.d.ts +1 -0
  213. package/widgets/Bookmarks.d.ts +1 -0
  214. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +1 -0
  215. package/widgets/CatalogLayerList.d.ts +1 -0
  216. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +1 -0
  217. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
  218. package/widgets/DistanceMeasurement2D.js +1 -1
  219. package/widgets/Editor.d.ts +1 -0
  220. package/widgets/FeatureForm.d.ts +1 -0
  221. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +14 -0
  222. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  223. package/widgets/FeatureTable/support/FeatureStore.d.ts +14 -0
  224. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  225. package/widgets/FeatureTable.d.ts +1 -0
  226. package/widgets/FeatureTemplates.d.ts +1 -0
  227. package/widgets/Features/FeaturesViewModel.d.ts +1 -0
  228. package/widgets/Features.d.ts +2 -1
  229. package/widgets/HistogramRangeSlider.d.ts +1 -0
  230. package/widgets/Home/HomeViewModel.d.ts +1 -0
  231. package/widgets/Home.d.ts +1 -0
  232. package/widgets/LayerList/LayerListViewModel.d.ts +1 -0
  233. package/widgets/LayerList.d.ts +1 -0
  234. package/widgets/Locate/LocateViewModel.d.ts +1 -0
  235. package/widgets/Locate.d.ts +1 -0
  236. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  237. package/widgets/OrientedImageryViewer/navigation/NavigationManagerPanoramic.js +1 -1
  238. package/widgets/OrientedImageryViewer/types.d.ts +4 -1
  239. package/widgets/OrientedImageryViewer.d.ts +4 -1
  240. package/widgets/Popup.d.ts +1 -0
  241. package/widgets/Print/PrintViewModel.d.ts +1 -0
  242. package/widgets/Print.d.ts +1 -0
  243. package/widgets/Search.d.ts +1 -0
  244. package/widgets/Sketch.d.ts +1 -0
  245. package/widgets/Slider.d.ts +4 -0
  246. package/widgets/TimeSlider.d.ts +1 -0
  247. package/widgets/Track/TrackViewModel.d.ts +1 -0
  248. package/widgets/Track.d.ts +1 -0
  249. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +1 -0
  250. package/widgets/UtilityNetworkTrace.d.ts +1 -0
  251. package/widgets/ValuePicker/types.d.ts +1 -0
  252. package/widgets/ValuePicker.d.ts +1 -0
  253. package/widgets/smartMapping/SmartMappingSliderBase.d.ts +1 -0
  254. package/widgets/support/SelectionList/types.d.ts +2 -0
  255. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +2 -1
  256. package/assets/esri/core/workers/chunks/0148cb611bf7c8c5fe8a.js +0 -1
  257. package/assets/esri/core/workers/chunks/0a4a5ed831a4e4d8e0fc.js +0 -1
  258. package/assets/esri/core/workers/chunks/0acc754907395e83bbc6.js +0 -1
  259. package/assets/esri/core/workers/chunks/0f8ff964461cf8e0673b.js +0 -1
  260. package/assets/esri/core/workers/chunks/1e46703cb566c25458ad.js +0 -1
  261. package/assets/esri/core/workers/chunks/25c90092def215949db9.js +0 -1
  262. package/assets/esri/core/workers/chunks/2a34760b3f0c134898ec.js +0 -1
  263. package/assets/esri/core/workers/chunks/38890ac5917942374ab8.js +0 -1
  264. package/assets/esri/core/workers/chunks/3b4ceaf21be540cb3499.js +0 -1
  265. package/assets/esri/core/workers/chunks/4c4ba466e23159991322.js +0 -1
  266. package/assets/esri/core/workers/chunks/606ac9358f508bda94f2.js +0 -1
  267. package/assets/esri/core/workers/chunks/6c4def0faaef861a09c9.js +0 -1
  268. package/assets/esri/core/workers/chunks/7285a37cd5359aa4bac5.js +0 -1
  269. package/assets/esri/core/workers/chunks/753d1ff177ecee8e2377.js +0 -1
  270. package/assets/esri/core/workers/chunks/8a8e94b5d7d153361b0b.js +0 -1
  271. package/assets/esri/core/workers/chunks/923c45ebcf45d9ce8ae0.js +0 -1
  272. package/assets/esri/core/workers/chunks/9af36ee6a0df224859bc.js +0 -1
  273. package/assets/esri/core/workers/chunks/a7ce5b958dfeb240c4a5.js +0 -1
  274. package/assets/esri/core/workers/chunks/aed479c14d93955f4798.js +0 -1
  275. package/assets/esri/core/workers/chunks/be52c319a0a81ce1ba36.js +0 -1
  276. package/assets/esri/core/workers/chunks/c0ec87800faf99cbd8bd.js +0 -1
  277. package/assets/esri/core/workers/chunks/ca5a4f62b09cc8579dc0.js +0 -1
  278. package/assets/esri/core/workers/chunks/d090baaa974e1e83fa44.js +0 -1
  279. package/assets/esri/core/workers/chunks/e9f8325a4cf89ae816cc.js +0 -1
  280. package/assets/esri/core/workers/chunks/ed7d4e8725aaa0ca4589.js +0 -1
  281. package/assets/esri/core/workers/chunks/f4572ad25712d204f258.js +0 -1
  282. package/layers/geospatialPDF/GeospatialPDFParserUtils.js +0 -2
  283. package/layers/geospatialPDF/Projection.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[528],{11006(e,t,n){function r(e,t,n,r,s){i(e,t,n||0,r||e.length-1,s||a)}function i(e,t,n,r,a){for(;r>n;){if(r-n>600){var o=r-n+1,l=t-n+1,u=Math.log(o),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(o-c)/o)*(l-o/2<0?-1:1);i(e,t,Math.max(n,Math.floor(t-l*c/o+h)),Math.min(r,Math.floor(t+(o-l)*c/o+h)),a)}var p=e[t],d=n,y=r;for(s(e,n,t),a(e[r],p)>0&&s(e,n,r);d<y;){for(s(e,d,y),d++,y--;a(e[d],p)<0;)d++;for(;a(e[y],p)>0;)y--}0===a(e[n],p)?s(e,n,y):s(e,++y,r),y<=t&&(n=y+1),t<=y&&(r=y-1)}}function s(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function a(e,t){return e<t?-1:e>t?1:0}n.d(t,{q:()=>r})},40876(e,t,n){n.d(t,{Eq:()=>d,G1:()=>m,Q6:()=>x,TS:()=>s,V6:()=>i,Vm:()=>y,ay:()=>l,c1:()=>g,c4:()=>a,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>w});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!r[e]||!!r[e.toLowerCase()]}function s(e){return r[e]??r[e.toLowerCase()]}function a(e){return[...s(e)]}function o(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n,r=1){const i=(e%360+360)%360/360,s=n<=.5?n*(t+1):n+t-n*t,a=2*n-s;return[Math.round(255*o(a,s,i+1/3)),Math.round(255*o(a,s,i)),Math.round(255*o(a,s,i-1/3)),r]}function u(e){const t=e.length>5,n=t?8:4,r=(1<<n)-1,i=t?1:17,s=t?9===e.length:5===e.length;let a=Number("0x"+e.slice(1));if(isNaN(a))return null;const o=[0,0,0,1];let l;return s&&(l=a&r,a>>=n,o[3]=i*l/255),l=a&r,a>>=n,o[2]=i*l,l=a&r,a>>=n,o[1]=i*l,l=a&r,a>>=n,o[0]=i*l,o}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,r+16*r,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),p(t)}return p(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function p(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?m(e[3]):1,e}function d(e){let t=i(e)?s(e):null;return t??=h(e),t??=c(e),t}function y(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function m(e){return f(e,0,1)}function g(e){return Math.round(f(e,0,255))}function f(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const v=1/2.2;function x(e){return e**2.2}function w(e){return e**v}n.d(t,["iw",0,v])},60999(e,t,n){n.d(t,{DZ:()=>y,Ke:()=>d,QA:()=>m,Tj:()=>c,UT:()=>g,aD:()=>v,jJ:()=>u});var r=n(32198),i=n(69622),s=n(97768),a=n(17676),o=n(10107),l=n(64108);function u(e,t,n){return(0,a.Lx)(e.map((e,r)=>t.apply(n,[e,r])))}async function c(e,t,n){return(await(0,a.Lx)(e.map((e,r)=>t.apply(n,[e,r])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function p(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return p(e)}}async function y(e){try{return h(await e)}catch(e){return(0,a.QP)(e),p(e)}}function m(e){if(!0===e.ok)return e.value;throw e.error}function g(e,t){return new f(e,t)}let f=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=p(e),this._cleanup()}),this._abortHandle=(0,a.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,o.MZ)()],f.prototype,"value",null),(0,r.Cg)([(0,o.MZ)()],f.prototype,"error",null),(0,r.Cg)([(0,o.MZ)()],f.prototype,"finished",null),(0,r.Cg)([(0,o.MZ)()],f.prototype,"promise",void 0),(0,r.Cg)([(0,o.MZ)()],f.prototype,"_result",void 0),f=(0,r.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],f);class v{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}}},62885(e,t,n){n.d(t,{H:()=>s,V:()=>i});var r=n(7762);function i(e,t,n=r.A){return t||(t=new n),t===e||t.destroyed||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function s(e){return e}},21287(e,t,n){n.d(t,{M5:()=>h,eV:()=>c});var r=n(56507),i=n(49186),s=n(17676),a=n(84952),o=n(26306);let l=null,u=!0;function c(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,n)}catch(e){u=!1}const i=function(e,t,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(e,t)}(t,n,r);return i.data.set(e,0),i}async function h(e,t){const{arrayBuffer:l,mediaType:u}=await async function(e,t){const n=(0,a.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,o.M)(n.data),mediaType:n.mediaType};const i=await(0,r.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:e,parseGif:r}=await n.e(820).then(()=>n(10820));if(e(l))return r(l,t)}if(c){const{isAnimatedPNG:e,parseApng:r}=await n.e(2390).then(()=>n(22390));if(e(l))return r(l,t)}return async function(e,t){const n=window.URL.createObjectURL(e);try{const{data:e}=await(0,r.A)(n,{...t,responseType:"image"});return e}catch(e){if(!(0,s.zf)(e))throw new i.A("invalid-image",`Could not fetch requested image at ${n}`);throw e}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),t)}},35522(e,t,n){n.d(t,{$A:()=>I,Bw:()=>s,C:()=>a,Cc:()=>S,DI:()=>M,Io:()=>v,Ln:()=>f,Om:()=>b,Qr:()=>h,Re:()=>u,S8:()=>L,T9:()=>m,WQ:()=>l,Z0:()=>A,_S:()=>d,aI:()=>B,ei:()=>C,fw:()=>P,gL:()=>T,hG:()=>x,hZ:()=>o,hs:()=>g,jk:()=>y,lw:()=>c,m3:()=>w,oW:()=>G,t2:()=>E,tn:()=>p,ze:()=>_});var r=n(51850),i=n(34304);function s(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function p(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function y(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function m(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function f(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function x(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function w(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function _(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function L(e,t=e){const n=t[0],r=t[1],i=t[2];let s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function I(e,t,n){const r=t[0],i=t[1],s=t[2],a=n[0],o=n[1],l=n[2];return e[0]=i*l-s*o,e[1]=s*a-r*l,e[2]=r*o-i*a,e}function S(e,t,n,r){const i=t[0],s=t[1],a=t[2];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=a+r*(n[2]-a),e}function A(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12],e[1]=n[1]*r+n[5]*i+n[9]*s+n[13],e[2]=n[2]*r+n[6]*i+n[10]*s+n[14],e}function C(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=r*n[0]+i*n[3]+s*n[6],e[1]=r*n[1]+i*n[4]+s*n[7],e[2]=r*n[2]+i*n[5]+s*n[8],e}function T(e,t,n){return P(e,t,n[0],n[1],n[2],n[3])}function P(e,t,n,r,i,s){const a=t[0],o=t[1],l=t[2],u=r*l-i*o,c=i*a-n*l,h=n*o-r*a,p=r*h-i*c,d=i*u-n*h,y=n*c-r*u,m=2*s;return e[0]=a+u*m+2*p,e[1]=o+c*m+2*d,e[2]=l+h*m+2*y,e}const R=(0,r.vt)(),O=(0,r.vt)();function E(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function B(e,t){if(e===t)return!0;const n=e[0],r=e[1],s=e[2],a=t[0],o=t[1],l=t[2],u=(0,i.FD)();return Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function G(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],s=n[2]-t[2];let a=r*r+i*i+s*s;return a>0?(a=1/Math.sqrt(a),e[0]=r*a,e[1]=i*a,e[2]=s*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const k=u,Z=c,U=h,W=v,V=x,j=s,Y=w;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(e,t){L(R,e),L(O,t);const n=b(R,O);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,i,s){const a=1-s,o=a*a,l=s*s,u=o*a,c=3*s*o,h=3*l*a,p=l*s;return e[0]=t[0]*u+n[0]*c+r[0]*h+i[0]*p,e[1]=t[1]*u+n[1]*c+r[1]*h+i[1]*p,e[2]=t[2]*u+n[2]*c+r[2]*h+i[2]*p,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:a,cross:I,crossAndNormalize:function(e,t,n){const r=t[0],i=t[1],s=t[2],a=n[0],o=n[1],l=n[2],u=i*l-s*o,c=s*a-r*l,h=r*o-i*a,p=Math.sqrt(u*u+c*c+h*h);return e[0]=u/p,e[1]=c/p,e[2]=h/p,e},direction:G,dist:W,distance:v,div:U,divide:h,dot:b,equals:B,exactEquals:E,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,i,s){const a=s*s,o=a*(2*s-3)+1,l=a*(s-2)+s,u=a*(s-1),c=a*(3-2*s);return e[0]=t[0]*o+n[0]*l+r[0]*u+i[0]*c,e[1]=t[1]*o+n[1]*l+r[1]*u+i[1]*c,e[2]=t[2]*o+n[2]*l+r[2]*u+i[2]*c,e},inverse:M,len:j,length:s,lerp:S,max:m,min:y,mul:Z,multiply:c,negate:_,normalize:L,random:function(e,t=1){const n=i.Ov,r=2*n()*Math.PI,s=2*n()-1,a=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(r)*a,e[1]=Math.sin(r)*a,e[2]=s*t,e},rotateX:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:f,scaleTo:function(e,t){return g(e,e,t/j(e))},set:o,sign:d,sqrDist:V,sqrLen:Y,squaredDistance:x,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:k,subtract:u,transformMat3:C,transformMat4:A,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:T,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),n.d(t,["Il",0,j,"jb",0,k,"lo",0,V,"uE",0,Y])},75503(e,t,n){n.d(t,{wq:()=>o});var r=n(4576),i=n(21818),s=(n(44208),n(15142)),a=n(11006);class o{constructor(e=9,t){this._compareMinX=p,this._compareMinY=d,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),_.prune(),M.prune(),L.prune(),b.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const r=this._toBBox;if(x(e,n))for(_.clear();n;){for(let i=0,s=n.children.length;i<s;i++){const s=n.children[i],a=n.leaf?r(s):s;x(e,a)&&(n.leaf?t(s):v(e,a)?l(s,t):_.push(s))}n=_.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!x(e,t))return!1;for(_.clear();t;){for(let r=0,i=t.children.length;r<i;r++){const i=t.children[r],s=t.leaf?n(i):i;if(x(e,s)){if(t.leaf||v(e,s))return!0;_.push(i)}}t=_.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,n=this._data,s=null,a=0,o=!1;const l=this._toBBox(e);for(L.clear(),b.clear();n||L.length>0;){if(n||(n=L.pop(),s=L.data[L.length-1],a=b.pop()??0,o=!0),n.leaf&&(t=(0,r.qh)(n.children,(0,i.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),L.push(n),this._condense(L),this;o||n.leaf||!v(n,l)?s?(a++,n=s.children[a],o=!1):n=null:(L.push(n),b.push(a),a=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,r){const i=n-t+1;let s=this._maxEntries;if(i<=s){const r=new A(e.slice(t,n+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(s)),s=Math.ceil(i/s**(r-1)));const a=new C([]);a.height=r;const o=Math.ceil(i/s),l=o*Math.ceil(Math.sqrt(s));w(e,t,n,l,this._compareMinX);for(let i=t;i<=n;i+=l){const t=Math.min(i+l-1,n);w(e,i,t,o,this._compareMinY);for(let n=i;n<=t;n+=o){const i=Math.min(n+o-1,t);a.children.push(this._build(e,n,i,r-1))}}return u(a,this._toBBox),a}_insert(e,t,n){const r=this._toBBox,i=n?e:r(e);L.clear();const s=function(e,t,n,r){for(;r.push(t),!0!==t.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let s=0,a=t.children.length;s<a;s++){const a=t.children[s],o=y(a),l=g(e,a)-o;l<i?(i=l,r=o<r?o:r,n=a):l===i&&o<r&&(r=o,n=a)}t=n||t.children[0]}return t}(i,this._data,t,L);for(s.children.push(e),h(s,i);t>=0&&L.data[t].children.length>this._maxEntries;)this._split(L,t),t--;!function(e,t,n){for(let r=n;r>=0;r--)h(t.data[r],e)}(i,L,t)}_split(e,t){const n=e.data[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const s=this._chooseSplitIndex(n,i,r);if(!s)return;const a=n.children.splice(s,n.children.length-s),o=n.leaf?new A(a):new C(a);o.height=n.height,u(n,this._toBBox),u(o,this._toBBox),t?e.data[t-1].children.push(o):this._splitRoot(n,o)}_splitRoot(e,t){this._data=new C([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let r,i,s;r=i=1/0;for(let a=t;a<=n-t;a++){const t=c(e,0,a,this._toBBox),o=c(e,a,n,this._toBBox),l=f(t,o),u=y(t)+y(o);l<r?(r=l,s=a,i=u<i?u:i):l===r&&u<i&&(i=u,s=a)}return s}_chooseSplitAxis(e,t,n){const r=e.leaf?this._compareMinX:p,i=e.leaf?this._compareMinY:d;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)}_allDistMargin(e,t,n,r){e.children.sort(r);const i=this._toBBox,s=c(e,0,t,i),a=c(e,n-t,n,i);let o=m(s)+m(a);for(let r=t;r<n-t;r++){const t=e.children[r];h(s,e.leaf?i(t):t),o+=m(s)}for(let r=n-t-1;r>=t;r--){const t=e.children[r];h(a,e.leaf?i(t):t),o+=m(a)}return o}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const i=e.data[t-1],s=i.children;s.splice((0,r.qh)(s,n,s.length,i.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(M.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,i.z)(e));else M.pushArray(n.children);n=M.pop()??null}}function u(e,t){c(e,0,e.children.length,t,e)}function c(e,t,n,r,i){i||(i=new A([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let s,a=t;a<n;a++)s=e.children[a],h(i,e.leaf?r(s):s);return i}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function p(e,t){return e.minX-t.minX}function d(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function g(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function f(e,t){const n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,s-r)}function v(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function x(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function w(e,t,n,r,i){const s=[t,n];for(;s.length;){const t=s.pop(),n=s.pop();if(t-n<=r)continue;const o=n+Math.ceil((t-n)/r/2)*r;(0,a.q)(e,o,n,t,i),s.push(n,o,o,t)}}const _=new s.A,M=new s.A,L=new s.A,b=new s.A({deallocator:void 0});class I{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends I{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class A extends S{constructor(e){super(),this.children=e,this.leaf=!0}}class C extends S{constructor(e){super(),this.children=e,this.leaf=!1}}},16494(e,t,n){var r=n(75620);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),s=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],a=new r.I({whiteList:i,onTagAttr:(e,t,n)=>{const r=`${t}="${n}"`;if(s.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),o=new r.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);n.d(t,["Nd",0,o,"W5",0,a])},90629(e,t,n){n.d(t,{Lz:()=>i,PN:()=>s,cr:()=>a,gs:()=>l,r_:()=>u,tc:()=>o}),n(39829);const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function a(e){if("string"==typeof e){const t=e.match(r);if(t){const n=Number(t[1]),r=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),a="px"===r?s(n):n;return i?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function u(e=0,t=0,n=0){return[e,t,n]}},13069(e,t,n){n.d(t,{AG:()=>o,lk:()=>i,vD:()=>a,yS:()=>s});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const 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 s(){return`{${i().toUpperCase()}}`}function a(){return`{${i()}}`}function o(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},48526(e,t,n){n.d(t,{A:()=>g});var r,i=n(32198),s=n(4576),a=n(4718),o=n(91429),l=n(5443),u=n(91075),c=n(86738),h=n(16930),p=n(90634),d=n(47610),y=n(56993),m=n(43937);let g=r=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=h.A.WGS84,{...e,hasM:n,hasZ:r,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,p.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:i}=this;return new r({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;return null!=t==(null!=n)&&!(null!=t&&null!=n&&!t.equals(n))&&(0,s.aI)(this.points,e.points,d.v6)}addPoint(e){return(0,y.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;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=t[2],r=3),this.hasM&&(n.m=t[r]),new c.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new c.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,y.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],g.prototype,"writePoints",null),g=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>y});var r,i=n(32198),s=n(4718),a=n(91429),o=n(5443),l=n(91075),u=n(86738),c=n(16930),h=n(90634),p=n(56993),d=n(43937);let y=r=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...e,hasM:n,hasZ:r,paths:t,spatialReference:i}}(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(){const e=(0,h.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,n=e.length;t<n;t++)r[t]=e[t].toArray();t[n]=r}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;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;const n=this.paths[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new u.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new u.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new u.A(n[0],n[1],n[2],n[3],this.spatialReference):new u.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,r=t.map(e=>new u.A(e,n));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(n&&(t<0||t>r.length))return!1;if(!n&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],y.prototype,"curvePaths",void 0),(0,i.Cg)([(0,d.K)("curvePaths")],y.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],y.prototype,"paths",void 0),(0,i.Cg)([(0,d.K)("paths")],y.prototype,"writePaths",null),y=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Polyline")],y),y.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function a(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(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":a(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>o,Pv:()=>c,Rg:()=>a,U9:()=>i,W0:()=>h,ZC:()=>r,fT:()=>s,uW:()=>l})},80754(e,t,n){n.d(t,{kS:()=>u,kd:()=>l});var r=n(82799),i=n(16930),s=n(60408),a=n(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,a.Ed)(e))for(const n of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of n){if((0,a.aO)(e)){const[n,r]=e.c;n[0]+=t,r[0]+=t;continue}if((0,a.FG)(e)){const[n,r]=e.a;n[0]+=t,r[0]+=t;continue}if((0,a.n1)(e)){const[n,r,i]=e.b;n[0]+=t,r[0]+=t,i[0]+=t;continue}e[0]+=t}for(const n of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(const e of n)e[0]+=t;return e}n.d(t,["j7",0,o])},89056(e,t,n){n.d(t,{b3:()=>h,jZ:()=>c});var r=n(12195),i=n(19419),s=n(537),a=n(95108),o=n(60408),l=n(80754),u=n(21325);function c(e){return p(e,!0)}function h(e){return p(e,!1)}function p(e,t){if(null==e)return null;const n=e.spatialReference,i=(0,u.Vp)(n),a=(0,r.W)(e)?e.toJSON():e;if(!i)return a;const c=(0,u.K8)(n)?102100:4326,h=l.j7[c].maxX,p=l.j7[c].minX;if((0,o.fT)(a))return y(a,h,p);if((0,o.U9)(a))return a.points=a.points.map(e=>y(e,h,p)),a;if((0,o.ZC)(a))return d(a,i);if((0,o.Bi)(a)||(0,o.Rg)(a)){const e=(0,s.Rg)(w,a),n={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},r=(0,l.kd)(n.xmin,p)*(2*h),i=0===r?a:(0,l.kS)(a,r);return n.xmin+=r,n.xmax+=r,n.xmax>h?v(i,h,t):n.xmin<p?v(i,p,t):i}return a}function d(e,t){if(!t)return e;const n=function(e,t){const n=[],{ymin:r,ymax:i,xmin:s,xmax:a}=e,o=e.xmax-e.xmin,[l,u]=t.valid,{x:c,frameId:h}=m(e.xmin,t),{x:p,frameId:d}=m(e.xmax,t),y=c===p&&o>0;if(o>2*u){const e={xmin:s<a?c:p,ymin:r,xmax:u,ymax:i},t={xmin:l,ymin:r,xmax:s<a?p:c,ymax:i},o={xmin:0,ymin:r,xmax:u,ymax:i},y={xmin:l,ymin:r,xmax:0,ymax:i},m=[],f=[];g(e,o)&&m.push(h),g(e,y)&&f.push(h),g(t,o)&&m.push(d),g(t,y)&&f.push(d);for(let e=h+1;e<d;e++)m.push(e),f.push(e);n.push(new x(e,[h]),new x(t,[d]),new x(o,m),new x(y,f))}else c>p||y?n.push(new x({xmin:c,ymin:r,xmax:u,ymax:i},[h]),new x({xmin:l,ymin:r,xmax:p,ymax:i},[d])):n.push(new x({xmin:c,ymin:r,xmax:p,ymax:i},[h]));return n}(e,t).map(e=>e.extent);return n.length<2?n[0]||e:n.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:n.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function y(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,l.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,l.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,l.kd)(r,t);e.x+=n*(-2*t)}else if(r<n){const t=(0,l.kd)(r,n);e.x+=t*(-2*n)}}return e}function m(e,t){const[n,r]=t.valid,i=2*r;let s,a=0;return e>r?(s=Math.ceil(Math.abs(e-r)/i),e-=s*i,a=s):e<n&&(s=Math.ceil(Math.abs(e-n)/i),e+=s*i,a=-s),{x:e,frameId:a}}function g(e,t){const{xmin:n,ymin:r,xmax:i,ymax:s}=t;return f(e,n,r)&&f(e,n,s)&&f(e,i,s)&&f(e,i,r)}function f(e,t,n){return t>=e.xmin&&t<=e.xmax&&n>=e.ymin&&n<=e.ymax}function v(e,t,n=!0){const r=!(0,o.Rg)(e);if(r&&(0,a.m3)(e),n)return(new _).cut(e,t);const i=r?e.rings:e.paths,s=r?4:2,l=i.length,u=-2*t;for(let e=0;e<l;e++){const t=i[e];if(t&&t.length>=s){const e=[];for(const[n,...r]of t)e.push([n+u,...r]);i.push(e)}}return r?e.rings=i:e.paths=i,e}class x{constructor(e,t){this.extent=e,this.frameIds=t}}const w=(0,i.vt)();class _{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let n;if(this._xCut=t,e.rings)this._closed=!0,n=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,n=e.paths,this._minPts=2}for(const e of n){if(!e||e.length<this._minPts)continue;let t=!0;for(const n of e)t?(this.moveTo(n),t=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const e of this._linesIn)e&&e.length>=this._minPts&&n.push(e);const r=-2*this._xCut;for(const e of this._linesOut)if(e&&e.length>=this._minPts){for(const t of e)t[0]+=r;n.push(e)}return this._closed?e.rings=n:e.paths=n,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e,this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){const t=this._side(e[0]);if(t*this._prevSide===-1){const n=this._intersect(this._prevPt,e);this._lineTo(n,0),this._prevSide=0,this._lineTo(e,t)}else this._lineTo(e,t);this._prevSide=t,this._prevPt=e}close(){const e=this._firstPt,t=this._prevPt;e[0]===t[0]&&e[1]===t[1]||this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t){this._closed?(this._lineIn.push(M(e,t<=0?e[0]:this._xCut)),this._lineOut.push(M(e,t>=0?e[0]:this._xCut))):(t<=0&&this._lineIn.push(e.slice()),t>=0&&this._lineOut.push(e.slice()))}_lineTo(e,t){this._closed?(L(this._lineIn,e,t<=0?e[0]:this._xCut),L(this._lineOut,e,t>=0?e[0]:this._xCut)):t<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(e.slice())):t>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(e.slice())):this._prevSide<0?(this._lineIn.push(e.slice()),this._lineOut.push(e.slice())):this._prevSide>0&&(this._lineOut.push(e.slice()),this._lineIn.push(e.slice()))}_checkClosingPt(e){const t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0]=e[t-2].slice(),e.pop())}_side(e){return e<this._xCut?-1:e>this._xCut?1:0}_intersect(e,t){const n=(this._xCut-e[0])/(t[0]-e[0]),r=[this._xCut,e[1]+n*(t[1]-e[1])],i=Math.min(e.length,t.length);for(let s=2;s<i;s++)r.push(e[s]+n*(t[s]-e[s]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function M(e,t){const n=e.slice();return n[0]=t,n}function L(e,t,n){const r=e.length;r>1&&e[r-1][0]===n&&e[r-2][0]===n?e[r-1]=M(t,n):e.push(M(t,n))}},99557(e,t,n){n.r(t),n.d(t,{default:()=>Te});var r=n(32198),i=n(7762),s=n(49186),a=n(53966),o=n(25728),l=n(17676),u=n(91429),c=n(16930),h=n(4146),p=n(63074),d=n(34287),y=n(8303),m=n(25036),g=n(48237),f=n(56507),v=n(21287),x=n(84952),w=n(13069),_=n(92474),M=n(64108);let L=0;const b=e=>{const t=e;let n=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:L++})}};return n=(0,r.Cg)([(0,M.$)("esri.core.NumericIdentifiable")],n),n};var I=n(90629),S=n(35666),A=n(5443),C=n(86738),T=n(21325),P=n(56560),R=n(69540),O=n(83529),E=n(29242),B=n(37585),G=n(48163),k=n(39829),Z=n(99917),U=n(33905);const W=(0,G.vt)();let V=class extends((0,U.L)(R.Pw)){constructor(e){super(e),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:e,topRight:t,bottomLeft:n,bottomRight:r}=this;if(null==e||null==t||null==n||null==r)return null;const i=e.spatialReference;return t=this.projectOrWarn(t,i),n=this.projectOrWarn(n,i),r=this.projectOrWarn(r,i),null==t||null==n||null==r?null:new k.A({rings:[[[n.x,n.y],[e.x,e.y],[t.x,t.y],[r.x,r.y],[n.x,n.y]]],spatialReference:i})}set coords(e){const{topLeft:t}=this;if(null==t)return;const n=t.spatialReference;if(null==(e=this.projectOrWarn(e,n)))return;const{rings:[[r,i,s,a]]}=e;this.bottomLeft=new C.A({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new C.A({x:i[0],y:i[1],spatialReference:n}),this.topRight=new C.A({x:s[0],y:s[1],spatialReference:n}),this.bottomRight=new C.A({x:a[0],y:a[1],spatialReference:n})}toSourceNormalized(e){const{topLeft:t,topRight:n,bottomRight:r,bottomLeft:i}=this;if(null==e||null==t||null==n||null==r||null==i)return null;const s=t.spatialReference;e=e.normalize();const a=(0,Z.projectOrLoad)(e,s).geometry;if(null==a)return null;(0,B.hZ)(W,a.x,a.y);const o=(0,O.O)((0,E.vt)(),[t.x,t.y,i.x,i.y,n.x,n.y,r.x,r.y],[0,0,0,1,1,0,1,1]);return(0,O.W)(W,W,o),(0,I.tc)(W[0],W[1])}};(0,r.Cg)([(0,u.MZ)({clonable:!1})],V.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)({type:C.A})],V.prototype,"bottomLeft",void 0),(0,r.Cg)([(0,u.MZ)({type:C.A})],V.prototype,"bottomRight",void 0),(0,r.Cg)([(0,u.MZ)({type:C.A})],V.prototype,"topLeft",void 0),(0,r.Cg)([(0,u.MZ)({type:C.A})],V.prototype,"topRight",void 0),V=(0,r.Cg)([(0,u.$K)("esri.layers.support.CornersGeoreference")],V);const j=V;var Y=n(34727),F=n(34304);let H=class extends((0,U.L)(R.Pw)){constructor(e){super(e),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:e,ymin:t,xmax:n,ymax:r,spatialReference:i}=this.extent;let s;if(this.rotation){const{x:i,y:a}=this.extent.center,o=D(i,a,this.rotation);s=[o(e,t),o(e,r),o(n,r),o(n,t)],s.push(s[0])}else s=[[e,t],[e,r],[n,r],[n,t],[e,t]];return new k.A({rings:[s],spatialReference:i})}set coords(e){if(null==e||null==this.extent)return;const t=this.extent.spatialReference;if(e=this.projectOrWarn(e,t),null==e?.extent)return;const{rings:[[n,r,i]],extent:{center:{x:s,y:a}}}=e,o=(0,Y.KJ)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=D(s,a,-o),[u,c]=l(n[0],n[1]),[h,p]=l(i[0],i[1]);this.extent=new A.A({xmin:u,ymin:c,xmax:h,ymax:p,spatialReference:t}),this.rotation=o}toSourceNormalized(e){const{extent:t,rotation:n}=this;if(null==e||null==t)return null;const{xmin:r,ymin:i,xmax:s,ymax:a,center:o,spatialReference:l}=t;e=e.normalize();const u=(0,Z.projectOrLoad)(e,l).geometry;if(null==u)return null;let c=u.x,h=u.y;return n&&([c,h]=D(o.x,o.y,-n)(c,h)),(0,I.tc)((0,Y.hs)(c,r,s,0,1),(0,Y.hs)(h,a,i,0,1))}};function D(e,t,n){const r=(0,F.DF)(n),i=Math.cos(r),s=Math.sin(r);return(n,r)=>[i*(n-e)+s*(r-t)+e,i*(r-t)-s*(n-e)+t]}(0,r.Cg)([(0,u.MZ)({clonable:!1})],H.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)({type:A.A})],H.prototype,"extent",void 0),(0,r.Cg)([(0,u.MZ)({type:Number})],H.prototype,"rotation",void 0),H=(0,r.Cg)([(0,u.$K)("esri.layers.support.ExtentAndRotationGeoreference")],H);const N=H;function q(e,t){const n=(0,S.aB)(t);return function(e){return"media"===e?.type}(e)&&!!e.portalItem&&null!=n&&n>3}function X(e,t,n){return{enabled:!q(n?.layer,n?.origin),ignoreOrigin:!0}}const K={json:{name:"url",type:String,write:{overridePolicy:X}}},z={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:X}}},$={types:{key:"type",base:null,typeMap:{"control-points":g.A,corners:j,"extent-and-rotation":N}},json:{types:{key:"type",base:null,typeMap:{"control-points":g.A}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};var J=n(59923),Q=n(36005),ee=n(43937);let te=class extends(b((0,o.M)(_.x_))){constructor(e){super(e),this.georeference=null,this.opacity=1}readGeoreference(e){return g.A.fromJSON(e)}writeGeoreference(e,t,n,r){const i=r?.resources?.pendingOperations,s=()=>{const i=function(e,t,n){if(!e||"control-points"===e.type)return e;const{coords:r}=e;if(5!==r?.rings[0]?.length)return null;const[i,s,a,o]=r.rings[0],{spatialReference:l}=r;return new g.A({controlPoints:[new P.A({mapPoint:new C.A({x:i[0],y:i[1],spatialReference:l}),sourcePoint:(0,I.tc)(0,n)}),new P.A({mapPoint:new C.A({x:s[0],y:s[1],spatialReference:l}),sourcePoint:(0,I.tc)(0,0)}),new P.A({mapPoint:new C.A({x:a[0],y:a[1],spatialReference:l}),sourcePoint:(0,I.tc)(t,0)}),new P.A({mapPoint:new C.A({x:o[0],y:o[1],spatialReference:l}),sourcePoint:(0,I.tc)(t,n)})],width:t,height:n})}(this.georeference,this.contentWidth,this.contentHeight);if(i){if("control-points"!==e.type&&a.A.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${e.type}' has been automatically converted.`),4!==i.controlPoints?.length)return void(0,J.qt)(r,"ControlPointsGeoreference.controlPoints","only 'control-points' georeference with 4 control points may be persisted.");t[n]=i.write({},r)}};if("control-points"!==e.type&&!this.loaded&&i)return t[n]={},void i.push(this.load().then(s));s()}get contentWidth(){return 0}get contentHeight(){return 0}toSource(e){const{georeference:t,contentWidth:n,contentHeight:r}=this;if(null==e||null==t||0===n||0===r)return null;const i=t.toSourceNormalized(e);return null==i?null:(i.x*=n,i.y*=r,i)}};(0,r.Cg)([(0,u.MZ)($)],te.prototype,"georeference",void 0),(0,r.Cg)([(0,Q.w)("georeference")],te.prototype,"readGeoreference",null),(0,r.Cg)([(0,ee.K)("georeference")],te.prototype,"writeGeoreference",null),(0,r.Cg)([(0,u.MZ)({json:{read:!1,write:!1}})],te.prototype,"opacity",void 0),te=(0,r.Cg)([(0,u.$K)("esri.layers.support.MediaElementBase")],te);var ne=n(85648);const re=Symbol("ImageElementInstance"),ie=Symbol("VideoElementInstance");function se(e){return null!=e&&"object"==typeof e&&re in e}function ae(e){return se(e)||function(e){return null!=e&&"object"==typeof e&&ie in e}(e)}var oe,le=n(97159);let ue=class extends te{static{oe=re}constructor(e){super(e),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[oe]=!0,this.image=null}load(){const e=this.image;if("string"==typeof e){const t=(0,v.M5)(e).then(e=>{this._set("content",e)});this.addResolvingPromise(t)}else if(e instanceof HTMLImageElement){const t=e.decode().then(()=>{this._set("content",e)});this.addResolvingPromise(t)}else e?this._set("content",e):this.addResolvingPromise(Promise.reject(new s.A("image-element:invalid-image-type","Invalid image type",{image:e})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(e,t,n){return(0,le.f)(t.url,n)}writeImage(e,t,n,r){if(null==e)return;const i=r?.portalItem,s=r?.resources;if(!i||!s)return void("string"==typeof e&&(t[n]=(0,le.t)(e,r)));const a=function(e){return"string"==typeof e&&!(0,x.DB)(e)&&!(0,x.w8)(e)}(e)?e:null;if(a){if(null==(0,le.i)(a))return void(t[n]=a);const e=(0,le.t)(a,{...r,verifyItemRelativeUrls:r?.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1);if(i&&e&&!(0,x.oP)(e))return s.toKeep.push({resource:i.resourceFromPath(e),compress:!1}),void(t[n]=e)}t[n]="<pending>",s.pendingOperations.push(async function(e){return"string"==typeof e?(0,x.DB)(e)?(0,x.N9)(e):(await(0,f.A)(e,{responseType:"blob"})).data:new Promise(t=>function(e){if(e instanceof HTMLCanvasElement)return e;const t=e instanceof HTMLImageElement?e.naturalWidth:e.width,n=e instanceof HTMLImageElement?e.naturalHeight:e.height,r=document.createElement("canvas"),i=r.getContext("2d");return r.width=t,r.height=n,e instanceof HTMLImageElement?i.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&i.putImageData(e,0,0),r}(e).toBlob(t))}(e).then(e=>{const r=function(e,t){const n=(0,w.lk)(),r=`${(0,x.fj)("media",n)}.${(0,ne.n)({type:"blob",blob:e})}`;return t.resourceFromPath(r)}(e,i);t[n]=r.itemRelativeUrl,s.toAdd.push({resource:r,content:{type:"blob",blob:e},compress:!1,finish:e=>{this.image=e.url}})}))}};(0,r.Cg)([(0,u.MZ)()],ue.prototype,"animationOptions",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],ue.prototype,"content",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],ue.prototype,"contentWidth",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],ue.prototype,"contentHeight",null),(0,r.Cg)([(0,u.MZ)(K)],ue.prototype,"image",void 0),(0,r.Cg)([(0,Q.w)("image",["url"])],ue.prototype,"readImage",null),(0,r.Cg)([(0,ee.K)("image")],ue.prototype,"writeImage",null),(0,r.Cg)([(0,u.MZ)(z)],ue.prototype,"type",void 0),ue=(0,r.Cg)([(0,u.$K)("esri.layers.support.ImageElement")],ue);var ce=n(62885),he=n(65529),pe=n(61893),de=n(36708),ye=n(19419),me=n(12176),ge=n(6518),fe=n(69622),ve=n(89056);let xe=class extends fe.A{constructor(e){super(e)}get bounds(){const e=this.coords;return null==e?.extent?null:(0,ye.VY)(e.extent)}get coords(){const e=this.element.georeference?.coords;return(0,Z.projectOrLoad)(e,this.spatialReference).geometry}get normalizedCoords(){return k.A.fromJSON((0,ve.jZ)(this.coords))}get normalizedBounds(){const e=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=e?(0,ye.VY)(e):null}};(0,r.Cg)([(0,u.MZ)()],xe.prototype,"spatialReference",void 0),(0,r.Cg)([(0,u.MZ)()],xe.prototype,"element",void 0),(0,r.Cg)([(0,u.MZ)()],xe.prototype,"bounds",null),(0,r.Cg)([(0,u.MZ)()],xe.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)()],xe.prototype,"normalizedCoords",null),(0,r.Cg)([(0,u.MZ)()],xe.prototype,"normalizedBounds",null),xe=(0,r.Cg)([(0,u.$K)("esri.layers.support.MediaElementView")],xe);var we,_e=n(16494),Me=n(38969);const Le=Symbol("canplay");let be=class extends te{static{we=ie}constructor(e){super(e),this.autoplay=!0,this.content=null,this.type="video",this[we]=!0}load(){const e=this.video;return"string"==typeof e?this.addResolvingPromise(this._preProcessVideoUrl(e).then(async e=>{const t=document.createElement("video");return t.src=_e.W5.sanitizeUrl((0,x.s2)(e)),t.crossOrigin="anonymous",t.autoplay=this.autoplay,t.muted=!0,t.loop=!0,t.playsInline=!0,this._loadVideo(t).then(()=>{this._set("content",t)})})):e instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(e).then(()=>{this._set("content",e)})):this.addResolvingPromise(Promise.reject(new s.A("video-element:invalid-video-type","Invalid video type",{video:e}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(e){if(!this.content)return;const t=(0,Y.qE)(e,0,this.content.duration);"fastSeek"in this.content?this.content.fastSeek(t):this.content.currentTime=t,this.content.play().then(()=>{this.content?.pause()}).catch(()=>{})}get duration(){return this.content?.duration}set video(e){"not-loaded"===this.loadStatus?this._set("video",e):a.A.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}writeVideo(e,t,n,r){if(!e)return void(r?.messages&&r.messages.push(new s.A("video-element:unsupported-video","video source is missing")));const i=function(e){return"string"==typeof e&&!(0,x.DB)(e)&&!(0,x.w8)(e)}(e)?e:null;if(!i)return void(r?.messages&&r.messages.push(new s.A("video-element:unsupported-video","video source must be an absolute url")));!(0,x.oP)(i)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(i);const a=(0,x.s2)(i);(0,le.i)(a)?r?.messages&&r.messages.push(new s.A("video-element:unsupported-video","video source cannot be an item resource")):t[n]=a}async _preProcessVideoUrl(e){if((0,x.zs)(e))return(0,x.yM)(e);try{return await(0,f.A)(e,{method:"head"}),e}catch{try{return(0,x.yM)(e,!0)}catch{return e}}}async _loadVideo(e){"anonymous"!==e.crossOrigin&&(e.crossOrigin="anonymous",(0,x.w8)(e.src)||(e.src=e.src));try{await(0,Me.i)(e,e=>this.addHandles(e,Le)),this.autoplay&&await e.play().catch(e=>{throw console.error(e),e})}finally{this.removeHandles(Le)}}};(0,r.Cg)([(0,u.MZ)()],be.prototype,"autoplay",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],be.prototype,"content",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],be.prototype,"contentWidth",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],be.prototype,"contentHeight",null),(0,r.Cg)([(0,u.MZ)({type:Number})],be.prototype,"currentTime",null),(0,r.Cg)([(0,u.MZ)({type:Number})],be.prototype,"duration",null),(0,r.Cg)([(0,u.MZ)(K)],be.prototype,"video",null),(0,r.Cg)([(0,ee.K)("video")],be.prototype,"writeVideo",null),(0,r.Cg)([(0,u.MZ)(z)],be.prototype,"type",void 0),be=(0,r.Cg)([(0,u.$K)("esri.layers.support.VideoElement")],be);const Ie={key:"type",defaultKeyValue:"image",base:te,typeMap:{image:ue,video:be}},Se=i.A.ofType(Ie);let Ae=class extends((0,_.WV)((0,pe.g)(he.nJ))){constructor(e){super(e),this._index=new ge.F,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=e=>{for(const t of e.removed){const e=this._elementViewsMap.get(t);this._elementViewsMap.delete(t),this._index.delete(e),this.removeHandles(e),e.destroy(),this.notifyChange("fullExtent")}const{spatialReference:t}=this;for(const n of e.added){if(this._elementViewsMap.get(n))continue;const e=new xe({spatialReference:t,element:n});this._elementViewsMap.set(n,e);const r=(0,de.wB)(()=>e.coords,()=>this._updateIndexForElement(e,!1));this._updateIndexForElement(e,!0),this.addHandles(r,e)}this._elementsIndexes.clear(),this.elements.forEach((e,t)=>this._elementsIndexes.set(e,t)),this.emit("refresh")},this.elements=new Se}async load(e){if((0,l.Te)(e),!this.spatialReference){const e=this.elements.find(e=>null!=e.georeference?.coords);this._set("spatialReference",e?e.georeference.coords.spatialReference:c.A.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}get elements(){return this._get("elements")}set elements(e){this._set("elements",(0,ce.V)(e,this._get("elements"),Se))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const e=this._index.fullBounds;return null==e?null:new A.A({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:this.spatialReference})}set spatialReference(e){"not-loaded"===this.loadStatus?this._set("spatialReference",e):a.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(e,t){await this.load(),await(0,Z.initializeProjection)(e.spatialReference,this.spatialReference,null,t);const n=(0,T.aI)(e.spatialReference,this.spatialReference)?e:(0,Z.project)(e,this.spatialReference);if(!n)return[];const r=n.normalize(),i=[];for(const e of r)this._index.forEachInBounds((0,ye.VY)(e),({normalizedCoords:t,element:n})=>{null!=t&&(0,me.fA)(e,t)&&i.push(n)});return i.sort((e,t)=>this._elementsIndexes.get(e)-this._elementsIndexes.get(t)),i}hasElement(e){return this.elements.includes(e)}_updateIndexForElement(e,t){const n=e.normalizedBounds,r=this._index.has(e),i=null!=n;this._index.delete(e),i&&this._index.set(e,n),this.notifyChange("fullExtent"),t||(r!==i?this.emit("refresh"):this.emit("change",{element:e.element}))}};(0,r.Cg)([(0,u.MZ)()],Ae.prototype,"elements",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Ae.prototype,"fullExtent",null),(0,r.Cg)([(0,u.MZ)()],Ae.prototype,"spatialReference",null),Ae=(0,r.Cg)([(0,u.$K)("esri.layers.support.LocalMediaElementSource")],Ae);let Ce=class extends((0,p.dM)((0,m.j)((0,d.q)((0,y.A)((0,o.M)(h.A)))))){constructor(e){super(e),this.effectiveSource=null,this.georeference=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this._debouncedSaveOperations=(0,l.sg)(async(e,t,r)=>{const{save:i,saveAs:s}=await n.e(3561).then(()=>n(63561));switch(e){case 0:return i(this,t);case 1:return s(this,r,t)}}),this.source=new Ae}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.loadFromPortal({supportedTypes:["Media Layer"]},e);let t=this.source;if(!t)throw new s.A("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer.");const n=this._getSourceOverride(t,this.georeference);n&&(this.setAtOrigin("source",n,"web-map"),this.setAtOrigin("source",n,"web-scene"),t=n);const r=ae(t)?new Ae({elements:new i.A([t])}):t;this._set("effectiveSource",r),this.spatialReference&&(r.spatialReference=this.spatialReference),await r.load(e),this.spatialReference=r.spatialReference}destroy(){this.effectiveSource?.destroy(),this.effectiveSource!==this.source&&this.source?.destroy()}readGeoreference(e,t){return e&&"itemId"in t&&t.itemId?e:void 0}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}get loaded(){return super.loaded}get source(){return this._get("source")}set source(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",e):a.A.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(e){return e?Array.isArray(e)?new Ae({elements:new i.A(e)}):e instanceof i.A?new Ae({elements:e}):e:null}readSource(e,t,n){if("itemId"in t&&t.itemId)return;const r=this._createSource(t);return r?.read(t,n),r}writeSource(e,t,n,r){if(e&&e instanceof Ae){const t=e.elements.length;if(1!==t)return void(r?.messages&&r.messages.push(new s.A("media-layer:unsupported-source",`local media element source can only be persisted if it contains exactly one ImageElement, but it has ${t}.`)));e=e.elements.at(0)}ae(e)?e.write(t,r):r?.messages&&(e?r.messages.push(new s.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):r.messages.push(new s.A("media-layer:unsupported-source","the media layer is missing a source")))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_createSource(e){if("mediaType"in e)switch(e.mediaType){case"image":return new ue;case"video":return new be}return null}_getSourceOverride(e,t){if(ae(e)&&3===this.originIdOf("source")&&t&&(5===this.originIdOf("georeference")||4===this.originIdOf("georeference"))){const n=e.toJSON(),r=this._createSource(n);return r.read({...n},{origin:"portal-item"}),r.read({georeference:t},{origin:"web-map"}),r.read({georeference:t},{origin:"web-scene"}),r}return null}};(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Ce.prototype,"effectiveSource",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],Ce.prototype,"georeference",void 0),(0,r.Cg)([(0,Q.w)("web-document","georeference")],Ce.prototype,"readGeoreference",null),(0,r.Cg)([(0,u.MZ)({type:String})],Ce.prototype,"copyright",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Ce.prototype,"fullExtent",null),(0,r.Cg)([(0,u.MZ)({type:["MediaLayer"]})],Ce.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,u.MZ)({type:["show","hide"]})],Ce.prototype,"listMode",void 0),(0,r.Cg)([(0,u.MZ)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,target:{url:{type:String},mediaType:{type:["image","video"]},georeference:{type:g.A}},overridePolicy(e,t,n){return{enabled:!0,allowNull:!1,ignoreOrigin:q(this,n?.origin)&&ae(e)&&!!e.georeference&&e.originIdOf("georeference")>3}}}}})],Ce.prototype,"source",null),(0,r.Cg)([(0,u.wg)("source")],Ce.prototype,"castSource",null),(0,r.Cg)([(0,Q.w)("source",["url"])],Ce.prototype,"readSource",null),(0,r.Cg)([(0,ee.K)("source")],Ce.prototype,"writeSource",null),(0,r.Cg)([(0,u.MZ)({type:c.A})],Ce.prototype,"spatialReference",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Ce.prototype,"type",void 0),Ce=(0,r.Cg)([(0,u.$K)("esri.layers.MediaLayer")],Ce);const Te=Ce},6518(e,t,n){n.d(t,{F:()=>o});var r=n(44208),i=n(75503),s=n(19419);const a={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.wq(9,(0,r.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,r)=>{e[t++]=r}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,s.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){a.minX=e[0],a.minY=e[1],a.maxX=e[2],a.maxY=e[3]})(t),e.search(a,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},34287(e,t,n){var r=n(32198),i=n(49186),s=n(84952),a=n(91429),o=n(78888),l=n(89317),u=n(45917),c=n(49422),h=n(10873),p=n(6345),d=n(79677),y=n(59923),m=n(36005),g=n(43937);n.d(t,["q",0,e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,t,n){return"Group Layer"===n?.portalItem?.type?void 0:e}writeListMode(e,t,n,r){(r&&"ground"===r.layerContainerType||e&&(0,c.R)(this,n,{},r))&&(t[n]=e)}writeOperationalLayerType(e,t,n){e&&(t[n]=e)}writeTitle(e,t){t.title=e??"Layer"}readVisibilityTimeExtent(e){return e?d.A.fromArray(e):null}writeVisibilityTimeExtent(e,t,n,r){e&&"tables"!==r.layerContainerType&&(e.isEmpty?r?.messages&&r.messages.push(new i.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):t[n]=e.toArray())}read(e,t){t&&(t.layer=this),(0,u.t)(this,e,t=>super.read(e,t),t)}write(e,t){if(!this.persistenceEnabled&&!t?.ignorePersistenceEnabled)return null;if(t?.origin&&!(0,p.Bu)(t,this.operationalLayerType,this.type))return(0,y.U4)(t,this),null;const n=super.write(e,{...t,layer:this}),r=!!t&&!!t.messages&&!!t.messages.filter(e=>e instanceof i.A&&"web-document-write:property-required"===e.name).length;return(0,s.w8)(n?.url)?(t?.messages?.push(new i.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&r?null:n}beforeSave(){}};return(0,r.Cg)([(0,a.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],n.prototype,"id",void 0),(0,r.Cg)([(0,m.w)("id",["id"])],n.prototype,"readId",null),(0,r.Cg)([(0,a.MZ)(h.C1)],n.prototype,"listMode",void 0),(0,r.Cg)([(0,g.K)("listMode")],n.prototype,"writeListMode",null),(0,r.Cg)([(0,a.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:l.K,isRequired:!0}}}}})],n.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,g.K)("operationalLayerType")],n.prototype,"writeOperationalLayerType",null),(0,r.Cg)([(0,a.MZ)(h.ke)],n.prototype,"opacity",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,readOnly:!1})],n.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],n.prototype,"title",void 0),(0,r.Cg)([(0,g.K)("title"),(0,g.K)(["web-scene"],"title")],n.prototype,"writeTitle",null),(0,r.Cg)([(0,a.MZ)({type:d.A,json:{origins:{"web-scene":{write:{layerContainerTypes:l.K}}}}})],n.prototype,"visibilityTimeExtent",void 0),(0,r.Cg)([(0,m.w)("visibilityTimeExtent")],n.prototype,"readVisibilityTimeExtent",null),(0,r.Cg)([(0,g.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[o.jz,o.Uv]]}})],n.prototype,"writeVisibilityTimeExtent",null),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:l.K}}})],n.prototype,"visible",void 0),n=(0,r.Cg)([(0,a.$K)("esri.layers.mixins.OperationalLayer")],n),n}])},8303(e,t,n){var r=n(32198),i=n(92602),s=n(70333),a=n(56507),o=n(60999),l=n(49186),u=n(36563),c=n(53966),h=n(97768),p=n(17676),d=n(84952),y=n(91429),m=n(77548),g=n(20655),f=n(80812),v=n(41318),x=n(10407),w=n(36005),_=n(43937);const M={credential:null,user:null};n.d(t,["A",0,e=>{const t=e;let L=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new f.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(()=>n(41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;const r=t?.signal?null:new AbortController;try{const{reload:i}=await n.e(1204).then(()=>n(41204));return r&&this.addHandles((0,u.rE)(r),"reloadFromPortal"),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:r.signal})}catch(e){throw(0,p.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{r&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!s.id?.findCredential(this.url),i=e===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let a,o;if(i)a=n.portal.url;else try{a=await(0,m.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!a||!(0,d.b8)(a,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await n.reload():(n=new f.default({id:e,portal:{url:a}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,r)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,x.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const n=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=s.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=g.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(r))return i.user;const l=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?v.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return n&&r&&!(0,d.ut)(r.restUrl,n.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,y.MZ)({type:f.default})],L.prototype,"portalItem",null),(0,r.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],L.prototype,"readPortalItem",null),(0,r.Cg)([(0,_.K)("web-document","portalItem",{itemId:{type:String}})],L.prototype,"writePortalItem",null),(0,r.Cg)([(0,y.MZ)({clonable:!1})],L.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],L.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],L.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],L.prototype,"userHasUpdateItemPrivileges",void 0),L=(0,r.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],L),L}])},6345(e,t,n){n.d(t,{Bu:()=>x,VH:()=>v});var r=n(44208);const i={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},s={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return(0,r.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},a={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},o={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},l={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},u={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},c={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CSV:"CSVLayer",CatalogLayer:"CatalogLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",Object3DTilesLayer:"UnsupportedLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},h={ArcGISFeatureLayer:"FeatureLayer"},p={...s,LinkChartLayer:"LinkChartLayer"},d=i,y=a,m={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",BuildingSceneLayer:"BuildingSceneLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",MediaLayer:"MediaLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",SubtypeGroupLayer:"SubtypeGroupLayer",WCS:"WCSLayer"},g=a;function f(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return o;case"basemap-ground-layers":return l;case"ground":return u;case"tables":return h;default:return c}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return d;case"tables":return y;default:return p}default:switch(e.layerContainerType){case"basemap-base-layers":return i;case"tables":return a;case"ground":case"basemap-ground-layers":return;default:return s}}}function v(e,t){if(!t)return"UnknownLayer";if("DefaultTileLayer"===t){let t="UnknownLayer";if("web-scene"===e.origin)switch(e.layerContainerType){case"operational-layers":case"basemap-base-layers":t="TileLayer";break;case"ground":t="ElevationLayer"}else switch(e.layerContainerType){case"basemap-base-layers":case"operational-layers":t="TileLayer"}return t}return f(e)?.[t]??"UnknownLayer"}function x(e,t,n){if(!e?.origin)return!1;switch(e.origin){case"web-map":case"link-chart":if("operational-layers"===e.layerContainerType&&"ArcGISDimensionLayer"===t&&"dimension-feature"!==n)return!1;break;case"web-scene":if("operational-layers"===e.layerContainerType)switch(t){case"ArcGISDimensionLayer":if("dimension"!==n)return!1;break;case"ArcGISTiledElevationServiceLayer":return!1}break;case"portal-item":if("ArcGISDimensionLayer"===t&&"dimension-feature"!==n)return!1}const r=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return g;default:return m}return f(e)}(e)?.[t];return null!=r&&"UnknownLayer"!==r&&"UnsupportedLayer"!==r}},38969(e,t,n){n.d(t,{i:()=>i});var r=n(37955);function i(e,t){return new Promise((n,i)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(t((0,r.Oo)(e,"canplay",n)),t((0,r.Oo)(e,"error",i)))})}},10407(e,t,n){n.d(t,{It:()=>d,LG:()=>a,OM:()=>u,Sm:()=>c,Y:()=>o,bK:()=>l,sQ:()=>h});var r=n(99917),i=n(16930),s=n(28735);function a(e,t){if(!o(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,p.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?a(e,t):u(e,t)}async function h(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const n=i.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function d(e){const{portal:t,isOrgItem:n,itemControl:r}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),a=!!n&&!!i?.includes("features:user:fullEdit");const o="update"===r||"admin"===r;return o?a=s=!0:a&&(s=!0),{features:{edit:s,fullEdit:a},content:{updateItem:o}}}n.d(t,["mm",0,p])},85648(e,t,n){n.d(t,{n:()=>i});var r=n(84952);function i(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,r.Zo)(e);return l[t]||a}(e.url)}(e)]||o}const s={},a="text/plain",o=s[a],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)s[l[e]]=e},78553(e,t,n){n.d(t,{D:()=>s,p:()=>i});var r=n(78888);function i(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6914],{25728(e,t,r){r.d(t,{M:()=>w});var i=r(32198),n=r(69622),s=r(76953),o=r(4718);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(8),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new a,r=this._originStores[0];r&&r.forEach((e,r)=>{t.set(r,(0,o.o8)(e),0)});for(let r=2;r<8;r++){const i=this._originStores[r];i&&i.forEach((i,n)=>{e&&e.has(n)||t.set(n,(0,o.o8)(i),r)})}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=7){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=7){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r?.get(e),n=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),n!==i}originOf(e){return this._propertyOriginMap.get(e)||0}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var l=r(35666),p=r(45917),u=r(88620),d=r(64108);const y=e=>{const t=e;let r=class extends t{constructor(...e){super(...e);const t=(0,u.oY)(this),r=t.store,i=new a;t.store=i,(0,s.k)(t,r,i)}read(e,t){(0,p.L)(this,e,t)}getAtOrigin(e,t){const r=c(this),i=(0,l.aB)(t);return r.get(e,i)}originOf(e){return(0,l.OL)(this.originIdOf(e))}originIdOf(e){return c(this).originOf(e)}revertToOrigin(e,t){const r=c(this),i=(0,l.aB)(t),n=(0,u.oY)(this);"*"===e&&r.keys(i).forEach(e=>this.revertToOrigin(e,t)),n.invalidate(e),r.revert(e,i),n.commit(e)}revertAllToOrigin(e){const t=c(this),r=(0,l.aB)(e);t.keys(r).forEach(t=>this.revertToOrigin(t,e))}};return r=(0,i.Cg)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],r),r};function c(e){return(0,u.oY)(e).store}y(n.A);var g=r(91429),m=r(16649),h=r(49422);const f=e=>{const t=e;let r=class extends t{constructor(...e){super(...e)}clear(e,t="user"){(0,u.oY)(this).clearOrigin(e,(0,l.aB)(t))}write(e,t){return(0,h.M)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,u.oY)(this).setAtOrigin(e,t,(0,l.aB)(r))}removeOrigin(e){const t=v(this),r=(0,l.aB)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),7)}updateOrigin(e,t){const r=v(this),i=(0,l.aB)(t),n=(0,m.Jt)(this,e);for(let t=i+1;t<8;++t)r.delete(e,t);r.set(e,n,i)}toJSON(e){return this.write({},e)}};return r=(0,i.Cg)([(0,g.$K)("esri.core.WriteableMultiOriginJSONMixin")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function v(e){return(0,u.oY)(e).store}const w=e=>{const t=f(y(e));let r=class extends t{};return r=(0,i.Cg)([(0,d.$)("esri.core.MultiOriginJSONSupport")],r),r};w(n.A)},89317(e,t,r){r.d(t,["K",0,["operational-layers","basemap-base-layers","basemap-ground-layers","ground"]])},96184(e,t,r){r.d(t,{A:()=>g});var i=r(32198),n=r(69540),s=r(25482),o=r(91429),a=r(73133),l=r(79677),p=r(10184),u=r(56400),d=r(36005),y=r(43937);function c(e,t){return p.A.fromJSON({value:e,unit:t})}let g=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?l.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end&&(t.timeExtent=e.toArray())}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],g.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:!0}})],g.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A,json:{write:!0}})],g.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,d.w)("fullTimeExtent",["timeExtent"])],g.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,y.K)("fullTimeExtent",{timeExtent:{type:[Number]}})],g.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{default:!1,write:!0}})],g.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:p.A,json:{write:!0}})],g.prototype,"interval",void 0),(0,i.Cg)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],g.prototype,"readInterval",null),(0,i.Cg)([(0,y.K)("interval",{timeInterval:{type:Number},timeIntervalUnits:{type:a.j.jsonValues}})],g.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:!0}})],g.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0,!1))],g.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],g.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],g.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],g.prototype,"stops",void 0),g=(0,i.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],g)},10873(e,t,r){r.d(t,{Qo:()=>v,U$:()=>_});var i=r(66552),n=r(89317),s=r(5443),o=r(16930),a=r(96184),l=r(97159),p=r(88625),u=r(43440),d=r(78553);const y={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:n.K}}},c={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},g={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:n.K}}},m={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:l.w}}},h={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:n.K}}},f={value:null,type:p.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:n.K}}};function v(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const w={write:{enabled:!0,layerContainerTypes:n.K},read:!0},b={type:Number,json:{origins:{"web-document":w,"portal-item":{write:{layerContainerTypes:n.K}}}}},O={...b,json:{...b.json,origins:{"web-document":{...w,write:{enabled:!0,layerContainerTypes:n.K,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition?.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,d.D)(t.layerDefinition.drawingInfo.transparency):void 0:(0,d.D)(t.drawingInfo.transparency)}}},C={type:s.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=s.A.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=o.A.fromJSON(t.spatialReference)),r}}}},read:!1}},x={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},j={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.minScale",write:{layerContainerTypes:n.K}}},I={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.maxScale",write:{layerContainerTypes:n.K}}},M={json:{write:{ignoreOrigin:!0,layerContainerTypes:n.K},origins:{"web-map":{read:!1,write:!1}}}},T={type:u.A,json:{name:"attributeTableInfo",write:!0}},E=new i.J({High:"high",Medium:"medium",Low:"low",None:"none"}),S={type:E.apiValues,json:{name:"layerDefinition.barrierWeight",default:"high",read:E.read,write:E.write,origins:{service:{read:!1}}}};function Z(e){return{name:"layerDefinition.timeInfo",read:!0,write:{enabled:!0,overridePolicy(t,r){return{enabled:!0,ignoreOrigin:!!e&&this.originIdOf(r)<3}}}}}function _(e){const t=e?.alwaysWriteNonItemOrigin,r=e?.webDocumentOrigin??"web-document",i={[r]:Z(t),"portal-item":Z(t)};return e?.disableServiceOrigin&&(i.service={read:!1,write:!1}),{type:a.A,json:{name:e?.name,origins:i}}}r.d(t,["C1",0,M,"Fm",0,C,"Ih",0,O,"M6",0,c,"OZ",0,m,"PY",0,y,"Yj",0,f,"es",0,S,"fV",0,h,"hG",0,I,"hn",0,j,"id",0,x,"kF",0,g,"ke",0,b,"zQ",0,T])},31756(e,t,r){var i=r(86211),n=r(79258);const s={unknown:1,inches:(0,i.oU)(1,"meters","inches"),feet:(0,i.oU)(1,"meters","feet"),"us-feet":(0,i.oU)(1,"meters","us-feet"),yards:(0,i.oU)(1,"meters","yards"),miles:(0,i.oU)(1,"meters","miles"),"nautical-miles":(0,i.oU)(1,"meters","nautical-miles"),millimeters:(0,i.oU)(1,"meters","millimeters"),centimeters:(0,i.oU)(1,"meters","centimeters"),decimeters:(0,i.oU)(1,"meters","decimeters"),meters:(0,i.oU)(1,"meters","meters"),kilometers:(0,i.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.vl)(1,"meters",n.$O.radius)};r.d(t,["j",0,s])},88625(e,t,r){r.d(t,{A:()=>v});var i,n=r(32198),s=r(69540),o=r(66552),a=r(25482),l=r(97768),p=r(91429),u=r(30524);let d=i=class extends a.o{constructor(e){super(e),this.expression=void 0,this.title=void 0}async collectRequiredFields(e,t){return(0,u.Dx)(e,t,null,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,n.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0}}})],d.prototype,"expression",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),d=i=(0,n.Cg)([(0,p.$K)("esri.symbols.support.FeatureExpressionInfo")],d);const y=d;var c=r(16271),g=r(36005),m=r(43937);const h=(0,o.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),f=new o.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let v=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e.expression?e:void 0:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,i){t[r]=e.write({},i),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):null!=e||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,l.CM)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,n.Cg)([(0,p.MZ)({type:y,json:{write:!0}})],v.prototype,"featureExpressionInfo",void 0),(0,n.Cg)([(0,g.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],v.prototype,"readFeatureExpressionInfo",null),(0,n.Cg)([(0,m.K)("featureExpressionInfo",{featureExpressionInfo:{type:y},"featureExpression.value":{type:[0]}})],v.prototype,"writeFeatureExpressionInfo",null),(0,n.Cg)([(0,p.MZ)({type:h.apiValues,nonNullable:!0,json:{type:h.jsonValues,read:h.read,write:{writer:h.write,isRequired:!0}}})],v.prototype,"mode",null),(0,n.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],v.prototype,"offset",void 0),(0,n.Cg)([(0,p.MZ)({type:c.KQ,json:{type:String,read:f.read,write:f.write}})],v.prototype,"unit",null),v=(0,n.Cg)([(0,p.$K)("esri.symbols.support.ElevationInfo")],v)},16271(e,t,r){r.d(t,{Ao:()=>s});var i=r(4576),n=r(31756);function s(e){return 1/(n.j[e]||1)}const o=function(){const e=Object.keys(n.j);return(0,i.TF)(e,"decimal-degrees"),e.sort(),e}();r.d(t,["KQ",0,o])},43440(e,t,r){r.d(t,{A:()=>T});var i=r(32198),n=r(25482),s=r(4718),o=r(91429),a=r(69540),l=r(10107),p=r(64108);let u=class extends n.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"type",void 0),u=(0,i.Cg)([(0,p.$)("esri.tables.elements.AttributeTableElement")],u);const d=u;let y=class extends((0,a.OU)(d)){constructor(e){super(e),this.displayType="auto",this.type="attachment"}clone(){return super.clone()}};(0,i.Cg)([(0,o.MZ)({type:["auto"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,i.Cg)([(0,o.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,o.$K)("esri.tables.elements.AttributeTableAttachmentElement")],y);const c=y;let g=class extends((0,a.OU)(d)){constructor(e){super(e),this.description=null,this.fieldName=null,this.label=null,this.type="field"}clone(){return super.clone()}};(0,i.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],g.prototype,"description",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],g.prototype,"fieldName",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],g.prototype,"label",void 0),(0,i.Cg)([(0,o.MZ)({type:["field"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],g.prototype,"type",void 0),g=(0,i.Cg)([(0,o.$K)("esri.tables.elements.AttributeTableFieldElement")],g);const m=g;var h=r(78888);let f=class extends((0,a.OU)(d)){constructor(e){super(e),this.relationshipId=null,this.type="relationship"}clone(){return super.clone()}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{type:h.jz,write:{enabled:!0,isRequired:!0}}})],f.prototype,"relationshipId",void 0),(0,i.Cg)([(0,o.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],f.prototype,"type",void 0),f=(0,i.Cg)([(0,o.$K)("esri.tables.elements.AttributeTableRelationshipElement")],f);const v=f,w={base:d,key:"type",typeMap:{attachment:c,field:m,relationship:v}};let b=class extends((0,a.OU)(d)){constructor(e){super(e),this.elements=null,this.type="group"}clone(){return super.clone()}};(0,i.Cg)([(0,o.MZ)({types:[w],json:{name:"attributeTableElements",write:!0}})],b.prototype,"elements",void 0),(0,i.Cg)([(0,o.MZ)({type:["group"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],b.prototype,"type",void 0),b=(0,i.Cg)([(0,o.$K)("esri.tables.elements.AttributeTableGroupElement")],b);const O=b;let C=class extends((0,a.OU)(n.o)){constructor(e){super(e),this.field=null,this.order=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],C.prototype,"field",void 0),(0,i.Cg)([(0,o.MZ)({type:["asc","desc"],json:{write:!0}})],C.prototype,"order",void 0),C=(0,i.Cg)([(0,o.$K)("esri.tables.support.FieldOrder")],C);const x=C;var j;const I=function(e){return{typesWithGroup:{base:d,key:"type",typeMap:{attachment:c,field:m,group:e,relationship:v}},typesWithoutGroup:w}}(O);let M=j=class extends n.o{constructor(e){super(e),this.elements=null,this.orderByFields=null}clone(){return new j({elements:(0,s.o8)(this.elements),orderByFields:(0,s.o8)(this.orderByFields)})}};(0,i.Cg)([(0,o.MZ)({types:[I.typesWithGroup],json:{name:"attributeTableElements",write:!0}})],M.prototype,"elements",void 0),(0,i.Cg)([(0,o.MZ)({type:[x],json:{write:!0}})],M.prototype,"orderByFields",void 0),M=j=(0,i.Cg)([(0,o.$K)("esri.tables.AttributeTableTemplate")],M);const T=M}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4934],{67996(e,t,n){n.d(t,{cZ:()=>k,XW:()=>O,fe:()=>L});var r=n(56507),i=n(49186),s=n(91869),o=(n(90708),n(92722)),a=n(16930);class l{constructor(){this.version="",this.queryResult=new u}}class u{constructor(){this.featureResult=new p}}class p{constructor(){this.objectIdFieldName="",this.uniqueIdField=new d,this.globalIdFieldName="",this.geohashFieldName="",this.geometryProperties=new c,this.geometryType=null,this.spatialReference=new a.A,this.exceededTransferLimit=!1,this.hasZ=!1,this.hasM=!1,this.transform=new h,this.fields=[],this.fieldNameToAttributeIndexMap={},this.values=[],this.features=[],this.geometryFields=[]}}class d{constructor(){this.name="",this.isSystemMaintained=!1}}class c{constructor(){this.shapeAreaFieldName="",this.shapeLengthFieldName="",this.units=""}}class h{constructor(){this.quantizeOriginPosition="upperLeft",this.scale=new y,this.translate=new f}}class y{constructor(){this.xScale=0,this.yScale=0,this.mScale=0,this.zScale=0}}class f{constructor(){this.xTranslate=0,this.yTranslate=0,this.mTranslate=0,this.zTranslate=0}}class m{constructor(){this.name="",this.fieldType="esriFieldTypeString",this.alias="",this.sqlType="sqlTypeVarchar",this.domain="",this.defaultValue=""}}class g{constructor(){this.attributes=[],this.compressedGeometry=new b,this.centroid=new b,this.aggregateGeometries=[]}}class b{constructor(){this.geometryType=null,this.lengths=[],this.coords=[]}}const w=["ELEMENTUID","TYPENAME"];var M=n(45724),I=n(93637),_=n(49403);const C={upperLeft:0,lowerLeft:1},T={sqlTypeBigInt:0,sqlTypeBinary:1,sqlTypeBit:2,sqlTypeChar:3,sqlTypeDate:4,sqlTypeDecimal:5,sqlTypeDouble:6,sqlTypeFloat:7,sqlTypeGeometry:8,sqlTypeGUID:9,sqlTypeInteger:10,sqlTypeLongNVarchar:11,sqlTypeLongVarbinary:12,sqlTypeLongVarchar:13,sqlTypeNChar:14,sqlTypeNVarChar:15,sqlTypeOther:16,sqlTypeReal:17,sqlTypeSmallInt:18,sqlTypeSqlXml:19,sqlTypeTime:20,sqlTypeTimestamp:21,sqlTypeTimestamp2:22,sqlTypeTinyInt:23,sqlTypeVarbinary:24,sqlTypeVarchar:25};function A(e){const t=new l;t.version=e.version;const n=e.get_query_result();if(0!==n.results_type.value)throw new Error("Got a non-feature collection type");const r=n.get_feature_result(),i=t.queryResult.featureResult;i.objectIdFieldName=r.objectid_field_name,i.exceededTransferLimit=r.exceeded_transfer_limit,i.hasM=r.has_m,i.hasZ=r.has_z,i.geometryType=(0,I.i7)(_.bV,r.geometry_type.value),i.globalIdFieldName=r.globalid_field_name,i.geohashFieldName=r.geohash_field_name;const s=i.uniqueIdField,o=r.unique_id_field;s.name=o.name,s.isSystemMaintained=o.isSystemMaintained;const a=i.geometryProperties,u=r.geometry_properties;a.shapeAreaFieldName=u.shapeAreaFieldName,a.shapeLengthFieldName=u.shapeLengthFieldName,a.units=u.units;const p=i.spatialReference,d=r.spatial_reference;p.wkid=d.wkid,p.latestWkid=d.latestWkid,p.vcsWkid=d.vcsWkid,p.latestVcsWkid=d.latestVcsWkid,p.wkt=d.wkt,i.transform=x(r.transform);const c=i.fields,h=i.fieldNameToAttributeIndexMap,y=r.fields,f=y.size();for(let e=0;e<f;e++){const t=y.get(e),n=v(t);c.push(n),h[n.name]=e,t.delete()}y.delete();const m=i.values,b=r.values_count();for(let e=0;e<b;e++)m.push(r.get_value_at(e));const M=i.features,C=r.features,T=C.size();if(T>0)for(const e of w)if(void 0===h[e])throw new Error(`Feature collection missing required attribute: ${e}`);for(let e=0;e<T;e++){const t=new g,n=C.get(e),r=t.attributes,i=n.attributes_count();for(let e=0;e<i;e++)r.push(n.get_attribute_at(e));const s=n.get_compressed_geometry();s&&(t.compressedGeometry=E(s),t.centroid=E(n.get_centroid()));const o=t.aggregateGeometries,a=n.aggregate_geometries,l=a.size();for(let e=0;e<l;e++){const t=a.get(e),n=E(t);o.push(n),t.delete()}a.delete(),M.push(t),n.delete()}C.delete();const A=i.geometryFields,k=r.geometry_fields,L=k.size();for(let e=0;e<L;e++){const t=k.get(e),n=S(t);A.push(n),t.delete()}return k.delete(),t}function E(e){const t=new b;t.geometryType=(0,I.i7)(_.bV,e.geometry_type.value);const n=[],r=[];for(let t=0;t<e.lengths.length;t++)n.push(e.lengths[t]);for(let t=0;t<e.coords.length;t++)r.push(e.coords[t]);return t.lengths=n,t.coords=r,t}function v(e){const t=new m;return t.name=e.name,t.alias=e.alias,t.fieldType=(0,I.i7)(_.r5,e.field_type.value),t.sqlType=(0,I.i7)(T,e.sql_type.value),t.domain=e.domain,t.defaultValue=e.default_value,t}function S(e){const t=v(e);return t.geometryType=(0,I.i7)(_.bV,e.geometry_type.value),t}function x(e){const t=new h;t.quantizeOriginPosition=(0,I.i7)(C,e.quantizeOriginPosition.value);const n=t.scale,r=e.scale;n.xScale=r.xScale,n.yScale=r.yScale,n.mScale=r.mScale,n.zScale=r.zScale;const i=t.translate,s=e.translate;return i.xTranslate=s.xTranslate,i.yTranslate=s.yTranslate,i.mTranslate=s.mTranslate,i.zTranslate=s.zTranslate,t}async function k(e,t,n){t??=!1;const o={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e,t){const n=await(0,r.A)(e,{responseType:"array-buffer",signal:t?.signal}),s=await n.data;return async function(e){const t=new((await(0,M.I)()).MapOfObjectIdentifierSetsDecoder),n=t.decode(new Uint8Array(e)),r=new Map;if(0!==n.error_code)throw new i.A("knowledge-graph:layer-support-utils",n.error_message);const s=t.get_map_of_identifier_sets(),o=s.keys,a=o.size();for(let e=0;e<a;e++){const t=o.get(e),n=s.query_identifier_set(t),a=[];if(1===n.id_array_type.value){const e=n.get_globalid_array(),t=e.count();for(let n=0;n<t;n++)a.push(e.get_globalid_at(n))}else if(3===n.id_array_type.value){const e=n.get_identifier_array(),t=e.count();for(let n=0;n<t;n++)a.push(e.get_identifier_at(n).toString())}else if(2===n.id_array_type.value){const e=n.get_string_array(),t=e.count();for(let n=0;n<t;n++)a.push(e.get_string_at(n))}else{if(0!==n.id_array_type.value)throw new i.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{const e=n.get_oid_array(),t=e.count();for(let n=0;n<t;n++)a.push(e.get_objectid_at(n).toString())}}r.set(t,a)}return t.delete(),r}(new Uint8Array(s))}(e,n).then(e=>{!function(e,t){for(const[n,r]of e){const e=(0,s.tE)(t.namedTypeDefinitions,n,()=>({useAllData:!1,members:new Map}));for(const t of r)e.members.has(t)||e.members.set(t,{id:t})}}(e,o)}),o}async function L(e){const t=await(0,M.I)(),n=new t.MapOfObjectIdentifierSets;!function(e,t,n){for(const[r,i]of n.namedTypeDefinitions){if(!i.members||i.useAllData)continue;const n=i.members.keys();let s=!1,o=!0;const a=new t.ObjectIdArray,l=new t.StringArray,u=new t.GlobalIdArray,p=new t.IdentifierArray,d=new t.ObjectIdentifierSet;for(const e of n)o&&(s=!isNaN(Number(e)),o=!1),s?a.add_objectid(Number(e)):(l.add_string(e),u.add_globalid(e)),p.add_identifier(e);d.set_oid_array(a),d.set_string_array(l),d.set_globalid_array(u),d.set_identifier_array(p),a.delete(),l.delete(),u.delete(),p.delete(),e.put_identifier_set(r,d),d.delete()}}(n,t,e);const r=new t.MapOfObjectIdentifierSetsEncoder;try{r.set_map_of_identifier_sets(n),r.encode();const e=r.get_encoding_result();if(0!==e.error.error_code)throw new i.A("knowledge-graph:layer-support-utils",e.error.error_message);const t=structuredClone(e.get_byte_buffer());return r.delete(),t}finally{n.delete()}}async function N(e,t){const n=await(0,r.A)(e,{responseType:"array-buffer",signal:t?.signal});return async function(e){const t=new((await(0,M.I)()).FeatureCollectionDecoder),n=t.decode(new Uint8Array(e));if(0!==n.error_code)throw new i.A("knowledge-graph:layer-support-utils",n.error_message);const r=A(t.get_feature_collection());return t.delete(),r}(await n.data)}function R(e,t){if(!e?.queryResult?.featureResult)return t;const{hasZ:n,hasM:r}=e.queryResult.featureResult,i=e.queryResult.featureResult.fieldNameToAttributeIndexMap;for(const a of e.queryResult.featureResult.features){const e=a.attributes[i.TYPENAME],l=(0,s.tE)(t.namedTypeDefinitions,e,()=>({useAllData:!1,members:new Map})),u=a.attributes[i.ELEMENTUID];if(a.compressedGeometry?.coords?.length>0){let e=a.compressedGeometry.lengths;"esriGeometryPoint"===a.compressedGeometry.geometryType&&(e=[]),l.members.set(u,{id:u,linkChartLocation:new o.A(e,a.compressedGeometry.coords,n,r)})}else l.members.set(u,{id:u})}return t}const O={fetchAndConvertSerializedLinkChart:(e,t)=>async function(e,t){const n=[],r={generateAllSublayers:!1,namedTypeDefinitions:new Map};return e.entitiesUrl&&n.push(N(e.entitiesUrl,t).then(e=>{R(e,r)})),e.relationshipsUrl&&n.push(N(e.relationshipsUrl,t).then(e=>{R(e,r)})),await Promise.all(n),r}(e,t)}},75503(e,t,n){n.d(t,{wq:()=>a});var r=n(4576),i=n(21818),s=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=h,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),I.prune(),_.prune(),C.prune(),T.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const r=this._toBBox;if(w(e,n))for(I.clear();n;){for(let i=0,s=n.children.length;i<s;i++){const s=n.children[i],o=n.leaf?r(s):s;w(e,o)&&(n.leaf?t(s):b(e,o)?l(s,t):I.push(s))}n=I.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!w(e,t))return!1;for(I.clear();t;){for(let r=0,i=t.children.length;r<i;r++){const i=t.children[r],s=t.leaf?n(i):i;if(w(e,s)){if(t.leaf||b(e,s))return!0;I.push(i)}}t=I.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new v([]),this}remove(e){if(!e)return this;let t,n=this._data,s=null,o=0,a=!1;const l=this._toBBox(e);for(C.clear(),T.clear();n||C.length>0;){if(n||(n=C.pop(),s=C.data[C.length-1],o=T.pop()??0,a=!0),n.leaf&&(t=(0,r.qh)(n.children,(0,i.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),C.push(n),this._condense(C),this;a||n.leaf||!b(n,l)?s?(o++,n=s.children[o],a=!1):n=null:(C.push(n),T.push(o),o=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,r){const i=n-t+1;let s=this._maxEntries;if(i<=s){const r=new v(e.slice(t,n+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(s)),s=Math.ceil(i/s**(r-1)));const o=new S([]);o.height=r;const a=Math.ceil(i/s),l=a*Math.ceil(Math.sqrt(s));M(e,t,n,l,this._compareMinX);for(let i=t;i<=n;i+=l){const t=Math.min(i+l-1,n);M(e,i,t,a,this._compareMinY);for(let n=i;n<=t;n+=a){const i=Math.min(n+a-1,t);o.children.push(this._build(e,n,i,r-1))}}return u(o,this._toBBox),o}_insert(e,t,n){const r=this._toBBox,i=n?e:r(e);C.clear();const s=function(e,t,n,r){for(;r.push(t),!0!==t.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let s=0,o=t.children.length;s<o;s++){const o=t.children[s],a=y(o),l=m(e,o)-a;l<i?(i=l,r=a<r?a:r,n=o):l===i&&a<r&&(r=a,n=o)}t=n||t.children[0]}return t}(i,this._data,t,C);for(s.children.push(e),d(s,i);t>=0&&C.data[t].children.length>this._maxEntries;)this._split(C,t),t--;!function(e,t,n){for(let r=n;r>=0;r--)d(t.data[r],e)}(i,C,t)}_split(e,t){const n=e.data[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const s=this._chooseSplitIndex(n,i,r);if(!s)return;const o=n.children.splice(s,n.children.length-s),a=n.leaf?new v(o):new S(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new S([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let r,i,s;r=i=1/0;for(let o=t;o<=n-t;o++){const t=p(e,0,o,this._toBBox),a=p(e,o,n,this._toBBox),l=g(t,a),u=y(t)+y(a);l<r?(r=l,s=o,i=u<i?u:i):l===r&&u<i&&(i=u,s=o)}return s}_chooseSplitAxis(e,t,n){const r=e.leaf?this._compareMinX:c,i=e.leaf?this._compareMinY:h;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)}_allDistMargin(e,t,n,r){e.children.sort(r);const i=this._toBBox,s=p(e,0,t,i),o=p(e,n-t,n,i);let a=f(s)+f(o);for(let r=t;r<n-t;r++){const t=e.children[r];d(s,e.leaf?i(t):t),a+=f(s)}for(let r=n-t-1;r>=t;r--){const t=e.children[r];d(o,e.leaf?i(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const i=e.data[t-1],s=i.children;s.splice((0,r.qh)(s,n,s.length,i.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(_.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,i.z)(e));else _.pushArray(n.children);n=_.pop()??null}}function u(e,t){p(e,0,e.children.length,t,e)}function p(e,t,n,r,i){i||(i=new v([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let s,o=t;o<n;o++)s=e.children[o],d(i,e.leaf?r(s):s);return i}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function h(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function m(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,s-r)}function b(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function M(e,t,n,r,i){const s=[t,n];for(;s.length;){const t=s.pop(),n=s.pop();if(t-n<=r)continue;const a=n+Math.ceil((t-n)/r/2)*r;(0,o.q)(e,a,n,t,i),s.push(n,a,a,t)}}const I=new s.A,_=new s.A,C=new s.A,T=new s.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class E extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class v extends E{constructor(e){super(),this.children=e,this.leaf=!0}}class S extends E{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>s,lM:()=>i});var r=n(34275);function i(e){if(!e)return 0;let t=u;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let n=p;for(let r=0;r<t;r++)n+=o(e[r]);return n}(e);let t=u;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?s(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+d:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return p+e.length*t}const u=32,p=16,d=145},6518(e,t,n){n.d(t,{F:()=>a});var r=n(44208),i=n(75503),s=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.wq(9,(0,r.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,r)=>{e[t++]=r}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,s.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,n){n.d(t,{A:()=>y});var r=n(4576),i=n(49186),s=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),p=n(6518),d=n(51441),c=n(37730);const h=(0,a.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new p.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,r,i]=this.fullBounds;return{xmin:t,ymin:n,xmax:r,ymax:i,spatialReference:(0,d.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(r.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(h,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let r;if(n?(e.displayId=n.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);r=(0,u.jQ)(null!=r?r:(0,l.vt)(),e.geometry),null!=r&&this._boundsStore.set(t,r),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:r,attributes:s}=e;for(const e in s)n.attributes[e]=s[e];return r&&(n.geometry=r,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),r)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,n){var r=n(43334);const i={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,n)=>new r.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};n.d(t,["T",0,i])},64714(e,t,n){n.d(t,{F0:()=>a,Vx:()=>p,e2:()=>c,f:()=>h});var r=n(44208),i=n(4718),s=n(99352),o=n(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let n="";t&&(n+=`this${d(t)} = null;`);for(const t in e)n+=`this${d(t)} = ${JSON.stringify(e[t])};`;const r=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new r}catch(n){return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function h(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},24137(e,t,n){n.d(t,{P:()=>_});var r=n(32198),i=n(69622),s=n(49186),o=n(53966),a=n(91869),l=n(17676),u=n(39516),p=n(91429),d=n(5443),c=n(39829),h=n(99917),y=n(21325),f=n(15375);const m=(e,t)=>{if("column-reference"===e.type)return e.column===t.systemOidFieldName?"ID(n)":`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&t.supportedSqlTypes.has(e.left.type)&&t.supportedSqlTypes.has(e.right.type)&&t.supportedSqlOperators.has(e.operator))return`${m(e.left,t)} ${e.operator} ${m(e.right,t)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let n="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)n+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return t.unsupportedOperationFound=!0,"";n+=`lower(n.${e.left.column})`}if(n+=" CONTAINS (","string"!==e.right.type)return t.unsupportedOperationFound=!0,"";{let t=e.right.value;t.startsWith("%")&&(t=t.slice(1)),t.endsWith("%")&&(t=t.slice(0,-1)),n+=`'${t.toLowerCase()}')`}return n}return t.unsupportedOperationFound=!0,""};var g=n(69860),b=n(99916),w=n(53902),M=n(42538),I=n(97552);let _=class extends i.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;const t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach(n=>{n.name&&(t.set(n.name,"entity"),this._processingCacheUpdatesLookup.set(n.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.entityTypeNames.add(n.name),n.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(n.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.knowledgeGraph.dataModel.relationshipTypes?.forEach(n=>{n.name&&(t.set(n.name,"relationship"),this._processingCacheUpdatesLookup.set(n.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.relationshipTypeNames.add(n.name),n.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(n.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.inclusionModeDefinition?.namedTypeDefinitions.forEach((n,r)=>{if("entity"===t.get(r))this.entityTypeNames.add(r);else{if("relationship"!==t.get(r))return o.A.getLogger(this).warn(`A named type, ${r}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(r);this.relationshipTypeNames.add(r)}const i=new Map;n.members?.forEach(e=>{(0,a.tE)(this.memberIdTypeLookup,e.id,()=>new Set).add(r)}),this.sublayerCaches.set(r,i)})}addToLayer(e){e.forEach(({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new s.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){const n=this.inclusionModeDefinition.namedTypeDefinitions.get(e);n.members||(n.members=new Map),n.members.set(t,{id:t}),(0,a.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}}else{const n=new Map;n.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:n}),(0,a.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}})}getById(e){return g.A.getInstance().readFromStoreById(e)}async getData(e,t,n,r){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return{features:[],cypherTranslationApplied:!1};let i;if(i=e||new I.A({where:"1=1",outFields:["*"]}),"link-chart"===n.type){const e=n,r=this._processingCacheUpdatesLookup.get(t.objectType.name??""),s=i.outFields;s&&1===s.length&&s[0]===f.dr&&"1=1"===i.where||await Promise.all(r??[]);const o=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],a=[];return o.forEach(n=>{if(this.relationshipTypeNames.has(t.objectType.name)){n.geometry=e.relationshipLinkChartDiagramLookup.get(n.attributes[t.objectIdField]);const r=this.memberIdTypeLookup.get(n.attributes[f.Cz]),i=this.memberIdTypeLookup.get(n.attributes[f.KQ]),s=this._isEndEntitySpatial(r,n,f.Cz),o=this._isEndEntitySpatial(i,n,f.KQ);n.attributes[f.BL]=Number(s&&o)}else{n.geometry=e.entityLinkChartDiagramLookup.get(n.attributes[t.objectIdField]);const r=this.geographicLookup.get(t.objectType.name);r&&n.attributes[r.name]?n.attributes[f.BL]=1:n.attributes[f.BL]=0}n.attributes[f.T1]=n.geometry,a.push(n)}),{features:a,cypherTranslationApplied:!1}}return this.retrieveDataFromService(i,t,n,r)}async getConnectedRecordIds(e,t,n){const r=[];let i="";const s=this._getNamedTypeIdMapFromNodeIds(e);if(t&&0!==t?.length){for(const e of t)i=i+e+"|";i=i.slice(0,-1)}const o={},a=[];for(const[e,n]of s){const r=`${e}_ids`;o[r]=n,t&&0!==t?.length?a.push(`MATCH (n:${e}) WHERE id(n) IN $${r} WITH n MATCH (n)-[r:${i}]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`):a.push(`MATCH (n:${e}) WHERE id(n) IN $${r} WITH n MATCH (n)-[r]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`)}if(!a.length)return r;const l=a.join(" UNION "),u=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:l,bindParameters:o}),{signal:n?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await u.read();if(e)break;for(let e=0;e<t.length;e++){const n=t[e];r.push({id:n[0],typeName:n[1]}),r.push({id:n[2],typeName:n[3]})}}return r}async getRelationshipsBetweenNodes(e,t,n){const r=this._getNamedTypeIdMapFromNodeIds(e);if(0===r.size)return[];const i={relationshipExclusionIds:t,possibleConnectionEntityIds:e},s=[];for(const[e,t]of r.entries()){const n=`${e}_ids`;i[n]=t,s.push(`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r]->(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}const o=s.join(" UNION "),a=[],l=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:o,bindParameters:i}),{signal:n?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await l.read();if(e)break;for(let e=0;e<t.length;e++){const n=t[e];a.push({id:n[0],typeName:n[1]})}}return a}async getRelationshipsFromNodes(e,t,n,r){const i=this._getNamedTypeIdMapFromNodeIds(e);if(0===i.size||0===t.length)return[];const s={relationshipExclusionIds:n,possibleConnectionEntityIds:t},o=[];for(const[e,t]of i.entries()){const n=`${e}_ids`;s[n]=t,o.push(`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r]-(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}const a=o.join(" UNION "),l=new Map,u=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new M.A({openCypherQuery:a,bindParameters:s}),{signal:r?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await u.read();if(e)break;for(let e=0;e<t.length;e++){const n=t[e];let r=l.get(n[1]);r||(r=new Set,l.set(n[1],r)),r.add(n[0])}}const p=[];for(const[e,t]of l)for(const n of t)p.push({id:n,typeName:e});return p}async refreshCacheContent(e,t,n,r=!0,i){const o=g.A.getInstance(),u=[],p=new Map,d=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&d.set(e.name,e)}),this.knowledgeGraph.dataModel.relationshipTypes?.forEach(e=>{e.name&&d.set(e.name,e)}),e||this.inclusionModeDefinition?e?e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e))p.has(t)?p.get(t)?.push(e):p.set(t,[e])}):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{e.useAllData?p.set(t,null):e.members&&e.members.forEach(e=>{p.has(t)&&null!==p.get(t)?p.get(t)?.push(e.id):p.set(t,[e.id])})}):(this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&p.set(e.name,null)}),this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&p.set(e.name,null)}));for(const[e,l]of p){const p=new Set(l),c=new Promise((u,c)=>{(async()=>{const u=new Set,c=[];let h,y="",m=!1;if(t||d.get(e)?.properties?.forEach(e=>{e.name&&u.add(e.name)}),n&&this.geographicLookup.has(e)){const t=this.geographicLookup.get(e)?.name;t&&u.add(t)}if(this.entityTypeNames.has(e))y=`MATCH (n:${e}) ${l?"WHERE id(n) IN $ids ":""}return ID(n)`,u.forEach(e=>{y+=`, n.${e}`,c.push(e)});else{if(!this.relationshipTypeNames.has(e))throw new s.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);m=!0,y=`MATCH ()-[n:${e}]->() ${l?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,u.forEach(e=>{y+=`, n.${e}`,c.push(e)})}h=new M.A(l?{openCypherQuery:y,bindParameters:{ids:l}}:{openCypherQuery:y});const g=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,h,{signal:i?.signal})).resultRowsStream.getReader();for(;;){const{done:t,value:n}=await g.read();if(t)break;const i=[];for(let e=0;e<n.length;e++){const t=n[e];let r=0,s=0;const o={properties:{}};for(o.id=t[r],r++,s++,m&&(o.originId=t[r],r++,s++,o.destinationId=t[r],r++,s++,(0,a.tE)(this.nodeConnectionsLookup,o.originId,()=>new Set).add(o.id),(0,a.tE)(this.nodeConnectionsLookup,o.destinationId,()=>new Set).add(o.id),(0,a.tE)(this.relationshipConnectionsLookup,o.id,()=>[o.originId,o.destinationId]));r<t.length;r++)o.properties[c[r-s]]=t[r];p.delete(o.id),i.push(o)}const s=o.writeToStore(i,f.dr,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);const l=this.sublayerCaches.get(e);s.forEach(t=>{l?.set(t.attributes[f.dr],t),r&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[f.dr])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[f.dr],{id:t.attributes[f.dr]}),(0,a.tE)(this.memberIdTypeLookup,t.attributes[f.dr],()=>new Set).add(e))})}const b=this.inclusionModeDefinition?.namedTypeDefinitions.get(e);if(b)for(const e of p)b.members?.delete(e)})().then(()=>{u(null)}).catch(e=>{"AbortError"===e.name?u(null):c(e)})});u.push(c),this._processingCacheUpdatesLookup.get(e)?.push(c)}if(await Promise.all(u),i?.signal?.aborted)throw(0,l.NK)()}removeFromLayer(e){const t=new Set,n=new Set(e.map(e=>e.id));for(const n of e)t.add(n.typeName),1===this.memberIdTypeLookup.get(n.id)?.size?this.memberIdTypeLookup.delete(n.id):this.memberIdTypeLookup.get(n.id)?.delete(n.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach((e,t)=>{t===n.typeName&&e.members?.has(n.id)&&e.members.delete(n.id)});t.forEach(e=>{this.sublayerCaches.get(e)?.forEach((t,r)=>{n.has(r)&&this.sublayerCaches.get(e)?.delete(r)})})}async retrieveDataFromService(e,t,n,r){const i=g.A.getInstance(),a=new Set,l=[];let p,I="",_=[],C=!1;const T="relationship"===t.graphType,A=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,E=n.sublayerIdsCache.get(t.objectType.name);let v=!A&&E?Array.from(E).sort():null;const S={systemOidFieldName:f.dr,supportedSqlTypes:new Set(["column-reference","string","number","binary-expression"]),supportedSqlOperators:new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]),unsupportedOperationFound:!1};if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(v=e.objectIds);else if(null!=e.objectIds&&v&&v.length>0){const t=e.objectIds;e.objectIds=v.filter(e=>t.includes(e))}else if(null!=e.objectIds)v=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],{features:[],cypherTranslationApplied:C};e.objectIds=v}if(null!=e.outFields){const n=e.outFields;n.includes("*")?t.fields.forEach(e=>{a.add(e.name)}):n.forEach(e=>{e!==f.dr&&e!==t.geometryFieldName&&a.add(e)})}if(null!=e.geometry){const r=e.geometry;let i;const o=n.dataManager.knowledgeGraph.serviceDefinition,f=o?.spatialReference,m=o?.serviceCapabilities?.geometryCapabilities;let g=m?.geometryMaxBoundingRectangleSizeX,w=m?.geometryMaxBoundingRectangleSizeY;if("point"===r.type){let e=r;e.spatialReference?.isWGS84||(await(0,h.initializeProjection)(e.spatialReference,y.KK),e=(0,h.project)(e,y.KK)),i=new d.A({spatialReference:y.KK,xmin:e.x-1e-4,ymin:e.y-1e-4,xmax:e.x+1e-4,ymax:e.y+1e-4})}else r?.extent?.spatialReference&&!r.spatialReference?.isWGS84?(await(0,h.initializeProjection)(r.extent.spatialReference,y.KK),i=(0,h.project)(r.extent,y.KK)):i=r.extent;if(g&&w&&f){if(4326!==f.wkid){const e=new d.A({spatialReference:f,xmax:g,ymax:w}),t=(0,h.project)(e,y.KK);g=t.xmax,w=t.ymax}if(i.xmax-i.xmin>g)throw new s.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${g}° latitude, limit exceeded`);if(i.ymax-i.ymin>w)throw new s.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${w}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){const n=await(0,u.GP)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach(e=>{n.fieldNames.includes(e.name)&&a.add(e.name)})}I=T?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&a.add(t.geometryFieldName),a.forEach(e=>{I+=`, n.${e}`,l.push(e)}),p=new M.A({openCypherQuery:I,bindParameters:{param_filter_geom:new c.A({rings:(0,b.Wq)(i)})}})}else{let n="";if(null!=e.where&&"1=1"!==e.where){const r=await(0,u.GP)(e.where,t.fieldsIndex);t.fields.forEach(e=>{r.fieldNames.includes(e.name)&&a.add(e.name)}),n=m(r.parseTree,S),S.unsupportedOperationFound&&(n="")}let r="";r=T?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let i=!1;v&&(i=!0,r+=" WHERE ID(n) IN $ids"),n&&(r+=i?" AND":" WHERE",r+=` ${n}`),r+=" return ID(n)",T&&(r+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&a.add(t.geometryFieldName),a.forEach(e=>{r+=`, n.${e}`,l.push(e)}),S.unsupportedOperationFound||(r=((e,t)=>{let n=e;return t.orderByFields?.length&&(n=function(e,t){const n=e.trimEnd();if(/\border\s+by\b/i.test(n))return o.A.getLogger("cypherUtils").warn("Query already contains an ORDER BY clause. Skipping addition of new ORDER BY."),e;const r=t.map(e=>e.trim()).filter(e=>!!e).map(e=>{const[t,n]=e.split(/\s+/);return t?`${t===f.dr?"ID(n)":`n.${t}`} ${"DESC"===n?.toUpperCase()?"DESC":"ASC"}`:null}).filter(e=>!!e);return r.length?`${n} ORDER BY ${r.join(", ")}`:e}(n,t.orderByFields)),null!=t.start&&(n=function(e,t){const n=e.trimEnd();return/\bskip\s+(\$\w+|\d+)\b/i.test(n)?(o.A.getLogger("cypherUtils").warn("Query already contains a SKIP clause. Skipping addition of new SKIP."),e):`${n} SKIP ${t}`}(n,t.start)),null!=t.num&&(n=function(e,t){const n=e.trimEnd();return/\blimit\s+(\$\w+|\d+)\b/i.test(n)?(o.A.getLogger("cypherUtils").warn("Query already contains a LIMIT clause. Skipping addition of new LIMIT."),e):`${n} LIMIT ${t}`}(n,t.num)),n})(r,e),C=!0),p=new M.A(v?{openCypherQuery:r,bindParameters:{ids:v}}:{openCypherQuery:r})}const x=(await(0,w.executeQueryStreaming)(n.dataManager.knowledgeGraph,p,r)).resultRowsStream.getReader();for(;;){const{done:e,value:r}=await x.read();if(e)break;const s=[];for(let e=0;e<r.length;e++){const t=r[e];let n=0,i=0;const o={properties:{}};for(o.id=t[n],n++,i++,T&&(o.originId=t[n],n++,i++,o.destinationId=t[n],n++,i++);n<t.length;n++)o.properties[l[n-i]]=t[n];s.push(o)}_=_.concat(i.writeToStore(s,f.dr,n.dataManager.geographicLookup.get(t.objectType.name)?.name))}return{features:_,cypherTranslationApplied:C}}_isEndEntitySpatial(e,t,n){for(const r of e??[])if(this.entityTypeNames.has(r)){const e=this.geographicLookup.get(r),i=e&&this.sublayerCaches.get(r)?.get(t.attributes[n]);if(e&&i?.attributes[e.name])return!0}return!1}_getNamedTypeIdMapFromNodeIds(e){const t=new Map;return e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(const n of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(n))return;t.has(n)?t.get(n)?.push(e):t.set(n,[e])}}),t}};(0,r.Cg)([(0,p.MZ)()],_.prototype,"knowledgeGraph",void 0),(0,r.Cg)([(0,p.MZ)()],_.prototype,"inclusionModeDefinition",void 0),(0,r.Cg)([(0,p.MZ)()],_.prototype,"entityTypeNames",void 0),(0,r.Cg)([(0,p.MZ)()],_.prototype,"relationshipTypeNames",void 0),(0,r.Cg)([(0,p.MZ)()],_.prototype,"geographicLookup",void 0),(0,r.Cg)([(0,p.MZ)()],_.prototype,"sublayerCaches",void 0),(0,r.Cg)([(0,p.MZ)()],_.prototype,"nodeConnectionsLookup",void 0),(0,r.Cg)([(0,p.MZ)()],_.prototype,"relationshipConnectionsLookup",void 0),(0,r.Cg)([(0,p.MZ)()],_.prototype,"memberIdTypeLookup",void 0),_=(0,r.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],_)},62796(e,t,n){n.d(t,{A:()=>fe});var r=n(32198),i=n(37838),s=n(49186),o=n(4718),a=n(53966),l=n(25728),u=n(91429),p=(n(29953),n(78247)),d=n(5443),c=n(86738),h=n(39829),y=n(82799),f=n(99917),m=n(16930),g=n(21325),b=n(50498),w=n(55156),M=n(60950),I=n(89808),_=n(99959);const C=Symbol("isKnowledgeGraphGraphicOriginSymbol");var T;class A extends _.A{get[(T=C,M.ym)](){return this.sublayer}get[w.e](){return this.sublayer}get[I.Q](){return this.sublayer}constructor(e,t){super(),this[T]=!0,this.type="knowledge-graph",this.layer=e,this.sublayer=t}get id(){return this.layer.id}}const E=Symbol("isLinkChartGraphicOriginSymbol");var v;class S extends _.A{get[(v=E,M.ym)](){return this.sublayer}get[w.e](){return this.sublayer}get[I.Q](){return this.sublayer}constructor(e,t){super(),this[v]=!0,this.type="link-chart",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var x=n(4146),k=n(83221),L=n(75752),N=n(64714),R=n(15375);const O=(0,n(17036).p)(),F=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,r.Cg)([(0,u.MZ)(O.fields)],n.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)(O.fieldsIndex)],n.prototype,"fieldsIndex",void 0),n=(0,r.Cg)([(0,u.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],n),n};var D=n(40736),P=n(63074),B=n(6455),j=n(87718),G=n(56658),$=n(32756),Z=n(54310),U=n(25036),q=n(82935),Q=n(10873),z=n(20569),Y=n(29005),H=n(20437),W=n(30524),X=n(46499),K=n(39383),V=n(96184),J=n(96576),ee=n(65494),te=n(41214),ne=n(53902),re=n(22671),ie=n(97552),se=n(30291),oe=n(88625),ae=n(37531),le=n(61322),ue=n(43937);function pe(e){if(!e.json)return e;e.json.write=de(e.json.write);const t=e.json.origins;if(!t)return e;let n;for(n in t){const e=t[n];e&&(e.write=de(e.write))}return e}function de(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){const{target:t,writer:n,overridePolicy:r,...i}=e;return function(e,t){const n=he.call(this,e,t);return n.enabled?{...i,...n}:n}}(e)),e):!0===e?ce():e}function ce(){return{overridePolicy:he}}function he(e,t){const n=!!this.geometryType;let r={enabled:n};return n&&(r={...r,...ye.call(this,e,t)}),r}function ye(e,t){return{ignoreOrigin:this.originIdOf(t)>0}}let fe=class extends(F((0,B.FJ)((0,G.J)((0,j.F)((0,P.dM)((0,$.fY)((0,q.e)((0,U.j)((0,Z.J)((0,l.M)(x.A))))))))))){constructor(e){super(e),this.blendMode="normal",this.charts=null,this.definitionExpression=null,this.displayFilterEnabled=!0,this.displayFilterInfo=null,this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=R.dr,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then(()=>{const e=new MessageChannel;return new le.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{const n=ie.A.fromJSON(e);return this.queryFeaturesJSON(n,t)}}}),[e.port2]})},this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get capabilities(){return this.parent?this.parent.sublayerCapabilities:(0,D.hZ)(null)}get isTable(){return"link-chart"!==this.parentCompositeLayer?.type&&null==this.geometryFieldName}get defaultPopupTemplate(){return this.createPopupTemplate()}get editingEnabled(){return this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveCapabilities(){const e=(0,o.o8)(this.capabilities),{operations:t,editing:n}=e;return this.userHasUpdateItemPrivileges&&(t.supportsAdd=t.supportsDelete=t.supportsEditing=t.supportsQuery=t.supportsUpdate=n.supportsDeleteByOthers=n.supportsGeometryUpdate=n.supportsUpdateByOthers=!0),this.userHasFullEditingPrivileges&&t.supportsEditing&&(t.supportsAdd=t.supportsDelete=t.supportsUpdate=n.supportsGeometryUpdate=!0),e}get effectiveEditingEnabled(){return this.userHasUpdateItemPrivileges||this.editingEnabled}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){const e=[],t=new Map;for(const e of this.parent?.knowledgeGraph.dataModel.domains??[])t.set(e.name,e);return this.objectType?.properties?.forEach(n=>{const r="esriFieldTypeOID"===n.fieldType?"esriFieldTypeInteger":n.fieldType,i=H.A.fromJSON({name:n.name,type:r,alias:n.alias,defaultValue:n.defaultValue,editable:n.editable,nullable:n.nullable,domain:n.domain&&t.has(n.domain)?t.get(n.domain).toJSON():void 0});e.push(i)}),e.push(H.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),H.A.fromJSON({name:R.M1,type:"esriFieldTypeInteger",alias:R.M1,editable:!1}),H.A.fromJSON({name:R.BL,type:"esriFieldTypeInteger",alias:R.BL,editable:!1})),e}get formTemplate(){return this._isOverridden("formTemplate")?this._get("formTemplate"):(0,D.dD)(this)}set formTemplate(e){this._overrideIfSome("formTemplate",e)}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.geometryType;return t&&"esriGeometryNull"!==t?b.gy.fromJSON(t):null}get geometryFieldName(){if("link-chart"===this.parentCompositeLayer?.type)return R.T1;const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name);return e?.name??null}get graphicOrigin(){if(!this.parent)return null;switch(this.parent.type){case"knowledge-graph":return new A(this.parent,this);case"link-chart":return new S(this.parent,this)}}get graphTypeName(){return this.objectType?.name}set graphTypeName(e){this._set("graphTypeName",e)}get hasM(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,n=t?this.objectType?.properties?.[t]:null;return n?.hasM??!1}get hasZ(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,n=t?this.objectType?.properties?.[t]:null;return n?.hasZ??!1}set labelingInfo(e){this._set("labelingInfo",e)}get labelingInfo(){if(this._isOverridden("labelingInfo"))return this._get("labelingInfo");if(!this.objectType||!this.parentCompositeLayer||!this.graphTypeName)return null;const e=this.objectType.properties?(0,D.MY)(this.objectType.properties):"ESRI__ID";return"link-chart"===this.parentCompositeLayer.type?(0,D.iW)(this.graphType,this.graphTypeName,e):(0,D.e$)(this.graphTypeName,this.geometryType,e)}set renderer(e){(0,W.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");const e=this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel,t=[...e?.entityTypes??[],...e?.relationshipTypes??[]].map(e=>e.name).indexOf(this.graphTypeName),n=(0,D.Td)(t);if("link-chart"===this.parentCompositeLayer?.type){if("relationship"===this.graphType)return new J.A({type:"simple",symbol:(0,D.UT)(n)});const e=(0,ee.r)((0,N.F0)(b.gy.toJSON("point")).renderer);return(0,ae.dt)(e.symbol,n),e}const r=(0,ee.r)((0,N.F0)(b.gy.toJSON(this.geometryType)).renderer);return(0,ae.dt)(r.symbol,n),r}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??m.A.WGS84}get templates(){return this._isOverridden("templates")?this._get("templates"):(0,D.CP)(this)}set templates(e){this._overrideIfSome("templates",e)}set timeInfo(e){this._set("timeInfo",e)}get dateFieldsTimeZone(){return this.parentCompositeLayer?.dateFieldsTimeZone}get title(){return this._isOverridden("title")?this._get("title"):this.graphTypeName}set title(e){this._set("title",e)}writeTitle(e,t){t.title=e??"Layer"}get userHasEditingPrivileges(){return!this.parent||this.parent.userHasEditingPrivileges}get userHasFullEditingPrivileges(){return!!this.parent&&this.parent.userHasFullEditingPrivileges}get userHasUpdateItemPrivileges(){return!!this.parent&&this.parent.userHasUpdateItemPrivileges}createPopupTemplate(e){return(0,se.tn)(this,e)}createQuery(){return new ie.A({where:"1=1",outFields:["*"]})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return this.fields.find(t=>t.name===e)?.domain||null}async queryFeatures(e,t){await this.load();const{resolvedQuery:n,queryEngine:r,cypherTranslationApplied:i}=await this._setupQueryObjects(e),s=this.graphicOrigin,o=re.A.fromJSON(await r.executeQuery(this._createQueryEngineQueryJSON(n,i),t?.signal));return o.features.forEach(e=>{e.sourceLayer=this,e.origin=s}),o}async queryFeaturesJSON(e,t){await this.load();const{resolvedQuery:n,queryEngine:r,cypherTranslationApplied:i}=await this._setupQueryObjects(e);return await r.executeQuery(this._createQueryEngineQueryJSON(n,i),t?.signal)}async queryFeatureCount(e,t){await this.load();const{resolvedQuery:n,queryEngine:r,cypherTranslationApplied:i}=await this._setupQueryObjects(e);return r.executeQueryForCount(this._createQueryEngineQueryJSON(n,i),t?.signal)}async queryExtent(e={},t){await this.load();const n={...e,returnGeometry:!0},{resolvedQuery:r,queryEngine:i,cypherTranslationApplied:s}=await this._setupQueryObjects(n),o=await i.executeQueryForExtent(this._createQueryEngineQueryJSON(r,s),t?.signal);let a;return a=null!=o.extent?.xmin&&null!=o.extent?.xmax&&null!=o.extent?.ymin&&null!=o.extent?.ymax?new d.A(o.extent):new d.A,{count:o.count,extent:a}}async queryObjectIds(e,t){await this.load();const n=ie.A.from(e);let r;if(this.parentCompositeLayer){if("link-chart"!==this.parentCompositeLayer.type||!this._cachedQueryEngine){const{features:e,cypherTranslationApplied:i}=await this.parentCompositeLayer.dataManager.getData(n,this,this.parentCompositeLayer,t);return r=this.loadQueryEngine(e),await r.executeQueryForIds(this._createQueryEngineQueryJSON(n,i),t?.signal)}r=this._cachedQueryEngine}else a.A.getLogger(this).warn("Attempting to query for object IDs with no features failed because the parent composite layer is missing or not yet loaded."),r=this.loadQueryEngine([]);return await r.executeQueryForIds(this._createQueryEngineQueryJSON(n,!1),t?.signal)}async applyEdits(e){if(!this.parentCompositeLayer?.dataManager.knowledgeGraph)throw new s.A("knowledge-graph-sublayer:no-knowledge-graph","ApplyEdits cannot be executed because the parent does not have a Knowledge Graph model. This is usually caused by the layer not yet being loaded");const t=await(0,D.O9)(e,this,this.parentCompositeLayer);t.options={cascadeDelete:!0,cascadeProvenanceDelete:!!this.parent?.knowledgeGraph.serviceDefinition.supportsProvenance||void 0};const n=await(0,ne.executeApplyEdits)(this.parentCompositeLayer.dataManager.knowledgeGraph,t),r=(0,D.Gz)(n,this.graphTypeName),i={addedFeatures:r.addFeatureResults,updatedFeatures:r.updateFeatureResults,deletedFeatures:r.deleteFeatureResults,addedAttachments:r.addAttachmentResults,deletedAttachments:r.deleteAttachmentResults,updatedAttachments:r.updateAttachmentResults,exceededTransferLimit:!1,historicMoment:new Date,edits:void 0};return this.emit("edits",i),this.emit("apply-edits",{result:Promise.resolve(i)}),"link-chart"===this.parentCompositeLayer.type&&await this.parentCompositeLayer.refreshLinkChartCache([...i.addedFeatures.map(e=>e.globalId),...i.updatedFeatures.map(e=>e.globalId),...i.deletedFeatures.map(e=>e.globalId)]),r}loadQueryEngine(e){const t=new k.A({geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),n=new L.do({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,featureIdInfo:{type:"object-id",fieldName:this.objectIdField},spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return n.featureStore.addMany(e),n}async refreshCachedQueryEngine(){if(!this.parentCompositeLayer)return a.A.getLogger(this).warn("Attempting to refresh the cached query engine with no features failed because the parent composite layer is missing or not yet loaded."),void(this._cachedQueryEngine=this.loadQueryEngine([]));const{features:e}=await this.parentCompositeLayer.dataManager.getData(new ie.A({where:"1=1",outFields:[R.dr]}),this,this.parentCompositeLayer);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e).then(()=>(0,W.sv)(this.timeInfo,this.fieldsIndex))),Promise.resolve(this)}_createQueryEngineQueryJSON(e,t){const n=e.toJSON();return t&&delete n.resultOffset,n}async _setupQueryObjects(e,t){const n=ie.A.from(e),r=n.geometry;if(r&&!r.spatialReference?.isWGS84&&(await(0,f.initializeProjection)(r.spatialReference,g.KK),n.geometry=(0,f.project)(r instanceof h.A||r instanceof y.A||r instanceof c.A?r:r.extent,g.KK)),!this.parentCompositeLayer)return a.A.getLogger(this).warn("Attempting to execute a query with no features failed because the parent composite layer is missing or not yet loaded."),{resolvedQuery:n,queryEngine:this.loadQueryEngine([]),cypherTranslationApplied:!1};if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)return{resolvedQuery:n,queryEngine:this._cachedQueryEngine,cypherTranslationApplied:!1};const{features:i,cypherTranslationApplied:s}=await this.parentCompositeLayer.dataManager.getData(n,this,this.parentCompositeLayer,t);return{resolvedQuery:n,queryEngine:this.loadQueryEngine(i),cypherTranslationApplied:s}}};(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(P.sU)))],fe.prototype,"blendMode",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],fe.prototype,"capabilities",null),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"isTable",null),(0,r.Cg)([(0,u.MZ)({json:{origins:{"web-scene":{write:!1}},write:ce()}})],fe.prototype,"charts",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],fe.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,u.MZ)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],fe.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(B.Dp)))],fe.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(B.KV)))],fe.prototype,"displayFilterInfo",void 0),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"editingEnabled",null),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(P.LF)))],fe.prototype,"effect",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],fe.prototype,"effectiveCapabilities",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],fe.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,u.MZ)({type:oe.A})],fe.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(j.Y)))],fe.prototype,"featureEffect",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(z.d)))],fe.prototype,"featureReduction",null),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"fields",null),(0,r.Cg)([(0,u.MZ)({type:p.A})],fe.prototype,"formTemplate",null),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"geometryType",null),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"geometryFieldName",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],fe.prototype,"graphicOrigin",null),(0,r.Cg)([(0,u.MZ)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],fe.prototype,"graphType",void 0),(0,r.Cg)([(0,u.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],fe.prototype,"graphTypeName",null),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"hasM",null),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"hasZ",null),(0,r.Cg)([(0,u.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],fe.prototype,"id",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",default:!1,write:{overridePolicy(){return{enabled:!!this.geometryType,alwaysWriteDefaults:!0,ignoreOrigin:!0}}}}})],fe.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,u.MZ)({type:[X.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:function(e,t,n){const r=[["ESRI__AGGREGATION_COUNT",R.M1],["ESRI__ORIGIN_ID",R.Cz],["ESRI__DESTINATION_ID",R.KQ],["ESRI__LAYOUT_GEOMETRY",R.T1]];try{for(const t of e)for(const[e,n]of r)t.labelExpression=t.labelExpression?.replaceAll(e,n),t.labelExpressionInfo?.expression&&(t.labelExpressionInfo.expression=t.labelExpressionInfo.expression.replaceAll(e,n))}catch(e){a.A.getLogger(this).warn("Error updating labelingInfo",e)}return K.w.call(this,e,t,n)},write:ce()}})],fe.prototype,"labelingInfo",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer?.type){case"link-chart":t.layerType="LinkChartSubLayer";break;case"knowledge-graph":t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],fe.prototype,"layerType",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(Q.fV)))],fe.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(Q.hG)))],fe.prototype,"maxScale",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(Q.hn)))],fe.prototype,"minScale",void 0),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"objectIdField",void 0),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"objectType",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(Q.ke)))],fe.prototype,"opacity",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)($.ne)))],fe.prototype,"orderBy",void 0),(0,r.Cg)([(0,u.MZ)({clonable:!1})],fe.prototype,"parent",void 0),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"parentCompositeLayer",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(Q.M6)))],fe.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,u.MZ)({type:i.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],fe.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:ye}}})],fe.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,u.MZ)({types:te.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:ce()}})],fe.prototype,"renderer",null),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"source",void 0),(0,r.Cg)([(0,u.MZ)()],fe.prototype,"spatialReference",null),(0,r.Cg)([(0,u.MZ)({type:Y.A})],fe.prototype,"templates",null),(0,r.Cg)([(0,u.MZ)({type:V.A,json:{name:"layerDefinition.timeInfo",write:{overridePolicy:ye},origins:{"web-document":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:ye}},"portal-item":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:ye}}}}})],fe.prototype,"timeInfo",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],fe.prototype,"dateFieldsTimeZone",null),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],fe.prototype,"title",null),(0,r.Cg)([(0,ue.K)("title")],fe.prototype,"writeTitle",null),(0,r.Cg)([(0,u.MZ)({json:{read:!1}})],fe.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)(pe((0,o.o8)(q.B)))],fe.prototype,"useViewTime",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],fe.prototype,"userHasEditingPrivileges",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],fe.prototype,"userHasFullEditingPrivileges",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],fe.prototype,"userHasUpdateItemPrivileges",null),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{name:"visibility",write:ce()}})],fe.prototype,"visible",void 0),fe=(0,r.Cg)([(0,u.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],fe)},69860(e,t,n){n.d(t,{A:()=>a});var r=n(65864),i=n(90708),s=n(43334),o=n(15375);class a{constructor(){this._featureLookup=new Map}static getInstance(){return a.instance||(a.instance=new a),a.instance}static resetInstance(){a.instance&&(a.instance=null)}deleteFromStore(e){e.forEach(e=>{this._featureLookup.delete(e)})}readFromStoreByList(e){const t=[];return e.forEach(e=>{const n=this.readFromStoreById(e);n&&t.push(n)}),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,n){const a=[];return e.forEach(e=>{if(!e?.id)return;e.properties||(e.properties=[]);let l=null;n&&e.properties[n]&&(l=(0,i.Ux)(e.properties[n])),"originId"in e&&"destinationId"in e&&(e.properties[o.Cz]=e.originId,e.properties[o.KQ]=e.destinationId),e.properties[t]=e.id;let u=e.properties;if(e.id){const t=this._featureLookup.get(e.id);if(t?.attributes){u={...t.attributes,...u};const e=n&&u[n];null!=e&&(u[n]=(0,r.rS)(e)),l=l??t.geometry}}const p=new s.Om(l?.clone(),u,null,e.id);this._featureLookup.set(`${e.typeName?`${e.typeName}__${e.id}`:e.id}`,p),a.push(p)}),a}}},15375(e,t,n){n.d(t,["BL",0,"LC.ESRI__IsSpatial","Cz",0,"ESRI__OriginID","KQ",0,"ESRI__DestID","M1",0,"ESRI__AggregationCount","T1",0,"ESRI__LayoutGeometry","dr",0,"ESRI__ID"])},40736(e,t,n){n.d(t,{Gz:()=>U,O9:()=>Z,hZ:()=>$,CP:()=>Q,dD:()=>q,UT:()=>F,MY:()=>D,Td:()=>O,iW:()=>P,e$:()=>B,$L:()=>z,N1:()=>j,qN:()=>N});var r=n(68197),i=n(92602),s=n(70333),o=(n(49186),n(91869)),a=n(17676),l=n(78247),u=n(89909),p=n(99917),d=n(16930),c=n(52039),h=n(99352),y=n(15375),f=n(29005),m=n(46499),g=n(73913),b=n(77548),w=n(80812),M=n(10407),I=n(53902),_=n(25927),C=n(32198),T=n(69622),A=n(91429);let E=class extends T.A{constructor(e){super(e),this.entityAdds=void 0,this.entityUpdates=void 0,this.entityDeletes=void 0,this.relationshipAdds=void 0,this.relationshipUpdates=void 0,this.relationshipDeletes=void 0,this.options=void 0}};(0,C.Cg)([(0,A.MZ)()],E.prototype,"entityAdds",void 0),(0,C.Cg)([(0,A.MZ)()],E.prototype,"entityUpdates",void 0),(0,C.Cg)([(0,A.MZ)()],E.prototype,"entityDeletes",void 0),(0,C.Cg)([(0,A.MZ)()],E.prototype,"relationshipAdds",void 0),(0,C.Cg)([(0,A.MZ)()],E.prototype,"relationshipUpdates",void 0),(0,C.Cg)([(0,A.MZ)()],E.prototype,"relationshipDeletes",void 0),(0,C.Cg)([(0,A.MZ)()],E.prototype,"options",void 0),E=(0,C.Cg)([(0,A.$K)("esri.rest.knowledgeGraph.GraphApplyEdits")],E);var v=n(23150),S=n(94128),x=n(40863),k=n(68249);const L=(e,t)=>"knowledge-graph"===e.type?`${t}/Map`:`${t}/LinkChart/LinkChartSubLayer`;async function N(e,t,n){return(async(e,t,n)=>{if(t||(t=[...e.layers,...e.tables].map(e=>e.graphTypeName)),0===t?.length)return;const r=new Map;for(const n of t)r.set(n,L(e,n));const i=await(0,I.fetchClientDataAtKeys)(e.dataManager.knowledgeGraph,Array.from(r.values()),{requestOptions:{signal:n?.signal}});for(const t of[...e.layers,...e.tables]){const n=t.objectType.name;if(null==n)continue;const r=i.get(L(e,n));if(r){const e=JSON.parse(r);null===e||"object"!=typeof e||e.hasOwnProperty("showLabels")||(e.showLabels=!1),t.read(e,{origin:"service"})}}})(e,t,n)}const R=["#4a0932","#b31515","#18382e","#a64f1b","#102432","#8c213f","#ed9310","#2c6954","#144d59","#ffc730","#75351e","#454f4b","#78b1c2","#191921","#8f8f82","#9be0c0","#dbb658","#87b051","#11495c","#c43541","#9c5596","#44498b","#ad9d63","#86afb3","#5c98ca","#b0bfa2","#73241f","#b86b53","#d9d78c","#3e756d","#f260a1","#a0d17d","#c27c30","#eb82eb","#ffdf3c","#ffb259","#ab52b3","#3cccb4","#0095ba","#d92b30"];function O(e){return e<0||e>=R.length?new r.A("#8f8f82"):new r.A(R[e])}function F(e){const t=e.toArray();return new x.A({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,style:"solid",width:.75,color:t},{type:"CIMVectorMarker",enable:!0,size:6,markerPlacement:{type:"CIMMarkerPlacementOnLine",angleToLine:!0,relativeTo:"LineMiddle"},frame:{xmin:-10,ymin:-5,xmax:0,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[-12,-3.47],[-12,3.6],[1.96,-.03],[-12,-3.47]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:t}]}}]}]}}})}function D(e){let t="ESRI__ID",n=4;for(const r of e)if(r.name){if("name"===r.name.toLowerCase()){t=r.name;break}r.name.toLowerCase().includes("name")?(t=r.name,n=2):"esriFieldTypeString"===r.fieldType&&n>3&&(t=r.name,n=3)}return t}function P(e,t,n){const r={color:[80,80,80],haloColor:[255,255,255],haloSize:.7,font:{size:10,weight:"normal"}},i=new m.A({labelExpressionInfo:new g.A({expression:"ESRI__ID"===n?`${t}`:`$feature.${n}`}),labelPlacement:"above-center",symbol:new k.A(r)}),s=new m.A({labelExpressionInfo:new g.A({expression:`'${t}' + IIf($feature.ESRI__AggregationCount>1, ' (' + $feature.ESRI__AggregationCount + ')', '')`}),labelPlacement:"center-along",labelPosition:"parallel",repeatLabel:!1,symbol:new k.A({...r,yoffset:"12px"})});return"entity"===e?[i]:[s]}function B(e,t,n){const r={color:[255,255,255],haloColor:[0,0,0],haloSize:.7,font:{size:10,weight:"bold"}},i="ESRI__ID"===n?`${e}`:`$feature.${n}`;return"point"===t?[new m.A({labelExpressionInfo:new g.A({expression:i}),labelPlacement:"above-center",symbol:new k.A(r)})]:"polyline"===t?[new m.A({labelExpressionInfo:new g.A({expression:i}),labelPlacement:"center-along",repeatLabel:!0,symbol:new k.A(r)})]:"polygon"===t?[new m.A({labelExpressionInfo:new g.A({expression:i}),labelPlacement:"always-horizontal",symbol:new k.A(r)})]:null}async function j(e,t,n){return(async(e,t,n)=>{let r=!0,o=!1,a=!1;if(!i.A.userPrivilegesApplied)return{edit:r,fullEdit:o,updateItem:a};const l=await(0,b.wI)(t,n);if(!l)return{edit:r,fullEdit:o,updateItem:a};const u=s.id?.getCredential(`${l}/sharing`,{...n,prompt:!1});if(!u)return{edit:r,fullEdit:o,updateItem:a};const p=new w.default({id:e,portal:{url:l}});return await p.load(n),({features:{edit:r,fullEdit:o},content:{updateItem:a}}=(0,M.It)(p)),{edit:r,fullEdit:o,updateItem:a}})(e,t,n).catch(e=>((0,a.QP)(e),{edit:!0,fullEdit:!1,updateItem:!1}))}const G={capabilities:[],allowGeometryUpdates:!1,serviceCapabilities:{geometryCapabilities:{supportsZValues:!1,supportsMValues:!1}}};function $(e){const{capabilities:t,allowGeometryUpdates:n,serviceCapabilities:{geometryCapabilities:{supportsZValues:r,supportsMValues:i}}}=e?.serviceDefinition||G,s=e?.dataModel.arcgisManaged?t:t.filter(e=>"Query"===e),o=new Set(s);return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:i,supportsTrueCurve:!1,supportsZ:r},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:o.has("Create"),supportsDelete:o.has("Delete"),supportsEditing:o.has("Editing"),supportsChangeTracking:!1,supportsQuery:o.has("Query"),supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:o.has("Update"),supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:h.F,queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:h.P,editing:{supportsGeometryUpdate:!!e?.dataModel.arcgisManaged&&n,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:o.has("Delete"),supportsUpdateByAnonymous:!1,supportsUpdateByOthers:o.has("Update"),supportsAsyncApplyEdits:!1,zDefault:void 0}}}async function Z(e,t,n){const r=new E,i=t.graphTypeName,s=t.graphType,a="knowledge-graph"===n.type?t.geometryFieldName:null,l=!!t.fieldsIndex.get(a)?.editable,u=e=>{const n={...e};for(const e of t.fields)e.editable||delete n[e.name];for(const t of Object.keys(e))t.includes("ESRI__")&&delete n[t];return n},h=async e=>{await(0,p.initializeProjection)(e.spatialReference,d.A.WGS84);const t=(0,p.project)(e,d.A.WGS84);return"point"===t.type?t.normalize():(await(0,c.el)(t))[0]};for(const t of e.addFeatures??[]){const e=u(t.attributes);(0,b.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===i&&("entity"===s?(r.entityAdds||(r.entityAdds=[]),a&&t.geometry&&(e[a]=await h(t.geometry)),r.entityAdds.push(new _.A({properties:e,typeName:i}))):(r.relationshipAdds||(r.relationshipAdds=[]),r.relationshipAdds.push(new v.A({properties:e,typeName:i}))))}for(const t of e.updateFeatures??[]){const e=t.attributes[y.dr],n=u(t.attributes);(0,b.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===i&&("entity"===s?(r.entityUpdates||(r.entityUpdates=[]),a&&l&&t.geometry&&(n[a]=await h(t.geometry)),r.entityUpdates.push(new _.A({id:e,properties:n,typeName:i}))):(r.relationshipUpdates||(r.relationshipUpdates=[]),r.relationshipUpdates.push(new v.A({id:e,properties:n,typeName:i}))))}const f=new Map;for(const t of e.deleteFeatures??[])if((0,S.D)(t)){const e=t,n=(0,o.tE)(f,e.sourceLayer.graphTypeName,()=>({typeName:e.sourceLayer.graphTypeName,ids:[]}));e.sourceLayer.graphTypeName===i&&n.ids.push(e.attributes[y.dr])}else t.objectId&&"string"==typeof t.objectId&&(0,o.tE)(f,i,()=>({typeName:i,ids:[]})).ids.push(t.objectId);for(const e of f.values())e.ids.length>0&&("entity"===s?(r.entityDeletes||(r.entityDeletes=[]),r.entityDeletes.push({typeName:e.typeName,ids:e.ids})):(r.relationshipDeletes||(r.relationshipDeletes=[]),r.relationshipDeletes.push({typeName:e.typeName,ids:e.ids})));return r}function U(e,t){const n={addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]};for(const r of e.editResults)if(r.typeName===t){for(const e of r.adds)n.addFeatureResults.push({objectId:e.id,globalId:e.id});for(const e of r.updates)n.updateFeatureResults.push({objectId:e.id,globalId:e.id});for(const e of r.deletes)n.deleteFeatureResults.push({objectId:e.id,globalId:e.id})}return n}function q(e){if(!e.objectType)return null;const t=[];for(const n of e.fields)!n.name.includes("ESRI__")&&n.editable&&"geometry"!==n.type&&t.push(new u.A({fieldName:n.name}));return new l.A({elements:t})}function Q(e){if(!e.objectType)return null;let t=null;switch(e.geometryType){case"point":case"multipoint":t="point";break;case"polyline":t="line";break;case"polygon":t="polygon";break;default:t=null}return[new f.A({name:e.graphTypeName,drawingTool:t,prototype:{}})]}const z=e=>{let t="";const n=e.split("/"),r=n.lastIndexOf("KnowledgeGraphServer");return r>0&&(t=n[r-1]),t}},99916(e,t,n){n.d(t,{Wq:()=>l,aq:()=>a}),n(52106);var r=n(49186),i=(n(86738),n(39829),n(82799),n(94194),n(69860),n(8460),n(69647)),s=n(53902),o=n(42538);async function a(e,t,n){const r=[],i=function(e,t){const n=new Map;if(t.dataModel?.relationshipTypes)for(const e of t.dataModel.relationshipTypes)e.name&&n.set(e.name,[]);for(const t of e)n.has(t.typeName)&&n.get(t.typeName)?.push(t.id);return n}(e,t),a={},l=[];for(const[e,t]of i){if(t.length<1)continue;const n=`${e}_ids`;a[n]=t,l.push(`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $${n} RETURN id(n), labels(n)[0], id(m), labels(m)[0]`)}if(0===l.length)return[];const u=l.join(" UNION "),p=new o.A({openCypherQuery:u,bindParameters:a}),d=(await(0,s.executeQueryStreaming)(t,p,n?.requestOptions)).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await d.read();if(e)break;for(const e of t)r.push({id:e[0],typeName:e[1]}),r.push({id:e[2],typeName:e[3]})}return r}function l(e){if(!e.spatialReference.isWGS84)throw new r.A("knowledge-graph:layer-support-utils","The utilsExtentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}n(40863),n(94985),n(68249),n.d(t,["k5",0,e=>i.P_.get(e)??"radial-root-centric"])},82935(e,t,n){var r=n(32198),i=n(91429),s=n(30524),o=n(96184),a=n(73133),l=n(79677),u=n(10184),p=n(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};n.d(t,["B",0,d,"e",0,e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const r=n.timeOffset,i=a.j.fromJSON(n.timeOffsetUnits);return r&&i?new u.A({value:r,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,i.MZ)({type:l.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,r.Cg)([(0,i.MZ)({type:u.A})],n.prototype,"timeOffset",void 0),(0,r.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,r.Cg)([(0,i.MZ)({value:null,type:o.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,r.Cg)([(0,i.MZ)(d)],n.prototype,"useViewTime",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],n),n}])},17036(e,t,n){n.d(t,{p:()=>l});var r=n(44208),i=n(53966),s=n(20437),o=n(95466),a=n(30524);function l(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");i.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const n=this.fieldsIndex?.has(t);n||i.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},8460(e,t,n){n.d(t,{$C:()=>y,Hh:()=>o,Tu:()=>c,Wg:()=>h,Xq:()=>m,i6:()=>g,pM:()=>d,vJ:()=>f});var r=n(2741);let i,s=null;function o(){return i||(i=n.e(3666).then(()=>n(3666)).then(({default:e})=>e({locateFile:e=>(0,r.s)(`esri/libs/linkchartlayout/${e}`)})).then(e=>{!function(e){s=e}(e)}),i)}const a={right:0,left:1,top:2,bottom:3},l={none:0,"start-only":1,"start-and-end":2};function u(e){const t={timeDirection:"right",timeBannerUTCOffsetInMinutes:0,eventsTicksVisualization:"start-and-end",showDurationLineForNonZeroDurationEntityEvents:!0,durationLineWidth:5,entityPositionAtDurationRatio:1,showNonZeroDurationIntervalBounds:!1,separateTimeOverlaps:!0,separateTimelineOverlaps:!0,moveFirstBends:!0,secondBendRatio:.3,lineSeparationMultiplier:1,spaceSeparatedLinesEvenly:!1,useBezierCurves:!1,separatedLineShapeRatio:0,...e?.toJSON(),eventsTicksVisualization:e?.eventsTicksVisualization??"start-and-end"};return{...t,timeDirection:{value:a[t.timeDirection]??a.right},eventsTicksVisualization:{value:l[t.eventsTicksVisualization]??l["start-and-end"]}}}function p(e,t,n,r,i,o){const a=n.length,l=i.length,u=Float64Array.BYTES_PER_ELEMENT,p=Uint32Array.BYTES_PER_ELEMENT,d=Uint8Array.BYTES_PER_ELEMENT,c=16+a*(d+2*u)+l*(2*p),h=s._malloc(c);try{const d=h+16-h%16,c=d+a*u,y=c+a*u,f=y+l*p,m=f+l*p,g=()=>[s.HEAPF64.subarray(d>>3,(d>>3)+a),s.HEAPF64.subarray(c>>3,(c>>3)+a),s.HEAPU32.subarray(y>>2,(y>>2)+l),s.HEAPU32.subarray(f>>2,(f>>2)+l),s.HEAPU8.subarray(m,m+a)],[b,w,M,I,_]=g();b.set(n),w.set(r),M.set(i),I.set(o),_.set(t);const C=e(a,m,d,c,l,y,f);let T=null,A=null;if(0===C.value){const e=s.getLayoutLinksTypes(),t=s.getLayoutLinksVerticesEndIndices(),n=s.getLayoutLinksVertices(),r=s.countLayoutLinksVertices();!l||e&&t?r&&!n?C.value=1:(T={types:new Uint8Array(s.HEAPU8.subarray(e,e+l)),vertexEndIndex:new Uint32Array(s.HEAPU32.subarray(t>>2,(t>>2)+l)),vertices:new Float64Array(s.HEAPF64.subarray(n>>3,(n>>3)+2*r))},A=s.getAuxiliaryGraphicElements()):C.value=1}const[E,v,S,x,k]=g();return n.set(E),r.set(v),i.set(S),o.set(x),t.set(k),{status:C.value,links:T,graphics:A}}finally{s._free(h),s.cleanupLayout()}}var d,c,h,y,f,m,g,b;(b=d||(d={})).getMinIdealEdgeLength=function(){return s.getMinIdealEdgeLength()},b.apply=function(e,t,n,r,i,o,a=2,l=1,u=-1){return p((t,n,r,i,o,p,d)=>s.applyForceDirectedLayout(e,t,n,r,i,o,p,d,a,l,u),t,n,r,i,o)},function(e){e.apply=function(e,t,n,r,i,o,a=2,l=1,u=-1){return p((t,n,r,i,o,p,d)=>s.applyCommunityLayout(e,t,n,r,i,o,p,d,a,l,u),t,n,r,i,o)}}(c||(c={})),function(e){e.apply=function(e,t,n,r,i,o){return p((t,n,r,i,o,a,l)=>s.applySimpleLayout(e,t,n,r,i,o,a,l),t,n,r,i,o)}}(h||(h={})),function(e){e.apply=function(e,t,n,r,i,o){return p((t,n,r,i,o,a,l)=>s.applyHierarchicalLayout(e,t,n,r,i,o,a,l),t,n,r,i,o)}}(y||(y={})),function(e){e.apply=function(e,t,n,r,i,o){return p((t,n,r,i,o,a,l)=>s.applyRadialTreeLayout(e,t,n,r,i,o,a,l),t,n,r,i,o)}}(f||(f={})),function(e){e.apply=function(e,t,n,r,i,o){return p((t,n,r,i,o,a,l)=>s.applySmartTreeLayout(e,t,n,r,i,o,a,l),t,n,r,i,o)}}(m||(m={})),function(e){e.apply=function(e,t,n,r,i,o,a,l,d,c,h,y){return p((t,n,r,a,l,p,f)=>{if(i.length!==t)return{value:1};if(o.length!==t)return{value:1};if(d.length!==l)return{value:1};if(c.length!==l)return{value:1};const m=Float64Array.BYTES_PER_ELEMENT,g=16,b=s._malloc(g+t*m),w=s._malloc(g+t*m),M=s._malloc(g+l*m),I=s._malloc(g+l*m),_=b+g-b%g,C=w+g-w%g,T=M+g-M%g,A=I+g-I%g;try{return s.HEAPF64.subarray(_>>3,(_>>3)+t).set(i),s.HEAPF64.subarray(C>>3,(C>>3)+t).set(o),s.HEAPF64.subarray(T>>3,(T>>3)+l).set(d),s.HEAPF64.subarray(A>>3,(A>>3)+l).set(c),s.applyChronologicalLayout(e,t,n,r,a,_,C,l,p,f,T,A,h,u(y))}finally{s._free(b),s._free(w),s._free(M),s._free(I)}},t,n,r,a,l)}}(g||(g={}))},69647(e,t,n){var r=n(66552);const i=(0,r.O)()({none:"none",startAndEnd:"start-and-end",startOnly:"start-only"}),s=(0,r.O)()({absoluteValue:"absolute-value",multiplier:"multiplier"}),o=new Map([["basic-grid","basic-grid"],["geographic-organic-standard","geographic-organic-standard"],["hierarchical-bottom-to-top","hierarchical-bottom-to-top"],["hierarchical-top-to-bottom","hierarchical-bottom-to-top"],["organic-community","organic-community"],["organic-fusiform","organic-standard"],["organic-leaf-circle","organic-standard"],["organic-standard","organic-standard"],["radial-node-centric","radial-root-centric"],["radial-root-centric","radial-root-centric"],["tree-bottom-to-top","tree-left-to-right"],["tree-left-to-right","tree-left-to-right"],["tree-right-to-left","tree-left-to-right"],["tree-top-to-bottom","tree-left-to-right"],["chronological-mono-timeline","chronological-mono-timeline"],["chronological-multi-timeline","chronological-multi-timeline"]]);n.d(t,["P_",0,o,"SJ",0,i,"lg",0,s])},54628(e,t,n){n.d(t,{lV:()=>s,zI:()=>i});var r=n(56507);async function i(e,t,n){if(!e||!t||!e.includes("/resources"))return!1;const i=t+"/resources",s=e.includes("/resources/")?e.split("/resources/")[1]:e;if(!s)return!1;let o=1;for(;-1!==o;){const e=(await(0,r.A)(i,{query:{f:"json",start:o,num:100}})).data,t=e?.resources??[];for(const e of t)if(e.resource===s)return"number"==typeof n&&e.created===n;if(null==e.nextStart||!t.length)break;o=e.nextStart}return!1}async function s(e,t){if(!e.length||!t)return new Map;const n=t+"/resources";let i=1;const s=new Map;for(;-1!==i;){const e=(await(0,r.A)(n,{query:{f:"json",start:i,num:100}})).data,t=e?.resources??[];for(const e of t)"number"==typeof e.created&&s.set(e.resource,e.created);if(null==e.nextStart||!t.length)break;i=e.nextStart}const o=new Map;for(const t of e){const e=t.includes("/resources/")?t.split("/resources/")[1]:t,n=s.get(e);null!=n&&o.set(t,n)}return o}n(49186),n(53966),n(17676),n(86738),n(8460)},10407(e,t,n){n.d(t,{It:()=>h,LG:()=>o,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,sQ:()=>d});var r=n(99917),i=n(16930),s=n(28735);function o(e,t){if(!a(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,c.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function p(e,t,n){n?o(e,t):u(e,t)}async function d(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const n=i.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}const c={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function h(e){const{portal:t,isOrgItem:n,itemControl:r}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!n&&!!i?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}n.d(t,["mm",0,c])},25927(e,t,n){n.d(t,{A:()=>a});var r=n(32198),i=n(91429),s=n(86738),o=n(54238);let a=class extends o.A{constructor(e){super(e),this.layoutGeometry=null}};(0,r.Cg)([(0,i.MZ)({type:s.A,json:{write:!0}})],a.prototype,"layoutGeometry",void 0),a=(0,r.Cg)([(0,i.$K)("esri.rest.knowledgeGraph.Entity")],a)},54238(e,t,n){n.d(t,{A:()=>o});var r=n(32198),i=n(91429),s=n(77901);let o=class extends s.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,r.Cg)([(0,i.MZ)({type:String,json:{write:!0}})],o.prototype,"typeName",void 0),(0,r.Cg)([(0,i.MZ)({type:String,json:{write:!0}})],o.prototype,"id",void 0),o=(0,r.Cg)([(0,i.$K)("esri.rest.knowledgeGraph.GraphNamedObject")],o)},77901(e,t,n){n.d(t,{A:()=>o});var r=n(32198),i=n(25482),s=n(91429);let o=class extends i.o{constructor(e){super(e),this.properties={}}};(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],o.prototype,"properties",void 0),o=(0,r.Cg)([(0,s.$K)("esri.rest.knowledgeGraph.GraphObject")],o)},42538(e,t,n){n.d(t,{A:()=>l});var r=n(32198),i=n(91429),s=n(16930),o=n(69622);let a=class extends o.A{constructor(e){super(e),this.openCypherQuery=""}};(0,r.Cg)([(0,i.MZ)()],a.prototype,"openCypherQuery",void 0),a=(0,r.Cg)([(0,i.$K)("esri.rest.knowledgeGraph.GraphQuery")],a);let l=class extends a{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,r.Cg)([(0,i.MZ)()],l.prototype,"bindParameters",void 0),(0,r.Cg)([(0,i.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,r.Cg)([(0,i.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,r.Cg)([(0,i.MZ)({type:s.A})],l.prototype,"outputSpatialReference",void 0),(0,r.Cg)([(0,i.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,r.Cg)([(0,i.$K)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},40662(e,t,n){n.d(t,{A:()=>o});var r=n(32198),i=n(91429),s=n(77901);let o=class extends s.A{constructor(e){super(e)}};o=(0,r.Cg)([(0,i.$K)("esri.rest.knowledgeGraph.ObjectValue")],o)},42095(e,t,n){n.d(t,{A:()=>a});var r=n(32198),i=n(25482),s=n(91429),o=n(77901);let a=class extends i.o{constructor(e){super(e),this.path=[]}};(0,r.Cg)([(0,s.MZ)({type:[o.A],json:{write:!0}})],a.prototype,"path",void 0),a=(0,r.Cg)([(0,s.$K)("esri.rest.knowledgeGraph.Path")],a)},23150(e,t,n){n.d(t,{A:()=>a});var r=n(32198),i=n(91429),s=n(82799),o=n(54238);let a=class extends o.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,r.Cg)([(0,i.MZ)({type:String,json:{write:!0}})],a.prototype,"originId",void 0),(0,r.Cg)([(0,i.MZ)({type:String,json:{write:!0}})],a.prototype,"destinationId",void 0),(0,r.Cg)([(0,i.MZ)({type:s.A,json:{write:!0}})],a.prototype,"layoutGeometry",void 0),a=(0,r.Cg)([(0,i.$K)("esri.rest.knowledgeGraph.Relationship")],a)},2272(e,t,n){n.d(t,{Dl:()=>u,gf:()=>d,jV:()=>l,lF:()=>p});var r=n(92602),i=n(70333),s=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function p(e,t,n){const r={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[i]=s.map(e=>p(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?s:JSON.stringify(s);else r[i]=s}return r}async function d(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&r.A.request.useIdentity&&await Promise.all([n.e(5620),n.e(8971),n.e(7715)]).then(()=>n(50148));const l=await i.id.getCredential(e,s);return l?.token}},62046(e,t,n){n.d(t,{Fe:()=>y,KU:()=>b,Nk:()=>u,X5:()=>s});var r=n(68197),i=n(93397);function s(e,t,n){if(!e)return;const r=(0,i.lW)(e),s=function(e){const t=(0,i.lW)(e);if("CIMTextSymbol"===t?.type)return t.height??0;let n=0;if(t?.symbolLayers)for(const e of t.symbolLayers)(0,i.MM)(e)&&null!=e.size&&e.size>n?n=e.size:(0,i.mA)(e)&&null!=e.width&&e.width>n?n=e.width:(0,i.jn)(e);return n}(e);0!==s?o(r,t/s,!1,n):function(e,t){if(e)if("CIMTextSymbol"!==e.type){if(e.symbolLayers)for(const n of e.symbolLayers)switch(n.type){case"CIMPictureMarker":case"CIMVectorMarker":n.size=t;break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":n.width=t}}else e.height=t}(r,t)}function o(e,t,n,r){if(e)if("CIMTextSymbol"!==e.type){if(n&&e.effects)for(const n of e.effects)l(n,t);if(e.symbolLayers)for(const n of e.symbolLayers){switch(n.type){case"CIMPictureMarker":case"CIMVectorMarker":a(n,t,r);break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":!r?.preserveOutlineWidth&&n.width&&(n.width*=t);break;case"CIMPictureFill":n.height&&(n.height*=t),n.offsetX&&(n.offsetX*=t),n.offsetY&&(n.offsetY*=t);break;case"CIMHatchFill":o(n.lineSymbol,t,!0,{...r,preserveOutlineWidth:!1}),n.offsetX&&(n.offsetX*=t),n.offsetY&&(n.offsetY*=t),n.separation&&(n.separation*=t)}if(n.effects)for(const e of n.effects)l(e,t)}}else null!=e.height&&(e.height*=t)}function a(e,t,n){if(e&&(e.markerPlacement&&function(e,t){switch((0,i.zr)(e)&&e.offset&&(e.offset*=t),e.type){case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineSameSize":if(e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.placementTemplate&&e.placementTemplate.length){const n=e.placementTemplate.map(e=>e*t);e.placementTemplate=n}break;case"CIMMarkerPlacementAlongLineVariableSize":if(e.maxRandomOffset&&(e.maxRandomOffset*=t),e.placementTemplate&&e.placementTemplate.length){const n=e.placementTemplate.map(e=>e*t);e.placementTemplate=n}break;case"CIMMarkerPlacementOnLine":e.startPointOffset&&(e.startPointOffset*=t);break;case"CIMMarkerPlacementAtExtremities":e.offsetAlongLine&&(e.offsetAlongLine*=t);break;case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementOnVertices":break;case"CIMMarkerPlacementAtRatioPositions":e.beginPosition&&(e.beginPosition*=t),e.endPosition&&(e.endPosition*=t);break;case"CIMMarkerPlacementPolygonCenter":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMMarkerPlacementInsidePolygon":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.stepX&&(e.stepX*=t),e.stepY&&(e.stepY*=t)}}(e.markerPlacement,t),e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.anchorPoint&&"Absolute"===e.anchorPointUnits&&(e.anchorPoint={x:e.anchorPoint.x*t,y:e.anchorPoint.y*t}),e.size=null!=e.size?e.size*t:0,"CIMVectorMarker"===e.type&&e.markerGraphics))for(const r of e.markerGraphics)e.scaleSymbolsProportionally||o(r.symbol,t,!0,n)}function l(e,t){if(!(0,i.Kq)(e))switch(e.type){case"CIMGeometricEffectArrow":case"CIMGeometricEffectDonut":e.width&&(e.width*=t);break;case"CIMGeometricEffectBuffer":e.size&&(e.size*=t);break;case"CIMGeometricEffectCut":e.beginCut&&(e.beginCut*=t),e.endCut&&(e.endCut*=t),e.middleCut&&(e.middleCut*=t);break;case"CIMGeometricEffectDashes":if(e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.dashTemplate&&e.dashTemplate.length){const n=e.dashTemplate.map(e=>e*t);e.dashTemplate=n}break;case"CIMGeometricEffectExtension":case"CIMGeometricEffectJog":case"CIMGeometricEffectRadial":e.length&&(e.length*=t);break;case"CIMGeometricEffectMove":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":e.offset&&(e.offset*=t);break;case"CIMGeometricEffectRegularPolygon":e.radius&&(e.radius*=t);break;case"CIMGeometricEffectTaperedPolygon":e.fromWidth&&(e.fromWidth*=t),e.length&&(e.length*=t),e.toWidth&&(e.toWidth*=t);break;case"CIMGeometricEffectWave":e.amplitude&&(e.amplitude*=t),e.period&&(e.period*=t)}}function u(e){const t=[];return p((0,i.lW)(e),t),t.length?new r.A((0,i.e6)(t[0])):null}function p(e,t){if(!e)return;let n;n="CIMTextSymbol"===e.type?e.symbol:e;const r="CIMPolygonSymbol"===e.type;if(n?.symbolLayers)for(const e of n.symbolLayers)if(!(e.colorLocked||r&&((0,i.mA)(e)||(0,i.MM)(e)&&e.markerPlacement&&(0,i.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&d(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{p(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":d(t,e.color);break;case"CIMGradientFill":c(t,e);break;case"CIMHatchFill":p(e.lineSymbol,t)}}function d(e,t){for(const n of e)if(n.join(".")===t.join("."))return;e.push(t)}function c(e,t){const n=t.colorRamp?.type;switch(n){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&h(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":h(e,t.colorRamp)}}function h(e,t){t&&(t.fromColor&&d(e,t.fromColor),t.toColor&&d(e,t.toColor))}function y(e,t,n){t instanceof r.A||(t=new r.A(t));const s=(0,i.lW)(e);s&&f(s,t,n)}function f(e,t,n){if(!e)return;let r;r="CIMTextSymbol"===e.type?e.symbol:e;const s="CIMPolygonSymbol"===r?.type;if(r?.symbolLayers)for(const e of r.symbolLayers){if(e.colorLocked)continue;if(s)if(n){const{layersToColor:t}=n;if(((0,i.mA)(e)||(0,i.MM)(e)&&e.markerPlacement&&(0,i.zr)(e.markerPlacement))&&"fill"===t||(0,i.jn)(e)&&"outline"===t)continue}else if((0,i.mA)(e)||(0,i.MM)(e)&&e.markerPlacement&&(0,i.zr)(e.markerPlacement))continue;const r=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=r;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{f(e.symbol,t,n)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=r;break;case"CIMGradientFill":m(e,t);break;case"CIMHatchFill":f(e.lineSymbol,t,n)}}}function m(e,t){const n=e.colorRamp?.type;switch(n){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&g(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":g(e.colorRamp,t)}}function g(e,t){if(e&&(e.fromColor&&(e.fromColor=t.toArray()),e.toColor)){const n=t.clone();n.a=0,e.toColor=n.toArray()}}function b(e,t,n=!1){const r=(0,i.lW)(e);if(n&&(t=360-t),"CIMTextSymbol"!==r?.type){if("CIMPointSymbol"===r?.type&&r.symbolLayers){const e=t-(r.angle||0);for(const t of r.symbolLayers)if((0,i.MM)(t)){let n=t.rotation||0;t.rotateClockwise?n-=e:n+=e,t.rotation=n}r.angle=t}}else r.angle=t}},37531(e,t,n){n.d(t,{dt:()=>c,GG:()=>g,UQ:()=>m,Sx:()=>p});var r=n(68197),i=n(60999),s=(n(90629),n(51850)),o=(n(76369),n(62046)),a=(n(2741),n(56507),n(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new a.q(1e3),new r.A([128,128,128]);var l=n(28975),u=n(33910);function p(e,t){if(!e)return null;let n=null;return(0,u.wk)(e)?n=function(e){const t=e.symbolLayers;if(!t)return null;let n=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(n="water"===e.type?e.color:e.material?e.material.color:null)}),n?new r.A(n):null}(e):(0,u.$y)(e)&&(n="cim"===e.type?(0,o.Nk)(e):e.color?new r.A(e.color):null),n?d(n,t):null}function d(e,t){if(null==t||null==e)return e;const n=e.toRgba();return n[3]=n[3]*t,new r.A(n)}function c(e,t,n){e&&(t||null!=n)&&(t&&(t=new r.A(t)),(0,u.wk)(e)?function(e,t,n){const i=e.symbolLayers;if(!i)return;const s=(e,i=!1)=>{let s=t??e??null;return null!=n?.override&&(!s&&i&&(s=new r.A([255,255,255])),s&&(s.a=n.override)),d(s,n?.add)};i.forEach(e=>{if("water"===e.type)return void(e.color=d(e.color,n?.add));const t=null!=e.material?e.material.color:null,r=s(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new l.A({color:r}):e.material.color=r,"outline"in e&&e.outline?.color&&null!=n?.add&&(e.outline.color=d(e.outline.color,n.add)),"marker"in e&&null!=e.marker&&(e.marker.color=s(e.marker.color))})}(e,t,n):(0,u.$y)(e)&&function(e,t,n){t=t??e.color,null!=n?.override&&t&&(t.a=n.override),t&&(e.color=d(t,n?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=d(e.outline.color,n?.add))}(e,t,n))}function h(e){for(const t of e)if("number"==typeof t)return t;return null}function y(e,t,n){for(let r=0;r<3;r++){const i=e[r];switch(i){case"symbol-value":{const e=n[r];return null!=e?e/t[r]:1}case"proportional":break;default:if(null!=i&&t[r])return i/t[r]}}return null}function f(e,t,n,r){switch(e){case"proportional":return n*r;case"symbol-value":return null!=t?t:n;default:return e}}async function m(e,t){if(e&&t)return(0,u.wk)(e)?async function(e,t){const r=e.symbolLayers;r&&await(0,i.jJ)(r,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){const n=t[2];"number"==typeof n&&(e.size=n)}(e,t);break;case"icon":case"line":case"text":!function(e,t){const n=h(t);null!=n&&(e.size=n)}(e,t);break;case"path":!function(e,t){const n=y(t,s.Un,[e.width,void 0,e.height]);null!=n&&(e.width=f(t[0],e.width,1,n),e.height=f(t[2],e.height,1,n))}(e,t);break;case"object":await async function(e,t){const{resourceSize:r,symbolSize:i}=await async function(e){const{computeObjectLayerResourceSize:t}=await n.e(5404).then(()=>n(95404)),r=await t(e,10),{width:i,height:s,depth:o}=e,a=[i,o,s];let l=1;for(let e=0;e<3;e++){const t=a[e];if(null!=t){l=t/r[e];break}}for(let e=0;e<3;e++)null==a[e]&&(a[e]=r[e]*l);return{resourceSize:r,symbolSize:a}}(e),s=y(t,r,i);null!=s&&(e.width=f(t[0],i[0],r[0],s),e.depth=f(t[1],i[1],r[1],s),e.height=f(t[2],i[2],r[2],s))}(e,t)}}(e,t))}(e,t):void((0,u.$y)(e)&&function(e,t){const n=h(t);if(null!=n)switch(e.type){case"simple-marker":e.size=n;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=n,e.height=n*t):(e.width=n*t,e.height=n);break}case"simple-line":e.width=n;break;case"text":e.font.size=n;break;case"simple-fill":case"picture-fill":break;case"cim":(0,o.X5)(e,n,{preserveOutlineWidth:!1})}}(e,t))}function g(e,t,n){if(e&&null!=t)if((0,u.wk)(e)){const r=e.symbolLayers;r&&r.forEach(e=>{if("object"===e.type)switch(n){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,u.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,o.KU)(e,t,!0)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9794],{89794(a,e,t){t.r(e),t.d(e,{GlobalIlluminationPassParameters:()=>l.G,build:()=>l.c,defaultColorBleedWeight:()=>.15,defaultEmissionBoostFactor:()=>2.5,defaultRayMarchMaxReach:()=>.5,defaultRayMarchMaxReachEmissionWeight:()=>1,defaultRayMarchMaxSteps:()=>16,defaultRayMarchMinReach:()=>.15,defaultRayMarchMinReachEmissionWeight:()=>1,defaultRayMarchWorldReach:()=>25}),t(82048),t(92573),t(65261),t(98619),t(70893),t(34845),t(45324),t(33094),t(20304),t(31821),t(58029),t(12791),t(63761),t(94046),t(72458),t(18519),t(63907),t(65786),t(14113);var l=t(587)}}]);