@arcgis/core 5.2.0-next.73 → 5.2.0-next.75

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 (339) hide show
  1. package/analysis/ViewshedAnalysis.js +1 -1
  2. package/arcgisGlobal.d.ts +1 -0
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/0502641d9a214b37ff29.js +1 -0
  5. package/assets/esri/core/workers/chunks/{d3be4d914fc99a1d686c.js → 075e65cc4275ac886f08.js} +1 -1
  6. package/assets/esri/core/workers/chunks/087bd698b80ca0cea71e.js +1 -0
  7. package/assets/esri/core/workers/chunks/{b6c7b7b7f87dce5de811.js → 0bf644f93c180a2bc2f8.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0d3b2d9a19383bb63f0a.js +1 -0
  9. package/assets/esri/core/workers/chunks/0d9fe49812554e7d7ba7.js +1 -0
  10. package/assets/esri/core/workers/chunks/0daaa89de339e8ea4b81.js +1 -0
  11. package/assets/esri/core/workers/chunks/{1ca04ecf010e68863014.js → 0eb35e09765fd74eb698.js} +1 -1
  12. package/assets/esri/core/workers/chunks/12234a63d3fa4bc25e7e.js +1 -0
  13. package/assets/esri/core/workers/chunks/18e0e993c0c39c962e61.js +1 -0
  14. package/assets/esri/core/workers/chunks/1c49c9472167a2e0c923.js +1 -0
  15. package/assets/esri/core/workers/chunks/{cf360767310fb45660a8.js → 1cf8fb704c48ac3d3b15.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{2e44978ee677aa23163d.js → 2435ef7d11f8dbb920b7.js} +1 -1
  17. package/assets/esri/core/workers/chunks/2501d9459f6d14c797e5.js +1 -0
  18. package/assets/esri/core/workers/chunks/2740f755c3a322cbd477.js +1 -0
  19. package/assets/esri/core/workers/chunks/27f574acf52f2c8bc2c9.js +1 -0
  20. package/assets/esri/core/workers/chunks/28f87daaba1ae3441364.js +1 -0
  21. package/assets/esri/core/workers/chunks/2b93888e61ca638490cf.js +1 -0
  22. package/assets/esri/core/workers/chunks/2c31648a4b95275516ee.js +1 -0
  23. package/assets/esri/core/workers/chunks/2f4ed8a63d57636a4ebe.js +1 -0
  24. package/assets/esri/core/workers/chunks/2f81047790c4890ae625.js +1 -0
  25. package/assets/esri/core/workers/chunks/305eea9c1fc4aee3309e.js +1 -0
  26. package/assets/esri/core/workers/chunks/30818b5ff0ce51b25d6f.js +1 -0
  27. package/assets/esri/core/workers/chunks/3235e14fedb19dd94807.js +1 -0
  28. package/assets/esri/core/workers/chunks/36ec5b84e551ab08b24a.js +1 -0
  29. package/assets/esri/core/workers/chunks/3c28e2040cb4fb716eaa.js +1 -0
  30. package/assets/esri/core/workers/chunks/3c32471785bc8570e41c.js +1 -0
  31. package/assets/esri/core/workers/chunks/4046bd65d7d0677f4600.js +1 -0
  32. package/assets/esri/core/workers/chunks/4295822fa6ef743c76f1.js +1 -0
  33. package/assets/esri/core/workers/chunks/{35fd2f765d2cb3f59a22.js → 42d5ed44111bea77ec71.js} +115 -115
  34. package/assets/esri/core/workers/chunks/43713bc6f7eea07259d0.js +1 -0
  35. package/assets/esri/core/workers/chunks/{36171c72a3c04b0d13ef.js → 43a65cab888d43954564.js} +1 -1
  36. package/assets/esri/core/workers/chunks/44a786aba84918f2b247.js +1 -0
  37. package/assets/esri/core/workers/chunks/46873badbd6ce8ff4e1e.js +1 -0
  38. package/assets/esri/core/workers/chunks/495f90fe3d0ad32bb82d.js +1 -0
  39. package/assets/esri/core/workers/chunks/4b5bd0c9a55ea2998601.js +1 -0
  40. package/assets/esri/core/workers/chunks/4d7a3b3aaf876da0891b.js +1 -0
  41. package/assets/esri/core/workers/chunks/4fe2cca405180af23364.js +1 -0
  42. package/assets/esri/core/workers/chunks/50b08415e072a49bc572.js +1 -0
  43. package/assets/esri/core/workers/chunks/519af918050b47f93516.js +1 -0
  44. package/assets/esri/core/workers/chunks/{bd311c85437743cf7d2f.js → 53d165b4f30fd64e5d8a.js} +1 -1
  45. package/assets/esri/core/workers/chunks/552d6aecc7d88d16227b.js +1 -0
  46. package/assets/esri/core/workers/chunks/5627f562dea8bae2f346.js +1 -0
  47. package/assets/esri/core/workers/chunks/5ba3a30b7cbfa9e3aa62.js +1 -0
  48. package/assets/esri/core/workers/chunks/5e1d84e97de0e662aaa9.js +1 -0
  49. package/assets/esri/core/workers/chunks/64a1ffc221e5b63b43fb.js +1 -0
  50. package/assets/esri/core/workers/chunks/{31669511cfddf116d991.js → 66e60351aacbd162775f.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{c203df41f9d2e4b80889.js → 6743d726e45e7b660505.js} +1 -1
  52. package/assets/esri/core/workers/chunks/69b0dcd7bcd8ec42e2c3.js +1 -0
  53. package/assets/esri/core/workers/chunks/6b783f440c4a5d36e879.js +1 -0
  54. package/assets/esri/core/workers/chunks/6dddd3df31961b9fda12.js +1 -0
  55. package/assets/esri/core/workers/chunks/6fc3553c52af6ace926d.js +1 -0
  56. package/assets/esri/core/workers/chunks/702b2381acf4d1f90094.js +1 -0
  57. package/assets/esri/core/workers/chunks/762be5d3e6aeaea33f74.js +29 -0
  58. package/assets/esri/core/workers/chunks/792303e4090c0c70c4ff.js +1 -0
  59. package/assets/esri/core/workers/chunks/7a24cc0f3b4eff2bdb8e.js +1 -0
  60. package/assets/esri/core/workers/chunks/7aaa051b51a8e34bbfb0.js +1 -0
  61. package/assets/esri/core/workers/chunks/7dc5aedc964eacd1be5a.js +1 -0
  62. package/assets/esri/core/workers/chunks/81130dbcb738d40f723b.js +1 -0
  63. package/assets/esri/core/workers/chunks/835af7b4fd92cb4e7af0.js +1 -0
  64. package/assets/esri/core/workers/chunks/841c81c280114412c95b.js +1 -0
  65. package/assets/esri/core/workers/chunks/{96d861265566854760cd.js → 88fd698b940dadcc6dc5.js} +1 -1
  66. package/assets/esri/core/workers/chunks/8a36b999cbd65dd2f16c.js +1 -0
  67. package/assets/esri/core/workers/chunks/8ae3a6ddc87bf8315583.js +1 -0
  68. package/assets/esri/core/workers/chunks/8f0d4aec8bd3cbfefc40.js +1 -0
  69. package/assets/esri/core/workers/chunks/{7f208ef75ef2ce0d7cf9.js → 910c93bbbf8113a4a51f.js} +1 -1
  70. package/assets/esri/core/workers/chunks/92c4464b67fce6cea134.js +1 -0
  71. package/assets/esri/core/workers/chunks/{509cfac9e5d86a8ee449.js → 936d44c7bc3a181e64a3.js} +1 -1
  72. package/assets/esri/core/workers/chunks/947f1ea4dbc3e3419ecc.js +1 -0
  73. package/assets/esri/core/workers/chunks/9b76c8974424a1908e86.js +1 -0
  74. package/assets/esri/core/workers/chunks/9cff18e6f751d1b3085e.js +1 -0
  75. package/assets/esri/core/workers/chunks/a101152066dd56259619.js +1 -0
  76. package/assets/esri/core/workers/chunks/a2a2c7e274fb32fecffa.js +1 -0
  77. package/assets/esri/core/workers/chunks/a50421fe79f264ae3619.js +1 -0
  78. package/assets/esri/core/workers/chunks/a6a2a4a2bae0d327d7ed.js +1 -0
  79. package/assets/esri/core/workers/chunks/a7a7d3289d4ca95f545f.js +1 -0
  80. package/assets/esri/core/workers/chunks/abb6c76d5dba3559a68e.js +1 -0
  81. package/assets/esri/core/workers/chunks/aca5c524bd3c955e9243.js +1 -0
  82. package/assets/esri/core/workers/chunks/b14961a9f1f40028f141.js +1 -0
  83. package/assets/esri/core/workers/chunks/b1a175b3b2d1a7ddde8e.js +1 -0
  84. package/assets/esri/core/workers/chunks/b6cd165d0e58598f28a5.js +1 -0
  85. package/assets/esri/core/workers/chunks/b78f509fd8e95f728178.js +1 -0
  86. package/assets/esri/core/workers/chunks/b9c61b20bbc91cb63036.js +1 -0
  87. package/assets/esri/core/workers/chunks/b9d1bb106737a05290e1.js +1 -0
  88. package/assets/esri/core/workers/chunks/{faa55265020591fd2224.js → bc0395777c5c1adb1ddb.js} +1 -1
  89. package/assets/esri/core/workers/chunks/bf3dc3ad8df8488da3f0.js +1 -0
  90. package/assets/esri/core/workers/chunks/c1568bcd3f04014152e1.js +1 -0
  91. package/assets/esri/core/workers/chunks/c374e5d5980db74c4aca.js +1 -0
  92. package/assets/esri/core/workers/chunks/{b9953277d0cd4a01bdc6.js → c37b28f200b704ae6002.js} +1 -1
  93. package/assets/esri/core/workers/chunks/c67e4a848d41038367b8.js +1 -0
  94. package/assets/esri/core/workers/chunks/cff6390b863361eaeeed.js +1 -0
  95. package/assets/esri/core/workers/chunks/d1c7c877edc6948f3801.js +1 -0
  96. package/assets/esri/core/workers/chunks/d2172583ee6e481a66aa.js +1 -0
  97. package/assets/esri/core/workers/chunks/d633e98b0dfa0490e4de.js +1 -0
  98. package/assets/esri/core/workers/chunks/d8eca13c127b443141b7.js +1 -0
  99. package/assets/esri/core/workers/chunks/ddd8f6154e265dbb6f9f.js +1 -0
  100. package/assets/esri/core/workers/chunks/de5013f89f0eae93978f.js +1 -0
  101. package/assets/esri/core/workers/chunks/de601f0d5a2a282d2efd.js +1 -0
  102. package/assets/esri/core/workers/chunks/e557043f90c051e93925.js +1 -0
  103. package/assets/esri/core/workers/chunks/e59101f1d060d0a30a65.js +1 -0
  104. package/assets/esri/core/workers/chunks/{bee5e738ecf8680909c4.js → eaf26c1cc938789d5336.js} +1 -1
  105. package/assets/esri/core/workers/chunks/eb1a86159dbc098f06fe.js +1 -0
  106. package/assets/esri/core/workers/chunks/ee9eb381e675d2d01260.js +1 -0
  107. package/assets/esri/core/workers/chunks/{014f9fd2818e2c9d9a3b.js → f43a0edf58941e2ac78e.js} +1 -1
  108. package/assets/esri/core/workers/chunks/f4bc563c71c478d3912f.js +1 -0
  109. package/assets/esri/core/workers/chunks/{4abd54518e35050feb90.js → f78acff510ca615d42e4.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{01c92e68fb17cf2d0e08.js → f7a5c4d22a24e1ac433c.js} +1 -1
  111. package/assets/esri/core/workers/chunks/fb0b89bbb4f8607d5f20.js +1 -0
  112. package/assets/esri/core/workers/chunks/ff890167ff2baabfc4ce.js +1 -0
  113. package/chunks/GaussianSplat.glsl.js +8 -8
  114. package/chunks/GaussianSplatShadow.glsl.js +4 -5
  115. package/chunks/OccludedGeometryDepth.glsl.js +5 -0
  116. package/chunks/ShadowCastVisualize.glsl.js +2 -2
  117. package/config.js +1 -1
  118. package/core/importUtils.js +2 -0
  119. package/geometry/operators/importUtils.js +2 -0
  120. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  121. package/geometry/support/normalizeUtils.d.ts +17 -15
  122. package/geometry/support/normalizeUtils.js +1 -1
  123. package/kernel.js +1 -1
  124. package/layers/DimensionFeatureLayer.d.ts +22 -0
  125. package/layers/DimensionFeatureLayer.js +1 -1
  126. package/layers/FeatureLayer.d.ts +1 -1
  127. package/layers/graphics/data/QueryEngine.js +1 -1
  128. package/layers/graphics/data/queryUtils.js +1 -1
  129. package/layers/graphics/hydratedFeatures.js +1 -1
  130. package/layers/save/featureLayerUtils.js +1 -1
  131. package/layers/support/layerUtils.js +1 -1
  132. package/layers/support/layersMapping.js +1 -1
  133. package/package.json +1 -1
  134. package/portal/schemas/definitions.js +1 -1
  135. package/rest/geoprocessor/utils.js +1 -1
  136. package/rest/identify.js +1 -1
  137. package/rest/imageService.js +1 -1
  138. package/rest/query/operations/query.js +1 -1
  139. package/rest/query/operations/queryAttributeBins.js +1 -1
  140. package/rest/query/operations/queryPivot.js +1 -1
  141. package/rest/query/operations/queryTopFeatures.js +1 -1
  142. package/support/revision.js +1 -1
  143. package/symbols/cim/CIMEffects.js +1 -1
  144. package/symbols/cim/utils.js +1 -1
  145. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  146. package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
  147. package/views/2d/layers/support/RouteLayerInteraction.js +1 -1
  148. package/views/2d/viewpointUtils.js +1 -1
  149. package/views/3d/analysis/LineOfSight/LineOfSightReshapeTool3D.js +1 -1
  150. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  151. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  152. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  153. package/views/3d/analysis/Viewshed/placementUtils.js +1 -1
  154. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  155. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  156. package/views/3d/environment/EnvironmentManager.js +1 -1
  157. package/views/3d/interactive/Manipulator3D.js +1 -1
  158. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  159. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  160. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  161. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  162. package/views/3d/interactive/editingTools/reshape/reshapeTooltipUtils3D.js +1 -1
  163. package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
  164. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  165. package/views/3d/interactive/editingTools/transform/ScaleRotateTransform.js +1 -1
  166. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  167. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentMove.js +1 -1
  168. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  169. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  170. package/views/3d/interactive/manipulatorUtils.js +1 -1
  171. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  172. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  173. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  174. package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
  175. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  176. package/views/3d/support/hitTest.js +1 -1
  177. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  178. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatCovariance.glsl.js +8 -3
  179. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js +8 -2
  180. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +2 -0
  181. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulate.glsl.js +2 -0
  182. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechnique.js +2 -0
  183. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulateTechniqueConfiguration.js +2 -0
  184. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClear.glsl.js +2 -0
  185. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastClearTechnique.js +2 -0
  186. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastMaskTechnique.js +2 -0
  187. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastRenderer.js +2 -0
  188. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualize.glsl.js +2 -0
  189. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechnique.js +2 -0
  190. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastVisualizeTechniqueConfiguration.js +2 -0
  191. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  192. package/views/3d/webgl-engine/lib/CutFillVisualization.js +1 -1
  193. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  194. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  195. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  196. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  197. package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
  198. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +28 -21
  199. package/views/3d/webgl-engine/shaders/OccludedGeometryDepth.glsl.js +2 -0
  200. package/views/3d/webgl-engine/shaders/OccludedGeometryDepthTechnique.js +2 -0
  201. package/views/draw/DrawGraphicTool.js +1 -1
  202. package/views/draw/DrawTool.js +1 -1
  203. package/views/draw/plugins/PolylinePlugin.js +1 -1
  204. package/views/draw/support/Box.js +1 -1
  205. package/views/draw/support/InteractiveHandle.js +1 -1
  206. package/views/draw/support/Reshape.js +1 -1
  207. package/views/draw/support/drawToolUtils.js +1 -1
  208. package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
  209. package/views/draw/support/managers/TooltipManager.js +1 -1
  210. package/views/draw/support/reshapeTooltipUtils.js +1 -1
  211. package/views/draw/support/tooltipUtils.js +1 -1
  212. package/views/interactive/options/InteractiveToolOptions.d.ts +36 -0
  213. package/views/interactive/options/InteractiveToolOptions.js +2 -0
  214. package/views/interactive/sketch/SketchOptions.d.ts +4 -3
  215. package/views/interactive/sketch/SketchOptions.js +1 -1
  216. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  217. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  218. package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
  219. package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
  220. package/views/interactive/tooltip/content/TooltipContentDynamic.js +1 -1
  221. package/views/interactive/tooltip/fields/fields.js +1 -1
  222. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  223. package/views/interactive/tooltip/infos/SketchTooltipInfo.js +1 -1
  224. package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
  225. package/views/selection/SelectionOperation.js +1 -1
  226. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  227. package/widgets/Sketch/SketchViewModel.js +1 -1
  228. package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
  229. package/widgets/support/SelectionList/GroupLayerItem.d.ts +8 -1
  230. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  231. package/widgets/support/SelectionList/LayerItem.d.ts +8 -1
  232. package/widgets/support/SelectionList/LayerItem.js +1 -1
  233. package/widgets/support/SelectionList/SelectionListViewModel.d.ts +29 -1
  234. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  235. package/widgets/support/SelectionList.js +1 -1
  236. package/widgets/support/SelectionToolbar.js +1 -1
  237. package/assets/esri/core/workers/chunks/00cbff0b785e24e87d97.js +0 -1
  238. package/assets/esri/core/workers/chunks/0623acb2bd14a61b65c9.js +0 -29
  239. package/assets/esri/core/workers/chunks/06c9aac75a01d3af6d54.js +0 -1
  240. package/assets/esri/core/workers/chunks/089f8c60e96d920a2cb2.js +0 -1
  241. package/assets/esri/core/workers/chunks/0c3c311400ee352187ea.js +0 -1
  242. package/assets/esri/core/workers/chunks/0dbf31a663b5220a3136.js +0 -1
  243. package/assets/esri/core/workers/chunks/0df660dfd941cff3ea1d.js +0 -1
  244. package/assets/esri/core/workers/chunks/1418c03c4ab87f7ab5f4.js +0 -1
  245. package/assets/esri/core/workers/chunks/158d2ac0333d53556e33.js +0 -1
  246. package/assets/esri/core/workers/chunks/160b204cbf5bda2a29e9.js +0 -1
  247. package/assets/esri/core/workers/chunks/16cade1c2ddf44e336ee.js +0 -1
  248. package/assets/esri/core/workers/chunks/1b130af7d14eaae69d96.js +0 -1
  249. package/assets/esri/core/workers/chunks/1cc063aa2ddf44bbd515.js +0 -1
  250. package/assets/esri/core/workers/chunks/1e0140556c2e3fa72545.js +0 -1
  251. package/assets/esri/core/workers/chunks/1e5cb72830c7f32f2961.js +0 -1
  252. package/assets/esri/core/workers/chunks/259bdacfb7b0f866a8d0.js +0 -1
  253. package/assets/esri/core/workers/chunks/2a2ed7bd44010f24c2dd.js +0 -1
  254. package/assets/esri/core/workers/chunks/2bdb9b5365869081c936.js +0 -1
  255. package/assets/esri/core/workers/chunks/2f58e1f64df2da8259a2.js +0 -1
  256. package/assets/esri/core/workers/chunks/383304d33b496c5d8baa.js +0 -1
  257. package/assets/esri/core/workers/chunks/3aacb935d632834d4154.js +0 -1
  258. package/assets/esri/core/workers/chunks/3c8e98cf23ad8ef12fcb.js +0 -1
  259. package/assets/esri/core/workers/chunks/3d6b2d5ae647e140abaf.js +0 -1
  260. package/assets/esri/core/workers/chunks/3dc71e03a630dd50b28e.js +0 -1
  261. package/assets/esri/core/workers/chunks/3fd022df127af32782ce.js +0 -1
  262. package/assets/esri/core/workers/chunks/4344ab1250a1c550bf8b.js +0 -1
  263. package/assets/esri/core/workers/chunks/43de723f765ec8f268ac.js +0 -1
  264. package/assets/esri/core/workers/chunks/44b50d4716a2567ab6f1.js +0 -1
  265. package/assets/esri/core/workers/chunks/44e8cd4b3dad777ab0c9.js +0 -1
  266. package/assets/esri/core/workers/chunks/4695cd6120f60b234d5c.js +0 -1
  267. package/assets/esri/core/workers/chunks/4cf2b0558a4acc141429.js +0 -1
  268. package/assets/esri/core/workers/chunks/4e129b9f5772a06e580c.js +0 -1
  269. package/assets/esri/core/workers/chunks/5441f96cdd0660229efe.js +0 -1
  270. package/assets/esri/core/workers/chunks/56bbde1dff96b423fbb9.js +0 -1
  271. package/assets/esri/core/workers/chunks/582a1d468089b9986416.js +0 -1
  272. package/assets/esri/core/workers/chunks/5f201c77a09ae0df29d6.js +0 -1
  273. package/assets/esri/core/workers/chunks/6080e46fc79127500283.js +0 -1
  274. package/assets/esri/core/workers/chunks/613e799377bdb767c955.js +0 -1
  275. package/assets/esri/core/workers/chunks/623d5518bca227f643bd.js +0 -1
  276. package/assets/esri/core/workers/chunks/62811bca7ad2100c023c.js +0 -1
  277. package/assets/esri/core/workers/chunks/64176f7ae719289a2f79.js +0 -1
  278. package/assets/esri/core/workers/chunks/67d3ff7fcefaa7d5d27f.js +0 -1
  279. package/assets/esri/core/workers/chunks/6a9002fcba11e2cf3f2e.js +0 -1
  280. package/assets/esri/core/workers/chunks/72dcd4bd1a28bf8605c5.js +0 -1
  281. package/assets/esri/core/workers/chunks/73f228d966b89c73c9e9.js +0 -1
  282. package/assets/esri/core/workers/chunks/73f77f5a6907cb8d9a35.js +0 -1
  283. package/assets/esri/core/workers/chunks/77df0bb35d2688729479.js +0 -1
  284. package/assets/esri/core/workers/chunks/7a143ca61c0a70306185.js +0 -1
  285. package/assets/esri/core/workers/chunks/7e373d9c98ce910db9d2.js +0 -1
  286. package/assets/esri/core/workers/chunks/869d292a60747c93dc84.js +0 -1
  287. package/assets/esri/core/workers/chunks/86a4057572755b403548.js +0 -1
  288. package/assets/esri/core/workers/chunks/8c76f31a363dd0c3354d.js +0 -1
  289. package/assets/esri/core/workers/chunks/98e6c1d035755a074d24.js +0 -1
  290. package/assets/esri/core/workers/chunks/9c57161ad48d8d546dc7.js +0 -1
  291. package/assets/esri/core/workers/chunks/a27cdf4c29dd50a6dab1.js +0 -1
  292. package/assets/esri/core/workers/chunks/a294dd12b5c708ce04af.js +0 -1
  293. package/assets/esri/core/workers/chunks/a7f42ada0aa69873a938.js +0 -1
  294. package/assets/esri/core/workers/chunks/a988fd54912969b812ce.js +0 -1
  295. package/assets/esri/core/workers/chunks/aff0e7761276036e029d.js +0 -1
  296. package/assets/esri/core/workers/chunks/b33d870cbfa238762c5e.js +0 -1
  297. package/assets/esri/core/workers/chunks/b599b7dadce8b8bc88f6.js +0 -1
  298. package/assets/esri/core/workers/chunks/b7d8817018b3d277c454.js +0 -1
  299. package/assets/esri/core/workers/chunks/b984b808d383974ca3d8.js +0 -1
  300. package/assets/esri/core/workers/chunks/ba4f419f46be09a9a55c.js +0 -1
  301. package/assets/esri/core/workers/chunks/bfb6566c27c09deb0929.js +0 -1
  302. package/assets/esri/core/workers/chunks/c25dc9073e73d6b44d88.js +0 -1
  303. package/assets/esri/core/workers/chunks/c45a5bcf26659daf02a1.js +0 -1
  304. package/assets/esri/core/workers/chunks/c715c585c42d8c2b86f5.js +0 -1
  305. package/assets/esri/core/workers/chunks/c7e9513f75b8ec205562.js +0 -1
  306. package/assets/esri/core/workers/chunks/c838cc1c786368b78598.js +0 -1
  307. package/assets/esri/core/workers/chunks/c866b66ba72d96453899.js +0 -1
  308. package/assets/esri/core/workers/chunks/c873383e7dae35dc1a61.js +0 -1
  309. package/assets/esri/core/workers/chunks/cd4e5c948d1bfa9b9a2d.js +0 -1
  310. package/assets/esri/core/workers/chunks/cfe31b7d1c6c05fbd268.js +0 -1
  311. package/assets/esri/core/workers/chunks/d08f81d545930a79fb2e.js +0 -1
  312. package/assets/esri/core/workers/chunks/d0c1bc90e474f706211c.js +0 -1
  313. package/assets/esri/core/workers/chunks/d607cf154218d20e4114.js +0 -1
  314. package/assets/esri/core/workers/chunks/d901f8503a73277cfa58.js +0 -1
  315. package/assets/esri/core/workers/chunks/da484787bd9fd3b13d15.js +0 -1
  316. package/assets/esri/core/workers/chunks/da6134c7883531f21afe.js +0 -1
  317. package/assets/esri/core/workers/chunks/e21b3490bfce75405e55.js +0 -1
  318. package/assets/esri/core/workers/chunks/e4353f0792f45aa6a62f.js +0 -1
  319. package/assets/esri/core/workers/chunks/e4a2eefffe16cd5bb20f.js +0 -1
  320. package/assets/esri/core/workers/chunks/e602b91d8fdc36a92530.js +0 -1
  321. package/assets/esri/core/workers/chunks/e702abaeccef20b64a81.js +0 -1
  322. package/assets/esri/core/workers/chunks/ebd619533be077059494.js +0 -1
  323. package/assets/esri/core/workers/chunks/f475672ff4c2ec9367c2.js +0 -1
  324. package/assets/esri/core/workers/chunks/f69329b85b362b349a8c.js +0 -1
  325. package/assets/esri/core/workers/chunks/f721756a6c1593f96409.js +0 -1
  326. package/assets/esri/core/workers/chunks/fb51f823b25c827c6b29.js +0 -1
  327. package/assets/esri/core/workers/chunks/fba8065a3a6fbd877e23.js +0 -1
  328. package/assets/esri/core/workers/chunks/fec07a16b72cdcafc641.js +0 -1
  329. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +0 -2
  330. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +0 -2
  331. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +0 -2
  332. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +0 -2
  333. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js +0 -2
  334. package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +0 -2
  335. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +0 -2
  336. package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +0 -2
  337. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +0 -2
  338. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +0 -2
  339. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3860,6344],{68197(e,t,r){r.d(t,{A:()=>h});var s=r(40876),n=r(4576),i=r(34727),a=r(56507);function o(e){return(0,i.qE)((0,a.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class h{static blendColors(e,t,r,s=new h){return s.r=Math.round(e.r+(t.r-e.r)*r),s.g=Math.round(e.g+(t.g-e.g)*r),s.b=Math.round(e.b+(t.b-e.b)*r),s.a=e.a+(t.a-e.a)*r,s._sanitize()}static fromRgb(e,t){const r=(0,s.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){const r=(0,s.oW)(e);return r?h.fromArray(r,t):null}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null!=e?new h([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,n.yc)(e))h.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,s=3===r||4===r,n=4===r||8===r,i=`#${l(this.r,s)}${l(this.g,s)}${l(this.b,s)}${n?l(Math.round(255*this.a),s):""}`;return t?i.toUpperCase():i}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=o(this.r),r=o(this.g),s=o(this.b);return 0===e||1!==this.a?[t,r,s,o(255*this.a)]:[t,r,s]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,s.c1)(this.r),this.g=(0,s.c1)(this.g),this.b=(0,s.c1)(this.b),this.a=(0,s.G1)(this.a),this}_set(e,t,r,s){this.r=e,this.g=t,this.b=r,this.a=s}}h.prototype.declaredClass="esri.Color"},52106(e,t,r){r.d(t,{A:()=>M});var s,n,i=r(5482),a=r(37838),o=r(69540),l=r(51447),h=r(25482),c=r(53966),u=r(36708),d=r(24326),g=r(91429),m=r(12195),f=r(65864),p=r(50498),y=r(55156),_=r(60950),b=r(54339),v=r(94128),T=r(33910);function w(e){if(null==e)return null;const t={};for(const r in e){const s=e[r];s&&(t[r]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let M=class extends((0,o.OU)(h.o)){static{s=v.Z}static{n=this}constructor(e){super(e),this[s]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,_.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,y.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,s){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=s),"attributes"===e&&(n.attributeName=s),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,u.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,u.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,g.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const s=(0,f.rS)(e[r]);s&&(t[r]=s)}return 0!==Object.keys(t).length?t:null}}})],M.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,g.MZ)({value:null})],M.prototype,"attributes",null),(0,i.Cg)([(0,g.MZ)({value:null,types:p.yR,json:{read:f.rS}})],M.prototype,"geometry",null),(0,i.Cg)([(0,g.MZ)()],M.prototype,"distance",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,i.Cg)([(0,g.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,i.Cg)([(0,g.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,i.Cg)([(0,g.MZ)({type:a.A,value:null})],M.prototype,"popupTemplate",null),(0,i.Cg)([(0,g.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,i.Cg)([(0,g.MZ)({value:null,types:T.Es})],M.prototype,"symbol",null),(0,i.Cg)([(0,g.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=n=(0,i.Cg)([(0,g.$K)("esri.Graphic")],M)},11221(e,t,r){r.d(t,{t1:()=>T,Jn:()=>w,Rn:()=>b,An:()=>v,rj:()=>_});var s=r(52106),n=r(48938),i=r(23732),a=r(87449),o=r(5482),l=r(93833),h=r(60999);class c{constructor(e,t){this._parent=e,this._abortSignal=t,this._done=!1,this._features=null,this._batchMutex=new h.aD,this._currentPage=null,this._pageCursor=-1}get _numAvailable(){return null==this._currentPage||this._pageCursor<0?0:Math.max(this._currentPage.length-this._pageCursor,0)}_takeNFeatures(e){if(null==this._currentPage)return[];const t=this._currentPage.slice(this._pageCursor,this._pageCursor+e);return this._pageCursor+=t.length,t.map(e=>s.A.fromJSON(e))}_takeOneFeature(){const e=this._currentPage[this._pageCursor];return this._pageCursor+=1,s.A.fromJSON(e)}async _nextBatch(){if(this._done)return!1;const e=await(this._features??=this._parent.queryAll(this._abortSignal));let t;do{if(t=await e.next(),t.done)return this._done=!0,this._currentPage=null,this._pageCursor=-1,!1}while(t.value.length<=0);return this._currentPage=t.value,this._pageCursor=0,!0}async nextBatchAsArcadeFeatures(e,t){const r=await this.nextBatch(e);return null==r?r:r.map(e=>l.Xj.createFromGraphicLikeObject(e.geometry,e.attributes,this._parent,t))}async nextBatch(e){const t={stack:[],error:void 0,hasError:!1};try{if(this._done)return null;if(e<=0)return[];if((0,o.mS)(t,await this._batchMutex.acquire(),!1),this._numAvailable>=e)return this._takeNFeatures(e);const r=[];let s=e;do{const e=this._takeNFeatures(s);s-=e.length,r.push(e)}while(s>0&&await this._nextBatch());const n=r.flat();return n.length>0?n:null}catch(e){t.error=e,t.hasError=!0}finally{(0,o.hk)(t)}}async next(){const e={stack:[],error:void 0,hasError:!1};try{return this._done?null:((0,o.mS)(e,await this._batchMutex.acquire(),!1),this._numAvailable>=1||await this._nextBatch()?this._takeOneFeature():null)}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}}var u=r(33325),d=r(50145),g=r(71163),m=r(5479),f=r(89696),p=r(16930),y=r(95466);function _(e){switch(e){case"esriSpatialRelIntersects":return{spatialRelationship:"intersects",relationParameter:null};case"esriSpatialRelContains":return{spatialRelationship:"contains",relationParameter:null};case"esriSpatialRelOverlaps":return{spatialRelationship:"overlaps",relationParameter:null};case"esriSpatialRelWithin":return{spatialRelationship:"within",relationParameter:null};case"esriSpatialRelTouches":return{spatialRelationship:"touches",relationParameter:null};case"esriSpatialRelCrosses":return{spatialRelationship:"crosses",relationParameter:null};case"esriSpatialRelEnvelopeIntersects":return{spatialRelationship:"envelope-intersects",relationParameter:null};default:if(e.includes("esriSpatialRelRelation"))return{spatialRelationship:"relation",relationParameter:e.split(":")[1]};throw new a.dr("NeverReach")}}function b(e,t){for(const r of e)null!=r.geometry&&(r.geometry.spatialReference??=t)}const v=Object.freeze({ordered:!0,filterApplied:!0,spatialFilterApplied:!0,features:Object.freeze({next:()=>Promise.resolve({done:!0,value:void 0}),[Symbol.asyncIterator](){return this}})});class T{constructor(){this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._parent=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=7,this._databaseTypeProbed=null,this._loadPromise=null,this._allFeatures=null,this._fieldsIndex=null,this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return await(this._parent?.load()),this._initialiseFeatureSet(),this}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new p.A({wkid:4326}),this.geometryType=u.ik.point)}getField(e,t){return e=e.toLowerCase(),(t||this.fields).find(t=>t.name.toLowerCase()===e)}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=y.A.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}nativeCapabilities(){return this._parent.nativeCapabilities()}get _hasCachedFeatures(){return null!=this._allFeatures}async queryAll(e){null==this._allFeatures&&(this._allFeatures=this._queryAll().then(e=>(0,m.N5)(e)));const t=(await this._allFeatures)();return null==e||e===n._?t:async function*(){for await(const r of t)(0,a.dZ)(e),yield r}()}async databaseType(){if(7===this._databaseType){if(null!==i.A.applicationCache){const e=i.A.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==i.A.applicationCache&&i.A.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==i.A.applicationCache&&i.A.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{dbType:2,probeSql:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{dbType:3,probeSql:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{dbType:1,probeSql:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.probeSql))return t.dbType;return 1}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new a.dr("NotImplemented")}isTable(){return this._parent?.isTable()??!1}async first(e){if(this._hasCachedFeatures)return this.iterator(e).next();const t=await this.query({limit:1,abortSignal:e});for await(const e of t.features)if(e.length>0)return s.A.fromJSON(e[0]);return null}async isEmpty(e){return this._totalCount>=0?0===this._totalCount:null==await this.first(e)}async calculateStatistic(e,t,r,s){await this._ensureLoaded();let n=await this.queryStat({stat:e,field:t,limit:r,abortSignal:s});return!1===n.calculated&&(n=await this._manualStat(e,t,r,s)),n.result}async _manualStat(e,t,r,s){let n=null;switch(e.toLowerCase()){case"count":{if(this._totalCount>=0)return{calculated:!0,result:this._totalCount};const e=await this.queryAll(s);let t=0;for await(const r of e)t+=r.length;return this._totalCount=t,{calculated:!0,result:t}}case"distinct":return n=await(0,d.dM)(this,t,r,s),{calculated:!0,result:n};case"avg":case"mean":return n=await(0,d.i2)(this,t,s),{calculated:!0,result:n};case"stdev":return n=await(0,d.b$)(this,t,s),{calculated:!0,result:n};case"variance":return n=await(0,d.GV)(this,t,s),{calculated:!0,result:n};case"sum":return n=await(0,d.cz)(this,t,s),{calculated:!0,result:n};case"min":return n=await(0,d.jk)(this,t,s),{calculated:!0,result:n};case"max":return n=await(0,d.T9)(this,t,s),{calculated:!0,result:n};default:return{calculated:!0,result:0}}}iterator(e){return new c(this,e)}async sumArea(e,t,r){let s=0;for await(const n of await this.queryAll(r))for(const r of n)null!=r.geometry&&(s+=null!=t?await(0,g.C)("geodeticArea",[r.geometry,e,t]):await(0,g.C)("area",[r.geometry,e]));return s}async sumLength(e,t,r){let s=0;for await(const n of await this.queryAll(r))for(const r of n)null!=r.geometry&&(s+=null!=t?await(0,g.C)("geodeticLength",[r.geometry,e,t]):await(0,g.C)("length",[r.geometry,e]));return s}async count(e){return await this.load(),this.calculateStatistic("count",f.A.create("1",{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,e??n._)}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,r,s,n){return this._parent.queryAttachments(e,t,r,s,n)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetadata(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map(e=>({name:e.name,code:e.code})):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map(e=>({name:e.name,code:e.id})):[]}:null}relationshipMetadata(){return this._parent.relationshipMetadata()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,u.nE)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===u.yT[this.geometryType]?"esriGeometryNull":u.yT[this.geometryType],fields:e}}async convertToText(e,t){return"schema"===e?(await this._ensureLoaded(),JSON.stringify(this.schema())):"featureset"===e?JSON.stringify(await this.castAsJsonAsync(t)):this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return this._parent.getRootFeatureSet()}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(){return{type:"FeatureSet"}}async castAsJsonAsync(e=null){await this._ensureLoaded();const t=[];for await(const r of await this.queryAll(e))for(const e of r){const r=e.attributes;let s=null;if(null!=e.geometry)if(e.geometry.spatialReference){const{spatialReference:t,...r}=e.geometry;s=r}else s=e.geometry;t.push({geometry:s,attributes:r})}return{...this.schema(),features:t,spatialReference:this.spatialReference?.toJSON()??null}}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){return this.datesInUnknownTimezone?"unknown":this.dateFieldsTimeZone||"UTC"}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}getFeatureSetInfo(){return this._parent?this._parent.getFeatureSetInfo():Promise.resolve(null)}}class w extends T{constructor(){super(...arguments),this._parent=null}getRootFeatureSet(){return this}}},23732(e,t,r){r.d(t,{A:()=>s});class s{static{this.applicationCache=null}constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}},87449(e,t,r){r.d(t,{dZ:()=>a,dr:()=>i});var s=r(799);const n={Cancelled:"Cancelled",InvalidStatResponse:"Invalid statistics response from service",InvalidRequest:"Invalid request",RequestFailed:"Request failed - {reason}",MissingFeatures:"Missing features",AggregationFieldNotFound:"Aggregation field not found",DataElementsNotFound:"Data elements not found on service",NeverReach:"Encountered unreachable logic",NotImplemented:"Not implemented"};class i extends Error{constructor(e,t){super((0,s.HC)(n[e],t)),this.declaredRootClass="esri.arcade.featureset.support.featureseterror",Error.captureStackTrace&&Error.captureStackTrace(this,i)}}function a(e){if(null!=e&&e?.aborted)throw new i("Cancelled")}},80609(e,t,r){r.d(t,{C6:()=>v,DA:()=>I,F1:()=>_,F6:()=>f,IY:()=>T,Ju:()=>A,Kb:()=>g,Mi:()=>c,Nf:()=>y,R8:()=>p,YY:()=>h,bD:()=>u,bm:()=>b,kg:()=>d,oj:()=>E});var s=r(66131),n=r(33325),i=r(1262),a=r(15032),o=r(89696),l=r(92647);function h(e,t){return m(e?.parseTree,t,e?.parameters)}function c(e,t,r){return m(e,t,r)}function u(e,t,r,s){const n=m(e.parseTree,0,e.parameters,t,r);return o.A.create(n,{fieldsIndex:s,timeZone:e.timeZone,currentUser:e.currentUser})}function d(e,t,r="AND"){return o.A.create("(("+h(e,0)+")"+r+"("+h(t,0)+"))",{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser})}function g(e){return!0===e.delimited?`"${e.column.split('"').join('""')}"`:e.column}function m(e,t,r,s=null,a=null){let o,l,h,c;switch(e.type){case"interval":return E(m(e.value,t,r,s,a),e.qualifier,e.op);case"case-expression":{let n=" CASE ";"simple"===e.format&&(n+=m(e.operand,t,r,s,a));for(let i=0;i<e.clauses.length;i++)n+=" WHEN "+m(e.clauses[i].operand,t,r,s,a)+" THEN "+m(e.clauses[i].value,t,r,s,a);return null!==e.else&&(n+=" ELSE "+m(e.else,t,r,s,a)),n+=" END ",n}case"parameter":{const s=r[e.value.toLowerCase()];if("string"==typeof s)return"'"+r[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,n.$P)(s))return b(s,t);if((0,n.Lk)(s))return b(s,t);if((0,n.eg)(s))return _(s,t);if((0,n.rX)(s))return p(s,t);if((0,n.f0)(s))return y(s,t);if(Array.isArray(s)){const e=[];for(let r=0;r<s.length;r++)"string"==typeof s[r]?e.push("'"+s[r].toString().replaceAll("'","''")+"'"):(0,n.$P)(s[r])||(0,n.Lk)(s[r])?e.push(b(s[r],t)):(0,n.eg)(s[r])?e.push(_(s[r],t)):(0,n.rX)(s[r])?e.push(p(s[r],t)):(0,n.f0)(s[r])?e.push(y(s[r],t)):e.push(s[r].toString());return e}return s.toString()}case"expression-list":l=[];for(const n of e.value)l.push(m(n,t,r,s,a));return l;case"unary-expression":return" ( NOT "+m(e.expr,t,r,s,a)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+m(e.left,t,r,s,a)+" AND "+m(e.right,t,r,s,a)+") ";case"OR":return" ("+m(e.left,t,r,s,a)+" OR "+m(e.right,t,r,s,a)+") ";case"IS":if("null"!==e.right.type)throw new i.L("UnsupportedIsRhs");return" ("+m(e.left,t,r,s,a)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new i.L("UnsupportedIsRhs");return" ("+m(e.left,t,r,s,a)+" IS NOT NULL )";case"IN":return o=[],"expression-list"===e.right.type?(o=m(e.right,t,r,s,a)," ("+m(e.left,t,r,s,a)+" IN ("+o.join(",")+")) "):(c=m(e.right,t,r,s,a),Array.isArray(c)?" ("+m(e.left,t,r,s,a)+" IN ("+c.join(",")+")) ":" ("+m(e.left,t,r,s,a)+" IN ("+c+")) ");case"NOT IN":return o=[],"expression-list"===e.right.type?(o=m(e.right,t,r,s,a)," ("+m(e.left,t,r,s,a)+" NOT IN ("+o.join(",")+")) "):(c=m(e.right,t,r,s,a),Array.isArray(c)?" ("+m(e.left,t,r,s,a)+" NOT IN ("+c.join(",")+")) ":" ("+m(e.left,t,r,s,a)+" NOT IN ("+c+")) ");case"BETWEEN":return h=m(e.right,t,r,s,a)," ("+m(e.left,t,r,s,a)+" BETWEEN "+h[0]+" AND "+h[1]+" ) ";case"NOTBETWEEN":return h=m(e.right,t,r,s,a)," ("+m(e.left,t,r,s,a)+" NOT BETWEEN "+h[0]+" AND "+h[1]+" ) ";case"LIKE":return""!==e.escape?" ("+m(e.left,t,r,s,a)+" LIKE "+m(e.right,t,r,s,a)+" ESCAPE '"+e.escape+"') ":" ("+m(e.left,t,r,s,a)+" LIKE "+m(e.right,t,r,s,a)+") ";case"NOT LIKE":return""!==e.escape?" ("+m(e.left,t,r,s,a)+" NOT LIKE "+m(e.right,t,r,s,a)+" ESCAPE '"+e.escape+"') ":" ("+m(e.left,t,r,s,a)+" NOT LIKE "+m(e.right,t,r,s,a)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+m(e.left,t,r,s,a)+" "+e.operator+" "+m(e.right,t,r,s,a)+") ";case"||":return" ("+m(e.left,t,r,s,a)+" "+(2===t?"+":e.operator)+" "+m(e.right,t,r,s,a)+") "}throw new i.L("UnsupportedOperator",{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return v(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return s&&s.toLowerCase()===e.column.toLowerCase()?"("+a+")":g(e);case"data-type":return e.value;case"function":{const n=m(e.args,t,r,s,a);return f(e.name,n,t)}}throw new i.L("UnsupportedSyntax",{node:e.type})}function f(e,t,r){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"ceiling"});return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new i.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new i.L("InvalidFunctionParameters",{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new i.L("InvalidFunctionParameters",{function:"truncate"});return 2===r?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"char_length"});switch(r){case 2:return"LEN("+t[0]+")";case 3:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new i.L("InvalidFunctionParameters",{function:e.toLowerCase()});let r=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(r+=","),r+=t[e];return r+=")",r}case"lower":case"lcase":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(r){case 3:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case 2:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(r){case 3:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 4:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 2:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new i.L("InvalidFunctionParameters",{function:e})}function p(e,t){const r=e.toDateTime(),s=0===r.hour&&0===r.minute&&0===r.second&&0===r.millisecond;switch(t){case 6:case 0:case 1:return s?`date '${r.toFormat("yyyy-LL-dd")}'`:`timestamp '${r.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case 3:return s?`TO_DATE('${r.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${r.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case 2:return`'${r.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case 5:return`#${r.toFormat(s?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case 4:return`TIMESTAMP '${r.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`timestamp '${r.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function y(e,t){switch(t){case 6:case 0:case 1:default:return e.toSQLWithKeyword();case 3:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case 2:return`'${e.toFormat("Y-MM-DD")}'`;case 5:return`#${e.toFormat("Y-MM-DD")}#`;case 4:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`}}function _(e,t){switch(e instanceof a.k&&(e=e.toStorageString()),t){case 3:return`TO_DATE('${e}', 'HH24:MI:SS')`;case 2:return`'${e}'`;default:return`time '${e}'`}}function b(e,t){return p(s.lY.dateTimeToArcadeDate((0,n.Lk)(e)?e:l.c9.fromJSDate(e)),t)}function v(e,t){switch(t){case 6:case 0:case 1:case 3:case 5:default:return"date"===e?"CURRENT_DATE":"time"===e?"CURRENT_TIME":"CURRENT_TIMESTAMP";case 2:return"date"===e?"CAST(GETDATE() AS DATE)":"time"===e?"CAST(GETDATE() AS TIME)":"GETDATE()";case 4:return"date"===e?"CURRENT_DATE":"time"===e?"LOCALTIME":"CURRENT_TIMESTAMP"}}function T(e,t,r={}){const s={},n={},i={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestemp-offset",double:"double",date:"date",guid:"guid","global-id":"guid",string:"string"};for(const e of t){const t=e.type?i[e.type]:void 0;s[e.name.toLowerCase()]=void 0===t?"":t}for(const e in r){const t=i[r[e]];n[e.toLowerCase()]=void 0===t?"":t}switch(w(s,e.parseTree,e.parameters,n)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function w(e,t,r,s){let a;switch(t.type){case"interval":return"integer";case"case-expression":{const n=[];if("simple"===t.format){for(let i=0;i<t.clauses.length;i++)n.push(w(e,t.clauses[i].value,r,s));null!==t.else&&n.push(w(e,t.else,r,s))}else{for(let i=0;i<t.clauses.length;i++)n.push(w(e,t.clauses[i].value,r,s));null!==t.else&&n.push(w(e,t.else,r,s))}return S(n)}case"parameter":{const e=s[t.value.toLowerCase()];if(void 0===e&&r){const e=r[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,n.$P)(e))return"date";if((0,n.rX)(e))return"date";if((0,n.f0)(e))return"date-only";if((0,n.eg)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const n=[];for(const i of t.value)n.push(w(e,i,r,s));return n}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new i.L("UnsupportedIsRhs");return"boolean";case"*":case"-":case"+":case"/":return S([w(e,t.left,r,s),w(e,t.right,r,s)]);case"||":return"string";default:throw new i.L("UnsupportedOperator",{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"time"===t.mode?"time-only":"date";case"current-user":return"string";case"column-reference":{const r=e[t.column.toLowerCase()];return void 0===r?"":r}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(a=w(e,t.args,r,s),Array.isArray(a)){if(a.length<=0)return"double";a=a[0]}return a;case"sign":return"integer";case"ceiling":case"floor":case"abs":return a=w(e,t.args,r,s),Array.isArray(a)&&(a=S(a)),"integer"===a||"double"===a?a:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return a=w(e,t.args,r,s),Array.isArray(a)?a.length>0?a[0]:"":a}return""}throw new i.L("UnsupportedSyntax",{node:t.type})}const M={boolean:1,string:2,integer:3,double:4,date:5};function S(e){if(e){let t="";for(const r of e)""!==r&&(t=""===t||M[t]<M[r]?r:t);return t}return""}function A(e,t){return C(e.parseTree,t)}function I(e){return"column-reference"===e?.parseTree.type}function C(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return C(e.operand,t)||C(e.value,t);case"case-expression":for(const r of e.clauses)if(C(r,t))return!0;return!("simple"!==e.format||!C(e.operand,t))||!(null===e.else||!C(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(const r of e.value)if(C(r,t))return!0;return!1;case"unary-expression":return C(e.expr,t);case"binary-expression":return C(e.left,t)||C(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return C(e.args,t)}return!1}function L(e){let t="";return t+=e.period.toUpperCase(),t}function E(e,t,r){let s="";return s="interval-period"===t.type?L(t):L(t.start)+" TO "+L(t.end),"INTERVAL "+r+" "+e+" "+s}},50145(e,t,r){r.d(t,{Dp:()=>c,GV:()=>m,T9:()=>d,b$:()=>f,cz:()=>p,dM:()=>_,i2:()=>g,jk:()=>u});var s=r(87449),n=(r(33325),r(80609)),i=r(44729),a=r(55612),o=r(15032);function l(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/e.length}function h(e){const t=l(e);let r=0;for(let s=0;s<e.length;s++)r+=(t-e[s])**2;return r/(e.length-1)}function c(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return null}async function u(e,t,r){const s=await y(e,t,r);return 0===s.length?null:Math.min.apply(Math,s)}async function d(e,t,r){const s=await y(e,t,r);return 0===s.length?null:Math.max.apply(Math,s)}async function g(e,t,r){let s="";t&&!(0,n.DA)(t)&&(s=(0,n.IY)(t,e.fields));const i=await y(e,t,r);if(0===i.length)return null;const a=l(i);return null===a?a:"integer"===s?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(a):a}async function m(e,t,r){const s=await y(e,t,r);return 0===s.length?null:h(s)}async function f(e,t,r){const s=await y(e,t,r);return 0===s.length?null:Math.sqrt(h(s))}async function p(e,t,r){const s=await y(e,t,r);return 0===s.length?null:function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t}(s)}async function y(e,t,r){const n=await e.queryAll(r),l=[],h={ticker:0};for await(const e of n){if(h.ticker+=e.length,h.ticker>=100&&(h.ticker=0,await new Promise(e=>{setTimeout(e,0)})),r?.aborted)throw new s.dr("Cancelled");for(const r of e){const e=t?.calculateValue(r);null===e||(l[l.length]=e instanceof i.n||e instanceof o.k?e.toNumber():e instanceof a.g?e.toMilliseconds():e)}}return l}async function _(e,t,r=1e3,n=null){if(null==t)return[];const l=await e.queryAll(n),h=[],c=new Set,u={ticker:0};for await(const e of l){if(u.ticker+=e.length,u.ticker>=100&&(u.ticker=0,await new Promise(e=>{setTimeout(e,0)})),n?.aborted)throw new s.dr("Cancelled");for(const s of e){const e=t.calculateValue(s);let n=e;if(e instanceof i.n?n="!!DATEONLY!!-"+e.toString():e instanceof a.g?n="!!TSOFFSETONLY!!-"+e.toString():e instanceof o.k?n="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(n="!!DATE!!-"+e.toString()),null!=e&&(c.has(n)||(h.push(e),c.add(n))),h.length>=r&&-1!==r)return h}}return h}},71163(e,t,r){r.d(t,{C:()=>l});var s=r(29953);let n,i,a=!1;function o(){return n??=(0,s.ho)("arcadeGeometryOperatorsWorker").then(e=>{i=e,a=!0,n=void 0})}async function l(e,t){return a?i.apply("invokeGeometryOp",[e,t]):(await o(),l(e,t))}},40876(e,t,r){r.d(t,{Eq:()=>g,G1:()=>f,TS:()=>i,V6:()=>n,Vm:()=>m,ay:()=>l,c1:()=>p,c4:()=>a,j5:()=>h,lT:()=>u,oW:()=>c,xV:()=>b});const s={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(e){return!!s[e]||!!s[e.toLowerCase()]}function i(e){return s[e]??s[e.toLowerCase()]}function a(e){return[...i(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;const s=6*r;return s<1?e+(t-e)*s:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,s=1){const n=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,a=2*r-i;return[Math.round(255*o(a,i,n+1/3)),Math.round(255*o(a,i,n)),Math.round(255*o(a,i,n-1/3)),s]}function h(e){const t=e.length>5,r=t?8:4,s=(1<<r)-1,n=t?1:17,i=t?9===e.length:5===e.length;let a=Number("0x"+e.slice(1));if(isNaN(a))return null;const o=[0,0,0,1];let l;return i&&(l=a&s,a>>=r,o[3]=n*l/255),l=a&s,a>>=r,o[2]=n*l,l=a&s,a>>=r,o[1]=n*l,l=a&s,a>>=r,o[0]=n*l,o}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),s=parseInt(e.slice(3,4),16),n=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,s+16*s,(n+16*n)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function u(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?f(e[3]):1,e}function g(e){let t=n(e)?i(e):null;return t??=u(e),t??=c(e),t}function m(e){const t=g(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function f(e){return y(e,0,1)}function p(e){return Math.round(y(e,0,255))}function y(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const _=1/2.2;function b(e){return e**_}r.d(t,["iw",0,_])},69540(e,t,r){var s=r(5482),n=r(69622),i=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),l=r(64108);const h=Symbol("ClonableMixin"),c=e=>{var t;const r=e;let n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=h}clone(e){const t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,s=t.store,n={},l=new Map;for(const t in r){const a=r[t],o=s?.originOf(t),h=a.clonable;if(a.readOnly||!1===h||7!==o&&0!==o&&5!==o&&4!==o)continue;const c=this[t];let u=null;if("function"==typeof h)u=h(c,e);else if("reference"===h)u=c;else if(u=(0,i.TU)(c,e),null!=c&&null==u)continue;0===o?l.set(t,u):n[t]=u}const h=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,o.oY)(h)?.store;if(e)for(const[t,r]of l)e.set(t,r,0)}return h}};return n=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],n),n},u=c(n.A);r.d(t,["OU",0,c,"Pw",0,u])},7762(e,t,r){var s,n=r(5482),i=r(98291),a=r(4576),o=r(65529),l=r(36563),h=r(4718),c=r(53966),u=r(93687),d=r(76030),g=r(56507),m=r(62788),f=r(10107),p=r(7695),y=r(64108),_=r(95488),b=r(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class T{constructor(e,t,r,s,n){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=n}}const w=new u.A(()=>new v,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function S(e){return e?e instanceof R?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function A(e){if(e?.length)return e[0]}function I(e,t,r,s){const n=Math.min(e.length-r,t.length-s);let i=0;for(;i<n&&e[r+i]===t[s+i];)i++;return i}function C(e,t,r,s){t&&t.forEach((t,n,i)=>{e.push(t),C(e,r.call(s,t,n,i),r,s)})}const L=new Set,E=new Set,x=new Set,N=new Map;let F=0,R=s=class extends o.nJ{static ofType(e){if(!e)return s;if(N.has(e))return N.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends s{};return(0,n.Cg)([(0,p.u)({Type:e,ensureType:"function"==typeof e?(0,g.dp)(e):(0,g.aq)(e)})],r.prototype,"itemType",void 0),r=(0,n.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],r),N.set(e,r),r}static isCollection(e){return null!=e&&e instanceof s}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:F++})}normalizeCtorArgs(e){return e?(0,a.yc)(e)||e instanceof s?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?c.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,m.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,S(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){const r="deref"in t?()=>t.deref():()=>t,s=this.on(e,e=>{r()?.call(null,e),s.remove()});return s}add(e,t){if((0,m.gc)(this._observable),this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,m.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t);return this._splice(r,0,S(e)),this._emitAfterChanges(1),this}at(e){if((0,m.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,m.gc)(this._observable);const t=e.map(S);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const r=this._splice(0,this.length),s=r.length;for(let n=0;n<s;n++)e.call(t,r[n],n,r);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){const t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,m.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,m.gc)(this._observable);const r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,m.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,m.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,m.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,m.gc)(this._observable);const r=[];return C(r,this,e,t),new s(r)}forEach(e,t){return(0,m.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.gc)(this._observable),this._items[e]}getNextIndex(e){(0,m.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,m.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.gc)(this._observable);const r=this._items.map(e,t);return new s({items:r})}reorder(e,t=this.length-1){(0,m.gc)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=A(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,m.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,m.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,m.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,m.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=A(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof s?e.toArray():e,r=this._items,n=[],i=t.length;for(let e=0;e<i;e++){const s=t[e],i=r.indexOf(s);if(i>-1){const s=1+I(t,r,e+1,i+1),a=this._splice(i,s);a&&a.length>0&&n.push.apply(n,a),e+=s-1}}return this._emitAfterChanges(2),n}reverse(){if((0,m.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=A(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,m.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const s=(t?2:0)|(r.length?1:0);if(this._emitBeforeChanges(s))return[];const n=this._splice(e,t,r)||[];return this._emitAfterChanges(s),n}toArray(){return(0,m.gc)(this._observable),this._items.slice()}toJSON(e){return(0,m.gc)(this._observable),this.toArray().map(t=>(0,b.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,m.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,m.gc)(this._observable),this._items.toString()}unshift(...e){return(0,m.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const s=this._items,n=this.itemType;let i,a;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(a=s.splice(e,t),this.hasEventListener("before-remove")){const t=w.acquire();t.target=this,t.cancellable=!0;for(let r=0,n=a.length;r<n;r++)i=a[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(a.splice(r,1),s.splice(e,0,i),e+=1,r-=1,n-=1);w.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=w.acquire();e.target=this,e.cancellable=!1;const t=a.length;for(let r=0;r<t;r++)e.reset(a[r]),this.emit("after-remove",e);w.release(e)}}if(r?.length){if(n){const e=[];for(const t of r){const r=n.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),a=e===this.length;if(t||i){const n=w.acquire();n.target=this,n.cancellable=!0;const o=w.acquire();o.target=this,o.cancellable=!1;for(const l of r)t?(n.reset(l),this.emit("before-add",n),n.defaultPrevented||(a?s.push(l):s.splice(e++,0,l),this._length=s.length,i&&(o.reset(l),this.emit("after-add",o)))):(a?s.push(l):s.splice(e++,0,l),this._length=s.length,o.reset(l),this.emit("after-add",o));w.release(o),w.release(n)}else{if(a)for(const e of r)s.push(e);else s.splice(e,0,...r);this._length=s.length}}if((r?.length||a?.length)&&this._notifyChangeEvent(r,a),this.hasEventListener("after-splice")){const s=new T(this,r,a,e,t);this.emit("after-splice",s)}return a}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=w.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,w.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=w.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),w.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;L.clear(),E.clear(),x.clear();for(const{added:t,removed:r}of e){if(t)if(0===x.size&&0===E.size)for(const e of t)L.add(e);else for(const e of t)E.has(e)?(x.add(e),E.delete(e)):x.has(e)||L.add(e);if(r)if(0===x.size&&0===L.size)for(const e of r)E.add(e);else for(const e of r)L.has(e)?L.delete(e):(x.delete(e),E.add(e))}const r=i.A.acquire();L.forEach(e=>{r.push(e)});const s=i.A.acquire();E.forEach(e=>{s.push(e)});const n=this._items,a=t.items,o=i.A.acquire();if(x.forEach(e=>{a.indexOf(e)!==n.indexOf(e)&&o.push(e)}),t.listeners&&(r.length||s.length||o.length)){const e={target:this,added:r,removed:s,moved:o},n=t.listeners.length;for(let r=0;r<n;r++){const s=t.listeners[r];s.removed||s.callback.call(this,e)}}i.A.release(r),i.A.release(s),i.A.release(o)}L.clear(),E.clear(),x.clear()}};(0,n.Cg)([(0,f.MZ)()],R.prototype,"_updating",void 0),(0,n.Cg)([(0,f.MZ)()],R.prototype,"_length",void 0),(0,n.Cg)([(0,f.MZ)()],R.prototype,"length",null),(0,n.Cg)([(0,f.MZ)()],R.prototype,"items",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],R.prototype,"updating",null),R=s=(0,n.Cg)([(0,y.$)("esri.core.Collection")],R);const z=R;r.d(t,["A",0,z])},4902(e,t,r){var s=r(5482),n=r(64108);let i=0;const a=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return r=(0,s.Cg)([(0,n.$)("esri.core.Identifiable")],r),r};a(class{}),r.d(t,["s",0,a])},66344(e,t,r){r.d(t,{q:()=>o});const s=!!(0,r(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const r=this._db.get(e.id+t);return r?.size??0}put(e,t,r,n,a){t=e.id+t;const o=this._db.get(t);if(o&&(this._size-=o.size,e.size-=o.size,this._db.delete(t),o.entry!==r&&this._notifyRemove(t,o.entry,o.size,0)),n>this._maxSize)return void this._notifyRemove(t,r,n,0);if(void 0===r)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return s||console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,r,0,0);const l=1+Math.max(a,-4)- -3;this._db.set(t,new i(r,n,l)),this._size+=n,e.size+=n,this._checkSize()}updateSize(e,t){t=e.id+t;const r=this._db.get(t);if(!r)return;this._size-=r.size,e.size-=r.size;let s=r.entry.usedMemory;for(;s>this._maxSize;){const e=this._notifyRemove(t,r.entry,s,1);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}r.size=s,this._size+=s,e.size+=s,this._checkSize()}pop(e,t){t=e.id+t;const r=this._db.get(t);if(r)return this._size-=r.size,e.size-=r.size,this._db.delete(t),++this._hit,r.entry;++this._miss}get(e,t){t=e.id+t;const r=this._db.get(t);if(void 0!==r)return this._db.delete(t),r.lives=r.lifetime,this._db.set(t,r),++this._hit,r.entry;++this._miss}peek(e,t){const r=this._db.get(e.id+t);return r?++this._hit:++this._miss,r?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},r=new Array;this._db.forEach((e,s)=>{const n=e.lifetime;r[n]=(r[n]||0)+e.size,this._clients.forEach(r=>{const{id:n,name:i}=r;if(s.startsWith(n)){const r=t[i]||0;t[i]=r+e.size}})});const s={};this._clients.forEach(e=>{const r=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const n=t[r]||0;t[r]=n,s[r]=Math.round(100*e.hitRate)+"%"}else s[r]="0%"});const n=Object.keys(t);n.sort((e,r)=>t[r]-t[e]),n.forEach(r=>e[r]=Math.round(t[r]/2**20)+"MB / "+s[r]);for(let t=r.length-1;t>=0;--t){const s=r[t];s&&(e["Priority "+(t+-3-1)]=Math.round(s/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,r)=>{r.startsWith(t)&&(this._size-=e.size,this._db.delete(r),this._notifyRemove(r,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,r]of this._db)t.startsWith(e.id)&&(yield r.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,r,s){const n=this._clients.get(e.split(a)[0])?.removeFunc,i=n?.(t,s,r);return"number"==typeof i?i:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const r=t??this;if(r.size<=e)return;const s=t?.id;let n=!0;for(;n;){n=!1;for(const[i,o]of this._db)if(0===o.lifetime&&(!s||i.startsWith(s))){const s=t??this._clients.get(i.split(a)[0]);if(this._purgeItem(i,o,s),r.size<=.9*e)return;n||=this._db.has(i)}}for(const[n,i]of this._db)if(!s||n.startsWith(s)){const s=t??this._clients.get(n.split(a)[0]);if(this._purgeItem(n,i,s),r.size<=.9*e)return}}_purgeItem(e,t,r){if(this._db.delete(e),t.lives<=1){this._size-=t.size,r&&(r.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,1);null!=s&&s>0&&(this._size+=s,r&&(r.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new n(0);class i{constructor(e,t,r){this.entry=e,this.size=t,this.lifetime=r,this.lives=r}}const a=":";class o{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new n(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,r=1){this._storage.put(this,e,t,r,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},7695(e,t,r){function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},9093(e,t,r){function s(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>n,vt:()=>s});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:n,create:s,fromValues:function(e,t,r,s,n,i,a,o,l,h,c,u,d,g,m,f){return[e,t,r,s,n,i,a,o,l,h,c,u,d,g,m,f]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,i])},35522(e,t,r){r.d(t,{$A:()=>A,Bw:()=>i,C:()=>a,Cc:()=>I,DI:()=>w,Io:()=>_,Ln:()=>y,Om:()=>S,Qr:()=>u,Re:()=>h,S8:()=>M,T9:()=>f,WQ:()=>l,Z0:()=>C,_S:()=>g,aI:()=>D,ei:()=>L,fw:()=>x,g7:()=>N,gL:()=>E,hG:()=>b,hZ:()=>o,hs:()=>p,jk:()=>m,lw:()=>c,m3:()=>v,oW:()=>k,t2:()=>z,tn:()=>d,ze:()=>T});var s=r(51850),n=r(34304);function i(e){const t=e[0],r=e[1],s=e[2];return Math.sqrt(t*t+r*r+s*s)}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(e,t,r,s){return e[0]=t,e[1]=r,e[2]=s,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function h(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function g(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function p(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function y(e,t,r,s){return e[0]=t[0]+r[0]*s,e[1]=t[1]+r[1]*s,e[2]=t[2]+r[2]*s,e}function _(e,t){const r=t[0]-e[0],s=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+s*s+n*n)}function b(e,t){const r=t[0]-e[0],s=t[1]-e[1],n=t[2]-e[2];return r*r+s*s+n*n}function v(e){const t=e[0],r=e[1],s=e[2];return t*t+r*r+s*s}function T(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function w(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function M(e,t){const r=t[0],s=t[1],n=t[2];let i=r*r+s*s+n*n;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const s=t[0],n=t[1],i=t[2],a=r[0],o=r[1],l=r[2];return e[0]=n*l-i*o,e[1]=i*a-s*l,e[2]=s*o-n*a,e}function I(e,t,r,s){const n=t[0],i=t[1],a=t[2];return e[0]=n+s*(r[0]-n),e[1]=i+s*(r[1]-i),e[2]=a+s*(r[2]-a),e}function C(e,t,r){const s=t[0],n=t[1],i=t[2];return e[0]=r[0]*s+r[4]*n+r[8]*i+r[12],e[1]=r[1]*s+r[5]*n+r[9]*i+r[13],e[2]=r[2]*s+r[6]*n+r[10]*i+r[14],e}function L(e,t,r){const s=t[0],n=t[1],i=t[2];return e[0]=s*r[0]+n*r[3]+i*r[6],e[1]=s*r[1]+n*r[4]+i*r[7],e[2]=s*r[2]+n*r[5]+i*r[8],e}function E(e,t,r){return x(e,t,r[0],r[1],r[2],r[3])}function x(e,t,r,s,n,i){const a=t[0],o=t[1],l=t[2],h=s*l-n*o,c=n*a-r*l,u=r*o-s*a,d=s*u-n*c,g=n*h-r*u,m=r*c-s*h,f=2*i;return e[0]=a+h*f+2*d,e[1]=o+c*f+2*g,e[2]=l+u*f+2*m,e}function N(e,t){M(F,e),M(R,t);const r=S(F,R);return r>1?0:r<-1?Math.PI:Math.acos(r)}const F=(0,s.vt)(),R=(0,s.vt)();function z(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function D(e,t){if(e===t)return!0;const r=e[0],s=e[1],i=e[2],a=t[0],o=t[1],l=t[2],h=(0,n.FD)();return Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-o)<=h*Math.max(1,Math.abs(s),Math.abs(o))&&Math.abs(i-l)<=h*Math.max(1,Math.abs(i),Math.abs(l))}function k(e,t,r){const s=r[0]-t[0],n=r[1]-t[1],i=r[2]-t[2];let a=s*s+n*n+i*i;return a>0?(a=1/Math.sqrt(a),e[0]=s*a,e[1]=n*a,e[2]=i*a,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=h,P=c,q=u,U=_,j=b,$=i,B=v;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:N,bezier:function(e,t,r,s,n,i){const a=1-i,o=a*a,l=i*i,h=o*a,c=3*i*o,u=3*l*a,d=l*i;return e[0]=t[0]*h+r[0]*c+s[0]*u+n[0]*d,e[1]=t[1]*h+r[1]*c+s[1]*u+n[1]*d,e[2]=t[2]*h+r[2]*c+s[2]*u+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:a,cross:A,crossAndNormalize:function(e,t,r){const s=t[0],n=t[1],i=t[2],a=r[0],o=r[1],l=r[2],h=n*l-i*o,c=i*a-s*l,u=s*o-n*a,d=Math.sqrt(h*h+c*c+u*u);return e[0]=h/d,e[1]=c/d,e[2]=u/d,e},direction:k,dist:U,distance:_,div:q,divide:u,dot:S,equals:D,exactEquals:z,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,s,n,i){const a=i*i,o=a*(2*i-3)+1,l=a*(i-2)+i,h=a*(i-1),c=a*(3-2*i);return e[0]=t[0]*o+r[0]*l+s[0]*h+n[0]*c,e[1]=t[1]*o+r[1]*l+s[1]*h+n[1]*c,e[2]=t[2]*o+r[2]*l+s[2]*h+n[2]*c,e},inverse:w,len:$,length:i,lerp:I,max:f,min:m,mul:P,multiply:c,negate:T,normalize:M,random:function(e,t=1){const r=n.Ov,s=2*r()*Math.PI,i=2*r()-1,a=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(s)*a,e[1]=Math.sin(s)*a,e[2]=i*t,e},rotateX:function(e,t,r,s){const n=[],i=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],i[0]=n[0],i[1]=n[1]*Math.cos(s)-n[2]*Math.sin(s),i[2]=n[1]*Math.sin(s)+n[2]*Math.cos(s),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateY:function(e,t,r,s){const n=[],i=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],i[0]=n[2]*Math.sin(s)+n[0]*Math.cos(s),i[1]=n[1],i[2]=n[2]*Math.cos(s)-n[0]*Math.sin(s),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateZ:function(e,t,r,s){const n=[],i=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],i[0]=n[0]*Math.cos(s)-n[1]*Math.sin(s),i[1]=n[0]*Math.sin(s)+n[1]*Math.cos(s),i[2]=n[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:p,scaleAndAdd:y,set:o,sign:g,sqrDist:j,sqrLen:B,squaredDistance:b,squaredLength:v,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:h,transformMat3:L,transformMat4:C,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:E,transformQuatValues:x},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,$,"jb",0,O,"lo",0,j,"uE",0,B,"xg",0,U])},36708(e,t,r){r.d(t,{C_:()=>d,on:()=>u,wB:()=>l,z7:()=>h});var s=r(37955),n=r(36563),i=r(97768),a=r(17676),o=r(14012);function l(e,t,r={}){return c(e,t,r,g)}function h(e,t,r={}){return c(e,t,r,m)}function c(e,t,r={},s){let n=null;const a=r.once?(e,r)=>{s(e)&&((0,i.xt)(n),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(n=(0,o.Cn)(e,a,r.sync,r.equals),r.initial){const t=e();a(t,t)}return n}function u(e,t,r,a={}){let o=null,h=null,c=null;function u(){o&&h&&(h.remove(),a.onListenerRemove?.(o),o=null,h=null)}function d(e){a.once&&a.once&&(0,i.xt)(c),r(e)}const g=l(e,(e,r)=>{u(),(0,s.wb)(e)&&(o=e,h=(0,s.on)(e,t,d),a.onListenerAdd?.(e))},{sync:a.sync,initial:!0});return c=(0,n.hA)(()=>{g.remove(),u()}),c}function d(e,t){return function(e,t,r){if((0,a.G4)(r))return Promise.reject((0,a.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let o=null;function l(){o=(0,i.xt)(o)}return new Promise((s,i)=>{o=(0,n.vE)([(0,a.u7)(r,()=>{l(),i((0,a.NK)())}),c(e,e=>{l(),s(e)},{sync:!1,once:!0},t??g)])})}(e,m,t)}function g(e){return!0}function m(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},90629(e,t,r){r.d(t,{Lz:()=>n,PN:()=>i,cr:()=>a,gs:()=>l,r_:()=>h,tc:()=>o}),r(39829);const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function n(e){return e?e/72*96:0}function i(e){return e?72*e/96:0}function a(e){if("string"==typeof e){const t=e.match(s);if(t){const r=Number(t[1]),s=t[3]&&t[3].toLowerCase(),n=e.startsWith("-"),a="px"===s?i(r):r;return n?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function h(e=0,t=0,r=0){return[e,t,r]}},4197(e,t,r){r.d(t,{Vj:()=>c,cj:()=>h,jh:()=>i,l5:()=>o,yH:()=>l});var s=r(34275),n=r(9093);function i(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function a(e){return((0,s.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function o(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function l(e,t){if(0===t.length)return a(e);if(0===e.length)return a(t);const r=i(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let s=0;s<t.length;++s)r[e.length+s]=t[s];return r}function h(e){return[...e]}function c(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>C,C:()=>a,DC:()=>d,Ej:()=>b,Ie:()=>A,Jt:()=>I,Lu:()=>T,Ne:()=>w,RF:()=>u,TF:()=>y,VL:()=>m,aI:()=>E,fA:()=>o,gE:()=>h,gX:()=>_,hZ:()=>S,iT:()=>g,is:()=>L,pg:()=>v,uJ:()=>p,vI:()=>M,vY:()=>l,vt:()=>i,w1:()=>c,yr:()=>f}),r(35522);var s=r(5443),n=(r(19419),r(4197));function i(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,s,n,a,o=i()){return o[0]=e,o[1]=t,o[2]=r,o[3]=s,o[4]=n,o[5]=a,o}function l(e,t=i()){return function(e,t,r,s=i()){return S(s,x),function(e,t,r=0,s=t.length/3){let n=e[0],i=e[1],a=e[2],o=e[3],l=e[4],h=e[5];for(let e=0;e<s;e++)n=Math.min(n,t[r+3*e]),i=Math.min(i,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),h=Math.max(h,t[r+3*e+2]);e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=l,e[5]=h}(s,e,t,r),s}(e,0,e.length/3,t)}function h(e,t=(0,n.jh)(24)){const[r,s,i,a,o,l]=e;return t[0]=r,t[1]=s,t[2]=i,t[3]=r,t[4]=s,t[5]=l,t[6]=r,t[7]=o,t[8]=i,t[9]=r,t[10]=o,t[11]=l,t[12]=a,t[13]=s,t[14]=i,t[15]=a,t[16]=s,t[17]=l,t[18]=a,t[19]=o,t[20]=i,t[21]=a,t[22]=o,t[23]=l,t}function c(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new s.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function u(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function g(e,[t,r,s]){!function(e,t,r,s){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],s),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],s)}(e,t,r,s)}function m(e){return e[0]>=e[3]?0:e[3]-e[0]}function f(e){return e[1]>=e[4]?0:e[4]-e[1]}function p(e){return e[2]>=e[5]?0:e[5]-e[2]}function y(e){const t=m(e),r=p(e),s=f(e);return t*t+r*r+s*s}function _(e,t=[0,0,0]){return t[0]=e[0]+m(e)/2,t[1]=e[1]+f(e)/2,t[2]=e[2]+p(e)/2,t}function b(e,t=[0,0,0]){return t[0]=m(e),t[1]=f(e),t[2]=p(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function T(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function w(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function M(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function A(e){return e?S(e,x):i(x)}function I(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function C(e,t,r,s,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=s,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function L(e){return 6===e.length}function E(e,t,r){if(null==e||null==t)return e===t;if(!L(e)||!L(t))return!1;if(r){for(let s=0;s<e.length;s++)if(!r(e[s],t[s]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const x=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];i(),r.d(t,["qv",0,x,"v_",0,N])},50498(e,t,r){var s=r(66552),n=r(5443),i=r(91075),a=r(48526),o=r(86738),l=r(39829),h=r(82799);const c=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),u=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:i.A,key:"type",typeMap:{extent:n.A,multipoint:a.A,point:o.A,polyline:h.A,polygon:l.A}},g=new s.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,u,"gy",0,c,"iI",0,g,"yR",0,d])},55156(e,t,r){r.d(t,{I:()=>n});const s=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&s in t?e[s]:void 0;var t}r.d(t,["e",0,s])},97770(e,t,r){r.d(t,{Ey:()=>F,F8:()=>N,J2:()=>C,Yq:()=>E,_m:()=>L,iS:()=>x,wj:()=>R});var s=r(66552),n=r(73444),i=r(98623),a=r(92647);const o={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},u={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},g={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},f={...m,second:"numeric"},p={hourCycle:"h23"},y={...m,...p},_={...f,...p},b={"short-date":c,"short-date-short-time":{...c,...m},"short-date-short-time-24":{...c,...y},"short-date-long-time":{...c,...f},"short-date-long-time-24":{...c,..._},"short-date-le":c,"short-date-le-short-time":{...c,...m},"short-date-le-short-time-24":{...c,...y},"short-date-le-long-time":{...c,...f},"short-date-le-long-time-24":{...c,..._},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...m},"long-month-day-year-short-time-24":{...u,...y},"long-month-day-year-long-time":{...u,...f},"long-month-day-year-long-time-24":{...u,..._},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,..._},"long-date":g,"long-date-short-time":{...g,...m},"long-date-short-time-24":{...g,...y},"long-date-long-time":{...g,...f},"long-date-long-time-24":{...g,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":f},v=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),T={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},w=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),M=w.find(({type:e})=>"month"===e)?.value.toLowerCase();function S(){const e=(0,n.lR)();return(e&&T[e])??(0,n.QC)()}"mart"!==M&&(T.bs="sr-Latn-CS");let A=new WeakMap;const I=b["short-date-short-time"];function C(e){return b[e]}function L(e){const{dateStyle:t,timeStyle:r,hour12:s,year:n,month:i}=e,a={};return t?a.dateStyle=t:n&&(a.year=n,a.month=i||void 0),r&&!a.year&&(a.timeStyle=r,a.hour12="auto"===s?void 0:"always"===s),a}function E(e,t=I){return function(e){let t=A.get(e);if(!t){const r=S(),s=R(e.timeZone??"system"),n={...e,timeZone:s};t=new Intl.DateTimeFormat(r,n),A.set(e,t)}return t}(t).format(e)}function x(e,t=I){return E(new Date(e),{...t,...h,...l})}function N(e,t=I){return E(new Date(`1970-01-01T${e}Z`),{...t,...h,...o})}function F(e,t=I){const r=a.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return E(r.toJSDate(),t);const s=0===r.offset?"UTC":t.timeZone,n={...t,timeZone:s};return r.toLocaleString(n,{locale:S()})}function R(e){switch(e){case"system":return i.N;case i.L:return"UTC";default:return e}}(0,n.Ml)(()=>{A=new WeakMap}),r.d(t,["_v",0,v])},54339(e,t,r){function s(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const s of t.fieldNames)r.push(e.attributes[s]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>s,r:()=>n})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4144,6061,8377],{61691(e,t,n){n.d(t,{G:()=>o});class o{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>r});var o=n(61691);class r extends o.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},4144(e,t,n){n.r(t),n.d(t,{clipToSpatialReference:()=>a,execute:()=>u,executeMany:()=>l,foldInto360Range:()=>f,foldInto360RangeGeodetic:()=>m,isLoaded:()=>s,load:()=>c,normalizeGeometry:()=>d,supportsCurves:()=>p,transform:()=>h});var o=n(76061),r=n(83290);let i;function s(){return!!i&&(0,r.i)()}async function c(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(9192)]).then(n.bind(n,9192)),Promise.all([n.e(9187),n.e(8885),n.e(5756)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);i=new e.OperatorProject,t(r.p)}}function a(e,t,n){return i.clipToSpatialReference(e,t,null,n)}function u(e,t){return i.execute(e,t,null)}function l(e,t){const n=i.executeMany(new o.S(e),t,null);return Array.from(n)}function f(e,t){return i.foldInto360Range(e,t)}function m(e,t,n){return i.foldInto360RangeGeodetic(e,t,n)}function d(e,t,n){return i.normalizeGeometry(e,t,n)}function p(){return i.supportsCurves()}function h(e,t,n,o,r){return i.transform(e,t,n,o,r)}},8377(e,t,n){n.r(t),n.d(t,{execute:()=>p,executeMany:()=>h,isLoaded:()=>m,load:()=>d});var o=n(4144),r=n(17499),i=n(60408);let s,c,a,u,l,f;function m(){return!!s&&(0,o.isLoaded)()}async function d(){if(!m()){const[e,t]=await Promise.all([Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(3299),n.e(7992)]).then(n.bind(n,83299)),Promise.all([n.e(9187),n.e(8885),n.e(5756),n.e(6129)]).then(n.bind(n,86129)),(0,o.load)()]);s=e.fromGeometries,c=e.fromGeometry,a=e.fromSpatialReference,u=e.toGeometry,l=e.getSpatialReference,f=t.createProjectionTransformation}}function p(e,t,n){const s=c(e),l=a(t),m=f(s.getSpatialReference(),l,n),d=u((0,o.execute)(s.getGeometry(),m),l);return!n?.zConversionDisabled&&d&&!(0,i.uW)(d)&&e.spatialReference&&(0,r.g)([d],e.spatialReference,t),d}function h(e,t,n){const[i,c]=s(e),m=a(t),d=f(c,m,n),p=(0,o.executeMany)(i,d).map(e=>u(e,m));if(!n?.zConversionDisabled&&p){const n=l(e);n&&(0,r.g)(p,n,t)}return p}},17499(e,t,n){n.d(t,{g:()=>i});var o=n(60408),r=n(62815);function i(e,t,n){let i;for(const s of e)if(s&&(0,o.Pv)(s)&&!("vertexAttributes"in s)){if(!i){const e="type"in s?s.type:(0,o.$B)(s);if(i=(0,r.N)(e,t,n),!i)return}i(s)}}},62815(e,t,n){n.d(t,{N:()=>c,d:()=>a});var o=n(86211),r=n(73941),i=n(21325),s=n(52006);function c(e,t,n){const o=a(t,n);if(1!==o)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,s.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return}}function a(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,r.xP)(e)||(0,r.xP)(t)?1:(0,o.G9)(e)/(0,o.G9)(t)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[287,2668,6344,7906],{68197(e,t,n){n.d(t,{A:()=>u});var i=n(40876),r=n(4576),s=n(34727),o=n(56507);function l(e){return(0,s.qE)((0,o.Vr)(e),0,255)}function a(e,t){const n=e.toString(16).padStart(2,"0");return t?n.slice(0,1):n}class u{static blendColors(e,t,n,i=new u){return i.r=Math.round(e.r+(t.r-e.r)*n),i.g=Math.round(e.g+(t.g-e.g)*n),i.b=Math.round(e.b+(t.b-e.b)*n),i.a=e.a+(t.a-e.a)*n,i._sanitize()}static fromRgb(e,t){const n=(0,i.lT)(e);return n?u.fromArray(n,t):null}static fromHex(e,t=new u){const n=(0,i.oW)(e);return n?u.fromArray(n,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const n=(0,i.Eq)(e);return n?u.fromArray(n,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,r.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,n=e?.digits??6,i=3===n||4===n,r=4===n||8===n,s=`#${a(this.r,i)}${a(this.g,i)}${a(this.b,i)}${r?a(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=l(this.r),n=l(this.g),i=l(this.b);return 0===e||1!==this.a?[t,n,i,l(255*this.a)]:[t,n,i]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(e,t,n,i){this.r=e,this.g=t,this.b=n,this.a=i}}u.prototype.declaredClass="esri.Color"},52106(e,t,n){n.d(t,{A:()=>S});var i,r,s=n(5482),o=n(37838),l=n(69540),a=n(51447),u=n(25482),c=n(53966),h=n(36708),f=n(24326),d=n(91429),p=n(12195),m=n(65864),g=n(50498),y=n(55156),b=n(60950),M=n(54339),v=n(94128),_=n(33910);function w(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let S=class extends((0,l.OU)(u.o)){static{i=v.Z}static{r=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new r({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,y.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,p.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,s.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,m.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],S.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,d.MZ)({value:null})],S.prototype,"attributes",null),(0,s.Cg)([(0,d.MZ)({value:null,types:g.yR,json:{read:m.rS}})],S.prototype,"geometry",null),(0,s.Cg)([(0,d.MZ)()],S.prototype,"distance",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,s.Cg)([(0,d.MZ)({type:o.A,value:null})],S.prototype,"popupTemplate",null),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,d.MZ)({value:null,types:_.Es})],S.prototype,"symbol",null),(0,s.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=r=(0,s.Cg)([(0,d.$K)("esri.Graphic")],S)},40876(e,t,n){n.d(t,{Eq:()=>d,G1:()=>m,TS:()=>s,V6:()=>r,Vm:()=>p,ay:()=>a,c1:()=>g,c4:()=>o,j5:()=>u,lT:()=>h,oW:()=>c,xV:()=>M});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function r(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function o(e){return[...s(e)]}function l(e,t,n){n<0&&++n,n>1&&--n;const i=6*n;return i<1?e+(t-e)*i:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function a(e,t,n,i=1){const r=(e%360+360)%360/360,s=n<=.5?n*(t+1):n+t-n*t,o=2*n-s;return[Math.round(255*l(o,s,r+1/3)),Math.round(255*l(o,s,r)),Math.round(255*l(o,s,r-1/3)),i]}function u(e){const t=e.length>5,n=t?8:4,i=(1<<n)-1,r=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const l=[0,0,0,1];let a;return s&&(a=o&i,o>>=n,l[3]=r*a/255),a=o&i,o>>=n,l[2]=r*a,a=o&i,o>>=n,l[1]=r*a,a=o&i,o>>=n,l[0]=r*a,l}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),r=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,n+16*n,i+16*i,(r+16*r)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),n=t[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),f(t)}return f(e.map(e=>parseFloat(e)))}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function f(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?m(e[3]):1,e}function d(e){let t=r(e)?s(e):null;return t??=h(e),t??=c(e),t}function p(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function m(e){return y(e,0,1)}function g(e){return Math.round(y(e,0,255))}function y(e,t,n){return e=Number(e),isNaN(e)?n:e<t?t:e>n?n:e}const b=1/2.2;function M(e){return e**b}n.d(t,["iw",0,b])},66344(e,t,n){n.d(t,{q:()=>l});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const n=this._db.get(e.id+t);return n?.size??0}put(e,t,n,r,o){t=e.id+t;const l=this._db.get(t);if(l&&(this._size-=l.size,e.size-=l.size,this._db.delete(t),l.entry!==n&&this._notifyRemove(t,l.entry,l.size,0)),r>this._maxSize)return void this._notifyRemove(t,n,r,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return i||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,n,0,0);const a=1+Math.max(o,-4)- -3;this._db.set(t,new s(n,r,a)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t){t=e.id+t;const n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let i=n.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,n.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}n.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;const n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){const n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=new Array;this._db.forEach((e,i)=>{const r=e.lifetime;n[r]=(n[r]||0)+e.size,this._clients.forEach(n=>{const{id:r,name:s}=n;if(i.startsWith(r)){const n=t[s]||0;t[s]=n+e.size}})});const i={};this._clients.forEach(e=>{const n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const r=t[n]||0;t[n]=r,i[n]=Math.round(100*e.hitRate)+"%"}else i[n]="0%"});const r=Object.keys(t);r.sort((e,n)=>t[n]-t[e]),r.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+i[n]);for(let t=n.length-1;t>=0;--t){const i=n[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,i){const r=this._clients.get(e.split(o)[0])?.removeFunc,s=r?.(t,i,n);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const n=t??this;if(n.size<=e)return;const i=t?.id;let r=!0;for(;r;){r=!1;for(const[s,l]of this._db)if(0===l.lifetime&&(!i||s.startsWith(i))){const i=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,l,i),n.size<=.9*e)return;r||=this._db.has(s)}}for(const[r,s]of this._db)if(!i||r.startsWith(i)){const i=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,s,i),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new r(0);class s{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class l{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new r(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,n=1){this._storage.put(this,e,t,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},6797(e,t,n){n.d(t,{Ui:()=>f});var i=n(69622),r=n(7762),s=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function h(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const i=a(e),r=a(t);if(0===i.length&&0===r.length)return;if(!i.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!i.includes(e)),f=i.filter(e=>!r.includes(e)),d=i.filter(n=>r.includes(n)&&u(e,n)!==u(t,n)).concat(s,f).sort(),p=c(e);if(p&&o.has(p)&&d.length)return{type:"complete",oldValue:e,newValue:t};let m;const g=l(e)&&l(t);for(const i of d){const r=u(e,i),s=u(t,i);let o;if((g||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(n&&n[i]&&"function"==typeof n[i])o=n[i]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?h(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=m?m.diff[i]=o:m={type:"partial",diff:{[i]:o}})}}return m}function f(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:h(e,t)}},9093(e,t,n){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>r,vt:()=>i});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:i,fromValues:function(e,t,n,i,r,s,o,l,a,u,c,h,f,d,p,m){return[e,t,n,i,r,s,o,l,a,u,c,h,f,d,p,m]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["zK",0,s])},35522(e,t,n){n.d(t,{$A:()=>x,Bw:()=>s,C:()=>o,Cc:()=>A,DI:()=>w,Io:()=>b,Ln:()=>y,Om:()=>z,Qr:()=>h,Re:()=>u,S8:()=>S,T9:()=>m,WQ:()=>a,Z0:()=>I,_S:()=>d,aI:()=>Z,ei:()=>F,fw:()=>T,g7:()=>C,gL:()=>R,hG:()=>M,hZ:()=>l,hs:()=>g,jk:()=>p,lw:()=>c,m3:()=>v,oW:()=>O,t2:()=>N,tn:()=>f,ze:()=>_});var i=n(51850),r=n(34304);function s(e){const t=e[0],n=e[1],i=e[2];return Math.sqrt(t*t+n*n+i*i)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function l(e,t,n,i){return e[0]=t,e[1]=n,e[2]=i,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function f(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function m(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e}function b(e,t){const n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(n*n+i*i+r*r)}function M(e,t){const n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2];return n*n+i*i+r*r}function v(e){const t=e[0],n=e[1],i=e[2];return t*t+n*n+i*i}function _(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function w(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function S(e,t){const n=t[0],i=t[1],r=t[2];let s=n*n+i*i+r*r;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function z(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function x(e,t,n){const i=t[0],r=t[1],s=t[2],o=n[0],l=n[1],a=n[2];return e[0]=r*a-s*l,e[1]=s*o-i*a,e[2]=i*l-r*o,e}function A(e,t,n,i){const r=t[0],s=t[1],o=t[2];return e[0]=r+i*(n[0]-r),e[1]=s+i*(n[1]-s),e[2]=o+i*(n[2]-o),e}function I(e,t,n){const i=t[0],r=t[1],s=t[2];return e[0]=n[0]*i+n[4]*r+n[8]*s+n[12],e[1]=n[1]*i+n[5]*r+n[9]*s+n[13],e[2]=n[2]*i+n[6]*r+n[10]*s+n[14],e}function F(e,t,n){const i=t[0],r=t[1],s=t[2];return e[0]=i*n[0]+r*n[3]+s*n[6],e[1]=i*n[1]+r*n[4]+s*n[7],e[2]=i*n[2]+r*n[5]+s*n[8],e}function R(e,t,n){return T(e,t,n[0],n[1],n[2],n[3])}function T(e,t,n,i,r,s){const o=t[0],l=t[1],a=t[2],u=i*a-r*l,c=r*o-n*a,h=n*l-i*o,f=i*h-r*c,d=r*u-n*h,p=n*c-i*u,m=2*s;return e[0]=o+u*m+2*f,e[1]=l+c*m+2*d,e[2]=a+h*m+2*p,e}function C(e,t){S(k,e),S(j,t);const n=z(k,j);return n>1?0:n<-1?Math.PI:Math.acos(n)}const k=(0,i.vt)(),j=(0,i.vt)();function N(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function Z(e,t){if(e===t)return!0;const n=e[0],i=e[1],s=e[2],o=t[0],l=t[1],a=t[2],u=(0,r.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(s-a)<=u*Math.max(1,Math.abs(s),Math.abs(a))}function O(e,t,n){const i=n[0]-t[0],r=n[1]-t[1],s=n[2]-t[2];let o=i*i+r*r+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=i*o,e[1]=r*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const L=u,P=c,q=h,E=b,G=M,$=s,D=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:a,angle:C,bezier:function(e,t,n,i,r,s){const o=1-s,l=o*o,a=s*s,u=l*o,c=3*s*l,h=3*a*o,f=a*s;return e[0]=t[0]*u+n[0]*c+i[0]*h+r[0]*f,e[1]=t[1]*u+n[1]*c+i[1]*h+r[1]*f,e[2]=t[2]*u+n[2]*c+i[2]*h+r[2]*f,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:x,crossAndNormalize:function(e,t,n){const i=t[0],r=t[1],s=t[2],o=n[0],l=n[1],a=n[2],u=r*a-s*l,c=s*o-i*a,h=i*l-r*o,f=Math.sqrt(u*u+c*c+h*h);return e[0]=u/f,e[1]=c/f,e[2]=h/f,e},direction:O,dist:E,distance:b,div:q,divide:h,dot:z,equals:Z,exactEquals:N,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,i,r,s){const o=s*s,l=o*(2*s-3)+1,a=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*l+n[0]*a+i[0]*u+r[0]*c,e[1]=t[1]*l+n[1]*a+i[1]*u+r[1]*c,e[2]=t[2]*l+n[2]*a+i[2]*u+r[2]*c,e},inverse:w,len:$,length:s,lerp:A,max:m,min:p,mul:P,multiply:c,negate:_,normalize:S,random:function(e,t=1){const n=r.Ov,i=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(i)*o,e[1]=Math.sin(i)*o,e[2]=s*t,e},rotateX:function(e,t,n,i){const r=[],s=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],s[0]=r[0],s[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),s[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,i){const r=[],s=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],s[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),s[1]=r[1],s[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,i){const r=[],s=[];return r[0]=t[0]-n[0],r[1]=t[1]-n[1],r[2]=t[2]-n[2],s[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),s[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),s[2]=r[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:y,set:l,sign:d,sqrDist:G,sqrLen:D,squaredDistance:M,squaredLength:v,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:L,subtract:u,transformMat3:F,transformMat4:I,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:R,transformQuatValues:T},Symbol.toStringTag,{value:"Module"})),n.d(t,["Il",0,$,"jb",0,L,"lo",0,G,"uE",0,D,"xg",0,E])},90629(e,t,n){n.d(t,{Lz:()=>r,PN:()=>s,cr:()=>o,gs:()=>a,r_:()=>u,tc:()=>l}),n(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function r(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(i);if(t){const n=Number(t[1]),i=t[3]&&t[3].toLowerCase(),r=e.startsWith("-"),o="px"===i?s(n):n;return r?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function l(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,n=0){return[e,t,n]}},13069(e,t,n){n.d(t,{AG:()=>l,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 l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},159(e,t,n){n.d(t,{A:()=>u});var i,r=n(5482),s=n(69540),o=n(25482),l=n(91429),a=n(99157);let u=i=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,l.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,r.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>a});var i,r=n(5482),s=n(69540),o=n(25482),l=n(91429);let a=i=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,l.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=i=(0,r.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>r});var i=n(49208);function r(e,t,n,r,s,o,l=Math.floor(e.length/3)){const a=(0,i.jd)(t,s);if(null==a)return!1;if(a===i.pO){if(e===r&&n===o)return!0;const t=n+3*l;for(let i=n,s=o;i<t;i++,s++)r[s]=e[i]??0;return!0}const u=n+3*l;for(let t=n,i=o;t<u;t+=3,i+=3)a(e,t,r,i);return!0}},49208(e,t,n){n.d(t,{Tp:()=>h,jd:()=>c,pO:()=>d});var i=n(34727),r=n(86211),s=n(73941),o=n(79258),l=n(34403),a=n(21325);const u={2:{5:d,7:null,9:null,10:d,1:_,6:null,8:null,0:null,3:m,11:g,2:d,4:A},5:{5:d,7:null,9:null,10:d,1:_,6:null,8:null,0:null,3:m,11:g,2:d,4:A},7:{5:null,7:d,9:null,10:d,1:null,6:v,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:function(e,t,n,i){const r=e[t]/k,s=C-2*Math.atan(Math.exp(-e[t+1]/k)),o=k+(e[t+2]??0),l=Math.cos(s)*o;n[i]=Math.cos(r)*l,n[i+1]=Math.sin(r)*l,n[i+2]=Math.sin(s)*o},6:null,8:null,0:null,3:d,11:function(e,t,n,i){p(e,t,n,i),g(n,i,n,i)},2:p,4:function(e,t,n,i){p(e,t,n,i),A(n,i,n,i)}},4:{5:I,7:null,9:null,10:I,1:function(e,t,n,i){I(e,t,n,i),_(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){I(e,t,n,i),m(n,i,n,i)},11:function(e,t,n,i){I(e,t,n,i),g(n,i,n,i)},2:I,4:d},1:{5:x,7:null,9:null,10:x,1:d,6:null,8:null,0:null,3:function(e,t,n,i){x(e,t,n,i),m(n,i,n,i)},11:function(e,t,n,i){x(e,t,n,i),g(n,i,n,i)},2:x,4:function(e,t,n,i){x(e,t,n,i),A(n,i,n,i)}},6:{5:null,7:z,9:null,10:z,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:S,10:S,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:_,6:v,8:M,0:null,3:m,11:g,2:d,4:A},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,i){y(e,t,n,i),_(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){y(e,t,n,i),m(n,i,n,i)},11:d,2:y,4:function(e,t,n,i){y(e,t,n,i),A(n,i,n,i)}}};function c(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(F.source.spatialReference===e&&F.dest.spatialReference===t)return F;const n=f(e,F.source),i=f(t,F.dest);return 0===n&&0===i?(0,a.aI)(e,t)?F.projector=d:F.projector=null:F.projector=u[n][i],F}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,s.q8)(e)?t.spatialReferenceId=7:(0,s.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function d(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t]??0)}function p(e,t,n,i){n[i]=T*(e[t]/k),n[i+1]=T*(C-2*Math.atan(Math.exp(-e[t+1]/k))),n[i+2]=e[t+2]??0}function m(e,t,n,r){!function(e,t,n,r,s){const o=.4999999*Math.PI,l=(0,i.qE)(R*e[t+1],-o,o),a=Math.sin(l);n[r++]=R*e[t]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]??0}(e,t,n,r,o.$O)}function g(e,t,n,i){n[i]=e[t]*j,n[i+1]=e[t+1]*j,n[i+2]=e[t+2]??0}function y(e,t,n,i){n[i]=e[t]*N,n[i+1]=e[t+1]*N,n[i+2]=e[t+2]??0}function b(e,t,n,i,r){const s=r+(e[t+2]??0),o=R*e[t],l=R*e[t+1],a=Math.cos(l)*s;n[i]=Math.cos(o)*a,n[i+1]=Math.sin(o)*a,n[i+2]=Math.sin(l)*s}function M(e,t,n,i){b(e,t,n,i,o.Sw.radius)}function v(e,t,n,i){b(e,t,n,i,o.sH.radius)}function _(e,t,n,i){b(e,t,n,i,o.$O.radius)}function w(e,t,n,r,s){const o=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(o*o+l*l+a*a),c=(0,i.YN)(a/(0===u?1:u)),h=Math.atan2(l,o);n[r++]=T*h,n[r++]=T*c,n[r]=u-s}function S(e,t,n,i){w(e,t,n,i,o.Sw.radius)}function z(e,t,n,i){w(e,t,n,i,o.sH.radius)}function x(e,t,n,i){w(e,t,n,i,o.$O.radius)}function A(e,t,n,i){!function(e,t,n,i,r){const s=R*e[t],o=R*e[t+1],l=e[t+2]??0,a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[i++]=(c+l)*u*Math.cos(s),n[i++]=(c+l)*u*Math.sin(s),n[i++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,n,i,o.$O)}function I(e,t,n,i){const r=l.TP,s=e[t],a=e[t+1],u=e[t+2]??0;let c,h,f,d,p,m,g,y,b,M,v,_,w,S,z,x,A,I,F,R,C;c=Math.abs(u),h=s*s+a*a,f=Math.sqrt(h),d=h+u*u,p=Math.sqrt(d),R=Math.atan2(a,s),m=u*u/d,g=h/d,S=r.a2/p,z=r.a3-r.a4/p,g>.3?(y=c/p*(1+g*(r.a1+S+m*z)/p),F=Math.asin(y),M=y*y,b=Math.sqrt(1-M)):(b=f/p*(1-m*(r.a5-S-g*z)/p),F=Math.acos(b),M=1-b*b,y=Math.sqrt(M)),v=1-o.$O.eccentricitySquared*M,_=o.$O.radius/Math.sqrt(v),w=r.a6*_,S=f-_*b,z=c-w*y,A=b*S+y*z,x=b*z-y*S,I=x/(w/v+A),F+=I,C=A+x*I/2,u<0&&(F=-F),n[i++]=T*R,n[i++]=T*F,n[i]=C}const F={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},R=(0,i.kU)(1),T=(0,i.KJ)(1),C=.5*Math.PI,k=o.$O.radius,j=k*Math.PI/180,N=180/(k*Math.PI);n.d(t,["w5",0,u])},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>J,initializeProjection:()=>W,isEqualBaseGCS:()=>B,isLoaded:()=>k,isLoadedOrLoad:()=>j,isLoadedOrLoadFor:()=>N,load:()=>O,project:()=>L,projectAsync:()=>U,projectExtent:()=>re,projectMany:()=>P,projectMultipoint:()=>Q,projectOrLoad:()=>E,projectOrLoadMany:()=>G,projectPoint:()=>H,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>K,requiresLoad:()=>Z,test:()=>V,tryProject:()=>q,unload:()=>D});var i=n(49186),r=n(17676),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),h=n(91075),f=n(48526),d=n(86738),p=n(39829),m=n(82799),g=n(16930),y=n(98764),b=n(159),M=n(9762),v=n(49208);function _(e,t,n,i,r,s){return w[0]=e,w[1]=t,w[2]=n,(0,M.projectBuffer)(w,i,0,r,s,0)}const w=(0,l.vt)();var S=n(60408),z=n(21325),x=n(52006);let A=null,I=null,F=null,R=null,T={};const C=new o.I;function k(){return!!(I?.isLoaded()&&F?.isLoaded()&&R?.isLoaded())}function j(){return!!k()||((0,s.gc)(C),O(),!1)}function N(e,t){return!e||!t||J(e,t)||j()}function Z(e,t){return!J(e,t)&&!k()}async function O(e){null==A&&(A=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(I=e,I.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(F=e,F.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(R=e,R.load()))])),await A,(0,r.Te)(e),C.notify()}function L(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),P(e,e[0].spatialReference,t,n)):((0,a.f)(e),P([e],e.spatialReference,t,n)[0])}function P(e,t,n,i){if(null==t||null==n)return e;if(J(t,n,i))return e.map(e=>K(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return P(e.map(e=>K(e,t,g.A.WGS84)),g.A.WGS84,n,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(n))return P(e,t,g.A.WGS84).map(e=>K(e,g.A.WGS84,n));if(!k())throw new $;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:R.getTransformation(t,n,i.areaOfInterestExtent)||new b.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=T[e];r||(r=R.getTransformation(t,n)||new b.A,T[e]=r),i={geographicTransformation:r,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?I.executeMany(e,n,i):F.executeMany(e,n,i)}function q(e,t,n){try{return L(e,t,n)}catch(e){return null}}function E(e,t){const n=G([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function G(e,t,n){if(!k())for(const n of e)if(null!=n&&!(0,z.aI)(n.spatialReference,t)&&(0,z.fn)(n.spatialReference)&&(0,z.fn)(t)&&!J(n.spatialReference,t))return(0,s.gc)(C),{pending:O(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,z.aI)(e.spatialReference,t)?e:(0,z.fn)(e.spatialReference)&&(0,z.fn)(t)?L(e,t,n):null)}}class $ extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function D(){A=null,I=null,F=null,R=null,T={}}const V={get loadPromise(){return A}};async function U(e,t,n){if((0,r.Te)(n),!e)return e;const i=G(Array.isArray(e)?e:[e],t,n);if(i.pending)return await i.pending,(0,r.Te)(n),U(e,t,n);const s=i.geometries??[];return Array.isArray(e)?s:s[0]}function J(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,z.aI)(e,t)||(0,z.fn)(e)&&(0,z.fn)(t)&&!!(0,v.jd)(e,t))}function B(e,t){if((0,z.aI)(e,t))return!0;if(!(0,z.fn)(e)||!(0,z.fn)(t))return!1;const n=(0,z.oT)(e)||(0,z.K8)(e)||(0,z.x1)(e),i=(0,z.oT)(t)||(0,z.K8)(t)||(0,z.x1)(t);return n&&i}async function W(e,t,n,i){if(k())return(0,r.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!J(t,n,r))return O(i)}else if(e&&t&&!J(e,t,n))return O(i);return(0,r.NO)(i)}function K(e,t,n){return e?(0,S.fT)(e)?Y(e,t,new d.A,n,0):(0,S.ZC)(e)?se(e,t,new c.A,n,0):(0,S.Bi)(e)?ie(e,t,new p.A,n,0):(0,S.Rg)(e)?te(e,t,new m.A,n,0):(0,S.U9)(e)?X(e,t,new f.A,n,0):null:null}function H(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,n,i)}function Y(e,t,n,i,r){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:r,(0,M.projectBuffer)(ue,t,0,ue,i,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=i,void 0!==s||(0,u.xP)(i)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Q(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,i)}function X(e,t,n,i,r){const{points:s,hasZ:o,hasM:l}=e,a=[],u=s.length,c=[];for(const e of s)c.push(e[0],e[1],o?e[2]:r);if(!(0,M.projectBuffer)(c,t,0,c,i,0,u))return null;const h=ae(o,i);for(let e=0;e<u;++e){const t=3*e,n=c[t],i=c[t+1];h&&l?a.push([n,i,c[t+2],s[e][3]]):h?a.push([n,i,c[t+2]]):l?a.push([n,i,s[e][2]]):a.push([n,i])}return n.points=a,n.spatialReference=i,n.hasZ=o,n.hasM=l,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,r){const{curvePaths:s,paths:o,hasZ:l,hasM:a}=e;if(!(s?le(s,l??!1,a??!1,t,n.curvePaths=[],i,r):oe(o,l??!1,a??!1,t,n.paths,i,r)))return null;const u=ae(l,i);return n.spatialReference=i,n.hasZ=u,n.hasM=a,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,r){const{curveRings:s,rings:o,hasZ:l,hasM:a}=e;return(s?le(s,l??!1,a??!1,t,n.curveRings=[],i,r):oe(o,l??!1,a??!1,t,n.rings,i,r))?(n.spatialReference=i,n.hasZ=ae(l,i),n.hasM=a,n):null}function re(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=se(e,e.spatialReference,t,n,i)}function se(e,t,n,i,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:u,hasM:c}=e;if(!_(s,o,u?e.zmin:r,t,ue,i))return null;const h=ae(u,i);return n.xmin=ue[0],n.ymin=ue[1],h&&(n.zmin=ue[2]),_(l,a,u?e.zmax:r,t,ue,i)?(n.xmax=ue[0],n.ymax=ue[1],h&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function oe(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:o);if(!(0,M.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const i of t){const t=l.slice(a,a+=3);c||t.pop(),n&&t.push(i[u]),e.push(t)}r.push(e)}return!0}function le(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n){if((0,x.FG)(e))return!1;if((0,x.aO)(e)){const[n,i]=e.c;l.push(n[0],n[1],t?n[2]:o,i[0],i[1],o);continue}if((0,x.n1)(e)){const[n,i,r]=e.b;l.push(n[0],n[1],t?n[2]:o,i[0],i[1],o,r[0],r[1],o);continue}const n=e;l.push(n[0],n[1],t?n[2]:o)}if(!(0,M.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const i of t){const t=l.slice(a,a+=3);if(c||t.pop(),n&&t.push((0,x.yP)(i)[u]),(0,x.FG)(i))return!1;if((0,x.aO)(i)){const n=l[a++],i=l[a++];++a,e.push({c:[t,[n,i]]});continue}if((0,x.n1)(i)){const n=l[a++],i=l[a++];++a;const r=l[a++],s=l[a++];++a,e.push({b:[t,[n,i],[r,s]]});continue}e.push(t)}r.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,z.aI)(t,y.Y0)}const ue=(0,l.vt)()},98764(e,t,n){n.d(t,{lO:()=>c});var i=n(73941),r=n(16930),s=n(21325);const o=new r.A(i.fv),l=new r.A(i.FY),a=new r.A(i.LJ),u=new r.A(i.Ro);function c(e){const t=h.get(e);if(t)return t;let n=o;if(e)if(e===l)n=l;else if(e===a)n=a;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,s.tl)(t)||(0,s.tl)(i)?n=l:((0,s.ZL)(t)||(0,s.ZL)(i))&&(n=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===f?n=l:e===d&&(n=a)}}}return h.set(e,n),n}const h=new Map,f=l.wkt.toUpperCase(),d=a.wkt.toUpperCase();n.d(t,["GD",0,o,"Y0",0,u])},4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>l,yH:()=>a});var i=n(34275),r=n(9093);function s(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const n=s(e.length+t.length);for(let t=0;t<e.length;++t)n[t]=e[t];for(let i=0;i<t.length;++i)n[e.length+i]=t[i];return n}function u(e){return[...e]}function c(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>I,C:()=>o,DC:()=>f,Ej:()=>M,Ie:()=>x,Jt:()=>A,Lu:()=>_,Ne:()=>w,RF:()=>h,TF:()=>y,VL:()=>p,aI:()=>R,fA:()=>l,gE:()=>u,gX:()=>b,hZ:()=>z,iT:()=>d,is:()=>F,pg:()=>v,uJ:()=>g,vI:()=>S,vY:()=>a,vt:()=>s,w1:()=>c,yr:()=>m}),n(35522);var i=n(5443),r=(n(19419),n(4197));function s(e=C){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let n=0;n<6;n++)e[n]=t[n];return e}function l(e,t,n,i,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l}function a(e,t=s()){return function(e,t,n,i=s()){return z(i,T),function(e,t,n=0,i=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function u(e,t=(0,r.jh)(24)){const[n,i,s,o,l,a]=e;return t[0]=n,t[1]=i,t[2]=s,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=l,t[8]=s,t[9]=n,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(e,t,n=e){n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n[2]=Math.min(e[2],t[2]),n[3]=Math.max(e[3],t[3]),n[4]=Math.max(e[4],t[4]),n[5]=Math.max(e[5],t[5])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,[t,n,i]){!function(e,t,n,i){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.min(e[2],i),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],n),e[5]=Math.max(e[5],i)}(e,t,n,i)}function p(e){return e[0]>=e[3]?0:e[3]-e[0]}function m(e){return e[1]>=e[4]?0:e[4]-e[1]}function g(e){return e[2]>=e[5]?0:e[5]-e[2]}function y(e){const t=p(e),n=g(e),i=m(e);return t*t+n*n+i*i}function b(e,t=[0,0,0]){return t[0]=e[0]+p(e)/2,t[1]=e[1]+m(e)/2,t[2]=e[2]+g(e)/2,t}function M(e,t=[0,0,0]){return t[0]=p(e),t[1]=m(e),t[2]=g(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function _(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function w(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function S(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function z(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function x(e){return e?z(e,T):s(T)}function A(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function I(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function F(e){return 6===e.length}function R(e,t,n){if(null==e||null==t)return e===t;if(!F(e)||!F(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const T=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];s(),n.d(t,["qv",0,T,"v_",0,C])},34403(e,t,n){var i=n(79258);Math.PI;const r=i.$O.radius,s=i.$O.eccentricitySquared,o={a1:r*s,a2:r*s*r*s,a3:r*s*s/2,a4:r*s*r*s*2.5,a5:r*s+r*s*s/2,a6:1-s};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius,n.d(t,["TP",0,o])},60408(e,t,n){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function r(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function a(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":r(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>l,Pv:()=>c,Rg:()=>o,U9:()=>r,W0:()=>h,ZC:()=>i,fT:()=>s,uW:()=>a})},65864(e,t,n){n.d(t,{rS:()=>c,xD:()=>f});var i=n(5443),r=n(91075),s=n(48526),o=n(86738),l=n(39829),a=n(82799),u=n(60408);function c(e){return null==e?null:e instanceof r.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?a.A.fromJSON(e):(0,u.Bi)(e)?l.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?i.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:a.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function f(e){return e&&h[e]||null}},50498(e,t,n){var i=n(66552),r=n(5443),s=n(91075),o=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}},d=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});n.d(t,["Ye",0,h,"gy",0,c,"iI",0,d,"yR",0,f])},55156(e,t,n){n.d(t,{I:()=>r});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}n.d(t,["e",0,i])},54339(e,t,n){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},52136(e,t,n){var i=n(5482),r=n(91429);n.d(t,["p",0,e=>{const t=e;let n=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,r.MZ)({type:String})],n.prototype,"apiKey",null),n=(0,i.Cg)([(0,r.$K)("esri.layers.mixins.APIKeyMixin")],n),n}])},28032(e,t,n){n.d(t,{A:()=>a});var i=n(5482),r=n(69540),s=n(25482),o=n(91429),l=n(56400);let a=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,o.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.support.EditFieldsInfo")],a)},95466(e,t,n){n.d(t,{A:()=>u});var i=n(49186),r=n(53966),s=n(12195),o=n(30524),l=n(98623),a=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],h(e))}static fromLayerJSON(e){return new u(e.fields??[],h(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,i=(0,o.GZ)(t);if(t&&i){const r=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,o.te)(e)||(0,o.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):c.has(t.type)?l.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const c=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",h=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,a.ZS)(e.dateFieldsTimeReference):null,f=r?function(e){return"timeZone"in e}(r)?r.timeZone??h:r.dateFieldsTimeReference?(0,a.ZS)(r.dateFieldsTimeReference):h??"UTC":null,d=i?function(e){return"timeZone"in e}(i)?i.timeZone??h:i.timeReference?(0,a.ZS)(i.timeReference):h:null,p=new Map([[(0,o.NF)(r?.creationDateField??""),f],[(0,o.NF)(r?.editDateField??""),f],[(0,o.NF)(s),d],[(0,o.NF)(u),d]]);for(const{name:i,type:r}of e.fields)if(c.has(r))t.set(i,l.L);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,l.L);else{const e=p.get((0,o.NF)(i??""))??h;t.set(i,e)}return t}},37352(e,t,n){n.d(t,{A:()=>a});var i,r=n(5482),s=n(7762),o=n(25482),l=n(91429);let a=i=class extends o.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,r.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,r.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,n){n.d(t,{A:()=>c});var i=n(5482),r=n(69540),s=n(66552),o=n(25482),l=n(91429);const a=new s.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new s.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],c.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],c)},32730(e,t,n){n.d(t,{BI:()=>d,D3:()=>h,XJ:()=>f,lc:()=>c,mX:()=>m,rU:()=>p,tH:()=>v,zA:()=>w});var i=n(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(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=c(e.labelExpression),t.type="conventional"),t}function d(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return m(t.expression);case"arcade":return t.expression}return null}function p(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(g);return t?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function m(e){let t;return e?(t=(0,i.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(l,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=y.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}const _=Symbol("LabelClassInstance");function w(e){return null!=e&&"object"==typeof e&&_ in e}n.d(t,["vK",0,_])},5757(e,t,n){n.d(t,{B:()=>r});const i=Symbol("PopupTemplateInstance");function r(e){return null!=e&&"object"==typeof e&&i in e}n.d(t,["P",0,i])},98205(e,t,n){n.d(t,{KZ:()=>l,eh:()=>o,gf:()=>s,of:()=>r});const i=Symbol("SizeVariableInstance");function r(e){return null!=e&&"object"==typeof e&&i in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const n=t||o(e),i=e.valueUnit||"unknown";return"unknown"===n?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}n.d(t,["uY",0,i])},41366(e,t,n){var i=n(5482),r=n(66552),s=n(53966),o=n(91429),l=n(93223);const a=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field";n.d(t,["K",0,e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&c||n&&u||null,t&&n&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],n),n},"Q",0,a])},93470(e,t,n){const i=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};n.d(t,["Cb",0,r,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,s])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1214],{86162(e,t,s){s.d(t,{A:()=>_});var i,r=s(5482),o=s(66552),n=s(4718),l=s(53966),a=s(91429),u=s(56507),p=s(30524),y=s(92438),c=s(63988),d=s(88542),h=s(49849),g=s(20061),m=s(80911),f=s(43668),b=s(33910),v=s(36005),x=s(43937),w=s(93223);const C="percent-of-total",S="field",I=new o.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:C,esriNormalizeByField:S}),M=(0,u.dp)(d.A);let _=i=class extends((0,c.h)(y.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,s){if(!Array.isArray(e))return;let i=t.minValue;return e.map(e=>{const t=new d.A;return t.read(e,s),null==t.minValue&&(t.minValue=i),null==t.maxValue&&(t.maxValue=t.minValue),i=t.maxValue,t})}writeClassBreakInfos(e,t,s,i){const r=e.map(e=>e.write({},i));this._areClassBreaksConsecutive()&&r.forEach(e=>delete e.classMinValue),t[s]=r}castField(e){return null==e?e:"function"==typeof e?(l.A.getLogger(this).error(".field: field must be a string value"),null):(0,u.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,s=null!=this.normalizationTotal;return t||s?(e=t&&S||s&&C||null,t&&s&&l.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==S&&e!==C||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,s){let i=null;i="number"==typeof e?new d.A({minValue:e,maxValue:t,symbol:(0,b.dp)(s)}):M((0,n.o8)(e)),this.classBreakInfos.push(i),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const s=this.classBreakInfos.length;for(let i=0;i<s;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]===e&&s[1]===t){this.classBreakInfos.splice(i,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&l.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let s=t;this.valueExpression&&null==t?.arcade&&(s={...s,arcade:await(0,f.l)()});const i=this.getBreakIndex(e,s);return-1!==i?this.classBreakInfos[i]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void l.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const s=this.getBreakIndex(e,t);return-1===s?this.defaultSymbol:(0,m.c)(this.classBreakInfos[s],t?.scale)??this.defaultSymbol}async getSymbolAsync(e,t){let s=t;if(this.valueExpression&&null==t?.arcade){const e=await(0,f.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),s={...s,arcade:e}}const i=this.getBreakIndex(e,s);return-1===i?this.defaultSymbol:(0,m.c)(this.classBreakInfos[i],s?.scale)??this.defaultSymbol}get symbols(){const e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[])}),this.defaultSymbol&&e.push(this.defaultSymbol),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new i({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,n.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,n.o8)(this.visualVariables),legendOptions:(0,n.o8)(this.legendOptions),authoringInfo:(0,n.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){const s=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(s)}async collectSymbolFields(e,t){const s=[...this.symbols.map(s=>s.collectRequiredFields(e,t)),(0,p.Dx)(e,t,null,this.valueExpression)];(0,p.rq)(e,t,this.field),(0,p.rq)(e,t,this.normalizationField),await Promise.all(s)}_getBreakIndexForExpression(e,t){const{viewingMode:s,scale:i,spatialReference:r,arcade:o,timeZone:n}=t??{},{valueExpression:l}=this;let a=this._compiledValueExpression.valueExpression===l?this._compiledValueExpression.compiledFunction:null;const u=o.arcadeUtils;if(!a){const e=u.createSyntaxTree(l);a=u.createFunction(e),this._compiledValueExpression.compiledFunction=a}this._compiledValueExpression.valueExpression=l;const p=u.executeFunction(a,u.createExecContext(e,u.getViewInfo({viewingMode:s,scale:i,spatialReference:r}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,s=e.attributes,i=this.normalizationType;let r=parseFloat(s[t]);if(i){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?s[this.normalizationField]:void 0);if("log"===i)r=Math.log(r)*Math.LOG10E;else if(i!==C||null==e||isNaN(e)){if(i===S&&!isNaN(t)){if(isNaN(r)||isNaN(t))return-1;r/=t}}else r=r/e*100}return this._getBreakIndexfromInfos(r)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let s=0;s<this.classBreakInfos.length;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]<=e&&(t?e<=i[1]:e<i[1]))return s}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let s=1;s<t;s++)if(e[s-1].maxValue!==e[s].minValue)return!1;return!0}};(0,r.Cg)([(0,a.MZ)(h.As)],_.prototype,"backgroundFillSymbol",void 0),(0,r.Cg)([(0,a.MZ)({type:[d.A],json:{write:{isRequired:!0}}})],_.prototype,"classBreakInfos",void 0),(0,r.Cg)([(0,v.w)("classBreakInfos")],_.prototype,"readClassBreakInfos",null),(0,r.Cg)([(0,x.K)("classBreakInfos")],_.prototype,"writeClassBreakInfos",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"defaultLabel",void 0),(0,r.Cg)([(0,a.MZ)(h.z4)],_.prototype,"defaultSymbol",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"field",void 0),(0,r.Cg)([(0,a.wg)("field")],_.prototype,"castField",null),(0,r.Cg)([(0,a.MZ)({type:Boolean})],_.prototype,"isMaxInclusive",void 0),(0,r.Cg)([(0,a.MZ)({type:g.A,json:{write:!0}})],_.prototype,"legendOptions",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],_.prototype,"minValue",null),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"normalizationField",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],_.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,a.MZ)({type:I.apiValues,value:null,json:{type:I.jsonValues,read:I.read,write:I.write}})],_.prototype,"normalizationType",null),(0,r.Cg)([(0,w.e)({classBreaks:"class-breaks"})],_.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"valueExpression",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"valueExpressionTitle",void 0),_=i=(0,r.Cg)([(0,a.$K)("esri.renderers.ClassBreaksRenderer")],_)},88542(e,t,s){s.d(t,{A:()=>u});var i,r=s(5482),o=s(25482),n=s(91429),l=s(49849),a=s(40863);let u=i=class extends o.o{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}get alternateSymbols(){return this._get("alternateSymbols")??null}set alternateSymbols(e){e?this._set("alternateSymbols",e.map(e=>e instanceof a.A?e:(delete e.type,new a.A(e)))):this._set("alternateSymbols",null)}clone(){return new i({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r.Cg)([(0,n.MZ)(l.Wp)],u.prototype,"symbol",void 0),(0,r.Cg)([(0,n.MZ)({type:[a.A],useTypeForAutocast:!1,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",null),u=i=(0,r.Cg)([(0,n.$K)("esri.renderers.support.ClassBreakInfo")],u)},61760(e,t,s){s.d(t,{PU:()=>o,YW:()=>l,hv:()=>n,zp:()=>r}),s(34727);var i=s(90629);function r(e){return(0,i.PN)(2.4*e)}function o(e){return(0,i.Lz)(e)/2.4}function n(e,t,s){const i=Math.sqrt(e**2+t**2)/s;return i>1?0:3/(Math.PI*s**2)*(1-i**2)**2}function l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}s(78955),s(91829)},41214(e,t,s){s.d(t,{Hg:()=>pe,XJ:()=>ye});var i=s(53966),r=s(86162),o=s(5482),n=s(11254),l=s(4718),a=s(91429),u=s(30524),p=s(92438),y=s(63988),c=s(66344),d=s(60408),h=s(68197);class g{static parse(e,t,s){const i=[],r=[],o=e.split(";");for(let e=0;e<o.length;e++){const n=o[e];if(n){if(n.includes("po:")){const e=n.slice(3).split("|");if(3===e.length){const[t,s,i]=e,o=f(t,s,i);o&&r.push(o)}continue}if(n.includes("|")){for(const e of n.split("|"))if(t.has(e)){i.push(e);break}}else if(t.has(n))i.push(n);else if(0===e){i.length=0,i.push(b(s));break}}}return new g(i,r)}constructor(e,t){this.partNames=e,this.overrides=t}}function m(e,t){if("DashTemplate"===e)return t.split(" ").map(e=>Number(e));if("Color"===e){const e=new h.A(t).toRgba();return[e[0],e[1],e[2],255*e[3]]}return Number(t)}function f(e,t,s){return{type:"CIMPrimitiveOverride",primitiveName:e,propertyName:t,value:m(t,s),defaultValue:null}}function b(e){switch(e){case"esriGeometryPolyline":return"Invalid_L";case"esriGeometryPolygon":return"Invalid_A";default:return"Invalid_P"}}var v=s(73681),x=s(55674),w=s(40863),C=s(93397);const S={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,width:.5,color:[0,0,0,255]}]}};class I{constructor(e,t,s,i){this.url=e,this.fieldMap=s,this.dictionaryInfo=i,this._symbolPartCache=new c.q(100),this._evaluator=(async()=>v.n.from(await i,t,s))()}async getSymbolAsync(e,t,s=!0){const i=await this._evaluator,r=t?.fields??(0,x.lL)(e.attributes),o=i.createDictionaryFieldsIndex(r),n=i.evaluate(e,t?.scale??0,o,t?.spatialReference);if(null==n)return null;const l=(0,d.$B)(e.geometry),a=g.parse(n,i.itemNames,l),u="esriGeometryPoint"===l&&!e.geometry?.hasZ;return await this._cimPartsToCIMSymbol(e,a.partNames,a.overrides,u,t,s,o)}async getSymbolForControlString(e,t,s){const i=await this._evaluator,r=g.parse(e,i.itemNames,t),o="esriGeometryPoint"===t&&!s,n=M(await Promise.all(r.partNames.map(e=>this._getSymbolPart(e))),r.overrides,o);return new w.A({data:n})}async _cimPartsToCIMSymbol(e,t,i,r,o,n,a){const u=t.map(e=>this._getSymbolPart(e,o));let p=await Promise.all(u);if(n&&this.fieldMap&&p.length>0){const{OverrideHelper:t}=await s.e(3650).then(s.bind(s,23650));p=(0,l.o8)(p);for(const s of p)t.applyDictionaryTextOverrides(s,e,this.fieldMap,a,(0,C.bs)(s))}const y=M(p,i,r);return new w.A({data:y})}async _fetchSymbolPart(e,t){const s=await this.dictionaryInfo,i=(this.url+"/"+s.cimRefTemplateUrl).replaceAll(/\{itemName\}/gi,e),{data:r}=await(0,n.A)(i,{responseType:"json",query:{f:"json"},...t});return r}async _getSymbolPart(e,t){let s=this._symbolPartCache.get(e);return s||(s=this._fetchSymbolPart(e,t),this._symbolPartCache.put(e,s)),s}}function M(e,t,s){if(!e||0===e.length)return null;const i={...e[0]};if(e.length>1){i.effects=null,i.symbolLayers=[];for(const t of e){const e=t;if(null!=e.effects)for(const t of e.symbolLayers)null==t.effects?t.effects=e.effects:t.effects.unshift(...e.effects);i.symbolLayers.unshift(...e.symbolLayers)}}return s&&(i.callout=S),{type:"CIMSymbolReference",symbol:i,primitiveOverrides:t}}var _,V=s(43937);let Z=_=class extends((0,y.h)(p.A)){constructor(e){super(e),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this._styleName=null,this._styleVersion=null,this._styleSymbolFields=null,this._styleTextFields=null,this._styleConfigProperties=null,this._styleUISchema=null,this.type="dictionary"}get _loader(){const e=this.getDictionaryInfo();return e.then(e=>{this._styleName=e.dictionary_name,this._styleVersion=e.dictionary_version,this._styleConfigProperties=e.authoringInfo.configuration,this._styleSymbolFields=e.authoringInfo.symbol,this._styleTextFields=e.authoringInfo.text,this._styleUISchema=e.dictionary_ui_schema?JSON.parse(e.dictionary_ui_schema):null}),new I(this.url,this.config,this.fieldMap??{},e)}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}get styleName(){return this._styleName}get styleVersion(){return this._styleVersion}get styleSymbolFields(){return this._styleSymbolFields}get styleTextFields(){return this._styleTextFields}get styleConfigProperties(){return this._styleConfigProperties}get styleUISchema(){return this._styleUISchema}writeVisualVariables(e,t,s,i){i?.origin||super.writeVisualVariables(e,t,s,i)}clone(){return new _({config:(0,l.o8)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,l.o8)(this.fieldMap),url:(0,l.o8)(this.url),visualVariables:(0,l.o8)(this.visualVariables)})}async getSymbolAsync(e,t,s=!0){return this._loader.getSymbolAsync(e,t,s)}async getSymbolForControlString(e,t,s){return this._loader.getSymbolForControlString(e,t,s)}getDictionaryInfo(){return this._dictionaryInfoPromise||(this._dictionaryInfoPromise=this._fetchDictionaryInfo()),this._dictionaryInfoPromise}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,u.Dx)(e,t,null,this.scaleExpression);for(const s in this.fieldMap){const i=this.fieldMap[s];t.has(i)&&e.add(i)}}get arcadeRequired(){return!0}getSymbol(){return null}get symbols(){return[]}async _fetchDictionaryInfo(){const{data:e}=await(0,n.A)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"}});return e}};(0,o.Cg)([(0,a.MZ)({type:I})],Z.prototype,"_loader",null),(0,o.Cg)([(0,a.MZ)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],Z.prototype,"config",void 0),(0,o.Cg)([(0,a.MZ)({type:Object,json:{write:!0}})],Z.prototype,"fieldMap",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],Z.prototype,"scaleExpression",void 0),(0,o.Cg)([(0,V.K)("scaleExpression")],Z.prototype,"writeData",null),(0,o.Cg)([(0,a.MZ)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],Z.prototype,"scaleExpressionTitle",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],Z.prototype,"url",void 0),(0,o.Cg)([(0,a.MZ)({type:String})],Z.prototype,"styleName",null),(0,o.Cg)([(0,a.MZ)({type:String})],Z.prototype,"styleVersion",null),(0,o.Cg)([(0,a.MZ)({type:[String]})],Z.prototype,"styleSymbolFields",null),(0,o.Cg)([(0,a.MZ)({type:[String]})],Z.prototype,"styleTextFields",null),(0,o.Cg)([(0,a.MZ)({type:[Object]})],Z.prototype,"styleConfigProperties",null),(0,o.Cg)([(0,a.MZ)({type:Object})],Z.prototype,"styleUISchema",null),(0,o.Cg)([(0,V.K)("visualVariables")],Z.prototype,"writeVisualVariables",null),Z=_=(0,o.Cg)([(0,a.$K)("esri.renderers.DictionaryRenderer")],Z);var k,j=s(25482),A=s(56507);let E=k=class extends j.o{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(i.A.getLogger(this).error(".field: field must be a string value"),null):(0,A.GX)(e)}clone(){return new k({color:this.color?.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,o.Cg)([(0,a.MZ)({type:h.A,json:{type:[Number],write:!0}})],E.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"field",void 0),(0,o.Cg)([(0,a.wg)("field")],E.prototype,"castField",null),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"label",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"valueExpression",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],E.prototype,"valueExpressionTitle",void 0),E=k=(0,o.Cg)([(0,a.$K)("esri.renderers.support.AttributeColorInfo")],E);const F=E;var B;let T=B=class extends j.o{constructor(e){super(e),this.unit=null}clone(){return new B({unit:this.unit})}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"unit",void 0),T=B=(0,o.Cg)([(0,a.$K)("esri.renderers.support.DotDensityLegendOptions")],T);const N=T;var P,z=s(94985),D=s(31593),R=s(93223);let O=P=class extends((0,y.h)(p.A)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new h.A([0,0,0,0]),this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new D.A,this.dotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new z.A({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol()]}get visualVariables(){return super.visualVariables}set visualVariables(e){super.visualVariables=e}clone(){return new P({attributes:(0,l.o8)(this.attributes),backgroundColor:(0,l.o8)(this.backgroundColor),dotBlendingEnabled:(0,l.o8)(this.dotBlendingEnabled),dotShape:(0,l.o8)(this.dotShape),dotSize:(0,l.o8)(this.dotSize),dotValue:(0,l.o8)(this.dotValue),legendOptions:(0,l.o8)(this.legendOptions),outline:(0,l.o8)(this.outline),referenceScale:(0,l.o8)(this.referenceScale),seed:(0,l.o8)(this.seed),visualVariables:(0,l.o8)(this.visualVariables),authoringInfo:(0,l.o8)(this.authoringInfo)})}getControllerHash(){const e=this.attributes?.map(e=>e.field||e.valueExpression||"");return`${e}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const s of this.attributes??[])s.valueExpression&&await(0,u.Dx)(e,t,null,s.valueExpression),s.field&&e.add(s.field)}};(0,o.Cg)([(0,a.MZ)({type:[F],json:{write:!0}})],O.prototype,"attributes",void 0),(0,o.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],O.prototype,"backgroundColor",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],O.prototype,"dotBlendingEnabled",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!1}})],O.prototype,"dotShape",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],O.prototype,"dotSize",void 0),(0,o.Cg)([(0,a.MZ)({type:N,json:{write:!0}})],O.prototype,"legendOptions",void 0),(0,o.Cg)([(0,a.MZ)({type:D.A,json:{default:null,write:!0}})],O.prototype,"outline",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],O.prototype,"dotValue",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],O.prototype,"referenceScale",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],O.prototype,"seed",void 0),(0,o.Cg)([(0,R.e)({dotDensity:"dot-density"})],O.prototype,"type",void 0),O=P=(0,o.Cg)([(0,a.$K)("esri.renderers.DotDensityRenderer")],O);var L,q=s(90629),$=s(30943);let K=L=class extends j.o{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new L({color:this.color&&this.color.clone(),ratio:this.ratio})}};(0,o.Cg)([(0,a.MZ)({type:h.A,json:{type:[A.jz],default:null,write:{isRequired:!0}}})],K.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],K.prototype,"ratio",void 0),K=L=(0,o.Cg)([(0,a.$K)("esri.renderers.support.HeatmapColorStop")],K);var U=s(69540);let G=class extends((0,U.OU)(j.o)){constructor(e){super(e),this.minLabel=null,this.maxLabel=null,this.title=null}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],G.prototype,"minLabel",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],G.prototype,"maxLabel",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],G.prototype,"title",void 0),G=(0,o.Cg)([(0,a.$K)("esri.renderers.support.HeatmapLegendOptions")],G);const H=G;var J,X=s(61760),W=s(53930);function Y(e){if(null!=e){const{maxDensity:t,minDensity:s,radius:i}=e;if(null!=t||null!=s||null!=i){const{blurRadius:t,maxPixelIntensity:s,minPixelIntensity:i,...r}=e;return r}}return e}let Q=J=class extends p.A{constructor(e){super(e),this.authoringInfo=null,this.colorStops=[new K({ratio:0,color:new h.A("rgba(255, 140, 0, 0)")}),new K({ratio:.75,color:new h.A("rgba(255, 140, 0, 1)")}),new K({ratio:.9,color:new h.A("rgba(255, 0, 0, 1)")})],this.field=null,this.legendOptions=null,this.maxDensity=.04,this.minDensity=0,this.referenceScale=0,this.type="heatmap",this.valueExpression=null,this.valueExpressionTitle=null}normalizeCtorArgs(e){return Y(e)}get blurRadius(){return(0,X.PU)(this.radius)}set blurRadius(e){const t=this.maxPixelIntensity,s=this.minPixelIntensity;this._set("radius",(0,X.zp)(e)),this._set("maxDensity",t*this._pixelIntensityToDensity),this._set("minDensity",s*this._pixelIntensityToDensity)}get maxPixelIntensity(){return this.maxDensity/this._pixelIntensityToDensity}set maxPixelIntensity(e){this._set("maxDensity",e*this._pixelIntensityToDensity)}get minPixelIntensity(){return this.minDensity/this._pixelIntensityToDensity}set minPixelIntensity(e){this._set("minDensity",e*this._pixelIntensityToDensity)}get radius(){return this._get("radius")??18}set radius(e){this._set("radius",e)}get _pixelIntensityToDensity(){return 24/(5.76*this.blurRadius**4)}read(e,t){e=Y(e),super.read(e,t)}getSymbol(){return new W.A}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol()]}async collectRequiredFields(e,t){const s=this.field,i=this.valueExpression;s&&"string"==typeof s&&(0,u.rq)(e,t,s),i&&"string"==typeof i&&await(0,u.Dx)(e,t,null,i)}clone(){return new J({authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),colorStops:(0,l.o8)(this.colorStops),field:this.field,legendOptions:(0,l.o8)(this.legendOptions),maxDensity:this.maxDensity,minDensity:this.minDensity,radius:this.radius,referenceScale:this.referenceScale,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,o.Cg)([(0,a.MZ)({type:$.A,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],Q.prototype,"authoringInfo",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Q.prototype,"blurRadius",null),(0,o.Cg)([(0,a.MZ)({type:[K],json:{write:{isRequired:!0}}})],Q.prototype,"colorStops",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],Q.prototype,"field",void 0),(0,o.Cg)([(0,a.MZ)({type:H,json:{write:!0}})],Q.prototype,"legendOptions",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Q.prototype,"maxDensity",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Q.prototype,"maxPixelIntensity",null),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],Q.prototype,"minDensity",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Q.prototype,"minPixelIntensity",null),(0,o.Cg)([(0,a.MZ)({type:Number,cast:q.cr,json:{write:!0}})],Q.prototype,"radius",null),(0,o.Cg)([(0,a.MZ)({type:Number,range:{min:0},json:{default:0,write:!0}})],Q.prototype,"referenceScale",void 0),(0,o.Cg)([(0,R.e)({heatmap:"heatmap"})],Q.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],Q.prototype,"valueExpression",void 0),(0,o.Cg)([(0,a.MZ)({type:String})],Q.prototype,"valueExpressionTitle",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],Q.prototype,"_pixelIntensityToDensity",null),Q=J=(0,o.Cg)([(0,a.$K)("esri.renderers.HeatmapRenderer")],Q);var ee=s(4576),te=s(49849);let se=class extends((0,U.OU)(j.o)){constructor(e){super(e),this.color=new h.A([0,0,0,0]),this.label=null,this.threshold=0}};(0,o.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],se.prototype,"color",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],se.prototype,"label",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],se.prototype,"threshold",void 0),se=(0,o.Cg)([(0,a.$K)("esri.renderers.support.OthersCategory")],se);var ie=s(20061),re=s(62724),oe=s(48940);const ne={base:s(2795).A,key:"type",typeMap:{size:oe.A,opacity:re.A}};let le=class extends((0,y.h)((0,U.OU)(p.A))){constructor(e){super(e),this.attributes=null,this.backgroundFillSymbol=null,this.defaultColor=new h.A([0,0,0,0]),this.defaultLabel=null,this.holePercentage=0,this.othersCategory=new se,this.legendOptions=null,this.outline=null,this.type="pie-chart",this.visualVariables=null}get size(){return this._get("size")??12}set size(e){this._set("size",e)}getSymbol(){return new W.A({size:this.size?this.size/2+(this.outline?.width||0):0})}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol(),this.backgroundFillSymbol].filter(ee.Ru)}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const s of this.attributes)s.valueExpression&&await(0,u.Dx)(e,t,null,s.valueExpression),s.field&&e.add(s.field)}};(0,o.Cg)([(0,a.MZ)({type:[F],json:{write:!0}})],le.prototype,"attributes",void 0),(0,o.Cg)([(0,a.MZ)(te.As)],le.prototype,"backgroundFillSymbol",void 0),(0,o.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],le.prototype,"defaultColor",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],le.prototype,"defaultLabel",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],le.prototype,"holePercentage",void 0),(0,o.Cg)([(0,a.MZ)({type:se,json:{write:!0}})],le.prototype,"othersCategory",void 0),(0,o.Cg)([(0,a.MZ)({type:ie.A,json:{write:!0}})],le.prototype,"legendOptions",void 0),(0,o.Cg)([(0,a.MZ)({type:D.A,json:{default:null,write:!0}})],le.prototype,"outline",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,cast:q.cr,json:{write:!0}})],le.prototype,"size",null),(0,o.Cg)([(0,R.e)({pieChart:"pie-chart"})],le.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({types:[ne]})],le.prototype,"visualVariables",void 0),le=(0,o.Cg)([(0,a.$K)("esri.renderers.PieChartRenderer")],le);var ae=s(96576),ue=s(93618);const pe={key:"type",base:p.A,typeMap:{heatmap:Q,simple:ae.A,"unique-value":ue.A,"class-breaks":r.A,"dot-density":O,dictionary:Z,"pie-chart":le},errorContext:"renderer"},ye={key:"type",base:p.A,typeMap:{simple:ae.A,"unique-value":ue.A,"class-breaks":r.A,heatmap:Q},errorContext:"renderer",validate:function(e){switch(e.type){case"simple":return function(e){if(e.symbol)return e;i.A.getLogger("esri.renderers.support.types").error("Removed invalid 'simple' renderer without a symbol from web scene.")}(e);case"unique-value":return function(e){const t=e.uniqueValueInfos,s=t?.filter(({symbol:e,label:t},s)=>(e||i.A.getLogger("esri.renderers.support.types").error(`Removed invalid unique value info ([${s}] ${t}) without a symbol from web scene.`),!!e));return s?.length!==t?.length&&(e.uniqueValueInfos=s),e}(e);case"class-breaks":return function(e){const t=e.classBreakInfos,s=t?.filter(({symbol:e,label:t},s)=>(e||i.A.getLogger("esri.renderers.support.types").error(`Removed invalid class break info ([${s}] ${t}) without a symbol from web scene.`),!!e));return s?.length!==t?.length&&(e.classBreakInfos=s),e}(e);case"heatmap":return e}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3781],{16494(e,t,i){var r=i(17632);const s=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),n=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],o=new r.I({whiteList:s,onTagAttr:(e,t,i)=>{const r=`${t}="${i}"`;if(n.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new r.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);i.d(t,["Nd",0,a,"W5",0,o])},83027(e,t,i){const r=i(29953).ho;i.d(t,["h",0,r])},53781(e,t,i){i.r(t),i.d(t,{default:()=>Be});var r=i(5482),s=i(37838),n=i(11254),o=i(69540),a=i(7762),l=i(49186),d=i(36563),u=i(4718),p=i(53966),c=i(97768),y=i(25728),h=i(93637),g=i(17676),f=i(39516),m=i(91429),b=i(89317),w=i(78247),v=i(16930),F=i(55156),C=i(60950),T=i(89808),M=i(99959);const I=Symbol("isFeatureGraphicOrigin");var _;class S extends M.A{get[(_=I,C.ym)](){return this.layer}get[F.e](){return this.layer}get[T.Q](){return this.layer}constructor(e){super(),this[_]=!0,this.type="feature",this.layer=e}get id(){return this.layer.id}}var E=i(4146),Z=i(52106),j=i(44208),A=i(92474),O=i(61893),x=i(83027),D=i(56507),q=i(5443),L=i(39829),P=i(50498),k=i(54339),R=i(96520),G=i(22671),N=i(7695);let U=0,$=class extends((0,A.WV)((0,O.g)(a.A))){constructor(e){super(e),this._idToClientGeometry=null,this.type="memory"}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){const e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then(()=>this._applyEdits(e))}openPorts(){return this.load().then(()=>this._connection.openPorts())}async queryFeatures(e,t={}){if(await this.load(t),(0,g.G4)(t)||null==this._connection)throw(0,g.NK)();const i=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t),r=G.A.fromJSON(i);if(!this._requiresClientGraphicMapping()||!this._idToClientGeometry)return r;const s=this.layer.objectIdField;for(const e of r.features){const t=e.attributes[s],i=this._idToClientGeometry.get(t);void 0!==i&&(e.geometry=i)}return r.geometryType=this.layer.geometryType,r}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new l.A("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");if(await this.load(t),(0,g.G4)(t)||null==this._connection)throw(0,g.NK)();return await this._connection.invoke("queryFeatures",e?e.toJSON():null,t)}async queryFeatureCount(e,t={}){if(await this.load(t),(0,g.G4)(t)||null==this._connection)throw(0,g.NK)();return this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)}async queryObjectIds(e,t={}){if(await this.load(t),(0,g.G4)(t)||null==this._connection)throw(0,g.NK)();return this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)}async queryExtent(e,t={}){if(await this.load(t),(0,g.G4)(t)||null==this._connection)throw(0,g.NK)();const i=await this._connection.invoke("queryExtent",e?e.toJSON():null,t);return{count:i.count,extent:q.A.fromJSON(i.extent)}}async querySnapping(e,t={}){if(await this.load(t),(0,g.G4)(t)||null==this._connection)throw(0,g.NK)();return this._connection.invoke("querySnapping",e,t)}async queryAttributeBins(e,t={}){if(await this.load(t),(0,g.G4)(t)||null==this._connection)throw(0,g.NK)();const r=await this._connection.invoke("queryAttributeBins",e?.toJSON(),t);return(await i.e(7745).then(i.bind(i,37745))).default.fromJSON(r)}async _applyEdits(e){if(!this._connection)throw new l.A("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField,i=this.layer.uniqueIdFields;let r=null;const s=[],n=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const o=e=>i?.length&&"attributes"in e?(0,k.r)(e,this.layer):"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const t of e.deleteFeatures){const e=o(t);null!=e&&s.push(e)}const a=e.updateFeatures&&this._idToClientGeometry?new Map:null;if(e.updateFeatures)for(const t of e.updateFeatures)if(n.push(this._serializeFeature(t)),a&&null!=t.geometry){const e=o(t);null!=e&&a.set(e,t)}(0,R.u)(r?r.features:null,n,this.layer.spatialReference);const{fullExtent:d,featureEditResults:u}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:n,deletes:s});return this.fullExtent=d,r&&r.finish(u.uidToObjectId),this._updateIdToClientGeometries(a,u),this._createEditsResult(u)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||null==e)return;const i=[];for(const{geometry:r}of e)null==r||"mesh"!==r.type||r.hasExtent||r.loaded||i.push(r.load({signal:t}));i.length&&await Promise.all(i)}_updateIdToClientGeometries(e,t){if(this._idToClientGeometry){if(e)for(const i of t.updateResults){if(!i.success)continue;const t=e.get(i.objectId);null!=t&&this._addIdToClientGeometry(t)}for(const e of t.deleteResults)e.success&&this._idToClientGeometry.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:""};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,i=new Array(e.length);let r=null;for(let s=0;s<e.length;s++){const n=e[s],o=this._serializeFeature(n);r||null==n.geometry||(r=n.geometry.type),i[s]=o,t.set(`${o.uid}`,n)}const s=this;return{features:i,inferredGeometryType:r,finish(e){const i=s.sourceJSON.objectIdField;for(const r in e){const n=e[r],o=t.get(r);o&&(o.attributes||(o.attributes={}),-1===n?delete o.attributes[i]:o.attributes[i]=n,s._addIdToClientGeometry(o))}}}}_addIdToClientGeometry(e){if(!this._idToClientGeometry)return;const t=this.sourceJSON.objectIdField,i=e.attributes?.[t];null!=i&&this._idToClientGeometry.set(i,e.geometry??null)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){const{attributes:t}=e,i=this._geometryForSerialization(e),r=(U++).toString();return i?{uid:r,geometry:i.toJSON(),attributes:t}:{uid:r,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return null==t?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?L.A.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,x.h)("MemorySourceWorker",{strategy:(0,j.A)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});const{fields:t,spatialReference:i,objectIdField:r,hasM:s,hasZ:n,timeInfo:o,dateFieldsTimeZone:a}=this.layer,l="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);const d=this._prepareAddFeatures(this.items);this.addHandles(this.on("before-changes",e=>{p.A.getLogger(this).error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()}));const{uniqueIdFields:u}=this.layer,c=u?.length?{type:u.length>1?"composite":"simple",fields:u.slice(),OIDFieldContainsHashValue:!(1===u?.length&&u.at(0)===this.layer.objectIdField)}:void 0,y={features:d.features,fields:t?.map(e=>e.toJSON()),geometryType:P.Ye.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||n,objectIdField:r,spatialReference:l?null:i&&i.toJSON(),timeInfo:o?.toJSON()??null,dateFieldsTimeZone:a,uniqueIdInfo:c},h=await this._connection.invoke("load",y,{signal:e});for(const e of h.warnings)p.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});h.featureErrors.length&&p.A.getLogger(this.layer).error("#load()",`Failed to load ${h.featureErrors.length} features due to errors. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}').`,h.featureErrors.map(e=>"\n\n- "+e.error.description).join(""));const g=h.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(d.inferredGeometryType)&&(g.geometryType=P.Ye.toJSON(d.inferredGeometryType)),this.sourceJSON=g,this._requiresClientGraphicMapping()&&(this._idToClientGeometry=new Map),d.finish(h.assignedObjectIds)}};(0,r.Cg)([(0,N.u)({Type:Z.A,ensureType:(0,D.dp)(Z.A)})],$.prototype,"itemType",void 0),(0,r.Cg)([(0,m.MZ)()],$.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)({constructOnly:!0})],$.prototype,"layer",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],$.prototype,"_workerGeometryType",null),(0,r.Cg)([(0,m.MZ)()],$.prototype,"sourceJSON",void 0),$=(0,r.Cg)([(0,m.$K)("esri.layers.graphics.sources.MemorySource")],$);var V=i(52136),J=i(18768),K=i(63074),H=i(69208),B=i(25482);let Q=class extends((0,o.OU)(B.o)){constructor(e){super(e),this.fieldName=null,this.timeValue=null}};(0,r.Cg)([(0,m.MZ)({type:String,json:{write:{isRequired:!0}}})],Q.prototype,"fieldName",void 0),(0,r.Cg)([(0,m.MZ)({type:String,json:{write:{isRequired:!0}}})],Q.prototype,"timeValue",void 0),Q=(0,r.Cg)([(0,m.$K)("esri.layers.support.TimeSeriesFieldTimeMapping")],Q);const W=Q;var z=i(79677);let Y=class extends((0,o.OU)(B.o)){constructor(e){super(e),this.name=null,this.fieldTimeMappings=null,this.timeExtent=null,this.timeInterval=null,this.timeIntervalUnits=null,this.timeValueUnits=null,this.title=null,this.type="time-series-fields"}};(0,r.Cg)([(0,m.MZ)({type:String,json:{write:{isRequired:!0}}})],Y.prototype,"name",void 0),(0,r.Cg)([(0,m.MZ)({type:[W],json:{write:{isRequired:!0}}})],Y.prototype,"fieldTimeMappings",void 0),(0,r.Cg)([(0,m.MZ)({type:z.A,json:{write:!0}})],Y.prototype,"timeExtent",void 0),(0,r.Cg)([(0,m.MZ)({type:Number,json:{write:{isRequired:!0}}})],Y.prototype,"timeInterval",void 0),(0,r.Cg)([(0,m.MZ)({type:String,json:{write:{isRequired:!0}}})],Y.prototype,"timeIntervalUnits",void 0),(0,r.Cg)([(0,m.MZ)({type:String,json:{write:{isRequired:!0}}})],Y.prototype,"timeValueUnits",void 0),(0,r.Cg)([(0,m.MZ)({type:String,json:{write:!0}})],Y.prototype,"title",void 0),(0,r.Cg)([(0,m.MZ)({type:String,readOnly:!0,json:{write:{isRequired:!0}}})],Y.prototype,"type",void 0),Y=(0,r.Cg)([(0,m.$K)("esri.layers.support.TimeSeriesInfo")],Y);const X=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.dataSeriesInfos=null}};return(0,r.Cg)([(0,m.MZ)({type:[Y],json:{write:{enabled:!0,allowNull:!0,layerContainerTypes:b.K},origins:{"web-scene":{write:!1,read:!1}}}})],i.prototype,"dataSeriesInfos",void 0),i=(0,r.Cg)([(0,m.$K)("esri.layers.mixins.DataSeriesLayer")],i),i};var ee=i(6455),te=i(47685),ie=i(87718),re=i(10086),se=i(56658),ne=i(34287),oe=i(32756),ae=i(8303),le=i(69622);let de=class extends le.A{constructor(e){super(e),this.updating=!1,this.status="unknown"}};(0,r.Cg)([(0,m.MZ)()],de.prototype,"updating",void 0),(0,r.Cg)([(0,m.MZ)()],de.prototype,"status",void 0),de=(0,r.Cg)([(0,m.$K)("esri.layers.support.PublishingInfo")],de);const ue=Symbol(),pe=e=>{var t;const i=e;let s=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=ue}get publishingInfo(){if(this.destroyed)return null;const e=this._get("publishingInfo");if(e)return e;const t=new de;return this._checkPublishingStatus(t),t}_checkPublishingStatus(e){let t=0;const i=async s=>{let n;e.updating=!0;try{n=await this.fetchPublishingStatus()}catch(e){n="unavailable"}"published"!==n&&"unavailable"!==n||("publishing"===e.status&&this.refresh(),r.remove()),e.status=n,e.updating=!1,r.removed||(t=setTimeout(i,s,s+125))},r={removed:!1,remove(){this.removed=!0,clearTimeout(t)}};this.when().catch(()=>r.remove()),i(250),this.addHandles(r)}};return(0,r.Cg)([(0,m.MZ)({readOnly:!0,clonable:!1})],s.prototype,"publishingInfo",null),s=(0,r.Cg)([(0,m.$K)("esri.layers.mixins.PublishableLayer")],s),s};var ce=i(54310),ye=i(25036),he=i(82935),ge=i(63396),fe=i(60694),me=i(10873),be=i(15426),we=i(29005),ve=i(33143),Fe=i(30279),Ce=i(16194),Te=i(17036),Me=i(30524),Ie=i(46499),_e=i(39383),Se=i(6666);let Ee=class extends((0,o.OU)(B.o)){constructor(e){super(e),this.enabled=!1,this.drawOrder=[]}};(0,r.Cg)([(0,m.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1}}}})],Ee.prototype,"enabled",void 0),(0,r.Cg)([(0,m.MZ)({type:[String],json:{write:!0,origins:{"web-scene":{write:!1}}}})],Ee.prototype,"drawOrder",void 0),Ee=(0,r.Cg)([(0,m.$K)("esri.layers.support.SymbolLayerDrawing")],Ee);var Ze=i(96184),je=i(17311),Ae=i(91908),Oe=i(65494),xe=i(8947),De=i(41214),qe=i(65615),Le=i(97552),Pe=i(54218),ke=i(30291),Re=i(33910),Ge=i(78553),Ne=i(59923),Ue=i(36005),$e=i(43937);const Ve="FeatureLayer";function Je(e){return e&&e instanceof a.A}const Ke=(0,Te.p)();function He(e,t,i){const r=!!i?.writeLayerSchema;return{enabled:r,ignoreOrigin:r}}let Be=class extends((0,re.j)((0,se.J)((0,ie.F)(pe((0,te.w6)((0,ee.FJ)((0,K.dM)((0,oe.fY)((0,he.e)(X((0,ge.d)((0,ye.j)((0,ce.J)((0,J.b)((0,ne.q)((0,ae.A)((0,y.M)((0,H.d)((0,V.p)((0,o.OU)(E.A))))))))))))))))))))){constructor(...e){super(...e),this._debounceReload=(0,g.sg)(async()=>{if(this.destroyed||!this.loaded||this._hasMemorySource())return!1;const e=new AbortController,t=(0,d.rE)(e);this.addHandles(t,"reload"),this._set("reloading",!0);try{const t=await this.reloadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]});return t&&(this.sourceJSON=null,await this.initLayerProperties(await this.createGraphicsSource(e.signal))),e.signal.throwIfAborted(),t}finally{this.removeHandles("reload"),this._set("reloading",!1)}}),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new S(this),this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.symbolLayerDrawing=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="ArcGISFeatureLayer",this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.reloading=!1,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=v.A.WGS84,this.subtypeCode=null,this.subtypeField=null,this.subtypes=null,this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=(0,g.sg)(async(e,t,r)=>{const{save:s,saveAs:n}=await i.e(3359).then(i.bind(i,33359));switch(e){case 0:return s(this,t);case 1:return n(this,r,t)}})}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then(e=>this.initLayerProperties(e))),Promise.resolve(this);const i=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]},e).catch(g.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new l.A("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,be.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}reload(){return this._debounceReload()}get _titleCreator(){const e=this._get("_titleCreator");return(0,c.pR)(e),new je.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,fields:this.fields,displayField:this.displayField,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}readCapabilities(e,t){return t=t.layerDefinition||t,(0,Se.S$)(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,i){return this._readEditingEnabled(t,!0,i)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,i,r){this._writeEditingEnabled(e,t,!0,r)}get effectiveEditingEnabled(){return(0,be.C$)(this)}get featureTitleFields(){return[...this._titleCreator.requiredFields]}set fieldConfigurations(e){if(this._hasMemorySource())return;if(this._override("fieldConfigurations",e),!this.loaded)return;const t=(0,Ce.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){if(!this._hasMemorySource())return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,Ce.QX)(this)||null}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,i,r){r?.writeLayerSchema&&(0,h.sM)(i,e?"Table":"Feature Layer",t)}readSymbolLayerDrawing(e,t){const i=t.layerDefinition?.drawingInfo,r=i?.renderer,s=i?.symbolLayerDrawing;return r&&s?new Ee(s):null}readGlobalIdField(e,t){return(0,be.jD)(t.layerDefinition||t)}readObjectIdField(e,t){return(0,be.Zm)(t.layerDefinition||t)}writePopupTemplate(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:!r?.writeLayerSchema}))}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,Me.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;const r=t.drawingInfo?.renderer;if(r){const e=(0,Oe.L)(r,t,i)??void 0;return e||p.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,be.PD)(t,i)}get source(){return this._get("source")}set source(e){e||(e=null);const t=this._get("source");t!==e&&((Array.isArray(e)||e instanceof a.A)&&(e=new $({layer:this,items:e})),Je(t)&&this._resetMemorySource(t),Je(e)&&this._initMemorySource(e),this._set("source",e))}readSource(e,t){const i=G.A.fromJSON(t.featureSet);return new $({layer:this,items:i?.features??[]})}readTemplates(e,t){const i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e=e?.map(e=>we.A.fromJSON(e)),this._fixTemplates(e,r),this._fixTemplates(e,s),e}readTitle(e,t){const i=t.layerDefinition?.name??t.name,r=t.title||t.layerDefinition?.title;if(i){if("item-title"===this.sublayerTitleMode)return this.url?(0,fe.yG)(this.url,i):i;let e=i;if(!e&&this.url){const t=(0,fe.qg)(this.url);null!=t&&(e=t.title)}if(!e)return;const t=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&t&&t!==e&&(e=t+" - "+e),(0,fe.cr)(e)}if("item-title"===this.sublayerTitleMode&&r)return r}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let i=(t=t.layerDefinition||t).typeIdField;if(i&&t.fields){i=i.toLowerCase();const e=t.fields.find(e=>e.name.toLowerCase()===i);e&&(i=e.name)}return i}readTypes(e,t){e=(t=t.layerDefinition||t).types;const i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e?.map(e=>(e=ve.A.fromJSON(e),this._fixTemplates(e.templates,r),this._fixTemplates(e.templates,s),e))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t,i){const r=await(0,be.Xl)(this,e,t,Ve,i);return this.lastEditsEventDate=new Date,r}async updateAttachment(e,t,i,r){const s=await(0,be.bt)(this,e,t,i,Ve,r);return this.lastEditsEventDate=new Date,s}async applyEdits(e,t){return(0,be.ct)(this,e,t)}async uploadAssets(e,t){return(0,be.rn)(this,e,t)}createFieldConfigurations(){return(0,Ce.xY)(this)}createPopupTemplate(e){return(0,ke.tn)(this,e)}async createGraphicsSource(e){const t={stack:[],error:void 0,hasError:!1};try{if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:s}=await(0,g.qr)(Promise.all([i.e(893),i.e(7013)]).then(i.bind(i,65515)),e),n=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,d.Bf)((0,g.u7)(e,()=>n.cancelLoad())??(0,d.hA)()),!1),await n.load({signal:e}),n}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){const e=(0,be.VZ)(this);e.dynamicDataSource=this.dynamicDataSource;const t=null!=this.subtypeCode?`${this.subtypeField} = ${this.subtypeCode}`:null,i=(0,f.mA)(this.definitionExpression,t);return e.where=i||"1=1",e}async deleteAttachments(e,t,i){const r=await(0,be.mm)(this,e,t,Ve,i);return this.lastEditsEventDate=new Date,r}async fetchRecomputedExtents(e){return(0,be.WP)(this,e,Ve)}async getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}async getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getFeatureType(e){return(0,be.xd)(this.types,this.typeIdField,e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){return(0,be.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryAttachments(e,t){return(0,be.lV)(this,e,t,Ve)}async queryFeatures(e,t){const i=await this.load(),r=await i.source.queryFeatures(Le.A.from(e)??i.createQuery(),t),s=this.graphicOrigin;if(r?.features)for(const e of r.features)e.layer=e.sourceLayer=i,e.origin=s;return r}async queryObjectIds(e,t){return await(0,be.sg)(this,e,t,Ve)}async queryFeatureCount(e,t){return(0,be.Ye)(this,e,t,Ve)}async queryExtent(e,t){return(0,be.B5)(this,e,t,Ve)}async queryRelatedFeatures(e,t){return(0,be.hM)(this,e,t,Ve)}async queryRelatedFeaturesCount(e,t){return(0,be.S2)(this,e,t,Ve)}async queryPivot(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryPivot||!s?.operations?.supportsQueryPivot)throw new l.A(Ve,"Layer source does not support queryPivot capability");const n=await i.e(9958).then(i.bind(i,29958)),o=await r.queryPivot(n.default.from(e),t),a=this.graphicOrigin;if(o?.features)for(const e of o.features)e.layer=e.sourceLayer=this,e.origin=a;return o}async queryTopFeatures(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopFeatures||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ve,"Layer source does not support queryTopFeatures capability");const n=await i.e(7561).then(i.bind(i,57561)),o=await r.queryTopFeatures(n.default.from(e),t),a=this.graphicOrigin;if(o?.features)for(const e of o.features)e.layer=e.sourceLayer=this,e.origin=a;return o}async queryAttributeBins(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryAttributeBins)throw new l.A(Ve,"Layer source does not support queryAttributeBins capability");(0,be.ZJ)(e,s,Ve);const n=await i.e(4575).then(i.bind(i,14575)),o=await r.queryAttributeBins(n.default.from(e),t),a=this.graphicOrigin;if(o.features)for(const e of o.features)e.layer=e.sourceLayer=this,e.origin=a;return o}async queryTopObjectIds(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopObjectIds||!s?.query.supportsTopFeaturesQuery)throw new l.A(Ve,"Layer source does not support queryTopObjectIds capability");const n=await i.e(7561).then(i.bind(i,57561));return(await r.queryTopObjectIds(n.default.from(e),t)).filter(Pe.Et)}async queryTopFeaturesExtent(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopExtents||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ve,"Layer source does not support queryTopExtents capability");const n=await i.e(7561).then(i.bind(i,57561));return r.queryTopExtents(n.default.from(e),t)}async queryTopFeatureCount(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopCount||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ve,"Layer source does not support queryFeatureCount capability");const n=await i.e(7561).then(i.bind(i,57561));return r.queryTopCount(n.default.from(e),t)}read(e,t){const i=e.featureCollection;if((i||"Feature Collection"===e.type)&&(this.resourceInfo=e),i){const{layers:e,showLegend:r}=i;1===e?.length&&(super.read(e[0],t),null!=r&&super.read({showLegend:r},t))}super.read(e,t),"service"===t?.origin&&(["objectIdField","fields","timeInfo","dateFieldsTimeZone","uniqueIdFields"].forEach(e=>this.revertToOrigin(e,"service")),this.spatialReference||this.revertToOrigin("spatialReference","service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:i,layerContainerType:r}=t;if(this.dynamicDataSource)return(0,Ne.U4)(t,this,"a dynamic data source cannot be written to web scenes, web maps and feature service items"),null;if(this.isTable){if(("web-map"===i||"web-scene"===i)&&"tables"!==r)return(0,Ne.U4)(t,this,"a table source can only be written to tables"),null;if(this._hasMemorySource())return(0,Ne.U4)(t,this,"an in-memory table source cannot be written to web scenes and web maps"),null}else if(this.loaded&&("web-map"===i||"web-scene"===i)&&"tables"===r)return(0,Ne.U4)(t,this,"a non-table source cannot be written to tables in web maps or web scenes"),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new l.A(Ve,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,Ae.D)(this,e))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_readEditingEnabled(e,t,i){let r=e.layerDefinition?.capabilities;return r?this._hasEditingCapability(r):(r=e.capabilities,t&&"web-map"===i?.origin&&!this._hasMemorySource()&&r?this._hasEditingCapability(r):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map(e=>e.trim()).includes("editing")}_writeEditingEnabled(e,t,i,r){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,h.sM)("layerDefinition.capabilities",e,t),i&&!r?.writeLayerSchema&&(t.capabilities=e)}}_fetchFirstValidLayerId(e){return(0,n.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{const t=e.data;if(t)return this.applyPreferredHost(t),this.findFirstValidLayerId(t)})}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,Me.yp)(this.renderer,this.fieldsIndex),(0,Me.sv)(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),(0,xe.L)(this,{origin:"service"})}async hasDataChanged(){return(0,be.jp)(this)}async fetchPublishingStatus(){const e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some(e=>"geometry"===e.type)||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach(e=>{const i=e.prototype?.attributes;i&&t&&delete i[t]})}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new l.A("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new l.A("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach(e=>{e.layer=this,e.sourceLayer=this}),this.addHandles([e.on("after-add",e=>{e.item.layer=this,e.item.sourceLayer=this}),e.on("after-remove",e=>{e.item.layer=null,e.item.sourceLayer=null})],"fl-source")}_resetMemorySource(e){e.forEach(e=>{e.layer=null,e.sourceLayer=null}),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){const t=[...e.layers||[],...e.tables||[]];return t.find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id}};(0,r.Cg)([(0,m.MZ)({clonable:!1,readOnly:!0})],Be.prototype,"_titleCreator",null),(0,r.Cg)([(0,m.MZ)(me.zQ)],Be.prototype,"attributeTableTemplate",void 0),(0,r.Cg)([(0,Ue.w)("service","capabilities")],Be.prototype,"readCapabilities",null),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],Be.prototype,"charts",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Be.prototype,"createQueryVersion",null),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.copyrightText"}}})],Be.prototype,"copyright",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.displayField"}}})],Be.prototype,"displayField",void 0),(0,r.Cg)([(0,m.MZ)({types:Re.Es,readOnly:!0})],Be.prototype,"defaultSymbol",void 0),(0,r.Cg)([(0,m.MZ)({type:qe.A})],Be.prototype,"dynamicDataSource",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean})],Be.prototype,"editingEnabled",null),(0,r.Cg)([(0,Ue.w)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],Be.prototype,"readEditingEnabled",null),(0,r.Cg)([(0,Ue.w)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],Be.prototype,"readEditingEnabledFromWebMap",null),(0,r.Cg)([(0,$e.K)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],Be.prototype,"writeEditingEnabled",null),(0,r.Cg)([(0,$e.K)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],Be.prototype,"writeEditingEnabledToWebMap",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Be.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,m.MZ)({clonable:!1,readOnly:!0})],Be.prototype,"featureTitleFields",null),(0,r.Cg)([(0,m.MZ)({type:[Fe.A],json:{name:"layerDefinition.fieldConfigurations",write:{overridePolicy(e,t,i){return{enabled:!i?.writeLayerSchema,ignoreOrigin:1===this.originIdOf(t)}}}}})],Be.prototype,"fieldConfigurations",null),(0,r.Cg)([(0,m.MZ)({...Ke.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:He}}}}})],Be.prototype,"fields",void 0),(0,r.Cg)([(0,m.MZ)(Ke.fieldsIndex)],Be.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,m.MZ)({type:w.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],Be.prototype,"formTemplate",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.extent"}}})],Be.prototype,"fullExtent",void 0),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:He,writer(e,t,i){const r=e?be.iX.toJSON(e):null;r&&(0,h.sM)(i,r,t)}}}},read:{source:"layerDefinition.geometryType",reader:be.iX.read}}})],Be.prototype,"geometryType",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,clonable:!1})],Be.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.hasM"}}})],Be.prototype,"hasM",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.hasZ"}}})],Be.prototype,"hasZ",void 0),(0,r.Cg)([(0,m.MZ)(me.id)],Be.prototype,"id",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Be.prototype,"infoFor3D",void 0),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],Be.prototype,"isTable",void 0),(0,r.Cg)([(0,Ue.w)("service","isTable",["type","geometryType"]),(0,Ue.w)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],Be.prototype,"readIsTable",null),(0,r.Cg)([(0,$e.K)("web-map","isTable")],Be.prototype,"writeIsTable",null),(0,r.Cg)([(0,m.MZ)(me.kF)],Be.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,m.MZ)({type:[Ie.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:_e.w,write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:_e.w,write:{layerContainerTypes:b.K}}})],Be.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,m.MZ)({type:Ee,json:{name:"layerDefinition.drawingInfo.symbolLayerDrawing",write:!0,origins:{"web-scene":{write:!1}}}})],Be.prototype,"symbolLayerDrawing",void 0),(0,r.Cg)([(0,Ue.w)(["portal-item","web-map"],"symbolLayerDrawing",["layerDefinition.drawingInfo.renderer","layerDefinition.drawingInfo.symbolLayerDrawing"])],Be.prototype,"readSymbolLayerDrawing",null),(0,r.Cg)([(0,m.MZ)((()=>{const e=(0,u.o8)(me.Ih);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,i){(0,h.sM)(i,(0,Ge.p)(e),t)}}},e})())],Be.prototype,"opacity",void 0),(0,r.Cg)([(0,m.MZ)(me.fV)],Be.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:["show","hide"],json:(()=>{const e=(0,u.o8)(me.C1.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],Be.prototype,"listMode",void 0),(0,r.Cg)([(0,Ue.w)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],Be.prototype,"readGlobalIdField",null),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:He}}}}})],Be.prototype,"objectIdField",void 0),(0,r.Cg)([(0,Ue.w)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],Be.prototype,"readObjectIdField",null),(0,r.Cg)([(0,m.MZ)({type:["ArcGISFeatureLayer"],json:{write:{target:"layerType",ignoreOrigin:!0,layerContainerTypes:b.K}}})],Be.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,m.MZ)(Ke.outFields)],Be.prototype,"outFields",void 0),(0,r.Cg)([(0,m.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Be.prototype,"path",void 0),(0,r.Cg)([(0,m.MZ)(me.M6)],Be.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Be.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,$e.K)("popupTemplate")],Be.prototype,"writePopupTemplate",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Be.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Be.prototype,"reloading",void 0),(0,r.Cg)([(0,m.MZ)({types:De.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:De.XJ,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:b.K,overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:b.K})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:b.K})}}})],Be.prototype,"renderer",null),(0,r.Cg)([(0,Ue.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,Ue.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Be.prototype,"readRenderer",null),(0,r.Cg)([(0,m.MZ)()],Be.prototype,"resourceInfo",void 0),(0,r.Cg)([(0,m.MZ)((()=>{const e=(0,u.o8)(me.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],Be.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,m.MZ)({clonable:!1})],Be.prototype,"source",null),(0,r.Cg)([(0,Ue.w)("portal-item","source",["featureSet"]),(0,Ue.w)("web-map","source",["featureSet"])],Be.prototype,"readSource",null),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],Be.prototype,"spatialReference",void 0),(0,r.Cg)([(0,m.MZ)({type:Number})],Be.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!1})],Be.prototype,"subtypeField",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!1})],Be.prototype,"subtypes",void 0),(0,r.Cg)([(0,m.MZ)({type:[we.A]})],Be.prototype,"templates",void 0),(0,r.Cg)([(0,Ue.w)("templates",["editFieldsInfo","creatorField","editorField","templates"])],Be.prototype,"readTemplates",null),(0,r.Cg)([(0,m.MZ)({type:Ze.A})],Be.prototype,"timeInfo",void 0),(0,r.Cg)([(0,m.MZ)()],Be.prototype,"title",void 0),(0,r.Cg)([(0,Ue.w)("service","title",["name"]),(0,Ue.w)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],Be.prototype,"readTitle",null),(0,r.Cg)([(0,Ue.w)("web-map","title",["layerDefinition.name","title"])],Be.prototype,"readTitleFromWebMap",null),(0,r.Cg)([(0,m.MZ)({type:String})],Be.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:!1}})],Be.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)({type:String})],Be.prototype,"typeIdField",void 0),(0,r.Cg)([(0,Ue.w)("service","typeIdField"),(0,Ue.w)("typeIdField",["layerDefinition.typeIdField"])],Be.prototype,"readTypeIdField",null),(0,r.Cg)([(0,m.MZ)({type:[ve.A]})],Be.prototype,"types",void 0),(0,r.Cg)([(0,Ue.w)("service","types",["types"]),(0,Ue.w)("types",["layerDefinition.types"])],Be.prototype,"readTypes",null),(0,r.Cg)([(0,m.MZ)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility",layerContainerTypes:b.K}}}}})],Be.prototype,"visible",void 0),(0,r.Cg)([(0,Ue.w)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],Be.prototype,"readVisible",null),Be=(0,r.Cg)([(0,m.$K)("esri.layers.FeatureLayer")],Be)},47685(e,t,i){i.d(t,{Mk:()=>y,Zk:()=>p});var r=i(5482),s=i(65529),n=i(4718),o=i(91429),a=i(20816);const l=new s.bk;function d(e){return l.on("apply-edits",new WeakRef(e))}function u(e){return l.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){const s=Promise.withResolvers();return r=null==t||r,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:s.promise}),s}const c=Symbol();function y(e){return null!=e&&"object"==typeof e&&c in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function g(e,t,i){const r=new URL(e).host,s=a.Z3.get(r),n=e=>!e||e===s;return n(t)&&n(i)||t===i}i.d(t,["w6",0,e=>{var t;const i=e;let s=class extends i{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:s,result:o}=e,a=t===this.url,l=null!=i&&null!=this.layerId&&i===this.layerId,d=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),u=h(this),p=h(this)&&g(t,r,this.gdbVersion);if(!a||u&&!p||!l&&!d&&!s)return;const c=o.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){const{adds:t,updates:r,deletes:s}=i.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",o),o}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));c.catch(()=>{}),this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,s=t===this.url,n=h(this),o=h(this)&&g(t,i,this.gdbVersion),a=h(this)&&!g(t,this.gdbVersion,null);s&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(d(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(u(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,a.w5)(e,t)}};return(0,r.Cg)([(0,o.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},63396(e,t,i){i.d(t,{d:()=>C});var r=i(5482),s=i(91429),n=i(60950),o=i(99959);class a extends o.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[n.ym](){return this.trackInfoProvider.trackInfo}}var l=i(37838),d=i(69540),u=i(25482),p=i(93637),c=i(50820),y=i(10873),h=i(46499),g=i(41214);let f=class extends((0,d.OU)(u.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,r.Cg)([(0,s.MZ)({type:[h.A],json:{write:!0}})],f.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,s.MZ)(y.kF)],f.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,s.MZ)({types:g.Hg,json:{write:!0}})],f.prototype,"renderer",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"visible",void 0),f=(0,r.Cg)([(0,s.$K)("esri.layers.support.TrackPartInfo")],f);var m=i(96576),b=i(59868),w=i(10184),v=i(43937);let F=class extends((0,d.OU)(u.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new f({renderer:new m.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new f({renderer:new m.A({symbol:b.UK.clone()})}),this.trackLines=new f({renderer:new m.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,i){const r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,p.sM)(i,r,t)}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"enabled",void 0),(0,r.Cg)([(0,s.MZ)({type:[c.A],json:{write:!0}})],F.prototype,"fields",void 0),(0,r.Cg)([(0,v.K)("fields")],F.prototype,"writeFields",null),(0,r.Cg)([(0,s.MZ)({type:f,json:{write:!0}})],F.prototype,"latestObservations",void 0),(0,r.Cg)([(0,s.MZ)({type:w.A,json:{write:!0}})],F.prototype,"maxDisplayDuration",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],F.prototype,"maxDisplayObservationsPerTrack",void 0),(0,r.Cg)([(0,s.MZ)(y.M6)],F.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,s.MZ)({type:l.A,json:{name:"popupInfo",write:!0}})],F.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,s.MZ)({type:f,json:{write:!0}})],F.prototype,"previousObservations",void 0),(0,r.Cg)([(0,s.MZ)({type:f,json:{write:!0}})],F.prototype,"trackLines",void 0),(0,r.Cg)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],F.prototype,"timeField",void 0),F=(0,r.Cg)([(0,s.$K)("esri.layers.support.TrackInfo")],F);const C=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,r.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],i.prototype,"trackGraphicOrigin",void 0),(0,r.Cg)([(0,s.MZ)({type:F})],i.prototype,"trackInfo",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.TrackableLayer")],i),i}},17311(e,t,i){i.d(t,{A:()=>y});var r=i(5482),s=i(69622),n=i(4576),o=i(60999),a=i(7762),l=i(16494),d=i(91429),u=i(30524),p=i(43668);const c=/<br\s*\/*>/gi;let y=class extends s.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([i.e(4560),i.e(9301)]).then(i.bind(i,99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of i){const i=t.split("."),r=this.fieldsIndex.get(i.at(-1)??"");r&&e.add(r.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const i of t){const t=this.fieldsIndex.get(i);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){const r=t.getObjectId()??t.attributes?.[e.objectIdField];return(await this.getTitles(e,[t],i)).get(r)??""}async getTitles(e,t,i){const r=new Map,s=i?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:n}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);i?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:o,workingTitle:a}=this,d=a&&o;t.forEach(t=>{const u=t.getObjectId()??t.attributes[e.objectIdField];let p=d?n({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,s).global,layer:e,text:a}):"";i?.removeHTML&&(p=l.Nd.sanitize(p).replaceAll(c," ")),r.set(u,p)})}catch{}return r}async _checkAndReQueryGraphics(e,t){const i=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(n.Ru);if(i.length!==t.length)return t;if(t.some(e=>!(0,u.Kl)(e,this.requiredFields))){const r=e.createQuery();r.where="1=1",r.outFields=[...this.requiredFields],r.objectIds=i;const s=await e.queryFeatures(r);if(s?.features.length===t.length)return s.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const i of e){if(!i.fieldName)continue;const e=this.fieldsIndex.get(i.fieldName),r=e?.name??i.fieldName;i.fieldName=r,t.set(r.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){const r=this.effectivePopupTemplate?.fieldInfos??[],s={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{s[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}const n={...t.attributes,...s};return{global:this._featureUtils.formatAttributes({fieldInfos:r,attributes:n,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,u.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,r.Cg)([(0,d.MZ)({readOnly:!0})],y.prototype,"_arcadeTask",null),(0,r.Cg)([(0,d.MZ)()],y.prototype,"_featureUtils",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],y.prototype,"featureUtilsPromise",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],y.prototype,"calculatedExpressions",null),(0,r.Cg)([(0,d.MZ)()],y.prototype,"displayField",void 0),(0,r.Cg)([(0,d.MZ)()],y.prototype,"effectivePopupTemplate",void 0),(0,r.Cg)([(0,d.MZ)()],y.prototype,"expressionsUsedInTitle",null),(0,r.Cg)([(0,d.MZ)()],y.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,d.MZ)()],y.prototype,"fieldInfoMap",null),(0,r.Cg)([(0,d.MZ)()],y.prototype,"fields",void 0),(0,r.Cg)([(0,d.MZ)()],y.prototype,"objectIdField",void 0),(0,r.Cg)([(0,d.MZ)()],y.prototype,"requiredFields",null),y=(0,r.Cg)([(0,d.$K)("esri.layers.support.TitleCreator")],y)},8947(e,t,i){i.d(t,{L:()=>o});var r=i(60999),s=i(17676),n=i(67076);async function o(e,t,i){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,r.Ke)(o.populateFromStyle());if((0,s.Te)(i),!1===a.ok){const i=a.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},96520(e,t,i){i.d(t,{u:()=>l});var r=i(86211),s=i(21325),n=i(52006);function o(e,t,i){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=i)}function a(e,t,i){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e){const e=(0,n.yP)(t);e.length>2&&(e[2]*=i)}}function l(e,t,i){if(!e&&!t||!i)return;const s=(0,r.G9)(i);d(e,i,s),d(t,i,s)}function d(e,t,i){if(e)for(const r of e)u(r.geometry,t,i)}function u(e,t,i){if(!e?.spatialReference||(0,s.aI)(e.spatialReference,t))return;const n=(0,r.G9)(e.spatialReference)/i;if(1!==n)if("x"in e)null!=e.z&&(e.z*=n);else if("curveRings"in e)a(e,e.curveRings,n);else if("curvePaths"in e)a(e,e.curvePaths,n);else if("rings"in e)o(e,e.rings,n);else if("paths"in e)o(e,e.paths,n);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=n)}},20816(e,t,i){i.d(t,{We:()=>a,ZJ:()=>l,w5:()=>d});var r=i(11254);const s=(0,i(13069).vD)(),n=new Map,o=new Map;async function a(e,t,i){if(!e||!i)return!1;if(!t)return!0;const s=new URL(e).host;let o=n.get(s);if(!o){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,r=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(const[e,o]of a)if(o.name===t){const t=!o.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),a=await t(n,e,new r({sessionId:s,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function d(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=o.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,s,"Z3",0,n])}}]);