@arcgis/core 5.0.0-next.57 → 5.0.0-next.59

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 (351) hide show
  1. package/Graphic.d.ts +2 -2
  2. package/Viewpoint.d.ts +1 -1
  3. package/applications/Components/arcadeFeatureUtils.d.ts +20 -1
  4. package/applications/Components/arcadeFeatureUtils.js +1 -1
  5. package/applications/Urban/meshUtils.d.ts +2 -2
  6. package/arcade.d.ts +1 -1
  7. package/arcade.js +1 -1
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/0bd73a66baea2f52e8a6.js +1 -0
  10. package/assets/esri/core/workers/chunks/18ce7b1559a45d017c45.js +1 -0
  11. package/assets/esri/core/workers/chunks/262c5794650853457acc.js +1 -0
  12. package/assets/esri/core/workers/chunks/3405a23973f9e701a4d6.js +1 -0
  13. package/assets/esri/core/workers/chunks/352c674730c7b7258ae3.js +1 -0
  14. package/assets/esri/core/workers/chunks/55a9ea536c64976c3409.js +1 -0
  15. package/assets/esri/core/workers/chunks/62752cd6821959cf6751.js +1 -0
  16. package/assets/esri/core/workers/chunks/72e3a48aa365542b0689.js +1 -0
  17. package/assets/esri/core/workers/chunks/{5f9e64f00329cb646f0c.js → 741d170187e58e81584d.js} +1 -1
  18. package/assets/esri/core/workers/chunks/a6b1e3ec30f6d641aea9.js +1 -0
  19. package/assets/esri/core/workers/chunks/{da2c41ac0f82f32013c1.js → a7aa87e2c4197ba595ef.js} +10 -10
  20. package/assets/esri/core/workers/chunks/{d76513a6260d9ec4ea25.js → bf82bb1cdd8b31e7f2aa.js} +1 -1
  21. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  22. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  23. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  24. package/assets/esri/themes/base/widgets/_Attribution.scss +2 -2
  25. package/assets/esri/themes/base/widgets/_FeatureTable.scss +24 -0
  26. package/assets/esri/themes/dark/main.css +1 -1
  27. package/assets/esri/themes/light/main.css +1 -1
  28. package/assets/esri/themes/light/view.css +1 -1
  29. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable.json +1 -1
  30. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
  31. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
  32. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
  33. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
  34. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
  35. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
  36. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
  37. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
  38. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_en.json +1 -1
  39. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
  40. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
  41. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
  42. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
  43. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
  44. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
  45. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
  46. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
  47. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
  48. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
  49. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
  50. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
  51. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
  52. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
  53. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
  54. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
  55. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
  56. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
  57. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
  58. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
  59. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
  60. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
  61. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
  62. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
  63. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
  64. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
  65. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
  66. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
  67. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
  68. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
  69. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
  70. package/assets/esri/widgets/VideoPlayer/t9n/VideoPlayer_fr.json +1 -1
  71. package/chunks/lerc-wasm.js +1 -1
  72. package/config.js +1 -1
  73. package/core/workers/workerFactory.js +1 -1
  74. package/editing/sharedTemplates/executor/builders/offsetLine.js +1 -1
  75. package/editing/sharedTemplates/executor/builders/offsetPrimaryLine.js +1 -1
  76. package/editing/sharedTemplates/executor/builders/polygonBoundary.js +1 -1
  77. package/editing/sharedTemplates/executor/builders/polygonBoundaryTwoPoint.js +1 -1
  78. package/editing/sharedTemplates/executor/builders/polygonVertices.js +1 -1
  79. package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
  80. package/editing/sharedTemplates/executor/builders/support/shapeUtils.js +1 -1
  81. package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
  82. package/editing/sharedTemplates/executor/support/createPresetServiceEdit.js +1 -1
  83. package/geometry/Extent.d.ts +1 -1
  84. package/geometry/Mesh.d.ts +2 -2
  85. package/geometry/SpatialReference.js +1 -1
  86. package/geometry/geometryEngine.d.ts +3 -3
  87. package/geometry/{geometryEngineInterfaces.d.ts → geometryEngineTypes.d.ts} +1 -1
  88. package/geometry/operators/affineTransformOperator.d.ts +3 -3
  89. package/geometry/operators/alphaShapeOperator.d.ts +1 -1
  90. package/geometry/operators/areaOperator.d.ts +1 -1
  91. package/geometry/operators/boundaryOperator.d.ts +3 -3
  92. package/geometry/operators/bufferOperator.d.ts +1 -1
  93. package/geometry/operators/centroidOperator.d.ts +1 -1
  94. package/geometry/operators/clipOperator.d.ts +3 -3
  95. package/geometry/operators/containsOperator.d.ts +1 -1
  96. package/geometry/operators/convexHullOperator.d.ts +3 -3
  97. package/geometry/operators/crossesOperator.d.ts +1 -1
  98. package/geometry/operators/cutOperator.d.ts +2 -2
  99. package/geometry/operators/densifyOperator.d.ts +3 -3
  100. package/geometry/operators/differenceOperator.d.ts +3 -3
  101. package/geometry/operators/disjointOperator.d.ts +1 -1
  102. package/geometry/operators/distanceOperator.d.ts +1 -1
  103. package/geometry/operators/equalsOperator.d.ts +1 -1
  104. package/geometry/operators/generalizeOperator.d.ts +3 -3
  105. package/geometry/operators/geodesicBufferOperator.d.ts +1 -2
  106. package/geometry/operators/geodesicProximityOperator.d.ts +2 -5
  107. package/geometry/operators/geodeticAreaOperator.d.ts +1 -2
  108. package/geometry/operators/geodeticDensifyOperator.d.ts +3 -4
  109. package/geometry/operators/geodeticDistanceOperator.d.ts +1 -2
  110. package/geometry/operators/geodeticLengthOperator.d.ts +1 -2
  111. package/geometry/operators/geodeticUtilsOperator.d.ts +1 -1
  112. package/geometry/operators/graphicBufferOperator.d.ts +1 -1
  113. package/geometry/operators/integrateOperator.d.ts +2 -2
  114. package/geometry/operators/intersectionOperator.d.ts +3 -3
  115. package/geometry/operators/intersectsOperator.d.ts +1 -1
  116. package/geometry/operators/isNearOperator.d.ts +1 -1
  117. package/geometry/operators/labelPointOperator.d.ts +1 -1
  118. package/geometry/operators/lengthOperator.d.ts +1 -1
  119. package/geometry/operators/linesToPolygonsOperator.d.ts +1 -1
  120. package/geometry/operators/locateBetweenOperator.d.ts +2 -2
  121. package/geometry/operators/minimumBoundingCircleOperator.d.ts +1 -1
  122. package/geometry/operators/multiPartToSinglePartOperator.d.ts +2 -2
  123. package/geometry/operators/offsetOperator.d.ts +3 -3
  124. package/geometry/operators/overlapsOperator.d.ts +1 -1
  125. package/geometry/operators/projectOperator.d.ts +4 -6
  126. package/geometry/operators/proximityOperator.d.ts +2 -2
  127. package/geometry/operators/relateOperator.d.ts +1 -1
  128. package/geometry/operators/shapePreservingProjectOperator.d.ts +3 -3
  129. package/geometry/operators/simplifyOGCOperator.d.ts +3 -3
  130. package/geometry/operators/simplifyOperator.d.ts +3 -3
  131. package/geometry/operators/symmetricDifferenceOperator.d.ts +3 -3
  132. package/geometry/operators/touchesOperator.d.ts +1 -1
  133. package/geometry/operators/{support/proximityResult.d.ts → types.d.ts} +18 -3
  134. package/geometry/operators/unionOperator.d.ts +3 -3
  135. package/geometry/operators/withinOperator.d.ts +1 -1
  136. package/geometry/projection/projectBoundingSphere.js +1 -1
  137. package/geometry/support/curves/curveUtils.js +1 -1
  138. package/geometry/support/geodesicUtils.d.ts +15 -2
  139. package/geometry/support/jsonUtils.d.ts +1 -1
  140. package/geometry/support/meshUtils/types.d.ts +34 -0
  141. package/geometry/support/meshUtils.d.ts +4 -7
  142. package/geometry/support/sphere.js +1 -1
  143. package/geometry/support/webMercatorUtils.d.ts +1 -1
  144. package/geometry/types.d.ts +23 -1
  145. package/geometry.d.ts +1 -1
  146. package/interfaces.d.ts +69 -72
  147. package/kernel.js +1 -1
  148. package/layers/CSVLayer.d.ts +0 -2
  149. package/layers/CatalogLayer.d.ts +1 -1
  150. package/layers/FeatureLayer.d.ts +1 -1
  151. package/layers/GeoJSONLayer.d.ts +1 -1
  152. package/layers/KnowledgeGraphLayer.js +1 -1
  153. package/layers/LinkChartLayer.js +1 -1
  154. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  155. package/layers/OGCFeatureLayer.d.ts +1 -1
  156. package/layers/OrientedImageryLayer.d.ts +1 -3
  157. package/layers/ParquetLayer.d.ts +1 -1
  158. package/layers/WFSLayer.d.ts +1 -1
  159. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  160. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  161. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +3 -3
  162. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  163. package/layers/knowledgeGraph/layerUtils.js +1 -1
  164. package/layers/mixins/APIKeyMixin.d.ts +2 -2
  165. package/layers/mixins/ArcGISImageService.d.ts +4 -3
  166. package/layers/mixins/BlendLayer.d.ts +16 -15
  167. package/layers/mixins/DisplayFilteredLayer.d.ts +6 -3
  168. package/layers/mixins/FeatureEffectLayer.d.ts +23 -21
  169. package/layers/mixins/FeatureLayerBase.d.ts +23 -20
  170. package/layers/mixins/ImageryTileMixin.d.ts +5 -5
  171. package/layers/mixins/PortalLayer.d.ts +7 -7
  172. package/layers/mixins/RasterPresetRendererMixin.d.ts +6 -3
  173. package/layers/mixins/SceneService.d.ts +2 -2
  174. package/layers/mixins/TemporalLayer.d.ts +8 -7
  175. package/layers/mixins/TemporalSceneLayer.d.ts +2 -2
  176. package/layers/mixins/TrackableLayer.d.ts +4 -4
  177. package/layers/ogc/wfsUtils.d.ts +1 -1
  178. package/layers/raster/formats/Lerc.js +1 -1
  179. package/layers/raster/functions/creators/createSurfaceFunctions.d.ts +2 -2
  180. package/layers/support/DisplayFilterInfo.d.ts +7 -7
  181. package/layers/support/FeatureReductionCluster.d.ts +5 -5
  182. package/layers/support/FieldsIndex.d.ts +1 -2
  183. package/layers/support/RasterBandInfo.d.ts +1 -1
  184. package/layers/support/RasterInfo.d.ts +2 -2
  185. package/layers/support/RasterSensorInfo.d.ts +1 -1
  186. package/layers/support/Sublayer.d.ts +3 -3
  187. package/layers/support/SubtypeSublayer.d.ts +1 -1
  188. package/layers/support/TrackInfo.d.ts +2 -2
  189. package/layers/support/arcgisLayerUrl.js +1 -1
  190. package/layers/support/fieldUtils.d.ts +0 -1
  191. package/layers/support/source/QueryTableDataSource.d.ts +2 -2
  192. package/layers/support/types.d.ts +2 -2
  193. package/layers/types.d.ts +1 -1
  194. package/package.json +2 -2
  195. package/popup/FieldInfo.d.ts +8 -8
  196. package/popup/content/AttachmentsContent.d.ts +2 -2
  197. package/popup/content/CustomContent.d.ts +1 -1
  198. package/portal/interfaces.d.ts +2 -2
  199. package/portal/support/resourceUtils.d.ts +6 -7
  200. package/rest/featureService/types.d.ts +1 -1
  201. package/rest/geometryService.d.ts +2 -2
  202. package/rest/imageService.d.ts +1 -1
  203. package/rest/knowledgeGraph/GraphAnyValue.d.ts +1 -1
  204. package/rest/query/support/AttachmentInfo.d.ts +1 -1
  205. package/rest/query.d.ts +1 -1
  206. package/rest/support/BufferParameters.d.ts +1 -1
  207. package/rest/support/DataLayer.d.ts +1 -1
  208. package/rest/support/DensifyParameters.d.ts +1 -1
  209. package/rest/support/DistanceParameters.d.ts +1 -1
  210. package/rest/support/FeatureSet.d.ts +2 -2
  211. package/rest/support/FindImagesParameters.d.ts +1 -1
  212. package/rest/support/GeneralizeParameters.d.ts +1 -1
  213. package/rest/support/IdentifyParameters.d.ts +1 -1
  214. package/rest/support/ImageGPSInfoParameters.d.ts +1 -1
  215. package/rest/support/ImageMeasureResultAreaValue.d.ts +1 -1
  216. package/rest/support/ImageToMapMultirayParameters.d.ts +1 -1
  217. package/rest/support/OffsetParameters.d.ts +1 -1
  218. package/rest/support/ProjectParameters.d.ts +1 -1
  219. package/rest/support/Query.d.ts +1 -1
  220. package/rest/support/QueryMixin.d.ts +1 -1
  221. package/rest/support/RelationParameters.d.ts +1 -1
  222. package/rest/support/RelationshipQuery.d.ts +1 -1
  223. package/rest/support/TopFeaturesQuery.d.ts +1 -1
  224. package/smartMapping/labels/bins.d.ts +3 -6
  225. package/smartMapping/labels/clusters.d.ts +2 -2
  226. package/smartMapping/popup/clusters.d.ts +4 -4
  227. package/smartMapping/popup/templates.d.ts +4 -4
  228. package/smartMapping/renderers/color.d.ts +6 -6
  229. package/smartMapping/renderers/size.d.ts +6 -6
  230. package/smartMapping/statistics/support/ageUtils.d.ts +5 -5
  231. package/smartMapping/statistics/types.d.ts +5 -5
  232. package/smartMapping/types.d.ts +9 -1
  233. package/support/revision.js +1 -1
  234. package/unionTypes.d.ts +1 -1
  235. package/views/2d/MapViewConstraints.d.ts +5 -4
  236. package/views/2d/engine/webgl/Painter.js +1 -1
  237. package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +1 -1
  238. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  239. package/views/2d/engine/webgl/shaderGraph/graph/GlslGraphWriter.js +1 -1
  240. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
  241. package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
  242. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  243. package/views/2d/layers/features/PipelineConnectionHandlers.js +1 -1
  244. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  245. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  246. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  247. package/views/3d/layers/I3SMeshView3D.js +1 -1
  248. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  249. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  250. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  251. package/views/3d/layers/i3s/I3SNode.js +1 -1
  252. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  253. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  254. package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
  255. package/views/3d/support/ElevationRange.js +1 -1
  256. package/views/3d/terrain/TerrainSurface.js +1 -1
  257. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueConfiguration.js +1 -1
  258. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  259. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  260. package/views/BreakpointsOwner.d.ts +1 -1
  261. package/views/LinkChartView.d.ts +1 -2
  262. package/views/MapView.d.ts +1 -2
  263. package/views/SceneView.d.ts +1 -2
  264. package/views/View.d.ts +1 -1
  265. package/views/Viewport2DMixin.d.ts +1 -1
  266. package/views/draw/MultipointDrawAction.d.ts +1 -1
  267. package/views/draw/MultipointDrawAction.js +1 -1
  268. package/views/draw/PointDrawAction.d.ts +1 -1
  269. package/views/draw/PointDrawAction.js +1 -1
  270. package/views/draw/PolygonDrawAction.d.ts +1 -1
  271. package/views/draw/PolygonDrawAction.js +1 -1
  272. package/views/draw/PolylineDrawAction.d.ts +1 -1
  273. package/views/draw/PolylineDrawAction.js +1 -1
  274. package/views/draw/SegmentDrawAction.d.ts +1 -1
  275. package/views/draw/SegmentDrawAction.js +1 -1
  276. package/views/input/{IViewEvents.js → mouseButtons.js} +1 -1
  277. package/views/input/types.d.ts +602 -1
  278. package/views/layers/BuildingSceneLayerView.d.ts +1 -1
  279. package/views/layers/FeatureLayerViewMixin.d.ts +1 -1
  280. package/views/layers/ImageryLayerViewMixin.d.ts +1 -1
  281. package/views/layers/MediaLayerViewMixin.d.ts +1 -1
  282. package/views/layers/PointCloudLayerView.d.ts +1 -1
  283. package/views/layers/SceneLayerView.d.ts +2 -2
  284. package/views/types.d.ts +148 -2
  285. package/webdoc/geotriggersInfo/FeatureFilter.d.ts +1 -1
  286. package/webscene/support/FeatureReferenceObjectId.d.ts +1 -1
  287. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +1 -2
  288. package/widgets/BasemapLayerList.d.ts +3 -4
  289. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +1 -1
  290. package/widgets/CatalogLayerList.d.ts +2 -4
  291. package/widgets/Directions/DirectionsViewModel.d.ts +1 -1
  292. package/widgets/Editor/types.d.ts +1 -1
  293. package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
  294. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +46 -5
  295. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  296. package/widgets/FeatureTable/FieldColumn.js +1 -1
  297. package/widgets/FeatureTable/Grid/EditorColumn.js +1 -1
  298. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  299. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  300. package/widgets/FeatureTable/VisibleElements.d.ts +30 -9
  301. package/widgets/FeatureTable/VisibleElements.js +1 -1
  302. package/widgets/FeatureTable/support/AttachmentsViewOptions.d.ts +1 -1
  303. package/widgets/FeatureTable/support/FeatureStore.d.ts +1 -0
  304. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  305. package/widgets/FeatureTable/support/interfaces.d.ts +2 -2
  306. package/widgets/FeatureTable.d.ts +46 -5
  307. package/widgets/FeatureTable.js +1 -1
  308. package/widgets/LayerList/LayerListViewModel.d.ts +9 -10
  309. package/widgets/LayerList/ListItem.d.ts +9 -11
  310. package/widgets/LayerList/ListItemPanel.d.ts +1 -1
  311. package/widgets/LayerList.d.ts +7 -4
  312. package/widgets/Legend/LegendViewModel.d.ts +5 -5
  313. package/widgets/Legend/support/ActiveLayerInfo.d.ts +5 -5
  314. package/widgets/Legend.d.ts +4 -4
  315. package/widgets/Popup/types.d.ts +3 -3
  316. package/widgets/Popup.d.ts +3 -3
  317. package/widgets/TableList/TableListViewModel.d.ts +2 -4
  318. package/widgets/TableList.d.ts +1 -1
  319. package/widgets/UtilityNetworkTrace/types.d.ts +1 -1
  320. package/assets/esri/core/workers/chunks/052ded41dc06c93ec0a7.js +0 -1
  321. package/assets/esri/core/workers/chunks/30184e39129d9c66ea54.js +0 -1
  322. package/assets/esri/core/workers/chunks/5340887a4a48bde3407a.js +0 -1
  323. package/assets/esri/core/workers/chunks/537de53ef1e9101468f5.js +0 -1
  324. package/assets/esri/core/workers/chunks/94f02082a006003ef5a9.js +0 -1
  325. package/assets/esri/core/workers/chunks/a1f264abbd6354c333bf.js +0 -1
  326. package/assets/esri/core/workers/chunks/d3db7244fac7398cc700.js +0 -1
  327. package/assets/esri/core/workers/chunks/d94a2ad5a91de7086fbe.js +0 -1
  328. package/assets/esri/core/workers/chunks/ed38c1043e6a83f49f93.js +0 -1
  329. package/geometry/geodesicUtils.d.ts +0 -19
  330. package/geometry/operators/support/geodeticCurveType.d.ts +0 -2
  331. package/geometry/operators/support/projectionTransformation.d.ts +0 -16
  332. package/geometry/support/MeshVertexSpace.d.ts +0 -4
  333. package/geometry/support/meshUtils/elevation.d.ts +0 -16
  334. package/geometry/support/meshUtils/elevationSampler.d.ts +0 -9
  335. package/geometry/support/meshUtils/georeference.d.ts +0 -10
  336. package/geometry/support/typeUtils.d.ts +0 -16
  337. package/smartMapping/popup/support/utils.d.ts +0 -13
  338. package/smartMapping/support/binningUtils.d.ts +0 -11
  339. package/smartMapping/support/clusterUtils.d.ts +0 -11
  340. package/smartMapping/support/utils.d.ts +0 -4
  341. package/views/2d/constraints/GeometryConstraint.d.ts +0 -4
  342. package/views/HitTestItem3D.d.ts +0 -20
  343. package/views/HitTestOptions.d.ts +0 -25
  344. package/views/IBreakpointsOwner.d.ts +0 -55
  345. package/views/IObjectId.d.ts +0 -2
  346. package/views/ISceneView.d.ts +0 -5
  347. package/views/IView.d.ts +0 -43
  348. package/views/input/IViewEvents.d.ts +0 -602
  349. /package/views/draw/input/{CursorUpdateEvents.d.ts → CursorUpdateEvent.d.ts} +0 -0
  350. /package/views/draw/input/{CursorUpdateEvents.js → CursorUpdateEvent.js} +0 -0
  351. /package/views/layers/{HighlightableLayerView.d.ts → types.d.ts} +0 -0
