@arcgis/core 5.1.0-next.78 → 5.1.0-next.79

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 (464) hide show
  1. package/analysis/ShadowCast/DiscreteOptions.d.ts +33 -6
  2. package/analysis/ShadowCast/DiscreteOptions.js +1 -1
  3. package/analysis/ShadowCast/MinDurationOptions.d.ts +6 -4
  4. package/analysis/ShadowCast/TotalDurationOptions.d.ts +33 -6
  5. package/analysis/ShadowCast/TotalDurationOptions.js +1 -1
  6. package/analysis/ShadowCast/colorStopsUtils.js +2 -0
  7. package/analysis/ShadowCastAnalysis.d.ts +24 -1
  8. package/analysis/ShadowCastAnalysis.js +1 -1
  9. package/analysis/Viewshed.d.ts +27 -0
  10. package/analysis/Viewshed.js +1 -1
  11. package/analysis/ViewshedAnalysis.js +1 -1
  12. package/arcade/FunctionWrapper.js +1 -1
  13. package/arcade/arcadeAsyncRuntime.js +1 -1
  14. package/arcade/arcadeCompiler.js +1 -1
  15. package/arcade/arcadeRuntime.js +1 -1
  16. package/arcade/compilerUtils.js +1 -1
  17. package/arcade/debug.d.ts +139 -0
  18. package/arcade/debug.js +2 -0
  19. package/arcade/featureSetCollection.js +1 -1
  20. package/arcade/featureSetUtils.js +1 -1
  21. package/arcade/featureset/actions/GroupBy.js +1 -1
  22. package/arcade/featureset/actions/OrderBy.js +1 -1
  23. package/arcade/functions/featuresetstring.js +1 -1
  24. package/arcade/languageUtils.js +1 -1
  25. package/arcade.d.ts +46 -2
  26. package/arcade.js +1 -1
  27. package/assets/esri/core/workers/RemoteClient.js +1 -1
  28. package/assets/esri/core/workers/chunks/{1c7183551f5269bdcf13.js → 01bd1b86ba899c6aa4c0.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{1f8ccf96069ac3a40c3d.js → 01ee18782a50279f907e.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{f81c6f6ccc201f584970.js → 022067e807905cabeaa1.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{11ea4be441a26134ce1f.js → 052cdc7aaa803b5873f0.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{b7bb7072dbee978f3ca3.js → 056fd7847caaff2c9514.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{8acee3fba488f202f82f.js → 05c3146d87d917606193.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{a8ca5d8740cc7e39197b.js → 0aebcbf41cb193e76809.js} +5 -5
  35. package/assets/esri/core/workers/chunks/{54023458195549f66215.js → 0b77c124b743067e4155.js} +1 -1
  36. package/assets/esri/core/workers/chunks/10408183681fd6c7b4ed.js +2 -0
  37. package/assets/esri/core/workers/chunks/{7595ceba529ed01c7590.js → 2c87c3112a43db8624f6.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{13e60f19f436b8d683ae.js → 3c9482764c9e4f8bcbb0.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{322c54081b25f1c53661.js → 3e37019eee1c49d2bf64.js} +1 -1
  40. package/assets/esri/core/workers/chunks/45c83eb7c2a06166e3b0.js +1 -0
  41. package/assets/esri/core/workers/chunks/48acd146bf0241d87647.js +1 -0
  42. package/assets/esri/core/workers/chunks/5818f1f526577068d6ca.js +2 -0
  43. package/assets/esri/core/workers/chunks/{34fe97bcacc0dfc5bce6.js → 5ccc325d83cec4f5ccdb.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{30e710ec4d22c43d4e7e.js → 5cffc7b49966201eccdb.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{1a87e9bbd85ba29b1514.js → 5da2051f548c2942e01a.js} +1 -1
  46. package/assets/esri/core/workers/chunks/5ec66e39e53c11e75179.js +2 -0
  47. package/assets/esri/core/workers/chunks/{0b1454a77a6a682541dc.js.LICENSE.txt → 5ec66e39e53c11e75179.js.LICENSE.txt} +9 -1
  48. package/assets/esri/core/workers/chunks/5f6fd20a7f4e80eafa25.js +1 -0
  49. package/assets/esri/core/workers/chunks/{abc06d10c7ac8ba5b0e4.js → 67ec1694d6e18b7c234c.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{32e22d6eee9fed1f70b0.js → 6d696beddcc5fbed5875.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{f590b60fca607d66001a.js → 716a4d7e8b908b81870b.js} +1 -1
  52. package/assets/esri/core/workers/chunks/71fe127734f33d020a44.js +1 -0
  53. package/assets/esri/core/workers/chunks/7cdd0492b2191df95102.js +2 -0
  54. package/assets/esri/core/workers/chunks/7cea68257d24ffd205bb.js +1 -0
  55. package/assets/esri/core/workers/chunks/7e530e635325dba07864.js +1 -0
  56. package/assets/esri/core/workers/chunks/8f6f5dad52747d252aac.js +596 -0
  57. package/assets/esri/core/workers/chunks/{d950d5c2844206502ff0.js → 992cd87ba0ab6346f692.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{73c87eb9bd8f0f848481.js → 9c11e1fe785e1385fdb1.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{5ed8d8b5336c81fbcda3.js → 9d216e30d04ea21fc8a2.js} +1 -1
  60. package/assets/esri/core/workers/chunks/a54aa93b6012a2597f82.js +1 -0
  61. package/assets/esri/core/workers/chunks/{cf14b3a44705dacefac4.js → a9b5ce00323cd5574bf7.js} +1 -1
  62. package/assets/esri/core/workers/chunks/ae6b3dfe5f757df539d6.js +1 -0
  63. package/assets/esri/core/workers/chunks/b14c4c3f295970f731ab.js +1 -0
  64. package/assets/esri/core/workers/chunks/{c70df6ed190f9ebcf6aa.js → bf2c202dec5ab7bc770b.js} +1 -1
  65. package/assets/esri/core/workers/chunks/c1d4110aa494a1dba3c4.js +1 -0
  66. package/assets/esri/core/workers/chunks/{85d8c7cc7f8decbe975d.js → c442916805975744dd92.js} +1 -1
  67. package/assets/esri/core/workers/chunks/dacc2e5fa462495ed1cc.js +2 -0
  68. package/assets/esri/core/workers/chunks/f227b34cce6843df0fb6.js +1 -0
  69. package/assets/esri/core/workers/chunks/{dda2cb5c073d1e65f14f.js → f43d628d47eec7d530c7.js} +1 -1
  70. package/assets/esri/core/workers/chunks/f7531aa69a87814c60d1.js +1 -0
  71. package/assets/esri/core/workers/chunks/{4ccb56333de0247dcb6f.js → fb100935fd8948d779f5.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{5ee4b630ad39c21d11db.js → fb9e3e7cd532ac4353f1.js} +12 -12
  73. package/assets/esri/core/workers/chunks/fc6ca7ffb9f1b875059c.js +1 -0
  74. package/assets/esri/core/workers/chunks/{3d9fcbe95dd22dbe730e.js → ffc4f3406ce383b9bd88.js} +1 -1
  75. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +6 -0
  76. package/assets/esri/themes/dark/main.css +1 -1
  77. package/assets/esri/themes/light/main.css +1 -1
  78. package/assets/esri/themes/light/view.css +1 -1
  79. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  80. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  81. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  82. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  83. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  84. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  85. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  86. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  87. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  88. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  89. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  90. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  91. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  92. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  93. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  94. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  95. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  96. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  97. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  98. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  99. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  100. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  101. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  102. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  103. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  104. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  105. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  106. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  107. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  108. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  109. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  110. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  111. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  112. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  113. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  114. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  115. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  116. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  117. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  118. package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
  119. package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
  120. package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
  121. package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
  122. package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
  123. package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
  124. package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
  125. package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
  126. package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
  127. package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
  128. package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
  129. package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
  130. package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
  131. package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
  132. package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
  133. package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
  134. package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
  135. package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
  136. package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
  137. package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
  138. package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
  139. package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
  140. package/assets/esri/widgets/Sketch/t9n/Sketch_no.json +1 -1
  141. package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
  142. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
  143. package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
  144. package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
  145. package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
  146. package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
  147. package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
  148. package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
  149. package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
  150. package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
  151. package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
  152. package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
  153. package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
  154. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
  155. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
  156. package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
  157. package/chunks/ImageMaterial.glsl.js +7 -5
  158. package/chunks/SlicePlaneMaterial.glsl.js +21 -13
  159. package/chunks/arcade.js +1 -1
  160. package/chunks/languageUtils.js +1 -1
  161. package/config.js +1 -1
  162. package/core/MapUtils.js +1 -1
  163. package/core/arrayUtils.js +1 -1
  164. package/kernel.js +1 -1
  165. package/layers/IntegratedMeshLayer.d.ts +18 -14
  166. package/layers/SceneLayer.d.ts +35 -1
  167. package/layers/SceneLayer.js +1 -1
  168. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  169. package/layers/scene/ModelFileInfo.d.ts +29 -0
  170. package/layers/scene/ModelFileInfo.js +2 -0
  171. package/layers/scene/ModelInfo.d.ts +38 -0
  172. package/layers/scene/ModelInfo.js +2 -0
  173. package/layers/scene/modelQuerySupport.js +2 -0
  174. package/layers/scene/types.d.ts +14 -0
  175. package/layers/support/infoFor3D.js +1 -1
  176. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  177. package/layers/types.d.ts +13 -1
  178. package/package.json +3 -3
  179. package/popup/Features.d.ts +1 -6
  180. package/popup/Features.js +1 -1
  181. package/popup/actions.js +1 -1
  182. package/renderers/visualVariables/support/ColorStop.js +1 -1
  183. package/support/arcadeUtils.js +1 -1
  184. package/support/revision.js +1 -1
  185. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  186. package/views/2d/engine/flow/styles/Particles.js +1 -1
  187. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  188. package/views/2d/engine/vectorTiles/Placement.js +1 -1
  189. package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
  190. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  191. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  192. package/views/2d/engine/webgl/GlyphSource.js +1 -1
  193. package/views/2d/engine/webgl/Overlay.js +1 -1
  194. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  195. package/views/2d/engine/webgl/RenderingDevice.js +1 -1
  196. package/views/2d/engine/webgl/TextureManager.js +1 -1
  197. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  198. package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +1 -1
  199. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  200. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
  201. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueProgramCache.js +1 -1
  202. package/views/2d/engine/webgl/shaderGraph/techniques/TestTechnique.js +1 -1
  203. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  204. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  205. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  206. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimationUniformInfo.js +1 -1
  207. package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
  208. package/views/2d/engine/webgl/shaderGraph/techniques/blend/BlendTechnique.js +1 -1
  209. package/views/2d/engine/webgl/shaderGraph/techniques/bloom/BloomTechnique.js +1 -1
  210. package/views/2d/engine/webgl/shaderGraph/techniques/blur/BlurTechnique.js +1 -1
  211. package/views/2d/engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js +1 -1
  212. package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +1 -1
  213. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
  214. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  215. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
  216. package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
  217. package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
  218. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
  219. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
  220. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
  221. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
  222. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
  223. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
  224. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
  225. package/views/2d/engine/webgl/shaderGraph/techniques/flow/FlowTechnique.js +1 -1
  226. package/views/2d/engine/webgl/shaderGraph/techniques/grid/GridTechnique.js +1 -1
  227. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  228. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  229. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  230. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
  231. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
  232. package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
  233. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  234. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
  235. package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +1 -1
  236. package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
  237. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
  238. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
  239. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
  240. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterHighlightTechnique.js +1 -1
  241. package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +1 -1
  242. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/AspectTechnique.js +1 -1
  243. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/BandArithmeticTechnique.js +1 -1
  244. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/BaseRasterProcessorTechnique.js +1 -1
  245. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ColormapToRGBTechnique.js +1 -1
  246. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CompositeBandTechnique.js +1 -1
  247. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ComputeChangeTechnique.js +1 -1
  248. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ContrastBrightnessTechnique.js +1 -1
  249. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ConvolutionTechnique.js +1 -1
  250. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CurvatureTechnique.js +1 -1
  251. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ExtractBandTechnique.js +1 -1
  252. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/FocalStatisticsTechnique.js +1 -1
  253. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/GrayscaleTechnique.js +1 -1
  254. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/HillshadeTechnique.js +1 -1
  255. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/LocalTechnique.js +1 -1
  256. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/MaskTechnique.js +1 -1
  257. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/NDVITechnique.js +1 -1
  258. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/RemapTechnique.js +1 -1
  259. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ReprojectTechnique.js +1 -1
  260. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ShadedReliefTechnique.js +1 -1
  261. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/SlopeTechnique.js +1 -1
  262. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/SpectralConversionTechnique.js +1 -1
  263. package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/StretchTechnique.js +1 -1
  264. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  265. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
  266. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
  267. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlitShader.js +1 -1
  268. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BloomShader.js +1 -1
  269. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlurShader.js +1 -1
  270. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ColorizeShader.js +1 -1
  271. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
  272. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
  273. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DropShadowShader.js +1 -1
  274. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/EntityStorage.js +1 -1
  275. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
  276. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  277. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
  278. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapResolveShader.js +1 -1
  279. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js +1 -1
  280. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MosaicInfo.js +1 -1
  281. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js +1 -1
  282. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
  283. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
  284. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternOutlineFillShader.js +1 -1
  285. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsDiffShader.js +1 -1
  286. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsMinMaxSumShader.js +1 -1
  287. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsStdDevShader.js +1 -1
  288. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsSumOfSquaredDiffShader.js +1 -1
  289. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
  290. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
  291. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js +1 -1
  292. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowImageryShader.js +1 -1
  293. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowUtils.js +1 -1
  294. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js +1 -1
  295. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterHighlightShader.js +1 -1
  296. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerLUTShader.js +1 -1
  297. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerShadedReliefShader.js +1 -1
  298. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerStretchShader.js +1 -1
  299. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterXYBandHighlightShader.js +1 -1
  300. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/lut.js +1 -1
  301. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/AspectShader.js +1 -1
  302. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/BaseRasterProcessorShader.js +1 -1
  303. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ColormapToRGBShader.js +1 -1
  304. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ConvolutionShader.js +1 -1
  305. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/CurvatureShader.js +1 -1
  306. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/FocalStatisticsShader.js +1 -1
  307. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/HillshadeShader.js +1 -1
  308. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/MultiRasterMixin.js +1 -1
  309. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ShadedReliefShader.js +1 -1
  310. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/SlopeShader.js +1 -1
  311. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/projection.js +1 -1
  312. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/stretch.js +1 -1
  313. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderBackground.js +1 -1
  314. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
  315. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +1 -1
  316. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
  317. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +1 -1
  318. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vvUtils.js +1 -1
  319. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  320. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
  321. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  322. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
  323. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
  324. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
  325. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  326. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
  327. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
  328. package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
  329. package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
  330. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  331. package/views/3d/FocusAreasView.js +1 -1
  332. package/views/3d/StencilGeometry.js +2 -0
  333. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  334. package/views/3d/analysis/Viewshed/ViewshedComputedData.js +1 -1
  335. package/views/3d/analysis/Viewshed/ViewshedConfiguration.js +1 -1
  336. package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
  337. package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
  338. package/views/3d/analysis/Viewshed/ViewshedShapeVisualElement.js +1 -1
  339. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  340. package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
  341. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  342. package/views/3d/analysis/Viewshed/viewshedToolUtils.js +1 -1
  343. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  344. package/views/3d/focusAreaUtils.js +2 -0
  345. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  346. package/views/3d/layers/I3SMeshView3D.js +1 -1
  347. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  348. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  349. package/views/3d/layers/IntegratedMeshNormals.js +1 -1
  350. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  351. package/views/3d/layers/SceneLayerView3D.js +1 -1
  352. package/views/3d/layers/SceneLayerWorker.js +1 -1
  353. package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
  354. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  355. package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
  356. package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
  357. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  358. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  359. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
  360. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  361. package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
  362. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  363. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
  364. package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
  365. package/views/3d/webgl-engine/effects/clouds/CloudsTechnique.js +1 -1
  366. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
  367. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  368. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  369. package/views/3d/webgl-engine/effects/focusArea/focusAreaMaskUtils.js +2 -0
  370. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  371. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  372. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  373. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  374. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  375. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  376. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.js +1 -1
  377. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  378. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  379. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  380. package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
  381. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  382. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  383. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  384. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  385. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  386. package/views/3d/webgl-engine/lib/Compositor.js +1 -1
  387. package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
  388. package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
  389. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  390. package/views/3d/webgl-engine/lib/Material.js +1 -1
  391. package/views/3d/webgl-engine/lib/Normals.js +1 -1
  392. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  393. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  394. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  395. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  396. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  397. package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
  398. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  399. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  400. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  401. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  402. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  403. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  404. package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
  405. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +10 -10
  406. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  407. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  408. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  409. package/views/View2D.js +1 -1
  410. package/views/draw/support/GraphicMover.js +1 -1
  411. package/views/draw/support/Reshape.js +1 -1
  412. package/views/draw/support/editingSessionUtils.js +1 -1
  413. package/views/webgl/FramebufferObject.js +1 -1
  414. package/widgets/BatchAttributeForm/css.js +1 -1
  415. package/widgets/BatchAttributeForm/inputs/GroupInput.d.ts +2 -1
  416. package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.d.ts +54 -0
  417. package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +2 -0
  418. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  419. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  420. package/widgets/BatchAttributeForm/inputs/types.d.ts +4 -3
  421. package/widgets/BatchAttributeForm/templates/AttachmentElementTemplate.js +1 -1
  422. package/widgets/BatchAttributeForm/templates/RelationshipElementTemplate.js +2 -0
  423. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  424. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  425. package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
  426. package/widgets/BatchAttributeForm.js +1 -1
  427. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +21 -1
  428. package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
  429. package/widgets/CoordinateConversion/support/Format.js +1 -1
  430. package/widgets/CoordinateConversion/support/coordinateConversionUtils.js +1 -1
  431. package/widgets/CoordinateConversion.d.ts +21 -1
  432. package/widgets/CoordinateConversion.js +1 -1
  433. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  434. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  435. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  436. package/widgets/Editor/support/SketchController.js +1 -1
  437. package/widgets/Editor/workflowUtils.js +1 -1
  438. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  439. package/widgets/Sketch/SketchViewModel.js +1 -1
  440. package/widgets/support/ContingentValuesManager.js +1 -1
  441. package/widgets/types.d.ts +1 -1
  442. package/assets/esri/core/workers/chunks/07eff82916681fcff069.js +0 -1
  443. package/assets/esri/core/workers/chunks/0b1454a77a6a682541dc.js +0 -2
  444. package/assets/esri/core/workers/chunks/1c7fd0a229a8112b0539.js +0 -596
  445. package/assets/esri/core/workers/chunks/3697e51e1e4cf442f39a.js +0 -1
  446. package/assets/esri/core/workers/chunks/3cce9dad8ee0e4971d50.js +0 -1
  447. package/assets/esri/core/workers/chunks/3df8493b91aa3bce824d.js +0 -1
  448. package/assets/esri/core/workers/chunks/68a313155ddc29bd024d.js +0 -1
  449. package/assets/esri/core/workers/chunks/751609831b283903ba48.js +0 -1
  450. package/assets/esri/core/workers/chunks/7bacdd65a6cc4d284e0a.js +0 -2
  451. package/assets/esri/core/workers/chunks/7e97684e851274efd11f.js +0 -1
  452. package/assets/esri/core/workers/chunks/85aac8539996372f1ee8.js +0 -1
  453. package/assets/esri/core/workers/chunks/99d298d0039c536fcf3e.js +0 -1
  454. package/assets/esri/core/workers/chunks/9aaf78b831f8739bc127.js +0 -1
  455. package/assets/esri/core/workers/chunks/9b9916864b6575c42c8a.js +0 -1
  456. package/assets/esri/core/workers/chunks/bf7e019437a3b6036300.js +0 -2
  457. package/assets/esri/core/workers/chunks/d304343a781acfa3ff96.js +0 -1
  458. package/assets/esri/core/workers/chunks/dbb9bb28696ff9536678.js +0 -2
  459. package/assets/esri/core/workers/chunks/f09a41ad239d467d9438.js +0 -2
  460. package/assets/esri/core/workers/chunks/f6912532aae1638cbe8f.js +0 -1
  461. /package/assets/esri/core/workers/chunks/{7bacdd65a6cc4d284e0a.js.LICENSE.txt → 10408183681fd6c7b4ed.js.LICENSE.txt} +0 -0
  462. /package/assets/esri/core/workers/chunks/{f09a41ad239d467d9438.js.LICENSE.txt → 5818f1f526577068d6ca.js.LICENSE.txt} +0 -0
  463. /package/assets/esri/core/workers/chunks/{dbb9bb28696ff9536678.js.LICENSE.txt → 7cdd0492b2191df95102.js.LICENSE.txt} +0 -0
  464. /package/assets/esri/core/workers/chunks/{bf7e019437a3b6036300.js.LICENSE.txt → dacc2e5fa462495ed1cc.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3636],{69052(t,e,s){s.d(e,{hr:()=>n,ie:()=>u,uC:()=>o});var r=s(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,s=!1){return i(this.range,this.min,this.max,t,e,s)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,s){return t<e?e:e+a(this.range,t-e,s)}minimalMonotonic(t,e,s){return i(this.range,t,t+this.range,e,s)}center(t,e,s){return e=this.monotonic(t,e,s),this.normalize((t+e)/2,s)}diff(t,e,s){return this.monotonic(t,e,s)-t}shortestSignedDiff(t,e){t=this.normalize(t);const s=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(s)<Math.abs(r)?s:r}contains(t,e,s){return e=this.minimalMonotonic(t,e),(s=this.minimalMonotonic(t,s))>t&&s<e}}function i(t,e,s,r,n=0,i=!1){return(r-=n)<e?r+=a(t,e-r):r>s&&(r-=a(t,r-s)),i&&r===s&&(r=e),r+n}function a(t,e,s=0){return Math.ceil((e-s)/t)*t+s}const o=new n(0,2*Math.PI),u=(new n(-Math.PI,Math.PI),new n(0,360))},82534(t,e,s){function r(){return[0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3]]}s.d(e,{o8:()=>n,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:n,create:r,fromValues:function(t,e,s,r){return[t,e,s,r]}},Symbol.toStringTag,{value:"Module"}))},67026(t,e,s){s.d(e,{A6:()=>y,Xd:()=>l,Xr:()=>d,hZ:()=>g,lw:()=>p,t2:()=>F,x8:()=>c});var r=s(29242),n=s(82534),i=s(51850),a=s(34304),o=s(35522),u=s(78955);function c(t,e,s){s*=.5;const r=Math.sin(s);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(s),t}function l(t,e){const s=2*Math.acos(e[3]),r=Math.sin(s/2);return r>(0,a.FD)()?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),s}function p(t,e,s){const r=e[0],n=e[1],i=e[2],a=e[3],o=s[0],u=s[1],c=s[2],l=s[3];return t[0]=r*l+a*o+n*c-i*u,t[1]=n*l+a*u+i*o-r*c,t[2]=i*l+a*c+r*u-n*o,t[3]=a*l-r*o-n*u-i*c,t}function h(t,e,s,r){const n=e[0],i=e[1],o=e[2],u=e[3];let c,l,p,h,d,f=s[0],y=s[1],m=s[2],g=s[3];return l=n*f+i*y+o*m+u*g,l<0&&(l=-l,f=-f,y=-y,m=-m,g=-g),1-l>(0,a.FD)()?(c=Math.acos(l),p=Math.sin(c),h=Math.sin((1-r)*c)/p,d=Math.sin(r*c)/p):(h=1-r,d=r),t[0]=h*n+d*f,t[1]=h*i+d*y,t[2]=h*o+d*m,t[3]=h*u+d*g,t}function d(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function f(t,e){const s=e[0]+e[4]+e[8];let r;if(s>0)r=Math.sqrt(s+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let s=0;e[4]>e[0]&&(s=1),e[8]>e[3*s+s]&&(s=2);const n=(s+1)%3,i=(s+2)%3;r=Math.sqrt(e[3*s+s]-e[3*n+n]-e[3*i+i]+1),t[s]=.5*r,r=.5/r,t[3]=(e[3*n+i]-e[3*i+n])*r,t[n]=(e[3*n+s]+e[3*s+n])*r,t[i]=(e[3*i+s]+e[3*s+i])*r}return t}function y(t,e,s,r){const n=.5*Math.PI/180;e*=n,s*=n,r*=n;const i=Math.sin(e),a=Math.cos(e),o=Math.sin(s),u=Math.cos(s),c=Math.sin(r),l=Math.cos(r);return t[0]=i*u*l-a*o*c,t[1]=a*o*l+i*u*c,t[2]=a*u*c-i*o*l,t[3]=a*u*l+i*o*c,t}const m=u.C,g=u.hZ,S=u.WQ,v=p,b=u.hs,A=u.Om,x=u.Cc,_=u.Bw,M=_,w=u.m3,R=w,q=u.S8,F=u.t2,I=u.aI,E=(0,i.vt)(),C=(0,i.fA)(1,0,0),O=(0,i.fA)(0,1,0),P=(0,n.vt)(),T=(0,n.vt)(),N=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:S,calculateW:function(t,e){const s=e[0],r=e[1],n=e[2];return t[0]=s,t[1]=r,t[2]=n,t[3]=Math.sqrt(Math.abs(1-s*s-r*r-n*n)),t},conjugate:d,copy:m,dot:A,equals:I,exactEquals:F,fromEuler:y,fromMat3:f,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const s=e[0],r=e[1],n=e[2],i=e[3],a=s*s+r*r+n*n+i*i,o=a?1/a:0;return t[0]=-s*o,t[1]=-r*o,t[2]=-n*o,t[3]=i*o,t},len:M,length:_,lerp:x,mul:v,multiply:p,normalize:q,random:function(t){const e=a.Ov,s=e(),r=e(),n=e(),i=Math.sqrt(1-s),o=Math.sqrt(s);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},rotateX:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u+a*o,t[1]=n*u+i*o,t[2]=i*u-n*o,t[3]=a*u-r*o,t},rotateY:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u-i*o,t[1]=n*u+a*o,t[2]=i*u+r*o,t[3]=a*u-n*o,t},rotateZ:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u+n*o,t[1]=n*u-r*o,t[2]=i*u+a*o,t[3]=a*u-i*o,t},rotationTo:function(t,e,s){const r=(0,o.Om)(e,s);return r<-.999999?((0,o.$A)(E,C,e),(0,o.Il)(E)<1e-6&&(0,o.$A)(E,O,e),(0,o.S8)(E,E),c(t,E,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(E,e,s),t[0]=E[0],t[1]=E[1],t[2]=E[2],t[3]=1+r,q(t,t))},scale:b,set:g,setAxes:function(t,e,s,r){const n=N;return n[0]=s[0],n[3]=s[1],n[6]=s[2],n[1]=r[0],n[4]=r[1],n[7]=r[2],n[2]=-e[0],n[5]=-e[1],n[8]=-e[2],q(t,f(t,n))},setAxisAngle:c,slerp:h,sqlerp:function(t,e,s,r,n,i){return h(P,e,n,i),h(T,s,r,i),h(t,P,T,2*i*(1-i)),t},sqrLen:R,squaredLength:w,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},56512(t,e,s){function r(t){let e,s,r=[],n=!1;return function(...i){return n&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;++s)if(t[s]!==e[s])return!1;return!0}(i,r)||(s=t.apply(this,i),e=this,r=i,n=!0),s}}s.d(e,{B:()=>r})},69397(t,e,s){s.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>n,Ul:()=>d,i5:()=>h,lM:()=>i,qK:()=>l});var r=s(34275);const n=16;function i(t){if(!t)return 0;let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let s=p;for(let r=0;r<e;r++)s+=o(t[r]);return s}(t);let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):l;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+h:Array.isArray(e)?c(e,n):0:0),0)}function c(t,e){return p+t.length*e}const l=32,p=16,h=145,d=64},95696(t,e,s){s.d(e,{A:()=>c});var r,n=s(5482),i=s(69540),a=s(25482),o=s(91429),u=s(93223);let c=class extends((0,i.OU)(a.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,n.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,s){s.r(e),s.d(e,{default:()=>c});var r=s(5482),n=s(69540),i=s(25482),a=s(91429),o=s(51850),u=s(93223);let c=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,o.vt)()}};(0,r.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},73836(t,e,s){s.d(e,{A:()=>d});var r=s(5482),n=s(69540),i=s(25482),a=s(91429),o=s(58083),u=s(9093),c=s(67026),l=s(82534),p=s(51850),h=s(24770);let d=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(h.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(f,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,o.o1)(t,f,this.translation,this.scale),t}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,o.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,r.Cg)([(0,a.MZ)()],d.prototype,"rotation",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"localMatrix",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"localMatrixInverse",null),d=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],d);const f=(0,l.vt)()},24770(t,e,s){s.d(e,{$I:()=>g,AU:()=>f,Cr:()=>p,g7:()=>m,i4:()=>l,ui:()=>h,up:()=>v,vt:()=>c,yo:()=>y});var r=s(34727),n=s(58083),i=s(67026),a=s(82534),o=s(35522),u=s(51850);function c(t=v){return[t[0],t[1],t[2],t[3]]}function l(t,e,s=c()){return(0,o.C)(s,t),s[3]=e,s}function p(t,e,s){return(0,o.$A)(s,t,e),(0,o.S8)(s,s),s[3]=-(0,o.g7)(t,e),s}function h(t,e=c()){const s=(0,n.l)(b,t);return S(e,(0,r.KJ)((0,i.Xd)(e,s))),e}function d(t,e,s=c()){return(0,i.x8)(b,t,g(t)),(0,i.x8)(A,e,g(e)),(0,i.lw)(b,A,b),S(s,(0,r.KJ)((0,i.Xd)(s,b)))}function f(t,e,s,r=c()){return l(u.Cw,t,x),l(u.JP,e,_),l(u.Cb,s,M),d(x,_,x),d(x,M,r),r}function y(t){return t}function m(t){return t[3]}function g(t){return(0,r.kU)(t[3])}function S(t,e){return t[3]=e,t}const v=[0,0,1,0],b=(0,a.vt)(),A=(0,a.vt)(),x=(c(),c()),_=c(),M=c()},31411(t,e,s){s.d(e,{GS:()=>M,gh:()=>R});var r=s(49186),n=s(56512),i=s(65864),a=s(4305),o=s(50954),u=s(52006),c=s(49663),l=s(46068),p=s(15507);const h=1e-6,d=[0,0];function f(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:r,minSegmentsPerCurve:n}){const i=s*s,a=e*e,o=1/r,u=this.interpolate(0),c=this.interpolate(1);(0,p.kb)(this.curveStart,u)>h&&t.push(u),this.initialize(u,c);const l=1/n;for(let t=n-1;t>0;t--){const e=t*l;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===i||!isFinite(i)||(0,p.kb)(this.arcStart,this.arcEnd)<i)&&(0===a||!isFinite(a)||this.getDeviation2()<a)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,p.kb)(this.curveEnd,c)>h&&t.push([...this.curveEnd]),t}}class m extends y{constructor(t,e){const[s,r,n]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[r,n],this._arcControlPoints=[r,n],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:r,tEnd:n}=this,[i,a]=this._arcControlPoints,o=(t-r)/(n-r),u=(0,p.RS)([],e,i,o),c=(0,p.RS)(d,i,a,o),l=(0,p.RS)([],a,s,o),h=(0,p.RS)([],u,c,o),f=(0,p.RS)([],c,l,o),y=(0,p.RS)([],h,f,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([f,l]),this.tEndStack.push(t),this.arcEndStack.push(y),this._arcControlPoints[0]=u,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[r,n]=this._curveControlPoints;return(0,a.B4)(e,r,n,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,r]=this._arcControlPoints;return Math.max((0,p.yE)(s,t,e),(0,p.yE)(r,t,e))}}class g extends y{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=(0,l.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,l.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,p.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,s,{cx:r,cy:n,radius:i,thetaStart:a,thetaEnd:o,isInvalid:u},{maxDeviation:c,maxSegmentLength:l,maxSegmentsPerCurve:d,minSegmentsPerCurve:f}){if(u)return t.push([...s]),t;const y=2*i,m=[r+i*Math.cos(a),n+i*Math.sin(a)],g=[r+i*Math.cos(o),n+i*Math.sin(o)];(0,p.kb)(e,m)>h&&t.push(m);const S=Math.abs(o-a),v=l>0&&l<y?2*Math.asin(l/y):S,b=c>0&&c<=i?2*Math.acos(1-c/i):S,A=Math.min(v,b),x=Math.min(d,Math.max(f,Math.ceil(Math.abs(S/A)))),_=1/x;for(let e=1;e<x;e++){const s=e*_,u=a*(1-s)+o*s;t.push([r+i*Math.cos(u),n+i*Math.sin(u)])}return t.push(g),(0,p.kb)(s,g)>h&&t.push([...s]),t}function v(t,e,s,r){return new m(e,s).densify(t,r)}function b(t,e,s,r){const n=(0,o.pM)(e,s),[i]=s.c;return S(t,e,i,n,r)}function A(t,e,s,r){const n=(0,c.io)(e,s),[i]=s.a;return S(t,e,i,n,r)}function x(t,e,s,r){const[n,i,a,o,u,c,l]=s.a;return 0===c||0===l?(t.push([...n]),t):new g(e,s).densify(t,r)}function _(t,e,s,r){return(0,u.Xq)(s)?(t.push([...s]),t):(0,u.n1)(s)?v(t,e,s,r):(0,u.aO)(s)?b(t,e,s,r):(0,u.DA)(s)?A(t,e,s,r):x(t,e,s,r)}function M(t,e={}){if(!(0,u.Ed)(t))return t;const s=f(e),r=(0,u.FD)(t),n=[];for(const t of r){const e=[];for(let r=0;r<t.length-1;r++){const n=r+1,i=[...(0,u.yP)(t[r])];0===r&&e.push(i),_(e,i,t[n],s)}n.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:n,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:n,spatialReference:t.spatialReference}}const w=(0,n.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function R(t,e,n){const a=new Set(e);return await async function(t,e,n){let i=null;for(const a of t)if(a&&(0,u.Ed)(a)&&null==a.spatialReference.xyTolerance&&(0,u.V8)(a,e)){const t=a.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=q(t);if(n.has(e))a.spatialReference=n.get(e);else{i||(i=await Promise.all([s.e(6042),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(6312)]).then(s.bind(s,78125)));const o=i.fromSpatialReference(t),u=o?.getTolerance();if(null==u)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const c=a.spatialReference.clone();c.read({xyTolerance:u}),a.spatialReference=c,n.set(e,c)}}}(t,a,n),t.map(t=>{if(!t||!(0,u.Ed)(t))return t;const s=t.spatialReference.xyTolerance;if(null==s)return t;const r=w(s);return(0,i.rS)(function(t,e,s){if(!(0,u.Ed)(t))return t;const r=new Set(e),n=f(s),i=(0,u.FD)(t),a=[];let o=!1;for(const t of i){const e=[];for(let s=0;s<t.length-1;s++){const i=s+1,a=[...(0,u.yP)(t[s])];0===s&&e.push(a);const c=t[i];(0,u.Xq)(c)?e.push([...c]):(0,u.n1)(c)&&!r.has("cubic-bezier")?v(e,a,c,n):(0,u.aO)(c)&&!r.has("circular-arc")?b(e,a,c,n):(0,u.DA)(c)&&!r.has("elliptic-arc")?A(e,a,c,n):(0,u.wY)(c)&&!r.has("elliptic-arc")?x(e,a,c,n):(e.push((0,u.tk)(c)),o=!0)}a.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...o?{curvePaths:a}:{paths:a}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...o?{curveRings:a}:{rings:a}}}(t,e,r))})}function q(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},63579(t,e,s){s.d(e,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>d,fH:()=>y,in:()=>f,yr:()=>c});var r=s(11254),n=s(4576),i=s(17676),a=s(20557);class o{constructor(t,e,s){this.assetName=t,this.assetMimeType=e,this.parts=s}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,n.aI)(this.parts,t.parts,(t,e)=>t.equals(e))}isOnService(t){return this.parts.every(e=>e.isOnService(t))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const s=await Promise.all(e.map(e=>e.toBlob(t)));return(0,i.Te)(t),new Blob(s)}}class u{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(t),e}}function c(t){return function(t){switch(t?.type){case"client":return Array.isArray(t.files)?t.files.some(h):h(t.files);case"service":return t.assets.some(h);case"loadable":return!0;default:return!1}}(t?.source)}const l=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function h(t){if(t instanceof File){const{type:e,name:s}=t;return l.test(e)||p.test(s)}return l.test(t.assetMimeType)||p.test(t.assetName)}function d(t,e){if(!t)return!1;const{source:s}=t;return function(t,e){return"service"===t.type&&t.assets.every(t=>t.isOnService(e))}(s,e)}function f(t,e){if(t===e)return!0;const{source:s}=t,{source:r}=e;if(s===r)return!0;if("service"===s.type&&"service"===r.type){if(s.assets.length!==r.assets.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...s.assets].sort(t),n=[...r.assets].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(n[t]))return!1;return!0}return!1}function y(t,e){return t instanceof File?(0,a.rq)(t,e):(0,a.z$)(t.assetMimeType,t.assetName,e)}function m(t){switch(t.type){case"client":return Array.isArray(t.files)?t.files:[t.files];case"service":return t.assets;case"loadable":return}}function g(t){return!!t.original}},27615(t,e,s){s.d(e,{CK:()=>u,Hq:()=>o,MW:()=>c,TE:()=>l,yJ:()=>p});var r=s(35522),n=s(86738),i=s(95696),a=s(18251);function o(t){return null!=t.origin}function u(t){return o(t.vertexSpace)}function c(t,e){if(!o(t))return null;const[s,r,i]=t.origin;return new n.A({x:s,y:r,z:i,spatialReference:e})}function l(t,e){const{x:s,y:r,z:n,spatialReference:o}=t,u=[s,r,n??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(o))?new a.default({origin:u}):new i.A({origin:u})}function p(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}},17136(t,e,s){s.d(e,{Y_:()=>E,O7:()=>F,el:()=>q});var r=s(92602),n=s(69052),i=s(49186),a=s(53966),o=s(39829),u=s(82799),c=s(16930),l=s(80754),p=s(21325),h=s(28735),d=s(52006),f=s(31411),y=s(11254),m=s(60408),g=s(65864),S=s(2272),v=s(84952),b=s(92300);const A=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function _(t){return"polyline"===t[0].type}function M(t,e,s){const r=1e6;if(e){const e=(0,d.Ed)(t)?(0,f.GS)(t,{maxSegmentLength:r}):function(t,e){if(!(t instanceof u.A||t instanceof o.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw A().error(t),new i.A("internal:geometry",t)}const s=(0,l.r8)(t),r=[];for(const t of s){const s=[];r.push(s),s.push([t[0][0],t[0][1]]);for(let r=0;r<t.length-1;r++){const n=t[r][0],i=t[r][1],a=t[r+1][0],o=t[r+1][1],u=Math.sqrt((a-n)*(a-n)+(o-i)*(o-i)),c=(o-i)/u,l=(a-n)/u,p=u/e;if(p>1){for(let t=1;t<=p-1;t++){const r=t*e,a=l*r+n,o=c*r+i;s.push([a,o])}const t=(u+Math.floor(p-1)*e)/2,r=l*t+n,a=c*t+i;s.push([r,a])}s.push([a,o])}}return function(t){return"polygon"===t.type}(t)?new o.A({rings:r,spatialReference:t.spatialReference}):new u.A({paths:r,spatialReference:t.spatialReference})}(t,r);t=(0,h.ci)(e,!0)}return s&&(t=(0,l.kS)(t,s)),t}function w(t,e,s){if(Array.isArray(t)){const r=t[0];if(r>e){const s=(0,l.kd)(r,e);t[0]=r+s*(-2*e)}else if(r<s){const e=(0,l.kd)(r,s);t[0]=r+e*(-2*s)}}else{const r=t.x;if(r>e){const s=(0,l.kd)(r,e);t=t.clone().offset(s*(-2*e),0)}else if(r<s){const e=(0,l.kd)(r,s);t=t.clone().offset(e*(-2*s),0)}}return t}function R(t,e){let s=-1;for(let r=0;r<e.cutIndexes.length;r++){const n=e.cutIndexes[r],i=e.geometries[r],a=(0,l.r8)(i);for(let t=0;t<a.length;t++){const e=a[t];e.some(s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const r=e[t][0];s=r>s?r:s}s=Number(s.toFixed(9));const r=-360*(0,l.kd)(s,180);for(let s=0;s<e.length;s++){const e=i.getPoint(t,s);i.setPoint(t,s,e.clone().offset(r,0))}return!0}})}if(n===s){if(x(t))for(const e of(0,l.r8)(i))t[n]=t[n].addRing(e);else if(_(t))for(const e of(0,l.r8)(i))t[n]=t[n].addPath(e)}else s=n,t[n]=i}return t}async function q(t,e,s){if(!Array.isArray(t))return q([t],e);e&&"string"!=typeof e&&A().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??r.A.geometryServiceUrl;let i,a,c,d,f,x,_,F,I=0;const E=[],C=[];for(const e of t)if(null!=e)if(i||(i=e.spatialReference,a=(0,p.Vp)(i),c=i.isWebMercator,x=c?102100:4326,d=l.j7[x].maxX,f=l.j7[x].minX,_=l.j7[x].plus180Line,F=l.j7[x].minus180Line),a)if("mesh"===e.type)C.push(e);else if("point"===e.type)C.push(w(e.clone(),d,f));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>w(t,d,f)),C.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,a);C.push(t.rings?new o.A(t):t)}else if(e.extent){const t=e.extent,s=(0,l.kd)(t.xmin,f)*(2*d);let r=0===s?e.clone():(0,l.kS)(e.clone(),s);t.offset(s,0);let{xmin:n,xmax:i}=t;n=Number(n.toFixed(9)),i=Number(i.toFixed(9)),t.intersects(_)&&i!==d?(I=i>I?i:I,r=M(r,c),E.push(r),C.push("cut")):t.intersects(F)&&n!==f?(I=i*(2*d)>I?i*(2*d):I,r=M(r,c,360),E.push(r),C.push("cut")):C.push(r)}else C.push(e.clone());else C.push(e);else C.push(e);let O=(0,l.kd)(I,d),P=-90;const T=O,N=new u.A;for(;O>0;){const t=360*O-180;N.addPath([[t,P],[t,-1*P]]),P*=-1,O--}if(E.length>0&&T>0){const e=R(E,await async function(t,e,s,r){const n=(0,S.Dl)(t),i=e[0].spatialReference,a={...r,responseType:"json",query:{...n.query,f:"json",sr:(0,p.YX)(i),target:JSON.stringify({geometryType:(0,m.$B)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},o=await(0,y.A)(n.path+"/cut",a),{cutIndexes:u,geometries:c=[]}=o.data;return{cutIndexes:u,geometries:c.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=i,e})}}(n,E,N,s)),r=[],i=[];for(let s=0;s<C.length;s++){const n=C[s];if("cut"!==n)i.push(n);else{const n=e.shift(),a=t[s];null!=a&&"polygon"===a.type&&a.rings&&a.rings.length>1&&n.rings.length>=a.rings.length?(r.push(n),i.push("simplify")):i.push(c?(0,h.Gh)(n):n)}}if(!r.length)return i;const a=await async function(t,e,s){const r="string"==typeof t?(0,v.An)(t):t,n=e[0].spatialReference,i=(0,m.$B)(e[0]),a={...s,query:{...r.query,f:"json",sr:(0,p.YX)(n),geometries:JSON.stringify((0,b.X)(e))}},{data:o}=await(0,y.A)(r.path+"/simplify",a);return(0,b.V)(o.geometries,i,n)}(n,r,s),o=[];for(let t=0;t<i.length;t++){const e=i[t];"simplify"!==e?o.push(e):o.push(c?(0,h.Gh)(a.shift()):a.shift())}return o}const D=[];for(let t=0;t<C.length;t++){const e=C[t];if("cut"!==e)D.push(e);else{const t=E.shift();D.push(!0===c?(0,h.Gh)(t):t)}}return D}function F(t,e,s){const r=(0,p.Vp)(s);if(null==r)return t;const[n,i]=r.valid,a=2*i;let o=0,u=0;e>i?o=Math.ceil(Math.abs(e-i)/a):e<n&&(o=-Math.ceil(Math.abs(e-n)/a)),t>i?u=Math.ceil(Math.abs(t-i)/a):t<n&&(u=-Math.ceil(Math.abs(t-n)/a));let c=t+(o-u)*a;const l=c-e;return l>i?c-=a:l<n&&(c+=a),c}function I(t){const e=(0,p.Vp)(t);if(null==e)return null;const[s,r]=e.valid;return new n.hr(s,r)}const E=I(c.A.WGS84);I(c.A.WebMercator)},80754(t,e,s){s.d(e,{j7:()=>o,kS:()=>c,kd:()=>u,r8:()=>l});var r=s(82799),n=s(16930),i=s(60408),a=s(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function u(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){if((0,a.Ed)(t))for(const s of function(t){return(0,i.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of s){if((0,a.aO)(t)){const[s,r]=t.c;s[0]+=e,r[0]+=e;continue}if((0,a.FG)(t)){const[s,r]=t.a;s[0]+=e,r[0]+=e;continue}if((0,a.n1)(t)){const[s,r,n]=t.b;s[0]+=e,r[0]+=e,n[0]+=e;continue}t[0]+=e}for(const s of l(t))for(const t of s)t[0]+=e;return t}function l(t){return(0,i.Bi)(t)?t.rings:t.paths}},99352(t,e,s){s.d(e,{F:()=>r,P:()=>n});const r={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},n={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}},65515(t,e,s){s.r(e),s.d(e,{default:()=>Y});var r=s(5482),n=s(92602),i=s(11254),a=s(4576),o=s(49186),u=s(44208),c=s(66552),l=s(92474),p=s(53966),h=s(93637),d=s(17676),f=s(36708),y=s(84952),m=s(13069),g=s(91429),S=s(5443),v=s(16930),b=s(95696),A=s(27615),x=s(63579),_=s(52106),M=s(86211);function w(t){return"object"==typeof t&&null!=t&&"objectId"in t&&!!t.objectId}function R(t){return"object"==typeof t&&null!=t&&"globalId"in t&&!!t.globalId}function q(t){return t.every(R)}var F=s(91218),I=s(65864),E=s(73836),C=s(21325);async function O(t,e,s){const{geometry:r}=e,n={...e.attributes};if(null!=s&&"mesh"===r?.type){const{transformFieldRoles:e}=s,{origin:i,spatialReference:a,vertexSpace:o}=r,u=r.transform??new E.A,c="local"===o.type,l=t.spatialReference,p=l.isGeographic,h=(0,C.aI)(l,a),d=(0,F.isEqualBaseGCS)(a,l)&&(0,F.canProjectWithoutEngine)(a,l);if(!(c&&p&&d||!c&&!p&&h))return null;const f=(0,F.projectWithoutEngine)(i,a,l);if(null==f)return null;if(n[e.originX]=f.x,n[e.originY]=f.y,n[e.originZ]=f.z??0,null!=u){const{translation:t,scale:s,rotation:r}=u,i=c?1:(0,M.KX)(a)/(0,M.KX)(l);n[e.translationX]=t[0]*i,n[e.translationY]=t[2]*i,n[e.translationZ]=-t[1]*i,n[e.scaleX]=s[0],n[e.scaleY]=s[2],n[e.scaleZ]=s[1],n[e.rotationX]=r[0],n[e.rotationY]=r[2],n[e.rotationZ]=-r[1],n[e.rotationDeg]=r[3]}return{attributes:n}}return null==r?{attributes:n}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:n}}async function P(t,e){const s=await Promise.all((e.addAttachments??[]).map(e=>T(t,e))),r=await Promise.all((e.updateAttachments??[]).map(e=>T(t,e))),n=e.deleteAttachments??[];return s.length||r.length||n.length?{adds:s,updates:r,deletes:[...n]}:null}async function T(t,e){const{feature:s,attachment:r}=e,{globalId:n,name:i,contentType:a,data:o,uploadId:u}=r,c={globalId:n};if(s&&("attributes"in s?c.parentGlobalId=s.attributes?.[t.globalIdField]:s.globalId&&(c.parentGlobalId=s.globalId)),u)c.uploadId=u;else if(o){const t=await(0,y._0)(o);t&&(c.contentType=t.mediaType,c.data=t.data),o instanceof File&&(c.name=o.name)}return i&&(c.name=i),a&&(c.contentType=a),c}function N(t,e,s){if(!e||0===e.length)return[];if(s&&q(e))return e.map(t=>t.globalId);if(function(t){return t.every(w)}(e))return e.map(t=>t.objectId);const r=s?t.globalIdField:t.objectIdField;return r?e.map(t=>t.getAttribute(r)):[]}function D(t){const e=!0===t.success?null:t.error||{code:void 0,description:"Feature edit failed"};return{objectId:t.objectId,globalId:t.globalId,error:e?new o.A("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}function k(t,e){return new _.A({attributes:t.attributes,geometry:(0,I.rS)({...t.geometry,spatialReference:e})})}function Z(t,e){return{adds:t?.adds?.map(t=>k(t,e))||[],updates:t?.updates?.map(t=>({original:k(t[0],e),current:k(t[1],e)}))||[],deletes:t?.deletes?.map(t=>k(t,e))||[],spatialReference:e}}var Q=s(64714),j=s(64314),J=s(60694),V=s(15426),U=s(20557),G=s(99199),B=s(96520),X=s(61956),z=s(79677),L=s(20816);const $=new c.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),W=new c.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let Y=class extends l.x_{constructor(t){super(t),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.refresh=(0,d.sg)(async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(t){const e=this.layer.sourceJSON,s=this._fetchService(e,{...t}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,t)).then(()=>this._ensureLatestMetadata(t));return this.addResolvingPromise(s),Promise.resolve(this)}initialize(){this.addHandles([(0,f.wB)(()=>{const t=this.layer;return t&&"lastEditsEventDate"in t?t.lastEditsEventDate:null},t=>this._handleLastEditsEventChange(t))])}destroy(){this._removeEditInterceptor()}get queryTask(){const{capabilities:t,parsedUrl:e,gdbVersion:s,spatialReference:r,fieldsIndex:n,uniqueIdFields:i}=this.layer,a="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,c=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==a,l=c&&t?.query.supportsFormatPBFWithCurves,p=t?.operations?.supportsQueryAttachments??!1,h=t?.query?.relativeTimeBinWindow??0,d=e.path;return new j.A({dynamicDataSource:o,fieldsIndex:n,gdbVersion:s,infoFor3D:a,pbfSupported:c,pbfSupportedWithCurves:l,queryAttachmentsSupported:p,relativeTimeBinWindow:h,sourceSpatialReference:r,uniqueIdFields:i,url:d})}async addAttachment(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r=t.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+r+"/addAttachment",a=this._getLayerRequestOptions(),o=this._getFormDataForAttachment(e,a.query);try{return D((await(0,i.A)(n,{body:o})).data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(r,t)}}async updateAttachment(t,e,s){await this.load();const{layer:r}=this;await(0,V.VA)(r,"editing");const n=t.attributes[r.objectIdField],a=r.parsedUrl.path+"/"+n+"/updateAttachment",o=this._getLayerRequestOptions({query:{attachmentId:e}}),u=this._getFormDataForAttachment(s,o.query);try{return D((await(0,i.A)(a,{body:u})).data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(n,t)}}async applyEdits(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r="infoFor3D"in s?s.infoFor3D:null,n=null!=r,u=n||(e?.globalIdUsed??!1),c=n?await this._uploadMeshesAndGetAssetMapEditsJSON(t):null,l=t.addFeatures?.map(t=>O(this.layer,t,r))??[],p=(await Promise.all(l)).filter(a.Ru),h=t.updateFeatures?.map(t=>O(this.layer,t,r))??[],d=(await Promise.all(h)).filter(a.Ru),f=N(this.layer,t.deleteFeatures,u);(0,B.u)(p,d,s.spatialReference);const y=await P(this.layer,t),m=s.capabilities.editing.supportsAsyncApplyEdits&&n,g=e?.gdbVersion||s.gdbVersion,S={gdbVersion:g,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:e?.returnEditMoment,trueCurveClient:e?.editsRespectTrueCurves,usePreviousEditMoment:e?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);const v=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(s.url,g,s.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");e?.returnServiceEditsOption?(S.edits=JSON.stringify([{id:s.layerId,adds:p.length?p:null,updates:d.length?d:null,deletes:f.length?f:null,attachments:y,assetMaps:c}]),S.returnServiceEditsOption=$.toJSON(e?.returnServiceEditsOption),S.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(S.adds=p.length?JSON.stringify(p):null,S.updates=d.length?JSON.stringify(d):null,S.deletes=f.length?u?JSON.stringify(f):f.join(","):null,S.attachments=y&&JSON.stringify(y),S.assetMaps=null!=c?JSON.stringify(c):void 0);const b=this._getLayerRequestOptions({method:"post",query:S});v&&(b.authMode="immediate",b.query.returnEditMoment=!0,b.query.sessionId=L.TA);const A=e?.returnServiceEditsOption?s.url:s.parsedUrl.path;let x;try{x=m?await this._asyncApplyEdits(A+"/applyEdits",b):await(0,i.A)(A+"/applyEdits",b)}catch(t){if(!function(t){const e=t.details.raw,s=+e.code,r=+e.extendedCode;return 500===s&&(-2147217144===r||-2147467261===r)}(t))throw t;b.authMode="immediate",x=m?await this._asyncApplyEdits(A+"/applyEdits",b):await(0,i.A)(A+"/applyEdits",b)}return this._createEditsResult(x)}async deleteAttachments(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r=t.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,i.A)(n,this._getLayerRequestOptions({query:{attachmentIds:e.join(",")},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(t){throw this._createAttachmentErrorResult(r,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then(async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:s,url:r}=this.layer,{data:n}=await(0,i.A)(`${r}/${s}`,e),{id:a,extent:o,fullExtent:u,timeExtent:c}=n,l=o||u;return{id:a,fullExtent:l&&S.A.fromJSON(l),timeExtent:c&&z.A.fromJSON({start:c[0],end:c[1]})}})}async queryAttachments(t,e={}){await this.load();const s=this._getLayerRequestOptions(e);return this.queryTask.executeAttachmentQuery(t,s)}async queryFeatures(t,e){await this.load();const s=await this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)});if(t.outStatistics?.length&&s.features.length){const e=new Map;if(s.features.forEach(s=>{const r=s.attributes;t.outStatistics?.forEach(({outStatisticFieldName:t})=>{if(t){const s=t.toLowerCase();s&&s in r&&t!==s&&(r[t]=r[s],delete r[s],e.set(s,t))}})}),null!=s.fields)for(const t of s.fields){const s=e.get(t.name.toLowerCase());null!=s&&(t.name=s)}}return s}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryPivot(t,e){return await this.load(),this.queryTask.executePivotQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryAttributeBins(t,e){return await this.load(),this.queryTask.executeAttributeBinsQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}async fetchPublishingStatus(){if(!(0,J.Wo)(this.layer.url))return"unavailable";const t=(0,y.fj)(this.layer.url,"status"),e=await(0,i.A)(t,{query:{f:"json"}});return W.fromJSON(e.data.status)}async uploadAssets(t,e){const{uploadAssets:r}=await s.e(1384).then(s.bind(s,31384));return r(t,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},e)}_handleLastEditsEventChange(t){const e=this.layer;if(null==t||!("capabilities"in e)||!("effectiveCapabilities"in e))return;if(e.capabilities?.operations?.supportsEditing||!e.effectiveCapabilities?.operations?.supportsEditing)return;const s=e.url;null!=s&&("layerId"in e&&(0,y.fj)(s,e.layerId.toString()),this._getOrCreateEditInterceptor(s).before=e=>{const s=e.requestOptions.method??"auto";if("auto"===s||"head"===s){const s=e.requestOptions.query??{};s._ts=t.getTime(),e.requestOptions.query=s}})}_getOrCreateEditInterceptor(t){return null==this._editInterceptor&&(this._editInterceptor={urls:t},n.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,a.TF)(n.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(t,e){const s=(await(0,i.A)(t,e)).data.statusUrl;for(;;){const t=(await(0,i.A)(s,{query:{f:"json"},responseType:"json"})).data;switch(t.status){case"Completed":return(0,i.A)(t.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,d.Pl)(H)}}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const s={};(0,u.A)("featurelayer-advanced-symbols")&&(s.returnAdvancedSymbols=!0),e?.cacheBust&&(s._ts=Date.now());const{data:r}=await(0,i.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:s,signal:e?.signal}));t=r}this.layer.applyPreferredHost(t),this.sourceJSON=await this._patchServiceJSON(t,e?.signal);const s=t.type;if(!this.supportedSourceTypes.has(s))throw new o.A("feature-layer-source:unsupported-type",`Source type "${s}" is not supported`)}async _patchServiceJSON(t,e){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,Q.F0)(t.geometryType).renderer;(0,h.sM)("drawingInfo.renderer",e,t)}if("esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),null==t.extent)try{const{data:s}=await(0,i.A)(this.layer.url,this._getLayerRequestOptions({signal:e}));s.spatialReference&&(t.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:s.spatialReference})}catch(t){(0,d.QP)(t)}return t}async _ensureLatestMetadata(t){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...t,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(t){const{addAssetFeatures:e}=t;if(!e?.length)return null;if(await this._areAllAssetsAlreadyMapped(e))return null;const r=t.addFeatures.filter(t=>t.geometry);if(e.length!==r.length+t.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");const n=new Array,i=new Map;for(const t of e){const{geometry:e}=t,{vertexSpace:r}=e;if((0,A.Hq)(r))n.push(e);else{const r=e.origin,{convertMeshVertexSpace:a}=await Promise.all([s.e(6860),s.e(4496)]).then(s.bind(s,28846)),o=await a(e,new b.A({origin:[r.x,r.y,r.z??0]}));i.set(o,e),t.geometry=o,n.push(o)}}await this.uploadAssets(n);for(const[t,e]of i)e.addExternalSources(t.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(e),updates:[],deletes:[]}}_getAssetMapEditsJSON(t){const e=new Array,s=this.layer.globalIdField,r=this.layer.parsedUrl;for(const n of t){const t=n.geometry,{metadata:i}=t,a=i.getExternalSourcesOnService(r),o=n.getAttribute(s);if(0===a.length){p.A.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=a.find(x.dK)??a[0];for(const t of u.assets)1===t.parts.length?e.push({globalId:(0,m.yS)(),parentGlobalId:o,assetName:t.assetName,assetHash:t.parts[0].partHash,flags:[]}):p.A.getLogger(this).error(`Skipping asset ${t.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return e}_createEditsResult(t){const e=t.data,{layerId:s}=this.layer,r=[];let n=null;if(Array.isArray(e))for(const t of e)r.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===s&&(n={addResults:t.addResults??[],updateResults:t.updateResults??[],deleteResults:t.deleteResults??[],attachments:t.attachments,editMoment:t.editMoment});else n=e;const i=function(t){const e=t?.assetMaps;if(e){for(const t of e.addResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`);for(const t of e.updateResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`)}const s=t?.attachments,r={addFeatureResults:t?.addResults?.map(D)??[],updateFeatureResults:t?.updateResults?.map(D)??[],deleteFeatureResults:t?.deleteResults?.map(D)??[],addAttachmentResults:s?.addResults?s.addResults.map(D):[],updateAttachmentResults:s?.updateResults?s.updateResults.map(D):[],deleteAttachmentResults:s?.deleteResults?s.deleteResults.map(D):[]};return t?.editMoment&&(r.editMoment=t.editMoment),r}(n);if(r.length>0){i.editedFeatureResults=[];for(const t of r){const{editedFeatures:e}=t,s=e?.spatialReference?new v.A(e.spatialReference):null;i.editedFeatureResults.push({layerId:t.id,editedFeatures:Z(e,s)})}}return i}_createAttachmentErrorResult(t,e){const s=e.details.messages?.[0]||e.message,r=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new o.A("feature-layer-source:attachment-failure",s,{code:r})}}_getFormDataForAttachment(t,e){const s=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(s)for(const t in e){const r=e[t];null!=r&&(s.set?s.set(t,r):s.append(t,r))}return s}_getLayerRequestOptions(t={}){const{layer:e,layer:{parsedUrl:s,gdbVersion:r}}=this;return{...t,query:{gdbVersion:r,layer:"dynamicDataSource"in e&&e.dynamicDataSource?JSON.stringify({source:e.dynamicDataSource}):void 0,...s.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}async _areAllAssetsAlreadyMapped(t){const{layer:e}=this,{globalIdField:s,parsedUrl:r}=e,n="infoFor3D"in e?e.infoFor3D:null;if(null==n||null==s)return!1;const i=(0,U.JZ)(n);if(null==i)return!1;const o=(0,y.fj)(r.path,`../${i.id}`),u=new Array;for(const e of t){if(!(e.geometry.metadata.getExternalSourcesOnService(r).length>0))return!1;u.push(e)}const c=u.map(t=>t.getAttribute(s)).filter(a.Ru);if(0===c.length)return!1;const{assetMapFieldRoles:{parentGlobalId:l,assetHash:p}}=n,h=new X.A({where:`${l} IN (${c.map(t=>`'${t}'`)})`,outFields:[p,l],returnGeometry:!1}),d=await(0,G.s)(o,h),{features:f}=d;return 0!==f.length&&!u.some(t=>{const e=t.getAttribute(s);if(!e)return!0;const{metadata:n}=t.geometry,i=f.filter(t=>t.getAttribute(l)===e);if(0===i.length)return!0;const a=i.map(t=>t.getAttribute(p));return n.getExternalSourcesOnService(r).flatMap(({source:t})=>t.assets.flatMap(t=>t.parts.map(t=>t.partHash))).some(t=>a.every(e=>t!==e))})}};(0,r.Cg)([(0,g.MZ)()],Y.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"layer",void 0),(0,r.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"supportedSourceTypes",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],Y.prototype,"queryTask",null),Y=(0,r.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],Y);const H=1e3},64314(t,e,s){s.d(e,{A:()=>w});var r=s(5482),n=s(69622),i=s(49186),a=s(44208),o=s(17676),u=s(84952),c=s(91429),l=s(21325),p=s(20557),h=s(2272),d=s(65615),f=s(20615),y=s(74910),m=s(78286),g=s(99199),S=s(62815),v=s(63746);class b{constructor(t){this._options=t,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=b._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(t){"string"==typeof t&&(this.featureSet.objectIdFieldName=t)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);const{spatialReference:t,features:e}=this.featureSet;if(t)for(const{geometry:s}of e)s&&(s.spatialReference=t)}feature(){this._attributesClass??=(0,v._7)(this.featureSet.fields?.map(t=>t.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([t,e]){this.featureSet.features.at(-1).centroid={x:t,y:e}}geometry(t,e,s){this._previousX=this._previousY=0,this._lengths=s;let r,{hasZ:n,hasM:i}=this.featureSet;switch(n??=!1,i??=!1,this._i=0,this._vertex=[0,0],n&&this._vertex.push(0),i&&this._vertex.push(0),this._finishVertex=b._finishVertexNonPoint,e){case"esriGeometryPoint":this._point={x:0,y:0},r=this._point,this._finishVertex=n?i?b._finishVertexPointXYZM:b._finishVertexPointXYZ:i?b._finishVertexPointXYM:b._finishVertexPointXY;break;case"esriGeometryMultipoint":r={points:[],hasZ:n,hasM:i},this._part=r.points,this._parts=[];break;case"esriGeometryPolyline":r={paths:[],hasZ:n,hasM:i},this._parts=r.paths,this._part=[];break;case"esriGeometryPolygon":r={rings:[],hasZ:n,hasM:i},this._parts=r.rings,this._part=[]}1===t?(this.featureSet.queryGeometry=r,this.featureSet.queryGeometryType=e,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=r}coord(t){const e=this._vertex;e[this._i++]=t,this._i<e.length||(this._i=0,this._transformInPlace&&(e[0]+=this._previousX,e[1]+=this._previousY,[this._previousX,this._previousY]=e,this._transformInPlace(e)),this._finishVertex(this))}curvedGeometry(t,e,s,r){let n,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,t){case"esriGeometryPoint":case"esriGeometryMultipoint":throw new Error(`Curved ${t} does not make sense`);case"esriGeometryPolyline":n={paths:[],curvePaths:[],hasZ:i,hasM:a},this._parts=n.curvePaths,this._part=[];break;case"esriGeometryPolygon":n={rings:[],curveRings:[],hasZ:i,hasM:a},this._parts=n.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=n}startCurvedPart(t){this._part.push(this._transform(t))}finishCurvedPart(t){this._parts.push(this._part),this._part=[]}lineSegment(t,e){this._part.push(this._transform(e))}bezierSegment(t,e,s,r){this._part.push({b:[this._transform(e),this._transformXY(s),this._transformXY(r)]})}circularArcSegment(t,e,s){this._part.push({c:[this._transform(e),this._transformXY(s)]})}ellipticArcSegment(t,e,s,r,n,i,a,o){this._part.push({a:[this._transform(e),this._transformXY(s),r,n,i,a,o]})}static _finishVertexPointXY({_point:t,_vertex:e}){[t.x,t.y]=e}static _finishVertexPointXYZ({_point:t,_vertex:e}){[t.x,t.y,t.z]=e}static _finishVertexPointXYM({_point:t,_vertex:e}){[t.x,t.y,t.m]=e}static _finishVertexPointXYZM({_point:t,_vertex:e}){[t.x,t.y,t.z,t.m]=e}static _finishVertexNonPoint(t){const{_part:e,_parts:s,_lengths:r,_vertex:n}=t;e.push([...n]),e.length<r[s.length]||(t._previousX=t._previousY=0,t._part=[],s.push(e))}_setVertexTransformer(){const{sourceSpatialReference:t}=this._options,{spatialReference:e,hasZ:s,transform:r}=this.featureSet,n=s?(0,S.d)(t,e):1;this._transformInPlace??=(0,v.Mv)(this.featureSet,n),this._transformInPlaceXY??=(0,v.Mv)({transform:r})}_transform(t){const e=[...t];return this._transformInPlace?.(e),e}_transformXY(t){const e=[t[0],t[1]];return this._transformInPlaceXY?.(e),e}}var A=s(80893),x=s(22671),_=s(61956);async function M(t,e,s,r){const n=(0,h.Dl)(t),i={...s},a=_.A.from(e),o=!a.quantizationParameters;return await(0,A.IJ)(n,a,new b({sourceSpatialReference:a.sourceSpatialReference,applyTransform:o}),i,r)}let w=class extends n.A{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(t,e){const s=await this.executeJSON(t,e);return this.featureSetFromJSON(t,s,e)}async executeJSON(t,e){const s=this._normalizeQuery(t),r=null!=t.outStatistics?.[0],n=(0,a.A)("featurelayer-pbf-statistics");let i;if(this.pbfSupported&&(!r||n)&&(!t.returnTrueCurves||this.pbfSupportedWithCurves))try{i=await M(this.url,s,e,{uniqueIdFields:this.uniqueIdFields})}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.pbfSupported=!1}return i??=await(0,g.e)(this.url,s,e,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(i.fields),i}async featureSetFromJSON(t,e,r){if(!this._queryGet3DObjectFormat(t)||null==this.infoFor3D||!e.features)return x.A.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,o.qr)(Promise.all([s.e(6860),s.e(7005),s.e(6754),s.e(2761),s.e(7634),s.e(8883)]).then(s.bind(s,40050)),r);return n(t,this.infoFor3D,e)}executeForCount(t,e){return(0,f.I)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(t,e){return(0,y.L)(this.url,this._normalizeQuery(t),e)}executeForIds(t,e){return(0,m.V)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(t,e){const[{default:r},{executeRelationshipQuery:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(s.bind(s,26591)),s.e(1763).then(s.bind(s,71763))]),e);let i=r.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeRelationshipQueryForCount(t,e){const[{default:r},{executeRelationshipQueryForCount:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(s.bind(s,26591)),s.e(1763).then(s.bind(s,71763))]),e);let i=r.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeAttachmentQuery(t,e){const{executeAttachmentQuery:r,fetchAttachments:n,processAttachmentQueryResult:i}=await(0,o.qr)(s.e(9239).then(s.bind(s,9239)),e),a=(0,h.Dl)(this.url);return i(a,await(this.queryAttachmentsSupported?r(a,t,e):n(a,t,e)))}async executeAttributeBinsQuery(t,e){const{executeAttributeBinsQuery:r}=await(0,o.qr)(s.e(3103).then(s.bind(s,33103)),e);return r(this.parsedUrl,t,e)}async executePivotQuery(t,e){const{executePivotQuery:r}=await(0,o.qr)(s.e(566).then(s.bind(s,80566)),e);return r(this.parsedUrl,t,e)}async executeTopFeaturesQuery(t,e){const{executeTopFeaturesQuery:r}=await(0,o.qr)(s.e(1273).then(s.bind(s,11273)),e);return r(this.parsedUrl,t,this.sourceSpatialReference,e)}async executeForTopIds(t,e){const{executeForTopIds:r}=await(0,o.qr)(s.e(1277).then(s.bind(s,21277)),e);return r(this.parsedUrl,t,e)}async executeForTopExtents(t,e){const{executeForTopExtents:r}=await(0,o.qr)(s.e(8018).then(s.bind(s,8018)),e);return r(this.parsedUrl,t,e)}async executeForTopCount(t,e){const{executeForTopCount:r}=await(0,o.qr)(s.e(980).then(s.bind(s,10980)),e);return r(this.parsedUrl,t,e)}_normalizeQuery(t){let e=_.A.from(t);e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?d.A.from(t.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:s}=this,r=this._queryGet3DObjectFormat(t);if(null!=s&&r){if(e=e===t?e.clone():e,e.formatOf3DObjects=r,e.outSpatialReference&&!(0,l.aI)(e.outSpatialReference,this.sourceSpatialReference))throw new i.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==e.outFields||!e.outFields.includes("*")){e=e===t?e.clone():e,null==e.outFields&&(e.outFields=[]);const{originX:r,originY:n,originZ:i,translationX:a,translationY:o,translationZ:u,scaleX:c,scaleY:l,scaleZ:p,rotationX:h,rotationY:d,rotationZ:f,rotationDeg:y}=s.transformFieldRoles;e.outFields.push(r,n,i,a,o,u,c,l,p,h,d,f,y)}}return e}_normalizeFields(t){if(null!=this.fieldsIndex&&null!=t)for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryGet3DObjectFormat({returnGeometry:t,multipatchOption:e,outStatistics:s}){return!0!==t||"xyFootprint"===e||s?null:(0,p.Hz)(this.infoFor3D)}};(0,r.Cg)([(0,c.MZ)({type:d.A})],w.prototype,"dynamicDataSource",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"infoFor3D",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,r.Cg)([(0,c.MZ)()],w.prototype,"pbfSupported",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"pbfSupportedWithCurves",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"queryAttachmentsSupported",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"relativeTimeBinWindow",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"sourceSpatialReference",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"uniqueIdFields",void 0),(0,r.Cg)([(0,c.MZ)({type:String})],w.prototype,"url",void 0),w=(0,r.Cg)([(0,c.$K)("esri.layers.graphics.sources.support.QueryTask")],w)},64714(t,e,s){s.d(e,{F0:()=>o,Vx:()=>l,e2:()=>h,f:()=>d});var r=s(44208),n=s(4718),i=s(99352),a=s(93470);function o(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?a.Cb:"esriGeometryPolyline"===t?a.yM:a.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let c=1;function l(t,e){if((0,r.A)("esri-csp-restrictions"))return()=>({[e]:null,...t});try{let s=`this${p(e)} = null;`;for(const e in t)s+=`this${p(e)} = ${JSON.stringify(t[e])};`;const r=new Function(`\n return class AttributesClass$${c++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new r}catch(s){return()=>({[e]:null,...t})}}function p(t){return u.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function h(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(t)}}]}function d(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:e,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},92300(t,e,s){s.d(e,{V:()=>a,X:()=>i});var r=s(60408),n=s(65864);function i(t){return{geometryType:(0,r.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function a(t,e,s){const r=(0,n.xD)(e);return t.map(t=>{const e=r.fromJSON(t);return e.spatialReference=s,e})}},20615(t,e,s){s.d(e,{I:()=>a});var r=s(2272),n=s(80893),i=s(61956);function a(t,e,s,a){return(0,n.gW)((0,r.Dl)(t),i.A.from(e),s,a)}},74910(t,e,s){s.d(e,{L:()=>o});var r=s(5443),n=s(2272),i=s(80893),a=s(61956);async function o(t,e,s){const o=(0,n.Dl)(t),u=await(0,i.Jf)(o,a.A.from(e),{...s}),c=u.extent;return!c||isNaN(c.xmin)||isNaN(c.ymin)||isNaN(c.xmax)||isNaN(c.ymax)?{count:u.count,extent:null}:{count:u.count,extent:r.A.fromJSON(c)}}},78286(t,e,s){s.d(e,{V:()=>a});var r=s(2272),n=s(80893),i=s(61956);async function a(t,e,s,a){const o=(0,r.Dl)(t),u=await(0,n.Pk)(o,i.A.from(e),s,a);return u.objectIds??function(t){if(t)return function(t){return!Array.isArray(t[0])}(t)?t:t.map(t=>JSON.stringify(t))}(u.uniqueIds)??[]}},99199(t,e,s){s.d(e,{e:()=>u,s:()=>o});var r=s(2272),n=s(80893),i=s(22671),a=s(61956);async function o(t,e,s,r){const n=await u(t,e,s,r);return i.A.fromJSON(n)}function u(t,e,s,i){const o=(0,r.Dl)(t),u={...s},c=a.A.from(e);return(0,n.eW)(o,c,c.sourceSpatialReference,u,i)}},63746(t,e,s){function r(t){return class{constructor(){for(const e of t)this[e]=null}}}function n(t,e=1){const{transform:s,hasZ:r,hasM:n}=t;if(null==s)return r&&1!==e?t=>{t[2]*=e}:null;const[i,a]=function(t,e,s,r){let{scale:n,translate:i,originPosition:a}=t;return"upperLeft"===a&&(n=n.map((t,e)=>1===e?-t:t)),e&&(n=n.map((t,e)=>2===e?t*r:t),i=i.map((t,e)=>2===e?t*r:t)),!e&&s&&(n=n.filter((t,e)=>2!==e),i=i.filter((t,e)=>2!==e)),[n,i]}(s,r,n,e),o=t.hasZ?3:2;return t=>{for(let e=0;e<t.length&&(e!==o||0!==t[e]);++e)t[e]=t[e]*i[e]+a[e]}}s.d(e,{Mv:()=>n,_7:()=>r}),s(53966)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3636],{69052(t,e,s){s.d(e,{hr:()=>n,ie:()=>u,uC:()=>o});var r=s(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,s=!1){return i(this.range,this.min,this.max,t,e,s)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,s){return t<e?e:e+a(this.range,t-e,s)}minimalMonotonic(t,e,s){return i(this.range,t,t+this.range,e,s)}center(t,e,s){return e=this.monotonic(t,e,s),this.normalize((t+e)/2,s)}diff(t,e,s){return this.monotonic(t,e,s)-t}shortestSignedDiff(t,e){t=this.normalize(t);const s=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(s)<Math.abs(r)?s:r}contains(t,e,s){return e=this.minimalMonotonic(t,e),(s=this.minimalMonotonic(t,s))>t&&s<e}}function i(t,e,s,r,n=0,i=!1){return(r-=n)<e?r+=a(t,e-r):r>s&&(r-=a(t,r-s)),i&&r===s&&(r=e),r+n}function a(t,e,s=0){return Math.ceil((e-s)/t)*t+s}const o=new n(0,2*Math.PI),u=(new n(-Math.PI,Math.PI),new n(0,360))},82534(t,e,s){function r(){return[0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3]]}s.d(e,{o8:()=>n,vt:()=>r,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:n,create:r,fromValues:function(t,e,s,r){return[t,e,s,r]}},Symbol.toStringTag,{value:"Module"}))},67026(t,e,s){s.d(e,{A6:()=>y,Xd:()=>l,Xr:()=>d,hZ:()=>g,lw:()=>p,t2:()=>F,x8:()=>c});var r=s(29242),n=s(82534),i=s(51850),a=s(34304),o=s(35522),u=s(78955);function c(t,e,s){s*=.5;const r=Math.sin(s);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(s),t}function l(t,e){const s=2*Math.acos(e[3]),r=Math.sin(s/2);return r>(0,a.FD)()?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),s}function p(t,e,s){const r=e[0],n=e[1],i=e[2],a=e[3],o=s[0],u=s[1],c=s[2],l=s[3];return t[0]=r*l+a*o+n*c-i*u,t[1]=n*l+a*u+i*o-r*c,t[2]=i*l+a*c+r*u-n*o,t[3]=a*l-r*o-n*u-i*c,t}function h(t,e,s,r){const n=e[0],i=e[1],o=e[2],u=e[3];let c,l,p,h,d,f=s[0],y=s[1],m=s[2],g=s[3];return l=n*f+i*y+o*m+u*g,l<0&&(l=-l,f=-f,y=-y,m=-m,g=-g),1-l>(0,a.FD)()?(c=Math.acos(l),p=Math.sin(c),h=Math.sin((1-r)*c)/p,d=Math.sin(r*c)/p):(h=1-r,d=r),t[0]=h*n+d*f,t[1]=h*i+d*y,t[2]=h*o+d*m,t[3]=h*u+d*g,t}function d(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function f(t,e){const s=e[0]+e[4]+e[8];let r;if(s>0)r=Math.sqrt(s+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let s=0;e[4]>e[0]&&(s=1),e[8]>e[3*s+s]&&(s=2);const n=(s+1)%3,i=(s+2)%3;r=Math.sqrt(e[3*s+s]-e[3*n+n]-e[3*i+i]+1),t[s]=.5*r,r=.5/r,t[3]=(e[3*n+i]-e[3*i+n])*r,t[n]=(e[3*n+s]+e[3*s+n])*r,t[i]=(e[3*i+s]+e[3*s+i])*r}return t}function y(t,e,s,r){const n=.5*Math.PI/180;e*=n,s*=n,r*=n;const i=Math.sin(e),a=Math.cos(e),o=Math.sin(s),u=Math.cos(s),c=Math.sin(r),l=Math.cos(r);return t[0]=i*u*l-a*o*c,t[1]=a*o*l+i*u*c,t[2]=a*u*c-i*o*l,t[3]=a*u*l+i*o*c,t}const m=u.C,g=u.hZ,S=u.WQ,v=p,b=u.hs,A=u.Om,x=u.Cc,_=u.Bw,M=_,w=u.m3,R=w,q=u.S8,F=u.t2,I=u.aI,E=(0,i.vt)(),C=(0,i.fA)(1,0,0),O=(0,i.fA)(0,1,0),P=(0,n.vt)(),T=(0,n.vt)(),N=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:S,calculateW:function(t,e){const s=e[0],r=e[1],n=e[2];return t[0]=s,t[1]=r,t[2]=n,t[3]=Math.sqrt(Math.abs(1-s*s-r*r-n*n)),t},conjugate:d,copy:m,dot:A,equals:I,exactEquals:F,fromEuler:y,fromMat3:f,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const s=e[0],r=e[1],n=e[2],i=e[3],a=s*s+r*r+n*n+i*i,o=a?1/a:0;return t[0]=-s*o,t[1]=-r*o,t[2]=-n*o,t[3]=i*o,t},len:M,length:_,lerp:x,mul:v,multiply:p,normalize:q,random:function(t){const e=a.Ov,s=e(),r=e(),n=e(),i=Math.sqrt(1-s),o=Math.sqrt(s);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*n),t[3]=o*Math.cos(2*Math.PI*n),t},rotateX:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u+a*o,t[1]=n*u+i*o,t[2]=i*u-n*o,t[3]=a*u-r*o,t},rotateY:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u-i*o,t[1]=n*u+a*o,t[2]=i*u+r*o,t[3]=a*u-n*o,t},rotateZ:function(t,e,s){s*=.5;const r=e[0],n=e[1],i=e[2],a=e[3],o=Math.sin(s),u=Math.cos(s);return t[0]=r*u+n*o,t[1]=n*u-r*o,t[2]=i*u+a*o,t[3]=a*u-i*o,t},rotationTo:function(t,e,s){const r=(0,o.Om)(e,s);return r<-.999999?((0,o.$A)(E,C,e),(0,o.Il)(E)<1e-6&&(0,o.$A)(E,O,e),(0,o.S8)(E,E),c(t,E,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(E,e,s),t[0]=E[0],t[1]=E[1],t[2]=E[2],t[3]=1+r,q(t,t))},scale:b,set:g,setAxes:function(t,e,s,r){const n=N;return n[0]=s[0],n[3]=s[1],n[6]=s[2],n[1]=r[0],n[4]=r[1],n[7]=r[2],n[2]=-e[0],n[5]=-e[1],n[8]=-e[2],q(t,f(t,n))},setAxisAngle:c,slerp:h,sqlerp:function(t,e,s,r,n,i){return h(P,e,n,i),h(T,s,r,i),h(t,P,T,2*i*(1-i)),t},sqrLen:R,squaredLength:w,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},56512(t,e,s){function r(t){let e,s,r=[],n=!1;return function(...i){return n&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;++s)if(t[s]!==e[s])return!1;return!0}(i,r)||(s=t.apply(this,i),e=this,r=i,n=!0),s}}s.d(e,{B:()=>r})},69397(t,e,s){s.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>n,Ul:()=>d,i5:()=>h,lM:()=>i,qK:()=>l});var r=s(34275);const n=16;function i(t){if(!t)return 0;let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return c(t,8);let s=p;for(let r=0;r<e;r++)s+=o(t[r]);return s}(t);let e=l;for(const s in t)t.hasOwnProperty(s)&&(e+=o(t[s]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):l;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+h:Array.isArray(e)?c(e,n):0:0),0)}function c(t,e){return p+t.length*e}const l=32,p=16,h=145,d=64},95696(t,e,s){s.d(e,{A:()=>c});var r,n=s(5482),i=s(69540),a=s(25482),o=s(91429),u=s(93223);let c=class extends((0,i.OU)(a.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,n.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,s){s.r(e),s.d(e,{default:()=>c});var r=s(5482),n=s(69540),i=s(25482),a=s(91429),o=s(51850),u=s(93223);let c=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,o.vt)()}};(0,r.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},73836(t,e,s){s.d(e,{A:()=>d});var r=s(5482),n=s(69540),i=s(25482),a=s(91429),o=s(58083),u=s(9093),c=s(67026),l=s(82534),p=s(51850),h=s(24770);let d=class extends((0,n.OU)(i.o)){constructor(t){super(t),this.translation=(0,p.vt)(),this.rotationAxis=(0,p.ci)(h.up),this.rotationAngle=0,this.scale=(0,p.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(f,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,o.o1)(t,f,this.translation,this.scale),t}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,o.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,r.Cg)([(0,a.MZ)()],d.prototype,"rotation",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"localMatrix",null),(0,r.Cg)([(0,a.MZ)()],d.prototype,"localMatrixInverse",null),d=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],d);const f=(0,l.vt)()},24770(t,e,s){s.d(e,{$I:()=>g,AU:()=>f,Cr:()=>p,g7:()=>m,i4:()=>l,ui:()=>h,up:()=>v,vt:()=>c,yo:()=>y});var r=s(34727),n=s(58083),i=s(67026),a=s(82534),o=s(35522),u=s(51850);function c(t=v){return[t[0],t[1],t[2],t[3]]}function l(t,e,s=c()){return(0,o.C)(s,t),s[3]=e,s}function p(t,e,s){return(0,o.$A)(s,t,e),(0,o.S8)(s,s),s[3]=-(0,o.g7)(t,e),s}function h(t,e=c()){const s=(0,n.l)(b,t);return S(e,(0,r.KJ)((0,i.Xd)(e,s))),e}function d(t,e,s=c()){return(0,i.x8)(b,t,g(t)),(0,i.x8)(A,e,g(e)),(0,i.lw)(b,A,b),S(s,(0,r.KJ)((0,i.Xd)(s,b)))}function f(t,e,s,r=c()){return l(u.Cw,t,x),l(u.JP,e,_),l(u.Cb,s,M),d(x,_,x),d(x,M,r),r}function y(t){return t}function m(t){return t[3]}function g(t){return(0,r.kU)(t[3])}function S(t,e){return t[3]=e,t}const v=[0,0,1,0],b=(0,a.vt)(),A=(0,a.vt)(),x=(c(),c()),_=c(),M=c()},31411(t,e,s){s.d(e,{GS:()=>M,gh:()=>R});var r=s(49186),n=s(56512),i=s(65864),a=s(4305),o=s(50954),u=s(52006),c=s(49663),l=s(46068),p=s(15507);const h=1e-6,d=[0,0];function f(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:r,minSegmentsPerCurve:n}){const i=s*s,a=e*e,o=1/r,u=this.interpolate(0),c=this.interpolate(1);(0,p.kb)(this.curveStart,u)>h&&t.push(u),this.initialize(u,c);const l=1/n;for(let t=n-1;t>0;t--){const e=t*l;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===i||!isFinite(i)||(0,p.kb)(this.arcStart,this.arcEnd)<i)&&(0===a||!isFinite(a)||this.getDeviation2()<a)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,p.kb)(this.curveEnd,c)>h&&t.push([...this.curveEnd]),t}}class m extends y{constructor(t,e){const[s,r,n]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[r,n],this._arcControlPoints=[r,n],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:r,tEnd:n}=this,[i,a]=this._arcControlPoints,o=(t-r)/(n-r),u=(0,p.RS)([],e,i,o),c=(0,p.RS)(d,i,a,o),l=(0,p.RS)([],a,s,o),h=(0,p.RS)([],u,c,o),f=(0,p.RS)([],c,l,o),y=(0,p.RS)([],h,f,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([f,l]),this.tEndStack.push(t),this.arcEndStack.push(y),this._arcControlPoints[0]=u,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[r,n]=this._curveControlPoints;return(0,a.B4)(e,r,n,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,r]=this._arcControlPoints;return Math.max((0,p.yE)(s,t,e),(0,p.yE)(r,t,e))}}class g extends y{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=(0,l.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,l.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,p.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,s,{cx:r,cy:n,radius:i,thetaStart:a,thetaEnd:o,isInvalid:u},{maxDeviation:c,maxSegmentLength:l,maxSegmentsPerCurve:d,minSegmentsPerCurve:f}){if(u)return t.push([...s]),t;const y=2*i,m=[r+i*Math.cos(a),n+i*Math.sin(a)],g=[r+i*Math.cos(o),n+i*Math.sin(o)];(0,p.kb)(e,m)>h&&t.push(m);const S=Math.abs(o-a),v=l>0&&l<y?2*Math.asin(l/y):S,b=c>0&&c<=i?2*Math.acos(1-c/i):S,A=Math.min(v,b),x=Math.min(d,Math.max(f,Math.ceil(Math.abs(S/A)))),_=1/x;for(let e=1;e<x;e++){const s=e*_,u=a*(1-s)+o*s;t.push([r+i*Math.cos(u),n+i*Math.sin(u)])}return t.push(g),(0,p.kb)(s,g)>h&&t.push([...s]),t}function v(t,e,s,r){return new m(e,s).densify(t,r)}function b(t,e,s,r){const n=(0,o.pM)(e,s),[i]=s.c;return S(t,e,i,n,r)}function A(t,e,s,r){const n=(0,c.io)(e,s),[i]=s.a;return S(t,e,i,n,r)}function x(t,e,s,r){const[n,i,a,o,u,c,l]=s.a;return 0===c||0===l?(t.push([...n]),t):new g(e,s).densify(t,r)}function _(t,e,s,r){return(0,u.Xq)(s)?(t.push([...s]),t):(0,u.n1)(s)?v(t,e,s,r):(0,u.aO)(s)?b(t,e,s,r):(0,u.DA)(s)?A(t,e,s,r):x(t,e,s,r)}function M(t,e={}){if(!(0,u.Ed)(t))return t;const s=f(e),r=(0,u.FD)(t),n=[];for(const t of r){const e=[];for(let r=0;r<t.length-1;r++){const n=r+1,i=[...(0,u.yP)(t[r])];0===r&&e.push(i),_(e,i,t[n],s)}n.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:n,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:n,spatialReference:t.spatialReference}}const w=(0,n.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function R(t,e,n){const a=new Set(e);return await async function(t,e,n){let i=null;for(const a of t)if(a&&(0,u.Ed)(a)&&null==a.spatialReference.xyTolerance&&(0,u.V8)(a,e)){const t=a.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=q(t);if(n.has(e))a.spatialReference=n.get(e);else{i||(i=await Promise.all([s.e(6042),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(6312)]).then(s.bind(s,78125)));const o=i.fromSpatialReference(t),u=o?.getTolerance();if(null==u)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const c=a.spatialReference.clone();c.read({xyTolerance:u}),a.spatialReference=c,n.set(e,c)}}}(t,a,n),t.map(t=>{if(!t||!(0,u.Ed)(t))return t;const s=t.spatialReference.xyTolerance;if(null==s)return t;const r=w(s);return(0,i.rS)(function(t,e,s){if(!(0,u.Ed)(t))return t;const r=new Set(e),n=f(s),i=(0,u.FD)(t),a=[];let o=!1;for(const t of i){const e=[];for(let s=0;s<t.length-1;s++){const i=s+1,a=[...(0,u.yP)(t[s])];0===s&&e.push(a);const c=t[i];(0,u.Xq)(c)?e.push([...c]):(0,u.n1)(c)&&!r.has("cubic-bezier")?v(e,a,c,n):(0,u.aO)(c)&&!r.has("circular-arc")?b(e,a,c,n):(0,u.DA)(c)&&!r.has("elliptic-arc")?A(e,a,c,n):(0,u.wY)(c)&&!r.has("elliptic-arc")?x(e,a,c,n):(e.push((0,u.tk)(c)),o=!0)}a.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...o?{curvePaths:a}:{paths:a}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...o?{curveRings:a}:{rings:a}}}(t,e,r))})}function q(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},63579(t,e,s){s.d(e,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>d,fH:()=>y,in:()=>f,yr:()=>c});var r=s(11254),n=s(4576),i=s(17676),a=s(20557);class o{constructor(t,e,s){this.assetName=t,this.assetMimeType=e,this.parts=s}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,n.aI)(this.parts,t.parts,(t,e)=>t.equals(e))}isOnService(t){return this.parts.every(e=>e.isOnService(t))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const s=await Promise.all(e.map(e=>e.toBlob(t)));return(0,i.Te)(t),new Blob(s)}}class u{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(t),e}}function c(t){return function(t){switch(t?.type){case"client":return Array.isArray(t.files)?t.files.some(h):h(t.files);case"service":return t.assets.some(h);case"loadable":return!0;default:return!1}}(t?.source)}const l=/^(model\/gltf\+json)|(model\/gltf-binary)$/,p=/\.(gltf|glb)/i;function h(t){if(t instanceof File){const{type:e,name:s}=t;return l.test(e)||p.test(s)}return l.test(t.assetMimeType)||p.test(t.assetName)}function d(t,e){if(!t)return!1;const{source:s}=t;return function(t,e){return"service"===t.type&&t.assets.every(t=>t.isOnService(e))}(s,e)}function f(t,e){if(t===e)return!0;const{source:s}=t,{source:r}=e;if(s===r)return!0;if("service"===s.type&&"service"===r.type){if(s.assets.length!==r.assets.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...s.assets].sort(t),n=[...r.assets].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(n[t]))return!1;return!0}return!1}function y(t,e){return t instanceof File?(0,a.rq)(t,e):(0,a.z$)(t.assetMimeType,t.assetName,e)}function m(t){switch(t.type){case"client":return Array.isArray(t.files)?t.files:[t.files];case"service":return t.assets;case"loadable":return}}function g(t){return!!t.original}},27615(t,e,s){s.d(e,{CK:()=>u,Hq:()=>o,MW:()=>c,TE:()=>l,yJ:()=>p});var r=s(35522),n=s(86738),i=s(95696),a=s(18251);function o(t){return null!=t.origin}function u(t){return o(t.vertexSpace)}function c(t,e){if(!o(t))return null;const[s,r,i]=t.origin;return new n.A({x:s,y:r,z:i,spatialReference:e})}function l(t,e){const{x:s,y:r,z:n,spatialReference:o}=t,u=[s,r,n??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(o))?new a.default({origin:u}):new i.A({origin:u})}function p(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}},17136(t,e,s){s.d(e,{Y_:()=>E,O7:()=>F,el:()=>q});var r=s(92602),n=s(69052),i=s(49186),a=s(53966),o=s(39829),u=s(82799),c=s(16930),l=s(80754),p=s(21325),h=s(28735),d=s(52006),f=s(31411),y=s(11254),m=s(60408),g=s(65864),S=s(2272),v=s(84952),b=s(92300);const A=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function _(t){return"polyline"===t[0].type}function M(t,e,s){const r=1e6;if(e){const e=(0,d.Ed)(t)?(0,f.GS)(t,{maxSegmentLength:r}):function(t,e){if(!(t instanceof u.A||t instanceof o.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw A().error(t),new i.A("internal:geometry",t)}const s=(0,l.r8)(t),r=[];for(const t of s){const s=[];r.push(s),s.push([t[0][0],t[0][1]]);for(let r=0;r<t.length-1;r++){const n=t[r][0],i=t[r][1],a=t[r+1][0],o=t[r+1][1],u=Math.sqrt((a-n)*(a-n)+(o-i)*(o-i)),c=(o-i)/u,l=(a-n)/u,p=u/e;if(p>1){for(let t=1;t<=p-1;t++){const r=t*e,a=l*r+n,o=c*r+i;s.push([a,o])}const t=(u+Math.floor(p-1)*e)/2,r=l*t+n,a=c*t+i;s.push([r,a])}s.push([a,o])}}return function(t){return"polygon"===t.type}(t)?new o.A({rings:r,spatialReference:t.spatialReference}):new u.A({paths:r,spatialReference:t.spatialReference})}(t,r);t=(0,h.ci)(e,!0)}return s&&(t=(0,l.kS)(t,s)),t}function w(t,e,s){if(Array.isArray(t)){const r=t[0];if(r>e){const s=(0,l.kd)(r,e);t[0]=r+s*(-2*e)}else if(r<s){const e=(0,l.kd)(r,s);t[0]=r+e*(-2*s)}}else{const r=t.x;if(r>e){const s=(0,l.kd)(r,e);t=t.clone().offset(s*(-2*e),0)}else if(r<s){const e=(0,l.kd)(r,s);t=t.clone().offset(e*(-2*s),0)}}return t}function R(t,e){let s=-1;for(let r=0;r<e.cutIndexes.length;r++){const n=e.cutIndexes[r],i=e.geometries[r],a=(0,l.r8)(i);for(let t=0;t<a.length;t++){const e=a[t];e.some(s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const r=e[t][0];s=r>s?r:s}s=Number(s.toFixed(9));const r=-360*(0,l.kd)(s,180);for(let s=0;s<e.length;s++){const e=i.getPoint(t,s);i.setPoint(t,s,e.clone().offset(r,0))}return!0}})}if(n===s){if(x(t))for(const e of(0,l.r8)(i))t[n]=t[n].addRing(e);else if(_(t))for(const e of(0,l.r8)(i))t[n]=t[n].addPath(e)}else s=n,t[n]=i}return t}async function q(t,e,s){if(!Array.isArray(t))return q([t],e);e&&"string"!=typeof e&&A().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??r.A.geometryServiceUrl;let i,a,c,d,f,x,_,F,I=0;const E=[],C=[];for(const e of t)if(null!=e)if(i||(i=e.spatialReference,a=(0,p.Vp)(i),c=i.isWebMercator,x=c?102100:4326,d=l.j7[x].maxX,f=l.j7[x].minX,_=l.j7[x].plus180Line,F=l.j7[x].minus180Line),a)if("mesh"===e.type)C.push(e);else if("point"===e.type)C.push(w(e.clone(),d,f));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>w(t,d,f)),C.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,a);C.push(t.rings?new o.A(t):t)}else if(e.extent){const t=e.extent,s=(0,l.kd)(t.xmin,f)*(2*d);let r=0===s?e.clone():(0,l.kS)(e.clone(),s);t.offset(s,0);let{xmin:n,xmax:i}=t;n=Number(n.toFixed(9)),i=Number(i.toFixed(9)),t.intersects(_)&&i!==d?(I=i>I?i:I,r=M(r,c),E.push(r),C.push("cut")):t.intersects(F)&&n!==f?(I=i*(2*d)>I?i*(2*d):I,r=M(r,c,360),E.push(r),C.push("cut")):C.push(r)}else C.push(e.clone());else C.push(e);else C.push(e);let O=(0,l.kd)(I,d),P=-90;const T=O,N=new u.A;for(;O>0;){const t=360*O-180;N.addPath([[t,P],[t,-1*P]]),P*=-1,O--}if(E.length>0&&T>0){const e=R(E,await async function(t,e,s,r){const n=(0,S.Dl)(t),i=e[0].spatialReference,a={...r,responseType:"json",query:{...n.query,f:"json",sr:(0,p.YX)(i),target:JSON.stringify({geometryType:(0,m.$B)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},o=await(0,y.A)(n.path+"/cut",a),{cutIndexes:u,geometries:c=[]}=o.data;return{cutIndexes:u,geometries:c.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=i,e})}}(n,E,N,s)),r=[],i=[];for(let s=0;s<C.length;s++){const n=C[s];if("cut"!==n)i.push(n);else{const n=e.shift(),a=t[s];null!=a&&"polygon"===a.type&&a.rings&&a.rings.length>1&&n.rings.length>=a.rings.length?(r.push(n),i.push("simplify")):i.push(c?(0,h.Gh)(n):n)}}if(!r.length)return i;const a=await async function(t,e,s){const r="string"==typeof t?(0,v.An)(t):t,n=e[0].spatialReference,i=(0,m.$B)(e[0]),a={...s,query:{...r.query,f:"json",sr:(0,p.YX)(n),geometries:JSON.stringify((0,b.X)(e))}},{data:o}=await(0,y.A)(r.path+"/simplify",a);return(0,b.V)(o.geometries,i,n)}(n,r,s),o=[];for(let t=0;t<i.length;t++){const e=i[t];"simplify"!==e?o.push(e):o.push(c?(0,h.Gh)(a.shift()):a.shift())}return o}const D=[];for(let t=0;t<C.length;t++){const e=C[t];if("cut"!==e)D.push(e);else{const t=E.shift();D.push(!0===c?(0,h.Gh)(t):t)}}return D}function F(t,e,s){const r=(0,p.Vp)(s);if(null==r)return t;const[n,i]=r.valid,a=2*i;let o=0,u=0;e>i?o=Math.ceil(Math.abs(e-i)/a):e<n&&(o=-Math.ceil(Math.abs(e-n)/a)),t>i?u=Math.ceil(Math.abs(t-i)/a):t<n&&(u=-Math.ceil(Math.abs(t-n)/a));let c=t+(o-u)*a;const l=c-e;return l>i?c-=a:l<n&&(c+=a),c}function I(t){const e=(0,p.Vp)(t);if(null==e)return null;const[s,r]=e.valid;return new n.hr(s,r)}const E=I(c.A.WGS84);I(c.A.WebMercator)},80754(t,e,s){s.d(e,{j7:()=>o,kS:()=>c,kd:()=>u,r8:()=>l});var r=s(82799),n=s(16930),i=s(60408),a=s(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function u(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){if((0,a.Ed)(t))for(const s of function(t){return(0,i.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of s){if((0,a.aO)(t)){const[s,r]=t.c;s[0]+=e,r[0]+=e;continue}if((0,a.FG)(t)){const[s,r]=t.a;s[0]+=e,r[0]+=e;continue}if((0,a.n1)(t)){const[s,r,n]=t.b;s[0]+=e,r[0]+=e,n[0]+=e;continue}t[0]+=e}for(const s of l(t))for(const t of s)t[0]+=e;return t}function l(t){return(0,i.Bi)(t)?t.rings:t.paths}},99352(t,e,s){s.d(e,{F:()=>r,P:()=>n});const r={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},n={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}},65515(t,e,s){s.r(e),s.d(e,{default:()=>Y});var r=s(5482),n=s(92602),i=s(11254),a=s(4576),o=s(49186),u=s(44208),c=s(66552),l=s(92474),p=s(53966),h=s(93637),d=s(17676),f=s(36708),y=s(84952),m=s(13069),g=s(91429),S=s(5443),v=s(16930),b=s(95696),A=s(27615),x=s(63579),_=s(52106),M=s(86211);function w(t){return"object"==typeof t&&null!=t&&"objectId"in t&&!!t.objectId}function R(t){return"object"==typeof t&&null!=t&&"globalId"in t&&!!t.globalId}function q(t){return t.every(R)}var F=s(91218),I=s(65864),E=s(73836),C=s(21325);async function O(t,e,s){const{geometry:r}=e,n={...e.attributes};if(null!=s&&"mesh"===r?.type){const{transformFieldRoles:e}=s,{origin:i,spatialReference:a,vertexSpace:o}=r,u=r.transform??new E.A,c="local"===o.type,l=t.spatialReference,p=l.isGeographic,h=(0,C.aI)(l,a),d=(0,F.isEqualBaseGCS)(a,l)&&(0,F.canProjectWithoutEngine)(a,l);if(!(c&&p&&d||!c&&!p&&h))return null;const f=(0,F.projectWithoutEngine)(i,a,l);if(null==f)return null;if(n[e.originX]=f.x,n[e.originY]=f.y,n[e.originZ]=f.z??0,null!=u){const{translation:t,scale:s,rotation:r}=u,i=c?1:(0,M.KX)(a)/(0,M.KX)(l);n[e.translationX]=t[0]*i,n[e.translationY]=t[2]*i,n[e.translationZ]=-t[1]*i,n[e.scaleX]=s[0],n[e.scaleY]=s[2],n[e.scaleZ]=s[1],n[e.rotationX]=r[0],n[e.rotationY]=r[2],n[e.rotationZ]=-r[1],n[e.rotationDeg]=r[3]}return{attributes:n}}return null==r?{attributes:n}:"mesh"===r.type||"extent"===r.type?null:{geometry:r.toJSON(),attributes:n}}async function P(t,e){const s=await Promise.all((e.addAttachments??[]).map(e=>T(t,e))),r=await Promise.all((e.updateAttachments??[]).map(e=>T(t,e))),n=e.deleteAttachments??[];return s.length||r.length||n.length?{adds:s,updates:r,deletes:[...n]}:null}async function T(t,e){const{feature:s,attachment:r}=e,{globalId:n,name:i,contentType:a,data:o,uploadId:u}=r,c={globalId:n};if(s&&("attributes"in s?c.parentGlobalId=s.attributes?.[t.globalIdField]:s.globalId&&(c.parentGlobalId=s.globalId)),u)c.uploadId=u;else if(o){const t=await(0,y._0)(o);t&&(c.contentType=t.mediaType,c.data=t.data),o instanceof File&&(c.name=o.name)}return i&&(c.name=i),a&&(c.contentType=a),c}function N(t,e,s){if(!e||0===e.length)return[];if(s&&q(e))return e.map(t=>t.globalId);if(function(t){return t.every(w)}(e))return e.map(t=>t.objectId);const r=s?t.globalIdField:t.objectIdField;return r?e.map(t=>t.getAttribute(r)):[]}function D(t){const e=!0===t.success?null:t.error||{code:void 0,description:"Feature edit failed"};return{objectId:t.objectId,globalId:t.globalId,error:e?new o.A("feature-layer-source:edit-failure",e.description,{code:e.code}):null}}function k(t,e){return new _.A({attributes:t.attributes,geometry:(0,I.rS)({...t.geometry,spatialReference:e})})}function Z(t,e){return{adds:t?.adds?.map(t=>k(t,e))||[],updates:t?.updates?.map(t=>({original:k(t[0],e),current:k(t[1],e)}))||[],deletes:t?.deletes?.map(t=>k(t,e))||[],spatialReference:e}}var Q=s(64714),j=s(64314),J=s(60694),V=s(15426),U=s(20557),G=s(99199),B=s(96520),X=s(61956),z=s(79677),L=s(20816);const $=new c.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),W=new c.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let Y=class extends l.x_{constructor(t){super(t),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.refresh=(0,d.sg)(async()=>{await this.load();const t=this.sourceJSON.editingInfo?.lastEditDate;if(null==t)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const e=t!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:e,updates:e?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(t){const e=this.layer.sourceJSON,s=this._fetchService(e,{...t}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,t)).then(()=>this._ensureLatestMetadata(t));return this.addResolvingPromise(s),Promise.resolve(this)}initialize(){this.addHandles([(0,f.wB)(()=>{const t=this.layer;return t&&"lastEditsEventDate"in t?t.lastEditsEventDate:null},t=>this._handleLastEditsEventChange(t))])}destroy(){this._removeEditInterceptor()}get queryTask(){const{capabilities:t,parsedUrl:e,gdbVersion:s,spatialReference:r,fieldsIndex:n,uniqueIdFields:i}=this.layer,a="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,c=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==a,l=c&&t?.query.supportsFormatPBFWithCurves,p=t?.operations?.supportsQueryAttachments??!1,h=t?.query?.relativeTimeBinWindow??0,d=e.path;return new j.A({dynamicDataSource:o,fieldsIndex:n,gdbVersion:s,infoFor3D:a,pbfSupported:c,pbfSupportedWithCurves:l,queryAttachmentsSupported:p,relativeTimeBinWindow:h,sourceSpatialReference:r,uniqueIdFields:i,url:d})}async addAttachment(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r=t.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+r+"/addAttachment",a=this._getLayerRequestOptions(),o=this._getFormDataForAttachment(e,a.query);try{return D((await(0,i.A)(n,{body:o})).data.addAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(r,t)}}async updateAttachment(t,e,s){await this.load();const{layer:r}=this;await(0,V.VA)(r,"editing");const n=t.attributes[r.objectIdField],a=r.parsedUrl.path+"/"+n+"/updateAttachment",o=this._getLayerRequestOptions({query:{attachmentId:e}}),u=this._getFormDataForAttachment(s,o.query);try{return D((await(0,i.A)(a,{body:u})).data.updateAttachmentResult)}catch(t){throw this._createAttachmentErrorResult(n,t)}}async applyEdits(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r="infoFor3D"in s?s.infoFor3D:null,n=null!=r,u=n||(e?.globalIdUsed??!1),c=n?await this._uploadMeshesAndGetAssetMapEditsJSON(t):null,l=t.addFeatures?.map(t=>O(this.layer,t,r))??[],p=(await Promise.all(l)).filter(a.Ru),h=t.updateFeatures?.map(t=>O(this.layer,t,r))??[],d=(await Promise.all(h)).filter(a.Ru),f=N(this.layer,t.deleteFeatures,u);(0,B.u)(p,d,s.spatialReference);const y=await P(this.layer,t),m=s.capabilities.editing.supportsAsyncApplyEdits&&n,g=e?.gdbVersion||s.gdbVersion,S={gdbVersion:g,rollbackOnFailure:e?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:e?.returnEditMoment,trueCurveClient:e?.editsRespectTrueCurves,usePreviousEditMoment:e?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);const v=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(s.url,g,s.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");e?.returnServiceEditsOption?(S.edits=JSON.stringify([{id:s.layerId,adds:p.length?p:null,updates:d.length?d:null,deletes:f.length?f:null,attachments:y,assetMaps:c}]),S.returnServiceEditsOption=$.toJSON(e?.returnServiceEditsOption),S.returnServiceEditsInSourceSR=e?.returnServiceEditsInSourceSR):(S.adds=p.length?JSON.stringify(p):null,S.updates=d.length?JSON.stringify(d):null,S.deletes=f.length?u?JSON.stringify(f):f.join(","):null,S.attachments=y&&JSON.stringify(y),S.assetMaps=null!=c?JSON.stringify(c):void 0);const b=this._getLayerRequestOptions({method:"post",query:S});v&&(b.authMode="immediate",b.query.returnEditMoment=!0,b.query.sessionId=L.TA);const A=e?.returnServiceEditsOption?s.url:s.parsedUrl.path;let x;try{x=m?await this._asyncApplyEdits(A+"/applyEdits",b):await(0,i.A)(A+"/applyEdits",b)}catch(t){if(!function(t){const e=t.details.raw,s=+e.code,r=+e.extendedCode;return 500===s&&(-2147217144===r||-2147467261===r)}(t))throw t;b.authMode="immediate",x=m?await this._asyncApplyEdits(A+"/applyEdits",b):await(0,i.A)(A+"/applyEdits",b)}return this._createEditsResult(x)}async deleteAttachments(t,e){await this.load();const{layer:s}=this;await(0,V.VA)(s,"editing");const r=t.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,i.A)(n,this._getLayerRequestOptions({query:{attachmentIds:e.join(",")},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(t){throw this._createAttachmentErrorResult(r,t)}}fetchRecomputedExtents(t={}){const e=t.signal;return this.load({signal:e}).then(async()=>{const e=this._getLayerRequestOptions({...t,query:{returnUpdates:!0}}),{layerId:s,url:r}=this.layer,{data:n}=await(0,i.A)(`${r}/${s}`,e),{id:a,extent:o,fullExtent:u,timeExtent:c}=n,l=o||u;return{id:a,fullExtent:l&&S.A.fromJSON(l),timeExtent:c&&z.A.fromJSON({start:c[0],end:c[1]})}})}async queryAttachments(t,e={}){await this.load();const s=this._getLayerRequestOptions(e);return this.queryTask.executeAttachmentQuery(t,s)}async queryFeatures(t,e){await this.load();const s=await this.queryTask.execute(t,{...e,query:this._createRequestQueryOptions(e)});if(t.outStatistics?.length&&s.features.length){const e=new Map;if(s.features.forEach(s=>{const r=s.attributes;t.outStatistics?.forEach(({outStatisticFieldName:t})=>{if(t){const s=t.toLowerCase();s&&s in r&&t!==s&&(r[t]=r[s],delete r[s],e.set(s,t))}})}),null!=s.fields)for(const t of s.fields){const s=e.get(t.name.toLowerCase());null!=s&&(t.name=s)}}return s}async queryFeaturesJSON(t,e){return await this.load(),this.queryTask.executeJSON(t,{...e,query:this._createRequestQueryOptions(e)})}async queryObjectIds(t,e){return await this.load(),this.queryTask.executeForIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryFeatureCount(t,e){return await this.load(),this.queryTask.executeForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryExtent(t,e){return await this.load(),this.queryTask.executeForExtent(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeatures(t,e){return await this.load(),this.queryTask.executeRelationshipQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryRelatedFeaturesCount(t,e){return await this.load(),this.queryTask.executeRelationshipQueryForCount(t,{...e,query:this._createRequestQueryOptions(e)})}async queryPivot(t,e){return await this.load(),this.queryTask.executePivotQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopFeatures(t,e){return await this.load(),this.queryTask.executeTopFeaturesQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryAttributeBins(t,e){return await this.load(),this.queryTask.executeAttributeBinsQuery(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopObjectIds(t,e){return await this.load(),this.queryTask.executeForTopIds(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopExtents(t,e){return await this.load(),this.queryTask.executeForTopExtents(t,{...e,query:this._createRequestQueryOptions(e)})}async queryTopCount(t,e){return await this.load(),this.queryTask.executeForTopCount(t,{...e,query:this._createRequestQueryOptions(e)})}async fetchPublishingStatus(){if(!(0,J.Wo)(this.layer.url))return"unavailable";const t=(0,y.fj)(this.layer.url,"status"),e=await(0,i.A)(t,{query:{f:"json"}});return W.fromJSON(e.data.status)}async uploadAssets(t,e){const{uploadAssets:r}=await s.e(1384).then(s.bind(s,31384));return r(t,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},e)}_handleLastEditsEventChange(t){const e=this.layer;if(null==t||!("capabilities"in e)||!("effectiveCapabilities"in e))return;if(e.capabilities?.operations?.supportsEditing||!e.effectiveCapabilities?.operations?.supportsEditing)return;const s=e.url;null!=s&&("layerId"in e&&(0,y.fj)(s,e.layerId.toString()),this._getOrCreateEditInterceptor(s).before=e=>{const s=e.requestOptions.method??"auto";if("auto"===s||"head"===s){const s=e.requestOptions.query??{};s._ts=t.getTime(),e.requestOptions.query=s}})}_getOrCreateEditInterceptor(t){return null==this._editInterceptor&&(this._editInterceptor={urls:t},n.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,a.TF)(n.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(t,e){const s=(await(0,i.A)(t,e)).data.statusUrl;for(;;){const t=(await(0,i.A)(s,{query:{f:"json"},responseType:"json"})).data;switch(t.status){case"Completed":return(0,i.A)(t.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,d.Pl)(H)}}_createRequestQueryOptions(t){const e={...this.layer.customParameters,token:this.layer.apiKey,...t?.query};return this.layer.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),e}async _fetchService(t,e){if(!t){const s={};(0,u.A)("featurelayer-advanced-symbols")&&(s.returnAdvancedSymbols=!0),e?.cacheBust&&(s._ts=Date.now());const{data:r}=await(0,i.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:s,signal:e?.signal}));t=r}this.layer.applyPreferredHost(t),this.sourceJSON=await this._patchServiceJSON(t,e?.signal);const s=t.type;if(!this.supportedSourceTypes.has(s))throw new o.A("feature-layer-source:unsupported-type",`Source type "${s}" is not supported`)}async _patchServiceJSON(t,e){if("Table"!==t.type&&t.geometryType&&!t?.drawingInfo?.renderer&&!t.defaultSymbol){const e=(0,Q.F0)(t.geometryType).renderer;(0,h.sM)("drawingInfo.renderer",e,t)}if("esriGeometryMultiPatch"===t.geometryType&&t.infoFor3D&&(t.geometryType="mesh"),null==t.extent)try{const{data:s}=await(0,i.A)(this.layer.url,this._getLayerRequestOptions({signal:e}));s.spatialReference&&(t.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:s.spatialReference})}catch(t){(0,d.QP)(t)}return t}async _ensureLatestMetadata(t){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...t,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(t){const{addAssetFeatures:e}=t;if(!e?.length)return null;if(await this._areAllAssetsAlreadyMapped(e))return null;const r=t.addFeatures.filter(t=>t.geometry);if(e.length!==r.length+t.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");const n=new Array,i=new Map;for(const t of e){const{geometry:e}=t,{vertexSpace:r}=e;if((0,A.Hq)(r))n.push(e);else{const r=e.origin,{convertMeshVertexSpace:a}=await Promise.all([s.e(6860),s.e(4496)]).then(s.bind(s,28846)),o=await a(e,new b.A({origin:[r.x,r.y,r.z??0]}));i.set(o,e),t.geometry=o,n.push(o)}}await this.uploadAssets(n);for(const[t,e]of i)e.addExternalSources(t.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(e),updates:[],deletes:[]}}_getAssetMapEditsJSON(t){const e=new Array,s=this.layer.globalIdField,r=this.layer.parsedUrl;for(const n of t){const t=n.geometry,{metadata:i}=t,a=i.getExternalSourcesOnService(r),o=n.getAttribute(s);if(0===a.length){p.A.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:u}=a.find(x.dK)??a[0];for(const t of u.assets)1===t.parts.length?e.push({globalId:(0,m.yS)(),parentGlobalId:o,assetName:t.assetName,assetHash:t.parts[0].partHash,flags:[]}):p.A.getLogger(this).error(`Skipping asset ${t.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return e}_createEditsResult(t){const e=t.data,{layerId:s}=this.layer,r=[];let n=null;if(Array.isArray(e))for(const t of e)r.push({id:t.id,editedFeatures:t.editedFeatures}),t.id===s&&(n={addResults:t.addResults??[],updateResults:t.updateResults??[],deleteResults:t.deleteResults??[],attachments:t.attachments,editMoment:t.editMoment});else n=e;const i=function(t){const e=t?.assetMaps;if(e){for(const t of e.addResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`);for(const t of e.updateResults)t.success||p.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${t.globalId}.`)}const s=t?.attachments,r={addFeatureResults:t?.addResults?.map(D)??[],updateFeatureResults:t?.updateResults?.map(D)??[],deleteFeatureResults:t?.deleteResults?.map(D)??[],addAttachmentResults:s?.addResults?s.addResults.map(D):[],updateAttachmentResults:s?.updateResults?s.updateResults.map(D):[],deleteAttachmentResults:s?.deleteResults?s.deleteResults.map(D):[]};return t?.editMoment&&(r.editMoment=t.editMoment),r}(n);if(r.length>0){i.editedFeatureResults=[];for(const t of r){const{editedFeatures:e}=t,s=e?.spatialReference?new v.A(e.spatialReference):null;i.editedFeatureResults.push({layerId:t.id,editedFeatures:Z(e,s)})}}return i}_createAttachmentErrorResult(t,e){const s=e.details.messages?.[0]||e.message,r=e.details.httpStatus||e.details.messageCode;return{objectId:t,globalId:null,error:new o.A("feature-layer-source:attachment-failure",s,{code:r})}}_getFormDataForAttachment(t,e){const s=t instanceof FormData?t:t&&t.elements?new FormData(t):null;if(s)for(const t in e){const r=e[t];null!=r&&(s.set?s.set(t,r):s.append(t,r))}return s}_getLayerRequestOptions(t={}){const{layer:e,layer:{parsedUrl:s,gdbVersion:r}}=this;return{...t,query:{gdbVersion:r,layer:"dynamicDataSource"in e&&e.dynamicDataSource?JSON.stringify({source:e.dynamicDataSource}):void 0,...s.query,f:"json",...this._createRequestQueryOptions(t)},responseType:"json"}}async _areAllAssetsAlreadyMapped(t){const{layer:e}=this,{globalIdField:s,parsedUrl:r}=e,n="infoFor3D"in e?e.infoFor3D:null;if(null==n||null==s)return!1;const i=(0,U.JZ)(n);if(null==i)return!1;const o=(0,y.fj)(r.path,`../${i.id}`),u=new Array;for(const e of t){if(!(e.geometry.metadata.getExternalSourcesOnService(r).length>0))return!1;u.push(e)}const c=u.map(t=>t.getAttribute(s)).filter(a.Ru);if(0===c.length)return!1;const{assetMapFieldRoles:{parentGlobalId:l,assetHash:p}}=n,h=new X.A({where:`${l} IN (${c.map(t=>`'${t}'`)})`,outFields:[p,l],returnGeometry:!1}),d=await(0,G.s)(o,h),{features:f}=d;return 0!==f.length&&!u.some(t=>{const e=t.getAttribute(s);if(!e)return!0;const{metadata:n}=t.geometry,i=f.filter(t=>t.getAttribute(l)===e);if(0===i.length)return!0;const a=i.map(t=>t.getAttribute(p));return n.getExternalSourcesOnService(r).flatMap(({source:t})=>t.assets.flatMap(t=>t.parts.map(t=>t.partHash))).some(t=>a.every(e=>t!==e))})}};(0,r.Cg)([(0,g.MZ)()],Y.prototype,"type",void 0),(0,r.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"layer",void 0),(0,r.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"supportedSourceTypes",void 0),(0,r.Cg)([(0,g.MZ)({readOnly:!0})],Y.prototype,"queryTask",null),Y=(0,r.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],Y);const H=1e3},64314(t,e,s){s.d(e,{A:()=>w});var r=s(5482),n=s(69622),i=s(49186),a=s(44208),o=s(17676),u=s(84952),c=s(91429),l=s(21325),p=s(20557),h=s(2272),d=s(65615),f=s(20615),y=s(74910),m=s(78286),g=s(99199),S=s(62815),v=s(63746);class b{constructor(t){this._options=t,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=b._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(t){"string"==typeof t&&(this.featureSet.objectIdFieldName=t)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);const{spatialReference:t,features:e}=this.featureSet;if(t)for(const{geometry:s}of e)s&&(s.spatialReference=t)}feature(){this._attributesClass??=(0,v._7)(this.featureSet.fields?.map(t=>t.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([t,e]){this.featureSet.features.at(-1).centroid={x:t,y:e}}geometry(t,e,s){this._previousX=this._previousY=0,this._lengths=s;let r,{hasZ:n,hasM:i}=this.featureSet;switch(n??=!1,i??=!1,this._i=0,this._vertex=[0,0],n&&this._vertex.push(0),i&&this._vertex.push(0),this._finishVertex=b._finishVertexNonPoint,e){case"esriGeometryPoint":this._point={x:0,y:0},r=this._point,this._finishVertex=n?i?b._finishVertexPointXYZM:b._finishVertexPointXYZ:i?b._finishVertexPointXYM:b._finishVertexPointXY;break;case"esriGeometryMultipoint":r={points:[],hasZ:n,hasM:i},this._part=r.points,this._parts=[];break;case"esriGeometryPolyline":r={paths:[],hasZ:n,hasM:i},this._parts=r.paths,this._part=[];break;case"esriGeometryPolygon":r={rings:[],hasZ:n,hasM:i},this._parts=r.rings,this._part=[]}1===t?(this.featureSet.queryGeometry=r,this.featureSet.queryGeometryType=e,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=r}coord(t){const e=this._vertex;e[this._i++]=t,this._i<e.length||(this._i=0,this._transformInPlace&&(e[0]+=this._previousX,e[1]+=this._previousY,[this._previousX,this._previousY]=e,this._transformInPlace(e)),this._finishVertex(this))}curvedGeometry(t,e,s,r){let n,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,t){case"esriGeometryPoint":case"esriGeometryMultipoint":throw new Error(`Curved ${t} does not make sense`);case"esriGeometryPolyline":n={paths:[],curvePaths:[],hasZ:i,hasM:a},this._parts=n.curvePaths,this._part=[];break;case"esriGeometryPolygon":n={rings:[],curveRings:[],hasZ:i,hasM:a},this._parts=n.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=n}startCurvedPart(t){this._part.push(this._transform(t))}finishCurvedPart(t){this._parts.push(this._part),this._part=[]}lineSegment(t,e){this._part.push(this._transform(e))}bezierSegment(t,e,s,r){this._part.push({b:[this._transform(e),this._transformXY(s),this._transformXY(r)]})}circularArcSegment(t,e,s){this._part.push({c:[this._transform(e),this._transformXY(s)]})}ellipticArcSegment(t,e,s,r,n,i,a,o){this._part.push({a:[this._transform(e),this._transformXY(s),r,n,i,a,o]})}static _finishVertexPointXY({_point:t,_vertex:e}){[t.x,t.y]=e}static _finishVertexPointXYZ({_point:t,_vertex:e}){[t.x,t.y,t.z]=e}static _finishVertexPointXYM({_point:t,_vertex:e}){[t.x,t.y,t.m]=e}static _finishVertexPointXYZM({_point:t,_vertex:e}){[t.x,t.y,t.z,t.m]=e}static _finishVertexNonPoint(t){const{_part:e,_parts:s,_lengths:r,_vertex:n}=t;e.push([...n]),e.length<r[s.length]||(t._previousX=t._previousY=0,t._part=[],s.push(e))}_setVertexTransformer(){const{sourceSpatialReference:t}=this._options,{spatialReference:e,hasZ:s,transform:r}=this.featureSet,n=s?(0,S.d)(t,e):1;this._transformInPlace??=(0,v.Mv)(this.featureSet,n),this._transformInPlaceXY??=(0,v.Mv)({transform:r})}_transform(t){const e=[...t];return this._transformInPlace?.(e),e}_transformXY(t){const e=[t[0],t[1]];return this._transformInPlaceXY?.(e),e}}var A=s(80893),x=s(22671),_=s(61956);async function M(t,e,s,r){const n=(0,h.Dl)(t),i={...s},a=_.A.from(e),o=!a.quantizationParameters;return await(0,A.IJ)(n,a,new b({sourceSpatialReference:a.sourceSpatialReference,applyTransform:o}),i,r)}let w=class extends n.A{constructor(t){super(t),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(t,e){const s=await this.executeJSON(t,e);return this.featureSetFromJSON(t,s,e)}async executeJSON(t,e){const s=this._normalizeQuery(t),r=null!=t.outStatistics?.[0],n=(0,a.A)("featurelayer-pbf-statistics");let i;if(this.pbfSupported&&(!r||n)&&(!t.returnTrueCurves||this.pbfSupportedWithCurves))try{i=await M(this.url,s,e,{uniqueIdFields:this.uniqueIdFields})}catch(t){if("query:parsing-pbf"!==t.name)throw t;this.pbfSupported=!1}return i??=await(0,g.e)(this.url,s,e,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(i.fields),i}async featureSetFromJSON(t,e,r){if(!this._queryGet3DObjectFormat(t)||null==this.infoFor3D||!e.features)return x.A.fromJSON(e);const{meshFeatureSetFromJSON:n}=await(0,o.qr)(Promise.all([s.e(6860),s.e(7005),s.e(6754),s.e(4934),s.e(7634),s.e(8883)]).then(s.bind(s,40050)),r);return n(t,this.infoFor3D,e)}executeForCount(t,e){return(0,f.I)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(t,e){return(0,y.L)(this.url,this._normalizeQuery(t),e)}executeForIds(t,e){return(0,m.V)(this.url,this._normalizeQuery(t),e,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(t,e){const[{default:r},{executeRelationshipQuery:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(s.bind(s,26591)),s.e(1763).then(s.bind(s,71763))]),e);let i=r.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeRelationshipQueryForCount(t,e){const[{default:r},{executeRelationshipQueryForCount:n}]=await(0,o.qr)(Promise.all([Promise.resolve().then(s.bind(s,26591)),s.e(1763).then(s.bind(s,71763))]),e);let i=r.from(t);return(this.gdbVersion||this.dynamicDataSource)&&(i=i.clone(),i.gdbVersion=i.gdbVersion||this.gdbVersion,i.dynamicDataSource=i.dynamicDataSource||this.dynamicDataSource),n(this.url,i,e)}async executeAttachmentQuery(t,e){const{executeAttachmentQuery:r,fetchAttachments:n,processAttachmentQueryResult:i}=await(0,o.qr)(s.e(9239).then(s.bind(s,9239)),e),a=(0,h.Dl)(this.url);return i(a,await(this.queryAttachmentsSupported?r(a,t,e):n(a,t,e)))}async executeAttributeBinsQuery(t,e){const{executeAttributeBinsQuery:r}=await(0,o.qr)(s.e(3103).then(s.bind(s,33103)),e);return r(this.parsedUrl,t,e)}async executePivotQuery(t,e){const{executePivotQuery:r}=await(0,o.qr)(s.e(566).then(s.bind(s,80566)),e);return r(this.parsedUrl,t,e)}async executeTopFeaturesQuery(t,e){const{executeTopFeaturesQuery:r}=await(0,o.qr)(s.e(1273).then(s.bind(s,11273)),e);return r(this.parsedUrl,t,this.sourceSpatialReference,e)}async executeForTopIds(t,e){const{executeForTopIds:r}=await(0,o.qr)(s.e(1277).then(s.bind(s,21277)),e);return r(this.parsedUrl,t,e)}async executeForTopExtents(t,e){const{executeForTopExtents:r}=await(0,o.qr)(s.e(8018).then(s.bind(s,8018)),e);return r(this.parsedUrl,t,e)}async executeForTopCount(t,e){const{executeForTopCount:r}=await(0,o.qr)(s.e(980).then(s.bind(s,10980)),e);return r(this.parsedUrl,t,e)}_normalizeQuery(t){let e=_.A.from(t);e.sourceSpatialReference=e.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(e=e===t?e.clone():e,e.gdbVersion=t.gdbVersion||this.gdbVersion,e.dynamicDataSource=t.dynamicDataSource?d.A.from(t.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:s}=this,r=this._queryGet3DObjectFormat(t);if(null!=s&&r){if(e=e===t?e.clone():e,e.formatOf3DObjects=r,e.outSpatialReference&&!(0,l.aI)(e.outSpatialReference,this.sourceSpatialReference))throw new i.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==e.outFields||!e.outFields.includes("*")){e=e===t?e.clone():e,null==e.outFields&&(e.outFields=[]);const{originX:r,originY:n,originZ:i,translationX:a,translationY:o,translationZ:u,scaleX:c,scaleY:l,scaleZ:p,rotationX:h,rotationY:d,rotationZ:f,rotationDeg:y}=s.transformFieldRoles;e.outFields.push(r,n,i,a,o,u,c,l,p,h,d,f,y)}}return e}_normalizeFields(t){if(null!=this.fieldsIndex&&null!=t)for(const e of t){const t=this.fieldsIndex.get(e.name);t&&Object.assign(e,t.toJSON())}}_queryGet3DObjectFormat({returnGeometry:t,multipatchOption:e,outStatistics:s}){return!0!==t||"xyFootprint"===e||s?null:(0,p.Hz)(this.infoFor3D)}};(0,r.Cg)([(0,c.MZ)({type:d.A})],w.prototype,"dynamicDataSource",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"infoFor3D",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,r.Cg)([(0,c.MZ)()],w.prototype,"pbfSupported",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"pbfSupportedWithCurves",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"queryAttachmentsSupported",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"relativeTimeBinWindow",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"sourceSpatialReference",void 0),(0,r.Cg)([(0,c.MZ)()],w.prototype,"uniqueIdFields",void 0),(0,r.Cg)([(0,c.MZ)({type:String})],w.prototype,"url",void 0),w=(0,r.Cg)([(0,c.$K)("esri.layers.graphics.sources.support.QueryTask")],w)},64714(t,e,s){s.d(e,{F0:()=>o,Vx:()=>l,e2:()=>h,f:()=>d});var r=s(44208),n=s(4718),i=s(99352),a=s(93470);function o(t){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===t||"esriGeometryMultipoint"===t?a.Cb:"esriGeometryPolyline"===t?a.yM:a.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let c=1;function l(t,e){if((0,r.A)("esri-csp-restrictions"))return()=>({[e]:null,...t});try{let s=`this${p(e)} = null;`;for(const e in t)s+=`this${p(e)} = ${JSON.stringify(t[e])};`;const r=new Function(`\n return class AttributesClass$${c++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new r}catch(s){return()=>({[e]:null,...t})}}function p(t){return u.test(t)?`.${t}`:`[${JSON.stringify(t)}]`}function h(t={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(t)}}]}function d(t,e){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:t},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:e,supportsDelete:e,supportsEditing:e,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:e,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:i.P,editing:{supportsGeometryUpdate:e,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:e,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},92300(t,e,s){s.d(e,{V:()=>a,X:()=>i});var r=s(60408),n=s(65864);function i(t){return{geometryType:(0,r.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function a(t,e,s){const r=(0,n.xD)(e);return t.map(t=>{const e=r.fromJSON(t);return e.spatialReference=s,e})}},20615(t,e,s){s.d(e,{I:()=>a});var r=s(2272),n=s(80893),i=s(61956);function a(t,e,s,a){return(0,n.gW)((0,r.Dl)(t),i.A.from(e),s,a)}},74910(t,e,s){s.d(e,{L:()=>o});var r=s(5443),n=s(2272),i=s(80893),a=s(61956);async function o(t,e,s){const o=(0,n.Dl)(t),u=await(0,i.Jf)(o,a.A.from(e),{...s}),c=u.extent;return!c||isNaN(c.xmin)||isNaN(c.ymin)||isNaN(c.xmax)||isNaN(c.ymax)?{count:u.count,extent:null}:{count:u.count,extent:r.A.fromJSON(c)}}},78286(t,e,s){s.d(e,{V:()=>a});var r=s(2272),n=s(80893),i=s(61956);async function a(t,e,s,a){const o=(0,r.Dl)(t),u=await(0,n.Pk)(o,i.A.from(e),s,a);return u.objectIds??function(t){if(t)return function(t){return!Array.isArray(t[0])}(t)?t:t.map(t=>JSON.stringify(t))}(u.uniqueIds)??[]}},99199(t,e,s){s.d(e,{e:()=>u,s:()=>o});var r=s(2272),n=s(80893),i=s(22671),a=s(61956);async function o(t,e,s,r){const n=await u(t,e,s,r);return i.A.fromJSON(n)}function u(t,e,s,i){const o=(0,r.Dl)(t),u={...s},c=a.A.from(e);return(0,n.eW)(o,c,c.sourceSpatialReference,u,i)}},63746(t,e,s){function r(t){return class{constructor(){for(const e of t)this[e]=null}}}function n(t,e=1){const{transform:s,hasZ:r,hasM:n}=t;if(null==s)return r&&1!==e?t=>{t[2]*=e}:null;const[i,a]=function(t,e,s,r){let{scale:n,translate:i,originPosition:a}=t;return"upperLeft"===a&&(n=n.map((t,e)=>1===e?-t:t)),e&&(n=n.map((t,e)=>2===e?t*r:t),i=i.map((t,e)=>2===e?t*r:t)),!e&&s&&(n=n.filter((t,e)=>2!==e),i=i.filter((t,e)=>2!==e)),[n,i]}(s,r,n,e),o=t.hasZ?3:2;return t=>{for(let e=0;e<t.length&&(e!==o||0!==t[e]);++e)t[e]=t[e]*i[e]+a[e]}}s.d(e,{Mv:()=>n,_7:()=>r}),s(53966)}}]);