@arcgis/core 4.32.0-next.20250129 → 4.32.0-next.20250130

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 (734) hide show
  1. package/applications/Components/SelectionOperation.d.ts +1 -2
  2. package/applications/Components/SketchTooltipControls.d.ts +1 -2
  3. package/applications/Components/basemapUtils.d.ts +1 -2
  4. package/applications/Components/drawUtils.d.ts +1 -2
  5. package/applications/Components/fontUtils.d.ts +1 -2
  6. package/applications/Components/getDefaultUnits.d.ts +1 -2
  7. package/applications/Components/gfxUtils.d.ts +1 -2
  8. package/applications/Components/layerOriginUtils.d.ts +4 -2
  9. package/applications/Components/layersEffectsJsonUtils.d.ts +1 -2
  10. package/applications/Components/previewSymbol2D.d.ts +1 -2
  11. package/applications/Components/reactiveUtils.d.ts +1 -2
  12. package/applications/Components/styleUtils.d.ts +1 -2
  13. package/applications/Components/svgUtils.d.ts +3 -2
  14. package/applications/Components/webStyleSymbolUtils.d.ts +1 -2
  15. package/applications/Excalibur/videoViewUtils.d.ts +1 -2
  16. package/applications/ExperienceBuilder/sketchUtils.d.ts +3 -2
  17. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +2 -2
  18. package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +3 -2
  19. package/applications/KnowledgeStudio/resourceSerializationUtils.d.ts +4 -2
  20. package/applications/MapViewer/mediaUtils.d.ts +2 -2
  21. package/applications/MapViewer/templateUtils.d.ts +4 -2
  22. package/applications/SceneViewer/colorUtils.d.ts +1 -2
  23. package/applications/SceneViewer/devEnvironmentUtils.d.ts +3 -2
  24. package/applications/SceneViewer/layerUtils.d.ts +2 -2
  25. package/applications/SceneViewer/sceneViewerUtils.d.ts +15 -2
  26. package/applications/SceneViewer/symbolUtils.d.ts +1 -2
  27. package/applications/Urban/meshUtils.d.ts +1 -2
  28. package/applications/WebEditor/sketchUtils.d.ts +2 -2
  29. package/arcade.d.ts +2 -2
  30. package/assets/components/assets/icon/hammerCoin16.json +1 -0
  31. package/assets/components/assets/icon/hammerCoin24.json +1 -0
  32. package/assets/components/assets/icon/hammerCoin32.json +1 -0
  33. package/assets/components/assets/icon/hammerLock16.json +1 -0
  34. package/assets/components/assets/icon/hammerLock24.json +1 -0
  35. package/assets/components/assets/icon/hammerLock32.json +1 -0
  36. package/assets/esri/core/workers/RemoteClient.js +1 -1
  37. package/assets/esri/core/workers/chunks/{474c4f4c3b8649a807d9.js → 07c5f3fc475c57f5a7a7.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{41f7287832d407f13ce5.js → 09b77f82c22530b44daa.js} +1 -1
  39. package/assets/esri/core/workers/chunks/0ebdf0d1fd2034b24519.js +972 -0
  40. package/assets/esri/core/workers/chunks/149bad940feb0764b350.js +1 -0
  41. package/assets/esri/core/workers/chunks/1891c9aa162c5df1d27c.js +1 -0
  42. package/assets/esri/core/workers/chunks/22e11a8abc70b6571a2b.js +1 -0
  43. package/assets/esri/core/workers/chunks/{6eb829a7959df2269b0e.js → 24c94f97a76646d415ae.js} +1 -1
  44. package/assets/esri/core/workers/chunks/25c8cc30faade043c8dc.js.LICENSE.txt +1 -1
  45. package/assets/esri/core/workers/chunks/2ff63a71213f618377d6.js +1 -0
  46. package/assets/esri/core/workers/chunks/308ec51ff4a66f7fcb0d.js.LICENSE.txt +1 -1
  47. package/assets/esri/core/workers/chunks/380d37ceb8cf52bad190.js +1 -0
  48. package/assets/esri/core/workers/chunks/{1e17b693f2d974c3de2d.js → 3ec51b75d1a86dad6cb1.js} +1 -1
  49. package/assets/esri/core/workers/chunks/4263eee3247aaf4e64bf.js +1 -0
  50. package/assets/esri/core/workers/chunks/{b6440ddc595ba2ba8f8e.js → 448ee44c7f594e5b2551.js} +1 -1
  51. package/assets/esri/core/workers/chunks/476205ee4414ed80666a.js +1 -0
  52. package/assets/esri/core/workers/chunks/4b56c0c109e10d7409b8.js +1 -0
  53. package/assets/esri/core/workers/chunks/{1e1306527fb38c5894eb.js → 5a536de1ecae424bad05.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{b65dcdf5818ee04aa7e0.js → 5adeb979f178944b9ce5.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{f09c95c3d79205ee5a84.js → 5e9bf6d0db82526b8a8c.js} +5 -5
  56. package/assets/esri/core/workers/chunks/{e7913ec1b4f9da490ba3.js → 69ab4b780f7223cfd7dd.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{429d19f4b59d9d265c2c.js → 6e25742ceedea7fb1b97.js} +1 -1
  58. package/assets/esri/core/workers/chunks/6e8905f20101c1f4509d.js.LICENSE.txt +1 -1
  59. package/assets/esri/core/workers/chunks/{a6e96d0d9ac3224c8f00.js → 6ef2514a6b7bbfb8e37d.js} +1 -1
  60. package/assets/esri/core/workers/chunks/72cf9192292e5c85c6df.js.LICENSE.txt +1 -1
  61. package/assets/esri/core/workers/chunks/{a591906154e12eb4fa43.js → 7810579a5a780933cdc9.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{fa0d968733d581bc2e4d.js → 7d120f8b01fe719eb257.js} +1 -1
  63. package/assets/esri/core/workers/chunks/83edac97a52b26ead1ea.js +314 -0
  64. package/assets/esri/core/workers/chunks/{d81fea1d36e7c2fbdffd.js → 881ddbdeb40336208e90.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{ec9d5af8887854e821c8.js → 88cbaa91c495d86f4bb0.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{09a897c342a45ef9125c.js → 9011704b258ecbfb6d9b.js} +2 -2
  67. package/assets/esri/core/workers/chunks/{09a897c342a45ef9125c.js.LICENSE.txt → 9011704b258ecbfb6d9b.js.LICENSE.txt} +1 -1
  68. package/assets/esri/core/workers/chunks/97310e6eec87eeaf58f0.js +1 -0
  69. package/assets/esri/core/workers/chunks/b21b152fa15896577242.js.LICENSE.txt +1 -1
  70. package/assets/esri/core/workers/chunks/{4253b2802abb84afc428.js → b68bddd0c4ca91493543.js} +1 -1
  71. package/assets/esri/core/workers/chunks/bf9bc52a3c559108c19a.js +2 -0
  72. package/assets/esri/core/workers/chunks/{9b687465cc3863e14b29.js.LICENSE.txt → bf9bc52a3c559108c19a.js.LICENSE.txt} +1 -1
  73. package/assets/esri/core/workers/chunks/c249ad935f54d3b49ae3.js +1 -0
  74. package/assets/esri/core/workers/chunks/d1678945cf6a58f76863.js +1 -0
  75. package/assets/esri/core/workers/chunks/{9ed1691eab19dfb1cf04.js → d1718ad93e3271b0525e.js} +1 -1
  76. package/assets/esri/core/workers/chunks/d599ba865da87b487b1b.js +1 -0
  77. package/assets/esri/core/workers/chunks/dd46ec81cebe1a0a7b9c.js +1 -0
  78. package/assets/esri/core/workers/chunks/debfb75a94b66b58cbbc.js +1 -0
  79. package/assets/esri/core/workers/chunks/{c6135d2548d4a31298eb.js → e0de91eacf3a3b7eda55.js} +4 -4
  80. package/assets/esri/core/workers/chunks/e444ec05a8a1dfbd21a8.js +1 -0
  81. package/assets/esri/core/workers/chunks/{b84c28fe94b3cd7b480d.js → e4651d577d297386268e.js} +1 -1
  82. package/assets/esri/core/workers/chunks/f8367c21fa91435c7c53.js +1 -0
  83. package/assets/esri/themes/base/_Ui.scss +6 -0
  84. package/assets/esri/themes/base/_mixins.scss +0 -7
  85. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +0 -4
  86. package/assets/esri/themes/base/widgets/_Bookmarks.scss +0 -4
  87. package/assets/esri/themes/base/widgets/_CatalogLayerList.scss +0 -4
  88. package/assets/esri/themes/base/widgets/_Features.scss +0 -4
  89. package/assets/esri/themes/base/widgets/_LayerList.scss +0 -4
  90. package/assets/esri/themes/base/widgets/_TableList.scss +0 -4
  91. package/assets/esri/themes/dark/main.css +1 -1
  92. package/assets/esri/themes/light/main.css +1 -1
  93. package/assets/esri/themes/light/view.css +1 -1
  94. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  95. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  96. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ar.json +1 -1
  97. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bg.json +1 -1
  98. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bs.json +1 -1
  99. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ca.json +1 -1
  100. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_cs.json +1 -1
  101. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_da.json +1 -1
  102. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_de.json +1 -1
  103. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_el.json +1 -1
  104. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_es.json +1 -1
  105. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_et.json +1 -1
  106. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fi.json +1 -1
  107. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fr.json +1 -1
  108. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_he.json +1 -1
  109. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hr.json +1 -1
  110. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hu.json +1 -1
  111. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_id.json +1 -1
  112. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_it.json +1 -1
  113. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ja.json +1 -1
  114. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ko.json +1 -1
  115. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lt.json +1 -1
  116. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lv.json +1 -1
  117. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nl.json +1 -1
  118. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_no.json +1 -1
  119. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pl.json +1 -1
  120. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-BR.json +1 -1
  121. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-PT.json +1 -1
  122. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ro.json +1 -1
  123. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ru.json +1 -1
  124. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sk.json +1 -1
  125. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sl.json +1 -1
  126. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sr.json +1 -1
  127. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sv.json +1 -1
  128. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_th.json +1 -1
  129. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_tr.json +1 -1
  130. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_uk.json +1 -1
  131. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_vi.json +1 -1
  132. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-CN.json +1 -1
  133. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-HK.json +1 -1
  134. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-TW.json +1 -1
  135. package/chunks/AtmosphereCompositing.glsl.js +2 -2
  136. package/chunks/BlendLayers.glsl.js +1 -1
  137. package/chunks/BlendWeights.glsl.js +1 -1
  138. package/chunks/BloomBlur.glsl.js +23 -23
  139. package/chunks/BloomComposition.glsl.js +3 -3
  140. package/chunks/BloomDepthAdjust.glsl.js +2 -2
  141. package/chunks/Blur.glsl.js +1 -1
  142. package/chunks/ChapmanAtmosphere.glsl.js +2 -2
  143. package/chunks/CheckerBoard.glsl.js +2 -2
  144. package/chunks/Clouds.glsl.js +14 -14
  145. package/chunks/CloudsComposition.glsl.js +1 -1
  146. package/chunks/ColorMaterial.glsl.js +1 -1
  147. package/chunks/ComponentShader.glsl.js +4 -4
  148. package/chunks/Compositing.glsl.js +2 -2
  149. package/chunks/DefaultMaterial.glsl.js +16 -15
  150. package/chunks/EdgeDetect.glsl.js +2 -2
  151. package/chunks/EdgeShader.glsl.js +2 -2
  152. package/chunks/FocusAreaColor.glsl.js +2 -2
  153. package/chunks/FocusAreaMask.glsl.js +1 -1
  154. package/chunks/Fog.glsl.js +3 -3
  155. package/chunks/HUDCompositing.glsl.js +1 -1
  156. package/chunks/HUDMaterial.glsl.js +24 -24
  157. package/chunks/Haze.glsl.js +3 -3
  158. package/chunks/HazeCompositing.glsl.js +2 -2
  159. package/chunks/Heatmap.glsl.js +1 -1
  160. package/chunks/HeatmapDensity.glsl.js +5 -5
  161. package/chunks/HighlightApply.glsl.js +2 -2
  162. package/chunks/HighlightDownsample.glsl.js +2 -2
  163. package/chunks/HighlightToSingle.glsl.js +2 -2
  164. package/chunks/ImageMaterial.glsl.js +4 -4
  165. package/chunks/LaserlinePath.glsl.js +1 -1
  166. package/chunks/Laserlines.glsl.js +1 -1
  167. package/chunks/LineCallout.glsl.js +1 -1
  168. package/chunks/LineMarker.glsl.js +8 -8
  169. package/chunks/Magnifier.glsl.js +4 -4
  170. package/chunks/MeasurementArrow.glsl.js +2 -2
  171. package/chunks/NativeLine.glsl.js +4 -4
  172. package/chunks/NoiseTextureAtlas.glsl.js +34 -34
  173. package/chunks/OITBlend.glsl.js +3 -3
  174. package/chunks/OverlayCompositing.glsl.js +1 -1
  175. package/chunks/Path.glsl.js +9 -9
  176. package/chunks/Pattern.glsl.js +3 -3
  177. package/chunks/PointRenderer.glsl.js +1 -1
  178. package/chunks/Precipitation.glsl.js +1 -1
  179. package/chunks/RasterColorizer.glsl.js +9 -9
  180. package/chunks/RealisticTree.glsl.js +3 -3
  181. package/chunks/RibbonLine.glsl.js +32 -32
  182. package/chunks/SSAO.glsl.js +2 -2
  183. package/chunks/SSAOBlur.glsl.js +1 -1
  184. package/chunks/ShadedColorMaterial.glsl.js +3 -3
  185. package/chunks/ShadowCastAccumulate.glsl.js +2 -2
  186. package/chunks/ShadowCastVisualize.glsl.js +4 -4
  187. package/chunks/ShadowHighlight.glsl.js +2 -2
  188. package/chunks/SimpleAtmosphere.glsl.js +8 -8
  189. package/chunks/SingleHighlightApply.glsl.js +1 -1
  190. package/chunks/SingleHighlightBlur.glsl.js +6 -7
  191. package/chunks/SlicePlaneMaterial.glsl.js +2 -2
  192. package/chunks/Stars.glsl.js +2 -2
  193. package/chunks/Terrain.glsl.js +2 -2
  194. package/chunks/TextureOnly.glsl.js +2 -2
  195. package/chunks/Viewshed.glsl.js +2 -2
  196. package/chunks/WaterSurface.glsl.js +7 -7
  197. package/core/accessorSupport/decorators.d.ts +4 -2
  198. package/core/jsonMap.js +1 -1
  199. package/core/lang.d.ts +1 -2
  200. package/core/libs/gl-matrix-2/factories/vec2f64.js +1 -1
  201. package/core/promiseUtils.d.ts +5 -2
  202. package/core/quantity.d.ts +3 -2
  203. package/core/reactiveUtils.d.ts +5 -2
  204. package/core/scheduling.d.ts +2 -2
  205. package/core/sql.d.ts +1 -2
  206. package/core/units.d.ts +9 -2
  207. package/core/urlUtils.d.ts +5 -2
  208. package/core/workers.d.ts +1 -2
  209. package/editing/templateUtils.js +1 -1
  210. package/form/elements/inputs.d.ts +11 -2
  211. package/form/elements.d.ts +7 -2
  212. package/geometry/coordinateFormatter.d.ts +11 -2
  213. package/geometry/geometryEngine.d.ts +37 -2
  214. package/geometry/geometryEngineAsync.d.ts +37 -2
  215. package/geometry/operators/affineTransformOperator.d.ts +3 -2
  216. package/geometry/operators/alphaShapeOperator.d.ts +3 -2
  217. package/geometry/operators/areaOperator.d.ts +2 -2
  218. package/geometry/operators/autoCompleteOperator.d.ts +2 -2
  219. package/geometry/operators/boundaryOperator.d.ts +3 -2
  220. package/geometry/operators/bufferOperator.d.ts +3 -2
  221. package/geometry/operators/centroidOperator.d.ts +2 -2
  222. package/geometry/operators/clipOperator.d.ts +3 -2
  223. package/geometry/operators/containsOperator.d.ts +3 -2
  224. package/geometry/operators/convexHullOperator.d.ts +4 -2
  225. package/geometry/operators/crossesOperator.d.ts +3 -2
  226. package/geometry/operators/cutOperator.d.ts +2 -2
  227. package/geometry/operators/densifyOperator.d.ts +3 -2
  228. package/geometry/operators/differenceOperator.d.ts +3 -2
  229. package/geometry/operators/disjointOperator.d.ts +3 -2
  230. package/geometry/operators/distanceOperator.d.ts +2 -2
  231. package/geometry/operators/equalsOperator.d.ts +3 -2
  232. package/geometry/operators/extendOperator.d.ts +2 -2
  233. package/geometry/operators/generalizeOperator.d.ts +3 -2
  234. package/geometry/operators/geodesicBufferOperator.d.ts +5 -2
  235. package/geometry/operators/geodesicProximityOperator.d.ts +6 -2
  236. package/geometry/operators/geodeticAreaOperator.d.ts +4 -2
  237. package/geometry/operators/geodeticDensifyOperator.d.ts +5 -2
  238. package/geometry/operators/geodeticDistanceOperator.d.ts +4 -2
  239. package/geometry/operators/geodeticLengthOperator.d.ts +4 -2
  240. package/geometry/operators/graphicBufferOperator.d.ts +2 -2
  241. package/geometry/operators/integrateOperator.d.ts +2 -2
  242. package/geometry/operators/intersectionOperator.d.ts +4 -2
  243. package/geometry/operators/intersectsOperator.d.ts +3 -2
  244. package/geometry/operators/isNearOperator.d.ts +2 -2
  245. package/geometry/operators/labelPointOperator.d.ts +3 -2
  246. package/geometry/operators/lengthOperator.d.ts +2 -2
  247. package/geometry/operators/linesToPolygonsOperator.d.ts +2 -2
  248. package/geometry/operators/locateBetweenOperator.d.ts +2 -2
  249. package/geometry/operators/minimumBoundingCircleOperator.d.ts +3 -2
  250. package/geometry/operators/multiPartToSinglePartOperator.d.ts +2 -2
  251. package/geometry/operators/offsetOperator.d.ts +3 -2
  252. package/geometry/operators/overlapsOperator.d.ts +3 -2
  253. package/geometry/operators/polygonOverlayOperator.d.ts +2 -2
  254. package/geometry/operators/polygonSlicerOperator.d.ts +4 -2
  255. package/geometry/operators/projectOperator.d.ts +5 -2
  256. package/geometry/operators/proximityOperator.d.ts +4 -2
  257. package/geometry/operators/relateOperator.d.ts +4 -2
  258. package/geometry/operators/reshapeOperator.d.ts +2 -2
  259. package/geometry/operators/shapePreservingProjectOperator.d.ts +5 -2
  260. package/geometry/operators/simplifyOperator.d.ts +4 -2
  261. package/geometry/operators/support/geographicTransformationUtils.d.ts +4 -2
  262. package/geometry/operators/symmetricDifferenceOperator.d.ts +3 -2
  263. package/geometry/operators/touchesOperator.d.ts +3 -2
  264. package/geometry/operators/unionOperator.d.ts +3 -2
  265. package/geometry/operators/withinOperator.d.ts +3 -2
  266. package/geometry/projection.d.ts +5 -2
  267. package/geometry/support/geodesicUtils.d.ts +5 -2
  268. package/geometry/support/jsonUtils.d.ts +2 -2
  269. package/geometry/support/meshUtils.d.ts +6 -2
  270. package/geometry/support/normalizeUtils.d.ts +2 -2
  271. package/geometry/support/webMercatorUtils.d.ts +6 -2
  272. package/geometry.d.ts +7 -2
  273. package/interfaces.d.ts +48 -64
  274. package/intl.d.ts +16 -2
  275. package/kernel.d.ts +2 -2
  276. package/layers/LinkChartLayer.js +1 -1
  277. package/layers/catalog/catalogUtils.d.ts +2 -2
  278. package/layers/graphics/OptimizedGeometry.js +1 -1
  279. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  280. package/layers/knowledgeGraph/cypherUtils.d.ts +1 -2
  281. package/layers/knowledgeGraph/layerUtils.js +1 -1
  282. package/layers/knowledgeGraph/supportUtils.d.ts +4 -2
  283. package/layers/mixins/APIKeyMixin.d.ts +1 -1
  284. package/layers/mixins/ArcGISCachedService.d.ts +1 -1
  285. package/layers/mixins/ArcGISImageService.d.ts +1 -1
  286. package/layers/mixins/ArcGISMapService.d.ts +1 -1
  287. package/layers/mixins/BlendLayer.d.ts +1 -1
  288. package/layers/mixins/CustomParametersMixin.d.ts +1 -1
  289. package/layers/mixins/DisplayFilteredLayer.d.ts +1 -1
  290. package/layers/mixins/FeatureEffectLayer.d.ts +1 -1
  291. package/layers/mixins/FeatureLayerBase.d.ts +1 -1
  292. package/layers/mixins/FeatureReductionLayer.d.ts +1 -1
  293. package/layers/mixins/ImageryTileMixin.d.ts +1 -1
  294. package/layers/mixins/OperationalLayer.d.ts +1 -1
  295. package/layers/mixins/OrderedLayer.d.ts +1 -1
  296. package/layers/mixins/PortalLayer.d.ts +1 -1
  297. package/layers/mixins/PublishableLayer.d.ts +1 -1
  298. package/layers/mixins/RasterPresetRendererMixin.d.ts +1 -1
  299. package/layers/mixins/RefreshableLayer.d.ts +1 -1
  300. package/layers/mixins/ScaleRangeLayer.d.ts +1 -1
  301. package/layers/mixins/SceneService.d.ts +1 -1
  302. package/layers/mixins/SublayersOwner.d.ts +1 -1
  303. package/layers/mixins/TemporalLayer.d.ts +1 -1
  304. package/layers/mixins/TemporalSceneLayer.d.ts +1 -1
  305. package/layers/ogc/wcsUtils.d.ts +1 -2
  306. package/layers/ogc/wfsUtils.d.ts +2 -2
  307. package/layers/orientedImagery/transformations/imageToWorld.d.ts +1 -2
  308. package/layers/orientedImagery/transformations/worldToImage.d.ts +1 -2
  309. package/layers/support/Sublayer.js +1 -1
  310. package/layers/support/arcadeUtils.d.ts +1 -2
  311. package/layers/support/csvUtils.d.ts +1 -2
  312. package/layers/support/fieldUtils.d.ts +8 -2
  313. package/layers/support/rasterFunctionConstants.d.ts +15 -2
  314. package/layers/support/rasterFunctionUtils.d.ts +105 -2
  315. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  316. package/package.json +2 -2
  317. package/pointCloudRenderers.d.ts +5 -2
  318. package/popup/content.d.ts +9 -2
  319. package/rasterRenderers.d.ts +7 -2
  320. package/renderers/mixins/VisualVariablesMixin.d.ts +1 -1
  321. package/renderers/support/jsonUtils.d.ts +1 -2
  322. package/renderers/support/utils.d.ts +2 -2
  323. package/renderers.d.ts +9 -2
  324. package/rest/closestFacility.d.ts +1 -2
  325. package/rest/featureService/utils.d.ts +1 -2
  326. package/rest/find.d.ts +1 -2
  327. package/rest/geometryService.d.ts +21 -2
  328. package/rest/geoprocessor.d.ts +2 -2
  329. package/rest/identify.d.ts +1 -2
  330. package/rest/imageService.d.ts +19 -2
  331. package/rest/knowledgeGraphService.d.ts +11 -2
  332. package/rest/locator.d.ts +4 -2
  333. package/rest/networkService.d.ts +1 -2
  334. package/rest/networks/queryAssociations.d.ts +1 -2
  335. package/rest/networks/synthesizeAssociationGeometries.d.ts +1 -2
  336. package/rest/networks/trace.d.ts +1 -2
  337. package/rest/places.d.ts +3 -2
  338. package/rest/print.d.ts +2 -2
  339. package/rest/query.d.ts +11 -2
  340. package/rest/route.d.ts +1 -2
  341. package/rest/serviceArea.d.ts +1 -2
  342. package/rest/symbolService.d.ts +1 -2
  343. package/smartMapping/labels/bins.d.ts +1 -2
  344. package/smartMapping/labels/clusters.d.ts +1 -2
  345. package/smartMapping/popup/clusters.d.ts +1 -2
  346. package/smartMapping/popup/templates.d.ts +1 -2
  347. package/smartMapping/raster/renderers/classBreaks.d.ts +1 -2
  348. package/smartMapping/raster/renderers/colormap.d.ts +1 -2
  349. package/smartMapping/raster/renderers/flow.d.ts +1 -2
  350. package/smartMapping/raster/renderers/rgb.d.ts +1 -2
  351. package/smartMapping/raster/renderers/shadedRelief.d.ts +1 -2
  352. package/smartMapping/raster/renderers/stretch.d.ts +1 -2
  353. package/smartMapping/raster/renderers/uniqueValue.d.ts +1 -2
  354. package/smartMapping/raster/renderers/vectorField.d.ts +1 -2
  355. package/smartMapping/raster/support/colorRamps.d.ts +5 -2
  356. package/smartMapping/raster/support/utils.d.ts +2 -2
  357. package/smartMapping/renderers/color.d.ts +6 -2
  358. package/smartMapping/renderers/dotDensity.d.ts +1 -2
  359. package/smartMapping/renderers/dotDensity.js +1 -1
  360. package/smartMapping/renderers/heatmap.d.ts +2 -2
  361. package/smartMapping/renderers/heatmap.js +1 -1
  362. package/smartMapping/renderers/location.d.ts +1 -2
  363. package/smartMapping/renderers/opacity.d.ts +1 -2
  364. package/smartMapping/renderers/pieChart.d.ts +2 -2
  365. package/smartMapping/renderers/predominance.d.ts +1 -2
  366. package/smartMapping/renderers/relationship.d.ts +2 -2
  367. package/smartMapping/renderers/size.d.ts +5 -2
  368. package/smartMapping/renderers/support/rendererUtils.d.ts +1 -2
  369. package/smartMapping/renderers/type.d.ts +2 -2
  370. package/smartMapping/renderers/univariateColorSize.d.ts +2 -2
  371. package/smartMapping/statistics/heatmapStatistics.js +1 -1
  372. package/smartMapping/statistics/summaryStatisticsForAttributes.js +1 -1
  373. package/smartMapping/statistics/support/ageUtils.d.ts +1 -2
  374. package/smartMapping/statistics/support/predominanceUtils.d.ts +1 -2
  375. package/smartMapping/support/adapters/support/layerUtils.js +1 -1
  376. package/smartMapping/support/adapters/support/utils.js +1 -1
  377. package/smartMapping/symbology/color.d.ts +7 -2
  378. package/smartMapping/symbology/dotDensity.d.ts +4 -2
  379. package/smartMapping/symbology/flow.d.ts +5 -2
  380. package/smartMapping/symbology/heatmap.d.ts +5 -2
  381. package/smartMapping/symbology/location.d.ts +3 -2
  382. package/smartMapping/symbology/pieChart.d.ts +5 -2
  383. package/smartMapping/symbology/predominance.d.ts +5 -2
  384. package/smartMapping/symbology/relationship.d.ts +5 -2
  385. package/smartMapping/symbology/size.d.ts +3 -2
  386. package/smartMapping/symbology/support/colorRamps.d.ts +4 -2
  387. package/smartMapping/symbology/type.d.ts +5 -2
  388. package/support/LayersMixin.d.ts +1 -1
  389. package/support/TablesMixin.d.ts +1 -1
  390. package/support/featureFlags.js +1 -1
  391. package/support/popupUtils.d.ts +4 -2
  392. package/support/revision.js +1 -1
  393. package/support/timeUtils.d.ts +3 -2
  394. package/symbols/support/cimConversionUtils.d.ts +1 -2
  395. package/symbols/support/cimSymbolUtils.d.ts +6 -2
  396. package/symbols/support/jsonUtils.d.ts +1 -2
  397. package/symbols/support/symbolUtils.d.ts +7 -2
  398. package/symbols.d.ts +29 -2
  399. package/tables/elements.d.ts +5 -2
  400. package/unionTypes.d.ts +12 -2
  401. package/versionManagement/utils.d.ts +2 -2
  402. package/versionManagement/versionAdapters/utils.d.ts +2 -2
  403. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  404. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
  405. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
  406. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  407. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  408. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
  409. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
  410. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GridShader.js +1 -1
  411. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapResolveShader.js +1 -1
  412. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js +1 -1
  413. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js +1 -1
  414. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
  415. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TestShader.js +1 -1
  416. package/views/2d/layers/MediaLayerView2D.js +1 -1
  417. package/views/2d/layers/TileLayerView2D.js +1 -1
  418. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  419. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  420. package/views/2d/layers/features/sources/strategies/AFetchLoadStrategy.js +1 -1
  421. package/views/2d/layers/features/sources/strategies/DrillDownTileLoadStrategy.js +1 -1
  422. package/views/2d/layers/features/sources/strategies/PagedTileLoadStrategy.js +1 -1
  423. package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
  424. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  425. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  426. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  427. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  428. package/views/3d/environment/ChapmanApproximation.glsl.js +3 -3
  429. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  430. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  431. package/views/3d/environment/ChapmanRaymarching.glsl.js +4 -4
  432. package/views/3d/environment/Clouds.glsl.js +1 -1
  433. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  434. package/views/3d/environment/CloudsComposition.js +1 -1
  435. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  436. package/views/3d/environment/Fog.glsl.js +1 -1
  437. package/views/3d/environment/Fog.js +1 -1
  438. package/views/3d/environment/LocalAtmosphere.js +1 -1
  439. package/views/3d/environment/MarsAtmosphere.js +1 -1
  440. package/views/3d/environment/NoiseTextureAtlas.glsl.js +1 -1
  441. package/views/3d/environment/Precipitation.glsl.js +1 -1
  442. package/views/3d/environment/Precipitation.js +1 -1
  443. package/views/3d/environment/PrecipitationTechnique.js +1 -1
  444. package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
  445. package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
  446. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  447. package/views/3d/layers/SceneLayerWorker.js +1 -1
  448. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  449. package/views/3d/layers/graphics/Labeler.js +1 -1
  450. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
  451. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
  452. package/views/3d/layers/graphics/pipeline/Tile.js +1 -1
  453. package/views/3d/layers/graphics/pipeline/Tile3DManager.js +1 -1
  454. package/views/3d/layers/graphics/pipeline/featureData/FeatureData.js +1 -1
  455. package/views/3d/layers/graphics/pipeline/featureData/FeatureDataStore.js +1 -1
  456. package/views/3d/layers/graphics/pipeline/featureSet/PBFPointFeatureSetView.js +1 -1
  457. package/views/3d/layers/graphics/pipeline/featureSet/TiledFeatureStore.js +1 -1
  458. package/views/3d/layers/graphics/pipeline/fetching/Tile3DFetcher.js +1 -1
  459. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  460. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  461. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  462. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  463. package/views/3d/support/PBFDecoder.js +1 -1
  464. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  465. package/views/3d/webgl/RenderNode.js +1 -1
  466. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  467. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
  468. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  469. package/views/3d/webgl-engine/collections/Component/Material/shader/DecodeSymbolColor.glsl.js +2 -2
  470. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  471. package/views/3d/webgl-engine/core/material/MaterialBase.js +1 -1
  472. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +1 -1
  473. package/views/3d/webgl-engine/core/shaderLibrary/HighlightCellGridScreenSpacePass.glsl.js +1 -1
  474. package/views/3d/webgl-engine/core/shaderLibrary/HighlightReadBitmap.glsl.js +2 -2
  475. package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +3 -3
  476. package/views/3d/webgl-engine/core/shaderLibrary/NormalFromDepth.glsl.js +1 -1
  477. package/views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.js +2 -2
  478. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +1 -1
  479. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js +2 -2
  480. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +3 -3
  481. package/views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js +1 -1
  482. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +9 -9
  483. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +1 -1
  484. package/views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js +1 -1
  485. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
  486. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
  487. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
  488. package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +2 -2
  489. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +1 -1
  490. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
  491. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +1 -1
  492. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +2 -2
  493. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTangent.glsl.js +1 -1
  494. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +2 -2
  495. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +2 -2
  496. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
  497. package/views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js +3 -3
  498. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +2 -2
  499. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +1 -1
  500. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js +1 -1
  501. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +3 -3
  502. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js +1 -1
  503. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +3 -3
  504. package/views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js +2 -2
  505. package/views/3d/webgl-engine/core/shaderLibrary/raster/Colormap.glsl.js +1 -1
  506. package/views/3d/webgl-engine/core/shaderLibrary/raster/Common.glsl.js +2 -2
  507. package/views/3d/webgl-engine/core/shaderLibrary/raster/Projection.glsl.js +1 -1
  508. package/views/3d/webgl-engine/core/shaderLibrary/raster/RasterColorizer.glsl.js +1 -1
  509. package/views/3d/webgl-engine/core/shaderLibrary/shading/AnalyticalSkyModel.glsl.js +1 -1
  510. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeFragmentNormals.glsl.js +1 -1
  511. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +1 -1
  512. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
  513. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +4 -4
  514. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js +1 -1
  515. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +1 -1
  516. package/views/3d/webgl-engine/core/shaderLibrary/shading/FoamRendering.glsl.js +1 -1
  517. package/views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js +4 -4
  518. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +1 -1
  519. package/views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js +2 -2
  520. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +1 -1
  521. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +1 -1
  522. package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -1
  523. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +1 -1
  524. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js +1 -1
  525. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js +7 -7
  526. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +2 -2
  527. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +1 -1
  528. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +1 -1
  529. package/views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js +2 -2
  530. package/views/3d/webgl-engine/core/shaderLibrary/shading/TextureTransformUV.glsl.js +1 -1
  531. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
  532. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +1 -1
  533. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js +1 -1
  534. package/views/3d/webgl-engine/core/shaderLibrary/terrain/BackgroundGrid.glsl.js +1 -1
  535. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +3 -3
  536. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +1 -1
  537. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileBackground.glsl.js +6 -6
  538. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileComposite.glsl.js +1 -1
  539. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
  540. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendModes.glsl.js +1 -1
  541. package/views/3d/webgl-engine/core/shaderLibrary/util/CameraSpace.glsl.js +2 -2
  542. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +3 -3
  543. package/views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js +1 -1
  544. package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js +1 -1
  545. package/views/3d/webgl-engine/core/shaderLibrary/util/DoublePrecision.glsl.js +1 -1
  546. package/views/3d/webgl-engine/core/shaderLibrary/util/IsNaN.glsl.js +2 -2
  547. package/views/3d/webgl-engine/core/shaderLibrary/util/LocalFromScreenSpace.glsl.js +2 -2
  548. package/views/3d/webgl-engine/core/shaderLibrary/util/MixExternalColor.glsl.js +1 -1
  549. package/views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloat16Encoding.glsl.js +1 -1
  550. package/views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloatEncoding.glsl.js +1 -1
  551. package/views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js +1 -1
  552. package/views/3d/webgl-engine/core/shaderLibrary/util/TextureAtlasLookup.glsl.js +1 -1
  553. package/views/3d/webgl-engine/core/shaderLibrary/util/TextureOnly.glsl.js +1 -1
  554. package/views/3d/webgl-engine/core/shaderModules/BooleanBindUniform.js +1 -1
  555. package/views/3d/webgl-engine/core/shaderModules/BooleanPassUniform.js +1 -1
  556. package/views/3d/webgl-engine/core/shaderModules/Float2BindUniform.js +1 -1
  557. package/views/3d/webgl-engine/core/shaderModules/Float2DrawUniform.js +1 -1
  558. package/views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js +1 -1
  559. package/views/3d/webgl-engine/core/shaderModules/Float3BindUniform.js +1 -1
  560. package/views/3d/webgl-engine/core/shaderModules/Float3DrawUniform.js +1 -1
  561. package/views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js +1 -1
  562. package/views/3d/webgl-engine/core/shaderModules/Float4BindUniform.js +1 -1
  563. package/views/3d/webgl-engine/core/shaderModules/Float4DrawUniform.js +1 -1
  564. package/views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js +1 -1
  565. package/views/3d/webgl-engine/core/shaderModules/Float4sPassUniform.js +1 -1
  566. package/views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js +1 -1
  567. package/views/3d/webgl-engine/core/shaderModules/FloatDrawUniform.js +1 -1
  568. package/views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js +1 -1
  569. package/views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js +1 -1
  570. package/views/3d/webgl-engine/core/shaderModules/Integer2BindUniform.js +1 -1
  571. package/views/3d/webgl-engine/core/shaderModules/Integer2PassUniform.js +1 -1
  572. package/views/3d/webgl-engine/core/shaderModules/IntegerBindUniform.js +1 -1
  573. package/views/3d/webgl-engine/core/shaderModules/IntegerDrawUniform.js +1 -1
  574. package/views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js +1 -1
  575. package/views/3d/webgl-engine/core/shaderModules/Matrix3DrawUniform.js +1 -1
  576. package/views/3d/webgl-engine/core/shaderModules/Matrix3PassUniform.js +1 -1
  577. package/views/3d/webgl-engine/core/shaderModules/Matrix4BindUniform.js +1 -1
  578. package/views/3d/webgl-engine/core/shaderModules/Matrix4DrawUniform.js +1 -1
  579. package/views/3d/webgl-engine/core/shaderModules/Matrix4PassUniform.js +1 -1
  580. package/views/3d/webgl-engine/core/shaderModules/Matrix4sDrawUniform.js +1 -1
  581. package/views/3d/webgl-engine/core/shaderModules/Matrix4sPassUniform.js +1 -1
  582. package/views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js +1 -1
  583. package/views/3d/webgl-engine/core/shaderModules/Texture2DDrawUniform.js +1 -1
  584. package/views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js +1 -1
  585. package/views/3d/webgl-engine/core/shaderModules/TextureCubeBindUniform.js +1 -1
  586. package/views/3d/webgl-engine/core/shaderModules/glsl.js +5 -0
  587. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueConfiguration.js +1 -1
  588. package/views/3d/webgl-engine/effects/OpaqueEnvironment.js +1 -1
  589. package/views/3d/webgl-engine/effects/TransparentEnvironment.js +1 -1
  590. package/views/3d/webgl-engine/effects/bloom/BloomBlur.glsl.js +1 -1
  591. package/views/3d/webgl-engine/effects/bloom/BloomComposition.glsl.js +1 -1
  592. package/views/3d/webgl-engine/effects/bloom/BloomDepthAdjust.glsl.js +1 -1
  593. package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
  594. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  595. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +5 -0
  596. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +5 -0
  597. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  598. package/views/3d/webgl-engine/effects/haze/Haze.glsl.js +1 -1
  599. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  600. package/views/3d/webgl-engine/effects/haze/HazeCompositing.glsl.js +1 -1
  601. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  602. package/views/3d/webgl-engine/effects/highlight/HighlightPassParameters.js +1 -1
  603. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  604. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  605. package/views/3d/webgl-engine/effects/laserlines/LaserlineTechnique.js +1 -1
  606. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  607. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  608. package/views/3d/webgl-engine/effects/smaa/SMAAPassParameters.js +1 -1
  609. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  610. package/views/3d/webgl-engine/effects/ssao/SSAOParameters.js +1 -1
  611. package/views/3d/webgl-engine/effects/stars/Stars.glsl.js +1 -1
  612. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  613. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  614. package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +1 -1
  615. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  616. package/views/3d/webgl-engine/lib/Material.js +1 -1
  617. package/views/3d/webgl-engine/lib/Program.js +1 -1
  618. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  619. package/views/3d/webgl-engine/lib/TextureCompressionWorker.js +1 -1
  620. package/views/3d/webgl-engine/lib/TextureCompressionWorkerHandle.js +1 -1
  621. package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
  622. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  623. package/views/3d/webgl-engine/materials/internal/WaterTextureRepository.js +1 -1
  624. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  625. package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
  626. package/views/3d/webgl-engine/shaders/BlendWeights.glsl.js +1 -1
  627. package/views/3d/webgl-engine/shaders/Blur.glsl.js +1 -1
  628. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  629. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  630. package/views/3d/webgl-engine/shaders/Compositing.glsl.js +1 -1
  631. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  632. package/views/3d/webgl-engine/shaders/EdgeDetect.glsl.js +1 -1
  633. package/views/3d/webgl-engine/shaders/FocusAreaColor.glsl.js +1 -1
  634. package/views/3d/webgl-engine/shaders/FocusAreaMask.glsl.js +1 -1
  635. package/views/3d/webgl-engine/shaders/HUDCompositing.glsl.js +1 -1
  636. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  637. package/views/3d/webgl-engine/shaders/Heatmap.glsl.js +1 -1
  638. package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
  639. package/views/3d/webgl-engine/shaders/HeatmapTechnique.js +1 -1
  640. package/views/3d/webgl-engine/shaders/HighlightApply.glsl.js +1 -1
  641. package/views/3d/webgl-engine/shaders/HighlightDownsample.glsl.js +1 -1
  642. package/views/3d/webgl-engine/shaders/HighlightToSingle.glsl.js +1 -1
  643. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  644. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  645. package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
  646. package/views/3d/webgl-engine/shaders/Laserlines.glsl.js +1 -1
  647. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  648. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  649. package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
  650. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  651. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  652. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +7 -7
  653. package/views/3d/webgl-engine/shaders/OverlayCompositing.glsl.js +1 -1
  654. package/views/3d/webgl-engine/shaders/Path.glsl.js +1 -1
  655. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  656. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  657. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  658. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  659. package/views/3d/webgl-engine/shaders/SSAO.glsl.js +1 -1
  660. package/views/3d/webgl-engine/shaders/SSAOBlur.glsl.js +1 -1
  661. package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +1 -1
  662. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  663. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
  664. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
  665. package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
  666. package/views/3d/webgl-engine/shaders/SingleHighlightApply.glsl.js +1 -1
  667. package/views/3d/webgl-engine/shaders/SingleHighlightBlur.glsl.js +1 -1
  668. package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
  669. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  670. package/views/3d/webgl-engine/shaders/SphereIntersect.glsl.js +2 -2
  671. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  672. package/views/3d/webgl-engine/shaders/ToneMapping.glsl.js +1 -1
  673. package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
  674. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  675. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +2 -2
  676. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardNonSilhouetteEdges.glsl.js +4 -4
  677. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DistanceFalloff.glsl.js +2 -2
  678. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShader.glsl.js +1 -1
  679. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +1 -1
  680. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +3 -3
  681. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +7 -7
  682. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +7 -7
  683. package/views/3d/webgl.d.ts +3 -2
  684. package/views/BreakpointsOwner.d.ts +1 -1
  685. package/views/DOMContainer.d.ts +1 -1
  686. package/views/FocusAreas.js +1 -1
  687. package/views/PopupView.d.ts +1 -1
  688. package/views/support/colorUtils.d.ts +2 -2
  689. package/views/webgl/NoParameters.js +5 -0
  690. package/views/webgl/ShaderBuilder.js +5 -0
  691. package/views/webgl/Texture.js +1 -1
  692. package/views/webgl/Uniform.js +5 -0
  693. package/views/webgl/testAppleAmdDrawArrays.js +1 -1
  694. package/widgets/Attachments/AttachmentsViewModel.js +1 -1
  695. package/widgets/Editor/EditorViewModel.js +1 -1
  696. package/widgets/Editor/UpdateWorkflow.js +1 -1
  697. package/widgets/Editor/UpdateWorkflowData.js +1 -1
  698. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  699. package/widgets/Editor.js +1 -1
  700. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  701. package/widgets/FeatureForm/UtilityNetworkAssociationInput.js +1 -1
  702. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  703. package/widgets/Print.js +1 -1
  704. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  705. package/widgets/smartMapping/support/utils.d.ts +3 -2
  706. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  707. package/widgets/support/widget.d.ts +8 -2
  708. package/assets/esri/core/workers/chunks/1557446aa4525705a5b2.js +0 -1
  709. package/assets/esri/core/workers/chunks/2cf8677005dd2127f5eb.js +0 -1
  710. package/assets/esri/core/workers/chunks/31b9faaa539fdc639a0a.js +0 -1
  711. package/assets/esri/core/workers/chunks/349f31a1fb489fbfe60d.js +0 -1
  712. package/assets/esri/core/workers/chunks/34b31091e172e910d750.js +0 -1
  713. package/assets/esri/core/workers/chunks/4020c753fcbbb9f1c731.js +0 -1
  714. package/assets/esri/core/workers/chunks/48a1b63291c62bc78a41.js +0 -1
  715. package/assets/esri/core/workers/chunks/48e6f5571042aaffe543.js +0 -314
  716. package/assets/esri/core/workers/chunks/5bb175106aee21025bc2.js +0 -1
  717. package/assets/esri/core/workers/chunks/5c57aa9fdc4e1bab61ac.js +0 -1
  718. package/assets/esri/core/workers/chunks/7719fe672ea74cdc87be.js +0 -1
  719. package/assets/esri/core/workers/chunks/7ae1f26ded268099f429.js +0 -1
  720. package/assets/esri/core/workers/chunks/99c0b133c97abf4c2eec.js +0 -1
  721. package/assets/esri/core/workers/chunks/9a30ad773c22bde61c64.js +0 -1
  722. package/assets/esri/core/workers/chunks/9b687465cc3863e14b29.js +0 -2
  723. package/assets/esri/core/workers/chunks/b5ee6c203f536bdb6708.js +0 -1
  724. package/assets/esri/core/workers/chunks/c12bdf6fd7f631e3f79e.js +0 -971
  725. package/assets/esri/core/workers/chunks/c58f559eb68035ebe3da.js +0 -1
  726. package/assets/esri/core/workers/chunks/d2403fc8f4c723301144.js +0 -1
  727. package/views/2d/engine/webgl/shaderGraph/ShaderBuilder2D.js +0 -5
  728. package/views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js +0 -5
  729. package/views/3d/webgl-engine/core/shaderModules/Uniform.js +0 -5
  730. package/views/3d/webgl-engine/core/shaderModules/interfaces.js +0 -5
  731. package/views/3d/webgl-engine/effects/focusArea/FocusAreaRenderNode.js +0 -5
  732. package/views/3d/webgl-engine/effects/focusArea/FocusAreaRenderNodeColorEffects.js +0 -5
  733. package/views/3d/webgl-engine/effects/focusArea/FocusAreaRenderNodeGeometryMasking.js +0 -5
  734. /package/views/{3d/webgl-engine/core/shaderTechnique → webgl}/BindType.js +0 -0
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../chunks/tslib.es6.js";import t from"../../Color.js";import i from"../../core/Accessor.js";import{isSome as r}from"../../core/arrayUtils.js";import{createTask as s}from"../../core/asyncUtils.js";import"../../core/has.js";import{abortMaybe as o,destroyMaybe as n}from"../../core/maybe.js";import{after as a,throwIfAborted as l}from"../../core/promiseUtils.js";import{watch as u,syncAndInitial as p}from"../../core/reactiveUtils.js";import{createScreenPointArray as d,createRenderScreenPointArray as c}from"../../core/screenUtils.js";import{convertTime as h,offsetDateUTC as m}from"../../core/timeUtils.js";import{property as f}from"../../core/accessorSupport/decorators/property.js";import"../../core/Logger.js";import{subclass as _}from"../../core/accessorSupport/decorators/subclass.js";import{create as y}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{longitudeToTimezone as g}from"../../views/3d/support/earthUtils.js";import{computeDirectionsOverTime as v}from"../../views/3d/support/sunUtils.js";import{ShadowCastVisualization as w}from"../../views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js";import T from"./DiscreteOptions.js";import{DurationMode as D}from"./DurationMode.js";import b from"./DurationOptions.js";import{ShadowCastState as O}from"./ShadowCastState.js";import{ShadowTooltipViewModel as P}from"./ShadowTooltipViewModel.js";import{ShadowVisualizationType as j}from"./ShadowVisualizationType.js";import z from"./ThresholdOptions.js";import{breadthFirstBinaryPartitioning as U}from"../support/traversalUtils.js";const C=[],V=y(),E=[],R=255,S=h(1,"hours","milliseconds"),A=500;let x=class extends i{constructor(e){super(e),this.view=null,this.tooltip=new P({getDuration:(e,t)=>this.getDuration(e,t)}),this.startTimeOfDay=h(10,"hours","milliseconds"),this.endTimeOfDay=h(16,"hours","milliseconds"),this.visualizationType=j.Threshold,this.thresholdOptions=new z,this.durationOptions=new b,this.discreteOptions=new T,this._running=!0,this._stopPreviewingTask=null,this._forcePreview=!1,this._autoRestoreForcePreviewEnabled=!0,this._utcOffset=null,this.date=new Date}initialize(){this.addHandles([u((()=>({view:this.view,tooltipEnabled:this._tooltipEnabled})),(({view:e,tooltipEnabled:t})=>{this.tooltip.view=e,this.tooltip.enabled=t}),p),u((()=>this._forcePreviewDependencies),(()=>{o(this._stopPreviewingTask),this._forcePreview=!0,this._autoRestoreForcePreviewEnabled&&(this._stopPreviewingTask=s((async e=>{await a(A,e),l(e),this._forcePreview=!1})))}),p),u((()=>({renderer:this.renderer,parameters:this._visualizationParameters})),(e=>N(e.renderer,e.parameters)),p),u((()=>({renderer:this.renderer,parameters:{lightDirections:this._lightDirections}})),(e=>N(e.renderer,e.parameters)),p),u((()=>({renderer:this.renderer,parameters:{enabled:this._running}})),(e=>N(e.renderer,e.parameters)),p),u((()=>({renderer:this.renderer,parameters:{previewing:this._previewing}})),(e=>N(e.renderer,e.parameters)),p)])}destroy(){this.stop(),N(this.renderer,{enabled:!1}),n(this.tooltip)}get state(){return null!=this.view&&this.view.ready&&null!=this._referencePosition?O.Ready:O.Disabled}set date(e){const t=new Date(e);t.setHours(0,0,0,0),this._set("date",t)}get utcOffset(){return this._utcOffset??this._utcOffsetAuto}set utcOffset(e){this._utcOffset=e}get testData(){}get _previewing(){const{view:e}=this;return null==e?.allLayerViews||(this._forcePreview||!e.stationary||e.allLayerViews.some((e=>M(e)&&e.updating)))}get _utcOffsetAuto(){const e=this._referencePosition;return null!=e?g(e[0],!1):0}get _dateUTCOffset(){let e=this.date;return e=m(e,-e.getTimezoneOffset(),"minutes"),e=m(e,-this.utcOffset,"hours"),e}get _startDateTimeUTC(){return m(this._dateUTCOffset,this.startTimeOfDay)}get _endDateTimeUTC(){return m(this._dateUTCOffset,this.endTimeOfDay)}get _referencePosition(){return this.view?.environmentManager?.referencePositionGeographic}get _interval(){const e=this._duration>0?Math.floor(this._duration/R):R,t=this.discreteOptions.interval;switch(this.visualizationType){case j.Threshold:case j.Duration:return e;case j.Discrete:return t>0?t:e}}get _sampleCount(){return this._lightDirections.length}get _duration(){return this.endTimeOfDay-this.startTimeOfDay}get _lightDirections(){const{view:e}=this;if(null==e)return C;const t="global"===e.viewingMode?V:this._referencePosition;if(null==t)return C;const i=this._interval,r=v(this._startDateTimeUTC,this._endDateTimeUTC,i,t,e.state.viewingMode),s=r.length;E.length=0;const o=U(0,s,E),n=new Array(s);for(let a=0;a<s;++a)n[a]=r[o[a]];return n}get _tooltipEnabled(){return this.state===O.Ready&&this.visualizationType!==j.Discrete&&this._running&&!this._previewing}get _visualizationParameters(){if(!this._running)return null;switch(this.visualizationType){case j.Threshold:return this._thresholdVisualizationParameters;case j.Duration:return this._durationVisualizationParameters;case j.Discrete:return this._discreteVisualizationParameters}}get _thresholdVisualizationParameters(){const{value:e,color:i}=this.thresholdOptions,r=this._duration;return{visualization:w.Threshold,color:t.toUnitRGBA(i),threshold:r>0?e/this._duration:0}}get _durationVisualizationParameters(){const{color:e,mode:i}=this.durationOptions,r=this._duration,s=r>0&&i===D.Hourly?S/r:0;return{color:t.toUnitRGBA(e),visualization:w.Gradient,bandsEnabled:s>0,bandSize:s}}get _discreteVisualizationParameters(){return{color:t.toUnitRGBA(this.discreteOptions.color),visualization:w.Gradient,bandsEnabled:!1,bandSize:0}}get _forcePreviewDependencies(){const{view:e}=this;if(null==e)return null;const t=e.slicePlane,i=e.allLayerViews.toArray().filter(M),s=i.map((e=>e.layer)).filter(r),o=i.map((e=>e.visible)),n=s.map((e=>e.visible)),a=s.map((e=>e.opacity)),l=s.filter((e=>"definitionExpression"in e)).map((e=>e.definitionExpression)),u=i.filter((e=>"filter"in e)).map((e=>e.filter));return{slicePlane:t,startDateUTC:this._startDateTimeUTC,endDateUTC:this._endDateTimeUTC,layerViewVisibilities:o,layerVisibilities:n,layerOpacities:a,filters:u,definitionExpressions:l}}get renderer(){const{view:e}=this;if(null==e)return null;const t=e._stage;return null==t?null:t.renderer}start(){this.setRunning(!0)}stop(){this.setRunning(!1)}setRunning(e){this._running=e}async getDuration(e,t){const{view:i,renderer:r}=this;if(null==i||null==r)return 0;const s=i.state.camera.screenToRender(d(e.x,e.y),c()),o=r.readAccumulatedShadow(s),n=this._sampleCount;if(0===n)return 0;return o*n*(this._duration/n)}};function N(e,t){null!=e&&null!=t&&e.setParameters({shadowCast:t})}function M(e){if(e.suspended)return!1;switch(e.type){case"building-scene-3d":case"csv-3d":case"elevation-3d":case"feature-3d":case"geojson-3d":case"graphics-3d":case"integrated-mesh-3d":case"integrated-mesh-3dtiles":case"ogc-feature-3d":case"route-3d":case"scene-layer-3d":case"scene-layer-graphics-3d":case"stream-3d":case"wms-3d":return!0;case"base-dynamic-3d":case"catalog-3d":case"catalog-footprint-3d":case"catalog-dynamic-group-3d":case"dimension-3d":case"imagery-3d":case"imagery-tile-3d":case"line-of-sight-3d":case"map-image-3d":case"point-cloud-3d":case"tile-3d":case"vector-tile-3d":case"viewshed-3d":case"voxel-3d":case"wfs-3d":case"wmts-3d":case"media-3d":default:return!1;case"group":return e.layerViews.toArray().some((e=>M(e)))}}e([f()],x.prototype,"state",null),e([f()],x.prototype,"view",void 0),e([f()],x.prototype,"tooltip",void 0),e([f({type:Date,nonNullable:!0})],x.prototype,"date",null),e([f({nonNullable:!0})],x.prototype,"utcOffset",null),e([f({nonNullable:!0})],x.prototype,"startTimeOfDay",void 0),e([f({nonNullable:!0})],x.prototype,"endTimeOfDay",void 0),e([f({nonNullable:!0})],x.prototype,"visualizationType",void 0),e([f({type:z,nonNullable:!0})],x.prototype,"thresholdOptions",void 0),e([f({type:b,nonNullable:!0})],x.prototype,"durationOptions",void 0),e([f({type:T,nonNullable:!0})],x.prototype,"discreteOptions",void 0),e([f()],x.prototype,"_running",void 0),e([f()],x.prototype,"_stopPreviewingTask",void 0),e([f()],x.prototype,"_forcePreview",void 0),e([f()],x.prototype,"_autoRestoreForcePreviewEnabled",void 0),e([f()],x.prototype,"_previewing",null),e([f()],x.prototype,"_utcOffset",void 0),e([f()],x.prototype,"_utcOffsetAuto",null),e([f()],x.prototype,"_dateUTCOffset",null),e([f()],x.prototype,"_startDateTimeUTC",null),e([f()],x.prototype,"_endDateTimeUTC",null),e([f()],x.prototype,"_referencePosition",null),e([f()],x.prototype,"_interval",null),e([f()],x.prototype,"_sampleCount",null),e([f()],x.prototype,"_duration",null),e([f()],x.prototype,"_lightDirections",null),e([f()],x.prototype,"_tooltipEnabled",null),e([f()],x.prototype,"_visualizationParameters",null),e([f()],x.prototype,"_thresholdVisualizationParameters",null),e([f()],x.prototype,"_durationVisualizationParameters",null),e([f()],x.prototype,"_discreteVisualizationParameters",null),e([f()],x.prototype,"_forcePreviewDependencies",null),e([f()],x.prototype,"renderer",null),x=e([_("esri.widgets.ShadowCast.ShadowCastViewModel")],x);const G=x;export{G as default};
5
+ import{_ as e}from"../../chunks/tslib.es6.js";import t from"../../Color.js";import i from"../../core/Accessor.js";import{isSome as r}from"../../core/arrayUtils.js";import{createTask as s}from"../../core/asyncUtils.js";import"../../core/has.js";import{abortMaybe as o,destroyMaybe as n}from"../../core/maybe.js";import{after as a,throwIfAborted as l}from"../../core/promiseUtils.js";import{watch as p,syncAndInitial as u}from"../../core/reactiveUtils.js";import{createScreenPointArray as d,createRenderScreenPointArray as c}from"../../core/screenUtils.js";import{convertTime as h,offsetDateUTC as m}from"../../core/timeUtils.js";import{property as f}from"../../core/accessorSupport/decorators/property.js";import"../../core/Logger.js";import{subclass as _}from"../../core/accessorSupport/decorators/subclass.js";import{create as y}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{longitudeToTimezone as g}from"../../views/3d/support/earthUtils.js";import{computeDirectionsOverTime as v}from"../../views/3d/support/sunUtils.js";import{ShadowCastVisualization as w}from"../../views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js";import T from"./DiscreteOptions.js";import{DurationMode as D}from"./DurationMode.js";import b from"./DurationOptions.js";import{ShadowCastState as O}from"./ShadowCastState.js";import{ShadowTooltipViewModel as P}from"./ShadowTooltipViewModel.js";import{ShadowVisualizationType as j}from"./ShadowVisualizationType.js";import z from"./ThresholdOptions.js";import{breadthFirstBinaryPartitioning as U}from"../support/traversalUtils.js";const C=[],V=y(),E=[],R=255,S=h(1,"hours","milliseconds"),A=500;let x=class extends i{constructor(e){super(e),this.view=null,this.tooltip=new P({getDuration:(e,t)=>this.getDuration(e,t)}),this.startTimeOfDay=h(10,"hours","milliseconds"),this.endTimeOfDay=h(16,"hours","milliseconds"),this.visualizationType=j.Threshold,this.thresholdOptions=new z,this.durationOptions=new b,this.discreteOptions=new T,this._running=!0,this._stopPreviewingTask=null,this._forcePreview=!1,this._autoRestoreForcePreviewEnabled=!0,this._utcOffset=null,this.date=new Date}initialize(){this.addHandles([p((()=>({view:this.view,tooltipEnabled:this._tooltipEnabled})),(({view:e,tooltipEnabled:t})=>{this.tooltip.view=e,this.tooltip.enabled=t}),u),p((()=>this._forcePreviewDependencies),(()=>{o(this._stopPreviewingTask),this._forcePreview=!0,this._autoRestoreForcePreviewEnabled&&(this._stopPreviewingTask=s((async e=>{await a(A,e),l(e),this._forcePreview=!1})))}),u),p((()=>({renderer:this.renderer,parameters:this._visualizationParameters})),(e=>N(e.renderer,e.parameters)),u),p((()=>({renderer:this.renderer,parameters:{lightDirections:this._lightDirections}})),(e=>N(e.renderer,e.parameters)),u),p((()=>({renderer:this.renderer,parameters:{enabled:this._running}})),(e=>N(e.renderer,e.parameters)),u),p((()=>({renderer:this.renderer,parameters:{previewing:this._previewing}})),(e=>N(e.renderer,e.parameters)),u)])}destroy(){this.stop(),N(this.renderer,{enabled:!1}),n(this.tooltip)}get state(){return null!=this.view&&this.view.ready&&null!=this._referencePosition?O.Ready:O.Disabled}set date(e){const t=new Date(e);t.setHours(0,0,0,0),this._set("date",t)}get utcOffset(){return this._utcOffset??this._utcOffsetAuto}set utcOffset(e){this._utcOffset=e}get testData(){}get _previewing(){const{view:e}=this;return null==e?.allLayerViews||(this._forcePreview||!e.stationary||e.allLayerViews.some((e=>M(e)&&e.updating)))}get _utcOffsetAuto(){const e=this._referencePosition;return null!=e?g(e[0],!1):0}get _dateUTCOffset(){let e=this.date;return e=m(e,-e.getTimezoneOffset(),"minutes"),e=m(e,-this.utcOffset,"hours"),e}get _startDateTimeUTC(){return m(this._dateUTCOffset,this.startTimeOfDay)}get _endDateTimeUTC(){return m(this._dateUTCOffset,this.endTimeOfDay)}get _referencePosition(){return this.view?.environmentManager?.referencePositionGeographic}get _interval(){const e=this._duration>0?Math.floor(this._duration/R):R,t=this.discreteOptions.interval;switch(this.visualizationType){case j.Threshold:case j.Duration:return e;case j.Discrete:return t>0?t:e}}get _sampleCount(){return this._lightDirections.length}get _duration(){return this.endTimeOfDay-this.startTimeOfDay}get _lightDirections(){const{view:e}=this;if(null==e)return C;const t="global"===e.viewingMode?V:this._referencePosition;if(null==t)return C;const i=this._interval,r=v(this._startDateTimeUTC,this._endDateTimeUTC,i,t,e.state.viewingMode),s=r.length;E.length=0;const o=U(0,s,E),n=new Array(s);for(let a=0;a<s;++a)n[a]=r[o[a]];return n}get _tooltipEnabled(){return this.state===O.Ready&&this.visualizationType!==j.Discrete&&this._running&&!this._previewing}get _visualizationParameters(){if(!this._running)return null;switch(this.visualizationType){case j.Threshold:return this._thresholdVisualizationParameters;case j.Duration:return this._durationVisualizationParameters;case j.Discrete:return this._discreteVisualizationParameters}}get _thresholdVisualizationParameters(){const{value:e,color:i}=this.thresholdOptions,r=this._duration;return{visualization:w.Threshold,color:t.toUnitRGBA(i),threshold:r>0?e/this._duration:0}}get _durationVisualizationParameters(){const{color:e,mode:i}=this.durationOptions,r=this._duration,s=r>0&&i===D.Hourly?S/r:0;return{color:t.toUnitRGBA(e),visualization:w.Gradient,bandsEnabled:s>0,bandSize:s}}get _discreteVisualizationParameters(){return{color:t.toUnitRGBA(this.discreteOptions.color),visualization:w.Gradient,bandsEnabled:!1,bandSize:0}}get _forcePreviewDependencies(){const{view:e}=this;if(null==e)return null;const t=e.slicePlane,i=e.allLayerViews.toArray().filter(M),s=i.map((e=>e.layer)).filter(r),o=i.map((e=>e.visible)),n=s.map((e=>e.visible)),a=s.map((e=>e.opacity)),l=s.filter((e=>"definitionExpression"in e)).map((e=>e.definitionExpression)),p=i.filter((e=>"filter"in e)).map((e=>e.filter));return{slicePlane:t,startDateUTC:this._startDateTimeUTC,endDateUTC:this._endDateTimeUTC,layerViewVisibilities:o,layerVisibilities:n,layerOpacities:a,filters:p,definitionExpressions:l}}get renderer(){const{view:e}=this;if(null==e)return null;const t=e._stage;return null==t?null:t.renderer}start(){this.setRunning(!0)}stop(){this.setRunning(!1)}setRunning(e){this._running=e}async getDuration(e,t){const{view:i,renderer:r,_sampleCount:s}=this;if(null==i||null==r||0===s)return 0;const o=i.state.camera.screenToRender(d(e.x,e.y),c());return await r.readAccumulatedShadow(o)*this._duration}};function N(e,t){null!=e&&null!=t&&e.setParameters({shadowCast:t})}function M(e){if(e.suspended)return!1;switch(e.type){case"building-scene-3d":case"csv-3d":case"elevation-3d":case"feature-3d":case"geojson-3d":case"graphics-3d":case"integrated-mesh-3d":case"integrated-mesh-3dtiles":case"ogc-feature-3d":case"route-3d":case"scene-layer-3d":case"scene-layer-graphics-3d":case"stream-3d":case"wms-3d":return!0;case"base-dynamic-3d":case"catalog-3d":case"catalog-footprint-3d":case"catalog-dynamic-group-3d":case"dimension-3d":case"imagery-3d":case"imagery-tile-3d":case"line-of-sight-3d":case"map-image-3d":case"point-cloud-3d":case"tile-3d":case"vector-tile-3d":case"viewshed-3d":case"voxel-3d":case"wfs-3d":case"wmts-3d":case"media-3d":default:return!1;case"group":return e.layerViews.toArray().some((e=>M(e)))}}e([f()],x.prototype,"state",null),e([f()],x.prototype,"view",void 0),e([f()],x.prototype,"tooltip",void 0),e([f({type:Date,nonNullable:!0})],x.prototype,"date",null),e([f({nonNullable:!0})],x.prototype,"utcOffset",null),e([f({nonNullable:!0})],x.prototype,"startTimeOfDay",void 0),e([f({nonNullable:!0})],x.prototype,"endTimeOfDay",void 0),e([f({nonNullable:!0})],x.prototype,"visualizationType",void 0),e([f({type:z,nonNullable:!0})],x.prototype,"thresholdOptions",void 0),e([f({type:b,nonNullable:!0})],x.prototype,"durationOptions",void 0),e([f({type:T,nonNullable:!0})],x.prototype,"discreteOptions",void 0),e([f()],x.prototype,"_running",void 0),e([f()],x.prototype,"_stopPreviewingTask",void 0),e([f()],x.prototype,"_forcePreview",void 0),e([f()],x.prototype,"_autoRestoreForcePreviewEnabled",void 0),e([f()],x.prototype,"_previewing",null),e([f()],x.prototype,"_utcOffset",void 0),e([f()],x.prototype,"_utcOffsetAuto",null),e([f()],x.prototype,"_dateUTCOffset",null),e([f()],x.prototype,"_startDateTimeUTC",null),e([f()],x.prototype,"_endDateTimeUTC",null),e([f()],x.prototype,"_referencePosition",null),e([f()],x.prototype,"_interval",null),e([f()],x.prototype,"_sampleCount",null),e([f()],x.prototype,"_duration",null),e([f()],x.prototype,"_lightDirections",null),e([f()],x.prototype,"_tooltipEnabled",null),e([f()],x.prototype,"_visualizationParameters",null),e([f()],x.prototype,"_thresholdVisualizationParameters",null),e([f()],x.prototype,"_durationVisualizationParameters",null),e([f()],x.prototype,"_discreteVisualizationParameters",null),e([f()],x.prototype,"_forcePreviewDependencies",null),e([f()],x.prototype,"renderer",null),x=e([_("esri.widgets.ShadowCast.ShadowCastViewModel")],x);const G=x;export{G as default};
@@ -1,4 +1,5 @@
1
1
  import "../../../interfaces";
2
2
 
3
- import smartMappingSupportUtils = __esri.smartMappingSupportUtils;
4
- export = smartMappingSupportUtils;
3
+ export const formatDateLabel: __esri.smartMappingSupportUtils["formatDateLabel"];
4
+ export const formatNumberLabel: __esri.smartMappingSupportUtils["formatNumberLabel"];
5
+ export const getDeviationValues: __esri.smartMappingSupportUtils["getDeviationValues"];
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../chunks/tslib.es6.js";import e from"../../../Graphic.js";import o from"../../../core/Accessor.js";import r from"../../../core/Clonable.js";import s from"../../../core/Collection.js";import a from"../../../core/Identifiable.js";import{ignoreAbortErrors as n,debounce as i}from"../../../core/promiseUtils.js";import c from"../../../core/ReactiveMap.js";import{watch as l,initial as u}from"../../../core/reactiveUtils.js";import{property as d}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as y}from"../../../core/accessorSupport/decorators/subclass.js";import h from"../../../rest/networks/support/NetworkElement.js";import p from"../../../rest/support/Query.js";import{featureUtilityNetworkFields as g}from"../../Feature/FeatureUtilityNetworkAssociations/resources.js";import{findUtilityNetwork as m}from"../../Feature/support/featureUtils.js";const b=100;let w=class extends(r.ClonableMixin(a.IdentifiableMixin(o))){constructor(t){super(t),this._loaded=!1,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.networkSourceIdsInUse=new Set,this.source="popup",this.description=null,this.graphic=null,this.layer=null,this.map=null,this.featureCount=0,this.associationTypes=null,this.showAllEnabled=!1,this.title=null,this.attachmentsFeatureCount=0,this.structureFeatureCount=0,this.contentFeatureCount=0,this.containerFeatureCount=0,this.connectivityFeatureCount=0,this._queryOpenAssociationType=()=>{const t=this.associationTypes?.find((t=>t.open));t&&this._queryDebounced(t)},this._cancelQuery=()=>{const{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{const{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._queryController=async t=>{this._cancelQuery();const e=new AbortController;this._queryAbortController=e,await n(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();const t=new AbortController;this._queryFeatureCountAbortController=t,await n(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=i(this._queryController,b),this._queryFeatureCountDebounced=i(this._queryFeatureCountController,b)}initialize(){this.addHandles([...this.associationTypes?.map((t=>l((()=>t.open),(()=>{t.open&&this._queryDebounced(t)}))))??[],l((()=>[this.graphic,this.layer,this.map,this.associationTypes,this.objectId,this.globalId,this.canQuery]),(()=>this.refresh()),u)])}destroy(){this._cancelQuery(),this._cancelQueryFeatureCount(),this._destroyAssociatedFeatureViewModels()}get supportsCacheHint(){return!!this.layer?.capabilities?.query?.supportsCacheHint}get canLoad(){return!!this.map&&!!this.associationTypes&&"string"==typeof this.globalId}get canQuery(){const t=this.layer?.capabilities?.query;return!!this.associationTypes&&"string"==typeof this.globalId&&!!t?.supportsPagination}set displayCount(t){const e=0,o=3;this._set("displayCount",Math.max(t??o,e))}get displayCount(){return this._get("displayCount")}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get globalId(){return(this.globalIdField&&this.graphic?.attributes?.[this.globalIdField])??null}get globalIdField(){const{layer:t}=this;return"subtype-sublayer"===t?.type&&t?.parent?t.parent.globalIdField??null:t?.globalIdField??null}get state(){const{_queryAbortController:t,_queryFeatureCountAbortController:e,_queryPageAbortController:o,canQuery:r,_loaded:s,canLoad:a}=this;return e||a&&!s?"loading":t||o?"querying":r&&0!==this.featureCount?"ready":"disabled"}get utilityNetwork(){const{layer:t,map:e}=this;return t?.loaded&&e?"subtype-sublayer"===t?.type&&t?.parent?m(e,t.parent)??null:m(e,t)??null:null}get attachmentsAssociations(){return this._get("attachmentsAssociations")||new s}get structureAssociations(){return this._get("structureAssociations")||new s}get contentAssociations(){return this._get("contentAssociations")||new s}get containerAssociations(){return this._get("containerAssociations")||new s}get connectivityAssociations(){return this._get("connectivityAssociations")||new s}get associationFeatures(){return this._get("associationFeatures")||new c}get associationViewModels(){return this._get("associationViewModels")||new Map}refresh(){this._queryFeatureCountDebounced().then(this._queryOpenAssociationType)}getFeatureCountForAssociationType(t){switch(t){case"attachment":return this.attachmentsFeatureCount;case"structure":return this.structureFeatureCount;case"content":return this.contentFeatureCount;case"container":return this.containerFeatureCount;case"connectivity":return this.connectivityFeatureCount}}_destroyAssociatedFeatureViewModels(){this.associationViewModels.forEach((t=>t.destroyAll()))}async _loadUtiltyNetworks(){const t=this.map;if(!t)return;await Promise.allSettled(t.utilityNetworks?.map((async t=>{await t.load()}))??[]);const e=this.utilityNetwork;if(e){const o=t=>{if("layerId"in t&&e.isUtilityLayer(t)){const o=e.getSourceIdByLayerId(t.layerId);null!==o&&this.networkSourceIdsInUse.add(o)}};this._set("networkSourceIdsInUse",new Set),t.allLayers.forEach(o),t.allTables.forEach(o)}}async _findLayersBySourceId(t){const{utilityNetwork:e,map:o}=this,r=t=>{const o=t;if(!t.url)return!1;if(o.layerId===s){return t.url.replace(/\/\d+$/,"")===e?.featureServiceUrl}return!1};await(e?.load());const s=e.getLayerIdBySourceId(t),a=o.allLayers.filter(r),n=o.allTables.filter(r),i=a.concat(n).toArray();return await Promise.allSettled(i.map((t=>t.load()))),i}_clearAssociations(){this.attachmentsAssociations.removeAll(),this.structureAssociations.removeAll(),this.contentAssociations.removeAll(),this.containerAssociations.removeAll(),this.connectivityAssociations.removeAll()}_clearFeatures(){this.associationFeatures.forEach((t=>t.removeAll())),this.associationFeatures.clear()}_getAssociationsByType(t){switch(t){case"attachment":return this.attachmentsAssociations;case"structure":return this.structureAssociations;case"connectivity":return this.connectivityAssociations;case"container":return this.containerAssociations;case"content":return this.contentAssociations}}async _queryLayer(t,e,o,r,s){const a=t.fieldsIndex.get(g.assetGroup),n=t.fieldsIndex.get(g.assetType),i=null!=o,c=null!=r,l="("+e.map((t=>`'${t}'`)).join(", ")+")",u=i?` AND ${a?.name} = ${o}`:"",d=i&&c?` AND ${n?.name} = ${r}`:"",y=`${t.globalIdField} IN ${l}`+u+d,h=new p({outFields:["*"],cacheHint:this.supportsCacheHint,where:y});return await this._queryAll(h,t,{signal:s?.signal})}async _createAssociationFeatureObjects(t,e,o,r,s,a){if(0===t.length)return[];const n=new Map;for(const[c,l]of e){const t=await this._findLayersBySourceId(c);for(const e of t){(await this._queryLayer(e,l,r,s,a)).forEach((t=>{const o=t.layer&&"formTemplate"in t.layer?t.layer.formTemplate:null;if(("popup"===this.source?t.getEffectivePopupTemplate():o)&&t.layer){const o=n.get(t.attributes[e.globalIdField])??[];o.push(t),n.set(t.attributes[e.globalIdField],o)}}))}}const i=[];return t.toArray().forEach((t=>{const{fromNetworkElement:e,toNetworkElement:r}=t,s=e.globalId===o?r:e;(n.get(s.globalId)??[]).forEach((e=>{const o=this.utilityNetwork?.getTerminalById(s?.terminalId)?.name;i.push({association:t,feature:e,terminalName:o})}))})),i}_parseFeatureObjects(t,e){t.forEach((t=>{const o=t?.feature,r=o.layer,a=e.get(r)??new s;a.add(t),e.set(r,a)}))}async _queryAll(t,e,o){const r=[];let s=0,a=!1;t.num=e.sourceJSON?.maxRecordCount??2e3;do{t.start=s;const n=await e.queryFeatures(t,o);r.push(...n.features),a=n.exceededTransferLimit,a&&(s+=n.features.length)}while(a);return r}async _queryAssociations(t){const{layer:e,globalId:o,associationTypes:r,utilityNetwork:s,canQuery:a}=this;if(await Promise.allSettled([e?.load(),s?.load()]),this._clearAssociations(),!(a&&e&&r&&s&&o))return;const n=new h({globalId:o,networkSourceId:s?.getSourceIdByLayerId(e?.layerId??e?.parent?.layerId)}),i=new Set;r.forEach((t=>{switch(t.type){case"attachment":case"structure":i.add("attachment");break;case"container":case"content":i.add("containment");break;case"connectivity":i.add("connectivity"),i.add("junction-junction-connectivity"),i.add("junction-edge-from-connectivity"),i.add("junction-edge-midspan-connectivity"),i.add("junction-edge-to-connectivity")}}));const c=await(s?.queryAssociations({elements:[n],types:Array.from(i)},{signal:t?.signal})),l=new Map,u=new Map;r.forEach((t=>{u.set(t.type,t),l.set(t.type,[])})),c?.forEach((t=>{const{toNetworkElement:e,fromNetworkElement:r}=t;switch(t.associationType){case"connectivity":case"junction-junction-connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":if(r?.globalId===o){if(null!=u.get("connectivity")?.associatedNetworkSourceId&&u.get("connectivity")?.associatedNetworkSourceId!==e?.networkSourceId)break;l.get("connectivity").push(e.globalId)}else{if(null!=u.get("connectivity")?.associatedNetworkSourceId&&u.get("connectivity")?.associatedNetworkSourceId!==r?.networkSourceId)break;l.get("connectivity")?.push(r.globalId)}this.connectivityAssociations.add(t);break;case"containment":if(r?.globalId===o){if(null!=u.get("content")?.associatedNetworkSourceId&&u.get("content")?.associatedNetworkSourceId!==e?.networkSourceId)break;l.get("content")?.push(e.globalId),this.contentAssociations.add(t)}else{if(null!=u.get("container")?.associatedNetworkSourceId&&u.get("container")?.associatedNetworkSourceId!==r?.networkSourceId)break;l.get("container")?.push(r.globalId),this.containerAssociations.add(t)}break;case"attachment":if(r?.globalId===o){if(null!=u.get("attachment")?.associatedNetworkSourceId&&u.get("attachment")?.associatedNetworkSourceId!==e?.networkSourceId)break;l.get("attachment")?.push(e.globalId),this.attachmentsAssociations.add(t)}else{if(null!=u.get("structure")?.associatedNetworkSourceId&&u.get("structure")?.associatedNetworkSourceId!==r?.networkSourceId)break;l.get("structure")?.push(r.globalId),this.structureAssociations.add(t)}}}));const d=r.map((async e=>{const{associatedNetworkSourceId:o,associatedAssetGroup:r,associatedAssetType:s}=e,a=l.get(e.type),n=null!=r?await this._countAssociatedFeatures(o,a,r,s,t):a.length;switch(e.type){case"attachment":this._set("attachmentsFeatureCount",n);break;case"structure":this._set("structureFeatureCount",n);break;case"content":this._set("contentFeatureCount",n);break;case"container":this._set("containerFeatureCount",n);break;case"connectivity":this._set("connectivityFeatureCount",n)}}));await Promise.allSettled(d)}async _countAssociatedFeatureCount(t,e,o,r,s){const a=t.fieldsIndex.get(g.assetGroup),n=t.fieldsIndex.get(g.assetType),i=null!=r,c="("+e.map((t=>`'${t}'`)).join(", ")+")",l=` AND ${a?.name} = ${o}`,u=i?` AND ${n?.name} = ${r}`:"",d=`${t.globalIdField} IN ${c}`+l+u;return t.queryFeatureCount({where:d,outFields:["*"],returnGeometry:!1},{signal:s?.signal})}async _countAssociatedFeatures(t,e,o,r,s){if(0===e.length)return 0;const a=(await this._findLayersBySourceId(t)).map((async t=>this._countAssociatedFeatureCount(t,e,o,r,s)));return(await Promise.all(a)).reduce(((t,e)=>t+e),0)}async _queryAssociatedFeatures(t,e){const{layer:o,globalId:r,associationTypes:s,utilityNetwork:a,canQuery:n,associationFeatures:i}=this;if(await Promise.allSettled([o?.load(),a?.load()]),!(n&&o&&s&&a))return;const c=this._getAssociationsByType(t.type),{associatedAssetGroup:l,associatedAssetType:u}=t,d=new Map;c.forEach((t=>{const{fromNetworkElement:e,toNetworkElement:o}=t,{networkSourceId:s,elementGlobalId:a}=e.globalId===r?{networkSourceId:o.networkSourceId,elementGlobalId:o.globalId}:{networkSourceId:e.networkSourceId,elementGlobalId:e.globalId},n=d.get(s)||[];n.push(a),d.set(s,n)}));const y=await this._createAssociationFeatureObjects(c,d,r,l,u,e);this._parseFeatureObjects(y,i)}async _queryFeatureCount(){await this._loadUtiltyNetworks();const{_queryFeatureCountAbortController:t,canQuery:e}=this;e?(await this._queryAssociations(t),this._set("featureCount",this.attachmentsFeatureCount+this.structureFeatureCount+this.contentFeatureCount+this.containerFeatureCount+this.connectivityFeatureCount)):this._set("featureCount",0)}async _query(t){await this._loadUtiltyNetworks();const{_queryAbortController:e}=this;this.featureCount&&(this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this.destroyed||await this._queryAssociatedFeatures(t,{signal:e?.signal}))}};t([d()],w.prototype,"_loaded",void 0),t([d()],w.prototype,"_queryAbortController",void 0),t([d()],w.prototype,"_queryPageAbortController",void 0),t([d()],w.prototype,"_queryFeatureCountAbortController",void 0),t([d({readOnly:!0})],w.prototype,"supportsCacheHint",null),t([d({readOnly:!0})],w.prototype,"canLoad",null),t([d({readOnly:!0})],w.prototype,"canQuery",null),t([d()],w.prototype,"networkSourceIdsInUse",void 0),t([d({constructOnly:!0})],w.prototype,"source",void 0),t([d()],w.prototype,"description",void 0),t([d({value:3})],w.prototype,"displayCount",null),t([d({type:e})],w.prototype,"graphic",void 0),t([d()],w.prototype,"layer",void 0),t([d()],w.prototype,"map",void 0),t([d({readOnly:!0})],w.prototype,"objectId",null),t([d({readOnly:!0})],w.prototype,"objectIdField",null),t([d({readOnly:!0})],w.prototype,"globalId",null),t([d({readOnly:!0})],w.prototype,"globalIdField",null),t([d()],w.prototype,"featureCount",void 0),t([d()],w.prototype,"associationTypes",void 0),t([d()],w.prototype,"showAllEnabled",void 0),t([d()],w.prototype,"state",null),t([d()],w.prototype,"title",void 0),t([d({readOnly:!0})],w.prototype,"utilityNetwork",null),t([d({readOnly:!0})],w.prototype,"attachmentsFeatureCount",void 0),t([d({readOnly:!0})],w.prototype,"structureFeatureCount",void 0),t([d({readOnly:!0})],w.prototype,"attachmentsAssociations",null),t([d({readOnly:!0})],w.prototype,"structureAssociations",null),t([d({readOnly:!0})],w.prototype,"contentFeatureCount",void 0),t([d({readOnly:!0})],w.prototype,"containerFeatureCount",void 0),t([d({readOnly:!0})],w.prototype,"contentAssociations",null),t([d({readOnly:!0})],w.prototype,"containerAssociations",null),t([d({readOnly:!0})],w.prototype,"connectivityFeatureCount",void 0),t([d({readOnly:!0})],w.prototype,"connectivityAssociations",null),t([d({readOnly:!0})],w.prototype,"associationFeatures",null),t([d({readOnly:!0})],w.prototype,"associationViewModels",null),w=t([y("esri.widgets.support.UtilityNetworkAssociations.UtilityNetworkAssociationsViewModel")],w);const A=w;export{A as default};
5
+ import{_ as t}from"../../../chunks/tslib.es6.js";import e from"../../../Graphic.js";import o from"../../../core/Accessor.js";import r from"../../../core/Clonable.js";import s from"../../../core/Collection.js";import a from"../../../core/Identifiable.js";import{ignoreAbortErrors as n,debounce as i}from"../../../core/promiseUtils.js";import c from"../../../core/ReactiveMap.js";import{watch as l,initial as u}from"../../../core/reactiveUtils.js";import{property as d}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as y}from"../../../core/accessorSupport/decorators/subclass.js";import h from"../../../rest/networks/support/NetworkElement.js";import p from"../../../rest/support/Query.js";import{featureUtilityNetworkFields as g}from"../../Feature/FeatureUtilityNetworkAssociations/resources.js";import{findUtilityNetwork as m}from"../../Feature/support/featureUtils.js";const w=100;let b=class extends(r.ClonableMixin(a.IdentifiableMixin(o))){constructor(t){super(t),this._loaded=!1,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.networkSourceIdsInUse=new Set,this.source="popup",this.description=null,this.graphic=null,this.layer=null,this.map=null,this.featureCount=0,this.associationTypes=null,this.showAllEnabled=!1,this.title=null,this.attachmentsFeatureCount=0,this.structureFeatureCount=0,this.contentFeatureCount=0,this.containerFeatureCount=0,this.connectivityFeatureCount=0,this._queryOpenAssociationType=async()=>{const t=this.associationTypes?.find((t=>t.open));t&&await this._queryDebounced(t)},this._cancelQuery=()=>{const{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{const{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._queryController=async t=>{this._cancelQuery();const e=new AbortController;this._queryAbortController=e,await n(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();const t=new AbortController;this._queryFeatureCountAbortController=t,await n(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=i(this._queryController,w),this._queryFeatureCountDebounced=i(this._queryFeatureCountController,w)}initialize(){this.addHandles([...this.associationTypes?.map((t=>l((()=>t.open),(()=>{t.open&&this._queryDebounced(t)}))))??[],l((()=>[this.graphic,this.layer,this.map,this.associationTypes,this.objectId,this.globalId,this.canQuery]),(()=>this.refresh()),u)])}destroy(){this._cancelQuery(),this._cancelQueryFeatureCount(),this._destroyAssociatedFeatureViewModels()}get supportsCacheHint(){return!!this.layer?.capabilities?.query?.supportsCacheHint}get canLoad(){return!!this.map&&!!this.associationTypes&&"string"==typeof this.globalId}get canQuery(){const t=this.layer?.capabilities?.query;return!!this.associationTypes&&"string"==typeof this.globalId&&!!t?.supportsPagination}set displayCount(t){const e=0,o=3;this._set("displayCount",Math.max(t??o,e))}get displayCount(){return this._get("displayCount")}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get globalId(){return(this.globalIdField&&this.graphic?.attributes?.[this.globalIdField])??null}get globalIdField(){const{layer:t}=this;return"subtype-sublayer"===t?.type&&t?.parent?t.parent.globalIdField??null:t?.globalIdField??null}get state(){const{_queryAbortController:t,_queryFeatureCountAbortController:e,_queryPageAbortController:o,canQuery:r,_loaded:s,canLoad:a}=this;return e||a&&!s?"loading":t||o?"querying":r&&0!==this.featureCount?"ready":"disabled"}get utilityNetwork(){const{layer:t,map:e}=this;return t?.loaded&&e?"subtype-sublayer"===t?.type&&t?.parent?m(e,t.parent)??null:m(e,t)??null:null}get attachmentsAssociations(){return this._get("attachmentsAssociations")||new s}get structureAssociations(){return this._get("structureAssociations")||new s}get contentAssociations(){return this._get("contentAssociations")||new s}get containerAssociations(){return this._get("containerAssociations")||new s}get connectivityAssociations(){return this._get("connectivityAssociations")||new s}get associationFeatures(){return this._get("associationFeatures")||new c}get associationViewModels(){return this._get("associationViewModels")||new Map}async refresh(){await this._queryFeatureCountDebounced(),await this._queryOpenAssociationType()}getFeatureCountForAssociationType(t){switch(t){case"attachment":return this.attachmentsFeatureCount;case"structure":return this.structureFeatureCount;case"content":return this.contentFeatureCount;case"container":return this.containerFeatureCount;case"connectivity":return this.connectivityFeatureCount}}_destroyAssociatedFeatureViewModels(){this.associationViewModels.forEach((t=>t.destroyAll()))}async _loadUtiltyNetworks(){const t=this.map;if(!t)return;await Promise.allSettled(t.utilityNetworks?.map((async t=>{await t.load()}))??[]);const e=this.utilityNetwork;if(e){const o=t=>{if("layerId"in t&&e.isUtilityLayer(t)){const o=e.getSourceIdByLayerId(t.layerId);null!==o&&this.networkSourceIdsInUse.add(o)}};this._set("networkSourceIdsInUse",new Set),t.allLayers.forEach(o),t.allTables.forEach(o)}}async _findLayersBySourceId(t){const{utilityNetwork:e,map:o}=this,r=t=>{const o=t;if(!t.url)return!1;if(o.layerId===s){return t.url.replace(/\/\d+$/,"")===e?.featureServiceUrl}return!1};await(e?.load());const s=e.getLayerIdBySourceId(t),a=o.allLayers.filter(r),n=o.allTables.filter(r),i=a.concat(n).toArray();return await Promise.allSettled(i.map((t=>t.load()))),i}_clearAssociations(){this.attachmentsAssociations.removeAll(),this.structureAssociations.removeAll(),this.contentAssociations.removeAll(),this.containerAssociations.removeAll(),this.connectivityAssociations.removeAll()}_clearFeatures(){this.associationFeatures.forEach((t=>t.removeAll())),this.associationFeatures.clear()}_getAssociationsByType(t){switch(t){case"attachment":return this.attachmentsAssociations;case"structure":return this.structureAssociations;case"connectivity":return this.connectivityAssociations;case"container":return this.containerAssociations;case"content":return this.contentAssociations}}async _queryLayer(t,e,o,r,s){const a=t.fieldsIndex.get(g.assetGroup),n=t.fieldsIndex.get(g.assetType),i=null!=o,c=null!=r,l="("+e.map((t=>`'${t}'`)).join(", ")+")",u=i?` AND ${a?.name} = ${o}`:"",d=i&&c?` AND ${n?.name} = ${r}`:"",y=`${t.globalIdField} IN ${l}`+u+d,h=new p({outFields:["*"],cacheHint:this.supportsCacheHint,where:y});return await this._queryAll(h,t,{signal:s?.signal})}async _createAssociationFeatureObjects(t,e,o,r,s,a){if(0===t.length)return[];const n=new Map;for(const[c,l]of e){const t=await this._findLayersBySourceId(c);for(const e of t){(await this._queryLayer(e,l,r,s,a)).forEach((t=>{const o=t.layer&&"formTemplate"in t.layer?t.layer.formTemplate:null;if(("popup"===this.source?t.getEffectivePopupTemplate():o)&&t.layer){const o=n.get(t.attributes[e.globalIdField])??[];o.push(t),n.set(t.attributes[e.globalIdField],o)}}))}}const i=[];return t.toArray().forEach((t=>{const{fromNetworkElement:e,toNetworkElement:r}=t,s=e.globalId===o?r:e;(n.get(s.globalId)??[]).forEach((e=>{const o=this.utilityNetwork?.getTerminalById(s?.terminalId)?.name;i.push({association:t,feature:e,terminalName:o})}))})),i}_parseFeatureObjects(t,e){t.forEach((t=>{const o=t?.feature,r=o.layer,a=e.get(r)??new s;a.add(t),e.set(r,a)}))}async _queryAll(t,e,o){const r=[];let s=0,a=!1;t.num=e.sourceJSON?.maxRecordCount??2e3;do{t.start=s;const n=await e.queryFeatures(t,o);r.push(...n.features),a=n.exceededTransferLimit,a&&(s+=n.features.length)}while(a);return r}async _queryAssociations(t){const{layer:e,globalId:o,associationTypes:r,utilityNetwork:s,canQuery:a}=this;if(await Promise.allSettled([e?.load(),s?.load()]),this._clearAssociations(),!(a&&e&&r&&s&&o))return;const n=new h({globalId:o,networkSourceId:s?.getSourceIdByLayerId(e?.layerId??e?.parent?.layerId)}),i=new Set;r.forEach((t=>{switch(t.type){case"attachment":case"structure":i.add("attachment");break;case"container":case"content":i.add("containment");break;case"connectivity":i.add("connectivity"),i.add("junction-junction-connectivity"),i.add("junction-edge-from-connectivity"),i.add("junction-edge-midspan-connectivity"),i.add("junction-edge-to-connectivity")}}));const c=await(s?.queryAssociations({elements:[n],types:Array.from(i)},{signal:t?.signal})),l=new Map,u=new Map;r.forEach((t=>{u.set(t.type,t),l.set(t.type,[])})),c?.forEach((t=>{const{toNetworkElement:e,fromNetworkElement:r}=t;switch(t.associationType){case"connectivity":case"junction-junction-connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":if(r?.globalId===o){if(null!=u.get("connectivity")?.associatedNetworkSourceId&&u.get("connectivity")?.associatedNetworkSourceId!==e?.networkSourceId)break;l.get("connectivity").push(e.globalId)}else{if(null!=u.get("connectivity")?.associatedNetworkSourceId&&u.get("connectivity")?.associatedNetworkSourceId!==r?.networkSourceId)break;l.get("connectivity")?.push(r.globalId)}this.connectivityAssociations.add(t);break;case"containment":if(r?.globalId===o){if(null!=u.get("content")?.associatedNetworkSourceId&&u.get("content")?.associatedNetworkSourceId!==e?.networkSourceId)break;l.get("content")?.push(e.globalId),this.contentAssociations.add(t)}else{if(null!=u.get("container")?.associatedNetworkSourceId&&u.get("container")?.associatedNetworkSourceId!==r?.networkSourceId)break;l.get("container")?.push(r.globalId),this.containerAssociations.add(t)}break;case"attachment":if(r?.globalId===o){if(null!=u.get("attachment")?.associatedNetworkSourceId&&u.get("attachment")?.associatedNetworkSourceId!==e?.networkSourceId)break;l.get("attachment")?.push(e.globalId),this.attachmentsAssociations.add(t)}else{if(null!=u.get("structure")?.associatedNetworkSourceId&&u.get("structure")?.associatedNetworkSourceId!==r?.networkSourceId)break;l.get("structure")?.push(r.globalId),this.structureAssociations.add(t)}}}));const d=r.map((async e=>{const{associatedNetworkSourceId:o,associatedAssetGroup:r,associatedAssetType:s}=e,a=l.get(e.type),n=null!=r?await this._countAssociatedFeatures(o,a,r,s,t):a.length;switch(e.type){case"attachment":this._set("attachmentsFeatureCount",n);break;case"structure":this._set("structureFeatureCount",n);break;case"content":this._set("contentFeatureCount",n);break;case"container":this._set("containerFeatureCount",n);break;case"connectivity":this._set("connectivityFeatureCount",n)}}));await Promise.allSettled(d)}async _countAssociatedFeatureCount(t,e,o,r,s){const a=t.fieldsIndex.get(g.assetGroup),n=t.fieldsIndex.get(g.assetType),i=null!=r,c="("+e.map((t=>`'${t}'`)).join(", ")+")",l=` AND ${a?.name} = ${o}`,u=i?` AND ${n?.name} = ${r}`:"",d=`${t.globalIdField} IN ${c}`+l+u;return t.queryFeatureCount({where:d,outFields:["*"],returnGeometry:!1},{signal:s?.signal})}async _countAssociatedFeatures(t,e,o,r,s){if(0===e.length)return 0;const a=(await this._findLayersBySourceId(t)).map((async t=>this._countAssociatedFeatureCount(t,e,o,r,s)));return(await Promise.all(a)).reduce(((t,e)=>t+e),0)}async _queryAssociatedFeatures(t,e){const{layer:o,globalId:r,associationTypes:s,utilityNetwork:a,canQuery:n,associationFeatures:i}=this;if(await Promise.allSettled([o?.load(),a?.load()]),!(n&&o&&s&&a))return;const c=this._getAssociationsByType(t.type),{associatedAssetGroup:l,associatedAssetType:u}=t,d=new Map;c.forEach((t=>{const{fromNetworkElement:e,toNetworkElement:o}=t,{networkSourceId:s,elementGlobalId:a}=e.globalId===r?{networkSourceId:o.networkSourceId,elementGlobalId:o.globalId}:{networkSourceId:e.networkSourceId,elementGlobalId:e.globalId},n=d.get(s)||[];n.push(a),d.set(s,n)}));const y=await this._createAssociationFeatureObjects(c,d,r,l,u,e);this._parseFeatureObjects(y,i)}async _queryFeatureCount(){await this._loadUtiltyNetworks();const{_queryFeatureCountAbortController:t,canQuery:e}=this;e?(await this._queryAssociations(t),this._set("featureCount",this.attachmentsFeatureCount+this.structureFeatureCount+this.contentFeatureCount+this.containerFeatureCount+this.connectivityFeatureCount)):this._set("featureCount",0)}async _query(t){await this._loadUtiltyNetworks();const{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),0!==this.featureCount&&(this.destroyed||await this._queryAssociatedFeatures(t,{signal:e?.signal}))}};t([d()],b.prototype,"_loaded",void 0),t([d()],b.prototype,"_queryAbortController",void 0),t([d()],b.prototype,"_queryPageAbortController",void 0),t([d()],b.prototype,"_queryFeatureCountAbortController",void 0),t([d({readOnly:!0})],b.prototype,"supportsCacheHint",null),t([d({readOnly:!0})],b.prototype,"canLoad",null),t([d({readOnly:!0})],b.prototype,"canQuery",null),t([d()],b.prototype,"networkSourceIdsInUse",void 0),t([d({constructOnly:!0})],b.prototype,"source",void 0),t([d()],b.prototype,"description",void 0),t([d({value:3})],b.prototype,"displayCount",null),t([d({type:e})],b.prototype,"graphic",void 0),t([d()],b.prototype,"layer",void 0),t([d()],b.prototype,"map",void 0),t([d({readOnly:!0})],b.prototype,"objectId",null),t([d({readOnly:!0})],b.prototype,"objectIdField",null),t([d({readOnly:!0})],b.prototype,"globalId",null),t([d({readOnly:!0})],b.prototype,"globalIdField",null),t([d()],b.prototype,"featureCount",void 0),t([d()],b.prototype,"associationTypes",void 0),t([d()],b.prototype,"showAllEnabled",void 0),t([d()],b.prototype,"state",null),t([d()],b.prototype,"title",void 0),t([d({readOnly:!0})],b.prototype,"utilityNetwork",null),t([d({readOnly:!0})],b.prototype,"attachmentsFeatureCount",void 0),t([d({readOnly:!0})],b.prototype,"structureFeatureCount",void 0),t([d({readOnly:!0})],b.prototype,"attachmentsAssociations",null),t([d({readOnly:!0})],b.prototype,"structureAssociations",null),t([d({readOnly:!0})],b.prototype,"contentFeatureCount",void 0),t([d({readOnly:!0})],b.prototype,"containerFeatureCount",void 0),t([d({readOnly:!0})],b.prototype,"contentAssociations",null),t([d({readOnly:!0})],b.prototype,"containerAssociations",null),t([d({readOnly:!0})],b.prototype,"connectivityFeatureCount",void 0),t([d({readOnly:!0})],b.prototype,"connectivityAssociations",null),t([d({readOnly:!0})],b.prototype,"associationFeatures",null),t([d({readOnly:!0})],b.prototype,"associationViewModels",null),b=t([y("esri.widgets.support.UtilityNetworkAssociations.UtilityNetworkAssociationsViewModel")],b);const A=b;export{A as default};
@@ -1,4 +1,10 @@
1
1
  import "../../interfaces";
2
2
 
3
- import widget = __esri.widget;
4
- export = widget;
3
+ export const accessibleHandler: typeof __esri.widget.accessibleHandler;
4
+ export const cssTransition: typeof __esri.widget.cssTransition;
5
+ export const isActivationKey: typeof __esri.widget.isActivationKey;
6
+ export const isRTL: typeof __esri.widget.isRTL;
7
+ export const messageBundle: typeof __esri.widget.messageBundle;
8
+ export const storeNode: typeof __esri.widget.storeNode;
9
+ export const vmEvent: typeof __esri.widget.vmEvent;
10
+ export const tsx: typeof __esri.widget.tsx;
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4654],{46851:(e,t,n)=>{n.d(t,{MA:()=>d,m0:()=>h,wH:()=>w});var o=n(49186),r=n(4718),i=n(53966),c=n(37203),s=n(46540);const u=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function a(e,t,n){let r="",i=0;for(;i<n;){const c=e[t+i];if(c<128)r+=String.fromCharCode(c),i++;else if(c>=192&&c<224){if(i+1>=n)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const s=(31&c)<<6|63&e[t+i+1];r+=String.fromCharCode(s),i+=2}else if(c>=224&&c<240){if(i+2>=n)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(15&c)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];r+=String.fromCharCode(s),i+=3}else{if(!(c>=240&&c<248))throw new o.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const s=(7&c)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(s>=65536){const e=55296+(s-65536>>10),t=56320+(1023&s);r+=String.fromCharCode(e,t)}else r+=String.fromCharCode(s);i+=4}}}return r}function f(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let o=0;for(let r=0;r<t.length;r++){const i=t[r],c=i.valueType||i.type,s=A[c];n.fields[i.property]=s(e,o),o+=p[c].BYTES_PER_ELEMENT}return n.byteCount=o,n}function l(e,t,n){const r=[];let i,c,s=0;for(c=0;c<e;c+=1){if(i=t[c],i>0){if(r.push(a(n,s,i-1)),0!==n[s+i-1])throw new o.A("string-array-error","Invalid string array: missing null termination.")}else r.push(null);s+=i}return r}function d(e,t){return new(0,p[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function y(e,t,n){const i=null!=t.header?f(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},c={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let s=i.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],u=(0,r.o8)(t[n]);if(u.count=i.fields.count??0,"String"===u.valueType){if(u.byteOffset=s,u.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==u.encoding)throw new o.A("unsupported-encoding","Unsupported String encoding.",{encoding:u.encoding});if(u.timeEncoding&&"ECMA_ISO8601"!==u.timeEncoding)throw new o.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:u.timeEncoding})}else{if(!U(u.valueType))throw new o.A("unsupported-value-type","Unsupported binary valueType",{valueType:u.valueType});{const e=C(u.valueType);s+=s%e!=0?e-s%e:0,u.byteOffset=s,u.byteCount=e*u.valuesPerElement*u.count}}s+=u.byteCount??0,c.entries[n]=u}return c.byteCount=s-c.byteOffset,c}function g(e,t,n){if(t!==e&&u().error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new o.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function w(e,t){const n=f(e,t&&t.header);let o=n.byteCount;const r={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,c=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:o,count:c},i=b[e]||"_"+e;r.vertexAttributes[i]=n,o+=C(n.valueType)*n.valuesPerElement*c}const s=i.faceCount;if(t.faces&&s){r.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:o,count:s};r.faces[e]=n,o+=C(n.valueType)*n.valuesPerElement*s}}const u=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&u){r.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:o,count:u};r.featureAttributes[e]=n,o+=("UInt64"===n.valueType?8:C(n.valueType))*n.valuesPerElement*u}}return g(o,e.byteLength,"geometry"),r.byteCount=o-r.byteOffset,r}const b={position:s.r.POSITION,normal:s.r.NORMAL,color:s.r.COLOR,uv0:s.r.UV0,region:s.r.UVREGION};function h(e,t,n){if("lepcc-rgb"===e.encoding)return(0,c.mb)(t);if("lepcc-intensity"===e.encoding)return(0,c.Ax)(t);if(null!=e.encoding&&""!==e.encoding)throw new o.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(u().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(u().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const r=y(t,e,n);g(r.byteOffset+r.byteCount,t.byteLength,"attribute");const i=r.entries.attributeValues||r.entries.objectIds;if(i){if("String"===i.valueType){const e=r.entries.attributeByteCounts,n=d(t,e),o=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,i);return i.timeEncoding?function(e,t,n){return l(e,t,n).map((e=>{const t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t}))}(e.count,n,o):l(e.count,n,o)}return d(t,i)}throw new o.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const p={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},A={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function U(e){return p.hasOwnProperty(e)}function C(e){return U(e)?p[e].BYTES_PER_ELEMENT:0}},4654:(e,t,n)=>{n.d(t,{Q7:()=>v,s1:()=>A});var o=n(78888),r=(n(4576),n(49186),n(44208),n(34275)),i=(n(58083),n(9093)),c=(n(38954),n(51850)),s=(n(57251),n(16930),n(27993),n(19419)),u=(n(97937),n(61956),n(46851));n(73941),n(48353),n(68197);var a,f=n(91829);!function(e){e[e.TRANSPARENT=0]="TRANSPARENT",e[e.OPAQUE=1]="OPAQUE"}(a||(a={})),n(21818),n(40804),n(42583),n(49255),n(26835),n(81961);var l,d,y,g,w=n(39589);n(46263),w.n,n(2597),n(15976),n(16943),n(46540),(d=l||(l={}))[d.Uniform=0]="Uniform",d[d.Varying=1]="Varying",d[d.COUNT=2]="COUNT",n(96336),n(26425),n(40710),n(33079),n(98353),n(35644),n(58029),function(e){e[e.Solid=0]="Solid",e[e.Sketch=1]="Sketch",e[e.Mixed=2]="Mixed",e[e.COUNT=3]="COUNT"}(y||(y={})),function(e){e[e.REGULAR=0]="REGULAR",e[e.SILHOUETTE=1]="SILHOUETTE"}(g||(g={}));(0,f.fA)(0,0,0,.2),a.OPAQUE;(0,f.fA)(0,0,0,.2),a.OPAQUE,n(66104);var b,h,p=n(57005);async function A(e,t,n,r,i,c,s,a){const f=[];for(const o of t)if(o&&i.includes(o.name)){const t=`${e}/nodes/${n}/attributes/${o.key}/0`;f.push({url:t,storageInfo:o})}const l=await Promise.allSettled(f.map((e=>(0,o.A)(e.url,{responseType:"array-buffer",query:{...s,token:c},signal:a?.signal}).then((t=>(0,u.m0)(e.storageInfo,t.data)))))),d=[];for(const e of r){const t={};for(let n=0;n<l.length;n++){const o=l[n];if("fulfilled"===o.status){const r=o.value;t[f[n].storageInfo.name]=m(r,e)}}d.push(t)}return d}(0,s.vt)(),(h=b||(b={}))[h.OUTSIDE=0]="OUTSIDE",h[h.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",h[h.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",h[h.INSIDE=3]="INSIDE";const U=-32768,C=-2147483648;function m(e,t){if(!e)return null;const n=e[t];return(0,r.IY)(e)?n===U?null:n:(0,r._G)(e)?n===C?null:n:n!=n?null:n}function v(e){null!=e&&(e[3]=-1)}!function(){y.Solid}({color:[0,0,0,0],opacity:0}),(0,c.vt)(),(0,c.vt)(),(0,c.vt)(),(0,c.vt)(),(0,c.vt)(),(0,c.vt)(),(0,c.vt)(),(0,c.vt)(),(0,s.vt)(),(0,s.vt)(),new p.ab,(0,c.vt)(),new Array(72),(0,i.vt)()},37203:(e,t,n)=>{n.d(t,{Ax:()=>h,Me:()=>a,mb:()=>g});var o=n(49186);const r=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function c(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+i.identifierOffset,i.identifierLength)),version:t.getUint16(n+i.versionOffset,r),checksum:t.getUint32(n+i.checksumOffset,r)}}const s={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function u(e,t){return{sizeLo:e.getUint32(t+s.sizeLo,r),sizeHi:e.getUint32(t+s.sizeHi,r),minX:e.getFloat64(t+s.minX,r),minY:e.getFloat64(t+s.minY,r),minZ:e.getFloat64(t+s.minZ,r),maxX:e.getFloat64(t+s.maxX,r),maxY:e.getFloat64(t+s.maxY,r),maxZ:e.getFloat64(t+s.maxZ,r),errorX:e.getFloat64(t+s.errorX,r),errorY:e.getFloat64(t+s.errorY,r),errorZ:e.getFloat64(t+s.errorZ,r),count:e.getUint32(t+s.count,r),reserved:e.getUint32(t+s.reserved,r)}}function a(e){const t=new DataView(e,0);let n=0;const{identifier:r,version:a}=c(e,t,n);if(n+=i.byteCount,"LEPCC "!==r)throw new o.A("lepcc-decode-error","Bad identifier");if(a>1)throw new o.A("lepcc-decode-error","Unknown version");const l=u(t,n);if(n+=s.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const d=new Float64Array(3*l.count),y=[],g=[],w=[],b=[];if(n=f(e,n,y),n=f(e,n,g),n=f(e,n,w),n=f(e,n,b),n!==e.byteLength)throw new o.A("lepcc-decode-error","Bad length");let h=0,p=0;for(let e=0;e<y.length;e++){p+=y[e];let t=0;for(let n=0;n<g[e];n++){t+=w[h];const e=b[h];d[3*h]=Math.min(l.maxX,l.minX+2*l.errorX*t),d[3*h+1]=Math.min(l.maxY,l.minY+2*l.errorY*p),d[3*h+2]=Math.min(l.maxZ,l.minZ+2*l.errorZ*e),h++}}return{errorX:l.errorX,errorY:l.errorY,errorZ:l.errorZ,result:d}}function f(e,t,n){const o=[];t=l(e,t,o);const r=[];for(let i=0;i<o.length;i++){r.length=0,t=l(e,t,r);for(let e=0;e<r.length;e++)n.push(r[e]+o[i])}return t}function l(e,t,n){const i=new DataView(e,t),c=i.getUint8(0),s=31&c,u=!!(32&c),a=(192&c)>>6;let f=0;if(0===a)f=i.getUint32(1,r),t+=5;else if(1===a)f=i.getUint16(1,r),t+=3;else{if(2!==a)throw new o.A("lepcc-decode-error","Bad count type");f=i.getUint8(1),t+=2}if(u)throw new o.A("lepcc-decode-error","LUT not implemented");const l=Math.ceil(f*s/8),d=new Uint8Array(e,t,l);let y=0,g=0,w=0;const b=-1>>>32-s;for(let e=0;e<f;e++){for(;g<s;)y|=d[w]<<g,g+=8,w+=1;n[e]=y&b,y>>>=s,g-=s,g+s>32&&(y|=d[w-1]>>8-g)}return t+w}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function y(e,t){return{sizeLo:e.getUint32(t+d.sizeLo,r),sizeHi:e.getUint32(t+d.sizeHi,r),count:e.getUint32(t+d.count,r),colorMapCount:e.getUint16(t+d.colorMapCount,r),lookupMethod:e.getUint8(t+d.lookupMethod),compressionMethod:e.getUint8(t+d.compressionMethod)}}function g(e){const t=new DataView(e,0);let n=0;const{identifier:r,version:s}=c(e,t,n);if(n+=i.byteCount,"ClusterRGB"!==r)throw new o.A("lepcc-decode-error","Bad identifier");if(s>1)throw new o.A("lepcc-decode-error","Unknown version");const u=y(t,n);if(n+=d.byteCount,u.sizeHi*2**32+u.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");if((2===u.lookupMethod||1===u.lookupMethod)&&0===u.compressionMethod){if(3*u.colorMapCount+u.count+n!==e.byteLength||u.colorMapCount>256)throw new o.A("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*u.colorMapCount),r=new Uint8Array(e,n+3*u.colorMapCount,u.count),i=new Uint8Array(3*u.count);for(let e=0;e<u.count;e++){const n=r[e];i[3*e]=t[3*n],i[3*e+1]=t[3*n+1],i[3*e+2]=t[3*n+2]}return i}if(0===u.lookupMethod&&0===u.compressionMethod){if(3*u.count+n!==e.byteLength||0!==u.colorMapCount)throw new o.A("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(u.lookupMethod<=2&&1===u.compressionMethod){if(n+3!==e.byteLength||1!==u.colorMapCount)throw new o.A("lepcc-decode-error","Bad count");const r=t.getUint8(n),i=t.getUint8(n+1),c=t.getUint8(n+2),s=new Uint8Array(3*u.count);for(let e=0;e<u.count;e++)s[3*e]=r,s[3*e+1]=i,s[3*e+2]=c;return s}throw new o.A("lepcc-decode-error","Bad method "+u.lookupMethod+","+u.compressionMethod)}const w={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function b(e,t){return{sizeLo:e.getUint32(t+w.sizeLo,r),sizeHi:e.getUint32(t+w.sizeHi,r),count:e.getUint32(t+w.count,r),scaleFactor:e.getUint16(t+w.scaleFactor,r),bitsPerPoint:e.getUint8(t+w.bitsPerPoint),reserved:e.getUint8(t+w.reserved)}}function h(e){const t=new DataView(e,0);let n=0;const{identifier:r,version:s}=c(e,t,n);if(n+=i.byteCount,"Intensity "!==r)throw new o.A("lepcc-decode-error","Bad identifier");if(s>1)throw new o.A("lepcc-decode-error","Unknown version");const u=b(t,n);if(n+=w.byteCount,u.sizeHi*2**32+u.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const a=new Uint16Array(u.count);if(8===u.bitsPerPoint){if(u.count+n!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,u.count);for(let e=0;e<u.count;e++)a[e]=t[e]*u.scaleFactor}else if(16===u.bitsPerPoint){if(2*u.count+n!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,u.count);for(let e=0;e<u.count;e++)a[e]=t[e]*u.scaleFactor}else{const t=[];if(l(e,n,t)!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");for(let e=0;e<u.count;e++)a[e]=t[e]*u.scaleFactor}return a}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6996],{92993:(_,E,R)=>{var T;R.d(E,{n:()=>T}),function(_){_[_.ETC1_RGB=0]="ETC1_RGB",_[_.ETC2_RGBA=1]="ETC2_RGBA",_[_.BC1_RGB=2]="BC1_RGB",_[_.BC3_RGBA=3]="BC3_RGBA",_[_.BC4_R=4]="BC4_R",_[_.BC5_RG=5]="BC5_RG",_[_.BC7_M6_RGB=6]="BC7_M6_RGB",_[_.BC7_M5_RGBA=7]="BC7_M5_RGBA",_[_.PVRTC1_4_RGB=8]="PVRTC1_4_RGB",_[_.PVRTC1_4_RGBA=9]="PVRTC1_4_RGBA",_[_.ASTC_4x4_RGBA=10]="ASTC_4x4_RGBA",_[_.ATC_RGB=11]="ATC_RGB",_[_.ATC_RGBA=12]="ATC_RGBA",_[_.FXT1_RGB=17]="FXT1_RGB",_[_.PVRTC2_4_RGB=18]="PVRTC2_4_RGB",_[_.PVRTC2_4_RGBA=19]="PVRTC2_4_RGBA",_[_.ETC2_EAC_R11=20]="ETC2_EAC_R11",_[_.ETC2_EAC_RG11=21]="ETC2_EAC_RG11",_[_.RGBA32=13]="RGBA32",_[_.RGB565=14]="RGB565",_[_.BGR565=15]="BGR565",_[_.RGBA4444=16]="RGBA4444"}(T||(T={}))},46996:(_,E,R)=>{R.r(E),R.d(E,{TextureCompressionWorkerOutput:()=>G,compress:()=>e,compressRGBADataToKTX2:()=>M,createTextureDataKTX2:()=>B,loadBasisEncoder:()=>D,loadDXTEncoder:()=>L});var T=R(2741);let A;var N=R(92993);let C;var S=R(63907);let O=null,I=null;class G{constructor(_,E){this.internalFormat=_,this.compressedTexture=E}}async function e(_){const E=function(_,E=!1){const R=new OffscreenCanvas(_.width,_.height),T=R.getContext("2d");return E&&T.scale(1,-1),T.drawImage(_,0,E?-_.height:0),T.getImageData(0,0,R.width,R.height).data}(_.data,_.flipped);if(_.hasS3TC){I||await L();const R=new Uint8Array(25165824);I?.encode(new Uint8Array(E),_.width,_.height,R);const T=function(_){const E=new Int32Array(_.buffer,_.byteOffset,P);let R,T;switch(E[a]){case c:R=8,T=S.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case o:R=16,T=S.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case s:R=16,T=S.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}let A=1,N=E[F],C=E[U];(3&N||3&C)&&(N=N+3&-4,C=C+3&-4);const O=N,I=C;let G,e;E[n]&H&&(A=Math.max(1,E[r]));let D=_.byteOffset+E[t]+4;const L=[];for(let E=0;E<A;++E)e=(N+3>>2)*(C+3>>2)*R,G=new Uint8Array(_.buffer,D,e),L.push(G),D+=e,N=Math.max(1,N>>1),C=Math.max(1,C>>1);return{textureData:{type:"compressed",levels:L},internalFormat:T,width:O,height:I}}(R);return{result:new G(T?.internalFormat??null,T?.textureData??null)}}if(_.hasETC){O||await D();const R=await M(E,_.width,_.height,_.hasMipmap),T=R?await B(R):null;return{result:new G(T?.internalFormat??null,T?.compressedTexture??null)}}return{result:new G(null,null)}}async function D(){O||(O=await(A??=(async()=>{const _=await R.e(2372).then(R.bind(R,62372)),E=await _.default({locateFile:_=>(0,T.s)(`esri/libs/basisu/${_}`)});return E.initializeBasis(),E})(),A))}async function L(){I||(I=await(C??=(async()=>{const _=await R.e(8714).then(R.bind(R,98714));return await _.default({locateFile:_=>(0,T.s)(`esri/libs/dxtEncoder/${_}`)})})(),C))}async function M(_,E,R,T,A=255,N=0,C=!1,S=!1){if(!O)return null;const I=new O.BasisEncoder;I.setPerceptual(!S),I.setCheckForAlpha(!0),I.setForceAlpha(!1),I.setRenormalize(S),I.setMipGen(T),I.setMipSRGB(!S),I.setCreateKTX2File(!0),I.setKTX2SRGBTransferFunc(!S),I.setQualityLevel(A),I.setCompressionLevel(N);const G=new Uint8Array(25165824);I.setSliceSourceImage(0,new Uint8Array(_),E,R,C);const e=I.encode(G),D=new Uint8Array(G.buffer,0,e),L=new O.KTX2File(new Uint8Array(D));return L.isValid()?(I.delete(),D):(L.close(),L.delete(),I.delete(),null)}async function B(_){if(!O)return new G(null,null);const E=new O.KTX2File(new Uint8Array(_));E.startTranscoding();const[R,T]=E.getHasAlpha()?[N.n.ETC2_RGBA,S.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[N.n.ETC1_RGB,S.CQ.COMPRESSED_RGB8_ETC2],A=E.getLevels(),C=[];for(let _=0;_<A;_++)C.push(new Uint8Array(E.getImageTranscodedSizeInBytes(_,0,0,R))),E.transcodeImage(C[_],_,0,0,R,0,-1,-1);return E.close(),E.delete(),{internalFormat:T,compressedTexture:{type:"compressed",levels:C}}}const P=31,t=1,n=2,U=3,F=4,r=7,a=21,H=131072;function i(_){return _.charCodeAt(0)+(_.charCodeAt(1)<<8)+(_.charCodeAt(2)<<16)+(_.charCodeAt(3)<<24)}const c=i("DXT1"),o=i("DXT3"),s=i("DXT5")},63907:(_,E,R)=>{var T,A,N,C,S,O,I,G,e,D,L,M,B,P,t,n,U,F,r,a,H,i,c;R.d(E,{Ab:()=>P,Ac:()=>I,Ap:()=>B,CQ:()=>s,Cj:()=>L,Co:()=>r,H0:()=>t,Hr:()=>c,MT:()=>e,NV:()=>T,NZ:()=>S,Nm:()=>i,R:()=>a,Tb:()=>C,WR:()=>A,Y7:()=>O,_U:()=>F,dn:()=>N,eA:()=>D,ld:()=>n,nI:()=>o,pF:()=>M,pe:()=>G,vt:()=>H,yQ:()=>U}),function(_){_[_.DEPTH=256]="DEPTH",_[_.STENCIL=1024]="STENCIL",_[_.COLOR=16384]="COLOR"}(T||(T={})),function(_){_[_.POINTS=0]="POINTS",_[_.LINES=1]="LINES",_[_.LINE_LOOP=2]="LINE_LOOP",_[_.LINE_STRIP=3]="LINE_STRIP",_[_.TRIANGLES=4]="TRIANGLES",_[_.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",_[_.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(_){_[_.ZERO=0]="ZERO",_[_.ONE=1]="ONE",_[_.SRC_COLOR=768]="SRC_COLOR",_[_.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",_[_.SRC_ALPHA=770]="SRC_ALPHA",_[_.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",_[_.DST_ALPHA=772]="DST_ALPHA",_[_.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",_[_.DST_COLOR=774]="DST_COLOR",_[_.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",_[_.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",_[_.CONSTANT_COLOR=32769]="CONSTANT_COLOR",_[_.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",_[_.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",_[_.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(N||(N={})),function(_){_[_.ADD=32774]="ADD",_[_.MIN=32775]="MIN",_[_.MAX=32776]="MAX",_[_.SUBTRACT=32778]="SUBTRACT",_[_.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(C||(C={})),function(_){_[_.ARRAY_BUFFER=34962]="ARRAY_BUFFER",_[_.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",_[_.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",_[_.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",_[_.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",_[_.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",_[_.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",_[_.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(S||(S={})),function(_){_[_.FRONT=1028]="FRONT",_[_.BACK=1029]="BACK",_[_.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(O||(O={})),function(_){_[_.CW=2304]="CW",_[_.CCW=2305]="CCW"}(I||(I={})),function(_){_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.INT=5124]="INT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.FLOAT=5126]="FLOAT",_[_.HALF_FLOAT=5131]="HALF_FLOAT"}(G||(G={})),function(_){_[_.NEVER=512]="NEVER",_[_.LESS=513]="LESS",_[_.EQUAL=514]="EQUAL",_[_.LEQUAL=515]="LEQUAL",_[_.GREATER=516]="GREATER",_[_.NOTEQUAL=517]="NOTEQUAL",_[_.GEQUAL=518]="GEQUAL",_[_.ALWAYS=519]="ALWAYS"}(e||(e={})),function(_){_[_.ZERO=0]="ZERO",_[_.KEEP=7680]="KEEP",_[_.REPLACE=7681]="REPLACE",_[_.INCR=7682]="INCR",_[_.DECR=7683]="DECR",_[_.INVERT=5386]="INVERT",_[_.INCR_WRAP=34055]="INCR_WRAP",_[_.DECR_WRAP=34056]="DECR_WRAP"}(D||(D={})),function(_){_[_.NEAREST=9728]="NEAREST",_[_.LINEAR=9729]="LINEAR",_[_.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",_[_.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",_[_.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",_[_.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(L||(L={})),function(_){_[_.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",_[_.REPEAT=10497]="REPEAT",_[_.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(M||(M={})),function(_){_[_.TEXTURE_2D=3553]="TEXTURE_2D",_[_.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",_[_.TEXTURE_3D=32879]="TEXTURE_3D",_[_.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",_[_.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",_[_.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",_[_.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",_[_.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(B||(B={})),function(_){_[_.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL",_[_.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",_[_.ALPHA=6406]="ALPHA",_[_.RGB=6407]="RGB",_[_.RGBA=6408]="RGBA",_[_.LUMINANCE=6409]="LUMINANCE",_[_.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",_[_.RED=6403]="RED",_[_.RG=33319]="RG",_[_.RED_INTEGER=36244]="RED_INTEGER",_[_.RG_INTEGER=33320]="RG_INTEGER",_[_.RGB_INTEGER=36248]="RGB_INTEGER",_[_.RGBA_INTEGER=36249]="RGBA_INTEGER"}(P||(P={})),function(_){_[_.RGBA4=32854]="RGBA4",_[_.R16F=33325]="R16F",_[_.RG16F=33327]="RG16F",_[_.RGB32F=34837]="RGB32F",_[_.RGBA16F=34842]="RGBA16F",_[_.R32F=33326]="R32F",_[_.RG32F=33328]="RG32F",_[_.RGBA32F=34836]="RGBA32F",_[_.R11F_G11F_B10F=35898]="R11F_G11F_B10F",_[_.RGB8=32849]="RGB8",_[_.RGBA8=32856]="RGBA8",_[_.RGB5_A1=32855]="RGB5_A1",_[_.R8=33321]="R8",_[_.RG8=33323]="RG8",_[_.R8I=33329]="R8I",_[_.R8UI=33330]="R8UI",_[_.R16I=33331]="R16I",_[_.R16UI=33332]="R16UI",_[_.R32I=33333]="R32I",_[_.R32UI=33334]="R32UI",_[_.RG8I=33335]="RG8I",_[_.RG8UI=33336]="RG8UI",_[_.RG16I=33337]="RG16I",_[_.RG16UI=33338]="RG16UI",_[_.RG32I=33339]="RG32I",_[_.RG32UI=33340]="RG32UI",_[_.RGB16F=34843]="RGB16F",_[_.RGB9_E5=35901]="RGB9_E5",_[_.SRGB8=35905]="SRGB8",_[_.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",_[_.RGB565=36194]="RGB565",_[_.RGBA32UI=36208]="RGBA32UI",_[_.RGB32UI=36209]="RGB32UI",_[_.RGBA16UI=36214]="RGBA16UI",_[_.RGB16UI=36215]="RGB16UI",_[_.RGBA8UI=36220]="RGBA8UI",_[_.RGB8UI=36221]="RGB8UI",_[_.RGBA32I=36226]="RGBA32I",_[_.RGB32I=36227]="RGB32I",_[_.RGBA16I=36232]="RGBA16I",_[_.RGB16I=36233]="RGB16I",_[_.RGBA8I=36238]="RGBA8I",_[_.RGB8I=36239]="RGB8I",_[_.R8_SNORM=36756]="R8_SNORM",_[_.RG8_SNORM=36757]="RG8_SNORM",_[_.RGB8_SNORM=36758]="RGB8_SNORM",_[_.RGBA8_SNORM=36759]="RGBA8_SNORM",_[_.RGB10_A2=32857]="RGB10_A2",_[_.RGB10_A2UI=36975]="RGB10_A2UI"}(t||(t={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",_[_.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",_[_.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",_[_.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.INT=5124]="INT",_[_.HALF_FLOAT=5131]="HALF_FLOAT",_[_.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",_[_.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",_[_.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",_[_.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(n||(n={})),function(_){_[_.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",_[_.STENCIL_INDEX8=36168]="STENCIL_INDEX8",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL",_[_.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",_[_.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",_[_.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",_[_.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(U||(U={})),function(_){_[_.STATIC_DRAW=35044]="STATIC_DRAW",_[_.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",_[_.STREAM_DRAW=35040]="STREAM_DRAW",_[_.STATIC_READ=35045]="STATIC_READ",_[_.DYNAMIC_READ=35049]="DYNAMIC_READ",_[_.STREAM_READ=35041]="STREAM_READ",_[_.STATIC_COPY=35046]="STATIC_COPY",_[_.DYNAMIC_COPY=35050]="DYNAMIC_COPY",_[_.STREAM_COPY=35042]="STREAM_COPY"}(F||(F={})),function(_){_[_.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",_[_.VERTEX_SHADER=35633]="VERTEX_SHADER"}(r||(r={})),function(_){_[_.FRAMEBUFFER=36160]="FRAMEBUFFER",_[_.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",_[_.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(a||(a={})),function(_){_[_.Texture=0]="Texture",_[_.BufferObject=1]="BufferObject",_[_.VertexArrayObject=2]="VertexArrayObject",_[_.Shader=3]="Shader",_[_.Program=4]="Program",_[_.FramebufferObject=5]="FramebufferObject",_[_.Renderbuffer=6]="Renderbuffer",_[_.TransformFeedback=7]="TransformFeedback",_[_.Sync=8]="Sync",_[_.UNCOUNTED=9]="UNCOUNTED",_[_.LinesOfCode=9]="LinesOfCode",_[_.Uniform=10]="Uniform",_[_.COUNT=11]="COUNT"}(H||(H={})),function(_){_[_.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",_[_.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",_[_.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",_[_.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",_[_.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",_[_.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",_[_.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",_[_.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",_[_.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",_[_.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",_[_.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",_[_.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",_[_.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",_[_.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",_[_.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",_[_.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(i||(i={})),function(_){_[_.NONE=0]="NONE",_[_.BACK=1029]="BACK"}(c||(c={}));const o=33306;var s,u,l,f,X,V,Y;!function(_){_[_.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",_[_.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",_[_.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",_[_.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",_[_.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",_[_.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",_[_.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",_[_.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",_[_.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(s||(s={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.FLOAT_VEC2=35664]="FLOAT_VEC2",_[_.FLOAT_VEC3=35665]="FLOAT_VEC3",_[_.FLOAT_VEC4=35666]="FLOAT_VEC4",_[_.INT=5124]="INT",_[_.INT_VEC2=35667]="INT_VEC2",_[_.INT_VEC3=35668]="INT_VEC3",_[_.INT_VEC4=35669]="INT_VEC4",_[_.BOOL=35670]="BOOL",_[_.BOOL_VEC2=35671]="BOOL_VEC2",_[_.BOOL_VEC3=35672]="BOOL_VEC3",_[_.BOOL_VEC4=35673]="BOOL_VEC4",_[_.FLOAT_MAT2=35674]="FLOAT_MAT2",_[_.FLOAT_MAT3=35675]="FLOAT_MAT3",_[_.FLOAT_MAT4=35676]="FLOAT_MAT4",_[_.SAMPLER_2D=35678]="SAMPLER_2D",_[_.SAMPLER_CUBE=35680]="SAMPLER_CUBE",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",_[_.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",_[_.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",_[_.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",_[_.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",_[_.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",_[_.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",_[_.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",_[_.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",_[_.SAMPLER_3D=35679]="SAMPLER_3D",_[_.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",_[_.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",_[_.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",_[_.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",_[_.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",_[_.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",_[_.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",_[_.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",_[_.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",_[_.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",_[_.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",_[_.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(u||(u={})),function(_){_[_.OBJECT_TYPE=37138]="OBJECT_TYPE",_[_.SYNC_CONDITION=37139]="SYNC_CONDITION",_[_.SYNC_STATUS=37140]="SYNC_STATUS",_[_.SYNC_FLAGS=37141]="SYNC_FLAGS"}(l||(l={})),function(_){_[_.UNSIGNALED=37144]="UNSIGNALED",_[_.SIGNALED=37145]="SIGNALED"}(f||(f={})),function(_){_[_.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",_[_.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",_[_.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",_[_.WAIT_FAILED=37149]="WAIT_FAILED"}(X||(X={})),function(_){_[_.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(V||(V={})),function(_){_[_.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(Y||(Y={}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5202],{67996:(e,t,n)=>{n.d(t,{cZ:()=>D,XW:()=>j,fe:()=>F});var i,r,s=n(78888),o=n(49186),a=n(91869),l=(n(90708),n(92722)),p=n(16930);class u{constructor(){this.version="",this.queryResult=new d}}class d{constructor(){this.featureResult=new c}}class c{constructor(){this.objectIdFieldName="",this.uniqueIdField=new h,this.globalIdFieldName="",this.geohashFieldName="",this.geometryProperties=new y,this.geometryType=null,this.spatialReference=new p.A,this.exceededTransferLimit=!1,this.hasZ=!1,this.hasM=!1,this.transform=new m,this.fields=[],this.fieldNameToAttributeIndexMap={},this.values=[],this.features=[],this.geometryFields=[]}}class h{constructor(){this.name="",this.isSystemMaintained=!1}}class y{constructor(){this.shapeAreaFieldName="",this.shapeLengthFieldName="",this.units=""}}class m{constructor(){this.quantizeOriginPosition="upperLeft",this.scale=new f,this.translate=new g}}class f{constructor(){this.xScale=0,this.yScale=0,this.mScale=0,this.zScale=0}}class g{constructor(){this.xTranslate=0,this.yTranslate=0,this.mTranslate=0,this.zTranslate=0}}class _{constructor(){this.name="",this.fieldType="esriFieldTypeString",this.alias="",this.sqlType="sqlTypeVarchar",this.domain="",this.defaultValue=""}}class b{constructor(){this.attributes=[],this.compressedGeometry=new w,this.centroid=new w,this.aggregateGeometries=[]}}class w{constructor(){this.geometryType=null,this.lengths=[],this.coords=[]}}(r=i||(i={})).ELEMENTUID="ELEMENTUID",r.TYPENAME="TYPENAME";const I=[i.ELEMENTUID,i.TYPENAME];var T,M;!function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME"}(T||(T={})),function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME",e[e.FROMUID=2]="FROMUID",e[e.TOUID=3]="TOUID"}(M||(M={}));var v,x,E,A,S=n(45724),N=n(35448);function C(e){const t=new w;t.geometryType=N.bV[e.geometry_type.value];const n=[],i=[];for(let t=0;t<e.lengths.length;t++)n.push(e.lengths[t]);for(let t=0;t<e.coords.length;t++)i.push(e.coords[t]);return t.lengths=n,t.coords=i,t}function L(e){const t=new _;return t.name=e.name,t.alias=e.alias,t.fieldType=N.r5[e.field_type.value],t.sqlType=E[e.sql_type.value],t.domain=e.domain,t.defaultValue=e.default_value,t}function R(e){const t=L(e);return t.geometryType=N.bV[e.geometry_type.value],t}function k(e){const t=new m;t.quantizeOriginPosition=x[e.quantizeOriginPosition.value];const n=t.scale,i=e.scale;n.xScale=i.xScale,n.yScale=i.yScale,n.mScale=i.mScale,n.zScale=i.zScale;const r=t.translate,s=e.translate;return r.xTranslate=s.xTranslate,r.yTranslate=s.yTranslate,r.mTranslate=s.mTranslate,r.zTranslate=s.zTranslate,t}async function D(e,t){t??=!1;const n={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e){const t=await(0,s.A)(e,{responseType:"array-buffer"}),n=await t.data;return async function(e){const t=new((await(0,S.I)()).MapOfObjectIdentifierSetsDecoder),n=t.decode(new Uint8Array(e)),i=new Map;if(0!==n.error_code)throw new o.A("knowledge-graph:layer-support-utils",n.error_message);const r=t.get_map_of_identifier_sets(),s=r.keys,a=s.size();for(let e=0;e<a;e++){const t=s.get(e),n=r.query_identifier_set(t),a=[];if(n.id_array_type.value===A.GLOBALID_ARRAY){const e=n.get_globalid_array(),t=e.count();for(let n=0;n<t;n++)a.push(e.get_globalid_at(n))}else if(n.id_array_type.value===A.IDENTIFIER_ARRAY){const e=n.get_identifier_array(),t=e.count();for(let n=0;n<t;n++)a.push(e.get_identifier_at(n).toString())}else if(n.id_array_type.value===A.STRING_ARRAY){const e=n.get_string_array(),t=e.count();for(let n=0;n<t;n++)a.push(e.get_string_at(n))}else{if(n.id_array_type.value!==A.OID_ARRAY)throw new o.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{const e=n.get_oid_array(),t=e.count();for(let n=0;n<t;n++)a.push(e.get_objectid_at(n).toString())}}i.set(t,a)}return t.delete(),i}(new Uint8Array(n))}(e).then((e=>{!function(e,t){for(const[n,i]of e){const e=(0,a.tE)(t.namedTypeDefinitions,n,(()=>({useAllData:!1,members:new Map})));for(const t of i)e.members.has(t)||e.members.set(t,{id:t})}}(e,n)})),n}async function F(e){const t=await(0,S.I)(),n=new t.MapOfObjectIdentifierSets;!function(e,t,n){for(const[i,r]of n.namedTypeDefinitions){if(!r.members||r.useAllData)continue;const n=r.members.keys();let s=!1,o=!0;const a=new t.ObjectIdArray,l=new t.StringArray,p=new t.GlobalIdArray,u=new t.IdentifierArray,d=new t.ObjectIdentifierSet;for(const e of n)o&&(s=!isNaN(Number(e)),o=!1),s?a.add_objectid(Number(e)):(l.add_string(e),p.add_globalid(e)),u.add_identifier(e);d.set_oid_array(a),d.set_string_array(l),d.set_globalid_array(p),d.set_identifier_array(u),a.delete(),l.delete(),p.delete(),u.delete(),e.put_identifier_set(i,d),d.delete()}}(n,t,e);const i=new t.MapOfObjectIdentifierSetsEncoder;try{i.set_map_of_identifier_sets(n),i.encode();const e=i.get_encoding_result();if(0!==e.error.error_code)throw new o.A("knowledge-graph:layer-support-utils",e.error.error_message);const t=structuredClone(e.get_byte_buffer());return i.delete(),t}finally{n.delete()}}async function B(e){const t=await(0,s.A)(e,{responseType:"array-buffer"});return async function(e){const t=new((await(0,S.I)()).FeatureCollectionDecoder),n=t.decode(new Uint8Array(e));if(0!==n.error_code)throw new o.A("knowledge-graph:layer-support-utils",n.error_message);const i=function(e){const t=new u;t.version=e.version;const n=e.get_query_result();if(0!==n.results_type.value)throw new Error("Got a non-feature collection type");const i=n.get_feature_result(),r=t.queryResult.featureResult;r.objectIdFieldName=i.objectid_field_name,r.exceededTransferLimit=i.exceeded_transfer_limit,r.hasM=i.has_m,r.hasZ=i.has_z,r.geometryType=N.bV[i.geometry_type.value],r.globalIdFieldName=i.globalid_field_name,r.geohashFieldName=i.geohash_field_name;const s=r.uniqueIdField,o=i.unique_id_field;s.name=o.name,s.isSystemMaintained=o.isSystemMaintained;const a=r.geometryProperties,l=i.geometry_properties;a.shapeAreaFieldName=l.shapeAreaFieldName,a.shapeLengthFieldName=l.shapeLengthFieldName,a.units=l.units;const p=r.spatialReference,d=i.spatial_reference;p.wkid=d.wkid,p.latestWkid=d.latestWkid,p.vcsWkid=d.vcsWkid,p.latestVcsWkid=d.latestVcsWkid,p.wkt=d.wkt,r.transform=k(i.transform);const c=r.fields,h=r.fieldNameToAttributeIndexMap,y=i.fields,m=y.size();for(let e=0;e<m;e++){const t=y.get(e),n=L(t);c.push(n),h[n.name]=e,t.delete()}y.delete();const f=r.values,g=i.values_count();for(let e=0;e<g;e++)f.push(i.get_value_at(e));const _=r.features,w=i.features,T=w.size();if(T>0)for(const e of I)if(void 0===h[e])throw new Error(`Feature collection missing required attribute: ${e}`);for(let e=0;e<T;e++){const t=new b,n=w.get(e),i=t.attributes,r=n.attributes_count();for(let e=0;e<r;e++)i.push(n.get_attribute_at(e));const s=n.get_compressed_geometry();s&&(t.compressedGeometry=C(s),t.centroid=C(n.get_centroid()));const o=t.aggregateGeometries,a=n.aggregate_geometries,l=a.size();for(let e=0;e<l;e++){const t=a.get(e),n=C(t);o.push(n),t.delete()}a.delete(),_.push(t),n.delete()}w.delete();const M=r.geometryFields,v=i.geometry_fields,x=v.size();for(let e=0;e<x;e++){const t=v.get(e),n=R(t);M.push(n),t.delete()}return v.delete(),t}(t.get_feature_collection());return t.delete(),i}(await t.data)}function O(e,t){if(!e?.queryResult?.featureResult)return t;const n=e.queryResult.featureResult.fieldNameToAttributeIndexMap;for(const r of e.queryResult.featureResult.features){const e=r.attributes[n[i.TYPENAME]],s=(0,a.tE)(t.namedTypeDefinitions,e,(()=>({useAllData:!1,members:new Map}))),o=r.attributes[n[i.ELEMENTUID]];if(r.compressedGeometry?.coords?.length>0){let e=r.compressedGeometry.lengths;"esriGeometryPoint"===r.compressedGeometry.geometryType&&(e=[]),s.members.set(o,{id:o,linkChartLocation:new l.A(e,r.compressedGeometry.coords)})}else s.members.set(o,{id:o})}return t}!function(e){e[e.featureResult=0]="featureResult",e[e.countResult=1]="countResult",e[e.idsResult=2]="idsResult"}(v||(v={})),function(e){e[e.upperLeft=0]="upperLeft",e[e.lowerLeft=1]="lowerLeft"}(x||(x={})),function(e){e[e.sqlTypeBigInt=0]="sqlTypeBigInt",e[e.sqlTypeBinary=1]="sqlTypeBinary",e[e.sqlTypeBit=2]="sqlTypeBit",e[e.sqlTypeChar=3]="sqlTypeChar",e[e.sqlTypeDate=4]="sqlTypeDate",e[e.sqlTypeDecimal=5]="sqlTypeDecimal",e[e.sqlTypeDouble=6]="sqlTypeDouble",e[e.sqlTypeFloat=7]="sqlTypeFloat",e[e.sqlTypeGeometry=8]="sqlTypeGeometry",e[e.sqlTypeGUID=9]="sqlTypeGUID",e[e.sqlTypeInteger=10]="sqlTypeInteger",e[e.sqlTypeLongNVarchar=11]="sqlTypeLongNVarchar",e[e.sqlTypeLongVarbinary=12]="sqlTypeLongVarbinary",e[e.sqlTypeLongVarchar=13]="sqlTypeLongVarchar",e[e.sqlTypeNChar=14]="sqlTypeNChar",e[e.sqlTypeNVarChar=15]="sqlTypeNVarChar",e[e.sqlTypeOther=16]="sqlTypeOther",e[e.sqlTypeReal=17]="sqlTypeReal",e[e.sqlTypeSmallInt=18]="sqlTypeSmallInt",e[e.sqlTypeSqlXml=19]="sqlTypeSqlXml",e[e.sqlTypeTime=20]="sqlTypeTime",e[e.sqlTypeTimestamp=21]="sqlTypeTimestamp",e[e.sqlTypeTimestamp2=22]="sqlTypeTimestamp2",e[e.sqlTypeTinyInt=23]="sqlTypeTinyInt",e[e.sqlTypeVarbinary=24]="sqlTypeVarbinary",e[e.sqlTypeVarchar=25]="sqlTypeVarchar"}(E||(E={})),function(e){e[e.OID_ARRAY=0]="OID_ARRAY",e[e.GLOBALID_ARRAY=1]="GLOBALID_ARRAY",e[e.STRING_ARRAY=2]="STRING_ARRAY",e[e.IDENTIFIER_ARRAY=3]="IDENTIFIER_ARRAY"}(A||(A={}));const j={fetchAndConvertSerializedLinkChart:e=>async function(e){const t=[],n={generateAllSublayers:!1,namedTypeDefinitions:new Map};return e.entitiesUrl&&t.push(B(e.entitiesUrl).then((e=>{O(e,n)}))),e.relationshipsUrl&&t.push(B(e.relationshipsUrl).then((e=>{O(e,n)}))),await Promise.all(t),n}(e)}},75503:(e,t,n)=>{n.d(t,{E:()=>x,w:()=>a});var i=n(4576),r=n(21818),s=(n(44208),n(3694)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=h,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),I.prune(),T.prune(),M.prune(),v.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(b(e,n))for(I.clear();n;){for(let r=0,s=n.children.length;r<s;r++){const s=n.children[r],o=n.leaf?i(s):s;b(e,o)&&(n.leaf?t(s):_(e,o)?l(s,t):I.push(s))}n=I.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!b(e,t))return!1;for(I.clear();t;){for(let i=0,r=t.children.length;i<r;i++){const r=t.children[i],s=t.leaf?n(r):r;if(b(e,s)){if(t.leaf||_(e,s))return!0;I.push(r)}}t=I.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(e){if(!e)return this;let t,n=this._data,s=null,o=0,a=!1;const l=this._toBBox(e);for(M.clear(),v.clear();n||M.length>0;){if(n||(n=M.pop(),s=M.data[M.length-1],o=v.pop()??0,a=!0),n.leaf&&(t=(0,i.qh)(n.children,(0,r.zI)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),M.push(n),this._condense(M),this;a||n.leaf||!_(n,l)?s?(o++,n=s.children[o],a=!1):n=null:(M.push(n),v.push(o),o=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,i){const r=n-t+1;let s=this._maxEntries;if(r<=s){const i=new A(e.slice(t,n+1));return p(i,this._toBBox),i}i||(i=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(i-1)));const o=new S([]);o.height=i;const a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));w(e,t,n,l,this._compareMinX);for(let r=t;r<=n;r+=l){const t=Math.min(r+l-1,n);w(e,r,t,a,this._compareMinY);for(let n=r;n<=t;n+=a){const r=Math.min(n+a-1,t);o.children.push(this._build(e,n,r,i-1))}}return p(o,this._toBBox),o}_insert(e,t,n){const i=this._toBBox,r=n?e:i(e);M.clear();const s=function(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){const o=t.children[s],a=y(o),l=f(e,o)-a;l<r?(r=l,i=a<i?a:i,n=o):l===r&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}(r,this._data,t,M);for(s.children.push(e),d(s,r);t>=0&&M.data[t].children.length>this._maxEntries;)this._split(M,t),t--;!function(e,t,n){for(let i=n;i>=0;i--)d(t.data[i],e)}(r,M,t)}_split(e,t){const n=e.data[t],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);const s=this._chooseSplitIndex(n,r,i);if(!s)return;const o=n.children.splice(s,n.children.length-s),a=n.leaf?new A(o):new S(o);a.height=n.height,p(n,this._toBBox),p(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new S([e,t]),this._data.height=e.height+1,p(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,r,s;i=r=1/0;for(let o=t;o<=n-t;o++){const t=u(e,0,o,this._toBBox),a=u(e,o,n,this._toBBox),l=g(t,a),p=y(t)+y(a);l<i?(i=l,s=o,r=p<r?p:r):l===i&&p<r&&(r=p,s=o)}return s}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:c,r=e.leaf?this._compareMinY:h;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,r)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const r=this._toBBox,s=u(e,0,t,r),o=u(e,n-t,n,r);let a=m(s)+m(o);for(let i=t;i<n-t;i++){const t=e.children[i];d(s,e.leaf?r(t):t),a+=m(s)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];d(o,e.leaf?r(t):t),a+=m(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const r=e.data[t-1],s=r.children;s.splice((0,i.qh)(s,n,s.length,r.indexHint),1)}else this.clear();else p(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(T.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,r.zI)(e));else T.pushArray(n.children);n=T.pop()??null}}function p(e,t){u(e,0,e.children.length,t,e)}function u(e,t,n,i,r){r||(r=new A([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<n;o++)s=e.children[o],d(r,e.leaf?i(s):s);return r}function d(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function h(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-n)*Math.max(0,s-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function b(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function w(e,t,n,i,r){const s=[t,n];for(;s.length;){const t=s.pop(),n=s.pop();if(t-n<=i)continue;const a=n+Math.ceil((t-n)/i/2)*i;(0,o.q)(e,a,n,t,r),s.push(n,a,a,t)}}const I=new s.A,T=new s.A,M=new s.A,v=new s.A({deallocator:void 0});class x{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class E extends x{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class A extends E{constructor(e){super(),this.children=e,this.leaf=!0}}class S extends E{constructor(e){super(),this.children=e,this.leaf=!1}}},39516:(e,t,n)=>{let i;async function r(){return null==i&&(i=n.e(4123).then(n.bind(n,44123)).then((e=>new e.WhereClauseCache(500,500)))),i}async function s(e,t){const n=await r(),i=n.get(e,t);if(null==i)throw n.getError(e,t);return i}function o(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function a(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>s,IW:()=>a,mA:()=>o})},13069:(e,t,n)=>{n.d(t,{AG:()=>a,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function a(e){const t=e.toUpperCase();return"{"!==e[0]?`{${t}}`:t}},83960:(e,t,n)=>{n.d(t,{X_:()=>o,oW:()=>l,zx:()=>a});var i=n(34727),r=n(83047);const s=96;function o(e,t){const n=t||e.extent,i=e.width,o=(0,r.GA)(n?.spatialReference);return n&&i?n.width/i*o*r.dy*s:0}function a(e,t,n){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,n)}function l(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},94194:(e,t,n)=>{n.d(t,{A:()=>w});var i=n(90237),r=n(10107),s=(n(44208),n(53966),n(87811),n(40608)),o=n(5503),a=n(62885);let l=class extends o.A{constructor(e){super(e),this.addHandles([this.on("before-add",(e=>{null==e.item&&e.preventDefault()})),this.on("after-add",(e=>this._own(e.item))),this.on("after-remove",(e=>this._release(e.item)))])}get owner(){return this._get("owner")}set owner(e){e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(o.A.ofType(this.itemType.Type))(e):new o.A(e)}};(0,i._)([(0,r.MZ)()],l.prototype,"owner",null),l=(0,i._)([(0,s.$)("esri.core.support.OwningCollection")],l);var p=n(4146),u=n(63074),d=n(25036),c=n(52106),h=n(56507),y=(n(49186),n(7695));let m=class extends l{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,i._)([(0,y.u)({Type:c.A,ensureType:(0,h.dp)(c.A)})],m.prototype,"itemType",void 0),m=(0,i._)([(0,s.$)("esri.support.GraphicsCollection")],m);var f=n(88625);let g=class extends((0,u.dM)((0,d.j)(p.A))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new m,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}on(e,t){return super.on(e,t)}graphicChanged(e){this.emit("graphic-update",e)}};var _,b;(0,i._)([(0,r.MZ)({type:f.A})],g.prototype,"elevationInfo",void 0),(0,i._)([(0,r.MZ)((_=m,b="graphics",{type:_,cast:a.H,set(e){const t=(0,a.V)(e,this._get(b),_);t.owner=this,this._set(b,t)}}))],g.prototype,"graphics",void 0),(0,i._)([(0,r.MZ)({type:["show","hide"]})],g.prototype,"listMode",void 0),(0,i._)([(0,r.MZ)()],g.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,r.MZ)({readOnly:!0})],g.prototype,"type",void 0),(0,i._)([(0,r.MZ)({constructOnly:!0})],g.prototype,"internal",void 0),g=(0,i._)([(0,s.$)("esri.layers.GraphicsLayer")],g);const w=g},6518:(e,t,n)=>{n.d(t,{F:()=>a});var i=n(44208),r=n(75503),s=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.w(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((n,i)=>{e[t++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,s.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221:(e,t,n)=>{n.d(t,{A:()=>y});var i=n(4576),r=n(49186),s=n(65529),o=n(53966),a=n(70328),l=n(19419),p=n(90708),u=n(6518),d=n(51441),c=n(37730);const h=(0,a.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new u.F,this._featuresById=new Map,this.events=new s.A,this.featureAdapter=c.T}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,i,r]=this.fullBounds;return{xmin:t,ymin:n,xmax:i,ymax:r,spatialReference:(0,d.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map((e=>this._upsert(e)));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(h,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let i;if(n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t)):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,p.jQ)(null!=i?i:(0,l.vt)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e)}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;const{geometry:i,attributes:s}=e;for(const e in s)n.attributes[e]=s[e];return i&&(n.geometry=i,this._boundsStore.set(t,(0,p.jQ)((0,l.vt)(),i,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),e}}},37730:(e,t,n)=>{n.d(t,{T:()=>r});var i=n(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new i.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},64714:(e,t,n)=>{n.d(t,{F0:()=>l,Vx:()=>d,e2:()=>h,f:()=>y});var i=n(44208),r=n(4718),s=n(99352),o=n(4071),a=n(93470);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.Cb:"esriGeometryPolyline"===e?a.yM:a.WR}}}const p=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function d(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this${c(t)} = null;`;for(const t in e)n+=`this${c(t)} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new i}catch(n){return()=>({[t]:null,...e})}}function c(e){return p.test(e)?`.${e}`:`["${e}"]`}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}function y(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:o.$,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},80340:(e,t,n)=>{n.d(t,{P:()=>T});var i=n(90237),r=n(69622),s=n(49186),o=n(53966),a=n(91869),l=n(74887),p=n(39516),u=n(10107),d=(n(44208),n(87811),n(40608)),c=n(5443),h=n(39829),y=n(57251),m=n(21325),f=n(15375),g=n(69860),_=n(30504),b=n(88613),w=n(42538),I=n(61956);let T=class extends r.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;const t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach((n=>{n.name&&(t.set(n.name,"entity"),this._processingCacheUpdatesLookup.set(n.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.entityTypeNames.add(n.name),n.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(n.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((n=>{n.name&&(t.set(n.name,"relationship"),this._processingCacheUpdatesLookup.set(n.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.relationshipTypeNames.add(n.name),n.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(n.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((n,i)=>{if("entity"===t.get(i))this.entityTypeNames.add(i);else{if("relationship"!==t.get(i))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 e.inclusionModeDefinition?.namedTypeDefinitions.delete(i);this.relationshipTypeNames.add(i)}const r=new Map;n.members?.forEach((e=>{(0,a.tE)(this.memberIdTypeLookup,e.id,(()=>new Set)).add(i);const t=this.getById(e.id);t&&r.set(e.id,t)})),this.sublayerCaches.set(i,r)}))}addToLayer(e){e.forEach((({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new s.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){const n=this.inclusionModeDefinition.namedTypeDefinitions.get(e);n.members||(n.members=new Map),n.members.set(t,{id:t}),(0,a.tE)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}else{const n=new Map;n.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:n}),(0,a.tE)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}))}getById(e){return g.A.getInstance().readFromStoreById(e)}async getData(e,t,n){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return[];let i;if(i=e||new I.A({where:"1=1",outFields:["*"]}),"link-chart"===t.parentCompositeLayer.type){const e=t.parentCompositeLayer,n=this._processingCacheUpdatesLookup.get(t.objectType.name??""),r=i.outFields;r&&1===r.length&&r[0]===f.dr&&"1=1"===i.where||await Promise.all(n??[]);const s=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],o=[];return s.forEach((n=>{if(this.relationshipTypeNames.has(t.objectType.name)){n.geometry=e.relationshipLinkChartDiagramLookup.get(n.attributes[t.objectIdField]);const i=this.memberIdTypeLookup.get(n.attributes[f.Cz]),r=this.memberIdTypeLookup.get(n.attributes[f.KQ]),s=this._isEndEntitySpatial(i,n,f.Cz),o=this._isEndEntitySpatial(r,n,f.KQ);n.attributes[f.BL]=Number(s&&o)}else{n.geometry=e.entityLinkChartDiagramLookup.get(n.attributes[t.objectIdField]);const i=this.geographicLookup.get(t.objectType.name);i&&n.attributes[i.name]?n.attributes[f.BL]=1:n.attributes[f.BL]=0}n.attributes[f.T1]=n.geometry,o.push(n)})),o}return this.retrieveDataFromService(i,t,n)}async getConnectedRecordIds(e,t,n){const i=[];let r="";const s=this._getNamedTypeIdMapFromNodeIds(e);if(t&&0!==t?.length){for(const e of t)r=r+e+"|";r=r.slice(0,-1)}const o={},a=[];for(const[e,n]of s){const i=`${e}_ids`;o[i]=n,t&&0!==t?.length?a.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r:${r}]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`):a.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`)}if(!a.length)return i;const l=a.join(" UNION "),p=(await(0,b.executeQueryStreaming)(this.knowledgeGraph,new w.A({openCypherQuery:l,bindParameters:o}),{signal:n?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){const n=t[e];i.push({id:n[0],typeName:n[1]}),i.push({id:n[2],typeName:n[3]})}}return i}async getRelationshipsBetweenNodes(e,t,n){const i=this._getNamedTypeIdMapFromNodeIds(e);if(0===i.size)return[];const r={relationshipExclusionIds:t,possibleConnectionEntityIds:e},s=[];for(const[e,t]of i.entries()){const n=`${e}_ids`;r[n]=t,s.push(`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r]->(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}const o=s.join(" UNION "),a=[],l=(await(0,b.executeQueryStreaming)(this.knowledgeGraph,new w.A({openCypherQuery:o,bindParameters:r}),{signal:n?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await l.read();if(e)break;for(let e=0;e<t.length;e++){const n=t[e];a.push({id:n[0],typeName:n[1]})}}return a}async getRelationshipsFromNodes(e,t,n,i){const r=this._getNamedTypeIdMapFromNodeIds(e);if(0===r.size||0===t.length)return[];const s={relationshipExclusionIds:n,possibleConnectionEntityIds:t},o=[];for(const[e,t]of r.entries()){const n=`${e}_ids`;s[n]=t,o.push(`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r]-(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}const a=o.join(" UNION "),l=new Map,p=(await(0,b.executeQueryStreaming)(this.knowledgeGraph,new w.A({openCypherQuery:a,bindParameters:s}),{signal:i?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){const n=t[e];let i=l.get(n[1]);i||(i=new Set,l.set(n[1],i)),i.add(n[0])}}const u=[];for(const[e,t]of l)for(const n of t)u.push({id:n,typeName:e});return u}async refreshCacheContent(e,t,n,i=!0,r){const o=g.A.getInstance(),p=[],u=new Map,d=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&d.set(e.name,e)})),this.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&d.set(e.name,e)})),e||this.inclusionModeDefinition?e?e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e))u.has(t)?u.get(t)?.push(e):u.set(t,[e])})):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e.useAllData?u.set(t,null):e.members&&e.members.forEach((e=>{u.has(t)&&null!==u.get(t)?u.get(t)?.push(e.id):u.set(t,[e.id])}))})):(this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&u.set(e.name,null)})),this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&u.set(e.name,null)})));for(const[e,l]of u){const u=new Set(l),c=new Promise(((p,c)=>{(async()=>{const p=new Set,c=[];let h,y="",m=!1;if(t||d.get(e)?.properties?.forEach((e=>{e.name&&p.add(e.name)})),n&&this.geographicLookup.has(e)){const t=this.geographicLookup.get(e)?.name;t&&p.add(t)}if(this.entityTypeNames.has(e))y=`MATCH (n:${e}) ${l?"WHERE id(n) IN $ids ":""}return ID(n)`,p.forEach((e=>{y+=`, n.${e}`,c.push(e)}));else{if(!this.relationshipTypeNames.has(e))throw new s.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);m=!0,y=`MATCH ()-[n:${e}]->() ${l?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,p.forEach((e=>{y+=`, n.${e}`,c.push(e)}))}h=new w.A(l?{openCypherQuery:y,bindParameters:{ids:l}}:{openCypherQuery:y});const g=(await(0,b.executeQueryStreaming)(this.knowledgeGraph,h,{signal:r?.signal})).resultRowsStream.getReader();for(;;){const{done:t,value:n}=await g.read();if(t)break;const r=[];for(let e=0;e<n.length;e++){const t=n[e];let i=0,s=0;const o={properties:{}};for(o.id=t[i],i++,s++,m&&(o.originId=t[i],i++,s++,o.destinationId=t[i],i++,s++,(0,a.tE)(this.nodeConnectionsLookup,o.originId,(()=>new Set)).add(o.id),(0,a.tE)(this.nodeConnectionsLookup,o.destinationId,(()=>new Set)).add(o.id),(0,a.tE)(this.relationshipConnectionsLookup,o.id,(()=>[o.originId,o.destinationId])));i<t.length;i++)o.properties[c[i-s]]=t[i];u.delete(o.id),r.push(o)}const s=o.writeToStore(r,f.dr,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);const l=this.sublayerCaches.get(e);s.forEach((t=>{l?.set(t.attributes[f.dr],t),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[f.dr])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[f.dr],{id:t.attributes[f.dr]}),(0,a.tE)(this.memberIdTypeLookup,t.attributes[f.dr],(()=>new Set)).add(e))}))}const _=this.inclusionModeDefinition?.namedTypeDefinitions.get(e);if(_)for(const e of u)_.members?.delete(e)})().then((()=>{p(null)})).catch((e=>{"AbortError"===e.name?p(null):c(e)}))}));p.push(c),this._processingCacheUpdatesLookup.get(e)?.push(c)}if(await Promise.all(p),r?.signal?.aborted)throw(0,l.NK)()}removeFromLayer(e){const t=new Set,n=new Set(e.map((e=>e.id)));for(const n of e)t.add(n.typeName),1===this.memberIdTypeLookup.get(n.id)?.size?this.memberIdTypeLookup.delete(n.id):this.memberIdTypeLookup.get(n.id)?.delete(n.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{t===n.typeName&&e.members?.has(n.id)&&e.members.delete(n.id)}));t.forEach((e=>{this.sublayerCaches.get(e)?.forEach(((t,i)=>{n.has(i)&&this.sublayerCaches.get(e)?.delete(i)}))}))}async retrieveDataFromService(e,t,n){const i=g.A.getInstance(),r=new Set,o=[];let a,l="",u=[];const d="relationship"===t.graphType,I=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,T=t.parentCompositeLayer.sublayerIdsCache.get(t.objectType.name);let M=!I&&T?Array.from(T).sort():null;if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(M=e.objectIds);else if(null!=e.objectIds&&M&&M.length>0){const t=e.objectIds;e.objectIds=M.filter((e=>t.includes(e)))}else if(null!=e.objectIds)M=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],[];e.objectIds=M}if(null!=e.outFields){const n=e.outFields;n.includes("*")?t.fields.forEach((e=>{r.add(e.name)})):n.forEach((e=>{e!==f.dr&&e!==t.geometryFieldName&&r.add(e)}))}if(null!=e.geometry){const n=e.geometry;let i;const u=t.parentCompositeLayer.dataManager.knowledgeGraph.serviceDefinition,f=u?.spatialReference,g=u?.serviceCapabilities?.geometryCapabilities;let b=g?.geometryMaxBoundingRectangleSizeX,I=g?.geometryMaxBoundingRectangleSizeY;if("point"===n.type){let e=n;e.spatialReference?.isWGS84||(await(0,y.initializeProjection)(e.spatialReference,m.KK),e=(0,y.project)(e,m.KK)),i=new c.A({spatialReference:m.KK,xmin:e.x-1e-4,ymin:e.y-1e-4,xmax:e.x+1e-4,ymax:e.y+1e-4})}else n?.extent?.spatialReference&&!n.spatialReference?.isWGS84?(await(0,y.initializeProjection)(n.extent.spatialReference,m.KK),i=(0,y.project)(n.extent,m.KK)):i=n.extent;if(b&&I&&f){if(4326!==f.wkid){const e=new c.A({spatialReference:f,xmax:b,ymax:I}),t=(0,y.project)(e,m.KK);b=t.xmax,I=t.ymax}if(i.xmax-i.xmin>b)throw new s.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${b}° latitude, limit exceeded`);if(i.ymax-i.ymin>I)throw new s.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${I}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){const n=await(0,p.GP)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach((e=>{n.fieldNames.includes(e.name)&&r.add(e.name)}))}l=d?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&r.add(t.geometryFieldName),r.forEach((e=>{l+=`, n.${e}`,o.push(e)})),a=new w.A({openCypherQuery:l,bindParameters:{param_filter_geom:new h.A({rings:(0,_.Wq)(i)})}})}else{let n="";if(null!=e.where&&"1=1"!==e.where){const i=await(0,p.GP)(e.where,t.fieldsIndex);t.fields.forEach((e=>{i.fieldNames.includes(e.name)&&r.add(e.name)}));const s=new Set(["column-reference","string","number","binary-expression"]),o=new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]);let a=!1;const l=e=>{if("column-reference"===e.type)return`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&s.has(e.left.type)&&s.has(e.right.type)&&o.has(e.operator))return`${l(e.left)} ${e.operator} ${l(e.right)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let t="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)t+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return a=!0,"";t+=`lower(n.${e.left.column})`}if(t+=" CONTAINS (","string"!==e.right.type)return a=!0,"";{let n=e.right.value;"%"===n.charAt(0)&&(n=n.slice(1)),"%"===n.charAt(n.length-1)&&(n=n.slice(0,-1)),t+=`'${n.toLowerCase()}')`}return t}return a=!0,""};n=l(i.parseTree),a&&(n="")}let i="";i=d?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let s=!1;M&&(s=!0,i+=" WHERE ID(n) IN $ids"),n&&(i+=s?" AND":" WHERE",i+=` ${n}`),i+=" return ID(n)",d&&(i+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&r.add(t.geometryFieldName),r.forEach((e=>{i+=`, n.${e}`,o.push(e)})),a=new w.A(M?{openCypherQuery:i,bindParameters:{ids:M}}:{openCypherQuery:i})}const v=(await(0,b.executeQueryStreaming)(t.parentCompositeLayer.dataManager.knowledgeGraph,a,n)).resultRowsStream.getReader();for(;;){const{done:e,value:n}=await v.read();if(e)break;const r=[];for(let e=0;e<n.length;e++){const t=n[e];let i=0,s=0;const a={properties:{}};for(a.id=t[i],i++,s++,d&&(a.originId=t[i],i++,s++,a.destinationId=t[i],i++,s++);i<t.length;i++)a.properties[o[i-s]]=t[i];r.push(a)}u=u.concat(i.writeToStore(r,f.dr,t.parentCompositeLayer.dataManager.geographicLookup.get(t.objectType.name)?.name))}return u}_isEndEntitySpatial(e,t,n){for(const i of e??[])if(this.entityTypeNames.has(i)){const e=this.geographicLookup.get(i),r=e&&this.sublayerCaches.get(i)?.get(t.attributes[n]);if(e&&r?.attributes[e.name])return!0}return!1}_getNamedTypeIdMapFromNodeIds(e){const t=new Map;return e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const n of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(n))return;t.has(n)?t.get(n)?.push(e):t.set(n,[e])}})),t}};(0,i._)([(0,u.MZ)()],T.prototype,"knowledgeGraph",void 0),(0,i._)([(0,u.MZ)()],T.prototype,"inclusionModeDefinition",void 0),(0,i._)([(0,u.MZ)()],T.prototype,"entityTypeNames",void 0),(0,i._)([(0,u.MZ)()],T.prototype,"relationshipTypeNames",void 0),(0,i._)([(0,u.MZ)()],T.prototype,"geographicLookup",void 0),(0,i._)([(0,u.MZ)()],T.prototype,"sublayerCaches",void 0),(0,i._)([(0,u.MZ)()],T.prototype,"nodeConnectionsLookup",void 0),(0,i._)([(0,u.MZ)()],T.prototype,"relationshipConnectionsLookup",void 0),(0,i._)([(0,u.MZ)()],T.prototype,"memberIdTypeLookup",void 0),T=(0,i._)([(0,d.$)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],T)},70643:(e,t,n)=>{n.d(t,{A:()=>ie});var i=n(90237),r=n(13874),s=n(4718),o=n(53966),a=n(92071),l=(n(29953),n(10107)),p=(n(44208),n(40608)),u=n(43937),d=n(35666),c=n(5443),h=n(86738),y=n(39829),m=n(82799),f=n(57251),g=n(16930),_=n(21325),b=n(50498),w=n(4146),I=n(83221),T=n(19730),M=n(64714),v=n(15375);n(87811);const x=(0,n(17036).p)(),E=e=>{let t=class extends e{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,i._)([(0,l.MZ)(x.fields)],t.prototype,"fields",void 0),(0,i._)([(0,l.MZ)(x.fieldsIndex)],t.prototype,"fieldsIndex",void 0),t=(0,i._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],t),t};var A=n(85342),S=n(63074),N=n(6455),C=n(87718),L=n(76294),R=n(32756),k=n(54310),D=n(25036),F=n(82935),B=n(10873),O=n(13213),j=n(20437),Z=n(30524),$=n(81457),G=n(39383),q=n(96184),P=n(96576),U=n(65494),z=n(13112),Y=n(22671),Q=n(61956),H=n(30291),V=n(37531),W=n(61322);function X(e){if(!e.json)return e;e.json.write=J(e.json.write);const t=e.json.origins;if(!t)return e;let n;for(n in t){const e=t[n];e&&(e.write=J(e.write))}return e}function J(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){const{target:t,writer:n,overridePolicy:i,...r}=e;return function(e,t){const n=ee.call(this,e,t);return n.enabled?{...r,...n}:n}}(e)),e):!0===e?K():e}function K(){return{overridePolicy:ee}}function ee(e,t){const n=!!this.geometryType;let i={enabled:n};return n&&(i={...i,...te.call(this,e,t)}),i}function te(e,t){return{ignoreOrigin:this.originIdOf(t)>d.Gr.DEFAULTS}}let ne=class extends(E((0,N.FJ)((0,L.J)((0,C.F)((0,S.dM)((0,R.fY)((0,F.e)((0,D.j)((0,k.J)((0,a.P)(w.A))))))))))){constructor(e){super(e),this.blendMode="normal",this.capabilities=(0,M.f)(!1,!1),this.charts=null,this.definitionExpression=null,this.displayField="",this.displayFilterEnabled=!0,this.displayFilterInfo=null,this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.labelingInfo=null,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=v.dr,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then((()=>{const e=new MessageChannel;return new W.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{const n=Q.A.fromJSON(e);return this.queryFeaturesJSON(n,t)}}}),[e.port2]}))},this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){const e=[];return this.objectType?.properties?.forEach((t=>{const n="esriFieldTypeOID"===t.fieldType?"esriFieldTypeInteger":t.fieldType;e.push(j.A.fromJSON({name:t.name,type:n,alias:t.alias,defaultValue:t.defaultValue,editable:t.editable,nullable:t.nullable}))})),e.push(j.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),j.A.fromJSON({name:v.M1,type:"esriFieldTypeInteger",alias:v.M1,editable:!1}),j.A.fromJSON({name:v.BL,type:"esriFieldTypeInteger",alias:v.BL,editable:!1})),e}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.geometryType;return t&&"esriGeometryNull"!==t?b.gy.fromJSON(t):null}get geometryFieldName(){if("link-chart"===this.parentCompositeLayer?.type)return v.T1;const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name);return e?.name??null}get graphTypeName(){return this.objectType?.name}get hasM(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,n=t?this.objectType?.properties?.[t]:null;return n?.hasM??!1}get hasZ(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,n=t?this.objectType?.properties?.[t]:null;return n?.hasZ??!1}set renderer(e){(0,Z.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");const e=this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel,t=[...e?.entityTypes??[],...e?.relationshipTypes??[]].map((e=>e.name)).indexOf(this.graphTypeName),n=(0,A.Td)(t);if("link-chart"===this.parentCompositeLayer?.type){if("relationship"===this.graphType)return new P.A({type:"simple",symbol:(0,A.UT)(n)});const e=(0,U.r)((0,M.F0)(b.gy.toJSON("point")).renderer);return(0,V.dt)(e.symbol,n),"simple-marker"===e.symbol?.type&&(e.symbol.size=8),e}const i=(0,U.r)((0,M.F0)(b.gy.toJSON(this.geometryType)).renderer);return(0,V.dt)(i.symbol,n),"simple-marker"===i.symbol?.type&&(i.symbol.size=8),i}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??g.A.WGS84}set timeInfo(e){this._set("timeInfo",e)}get title(){return this._isOverridden("title")?this._get("title"):this.graphTypeName}set title(e){this._set("title",e)}writeTitle(e,t){t.title=e??"Layer"}createPopupTemplate(e){return(0,H.tn)(this,e)}createQuery(){return new Q.A({where:"1=1",outFields:["*"]})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return null}async queryFeatures(e,t){const{resolvedQuery:n,queryEngine:i}=await this._setupQueryObjects(e),r=Y.A.fromJSON(await i.executeQuery(n.toJSON(),t?.signal));return r.features.forEach((e=>{e.sourceLayer=this})),r}async queryFeaturesJSON(e,t){const{resolvedQuery:n,queryEngine:i}=await this._setupQueryObjects(e);return await i.executeQuery(n.toJSON(),t?.signal)}async queryFeatureCount(e,t){const{resolvedQuery:n,queryEngine:i}=await this._setupQueryObjects(e);return i.executeQueryForCount(n.toJSON(),t?.signal)}async queryExtent(e={},t){const n={...e,returnGeometry:!0},{resolvedQuery:i,queryEngine:r}=await this._setupQueryObjects(n),s=await r.executeQueryForExtent(i.toJSON(),t?.signal);let o;return o=null!=s.extent?.xmin&&null!=s.extent?.xmax&&null!=s.extent?.ymin&&null!=s.extent?.ymax?new c.A(s.extent):new c.A,{count:s.count,extent:o}}async queryObjectIds(e,t){const n=Q.A.from(e);let i;if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)i=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(n,this,t);i=this.loadQueryEngine(e)}return await i.executeQueryForIds(n.toJSON(),t?.signal)}loadQueryEngine(e){const t=new I.A({geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),n=new T.do({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,objectIdField:this.objectIdField,spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return n.featureStore.addMany(e),n}async refreshCachedQueryEngine(){const e=await this.parentCompositeLayer.dataManager.getData(new Q.A({where:"1=1",outFields:[v.dr]}),this);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e).then((()=>(0,Z.sv)(this.timeInfo,this.fieldsIndex)))),Promise.resolve(this)}async _setupQueryObjects(e,t){const n=Q.A.from(e),i=n.geometry;if(i&&!i.spatialReference?.isWGS84&&(await(0,f.initializeProjection)(i.spatialReference,_.KK),n.geometry=(0,f.project)(i instanceof y.A||i instanceof m.A||i instanceof h.A?i:i.extent,_.KK)),"link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)return{resolvedQuery:n,queryEngine:this._cachedQueryEngine};const r=await this.parentCompositeLayer.dataManager.getData(n,this,t);return{resolvedQuery:n,queryEngine:this.loadQueryEngine(r)}}};(0,i._)([(0,l.MZ)(X((0,s.o8)(S.sU)))],ne.prototype,"blendMode",void 0),(0,i._)([(0,l.MZ)()],ne.prototype,"capabilities",void 0),(0,i._)([(0,l.MZ)({json:{origins:{"web-scene":{write:!1}},write:K()}})],ne.prototype,"charts",void 0),(0,i._)([(0,l.MZ)({readOnly:!0})],ne.prototype,"defaultPopupTemplate",null),(0,i._)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],ne.prototype,"definitionExpression",void 0),(0,i._)([(0,l.MZ)()],ne.prototype,"displayField",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(N.Dp)))],ne.prototype,"displayFilterEnabled",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(N.KV)))],ne.prototype,"displayFilterInfo",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(S.LF)))],ne.prototype,"effect",void 0),(0,i._)([(0,l.MZ)()],ne.prototype,"elevationInfo",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(C.Y)))],ne.prototype,"featureEffect",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(O.d)))],ne.prototype,"featureReduction",null),(0,i._)([(0,l.MZ)()],ne.prototype,"fields",null),(0,i._)([(0,l.MZ)()],ne.prototype,"geometryType",null),(0,i._)([(0,l.MZ)()],ne.prototype,"geometryFieldName",null),(0,i._)([(0,l.MZ)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],ne.prototype,"graphType",void 0),(0,i._)([(0,l.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],ne.prototype,"graphTypeName",null),(0,i._)([(0,l.MZ)()],ne.prototype,"hasM",null),(0,i._)([(0,l.MZ)()],ne.prototype,"hasZ",null),(0,i._)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],ne.prototype,"id",void 0),(0,i._)([(0,l.MZ)({type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",default:!1,write:{overridePolicy(){return{enabled:!!this.geometryType,alwaysWriteDefaults:!0,ignoreOrigin:!0}}}}})],ne.prototype,"labelsVisible",void 0),(0,i._)([(0,l.MZ)({type:[$.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:function(e,t,n){const i=[["ESRI__AGGREGATION_COUNT",v.M1],["ESRI__ORIGIN_ID",v.Cz],["ESRI__DESTINATION_ID",v.KQ],["ESRI__LAYOUT_GEOMETRY",v.T1]];try{for(const t of e)for(const[e,n]of i)t.labelExpression=t.labelExpression?.replaceAll(e,n),t.labelExpressionInfo?.expression&&(t.labelExpressionInfo.expression=t.labelExpressionInfo.expression.replaceAll(e,n))}catch(e){o.A.getLogger(this).warn("Error updating labelingInfo",e)}return(0,G.w)(e,t,n)},write:K()}})],ne.prototype,"labelingInfo",void 0),(0,i._)([(0,l.MZ)({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer.type){case"link-chart":t.layerType="LinkChartSubLayer";break;case"knowledge-graph":t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],ne.prototype,"layerType",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(B.fV)))],ne.prototype,"legendEnabled",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(B.hG)))],ne.prototype,"maxScale",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(B.hn)))],ne.prototype,"minScale",void 0),(0,i._)([(0,l.MZ)()],ne.prototype,"objectIdField",void 0),(0,i._)([(0,l.MZ)()],ne.prototype,"objectType",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(B.ke)))],ne.prototype,"opacity",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(R.ne)))],ne.prototype,"orderBy",void 0),(0,i._)([(0,l.MZ)({clonable:!1})],ne.prototype,"parent",void 0),(0,i._)([(0,l.MZ)()],ne.prototype,"parentCompositeLayer",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(B.M6)))],ne.prototype,"popupEnabled",void 0),(0,i._)([(0,l.MZ)({type:r.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],ne.prototype,"popupTemplate",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:te}}})],ne.prototype,"refreshInterval",void 0),(0,i._)([(0,l.MZ)({types:z.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:K()}})],ne.prototype,"renderer",null),(0,i._)([(0,l.MZ)()],ne.prototype,"source",void 0),(0,i._)([(0,l.MZ)()],ne.prototype,"spatialReference",null),(0,i._)([(0,l.MZ)({type:q.A,json:{name:"layerDefinition.timeInfo",write:!0,origins:{"web-document":{name:"layerDefinition.timeInfo",read:!0,write:!0},"portal-item":{name:"layerDefinition.timeInfo",read:!0,write:!0}}}})],ne.prototype,"timeInfo",null),(0,i._)([(0,l.MZ)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],ne.prototype,"title",null),(0,i._)([(0,u.K)("title")],ne.prototype,"writeTitle",null),(0,i._)([(0,l.MZ)({json:{read:!1}})],ne.prototype,"type",void 0),(0,i._)([(0,l.MZ)(X((0,s.o8)(F.B)))],ne.prototype,"useViewTime",void 0),(0,i._)([(0,l.MZ)({type:Boolean,json:{name:"visibility",write:K()}})],ne.prototype,"visible",void 0),ne=(0,i._)([(0,p.$)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],ne);const ie=ne},69860:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(65864),r=n(90708),s=n(43334),o=n(15375);class a{constructor(){this._featureLookup=new Map}static getInstance(){return a.instance||(a.instance=new a),a.instance}static resetInstance(){a.instance&&(a.instance=null)}deleteFromStore(e){e.forEach((e=>{this._featureLookup.delete(e)}))}readFromStoreByList(e){const t=[];return e.forEach((e=>{const n=this.readFromStoreById(e);n&&t.push(n)})),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,n){const a=[];return e.forEach((e=>{if(!e?.id)return;e.properties||(e.properties=[]);let l,p=null;if(n&&e.properties[n]&&(p=(0,r.Ux)(e.properties[n])),"originId"in e&&"destinationId"in e&&(e.properties[o.Cz]=e.originId,e.properties[o.KQ]=e.destinationId),e.properties[t]=e.id,e.id&&this._featureLookup.has(e.id)&&this._featureLookup.get(e.id).attributes){const r=this._featureLookup.get(e.id),o=JSON.parse(JSON.stringify(Object.assign(r.attributes,e.properties)));n&&e.properties[n]&&(o[n]=(0,i.rS)(e.properties[n])),l=new s.Om(p?JSON.parse(JSON.stringify(p)):r?.geometry?JSON.parse(JSON.stringify(r.geometry)):null,o,null,e.properties[t])}else l=new s.Om(p?JSON.parse(JSON.stringify(p)):null,e.properties,null,e.properties[t]);this._featureLookup.set(`${e.typeName?`${e.typeName}__${e.id}`:e.id}`,l),a.push(l)})),a}}},15375:(e,t,n)=>{n.d(t,{BL:()=>l,Cz:()=>r,KQ:()=>s,M1:()=>a,T1:()=>o,dr:()=>i});const i="ESRI__ID",r="ESRI__OriginID",s="ESRI__DestID",o="ESRI__LayoutGeometry",a="ESRI__AggregationCount",l="LC.ESRI__IsSpatial"},85342:(e,t,n)=>{n.d(t,{Td:()=>d,UT:()=>c,qN:()=>l});var i=n(68197),r=n(88613),s=n(40863);const o={initializeLayersFromClientData:async(e,t,n)=>{if(t||(t=[...e.layers,...e.tables].map((e=>e.graphTypeName))),0===t?.length)return;const i=new Map;for(const n of t)i.set(n,a(e,n));const s=await(0,r.fetchClientDataAtKeys)(e.dataManager.knowledgeGraph,Array.from(i.values()),{requestOptions:{signal:n?.signal}});for(const t of[...e.layers,...e.tables]){const n=t.objectType.name;if(null==n)continue;const i=s.get(a(e,n));if(i){const e=JSON.parse(i);null===e||"object"!=typeof e||e.hasOwnProperty("showLabels")||(e.showLabels=!1),t.read(e,{origin:"service"})}}}},a=(e,t)=>"knowledge-graph"===e.type?`${t}/Map`:`${t}/LinkChart/LinkChartSubLayer`;async function l(e,t,n){return o.initializeLayersFromClientData(e,t,n)}const p=["#4a0932","#b31515","#18382e","#a64f1b","#102432","#8c213f","#ed9310","#2c6954","#144d59","#ffc730","#75351e","#454f4b","#78b1c2","#191921","#8f8f82","#9be0c0","#dbb658","#87b051","#11495c","#c43541","#9c5596","#44498b","#ad9d63","#86afb3","#5c98ca","#b0bfa2","#73241f","#b86b53","#d9d78c","#3e756d","#f260a1","#a0d17d","#c27c30","#eb82eb","#ffdf3c","#ffb259","#ab52b3","#3cccb4","#0095ba","#d92b30"],u="#8f8f82";function d(e){return e<0||e>=p.length?new i.A(u):new i.A(p[e])}function c(e){const t=e.toArray();return new s.A({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,style:"solid",width:1,color:t},{type:"CIMVectorMarker",enable:!0,size:10,markerPlacement:{type:"CIMMarkerPlacementOnLine",angleToLine:!0,relativeTo:"LineMiddle"},frame:{xmin:-10,ymin:-5,xmax:0,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[-12,-3.47],[-12,3.6],[1.96,-.03],[-12,-3.47]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:t}]}}]}]}}})}},30504:(e,t,n)=>{n.d(t,{k5:()=>p,aq:()=>l,Wq:()=>u}),n(52106);var i=n(49186),r=(n(86738),n(39829),n(82799),n(94194),n(69860),n(8460),n(66552));(0,r.O)()({none:"none",startAndEnd:"start-and-end",startOnly:"start-only"}),(0,r.O)()({absoluteValue:"absolute-value",multiplier:"multiplier"});const s=new Map([["basic-grid","basic-grid"],["geographic-organic-standard","geographic-organic-standard"],["hierarchical-bottom-to-top","hierarchical-bottom-to-top"],["hierarchical-top-to-bottom","hierarchical-bottom-to-top"],["organic-community","organic-community"],["organic-fusiform","organic-standard"],["organic-leaf-circle","organic-standard"],["organic-standard","organic-standard"],["radial-node-centric","radial-root-centric"],["radial-root-centric","radial-root-centric"],["tree-bottom-to-top","tree-left-to-right"],["tree-left-to-right","tree-left-to-right"],["tree-right-to-left","tree-left-to-right"],["tree-top-to-bottom","tree-left-to-right"],["chronological-mono-timeline","chronological-mono-timeline"],["chronological-multi-timeline","chronological-multi-timeline"]]);var o=n(88613),a=n(42538);async function l(e,t,n){const i=[],r=function(e,t){const n=new Map;if(t.dataModel?.relationshipTypes)for(const e of t.dataModel.relationshipTypes)e.name&&n.set(e.name,[]);for(const t of e)n.has(t.typeName)&&n.get(t.typeName)?.push(t.id);return n}(e,t),s={},l=[];for(const[e,t]of r){if(t.length<1)continue;const n=`${e}_ids`;s[n]=t,l.push(`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $${n} RETURN id(n), labels(n)[0], id(m), labels(m)[0]`)}if(0===l.length)return[];const p=l.join(" UNION "),u=new a.A({openCypherQuery:p,bindParameters:s}),d=(await(0,o.executeQueryStreaming)(t,u,n?.requestOptions)).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await d.read();if(e)break;for(const e of t)i.push({id:e[0],typeName:e[1]}),i.push({id:e[2],typeName:e[3]})}return i}n(40863),n(94985),n(68249);const p=e=>s.get(e)??"radial-root-centric";function u(e){if(!e.spatialReference.isWGS84)throw new i.A("knowledge-graph:layer-support-utils","The utilsExtentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map((e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]))}},6455:(e,t,n)=>{n.d(t,{FJ:()=>w,Dp:()=>I,KV:()=>T});var i=n(90237),r=n(93637),s=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),a=n(89317),l=n(69540),p=n(5503),u=n(25482),d=n(43937),c=n(83960),h=n(13069);const y={write:{overridePolicy:(e,t,n)=>({enabled:!n||"scale"===n.filterMode})}};let m=class extends(l.A.ClonableMixin(u.A)){constructor(e){super(e),this.id=(0,h.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,i._)([(0,s.MZ)({type:Number,json:y})],m.prototype,"maxScale",void 0),(0,i._)([(0,s.MZ)({type:Number,json:y})],m.prototype,"minScale",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,i._)([(0,o.$)("esri.layers.support.DisplayFilter")],m);const f=m;var g=n(41560);let _=class extends(l.A.ClonableMixin(u.A)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(p.A.ofType(f)),this.mode="manual"}writeFilters(e,t,n,i){const r=e.toArray();"scale"===this.mode&&r.sort(((e,t)=>{const n=(0,c.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===n?i:n})),t[n]=r.map((e=>e.toJSON(i)))}write(e,t){return super.write(e,(0,g.mW)(this,t))}};(0,i._)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,n)=>({enabled:"manual"===n.filterMode,isRequired:!0})}}})],_.prototype,"activeFilterId",void 0),(0,i._)([(0,s.MZ)({type:p.A.ofType(f),nonNullable:!0,json:{write:!0}})],_.prototype,"filters",void 0),(0,i._)([(0,d.K)("filters")],_.prototype,"writeFilters",null),(0,i._)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],_.prototype,"mode",void 0),_=(0,i._)([(0,o.$)("esri.layers.support.DisplayFilterInfo")],_);const b=_,w=e=>{let t=class extends e{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i._)([(0,s.MZ)(I)],t.prototype,"displayFilterEnabled",void 0),(0,i._)([(0,s.MZ)(T)],t.prototype,"displayFilterInfo",void 0),t=(0,i._)([(0,o.$)("esri.layers.mixins.DisplayFilteredLayer")],t),t},I={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:a.K,writer(e,t,n){(0,r.sM)(n,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},T={type:b,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:a.K},origins:{"web-scene":{write:!1,read:!1}}}}},32756:(e,t,n)=>{n.d(t,{Rr:()=>l,fY:()=>u,ne:()=>p});var i=n(90237),r=n(93637),s=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),a=n(91880);function l(e,t,n){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const r=new a.A;return r.read(i,n),[r]}const p={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,n,i){const s=e.find((e=>!!e.field));s&&(0,r.sM)(n,[s.toJSON()],t)}}}},u=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,s.MZ)(p)],t.prototype,"orderBy",void 0),t=(0,i._)([(0,o.$)("esri.layers.mixins.OrderedLayer")],t),t}},82935:(e,t,n)=>{n.d(t,{B:()=>h,e:()=>y});var i=n(90237),r=n(10107),s=(n(44208),n(53966),n(87811),n(36005)),o=n(40608),a=n(89317),l=n(30524),p=n(96184),u=n(73133),d=n(79677),c=n(10184);const h={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:a.K}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const i=n.timeOffset,r=u.j.fromJSON(n.timeOffsetUnits);return i&&r?new c.A({value:i,unit:r}):null}set timeInfo(e){(0,l.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,r.MZ)({type:d.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,r.MZ)({type:c.A})],t.prototype,"timeOffset",void 0),(0,i._)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,r.MZ)({value:null,type:p.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,r.MZ)(h)],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,o.$)("esri.layers.mixins.TemporalLayer")],t),t}},91880:(e,t,n)=>{n.d(t,{A:()=>d});var i,r=n(90237),s=n(66552),o=n(25482),a=n(10107),l=(n(44208),n(53966),n(87811),n(40608));const p=new s.J({asc:"ascending",desc:"descending"});let u=i=class extends o.A{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,r._)([(0,a.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],u.prototype,"order",void 0),u=i=(0,r._)([(0,l.$)("esri.layers.support.OrderByInfo")],u);const d=u},96184:(e,t,n)=>{n.d(t,{A:()=>m});var i=n(90237),r=n(69540),s=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(36005)),l=n(40608),p=n(43937),u=n(79677),d=n(10184),c=n(56400);function h(e,t){return d.A.fromJSON({value:e,unit:t})}let y=class extends(r.A.ClonableMixin(s.A)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?u.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,i._)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,i._)([(0,o.MZ)({type:u.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,i._)([(0,a.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,i._)([(0,p.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,i._)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,i._)([(0,o.MZ)({type:d.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,i._)([(0,a.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,i._)([(0,p.K)("interval")],y.prototype,"writeInterval",null),(0,i._)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,i._)([(0,o.MZ)((0,c.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,i._)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,i._)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,i._)([(0,o.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,i._)([(0,l.$)("esri.layers.support.TimeInfo")],y);const m=y},4071:(e,t,n)=>{n.d(t,{$:()=>i,P:()=>r});const i={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1,supportedStatistics:void 0,supportedNormalizationTypes:void 0},r={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i,query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsCurrentUser:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsTrueCurve:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},41560:(e,t,n)=>{n.d(t,{Ch:()=>o,mW:()=>s});var i=n(34727),r=n(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,n){const s=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(n)),t[1]=Math.min(t[1],d(i));return t}(e);if(s&&((0,i.gg)(t,s[0])||(0,i.ZH)(n,s[1])))return"";const o=Array.from(a(e,t,n)),l=function(e,t,n){if(0===e.length)return!0;const r=u(e.at(0)?.minScale),s=d(e.at(-1)?.maxScale);if((0,i.ZH)(r,t)||(0,i.gg)(s,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];if((0,i.ZH)(u(r.minScale),d(n.maxScale)))return!0}return!1}(o,t,n)?"1=1":o.map((e=>e.where||"1=1")).reduce(((e,t)=>(0,r.IW)(e,t)),"");return l&&"1=1"!==l?l:""}function*a(e,t,n){if("manual"===p(e)){const t=e.filters.find((t=>t.id===e.activeFilterId));t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)l(i.minScale,i.maxScale,t,n)&&(yield i)}}function l(e,t,n,r){return e=u(e),n=u(n),t=d(t),!(!(0,i.Sp)(n,e)&&(r??n)>e||(0,i.Hx)(t,n)||void 0!==r&&(0,i.Sp)(r,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},17036:(e,t,n)=>{n.d(t,{p:()=>l});var i=n(44208),r=n(53966),s=n(20437),o=n(95466),a=n(30524);function l(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");r.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const n=this.fieldsIndex?.has(t);n||r.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},32730:(e,t,n)=>{n.d(t,{BI:()=>f,D3:()=>y,XJ:()=>m,lc:()=>h,mX:()=>_,rU:()=>g,tH:()=>M});var i=n(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),a=new RegExp(s,"ig"),l=new RegExp("^"+r,"i"),p=new RegExp(s+"$","i"),u='"',d=u+" + ",c=" + "+u;function h(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=h(e.labelExpression),t.type="conventional"),t}function f(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return _(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(b);return t?.[1].trim()||null}(t.expression);case"arcade":return M(t.expression)}return null}function _(e){let t;return e?(t=(0,i.HC)(e,(e=>r+'$feature["'+e+'"]'+s)),t=l.test(t)?t.replace(l,""):u+t,t=p.test(t)?t.replace(p,""):t+u,t=t.replaceAll(o,d).replaceAll(a,c)):t='""',t}const b=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,I=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,T=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function M(e){if(!e)return null;let t=w.exec(e)||I.exec(e);return t?t[1]||t[3]:(t=T.exec(e),t?t[2]:null)}},8460:(e,t,n)=>{n.d(t,{$C:()=>f,Hh:()=>o,J:()=>p,JT:()=>l,Tu:()=>y,Wg:()=>m,Xq:()=>_,i6:()=>b,pM:()=>h,tx:()=>a,vJ:()=>g});var i=n(2741);let r,s=null;function o(){return r||(r=n.e(3666).then(n.bind(n,3666)).then((e=>e.l)).then((({default:e})=>e({locateFile:e=>(0,i.s)(`esri/libs/linkchartlayout/${e}`)}))).then((e=>{!function(e){s=e}(e)})),r)}var a,l,p,u,d,c,h,y,m,f,g,_,b,w,I;function T(e){const t=Object.keys(u).filter((e=>isNaN(parseInt(e,10)))).indexOf(e.timeDirection);let n=d.startAndEnd;switch(e.eventsTicksVisualization){case"start-only":n=d.startOnly;break;case"none":n=d.none}return{timeDirection:{value:t>-1?t:u.right},timeBannerUTCOffsetInMinutes:e.timeBannerUTCOffsetInMinutes,eventsTicksVisualization:{value:n},showDurationLineForNonZeroDurationEntityEvents:e.showDurationLineForNonZeroDurationEntityEvents,durationLineWidth:e.durationLineWidth,entityPositionAtDurationRatio:e.entityPositionAtDurationRatio,showNonZeroDurationIntervalBounds:e.showNonZeroDurationIntervalBounds,separateTimeOverlaps:e.separateTimeOverlaps,separateTimelineOverlaps:e.separateTimelineOverlaps,moveFirstBends:e.moveFirstBends,secondBendRatio:e.secondBendRatio,lineSeparationMultiplier:e.lineSeparationMultiplier,spaceSeparatedLinesEvenly:e.spaceSeparatedLinesEvenly,useBezierCurves:e.useBezierCurves,separatedLineShapeRatio:e.separatedLineShapeRatio}}function M(e,t,n,i,r,o){const a=n.length,p=r.length,u=Float64Array.BYTES_PER_ELEMENT,d=Uint32Array.BYTES_PER_ELEMENT,c=Uint8Array.BYTES_PER_ELEMENT,h=16+a*(c+2*u)+p*(2*d),y=s._malloc(h);try{const c=y+16-y%16,h=c+a*u,m=h+a*u,f=m+p*d,g=f+p*d,_=()=>[s.HEAPF64.subarray(c>>3,(c>>3)+a),s.HEAPF64.subarray(h>>3,(h>>3)+a),s.HEAPU32.subarray(m>>2,(m>>2)+p),s.HEAPU32.subarray(f>>2,(f>>2)+p),s.HEAPU8.subarray(g,g+a)],[b,w,I,T,M]=_();b.set(n),w.set(i),I.set(r),T.set(o),M.set(t);const v=e(a,g,c,h,p,m,f);let x=null,E=null;if(v.value===l.Success){const e=s.getLayoutLinksTypes(),t=s.getLayoutLinksVerticesEndIndices(),n=s.getLayoutLinksVertices(),i=s.countLayoutLinksVertices();!p||e&&t?i&&!n?v.value=l.Error:(x={types:new Uint8Array(s.HEAPU8.subarray(e,e+p)),vertexEndIndex:new Uint32Array(s.HEAPU32.subarray(t>>2,(t>>2)+p)),vertices:new Float64Array(s.HEAPF64.subarray(n>>3,(n>>3)+2*i))},E=s.getAuxiliaryGraphicElements()):v.value=l.Error}const[A,S,N,C,L]=_();return n.set(A),i.set(S),r.set(N),o.set(C),t.set(L),{status:v.value,links:x,graphics:E}}finally{s._free(y),s.cleanupLayout()}}(c=a||(a={}))[c.None=0]="None",c[c.IsMovable=1]="IsMovable",c[c.IsGeographic=2]="IsGeographic",c[c.IsRoot=4]="IsRoot",c[c.IsOld=8]="IsOld",function(e){e[e.Success=0]="Success",e[e.Error=1]="Error",e[e.Canceled=2]="Canceled"}(l||(l={})),function(e){e[e.Regular=0]="Regular",e[e.Curved=1]="Curved",e[e.Recursive=2]="Recursive"}(p||(p={})),function(e){e[e.right=0]="right",e[e.left=1]="left",e[e.top=2]="top",e[e.bottom=3]="bottom"}(u||(u={})),function(e){e[e.none=0]="none",e[e.startOnly=1]="startOnly",e[e.startAndEnd=2]="startAndEnd"}(d||(d={})),function(e){e.getMinIdealEdgeLength=function(){return s.getMinIdealEdgeLength()},e.apply=function(e,t,n,i,r,o,a=2,l=1,p=-1){return M(((t,n,i,r,o,u,d)=>s.applyForceDirectedLayout(e,t,n,i,r,o,u,d,a,l,p)),t,n,i,r,o)}}(h||(h={})),function(e){e.apply=function(e,t,n,i,r,o,a=2,l=1,p=-1){return M(((t,n,i,r,o,u,d)=>s.applyCommunityLayout(e,t,n,i,r,o,u,d,a,l,p)),t,n,i,r,o)}}(y||(y={})),function(e){e.apply=function(e,t,n,i,r,o){return M(((t,n,i,r,o,a,l)=>s.applySimpleLayout(e,t,n,i,r,o,a,l)),t,n,i,r,o)}}(m||(m={})),function(e){e.apply=function(e,t,n,i,r,o){return M(((t,n,i,r,o,a,l)=>s.applyHierarchicalLayout(e,t,n,i,r,o,a,l)),t,n,i,r,o)}}(f||(f={})),function(e){e.apply=function(e,t,n,i,r,o){return M(((t,n,i,r,o,a,l)=>s.applyRadialTreeLayout(e,t,n,i,r,o,a,l)),t,n,i,r,o)}}(g||(g={})),function(e){e.apply=function(e,t,n,i,r,o){return M(((t,n,i,r,o,a,l)=>s.applySmartTreeLayout(e,t,n,i,r,o,a,l)),t,n,i,r,o)}}(_||(_={})),function(e){e.apply=function(e,t,n,i,r,o,a,p,c,h,y,m){const f={timeDirection:u.right,timeBannerUTCOffsetInMinutes:0,eventsTicksVisualization:d.startAndEnd,showDurationLineForNonZeroDurationEntityEvents:!0,durationLineWidth:5,entityPositionAtDurationRatio:1,showNonZeroDurationIntervalBounds:!1,separateTimeOverlaps:!0,separateTimelineOverlaps:!0,moveFirstBends:!0,secondBendRatio:.3,lineSeparationMultiplier:1,spaceSeparatedLinesEvenly:!1,useBezierCurves:!1,separatedLineShapeRatio:0};return M(((t,n,i,a,p,u,d)=>{if(r.length!==t)return{value:l.Error};if(o.length!==t)return{value:l.Error};if(c.length!==p)return{value:l.Error};if(h.length!==p)return{value:l.Error};const g=Float64Array.BYTES_PER_ELEMENT,_=16,b=s._malloc(_+t*g),w=s._malloc(_+t*g),I=s._malloc(_+p*g),M=s._malloc(_+p*g),v=b+_-b%_,x=w+_-w%_,E=I+_-I%_,A=M+_-M%_;try{s.HEAPF64.subarray(v>>3,(v>>3)+t).set(r),s.HEAPF64.subarray(x>>3,(x>>3)+t).set(o),s.HEAPF64.subarray(E>>3,(E>>3)+p).set(c),s.HEAPF64.subarray(A>>3,(A>>3)+p).set(h);const l=T(Object.assign(f,m));return s.applyChronologicalLayout(e,t,n,i,a,v,x,p,u,d,E,A,y,l)}finally{s._free(b),s._free(w),s._free(I),s._free(M)}}),t,n,i,a,p)}}(b||(b={})),function(e){e[e.Undirected=0]="Undirected",e[e.Directed=1]="Directed",e[e.Reversed=2]="Reversed"}(w||(w={})),function(e){e[e.ByCC_Raw=0]="ByCC_Raw",e[e.ByCC_NormalizeGlobally=1]="ByCC_NormalizeGlobally",e[e.ByCC_NormalizeByCC=2]="ByCC_NormalizeByCC"}(I||(I={}))},73133:(e,t,n)=>{n.d(t,{j:()=>i});const i=(0,n(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},25927:(e,t,n)=>{n.d(t,{A:()=>p});var i=n(90237),r=n(10107),s=(n(44208),n(53966),n(87811),n(40608)),o=n(86738),a=n(54238);let l=class extends a.A{constructor(e){super(e),this.layoutGeometry=null}};(0,i._)([(0,r.MZ)({type:o.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,i._)([(0,s.$)("esri.rest.knowledgeGraph.Entity")],l);const p=l},54238:(e,t,n)=>{n.d(t,{A:()=>l});var i=n(90237),r=n(10107),s=(n(44208),n(53966),n(87811),n(40608)),o=n(77901);let a=class extends o.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,i._)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,i._)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,i._)([(0,s.$)("esri.rest.knowledgeGraph.GraphNamedObject")],a);const l=a},77901:(e,t,n)=>{n.d(t,{A:()=>l});var i=n(90237),r=n(25482),s=n(10107),o=(n(44208),n(53966),n(87811),n(40608));let a=class extends r.A{constructor(e){super(e),this.properties=null}};(0,i._)([(0,s.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,i._)([(0,o.$)("esri.rest.knowledgeGraph.GraphObject")],a);const l=a},42538:(e,t,n)=>{n.d(t,{A:()=>d});var i=n(90237),r=n(10107),s=(n(44208),n(53966),n(87811),n(40608)),o=n(16930),a=n(69622);let l=class extends a.A{constructor(e){super(e),this.openCypherQuery=""}};(0,i._)([(0,r.MZ)()],l.prototype,"openCypherQuery",void 0),l=(0,i._)([(0,s.$)("esri.rest.knowledgeGraph.GraphQuery")],l);const p=l;let u=class extends p{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,i._)([(0,r.MZ)()],u.prototype,"bindParameters",void 0),(0,i._)([(0,r.MZ)()],u.prototype,"bindGeometryQuantizationParameters",void 0),(0,i._)([(0,r.MZ)()],u.prototype,"outputQuantizationParameters",void 0),(0,i._)([(0,r.MZ)({type:o.A})],u.prototype,"outputSpatialReference",void 0),(0,i._)([(0,r.MZ)()],u.prototype,"provenanceBehavior",void 0),u=(0,i._)([(0,s.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],u);const d=u},40662:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(90237),r=(n(53966),n(44208),n(87811),n(49186),n(40608)),s=n(77901);let o=class extends s.A{constructor(e){super(e)}};o=(0,i._)([(0,r.$)("esri.rest.knowledgeGraph.ObjectValue")],o);const a=o},42095:(e,t,n)=>{n.d(t,{A:()=>p});var i=n(90237),r=n(25482),s=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),a=n(77901);let l=class extends r.A{constructor(e){super(e),this.path=[]}};(0,i._)([(0,s.MZ)({type:[a.A],json:{write:!0}})],l.prototype,"path",void 0),l=(0,i._)([(0,o.$)("esri.rest.knowledgeGraph.Path")],l);const p=l},23150:(e,t,n)=>{n.d(t,{A:()=>p});var i=n(90237),r=n(10107),s=(n(44208),n(53966),n(87811),n(40608)),o=n(82799),a=n(54238);let l=class extends a.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,i._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,i._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,i._)([(0,r.MZ)({type:o.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,i._)([(0,s.$)("esri.rest.knowledgeGraph.Relationship")],l);const p=l},62046:(e,t,n)=>{n.d(t,{Fe:()=>l,Nk:()=>s});var i=n(68197),r=n(93397);function s(e){const t=[];return o((0,r.lW)(e),t),t.length?new i.A((0,r.e6)(t[0])):null}function o(e,t){if(!e)return;let n;n="CIMTextSymbol"===e.type?e.symbol:e;const i="CIMPolygonSymbol"===e.type;if(n?.symbolLayers)for(const e of n.symbolLayers)if(!(e.colorLocked||i&&((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&a(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach((e=>{o(e.symbol,t)}));break;case"CIMSolidStroke":case"CIMSolidFill":a(t,e.color);break;case"CIMHatchFill":o(e.lineSymbol,t)}}function a(e,t){for(const n of e)if(n.join(".")===t.join("."))return;e.push(t)}function l(e,t,n){t instanceof i.A||(t=new i.A(t));const s=(0,r.lW)(e);s&&p(s,t,n)}function p(e,t,n){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;const s="CIMPolygonSymbol"===i?.type;if(i?.symbolLayers)for(const e of i.symbolLayers){if(e.colorLocked)continue;if(s)if(n){const{layersToColor:t}=n;if(((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))&&"fill"===t||(0,r.jn)(e)&&"outline"===t)continue}else if((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))continue;const i=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=i;break;case"CIMVectorMarker":e.markerGraphics?.forEach((e=>{p(e.symbol,t,n)}));break;case"CIMSolidStroke":case"CIMSolidFill":e.color=i;break;case"CIMHatchFill":p(e.lineSymbol,t,n)}}}},37531:(e,t,n)=>{n.d(t,{dt:()=>h,GG:()=>_,UQ:()=>g,Sx:()=>d});var i=n(68197),r=n(60999),s=(n(44208),n(51850)),o=(n(76369),n(62046)),a=(n(2741),n(78888),n(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new a.q(1e3),new i.A([128,128,128]);var l=n(78504),p=n(33910);const u=new i.A("white");function d(e,t){if(!e)return null;let n=null;return(0,p.wk)(e)?n=function(e){const t=e.symbolLayers;if(!t)return null;let n=null;return t.forEach((e=>{"object"===e.type&&e.resource?.href||(n="water"===e.type?e.color:e.material?e.material.color:null)})),n?new i.A(n):null}(e):(0,p.$y)(e)&&(n="cim"===e.type?(0,o.Nk)(e):e.color?new i.A(e.color):null),n?c(n,t):null}function c(e,t){if(null==t||null==e)return e;const n=e.toRgba();return n[3]=n[3]*t,new i.A(n)}function h(e,t,n){e&&(t||null!=n)&&(t&&(t=new i.A(t)),(0,p.wk)(e)?function(e,t,n){const i=e.symbolLayers;if(!i)return;const r=e=>c(t=t??e??(null!=n?u:null),n);i.forEach((e=>{if("object"!==e.type||!e.resource?.href||t)if("water"===e.type)e.color=r(e.color);else{const t=null!=e.material?e.material.color:null,i=r(t);null==e.material?e.material=new l.N({color:i}):e.material.color=i,null!=n&&"outline"in e&&null!=e.outline?.color&&(e.outline.color=c(e.outline.color,n))}}))}(e,t,n):(0,p.$y)(e)&&function(e,t,n){(t=t??e.color)&&(e.color=c(t,n)),null!=n&&"outline"in e&&e.outline?.color&&(e.outline.color=c(e.outline.color,n))}(e,t,n))}function y(e){for(const t of e)if("number"==typeof t)return t;return null}function m(e,t,n){for(let i=0;i<3;i++){const r=e[i];switch(r){case"symbol-value":{const e=n[i];return null!=e?e/t[i]:1}case"proportional":break;default:if(r&&t[i])return r/t[i]}}return 1}function f(e,t,n,i){switch(e){case"proportional":return n*i;case"symbol-value":return null!=t?t:n;default:return e}}async function g(e,t){if(e&&t)return(0,p.wk)(e)?async function(e,t){const i=e.symbolLayers;i&&await(0,r.jJ)(i,(async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){e.size="number"==typeof t[2]?t[2]:0}(e,t);break;case"icon":case"line":case"text":!function(e,t){const n=y(t);null!=n&&(e.size=n)}(e,t);break;case"path":!function(e,t){const n=m(t,s.Un,[e.width,void 0,e.height]);e.width=f(t[0],e.width,1,n),e.height=f(t[2],e.height,1,n)}(e,t);break;case"object":await async function(e,t){const{resourceSize:i,symbolSize:r}=await async function(e){const{computeObjectLayerResourceSize:t}=await n.e(5404).then(n.bind(n,95404)),i=await t(e,10),{width:r,height:s,depth:o}=e,a=[r,o,s];let l=1;for(let e=0;e<3;e++){const t=a[e];if(null!=t){l=t/i[e];break}}for(let e=0;e<3;e++)null==a[e]&&(a[e]=i[e]*l);return{resourceSize:i,symbolSize:a}}(e),s=m(t,i,r);e.width=f(t[0],r[0],i[0],s),e.depth=f(t[1],r[1],i[1],s),e.height=f(t[2],r[2],i[2],s)}(e,t)}}(e,t)))}(e,t):void((0,p.$y)(e)&&function(e,t){const n=y(t);if(null!=n)switch(e.type){case"simple-marker":e.size=n;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=n,e.height=n*t):(e.width=n*t,e.height=n);break}case"simple-line":e.width=n;break;case"text":e.font.size=n}}(e,t))}function _(e,t,n){if(e&&null!=t)if((0,p.wk)(e)){const i=e.symbolLayers;i&&i.forEach((e=>{if("object"===e.type)switch(n){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)}))}else(0,p.$y)(e)&&("simple-marker"!==e.type&&"picture-marker"!==e.type&&"text"!==e.type||(e.angle+=t))}},10184:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(90237),r=n(69540),s=n(25482),o=n(88930),a=n(10107),l=(n(44208),n(53966),n(87811),n(93223)),p=n(40608),u=n(73133);let d=class extends(r.A.ClonableMixin(s.A)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.e)(u.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,i._)([(0,p.$)("esri.time.TimeInterval")],d);const c=d}}]);