@@ -78,10 +78,13 @@ export interface LayerListEvents extends LayerListViewModelEvents {}
78
78
  * >
79
79
  * > **Notes**
80
80
  * >
81
- * > The LayerList does not emit an event when the visibility of a layer changes. To respond to layer visibility changes, watch the layer's [Layer#visible](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#visible) property or the [Map#allLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#allLayers) property with [reactiveUtils](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html).
81
+ * > The LayerList does not emit an event when the visibility of a layer changes. To respond to layer visibility changes,
82
+ * > watch the [Layer#visible](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#visible) property or the [Map#allLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#allLayers) property with [reactiveUtils](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html).
82
83
  * > To hide layers in the map from the LayerList widget, you must set the [Layer#listMode](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#listMode) property on the desired layers to `hide`.
83
- * > When a [KnowledgeGraphLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KnowledgeGraphLayer.html) is present in the map, the LayerList widget will display the knowledge graph layer [KnowledgeGraphLayer#tables](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KnowledgeGraphLayer.html#tables) as a [tableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#tableList) [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html).
84
- * > When a [CatalogLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html) is present in the map, the LayerList widget will display the catalog layer [CatalogLayer#dynamicGroupLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html#dynamicGroupLayer) in a [catalogLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#catalogLayerList) [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html).
84
+ * > When a [KnowledgeGraphLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KnowledgeGraphLayer.html) is present in the map, the LayerList widget will display the
85
+ * > [KnowledgeGraphLayer#tables](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KnowledgeGraphLayer.html#tables) as a [tableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#tableList) [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html).
86
+ * > When a [CatalogLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html) is present in the map, the LayerList widget will display the
87
+ * > [CatalogLayer#dynamicGroupLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CatalogLayer.html#dynamicGroupLayer) in a [catalogLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#catalogLayerList) [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html).
85
88
  *
86
89
  * @since 4.2
87
90
  * @see [Sample - LayerList widget](https://developers.arcgis.com/javascript/latest/sample-code/widgets-layerlist/)
@@ -263,7 +266,7 @@ export default class LayerList extends LayerListSuperclass {
263
266
  set icon(value: Icon["icon"] | null | undefined);
264
267
  /**
265
268
  * [KnowledgeGraphLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KnowledgeGraphLayer.html) specific properties.
266
- * Knowledge graph layers will display sublayer [KnowledgeGraphLayer#tables](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KnowledgeGraphLayer.html#tables)
269
+ * Knowledge graph layers will display [KnowledgeGraphLayer#tables](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KnowledgeGraphLayer.html#tables)
267
270
  * as an expandable [tableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#tableList) in the LayerList widget.
268
271
  * This tables list item will only be displayed when knowledge graph layers with tables are loaded in the map.
269
272
  * These are the properties that are used to configure the [tableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#tableList).
@@ -87,12 +87,12 @@ export default class LegendViewModel extends Accessor {
87
87
  get loading(): boolean;
88
88
  /**
89
89
  * If a layer uses a unique value render, only features that satisfy the layer's
90
- * [definition expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression)
90
+ * [definition expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#definitionExpression)
91
91
  * will be displayed in the legend when set to true.
92
92
  *
93
93
  * @default false
94
94
  * @since 4.34
95
- * @see [FeatureLayer#definitionExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression)
95
+ * @see [FeatureLayerBase#definitionExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#definitionExpression)
96
96
  */
97
97
  accessor respectLayerDefinitionExpression: boolean;
98
98
  /**
@@ -101,11 +101,11 @@ export default class LegendViewModel extends Accessor {
101
101
  * By default, a layer's legend elements **will
102
102
  * not render** in the legend given the following conditions:
103
103
  *
104
- * - The layer's [FeatureLayer#legendEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#legendEnabled) property
104
+ * - The [FeatureLayer#legendEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#legendEnabled) property
105
105
  * is set to `false`.
106
106
  * - If the view's scale is outside the visibility range
107
- * defined by the layer's [FeatureLayer#minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#minScale) and
108
- * [FeatureLayer#maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#maxScale) properties.
107
+ * defined by the [ScaleRangeLayer#minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#minScale) and
108
+ * [ScaleRangeLayer#maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#maxScale) properties.
109
109
  *
110
110
  * When the `respectLayerVisibility` property of the legend is set to `false`, the legend elements for each
111
111
  * layer in the map will always display, thus disregarding the `minScale`, `maxScale`,
@@ -50,7 +50,7 @@ export default abstract class ActiveLayerInfo extends Accessor {
50
50
  * Indicates if the legend's display of the layer's renderer is driven by the scale of the view.
51
51
  * This is true of [Sublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html) renderers, any renderer that uses
52
52
  * a `valueExpression` (Arcade expression), [DotDensityRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html), and
53
- * layers that have [clustering](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#featureReduction) enabled.
53
+ * layers that have [FeatureReductionLayer#featureReduction](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureReductionLayer.html#featureReduction) enabled.
54
54
  */
55
55
  get isScaleDriven(): boolean;
56
56
  /** The layer represented by the ActiveLayerInfo object. */
@@ -81,11 +81,11 @@ export default abstract class ActiveLayerInfo extends Accessor {
81
81
  * By default, a layer's legend elements **will
82
82
  * not render** in the legend given the following conditions:
83
83
  *
84
- * - The layer's [FeatureLayer#legendEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#legendEnabled) property
84
+ * - The [FeatureLayer#legendEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#legendEnabled) property
85
85
  * is set to `false`.
86
86
  * - If the view's scale is outside the visibility range
87
- * defined by the layer's [FeatureLayer#minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#minScale) and
88
- * [FeatureLayer#maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#maxScale) properties.
87
+ * defined by the [ScaleRangeLayer#minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#minScale) and
88
+ * [ScaleRangeLayer#maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#maxScale) properties.
89
89
  *
90
90
  * When the `respectLayerVisibility` property of the legend is set to `false`, the legend elements for each
91
91
  * layer in the map will always display, thus disregarding the `minScale`, `maxScale`,
@@ -117,7 +117,7 @@ export default abstract class ActiveLayerInfo extends Accessor {
117
117
  /**
118
118
  * The text string that represents the legend's title. This value is read from the `layerInfo` of the
119
119
  * corresponding layer in the legend. If not provided, this value comes from the
120
- * [FeatureLayer#title](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#title) of the layer.
120
+ * [Layer#title](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#title).
121
121
  */
122
122
  accessor title: string | null | undefined;
123
123
  /**
@@ -260,12 +260,12 @@ export default class Legend extends Widget {
260
260
  accessor layerInfos: LayerInfo[];
261
261
  /**
262
262
  * If a layer uses a unique value render, only features that satisfy the layer's
263
- * [definition expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression)
263
+ * [definition expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#definitionExpression)
264
264
  * will be displayed in the legend when set to true.
265
265
  *
266
266
  * @default false
267
267
  * @since 4.30
268
- * @see [FeatureLayer#definitionExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression)
268
+ * @see [FeatureLayerBase#definitionExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#definitionExpression)
269
269
  */
270
270
  accessor respectLayerDefinitionExpression: boolean;
271
271
  /**
@@ -277,8 +277,8 @@ export default class Legend extends Widget {
277
277
  * - The layer's [FeatureLayer#legendEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#legendEnabled) property
278
278
  * is set to `false`.
279
279
  * - If the view's scale is outside the visibility range
280
- * defined by the layer's [FeatureLayer#minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#minScale) and
281
- * [FeatureLayer#maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#maxScale) properties.
280
+ * defined by the layer's [ScaleRangeLayer#minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#minScale) and
281
+ * [ScaleRangeLayer#maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#maxScale) properties.
282
282
  *
283
283
  * When the `respectLayerVisibility` property of the legend is set to `false`, the legend elements for each
284
284
  * layer in the map will always display, thus disregarding the `minScale`, `maxScale`,
@@ -4,7 +4,7 @@ import type Point from "../../geometry/Point.js";
4
4
  import type ActionButton from "../../support/actions/ActionButton.js";
5
5
  import type ActionToggle from "../../support/actions/ActionToggle.js";
6
6
  import type { AbortOptions } from "../../core/promiseUtils.js";
7
- import type { ClickEvent } from "../../views/input/IViewEvents.js";
7
+ import type { ClickEvent } from "../../views/input/types.js";
8
8
 
9
9
  export type PopupAction = ActionButton | ActionToggle;
10
10
 
@@ -97,12 +97,12 @@ export interface PopupOpenOptions {
97
97
  * @default false
98
98
  */
99
99
  collapsed?: boolean;
100
- /** Sets the {@link widgets/Popup/interfaces#content} of the popup. */
100
+ /** Sets the [Popup#content](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#content) of the popup. */
101
101
  content?: any;
102
102
  /**
103
103
  * This property enables multiple features in a popup to display in a list rather than displaying the first selected feature. Setting this to `true`
104
104
  * allows the user to scroll through the list of features.
105
- * This value will only be honored if {@link widgets/Popup/interfaces#initialDisplayMode} is set to `feature`.
105
+ * This value will only be honored if [PopupViewModel#initialDisplayMode](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#initialDisplayMode) is set to `feature`.
106
106
  *
107
107
  * @default false
108
108
  */
@@ -27,7 +27,7 @@ export interface PopupProperties extends WidgetProperties, Partial<Pick<Popup, "
27
27
  * By default, popups have a `Zoom To` action styled with a magnifying glass icon ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/popup/popuptemplate-zoom-action.png).
28
28
  * When this icon is clicked, the view zooms in four LODs and centers on the selected feature.
29
29
  *
30
- * You may remove this default action by setting {@link widgets/Popup#includeDefaultActions} to `false`, or by setting the
30
+ * You may remove this default action by setting [PopupViewModel#includeDefaultActions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#includeDefaultActions) to `false`, or by setting the
31
31
  * [PopupTemplate#overwriteActions](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#overwriteActions) property to `true` in a [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
32
32
  * The order of each action is the order in which they appear in the actions [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html).
33
33
  *
@@ -181,7 +181,7 @@ export interface PopupEvents extends FeaturesViewModelEvents {}
181
181
  * view.openPopup(...);
182
182
  * view.closePopup(...);
183
183
  * ```
184
- * - Use [reactiveUtils](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html) to watch properties on the popup and its view model instead of the {@link widgets/Popup#watch} method.
184
+ * - Use [reactiveUtils](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html) to watch properties on the popup and its view model instead of the `watch()` method.
185
185
  * ```js
186
186
  * // This will throw an error that watch() is not a method
187
187
  * // since the popup hasn't been created yet.
@@ -269,7 +269,7 @@ export default class Popup extends Widget {
269
269
  * By default, popups have a `Zoom To` action styled with a magnifying glass icon ![popupTemplate-zoom-action](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/popup/popuptemplate-zoom-action.png).
270
270
  * When this icon is clicked, the view zooms in four LODs and centers on the selected feature.
271
271
  *
272
- * You may remove this default action by setting {@link widgets/Popup#includeDefaultActions} to `false`, or by setting the
272
+ * You may remove this default action by setting [PopupViewModel#includeDefaultActions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#includeDefaultActions) to `false`, or by setting the
273
273
  * [PopupTemplate#overwriteActions](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#overwriteActions) property to `true` in a [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
274
274
  * The order of each action is the order in which they appear in the actions [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html).
275
275
  *
@@ -65,8 +65,7 @@ export default class TableListViewModel extends EventedAccessor {
65
65
  * Whether to provide an indication if a layer is being published in the
66
66
  * [TableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html). When a layer is publishing,
67
67
  * a rotating square will appear to the right of the list item title.
68
- * The list item
69
- * [ListItem#publishing](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#publishing) property
68
+ * The [ListItem#publishing](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#publishing) property
70
69
  * will be `false` if `checkPublishStatusEnabled` is `false`.
71
70
  *
72
71
  * @default false
@@ -77,8 +76,7 @@ export default class TableListViewModel extends EventedAccessor {
77
76
  * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html).
78
77
  * Each list item can be modified according to its modifiable properties. Actions can be added to
79
78
  * [list items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html) using the
80
- * [ListItem#actionsSections](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#actionsSections)
81
- * property of the ListItem.
79
+ * [ListItem#actionsSections](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#actionsSections) property.
82
80
  */
83
81
  accessor listItemCreatedFunction: ListItemModifier | null | undefined;
84
82
  /**
@@ -70,7 +70,7 @@ export interface TableListEvents extends TableListViewModelEvents {}
70
70
  * The TableList widget provides a way to display a list of tables associated with a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html).
71
71
  * It is meant to be used with [feature layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) tables.
72
72
  *
73
- * If a map contains feature layer tables, they will display within the widget. Tables can also be added to the map's
73
+ * If a map contains feature layer tables, they will display within the widget. Tables can also be added to the
74
74
  * [Map#tables](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#tables) collection. Any tables referenced in the [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#map)
75
75
  * property will display in the widget. If unsure of whether the
76
76
  * layer is a table, check the feature layer's [FeatureLayer#isTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#isTable) property.
@@ -1,4 +1,4 @@
1
- import type { LinearUnit, AreaUnit } from "../../geometry/geometryEngineInterfaces.js";
1
+ import type { LinearUnit, AreaUnit } from "../../geometry/geometryEngineTypes.js";
2
2
  import type { GraphicColor } from "./UtilityNetworkTraceViewModel.js";
3
3
 
4
4
  export interface ResultAreaProperties {
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[382],{30382:(t,n,e)=>{e.d(n,{l:()=>s});var r,i=e(11053),o={exports:{}};const u=(0,i.g)(function(){return r||(r=1,t=o,n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,e=function(t){var e,r;(t=void 0!==(t=t||{})?t:{}).ready=new Promise(function(t,n){e=t,r=n});var i=Object.assign({},t),o="object"==typeof window,u="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var s,a="";(o||u)&&(u?a=self.location.href:"undefined"!=typeof document&&document.currentScript&&(a=document.currentScript.src),n&&(a=n),a=0!==a.indexOf("blob:")?a.substr(0,a.replace(/[?#].*/,"").lastIndexOf("/")+1):"",u&&(s=t=>{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)})),t.print||console.log.bind(console);var c,f,l=t.printErr||console.warn.bind(console);Object.assign(t,i),i=null,t.arguments&&t.arguments,t.thisProgram&&t.thisProgram,t.quit&&t.quit,t.wasmBinary&&(c=t.wasmBinary),t.noExitRuntime,"object"!=typeof WebAssembly&&C("no native wasm support detected");var p,h,d,m,_,y,g=!1,b="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function v(t,n){return t?function(t,n,e){for(var r=n+e,i=n;t[i]&&!(i>=r);)++i;if(i-n>16&&t.buffer&&b)return b.decode(t.subarray(n,i));for(var o="";n<i;){var u=t[n++];if(128&u){var s=63&t[n++];if(192!=(224&u)){var a=63&t[n++];if((u=224==(240&u)?(15&u)<<12|s<<6|a:(7&u)<<18|s<<12|a<<6|63&t[n++])<65536)o+=String.fromCharCode(u);else{var c=u-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&u)<<6|s)}else o+=String.fromCharCode(u)}return o}(d,t,n):""}function w(n){p=n,t.HEAP8=h=new Int8Array(n),t.HEAP16=new Int16Array(n),t.HEAP32=m=new Int32Array(n),t.HEAPU8=d=new Uint8Array(n),t.HEAPU16=new Uint16Array(n),t.HEAPU32=_=new Uint32Array(n),t.HEAPF32=new Float32Array(n),t.HEAPF64=new Float64Array(n)}t.INITIAL_MEMORY;var A=[],R=[],S=[];function I(t){A.unshift(t)}function x(t){S.unshift(t)}var P,E=0,j=null;function C(n){t.onAbort&&t.onAbort(n),l(n="Aborted("+n+")"),g=!0,n+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(n);throw r(e),e}function k(t){return t.startsWith("data:application/octet-stream;base64,")}function D(t){try{if(t==P&&c)return new Uint8Array(c);if(s)return s(t);throw"both async and sync fetching of the wasm failed"}catch(t){C(t)}}function W(){return c||!o&&!u||"function"!=typeof fetch?Promise.resolve().then(function(){return D(P)}):fetch(P,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+P+"'";return t.arrayBuffer()}).catch(function(){return D(P)})}function H(n){for(;n.length>0;){var e=n.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?M(r)():M(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(t)}}k(P="lerc-wasm.wasm")||(P=function(n){return t.locateFile?t.locateFile(n,a):a+n}(P));var T=[];function M(t){var n=T[t];return n||(t>=T.length&&(T.length=t+1),T[t]=n=y.get(t)),n}function O(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){_[this.ptr+4>>2]=t},this.get_type=function(){return _[this.ptr+4>>2]},this.set_destructor=function(t){_[this.ptr+8>>2]=t},this.get_destructor=function(){return _[this.ptr+8>>2]},this.set_refcount=function(t){m[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,h[this.ptr+12|0]=t},this.get_caught=function(){return 0!=h[this.ptr+12|0]},this.set_rethrown=function(t){t=t?1:0,h[this.ptr+13|0]=t},this.get_rethrown=function(){return 0!=h[this.ptr+13|0]},this.init=function(t,n){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(n),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=m[this.ptr>>2];m[this.ptr>>2]=t+1},this.release_ref=function(){var t=m[this.ptr>>2];return m[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){_[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return _[this.ptr+16>>2]},this.get_exception_ptr=function(){if(z(this.get_type()))return _[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}function U(t){try{return f.grow(t-p.byteLength+65535>>>16),w(f.buffer),1}catch(t){}}var B={a:function(t,n,e,r){C("Assertion failed: "+v(t)+", at: "+[n?v(n):"unknown filename",e,r?v(r):"unknown function"])},c:function(t){return F(t+24)+24},b:function(t,n,e){throw new O(t).init(n,e),t},d:function(){C("")},f:function(t,n,e){d.copyWithin(t,n,n+e)},e:function(t){var n=d.length,e=2147483648;if((t>>>=0)>e)return!1;let r=(t,n)=>t+(n-t%n)%n;for(var i=1;i<=4;i*=2){var o=n*(1+.2/i);if(o=Math.min(o,t+100663296),U(Math.min(e,r(Math.max(t,o),65536))))return!0}return!1}};(function(){var n={a:B};function e(n,e){var r=n.exports;t.asm=r,w((f=t.asm.g).buffer),y=t.asm.m,function(t){R.unshift(t)}(t.asm.h),function(){if(E--,t.monitorRunDependencies&&t.monitorRunDependencies(E),0==E&&j){var n=j;j=null,n()}}()}function i(t){e(t.instance)}function o(t){return W().then(function(t){return WebAssembly.instantiate(t,n)}).then(function(t){return t}).then(t,function(t){l("failed to asynchronously prepare wasm: "+t),C(t)})}if(E++,t.monitorRunDependencies&&t.monitorRunDependencies(E),t.instantiateWasm)try{return t.instantiateWasm(n,e)}catch(t){return l("Module.instantiateWasm callback failed with error: "+t),!1}(c||"function"!=typeof WebAssembly.instantiateStreaming||k(P)||"function"!=typeof fetch?o(i):fetch(P,{credentials:"same-origin"}).then(function(t){return WebAssembly.instantiateStreaming(t,n).then(i,function(t){return l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),o(i)})})).catch(r)})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.h).apply(null,arguments)},t._lerc_getBlobInfo=function(){return(t._lerc_getBlobInfo=t.asm.i).apply(null,arguments)},t._lerc_getDataRanges=function(){return(t._lerc_getDataRanges=t.asm.j).apply(null,arguments)},t._lerc_decode=function(){return(t._lerc_decode=t.asm.k).apply(null,arguments)},t._lerc_decode_4D=function(){return(t._lerc_decode_4D=t.asm.l).apply(null,arguments)};var F=t._malloc=function(){return(F=t._malloc=t.asm.n).apply(null,arguments)};t._free=function(){return(t._free=t.asm.o).apply(null,arguments)};var q,z=t.___cxa_is_pointer_type=function(){return(z=t.___cxa_is_pointer_type=t.asm.p).apply(null,arguments)};function L(n){function r(){q||(q=!0,t.calledRun=!0,g||(H(R),e(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)x(t.postRun.shift());H(S)}()))}E>0||(function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)I(t.preRun.shift());H(A)}(),E>0||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),r()},1)):r()))}if(j=function t(){q||L(),q||(j=t)},t.run=L,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return L(),t.ready},t.exports=e),o.exports;var t,n,e}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1728],{71728:(e,t,a)=>{a.r(t),a.d(t,{default:()=>R});var i=a(31635),n=a(67996),o=a(7762),s=a(49186),r=a(53966),l=a(91869),h=a(25728),d=a(74887),c=a(36708),p=a(91429),u=a(35666),y=a(5443),g=a(86738),m=a(82799),f=a(12359),M=a(4146),w=a(90708),b=a(15375);const C={MULTIPLIER:"multiplier",ABSOLUTE:"absolute-value"};var L=a(24137),k=a(62796),T=a(54898),N=a(69860),D=a(30504),x=a(63074),v=a(16131),A=a(25036),E=a(10873),I=a(8460),_=a(48441);let S=class extends((0,v.q)((0,x.dM)((0,A.j)((0,h.P)(M.A))))){constructor(e){if(super(e),this.url=null,this.dataPreloadedInLocalCache=!1,this.initializationLinkChartConfig=null,this.membershipModified=!0,this._currentLinkChartConfig={layoutMode:"organic-standard"},this._graphTypeLookup=new Map,this.dataManager=null,this.knowledgeGraph=null,this.layers=new(o.A.ofType(k.A)),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map,this.linkChartExtent=new y.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7}),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="LinkChartLayer",this.sublayerIdsCache=new Map,this.tables=new(o.A.ofType(k.A)),this.type="link-chart",this.chronologicalAuxiliaryGraphics=null,this._originalInclusionList=e?.initializationInclusionModeDefinition,e?.dataPreloadedInLocalCache&&!e?.initializationInclusionModeDefinition)throw new s.A("knowledge-graph:linkchart-layer-constructor","If creating a link chart composite layer and configured that data is already loaded in the cache, you must specify an inclusion list so the Composite Layer knows what records belong to it");this.addHandles((0,c.wB)(()=>this.layers.concat(this.tables),(e,t)=>this._handleSublayersChange(e,t),c.OH))}normalizeCtorArgs(e){if(!e)return{};const{url:t,title:a,dataPreloadedInLocalCache:i,initializationLinkChartConfig:n}=e;return{url:t,title:a,dataPreloadedInLocalCache:i,initializationLinkChartConfig:n}}_initializeLayerProperties(e){if(!this.title&&this.url){const e=this.url.split("/");this.title=e[e.length-2]}const t=new Set;let a=[],i=[];if(e.inclusionModeDefinition&&(!e.inclusionModeDefinition.namedTypeDefinitions||e.inclusionModeDefinition.namedTypeDefinitions.size<1))throw new s.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined");e.inclusionModeDefinition?.generateAllSublayers?(a=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]):e.inclusionModeDefinition?.namedTypeDefinitions&&e.inclusionModeDefinition?.namedTypeDefinitions.size>0?e.inclusionModeDefinition?.namedTypeDefinitions.forEach((n,o)=>{const s=this._graphTypeLookup.get(o);if(!s)return r.A.getLogger(this).warn(`A named type, ${o}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(o);"relationship"===s.type?t.has(o)||(t.add(o),i.push(s)):"entity"===s.type?t.has(o)||(t.add(o),a.push(s)):(r.A.getLogger(this).warn(`A named type, ${o}, was in the inclusion list that wasn't properly modeled and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(o))}):(a=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]);const n=new L.P({knowledgeGraph:e.knowledgeGraph,inclusionModeDefinition:e.inclusionModeDefinition});this.knowledgeGraph=e.knowledgeGraph,this.memberEntityTypes=a,this.memberRelationshipTypes=i,this.dataManager=n}load(e){const t=async()=>{const e=[],t=[];this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,T.qN)(this),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(e=>{e.useAllData=!1}),await this._initializeDiagram(),this.layers.forEach(a=>{t.push(a.refreshCachedQueryEngine()),e.push(new Promise(e=>{a.on("layerview-create",()=>{e(null)})}))}),this.tables.forEach(e=>{t.push(e.refreshCachedQueryEngine())}),await Promise.all(t)};return this.addResolvingPromise(new Promise(a=>{(0,_.fetchKnowledgeGraph)(this.url).then(async i=>{i.dataModel.entityTypes?.forEach(e=>{e.name&&this._graphTypeLookup.set(e.name,e)}),i.dataModel.relationshipTypes?.forEach(e=>{e.name&&this._graphTypeLookup.set(e.name,e)});const o=this.linkChart?.linkChartProperties;if(6===o?.originIdOf("entitiesUrl")&&(this.membershipModified=!1,this._originalInclusionList=await n.XW.fetchAndConvertSerializedLinkChart({entitiesUrl:o?.entitiesUrl,relationshipsUrl:o?.relationshipsUrl},{signal:e?.signal}),this._alignLayersDataModelAndInclusionDefinition(i.dataModel),this.initializationLinkChartConfig={layoutSettings:o?.layoutSettings??void 0,layoutMode:(0,D.k5)(o.layoutType)}),this._initializeLayerProperties({knowledgeGraph:i,inclusionModeDefinition:this._originalInclusionList}),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.size||(this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map},this.dataManager.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})}),this.dataManager.knowledgeGraph.dataModel.relationshipTypes?.forEach(e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})})),this.dataPreloadedInLocalCache){const e=N.A.getInstance();for(const[t,a]of this.dataManager.inclusionModeDefinition?.namedTypeDefinitions??[])for(const i of a.members?.values()??[]){const a=e.readFromStoreById(`${t}__${i.id}`);a&&(0,l.tE)(this.dataManager.sublayerCaches,t,()=>new Map).set(i.id,a)}await t()}else{const a="geographic-organic-standard"===this.initializationLinkChartConfig?.layoutMode;this.addResolvingPromise(this.dataManager.refreshCacheContent(void 0,!1,a,!0).then(async()=>{(0,d.Te)(e),await t()}))}a(null)})})),Promise.resolve(this)}set initializationInclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("initializationInclusionModeDefinition",e):r.A.getLogger(this).error("#initializationInclusionModeDefinition","initializationInclusionModeDefinition cannot be changed after the layer is loaded.")}get linkChart(){return this.parent}get sublayerCapabilities(){return(0,T.hZ)(this.knowledgeGraph)}async addRecords(e,t){let a=[];t?.cascadeAddRelationshipEndNodes&&this.dataManager.knowledgeGraph.dataModel&&(a=await(0,D.aq)(e,this.dataManager.knowledgeGraph));const i=e.concat(a).filter(e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id));i.length>0&&(this.membershipModified=!0),await this._handleNewRecords(i,t)}async createSublayerForNamedType(e){await this.load();const t=this._graphTypeLookup.get(e);if(!t)throw new s.A("knowledge-graph:missing-type","The specified type does not exist in the knowledge graph.");if(this.dataManager.sublayerCaches.has(e))throw new s.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,l.tE)(this.sublayerIdsCache,e,()=>new Set);const a=this._createSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.set(e,{useAllData:!1,members:new Map}),a.geometryType?this.layers.push(a):this.tables.push(a),await(0,T.qN)(this,[e]),this._refreshNamedTypes(),a}async removeRecords(e,{cascadeRemoveRelationships:t=!0,recalculateLayout:a=!1,overrideMembershipCheck:i=!1}={cascadeRemoveRelationships:!0,recalculateLayout:!1,overrideMembershipCheck:!1}){let n=[];for(const t of e)(i||!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.members?.has(t.id))&&n.push(t);if(t){const e=new Set,t=[];for(const t of n)if(this.dataManager.nodeConnectionsLookup.has(t.id))for(const a of this.dataManager.nodeConnectionsLookup.get(t.id))e.add(a);for(const a of e)if(this.dataManager.memberIdTypeLookup.has(a))for(const e of this.dataManager.memberIdTypeLookup.get(a))this.dataManager.relationshipTypeNames.has(e)&&t.push({id:a,typeName:e});n=n.concat(t)}this.dataManager.removeFromLayer(n);for(const e of n)this.sublayerIdsCache.get(e.typeName)?.delete(e.id),this.dataManager.relationshipTypeNames.has(e.typeName)?this.relationshipLinkChartDiagramLookup.delete(e.id):this.entityLinkChartDiagramLookup.delete(e.id);const o=a?void 0:this.getCurrentNodeLocations();await this._calculateLayoutWithSublayerTimeInfo(this._currentLinkChartConfig.layoutMode,{layoutSettings:this._currentLinkChartConfig.layoutSettings,lockedNodeLocations:o}),n.length>0&&(this.membershipModified=!0);const s=[];return this.layers.forEach(e=>{s.push(e.refreshCachedQueryEngine())}),await Promise.all(s),this._refreshNamedTypes(),n}async expand(e,t){let a=[];try{const i=await this.dataManager.getConnectedRecordIds(e,t?.relationshipTypeNames,t);a=i.filter(e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)),await this._handleNewRecords(a,t),i.length>0&&(this.membershipModified=!0),(0,d.Te)(t?.signal)}catch(e){throw(0,d.zf)(e)&&a.length>0&&await this.removeRecords(a,{overrideMembershipCheck:!0}),e}return{records:a}}loadLayerAssumingLocalCache(){const e=[...this.memberRelationshipTypes,...this.memberEntityTypes];this.layers.length||0===this.originIdOf("tables")?0===this.originIdOf("layers")?this._createSublayers(e,this.layers,e=>!!e.geometryType):this._updateSublayers(e,this.layers):this.layers=new o.A,this.tables.length||0===this.originIdOf("layers")?0===this.originIdOf("tables")?this._createSublayers(e,this.tables,e=>!e.geometryType):this._updateSublayers(e,this.tables):this.tables=new o.A,this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{const a=(0,l.tE)(this.sublayerIdsCache,t,()=>new Set);e.members?.forEach(({id:e,linkChartLocation:i})=>{if(a.add(e),i){const a="coords"in i&&"lengths"in i?i:(0,w.Ux)(i);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e,a):this.entityLinkChartDiagramLookup.set(e,a)}})})}async calculateLinkChartLayout(e="organic-standard",t){const a=[],i=[],n=[];this.dataManager.sublayerCaches.forEach((e,t)=>{this.dataManager.entityTypeNames.has(t)?e.forEach(e=>{a.push({typeName:t,feature:e})}):this.dataManager.relationshipTypeNames.has(t)&&e.forEach(e=>{i.push({typeName:t,feature:e})})}),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map;const o=new Map,h=new Map,c=new Map,p=new Map,u=new Uint8Array(a.length),M=new Float64Array(a.length),C=new Float64Array(a.length),L=new Float64Array(a.length),k=new Float64Array(a.length),T=new Uint32Array(i.length),N=new Uint32Array(i.length),D=new Float64Array(i.length),x=new Float64Array(i.length),v=[];let A=!1;const E=new y.A({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7});let _,S="organic-standard",R=0,z=0;const G=I.i6.apply;switch(S="geographic-organic-standard"===e?"organic-standard":e,S){case"organic-standard":_=I.pM.apply;break;case"organic-community":_=I.Tu.apply;break;case"hierarchical-bottom-to-top":_=I.$C.apply;break;case"radial-root-centric":_=I.vJ.apply;break;case"tree-left-to-right":_=I.Xq.apply;break;default:_=I.Wg.apply}let O=!1;a.forEach(({typeName:a,feature:i})=>{if("chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e&&t?.lockedNodeLocations?.has(i.attributes[b.dr])){"geographic-organic-standard"===e&&this.dataManager.geographicLookup.has(a)?u[R]=2:u[R]=0;const n=t.lockedNodeLocations.get(i.attributes[b.dr]);M[R]=n.x,C[R]=n.y}else if("geographic-organic-standard"===e&&this.dataManager.geographicLookup.has(a)){u[R]=2;let e=null;const t=i.attributes[this.dataManager.geographicLookup.get(a).name],n=this.dataManager.geographicLookup.get(a)?.geometryType;switch(n){case"esriGeometryPoint":M[R]=t?.x,C[R]=t?.y;break;case"esriGeometryPolygon":{const a=(0,f.Ve)(t);e=a?g.A.fromJSON(a):null,null!=e?.x&&null!=e?.y?(M[R]=e.x,C[R]=e.y):u[R]=1;break}case"esriGeometryPolyline":case"esriGeometryMultipoint":e=t?.extent?.center,null!=e?.x&&null!=e?.y?(M[R]=e.x,C[R]=e.y):u[R]=1;break;default:u[R]=1}(null==M[R]||null==C[R]||Number.isNaN(M[R])||Number.isNaN(C[R]))&&(u[R]=1,M[R]=0,C[R]=0)}else if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){!O&&t?.lockedNodeLocations?.has(i.attributes[b.dr])&&(O=!0);const e=t?.timeInfoByTypeName?.get(a),n=e?.startField,o=n&&e?.startField?i.attributes[n]:null;L[R]=o?new Date(o).getTime():NaN;const s=e?.endField,r=s&&e?.endField?i.attributes[s]:null;k[R]=r?new Date(r).getTime():NaN,M[R]=0,C[R]=0,u[R]=1}else u[R]=1,M[R]=0,C[R]=0;p.set(i.attributes[b.dr],R),v[R]={feature:i,typeName:a},R++}),O&&r.A.getLogger(this).warn("Locked node locations are not supported for chronological layout at this time. Requested node locations were ignored");let P=!1;const Z=new Map;i.forEach(a=>{const i=a.feature.attributes[b.Cz],o=a.feature.attributes[b.KQ],s=p.get(i),r=p.get(o),l=t?.timeInfoByTypeName?.get(a.typeName),h=t?.timeInfoByTypeName?l?.startField:null,d=h?a.feature.attributes[h]:null,c=l?.endField,u=c?a.feature.attributes[c]:null;if(void 0!==s&&void 0!==r){let t=i+"-"+o;"chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e||(t=t+"-"+d+"-"+u);const l=Z.get(t),h=l?.has(a.typeName);h||(T[z]=s,N[z]=r,"chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e||(D[z]=d?new Date(d).getTime():NaN,x[z]=u?new Date(u).getTime():NaN),void 0===l?Z.set(t,new Map([[a.typeName,z]])):l.set(a.typeName,z),z++),n.push(a)}else P=!0,this.relationshipLinkChartDiagramLookup.set(i,null)}),P&&r.A.getLogger(this).warn("A relationship is a member of this layer that has either origin or destination entity nodes that are not members. The diagram geometry will be set to null");const F=this._validateOrganicLayoutSettings(e,t?.layoutSettings?.organicLayoutSettings),B=this._convertValidatedOrganicSettingsToCalculationSettings(F);await(0,I.Hh)();let U=1,j=null;if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){let a;({status:U,links:j,graphics:a}=G(()=>t?.signal?.aborted??!1,u,M,C,L,k,T.subarray(0,z),N.subarray(0,z),D.subarray(0,z),x.subarray(0,z),"chronological-multi-timeline"===e,t?.layoutSettings?.chronologicalLayoutSettings)),0===U&&(this.chronologicalAuxiliaryGraphics=a)}else({status:U,links:j}=_(()=>t?.signal?.aborted??!1,u,M,C,T.subarray(0,z),N.subarray(0,z),B.computationBudgetTime,B.idealEdgeLengthMultiplier,B.repulsionRadiusMultiplier));if((0,d.Te)(t?.signal),1===U)throw new s.A("knowledge-graph:layout-failed","Attempting to arrange the records in the specified layout failed");if(2===U)throw(0,d.NK)();for(let e=0;e<v.length;e++){if(C[e]>84.9999?C[e]=84.9999:C[e]<-84.9999&&(C[e]=-84.9999),M[e]>179.9999?M[e]=179.9999:M[e]<-179.9999&&(M[e]=-179.9999),v[e].feature.attributes[b.T1]=new g.A(M[e],C[e]),o.has(v[e].typeName)){const t=o.get(v[e].typeName);t?.set(v[e].feature.attributes[b.dr],v[e].feature)}else{const t=new Map;t.set(v[e].feature.attributes[b.dr],v[e].feature),o.set(v[e].typeName,t)}c.set(v[e].feature.attributes[b.dr],v[e].feature);const t=(0,w.Ux)(v[e].feature.attributes[b.T1]);this.entityLinkChartDiagramLookup.set(v[e].feature.attributes[b.dr],v[e].feature.attributes[b.T1]?t:null);const a=(0,l.tE)(this.dataManager.inclusionModeDefinition.namedTypeDefinitions,v[e].typeName,()=>({useAllData:!1,members:new Map}));(0,l.tE)(a.members,v[e].feature.attributes[b.dr],()=>({id:v[e].feature.attributes[b.dr],linkChartLocation:void 0})).linkChartLocation=v[e].feature.attributes[b.T1];const{x:i,y:n}=v[e].feature.attributes[b.T1];if(A)E.xmin=Math.min(E.xmin,i),E.xmax=Math.max(E.xmax,i),E.ymin=Math.min(E.ymin,n),E.ymax=Math.max(E.ymax,n);else{const e=1e-7;E.xmin=i-e,E.xmax=i+e,E.ymin=n-e,E.ymax=n+e,A=!0}}if(this.linkChartExtent.xmin=E.xmin,this.linkChartExtent.xmax=E.xmax,this.linkChartExtent.ymin=E.ymin,this.linkChartExtent.ymax=E.ymax,!j)throw new s.A("knowledge-graph:layout-failed","Attempting to retrieve link geometry from diagram engine failed");const Q=new Map,q=new Map,K=new Map,W=new Set;for(let a=0;a<n.length;a++){const i=[],o=n[a],s=o.feature.attributes[b.Cz],d=o.feature.attributes[b.KQ];let u=s+"-"+d;if("chronological-mono-timeline"===e||"chronological-multi-timeline"===e){const e=t?.timeInfoByTypeName?.get(o.typeName),a=t?.timeInfoByTypeName?e?.startField:null,i=a?o.feature.attributes[a]:null,n=e?.endField;u+="-"+i+"-"+(n?o.feature.attributes[n]:null)}const y=Z.get(u).get(o.typeName),g=0===y?0:j?.vertexEndIndex[y-1];if(!W.has(y)){if(W.add(y),2===j.types[y]){const e=[j.vertices[2*g],j.vertices[2*g+1]],t=[j.vertices[2*(g+1)],j.vertices[2*(g+1)+1]],a=[.5*(e[0]+t[0]),.5*(e[1]+t[1])],n=[a[0]-e[0],a[1]-e[1]],o=[a[0]+n[1],a[1]-n[0]],s=[a[0]-n[1],a[1]+n[0]];i.push(e),i.push(o),i.push(t),i.push(s),i.push(e)}else{if(0!==j.types[y]){r.A.getLogger(this).warn("A relationship generated an unsupported link geometry type. It will not be rendered");continue}for(let e=g;e<j.vertexEndIndex[y];e++)i.push([j.vertices[2*e],j.vertices[2*e+1]])}if("chronological-mono-timeline"!==e&&"chronological-multi-timeline"!==e){const e=v[p.get(s)]?.feature.attributes[b.T1],t=v[p.get(d)]?.feature.attributes[b.T1];i[0][0]===e.x&&i[0][1]===e.y||(i[0]=[e.x,e.y]),i[i.length-1][0]===t.x&&i[i.length-1][1]===t.y||(i[i.length-1]=[t.x,t.y])}for(let e=1;e<i.length-1;e++)i[e][1]>85.5?i[e][1]=85.5:i[e][1]<-85.5&&(i[e][1]=-85.5),i[e][0]>179.9999?i[e][0]=179.9999:i[e][0]<-179.9999&&(i[e][0]=-179.9999);Q.has(u)?Q.get(u).push(i):Q.set(u,[i])}const f=Q.get(u);q.has(u)||(q.set(u,new Map),K.set(u,new Map));const M=q.get(u),C=K.get(u);M.has(o.typeName)||(M.set(o.typeName,f.shift()),C.set(o.typeName,0));const L=M.get(o.typeName);C.set(o.typeName,C.get(o.typeName)+1);const k=new m.A({paths:[L]});if(o.feature.attributes[b.T1]=k,h.has(o.typeName)){const e=h.get(o.typeName);e?.set(o.feature.attributes[b.dr],o.feature)}else{const e=new Map;e.set(o.feature.attributes[b.dr],o.feature),h.set(o.typeName,e)}c.set(o.feature.attributes[b.dr],o.feature);const T=(0,w.Ux)(o.feature.attributes[b.T1]);this.relationshipLinkChartDiagramLookup.set(o.feature.attributes[b.dr],o.feature.attributes[b.T1]?T:null);const N=(0,l.tE)(this.dataManager.inclusionModeDefinition.namedTypeDefinitions,o.typeName,()=>({useAllData:!1,members:new Map}));(0,l.tE)(N.members,o.feature.attributes[b.dr],()=>({id:o.feature.attributes[b.dr],linkChartLocation:void 0})).linkChartLocation=T}for(const e of n)e.feature.attributes[b.M1]=K.get(e.feature.attributes[b.Cz]+"-"+e.feature.attributes[b.KQ])?.get(e.typeName)??null;return this._currentLinkChartConfig={layoutMode:e,layoutSettings:t?.layoutSettings?.clone()},{nodes:o,links:h,idMap:c}}async applyNewLinkChartLayout(e="organic-standard",t){const a=[];await this._calculateLayoutWithSublayerTimeInfo(e,t),this.layers.forEach(e=>{a.push(e.refreshCachedQueryEngine())}),this.membershipModified=!0,await Promise.all(a),this._refreshNamedTypes()}getCurrentNodeLocations(){const e=new Map;for(const[t,a]of this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.entries()??[])this.dataManager.relationshipTypeNames.has(t)||a?.members?.forEach(t=>{const a=t.linkChartLocation;let i;const n=t.id;a&&(i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]},e.set(n,new g.A({x:i.x,y:i.y})))});return e}async refreshLinkChartCache(e){await this.dataManager.refreshCacheContent(e);const t=[];this.layers.forEach(e=>{t.push(e.refreshCachedQueryEngine())}),await Promise.all(t),this._refreshNamedTypes()}async connectBetweenEntities(e,t){if(!e.length)return{records:[]};let a=[];try{let i=[];for(const e of this.dataManager.relationshipTypeNames){const t=this.sublayerIdsCache.get(e);t&&(i=i.concat(Array.from(t.keys())))}a=await this.dataManager.getRelationshipsBetweenNodes(e,i,t),await this._handleNewRecords(a,t),(0,d.Te)(t)}catch(e){throw(0,d.zf)(e)&&this.removeRecords(a),e}return{records:a}}async connectFromEntities(e,t){if(!e.length)return{records:[]};let a=[];try{let i=[];for(const e of this.dataManager.relationshipTypeNames){const t=this.sublayerIdsCache.get(e);t&&(i=i.concat(Array.from(t.keys())))}let n=[];for(const e of this.dataManager.entityTypeNames){const t=this.sublayerIdsCache.get(e);t&&(n=n.concat(Array.from(t)))}a=await this.dataManager.getRelationshipsFromNodes(e,n,i,t),await this._handleNewRecords(a,t),a.length>0&&(this.membershipModified=!0),(0,d.Te)(t)}catch(e){throw(0,d.zf)(e)&&this.removeRecords(a),e}return{records:a}}getCurrentLayout(){return this._currentLinkChartConfig.layoutMode}async _calculateLayoutWithSublayerTimeInfo(e="organic-standard",t){const a=new Map;this.layers.forEach(e=>{a.set(e.objectType.name,e.timeInfo)}),await this.calculateLinkChartLayout(e,{timeInfoByTypeName:a,...t}),this.linkChart?.handleChronologicalOverlay()}async _handleNewRecords(e,t){const a=new Set,i=[],n=this.layers.concat(this.tables);for(const t of e)this._graphTypeLookup.has(t.typeName)&&(!1===n.some(e=>e.objectType.name===t.typeName)&&(this.dataManager.sublayerCaches.set(t.typeName,new Map),a.add(t.typeName)),(0,l.tE)(this.sublayerIdsCache,t.typeName,()=>new Set).add(t.id),i.push(t));this.dataManager.addToLayer(i);for(const e of a){const t=this._graphTypeLookup.get(e);if(t){const a=this._createSublayer(t);"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),a.geometryType?this.layers.push(a):this.tables.push(a)}}await(0,T.qN)(this,Array.from(a),t),await this.dataManager.refreshCacheContent(e.map(e=>e.id),void 0,void 0,void 0,t);const o={layoutSettings:this._currentLinkChartConfig.layoutSettings,lockedNodeLocations:new Map};for(const[e,t]of this.entityLinkChartDiagramLookup.entries())t&&o.lockedNodeLocations.set(e,new g.A(t.coords[0],t.coords[1]));await this.applyNewLinkChartLayout(this._currentLinkChartConfig.layoutMode,o)}_createSublayers(e,t,a){e.forEach(e=>{const i=this._createSublayer(e);a(i)&&t.push(i),this._updateSublayerCaches(e)})}_updateSublayers(e,t){t.forEach(t=>{t.parentCompositeLayer=this;const a=e.find(e=>e.type===t.graphType&&e.name===t.graphTypeName);a&&(t.objectType=a,t.read({title:a.name},{origin:"service"}),this._updateSublayerCaches(a))})}_updateSublayerCaches({name:e}){if(!e)return;const t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_layersLoadedFromAuthoritativeItem(){const e=this.originIdOf("layers");return e>=3&&e<7}async _initializeDiagram(){this.initializationLinkChartConfig?this.initializationLinkChartConfig.doNotRecalculateLayout?(this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{e?.members?.forEach(e=>{const a=e.linkChartLocation;let i;const n=e.id;if(!a)return;i="x"in a?{x:a.x,y:a.y}:{x:a.coords[0],y:a.coords[1]};const o=(0,w.Ux)(i);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(n,o):this.entityLinkChartDiagramLookup.set(n,o),this.linkChartExtent.xmin>i.x&&(this.linkChartExtent.xmin=i.x),this.linkChartExtent.xmax<i.x&&(this.linkChartExtent.xmax=i.x),this.linkChartExtent.ymin>i.y&&(this.linkChartExtent.ymin=i.y),this.linkChartExtent.ymax<i.y&&(this.linkChartExtent.ymax=i.y)})}),this.memberRelationshipTypes.forEach(e=>{e.name&&this.dataManager.sublayerCaches.get(e.name)?.forEach(e=>{const t=this.relationshipLinkChartDiagramLookup.get(e.attributes[b.Cz]),a=this.relationshipLinkChartDiagramLookup.get(e.attributes[b.KQ]);if(t&&a){const i=(0,w.Ux)(new m.A({paths:[[[t.coords[0],t.coords[1]],[a.coords[0],a.coords[1]]]]}));this.relationshipLinkChartDiagramLookup.set(e.attributes[b.dr],i)}else this.relationshipLinkChartDiagramLookup.set(e.attributes[b.dr],null)})})):await this._calculateLayoutWithSublayerTimeInfo(this.initializationLinkChartConfig.layoutMode,{lockedNodeLocations:this.getCurrentNodeLocations(),...this.initializationLinkChartConfig}):await this._calculateLayoutWithSublayerTimeInfo("organic-standard",{lockedNodeLocations:this.getCurrentNodeLocations()})}_refreshNamedTypes(){for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}_validateOrganicLayoutSettings(e,t){const a=e=>"number"==typeof e&&!isNaN(e),i=e=>a(e)&&e>=0,n={};if(!new Set(["organic-standard","organic-community","geographic-organic-standard","chronological-multi-timeline","chronological-mono-timeline"]).has(e)||!t)return n;const{computationBudgetTime:o,autoRepulsionRadius:s,repulsionRadiusMultiplier:l,absoluteIdealEdgeLength:h,multiplicativeIdealEdgeLength:d,idealEdgeLengthType:c}=t;return(e=>a(e)&&e>=1)(o)?n.computationBudgetTime=o:o&&r.A.getLogger(this).warn("Invalid layout computationBudgetTime setting, will revert to default setting"),n.autoRepulsionRadius=s,!s&&(e=>a(e)&&e>=1)(l)?n.repulsionRadiusMultiplier=l:s||(n.autoRepulsionRadius=!0,r.A.getLogger(this).warn("Invalid layout repulsionRadiusMultiplier setting, will revert to default setting")),"geographic-organic-standard"===e&&((e=>Object.values(C).includes(e))(c)?n.idealEdgeLengthType=c:void 0!==c&&r.A.getLogger(this).warn('Invalid layout idealEdgeLengthType setting, will revert to "multiplier" setting'),"absolute-value"===c&&i(h)?n.absoluteIdealEdgeLength=h:"absolute-value"===c&&void 0!==h?r.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting"):"multiplier"===c&&i(d)?n.multiplicativeIdealEdgeLength=d:"multiplier"===c&&void 0!==d&&r.A.getLogger(this).warn("Invalid layout idealEdgeLength setting, will revert to default setting")),n}_convertValidatedOrganicSettingsToCalculationSettings(e){let t=e.idealEdgeLengthType===C.ABSOLUTE?e.absoluteIdealEdgeLength:e.multiplicativeIdealEdgeLength;return e.idealEdgeLengthType===C.ABSOLUTE&&(void 0===t?t=-1:t*=-1),{computationBudgetTime:e.computationBudgetTime??void 0,repulsionRadiusMultiplier:e.repulsionRadiusMultiplier&&!e.autoRepulsionRadius?e.repulsionRadiusMultiplier:void 0,idealEdgeLengthMultiplier:t}}_createSublayer(e){return new k.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this}),e.on("after-remove",({item:e})=>{e.parent=null})],"sublayers-owner"))}_alignLayersDataModelAndInclusionDefinition(e){const t=new Set((e.entityTypes??[]).map(e=>e.name).concat((e.relationshipTypes??[]).map(e=>e.name))),a=new Set((e.entityTypes??[]).map(e=>e.name)),i=new Set((e.relationshipTypes??[]).map(e=>e.name));if(this.layers){for(const e of this.layers)!e.graphType&&t.has(e.graphTypeName)&&(e.graphType=a.has(e.graphTypeName)?"entity":"relationship");const e=this.layers.filter(e=>t.has(e.graphTypeName)&&("entity"===e.graphType?a.has(e.graphTypeName):i.has(e.graphTypeName)));this.setAtOrigin("layers",e,(0,u.OL)(this.originIdOf("layers")))}else this.layers=new o.A;if(this.layers&&this._originalInclusionList){const e=new Set(this._originalInclusionList.namedTypeDefinitions.keys()),t=this.tables?.map(e=>e.graphTypeName)??[],a=this.layers.map(e=>e.graphTypeName).concat(t);for(const t of a)e.has(t)||this._originalInclusionList.namedTypeDefinitions.set(t,{useAllData:!1,members:new Map});const i=[];for(const e of this._originalInclusionList.namedTypeDefinitions.keys())a.includes(e)||(r.A.getLogger(this).warn(`A named type, ${e}, was in the serialized feature collection but did not have a sublayer config in the item, so will be removed`),i.push(e));for(const e of i)this._originalInclusionList.namedTypeDefinitions.delete(e)}}};(0,i.Cg)([(0,p.MZ)(E.OZ)],S.prototype,"url",void 0),(0,i.Cg)([(0,p.MZ)()],S.prototype,"dataPreloadedInLocalCache",void 0),(0,i.Cg)([(0,p.MZ)()],S.prototype,"initializationLinkChartConfig",void 0),(0,i.Cg)([(0,p.MZ)()],S.prototype,"membershipModified",void 0),(0,i.Cg)([(0,p.MZ)()],S.prototype,"dataManager",void 0),(0,i.Cg)([(0,p.MZ)()],S.prototype,"initializationInclusionModeDefinition",null),(0,i.Cg)([(0,p.MZ)()],S.prototype,"knowledgeGraph",void 0),(0,i.Cg)([(0,p.MZ)({type:o.A.ofType(k.A),json:{write:{ignoreOrigin:!0}}})],S.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],S.prototype,"linkChart",null),(0,i.Cg)([(0,p.MZ)()],S.prototype,"entityLinkChartDiagramLookup",void 0),(0,i.Cg)([(0,p.MZ)()],S.prototype,"relationshipLinkChartDiagramLookup",void 0),(0,i.Cg)([(0,p.MZ)()],S.prototype,"linkChartExtent",void 0),(0,i.Cg)([(0,p.MZ)()],S.prototype,"memberEntityTypes",void 0),(0,i.Cg)([(0,p.MZ)()],S.prototype,"memberRelationshipTypes",void 0),(0,i.Cg)([(0,p.MZ)({type:["LinkChartLayer"]})],S.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)()],S.prototype,"sublayerCapabilities",null),(0,i.Cg)([(0,p.MZ)()],S.prototype,"sublayerIdsCache",void 0),(0,i.Cg)([(0,p.MZ)({type:o.A.ofType(k.A),json:{write:{ignoreOrigin:!0}}})],S.prototype,"tables",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],S.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],S.prototype,"chronologicalAuxiliaryGraphics",void 0),S=(0,i.Cg)([(0,p.$K)("esri.layers.LinkChartLayer")],S);const R=S}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9953],{9775:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(62788),n=r(95488);class o{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,s.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,s.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.gc)(this._observable),yield*this._items}}},10382:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(36563),n=(r(44208),r(74887)),o=r(9775),i=r(72457),a=r(52268),l=r(61322);class c{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new o.A,this._ongoingLowPriorityJobsQueue=new o.A}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise((r,s)=>{let o=!0;const i=e=>{(0,n.Te)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let o=0;o<e.length;++o){const a=e[o];(0,n.$X)(a)?this._clientPromises[o]=a.then(e=>(this._clients[o]=new l.default(e,t,this._ongoingJobsQueue,this._ongoingLowPriorityJobsQueue),i(r),this._clients[o]),()=>(i(s),null)):(this._clients[o]=new l.default(a,t,this._ongoingJobsQueue,this._ongoingLowPriorityJobsQueue),this._clientPromises[o]=Promise.resolve(this._clients[o]),i(r))}})}broadcast(e,t,r){const s=new Array(this._clientPromises.length);for(let n=0;n<this._clientPromises.length;++n){const o=this._clientPromises[n];s[n]=o.then(s=>s?.invoke(e,t,r))}return s}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(;e=this._ongoingLowPriorityJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then(e=>e?.close());this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,i.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const s=(0,n.Tw)();(1===r?.jobPriority?this._ongoingLowPriorityJobsQueue:this._ongoingJobsQueue).push({methodName:e,data:t,invokeOptions:r,resolver:s});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then(e=>e?.jobAdded())}return s.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return Promise.all(this._clientPromises).then(()=>(0,s.vE)(this._clients.map(r=>r.on(e,t))))}openPorts(){return new Promise(e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let s=0;s<this._clientPromises.length;++s)this._clientPromises[s].then(n=>{n&&(t[s]=n.openPort()),0===--r&&e(t)})})}get test(){}}},18047:(e,t,r)=>{r.d(t,{Up:()=>l,ZV:()=>c,yx:()=>a});var s=r(73444);const n={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let o=new WeakMap,i={};function a(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){const{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function c(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||i;if(!o.has(t)){const r=(0,s.lR)(),i=r&&n[r]||(0,s.QC)();o.set(t,new Intl.NumberFormat(i,e))}return o.get(t)}(t).format(e)}(0,s.Ml)(()=>{o=new WeakMap,i={}}),new Map},29953:(e,t,r)=>{r.d(t,{ho:()=>W});var s=r(49186),n=r(44208),o=r(74887),i=r(10382),a=r(72457),l=r(61322),c=r(53966),u=r(97768),h=r(11254),d=r(84952);const f={async request(e,t){const r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,d.sC)(e.url)?.after?s:"array-buffer";const n=await(0,h.A)(e.url,r),o={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete o.data.signal,o;case"blob":o.data=await o.data.arrayBuffer();break;case"json":o.data=(new TextEncoder).encode(JSON.stringify(o.data)).buffer;break;case"text":o.data=(new TextEncoder).encode(o.data).buffer}return{result:o,transferList:[o.data]}}};var g=r(8341),m=r(2741),p=r(92602),b=r(79783),w=r(70333);r(87811);const y={};var k=r(26390);class _{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(t=>{this[t]=(...r)=>e[t](...r)})}}class v{constructor(){this._dispatcher=new _,this._workerPostMessage({type:g.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,k.d)(()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))})}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,k.d)(()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))})}async _workerMessageHandler(e){const t=(0,g.VI)(e);if(t&&t.type===g.Go.OPEN){const{modulePath:e,jobId:r}=t;let s=await l.default.loadWorker(e);s||(s=await import(e));const n=l.default.connect(s);this._workerPostMessage({type:g.Go.OPENED,jobId:r,data:n})}}}var A=r(18357);const P=()=>c.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:E}=g.Go;let L,N;const O="Failed to create Worker. Fallback to execute module in main thread";async function C(e){return new Promise(t=>{function r(n){const o=(0,g.VI)(n);o&&o.type===E&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),P().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new v).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)})}let I=0;const{ABORT:j,INVOKE:M,OPEN:J,OPENED:S,RESPONSE:R}=g.Go;class x{static async create(e){const t=await async function(){if(!(0,n.A)("esri-workers"))return C(new v);if(!L&&!N)try{const e='let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(e=>e||new Promise(e=>{require([o.modulePath],e)})).then(t)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath))).then(e=>e||System.import(o.modulePath)).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(t)}):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=p.A.default){const t={...p.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(p.A));e.assetsPath=(0,d.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,d.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.JK)(),e.has={"esri-csp-restrictions":(0,n.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,n.A)("esri-2d-update-debug"),"esri-2d-log-updating":(0,n.A)("esri-2d-log-updating"),"featurelayer-pbf":(0,n.A)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,n.A)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,n.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,n.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,n.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,n.A)("featurelayer-query-max-depth"),"featurelayer-query-tile-max-features":(0,n.A)("featurelayer-query-tile-max-features"),"featurelayer-query-tile-concurrency":(0,n.A)("featurelayer-query-tile-concurrency"),"featurelayer-query-pausing-enabled":(0,n.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-concurrency":(0,n.A)("featurelayer-snapshot-concurrency"),"featurelayer-snapshot-enabled":(0,n.A)("featurelayer-snapshot-enabled"),"parquetlayer-full-query-feature-count":(0,n.A)("parquetlayer-full-query-feature-count"),"esri-atomics":(0,n.A)("esri-atomics"),"esri-shared-array-buffer":(0,n.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,n.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,n.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,n.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,d.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,d.s2)(e.workers.workerPath):e.workers.workerPath=(0,d.s2)((0,m.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=(0,n.A)("esri-esbuild-build");const t=p.A.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...y.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=y.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,b.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),s={buildDate:A.$,fullVersion:w.ol,revision:A.u};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:s})}());L=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){N=e||{}}let e;if(L)try{e=new Worker(L,{name:"esri-worker-"+I++})}catch(t){P().warn(O,N),e=new v}else P().warn(O,N),e=new v;return C(e)}();return new x(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",e=>{e.preventDefault(),c.A.getLogger("esri.core.workers.WorkerOwner").error(e)})}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,s=(0,g.Jc)();return new Promise((t,n)=>{const i={resolve:t,reject:n,abortHandle:(0,o.NY)(r,()=>{this._outJobs.delete(s),this._post({type:j,jobId:s})})};this._outJobs.set(s,i),this._post({type:J,jobId:s,modulePath:e})})}_onMessage(e){const t=(0,g.VI)(e);if(t)switch(t.type){case S:this._onOpenedMessage(t);break;case R:this._onResponseMessage(t);break;case j:this._onAbortMessage(t);break;case M:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:n}=e,i=n?new AbortController:null,a=this._inJobs,l=f[t];let c;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);c=l.call(null,s,{signal:i?i.signal:null})}catch(e){return void this._post({type:R,jobId:r,error:(0,g.mF)(e)})}(0,o.$X)(c)?(a.set(r,{controller:i,promise:c}),c.then(e=>{a.has(r)&&(a.delete(r),this._post({type:R,jobId:r},e))},e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,o.zf)(e)||this._post({type:R,jobId:r,error:(0,g.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:R,jobId:r},c)}_onOpenedMessage(e){const{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,u.xt)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs.get(t);o&&(this._outJobs.delete(t),(0,u.xt)(o.abortHandle),r?o.reject(s.A.fromJSON(JSON.parse(r))):o.resolve(n))}_post(e,t,r){return(0,g.u1)(this.worker,e,t,r)}}const q=(0,n.A)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,n.A)("workers-pool-size")??8):0;let U=(0,n.A)("esri-mobile")?Math.min(q,3):q;U||(U=(0,n.A)("safari")&&(0,n.A)("mac")?7:2);let H=0;const D=[];async function $(e,t){const r=new i.A,{registryTarget:s,...n}=t;return await r.open(e,n),s&&(0,a.k)(s,r),r}async function W(e,t={}){if("string"!=typeof e)throw new s.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,n.A)("host-webworker")&&!(0,n.A)("esri-workers")&&(r="local"),"local"===r){let r=await l.default.loadWorker(e);r||(r=await import(e)),(0,o.Te)(t.signal);const s=t.client||r;return $([l.default.connect(r,t.schedule)],{...t,client:s})}if(await async function(){if(T)return T;F=new AbortController;const e=[];for(let t=0;t<U;t++){const r=x.create(t).then(e=>(D[t]=e,e));e.push(r)}return T=Promise.all(e),T}(),(0,o.Te)(t.signal),"dedicated"===r){const r=H++%U;return $([await D[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,U);if(r<U){const s=new Array(r);for(let n=0;n<r;++n){const r=H++%U;s[n]=D[r].open(e,t)}return $(s,t)}}return $(D.map(r=>r.open(e,t)),t)}let F,T=null},72457:(e,t,r)=>{r.d(t,{h:()=>o,k:()=>n});const s=new FinalizationRegistry(e=>{e.close()});function n(e,t){s.register(e,t,t)}function o(e){s.unregister(e)}},79783:(e,t,r)=>{r.d(t,{ud:()=>k,JK:()=>_,oQ:()=>v,V2:()=>P});var s=r(2741),n=r(97770),o=r(73444),i=r(10838),a=r(18047),l=r(53966),c=r(93637),u=r(799);const h=()=>l.A.getLogger("esri.intl.substitute");function d(e,t){switch(t.type){case"date":return(0,n.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return h().warn("missing format descriptor for key {key}"),g(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return h().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):g(e)}}function g(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.Yq)(e):""}}var m=r(11254),p=r(49186);async function b(e){if(null!=y.fetchBundleAsset)return y.fetchBundleAsset(e);const t=await(0,m.A)(e,{responseType:"text"});return JSON.parse(t.data)}class w{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const n=t.exec(r);if(!n)throw new p.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const o=n[1]?`${n[1]}/`:"",a=n[2],l=(0,i.xO)(s),c=`${o}${a}.json`,u=l?`${o}${a}_${l}.json`:c;let h;try{h=await b(e(u))}catch(t){if(u===c)throw new p.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{h=await b(e(c))}catch(e){throw new p.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return h}(this.getAssetUrl,this.matcher,e,t)}}const y={},k=i.ud,_=o.JK,v=o.oQ,A=i.ao,P=function(e,t,r={}){const{format:s={}}=r;return(0,u.HC)(e,e=>function(e,t,r){let s,n;const o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!s)return"";const i=(0,c.wc)(s,t);if(null==i)return"";const a=(n?r?.[n]:null)??r?.[s];return a?d(i,a):n?f(i,n):g(i)}(e,t,s))};var E;A((E={pattern:"esri/",location:s.s},new w(E)))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8692],{8303:(e,t,i)=>{i.d(t,{A:()=>T});var a=i(31635),s=i(92602),r=i(70333),n=i(11254),o=i(60999),l=i(49186),d=i(53966),h=i(97768),p=i(74887),u=i(84952),y=i(91429),c=i(77548),g=i(20655),f=i(80812),m=i(41318),w=i(10407),M=i(36005),b=i(43937);const T=e=>{const t=e;let T=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}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,i){if(t.itemId)return new f.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:a}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await a({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)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:a},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!r.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,a);let n,o;if(s)n=i.portal.url;else try{n=await(0,c.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!n||!(0,u.b8)(n,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(r.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,d=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:d},content:{updateItem:h}};try{if(s?await i.reload():(i=new f.default({id:e,portal:{url:n}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,a)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:d},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,w.It)(e);return t&&(i.features.edit=!0),i}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?r.id?.findCredential(this.url):null;if(!t)return!0;const i=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=r.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const a=`${i.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,u.S8)(s.restUrl)===(0,u.S8)(a))return s.user;const l=`${a}/community/self`,d=null!=e?e.signal:null,h=await(0,o.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return h.ok?m.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return i&&a&&!(0,u.ut)(a.restUrl,i.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,a.Cg)([(0,y.MZ)({type:f.default})],T.prototype,"portalItem",null),(0,a.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],T.prototype,"readPortalItem",null),(0,a.Cg)([(0,b.K)("web-document","portalItem",{itemId:{type:String}})],T.prototype,"writePortalItem",null),(0,a.Cg)([(0,y.MZ)({clonable:!1})],T.prototype,"resourceReferences",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasEditingPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasFullEditingPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasUpdateItemPrivileges",void 0),T=(0,a.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],T),T},_={credential:null,user:null}},10407:(e,t,i)=>{i.d(t,{It:()=>y,LG:()=>n,OM:()=>d,Sm:()=>h,Y:()=>o,bK:()=>l,mm:()=>u,sQ:()=>p});var a=i(91218),s=i(16930),r=i(28735);function n(e,t){if(!o(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,u.HOSTED_SERVICE)}function d(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function h(e,t,i){i?n(e,t):d(e,t)}async function p(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,r.ci)(e);const i=s.A.WGS84;return await(0,a.initializeProjection)(t,i),(0,a.project)(e,i)}(i)}const u={CHARTS:"Charts",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",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function y(e){const{portal:t,isOrgItem:i,itemControl:a}=e,s=t.user?.privileges;let r=!s||s.includes("features:user:edit"),n=!!i&&!!s?.includes("features:user:fullEdit");const o="update"===a||"admin"===a;return o?n=r=!0:n&&(r=!0),{features:{edit:r,fullEdit:n},content:{updateItem:o}}}},18768:(e,t,i)=>{i.d(t,{b:()=>o});var a=i(31635),s=i(53966),r=i(91429),n=i(60694);const o=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,n.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,n.Jf)(e,s.A.getLogger(this)))}};return(0,a.Cg)([(0,r.MZ)()],i.prototype,"title",null),(0,a.Cg)([(0,r.MZ)({type:String})],i.prototype,"url",null),i=(0,a.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISService")],i),i}},28692:(e,t,i)=>{i.r(t),i.d(t,{default:()=>G});var a=i(31635),s=i(67996),r=i(7762),n=i(49186),o=i(53966),l=i(91869),d=i(25728),h=i(74887),p=i(36708),u=i(84952),y=i(13069),c=i(91429),g=i(35666),f=i(4146),m=i(24137),w=i(62796),M=i(54898),b=i(18768),T=i(63074),_=i(69208),v=i(16131),A=i(8303),I=i(54310),D=i(25036),S=i(10873),C=i(48441),L=i(97159),E=i(36005),P=i(43937);let k=class extends((0,T.dM)((0,D.j)((0,I.J)((0,b.b)((0,v.q)((0,A.A)((0,d.P)((0,_.d)(f.A))))))))){constructor(e){super(e),this._graphTypeLookup=new Map,this._namedTypesModified=!1,this.dataManager=null,this.definitionSetMap=null,this.knowledgeGraph=null,this.layers=new(r.A.ofType(w.A)),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="KnowledgeGraphLayer",this.sublayerIdsCache=new Map,this.tables=new(r.A.ofType(w.A)),this.type="knowledge-graph",this.url=null,this.addHandles((0,p.wB)(()=>this.layers.concat(this.tables),(e,t)=>this._handleSublayersChange(e,t),p.OH))}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){try{await this.loadFromPortal({supportedTypes:["Knowledge Graph Layer"]},e)}catch(e){(0,h.QP)(e)}await this._fetchMetadata(),await this._initializeLayerProperties(e),this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,M.qN)(this)}async _fetchMetadata(){if(!this.url)throw new n.A("knowledge-graph:missing-url","KnowledgeGraphLayer must be created with a url");const e=await(0,C.fetchKnowledgeGraph)(this.url);this.knowledgeGraph=e,this._forEachGraphType(e=>{e.name&&this._graphTypeLookup.set(e.name,e)})}async _initializeLayerProperties(e){7===this.originIdOf("inclusionModeDefinition")?this._validateInclusionModeDefinition():await this._initializeInclusionModeDefinition(e),this._setMemberTypes(),this.dataManager=new m.P({knowledgeGraph:this.knowledgeGraph,inclusionModeDefinition:this.inclusionModeDefinition})}async _initializeInclusionModeDefinition(e){const t=this.definitionSetMap?await(0,s.cZ)(this.definitionSetMap,!0,e?.signal?{signal:e.signal}:void 0):{generateAllSublayers:!0,namedTypeDefinitions:new Map};[...this.layers.toArray(),...this.tables.toArray()].forEach(e=>{const i=this._graphTypeLookup.get(e.graphTypeName);i&&!t.namedTypeDefinitions.has(i.name)&&t.namedTypeDefinitions.set(i.name,{useAllData:!0})}),this.setAtOrigin("inclusionModeDefinition",t,(0,g.OL)(this.originIdOf("definitionSetMap")))}_validateInclusionModeDefinition(){const{inclusionModeDefinition:e}=this;if(!e)return;const{namedTypeDefinitions:t}=e;if(t?.size>0)t.forEach((e,i)=>{const a=this._graphTypeLookup.get(i);if(!a)return o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void t.delete(i);"relationship"!==a.type&&"entity"!==a.type&&(o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't properly modeled and will be removed`),t.delete(i))});else if(!e.generateAllSublayers)throw new n.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined")}_setMemberTypes(){let e=[],t=[];const{inclusionModeDefinition:i}=this,a=i?.namedTypeDefinitions;!i||i.generateAllSublayers?(e=this.knowledgeGraph.dataModel?.entityTypes??[],t=this.knowledgeGraph.dataModel?.relationshipTypes??[]):a&&a.size>0&&a.forEach((i,a)=>{const s=this._graphTypeLookup.get(a);switch(s?.type){case"relationship":t.push(s);break;case"entity":e.push(s)}}),this.memberEntityTypes=e,this.memberRelationshipTypes=t}_forEachGraphType(e){[...this.knowledgeGraph.dataModel?.entityTypes??[],...this.knowledgeGraph.dataModel?.relationshipTypes??[]].forEach(t=>{e(t)})}_refreshNamedTypes(){this._namedTypesModified=!0;for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}async _handleNewRecords(e){const t=new Set,i=[];for(const a of e)this._graphTypeLookup.has(a.typeName)&&(!1===this.layers.concat(this.tables).some(e=>e.objectType.name===a.typeName)&&(this.dataManager.sublayerCaches.set(a.typeName,new Map),t.add(a.typeName)),(0,l.tE)(this.sublayerIdsCache,a.typeName,()=>new Set).add(a.id),i.push(a));this.dataManager.addToLayer(i);for(const e of t){const t=this._graphTypeLookup.get(e);t&&(this._addSublayer(t),"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e))}await(0,M.qN)(this,Array.from(t)),this._refreshNamedTypes()}_createSublayers(e,t,i){e.forEach(e=>{const a=this._createSublayer(e);i(a)&&t.push(a),this._updateSublayerCaches(e)})}_addSublayer(e){const t=this._createSublayer(e);return t.geometryType?this.layers.push(t):this.tables.push(t),t}_createSublayer(e){return new w.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_updateSublayers(e,t){t.forEach(t=>{t.parentCompositeLayer=this;const i=e.find(e=>e.type===t.graphType&&e.name===t.graphTypeName);i&&(t.objectType=i,this._updateSublayerCaches(i))})}_updateSublayerCaches({name:e}){if(!e)return;const t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_saveUrlAsNewResource(e,t,i,a){e[t]="<pending>",i.pendingOperations.push(async function(e){const t=await(0,s.fe)(e);return new Blob([t],{type:"application/x-protobuf"})}(this.inclusionModeDefinition).then(s=>{const r=function(e){const t=`definitionSetMap-${(0,y.lk)()}.dat`,i=(0,u.fj)("knowledgeGraphLayer",t);return e.resourceFromPath(i)}(a);e[t]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:{type:"blob",blob:s},compress:!1,finish:e=>{this.definitionSetMap=e.url}})}))}_displaysAllRecords(e){for(const[,{useAllData:t}]of e.namedTypeDefinitions)if(!t)return!1;return!0}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this}),e.on("after-remove",({item:e})=>{e.parent=null})],"sublayers-owner"))}_layersLoadedFromAuthoritativeItem(){const e=this.originIdOf("layers");return e>=3&&e<7}readDefinitionSetMap(e,t,i){return(0,L.f)(e,i)}writeDefinitionSetMap(e,t,i,a){const s=a?.portalItem,r=a?.resources,n=(0,g.aB)(a?.origin);if(!s||!r||null==n)return void(e&&(t[i]=(0,L.t)(e,a)));const{inclusionModeDefinition:o}=this;if(!o||this._displaysAllRecords(o))return void(this.definitionSetMap=null);const l=this.originIdOf("inclusionModeDefinition");if(7===l||this._namedTypesModified||n<l)this._saveUrlAsNewResource(t,i,r,s);else if(n===l&&e){const n=(0,L.t)(e,a);(0,u.oP)(n)?this._saveUrlAsNewResource(t,i,r,s):t[i]=n}}set inclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("inclusionModeDefinition",e):o.A.getLogger(this).error("#inclusionModeDefinition","inclusionModeDefinition cannot be changed after the layer is loaded.")}get sublayerCapabilities(){return(0,M.hZ)(this.knowledgeGraph)}loadLayerAssumingLocalCache(){const e=[...this.memberEntityTypes,...this.memberRelationshipTypes];this.layers.length||0===this.originIdOf("tables")?0===this.originIdOf("layers")?this._createSublayers(e,this.layers,e=>!!e.geometryType):this._updateSublayers(e,this.layers):this.layers=new r.A,this.tables.length||0===this.originIdOf("layers")?0===this.originIdOf("tables")?this._createSublayers(e,this.tables,e=>!e.geometryType):this._updateSublayers(e,this.tables):this.tables=new r.A,this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{const i=(0,l.tE)(this.sublayerIdsCache,t,()=>new Set);e.members?.forEach(e=>{i.add(e.id)})})}async addRecords(e){await this.load(),await this._handleNewRecords(e)}async createSublayerForNamedType(e){await this.load();const t=this._graphTypeLookup.get(e);if(!t)throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,l.tE)(this.sublayerIdsCache,e,()=>new Set);const i=this._addSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),await(0,M.qN)(this,[e]),this._refreshNamedTypes(),i}convertSublayerToDynamicData(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);t?.useAllData?o.A.getLogger(this).warn("This Knowledge Graph Layer already uses dynamic membership for the sublayer - no conversion was made"):(this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),this.sublayerIdsCache.delete(e),this._refreshNamedTypes())}convertSublayerToExplicitMembership(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);if(!t||t.useAllData){if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");this.sublayerIdsCache.set(e,new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),this._refreshNamedTypes()}else o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership for the sublayer - no conversion was made")}convertToFullyDynamicData(){this.dataManager.inclusionModeDefinition||o.A.getLogger(this).warn("This Knowledge Graph Layer already uses fully dynamic membership - no conversion was made"),this.sublayerIdsCache.clear(),this.dataManager.inclusionModeDefinition=null,this._refreshNamedTypes()}convertToExplicitMembership(){this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.size>0&&o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership - no conversion was made"),this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map};for(const e of this.dataManager.sublayerCaches.keys())(0,l.tE)(this.sublayerIdsCache,e,()=>new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map});this._refreshNamedTypes()}async removeRecords(e){await this.load();const t=[];for(const i of e)!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.members?.has(i.id)&&t.push(i);this.dataManager.removeFromLayer(t);for(const e of t)this.sublayerIdsCache.get(e.typeName)?.delete(e.id);return this._refreshNamedTypes(),t}};(0,a.Cg)([(0,c.MZ)()],k.prototype,"dataManager",void 0),(0,a.Cg)([(0,c.MZ)({json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],k.prototype,"definitionSetMap",void 0),(0,a.Cg)([(0,E.w)("definitionSetMap")],k.prototype,"readDefinitionSetMap",null),(0,a.Cg)([(0,P.K)("definitionSetMap")],k.prototype,"writeDefinitionSetMap",null),(0,a.Cg)([(0,c.MZ)()],k.prototype,"inclusionModeDefinition",null),(0,a.Cg)([(0,c.MZ)()],k.prototype,"knowledgeGraph",void 0),(0,a.Cg)([(0,c.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],k.prototype,"layers",void 0),(0,a.Cg)([(0,c.MZ)()],k.prototype,"memberEntityTypes",void 0),(0,a.Cg)([(0,c.MZ)()],k.prototype,"memberRelationshipTypes",void 0),(0,a.Cg)([(0,c.MZ)({type:["KnowledgeGraphLayer"]})],k.prototype,"operationalLayerType",void 0),(0,a.Cg)([(0,c.MZ)()],k.prototype,"sublayerCapabilities",null),(0,a.Cg)([(0,c.MZ)()],k.prototype,"sublayerIdsCache",void 0),(0,a.Cg)([(0,c.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],k.prototype,"tables",void 0),(0,a.Cg)([(0,c.MZ)({json:{read:!1}})],k.prototype,"type",void 0),(0,a.Cg)([(0,c.MZ)(S.OZ)],k.prototype,"url",void 0),k=(0,a.Cg)([(0,c.$K)("esri.layers.KnowledgeGraphLayer")],k);const G=k},69208:(e,t,i)=>{i.d(t,{d:()=>r});var a=i(31635),s=i(91429);const r=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,a.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,a.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}}}]);