@arcgis/core 4.23.0-next.20220119 → 4.23.0-next.20220127

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 (479) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
  5. package/assets/esri/core/workers/chunks/0317f37b6c8705b363fd.js +1 -0
  6. package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
  7. package/assets/esri/core/workers/chunks/{d1454155ee1b8a421cbb.js → 0d02c6ad1f4688bfa374.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
  9. package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
  10. package/assets/esri/core/workers/chunks/12c0cabb6c59e65d8546.js +1 -0
  11. package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
  12. package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
  13. package/assets/esri/core/workers/chunks/199670a3a564ebe3bd79.js +1 -0
  14. package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
  15. package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
  16. package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
  17. package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
  18. package/assets/esri/core/workers/chunks/{b2ae5fc4f787ea568b88.js → 2460f3b6ada6ae900dec.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{99f0d896c17dd09cd285.js → 2629adf79e7fd9f25f07.js} +1 -1
  20. package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
  21. package/assets/esri/core/workers/chunks/{4d539878bfbd7c549e60.js → 2c8fe9bc988c3c5760a5.js} +1 -1
  22. package/assets/esri/core/workers/chunks/2e899ef5881b4ec6fa55.js +1 -0
  23. package/assets/esri/core/workers/chunks/322d917e8cb398816a93.js +1 -0
  24. package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
  25. package/assets/esri/core/workers/chunks/391e96192d1ec4e55ce2.js +1 -0
  26. package/assets/esri/core/workers/chunks/{1b28042fdf3f4dbc8ea5.js → 392b6382e06652dd4c80.js} +1 -1
  27. package/assets/esri/core/workers/chunks/3aa73119b055e05bbbeb.js +1 -0
  28. package/assets/esri/core/workers/chunks/3f343f792fd9f44d6f25.js +1 -0
  29. package/assets/esri/core/workers/chunks/422537fc3df707bb62c9.js +1 -0
  30. package/assets/esri/core/workers/chunks/{573dc3064e84ca86844d.js → 48fa8aed6c24877b44c4.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{44b01d42d4ec72913229.js → 4954fd86b48cc68b737c.js} +1 -1
  32. package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
  33. package/assets/esri/core/workers/chunks/4c76146014dc15143ba3.js +1 -0
  34. package/assets/esri/core/workers/chunks/52ea678ba1da0e349919.js +1 -0
  35. package/assets/esri/core/workers/chunks/56274b37ff74ca0d68a6.js +1 -0
  36. package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
  37. package/assets/esri/core/workers/chunks/57b349d1dbc0bed75b79.js +1 -0
  38. package/assets/esri/core/workers/chunks/5948923e07bd1662c24a.js +1 -0
  39. package/assets/esri/core/workers/chunks/5bcb3240b3c005e5fe72.js +1 -0
  40. package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
  41. package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
  42. package/assets/esri/core/workers/chunks/5ee497d5d7b0e580526a.js +1 -0
  43. package/assets/esri/core/workers/chunks/5f1dcb6556820cd0aa31.js +1 -0
  44. package/assets/esri/core/workers/chunks/601e697dc7414bda128a.js +1 -0
  45. package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
  46. package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +1 -0
  47. package/assets/esri/core/workers/chunks/68a59ce98177d8513337.js +1 -0
  48. package/assets/esri/core/workers/chunks/69fd99b7c76e9992ccf3.js +1 -0
  49. package/assets/esri/core/workers/chunks/{9cdaba126ac7fa5f33f0.js → 6cd5e4380d29b9a3c344.js} +1 -1
  50. package/assets/esri/core/workers/chunks/6e6a3c5866e8d8820457.js +1 -0
  51. package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
  52. package/assets/esri/core/workers/chunks/{7aa543a97f055cddea99.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{64276aacaafa4c8a15bd.js → 7dcf52d3db3903c8eb9f.js} +1 -1
  54. package/assets/esri/core/workers/chunks/8001b0e514bfffe9d7f8.js +1 -0
  55. package/assets/esri/core/workers/chunks/83b8fec1650e061aaa56.js +1 -0
  56. package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
  57. package/assets/esri/core/workers/chunks/842db82733635dbf25cb.js +1 -0
  58. package/assets/esri/core/workers/chunks/{625d2663daa8e0cf64b0.js → 85b1f36790df95b17659.js} +1 -1
  59. package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
  60. package/assets/esri/core/workers/chunks/8fa0a14165d43ffe87a5.js +1 -0
  61. package/assets/esri/core/workers/chunks/929c9b7cdab7c4ca3d87.js +1 -0
  62. package/assets/esri/core/workers/chunks/94515fb3ef38067eeadd.js +1 -0
  63. package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
  64. package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
  65. package/assets/esri/core/workers/chunks/a78757b9c7e8cbea08fa.js +1 -0
  66. package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
  67. package/assets/esri/core/workers/chunks/aa04b90b82bf70caaae4.js +1 -0
  68. package/assets/esri/core/workers/chunks/aeaa1667c2d9f1b3366b.js +1 -0
  69. package/assets/esri/core/workers/chunks/b2d2de935487257c568b.js +1 -0
  70. package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → b62e3dccd9f662c0afeb.js} +1 -1
  71. package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
  72. package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
  73. package/assets/esri/core/workers/chunks/{4b69129c0557852d9b3d.js → ba5eb394f098968c22d2.js} +1 -1
  74. package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
  75. package/assets/esri/core/workers/chunks/bac9fc90e6756e211160.js +1 -0
  76. package/assets/esri/core/workers/chunks/bf6dda4a2af14c4b7716.js +1 -0
  77. package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
  78. package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
  79. package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
  80. package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
  81. package/assets/esri/core/workers/chunks/c2253a9f29c1aabb2b75.js +1 -0
  82. package/assets/esri/core/workers/chunks/c9cbf8135e95f0f42cd9.js +1 -0
  83. package/assets/esri/core/workers/chunks/{d39b7983b68d6e5b404d.js → cdbc005eebec1503b99d.js} +1 -1
  84. package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
  85. package/assets/esri/core/workers/chunks/d07440469fe7d181c4fd.js +1 -0
  86. package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
  87. package/assets/esri/core/workers/chunks/d72488db62fcf39447b6.js +1 -0
  88. package/assets/esri/core/workers/chunks/d835b2a683fcd8aeeed8.js +1 -0
  89. package/assets/esri/core/workers/chunks/dbf192b4ce7e608610f6.js +1 -0
  90. package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
  91. package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +981 -0
  92. package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
  93. package/assets/esri/core/workers/chunks/{22b09e276c9b9f22f0f8.js → dee9929d95e9fe26929c.js} +1 -1
  94. package/assets/esri/core/workers/chunks/{a7b1b75643ed31489495.js → e0c8d61c7a85ce15499a.js} +1 -1
  95. package/assets/esri/core/workers/chunks/e12d91ef44d6f879a02a.js +1 -0
  96. package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → e4896cf85fb2da8a9cc7.js} +1 -1
  97. package/assets/esri/core/workers/chunks/e657ba0cab29f05d02da.js +1 -0
  98. package/assets/esri/core/workers/chunks/e8741bf421f80213f1d3.js +1 -0
  99. package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
  100. package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
  101. package/assets/esri/core/workers/chunks/e9e5196b44b6923be1a3.js +1 -0
  102. package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
  103. package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
  104. package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
  105. package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
  106. package/assets/esri/core/workers/chunks/f9ff3eaf4eb324429fbd.js +1 -0
  107. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  108. package/assets/esri/themes/base/_mixins.scss +4 -1
  109. package/assets/esri/themes/base/icons/style.scss +11 -2
  110. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +13 -10
  111. package/assets/esri/themes/base/widgets/_CoordinateConversion.scss +4 -2
  112. package/assets/esri/themes/base/widgets/_Directions.scss +5 -3
  113. package/assets/esri/themes/base/widgets/_Editor.scss +5 -2
  114. package/assets/esri/themes/base/widgets/_ElevationProfile.scss +6 -4
  115. package/assets/esri/themes/base/widgets/_FeatureTable.scss +6 -0
  116. package/assets/esri/themes/base/widgets/_ItemList.scss +1 -1
  117. package/assets/esri/themes/base/widgets/_LayerList.scss +13 -9
  118. package/assets/esri/themes/base/widgets/_Popup.scss +4 -2
  119. package/assets/esri/themes/base/widgets/_Print.scss +24 -11
  120. package/assets/esri/themes/base/widgets/_Search.scss +4 -2
  121. package/assets/esri/themes/base/widgets/_TableList.scss +9 -7
  122. package/assets/esri/themes/base/widgets/_Weather.scss +12 -0
  123. package/assets/esri/themes/base/widgets/_Widget.scss +18 -9
  124. package/assets/esri/themes/dark/main.css +1 -1
  125. package/assets/esri/themes/dark-blue/main.css +1 -1
  126. package/assets/esri/themes/dark-green/main.css +1 -1
  127. package/assets/esri/themes/dark-purple/main.css +1 -1
  128. package/assets/esri/themes/dark-red/main.css +1 -1
  129. package/assets/esri/themes/light/main.css +1 -1
  130. package/assets/esri/themes/light/view.css +1 -1
  131. package/assets/esri/themes/light-blue/main.css +1 -1
  132. package/assets/esri/themes/light-green/main.css +1 -1
  133. package/assets/esri/themes/light-purple/main.css +1 -1
  134. package/assets/esri/themes/light-red/main.css +1 -1
  135. package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
  136. package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
  137. package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
  138. package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
  139. package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
  140. package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
  141. package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
  142. package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
  143. package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
  144. package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
  145. package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
  146. package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
  147. package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
  148. package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
  149. package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
  150. package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
  151. package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
  152. package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
  153. package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
  154. package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
  155. package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
  156. package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
  157. package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
  158. package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
  159. package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
  160. package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
  161. package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
  162. package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
  163. package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
  164. package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
  165. package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
  166. package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
  167. package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
  168. package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
  169. package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
  170. package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
  171. package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
  172. package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
  173. package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
  174. package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
  175. package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
  176. package/chunks/CloudsComposition.glsl.js +4 -4
  177. package/chunks/ComponentShader.glsl.js +19 -19
  178. package/chunks/Precipitation.glsl.js +91 -0
  179. package/chunks/Terrain.glsl.js +11 -11
  180. package/chunks/WaterSurface.glsl.js +21 -21
  181. package/chunks/pe.js +1 -1
  182. package/chunks/vec3.js +1 -1
  183. package/chunks/vxlLayer.js +1 -1
  184. package/core/accessorSupport/ensureType.js +1 -1
  185. package/core/accessorSupport/get.js +1 -1
  186. package/core/accessorSupport/read.js +1 -1
  187. package/core/accessorSupport/set.js +1 -1
  188. package/core/accessorSupport/write.js +1 -1
  189. package/core/clock.js +1 -1
  190. package/core/has.js +1 -1
  191. package/core/jsonMap.js +1 -1
  192. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  193. package/core/promiseUtils.js +1 -1
  194. package/core/reactiveUtils.js +1 -1
  195. package/core/workers/workerFactory.js +1 -1
  196. package/form/ExpressionInfo.js +1 -1
  197. package/geometry/pe.js +1 -1
  198. package/geometry/support/axisAngleDegrees.js +1 -1
  199. package/geometry/support/heightModelInfoUtils.js +1 -1
  200. package/interfaces.d.ts +343 -106
  201. package/layers/RouteLayer.js +1 -1
  202. package/layers/VoxelLayer.js +1 -1
  203. package/layers/VoxelWasmPerScene.js +1 -1
  204. package/layers/support/RasterWorker.js +1 -1
  205. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  206. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  207. package/libs/vxl/enums.js +1 -1
  208. package/package.json +2 -2
  209. package/popup/content/AttachmentsContent.js +1 -1
  210. package/popup/content/support/mediaInfoTypes.js +1 -1
  211. package/portal/schemas/buildingSceneLayerItem.js +1 -1
  212. package/portal/schemas/definitions.js +1 -1
  213. package/portal/schemas/integratedMeshLayerItem.js +1 -1
  214. package/portal/schemas/pointCloudLayerItem.js +1 -1
  215. package/portal/schemas/sceneLayerItem.js +1 -1
  216. package/portal/schemas/webScene.js +1 -1
  217. package/rest/find.js +1 -1
  218. package/rest/geometryService/generalize.js +1 -1
  219. package/rest/geometryService/lengths.js +1 -1
  220. package/rest/geometryService/offset.js +1 -1
  221. package/rest/geometryService/relation.js +1 -1
  222. package/rest/geometryService/trimExtend.js +1 -1
  223. package/rest/identify.js +1 -1
  224. package/{tasks → rest}/operations/find.js +0 -0
  225. package/{tasks → rest}/operations/generalize.js +0 -0
  226. package/rest/operations/identify.js +5 -0
  227. package/{tasks → rest}/operations/lengths.js +0 -0
  228. package/{tasks → rest}/operations/offset.js +0 -0
  229. package/{tasks → rest}/operations/relation.js +0 -0
  230. package/{tasks → rest}/operations/trimExtend.js +0 -0
  231. package/{tasks → rest}/operations/urlUtils.js +0 -0
  232. package/rest/print.js +1 -1
  233. package/rest/query/operations/query.js +1 -1
  234. package/rest/query/operations/queryAttachments.js +1 -1
  235. package/rest/query/operations/queryRelatedRecords.js +1 -1
  236. package/rest/query/operations/queryTopFeatures.js +1 -1
  237. package/rest/route/utils.js +1 -1
  238. package/rest/support/NetworkServiceDescription.js +1 -1
  239. package/rest/support/RouteInfo.js +1 -1
  240. package/rest/support/RouteParameters.js +1 -1
  241. package/rest/support/RouteSettings.js +5 -0
  242. package/rest/support/Stop.js +1 -1
  243. package/rest/support/networkEnums.js +1 -1
  244. package/support/arcadeOnDemand.js +1 -1
  245. package/support/featureFlags.js +1 -1
  246. package/support/revision.js +1 -1
  247. package/symbols/Font.js +1 -1
  248. package/symbols/LabelSymbol3D.js +1 -1
  249. package/symbols/PointSymbol3D.js +1 -1
  250. package/symbols/TextSymbol.js +1 -1
  251. package/symbols/TextSymbol3DLayer.js +1 -1
  252. package/symbols/cim/CIMSymbolHelper.js +1 -1
  253. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  254. package/symbols/cim/cimAnalyzer.js +1 -1
  255. package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
  256. package/symbols/support/Symbol3DVerticalOffset.js +1 -1
  257. package/symbols/support/cimSymbolUtils.js +1 -1
  258. package/symbols/support/previewCIMSymbol.js +1 -1
  259. package/symbols/support/previewSymbol2D.js +1 -1
  260. package/symbols/support/previewSymbol3D.js +1 -1
  261. package/symbols/support/previewWebStyleSymbol.js +1 -1
  262. package/symbols/support/svgUtils.js +1 -1
  263. package/symbols/support/textUtils.js +5 -0
  264. package/symbols.js +1 -1
  265. package/views/2d/MapViewConstraints.js +1 -1
  266. package/views/2d/engine/webgl/brushes/raster/BrushRasterBitmap.js +1 -1
  267. package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
  268. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  269. package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
  270. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  271. package/views/2d/support/engineHelpers.js +1 -1
  272. package/views/2d/viewpointUtils.js +1 -1
  273. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  274. package/views/3d/environment/CloudsComposition.js +1 -1
  275. package/views/3d/environment/CloudsGenerator.js +1 -1
  276. package/views/3d/environment/CloudsPresets.js +1 -1
  277. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  278. package/views/3d/environment/Fog.js +1 -1
  279. package/views/3d/environment/Precipitation.glsl.js +5 -0
  280. package/views/3d/environment/Precipitation.js +5 -0
  281. package/views/3d/environment/PrecipitationTechnique.js +5 -0
  282. package/views/3d/environment/RainyWeather.js +1 -1
  283. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  284. package/views/3d/environment/SnowyWeather.js +5 -0
  285. package/views/3d/environment/weather.js +1 -1
  286. package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
  287. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  288. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  289. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  290. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  291. package/views/3d/layers/GraphicsView3D.js +1 -1
  292. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  293. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  294. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  295. package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayer.js +1 -1
  296. package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
  297. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +5 -0
  298. package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
  299. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  300. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  301. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  302. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  303. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  304. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  305. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  306. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  307. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  308. package/views/3d/layers/graphics/GraphicsProcessor.js +5 -0
  309. package/views/3d/layers/graphics/QueryEngine.js +1 -1
  310. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  311. package/views/3d/support/sunUtils.js +1 -1
  312. package/views/3d/terrain/OverlayRenderer.js +1 -1
  313. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +21 -13
  314. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
  315. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +12 -14
  316. package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
  317. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  318. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  319. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  320. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  321. package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
  322. package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
  323. package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
  324. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  325. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  326. package/views/3d/webgl-engine/parts/Model.js +1 -1
  327. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  328. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  329. package/views/MapView.js +1 -1
  330. package/views/SceneView.js +1 -1
  331. package/views/View.js +1 -1
  332. package/views/input/recognizers/DoubleTapDrag.js +1 -1
  333. package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
  334. package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
  335. package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
  336. package/views/interactive/dragEventPipeline.js +1 -1
  337. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  338. package/views/support/DefaultsFromMap.js +1 -1
  339. package/views/support/projectionUtils.js +5 -0
  340. package/views/webgl/ContextState.js +1 -1
  341. package/views/webgl/FramebufferObject.js +1 -1
  342. package/views/webgl/Renderbuffer.js +1 -1
  343. package/views/webgl/RenderingContext.js +1 -1
  344. package/views/webgl/Texture.js +1 -1
  345. package/views/webgl/Util.js +1 -1
  346. package/views/webgl/enums.js +1 -1
  347. package/views/webgl/rasterUtils.js +1 -1
  348. package/views/webgl/testFloatBufferBlend.js +1 -1
  349. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  350. package/widgets/Attachments.js +1 -1
  351. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  352. package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
  353. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  354. package/widgets/BasemapGallery.js +1 -1
  355. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  356. package/widgets/Feature/FeatureExpression.js +1 -1
  357. package/widgets/Feature/FeatureMedia/FeatureMediaViewModel.js +1 -1
  358. package/widgets/Feature/FeatureMedia.js +1 -1
  359. package/widgets/Feature/FeatureViewModel.js +1 -1
  360. package/widgets/FeatureForm/InputField.js +1 -1
  361. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  362. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  363. package/widgets/FeatureTable.js +1 -1
  364. package/widgets/LayerList/LayerListViewModel.js +1 -1
  365. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  366. package/widgets/Popup/PopupViewModel.js +1 -1
  367. package/widgets/Popup/actionUtils.js +1 -1
  368. package/widgets/Slice/SliceViewModel.js +1 -1
  369. package/widgets/Slider/SliderViewModel.js +1 -1
  370. package/widgets/Slider.js +1 -1
  371. package/widgets/Weather/WeatherViewModel.js +1 -1
  372. package/widgets/Weather/css.js +1 -1
  373. package/widgets/Weather/enums.js +5 -0
  374. package/widgets/Weather.js +1 -1
  375. package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
  376. package/widgets/support/InteractiveToolViewModel.js +1 -1
  377. package/widgets/support/geolocationUtils.js +1 -1
  378. package/assets/components/assets/calcite-icon/checkSquareF16.json +0 -1
  379. package/assets/components/assets/calcite-icon/checkSquareF24.json +0 -1
  380. package/assets/components/assets/calcite-icon/checkSquareF32.json +0 -1
  381. package/assets/components/assets/calcite-icon/lineSolid4.json +0 -1
  382. package/assets/components/assets/calcite-icon/squareF16.json +0 -1
  383. package/assets/components/assets/calcite-icon/squareF24.json +0 -1
  384. package/assets/components/assets/calcite-icon/squareF32.json +0 -1
  385. package/assets/components/assets/calcite-icon/xHexagon16.json +0 -1
  386. package/assets/components/assets/calcite-icon/xHexagon24.json +0 -1
  387. package/assets/components/assets/calcite-icon/xHexagon32.json +0 -1
  388. package/assets/components/assets/calcite-icon/xHexagonF16.json +0 -1
  389. package/assets/components/assets/calcite-icon/xHexagonF24.json +0 -1
  390. package/assets/components/assets/calcite-icon/xHexagonF32.json +0 -1
  391. package/assets/components/assets/calcite-icon/xOctagonF16.json +0 -1
  392. package/assets/components/assets/calcite-icon/xOctagonF24.json +0 -1
  393. package/assets/components/assets/calcite-icon/xOctagonF32.json +0 -1
  394. package/assets/esri/core/workers/chunks/01ef8de7f76a8c61b464.js +0 -1
  395. package/assets/esri/core/workers/chunks/05db312a0ca6bd3f014a.js +0 -1
  396. package/assets/esri/core/workers/chunks/09da224052976e290828.js +0 -1
  397. package/assets/esri/core/workers/chunks/0c3e3a5baf54bd5e210c.js +0 -1
  398. package/assets/esri/core/workers/chunks/0f254c3e91e8fee55f28.js +0 -1
  399. package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
  400. package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
  401. package/assets/esri/core/workers/chunks/1fd48459afb58a6cf14f.js +0 -1
  402. package/assets/esri/core/workers/chunks/20411bb8e04703962ce6.js +0 -1
  403. package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
  404. package/assets/esri/core/workers/chunks/21a77eed1a4ef5b0ff08.js +0 -1
  405. package/assets/esri/core/workers/chunks/23745a5ab47c840dc452.js +0 -1
  406. package/assets/esri/core/workers/chunks/2416f8bf8bbd2ec786ab.js +0 -1
  407. package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
  408. package/assets/esri/core/workers/chunks/2e445a8735ea2adb641a.js +0 -1
  409. package/assets/esri/core/workers/chunks/32f8c4af7e70ebdcb19e.js +0 -1
  410. package/assets/esri/core/workers/chunks/3564e14010953def6df9.js +0 -1
  411. package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
  412. package/assets/esri/core/workers/chunks/390d9021169e65c10eb8.js +0 -1
  413. package/assets/esri/core/workers/chunks/3a9740dccda6a733313c.js +0 -1
  414. package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
  415. package/assets/esri/core/workers/chunks/403c7d64f12f00330d88.js +0 -1
  416. package/assets/esri/core/workers/chunks/43cdff2418325e163420.js +0 -1
  417. package/assets/esri/core/workers/chunks/4409d77c9734de4e82a7.js +0 -1
  418. package/assets/esri/core/workers/chunks/47395d225229d237f0ac.js +0 -1
  419. package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
  420. package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
  421. package/assets/esri/core/workers/chunks/60371c0f750cde87656d.js +0 -1
  422. package/assets/esri/core/workers/chunks/615aa2d3ecafe30c80c0.js +0 -1
  423. package/assets/esri/core/workers/chunks/618076e6de605873e433.js +0 -1
  424. package/assets/esri/core/workers/chunks/631c5b514bb73782c570.js +0 -1
  425. package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
  426. package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
  427. package/assets/esri/core/workers/chunks/67162b3e2cc1b5dc6818.js +0 -1
  428. package/assets/esri/core/workers/chunks/6c1e92ff4c732dfda756.js +0 -1
  429. package/assets/esri/core/workers/chunks/722a10c65456844d72b9.js +0 -1
  430. package/assets/esri/core/workers/chunks/75d53b28afe732c459b2.js +0 -1
  431. package/assets/esri/core/workers/chunks/76eef4799f6c5fff7e2d.js +0 -1
  432. package/assets/esri/core/workers/chunks/7e596478507466953e65.js +0 -1
  433. package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
  434. package/assets/esri/core/workers/chunks/8967288145f8fbd20e7d.js +0 -1
  435. package/assets/esri/core/workers/chunks/8a250ec51097f16feb66.js +0 -1
  436. package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
  437. package/assets/esri/core/workers/chunks/8fdd5bca3716816d359b.js +0 -1
  438. package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
  439. package/assets/esri/core/workers/chunks/99a777693e4539f0b03b.js +0 -1
  440. package/assets/esri/core/workers/chunks/9d9dffc8884d66a258e4.js +0 -1
  441. package/assets/esri/core/workers/chunks/a28b53c61bddefb6616e.js +0 -1
  442. package/assets/esri/core/workers/chunks/a6ff3db3493543df81bc.js +0 -1
  443. package/assets/esri/core/workers/chunks/a8c13529367c037cdd94.js +0 -1
  444. package/assets/esri/core/workers/chunks/a960074644c3722be71e.js +0 -1
  445. package/assets/esri/core/workers/chunks/ac8dca61ade28c542ae2.js +0 -1
  446. package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
  447. package/assets/esri/core/workers/chunks/b10fcbe1393c812fc219.js +0 -1
  448. package/assets/esri/core/workers/chunks/b9de831ac379cf1d2969.js +0 -1
  449. package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
  450. package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
  451. package/assets/esri/core/workers/chunks/be2b7cce79fd41627931.js +0 -1
  452. package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
  453. package/assets/esri/core/workers/chunks/c13dfdd548dcb1bdb294.js +0 -1
  454. package/assets/esri/core/workers/chunks/c3eca92d02958732e141.js +0 -1
  455. package/assets/esri/core/workers/chunks/c6bd943fe8fd13bb4806.js +0 -1
  456. package/assets/esri/core/workers/chunks/c6f94b92e866b881d9b9.js +0 -1
  457. package/assets/esri/core/workers/chunks/c8f976e53e232e8da9cc.js +0 -981
  458. package/assets/esri/core/workers/chunks/cb68db7169b9dfd1c3ff.js +0 -1
  459. package/assets/esri/core/workers/chunks/cc96608b2802fbfe7a08.js +0 -1
  460. package/assets/esri/core/workers/chunks/cd02fe27eb07681cb366.js +0 -1
  461. package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
  462. package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
  463. package/assets/esri/core/workers/chunks/d52108864136c5a8a618.js +0 -1
  464. package/assets/esri/core/workers/chunks/da1c2873bdbc0956dca0.js +0 -1
  465. package/assets/esri/core/workers/chunks/dd433c160f7a0c120b82.js +0 -1
  466. package/assets/esri/core/workers/chunks/de03439ca2c9782bf325.js +0 -1
  467. package/assets/esri/core/workers/chunks/e2d68bcd2f99a65387bf.js +0 -1
  468. package/assets/esri/core/workers/chunks/e6df9839b551569fbc62.js +0 -1
  469. package/assets/esri/core/workers/chunks/ed0297fc61014e848c18.js +0 -1
  470. package/assets/esri/core/workers/chunks/ef8b75b92cf549e0507e.js +0 -1
  471. package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
  472. package/assets/esri/core/workers/chunks/f678293de9a6d8f5b5db.js +0 -1
  473. package/assets/esri/core/workers/chunks/f7fc4c993536e62f7f3e.js +0 -1
  474. package/assets/esri/core/workers/chunks/fd3e5d823dc7917f4b8f.js +0 -1
  475. package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
  476. package/symbols/support/constants.js +0 -5
  477. package/tasks/operations/identify.js +0 -5
  478. package/views/3d/layers/graphics/Graphics3DFeatureLikeLayerView.js +0 -5
  479. package/views/3d/layers/graphics/Graphics3DGraphicLikeLayerView.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1773],{51773:(t,e,o)=>{o.d(e,{Z:()=>$});var i=o(43697),r=o(80539),s=o(96674),n=o(22974),a=o(92604),l=o(95330),p=o(5600),d=o(90578),h=o(71715),c=o(52011),y=o(30556),u=o(75215),m=o(35671),f=o(84649),g=o(63801),v=o(48074),_=o(38745),b=o(9190),w=o(10214),x=o(44951);const C={base:null,key:"type",typeMap:{attachment:f.Z,media:w.Z,text:x.Z,expression:_.Z,field:b.Z}};var I,j=o(11223),F=o(422);o(67676),o(80442);let T=I=class extends s.wq{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new I({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,i._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],T.prototype,"returnTopmostRaster",void 0),(0,i._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],T.prototype,"showNoDataRecords",void 0),T=I=(0,i._)([(0,c.j)("esri.popup.LayerOptions")],T);const S=T;var Z,N=o(44729);let O=Z=class extends s.wq{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new Z({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,n.d9)(this.orderByFields):null})}};(0,i._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],O.prototype,"showRelatedRecords",void 0),(0,i._)([(0,p.Cb)({type:[N.Z],json:{write:!0}})],O.prototype,"orderByFields",void 0),O=Z=(0,i._)([(0,c.j)("esri.popup.RelatedRecordsInfo")],O);const M=O;var A,L=o(79742),D=o(15923),E=o(10699);let R=A=class extends((0,E.I)(D.Z)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new A({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,i._)([(0,p.Cb)()],R.prototype,"active",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"className",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"disabled",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"id",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"indicator",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"title",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"type",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"visible",void 0),R=A=(0,i._)([(0,c.j)("esri.support.actions.ActionBase")],R);const Y=R;var J;let B=J=class extends Y{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new J({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,i._)([(0,p.Cb)()],B.prototype,"image",void 0),B=J=(0,i._)([(0,c.j)("esri.support.Action.ActionButton")],B);const k=B;var q;let U=q=class extends Y{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new q({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,i._)([(0,p.Cb)()],U.prototype,"image",void 0),(0,i._)([(0,p.Cb)()],U.prototype,"value",void 0),U=q=(0,i._)([(0,c.j)("esri.support.Action.ActionToggle")],U);const V=U;var P;const z=r.Z.ofType({key:"type",defaultKeyValue:"button",base:Y,typeMap:{button:k,toggle:V}}),K={base:g.Z,key:"type",typeMap:{media:w.Z,custom:v.Z,text:x.Z,attachments:f.Z,fields:b.Z,expression:_.Z}},G="esri.PopupTemplate",W=a.Z.getLogger(G),H=["attachments","fields","media","text","expression"];let X=P=class extends s.wq{constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title="",this.relatedRecordsInfo=null}castContent(t){return Array.isArray(t)?t.map((t=>(0,u.N7)(K,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,l.y8)(t)?t:(W.error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e):this._readPopupInfo(e)}writeContent(t,e,o,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>-1!==H.indexOf(t.type))).map((t=>t&&t.toJSON(i))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type&&this._writeTextContent(t,e)}))):e.description=t}writeFieldInfos(t,e,o,i){const{content:r}=this,s=Array.isArray(r)?r:null;if(t){const o=s?s.filter((t=>"fields"===t.type)):[],r=o.length&&o.every((t=>{var e;return null==(e=t.fieldInfos)?void 0:e.length}));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(i);return r&&(e.visible=!1),e}))}if(s)for(const t of s)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}clone(){const{actions:t}=this,e=t?(0,n.d9)(t.toArray()):[];return new P({actions:e,content:Array.isArray(this.content)?(0,n.d9)(this.content):this.content,expressionInfos:Array.isArray(this.expressionInfos)?(0,n.d9)(this.expressionInfos):null,fieldInfos:Array.isArray(this.fieldInfos)?(0,n.d9)(this.fieldInfos):null,layerOptions:this.layerOptions?(0,n.d9)(this.layerOptions):null,lastEditInfoEnabled:this.lastEditInfoEnabled,outFields:Array.isArray(this.outFields)?(0,n.d9)(this.outFields):null,overwriteActions:this.overwriteActions,returnGeometry:this.returnGeometry,title:this.title,relatedRecordsInfo:this.relatedRecordsInfo?(0,n.d9)(this.relatedRecordsInfo):null})}async collectRequiredFields(t,e){await this._collectExpressionInfoFields(t,e,this._getContentExpressionInfos(this.content,this.expressionInfos)),(0,m.gd)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const o=(0,n.d9)(t.fieldInfos);Array.isArray(e.fieldInfos)?o.forEach((t=>{const o=e.fieldInfos.find((e=>e.fieldName.toLowerCase()===t.fieldName.toLowerCase()));o?o.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=o}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=(0,n.d9)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements({description:t,mediaInfos:e,popupElements:o}){const i={description:!1,mediaInfos:!1};return o.map((o=>"media"===o.type?(o.mediaInfos||!e||i.mediaInfos||(o.mediaInfos=e,i.mediaInfos=!0),w.Z.fromJSON(o)):"text"===o.type?(o.text||!t||i.description||(o.text=t,i.description=!0),x.Z.fromJSON(o)):"attachments"===o.type?f.Z.fromJSON(o):"fields"===o.type?b.Z.fromJSON(o):"expression"===o.type?_.Z.fromJSON(o):void 0)).filter(Boolean)}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o}){const i=[];return t?i.push(new x.Z({text:t})):i.push(new b.Z),Array.isArray(e)&&e.length&&i.push(w.Z.fromJSON({mediaInfos:e})),o&&i.push(f.Z.fromJSON({displayType:"auto"})),i.length?i:t}_getContentElementFields(t){const e=null==t?void 0:t.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos||this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):[]}_getMediaInfoFields(t){const{caption:e,title:o,value:i}=t,r=i||{},{fields:s=[],normalizeField:n,tooltipField:a,sourceURL:l,linkURL:p}=r,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(p),...s];return n&&d.push(n),a&&d.push(a),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e||[]):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,o){o&&await Promise.all(o.map((o=>(0,m.io)(t,e,o.expression))))}_getFieldInfoFields(t){return t?t.filter((t=>void 0===t.visible||!!t.visible)).map((t=>t.fieldName)).filter((t=>-1===t.indexOf("relationships/")&&-1===t.indexOf("expression/"))):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){if(!t||"string"!=typeof t)return[];const e=t.match(/{[^}]*}/g);if(!e)return[];const o=/\{(\w+):.+\}/,i=e.filter((t=>!(0===t.indexOf("{relationships/")||0===t.indexOf("{expression/")))).map((t=>t.replace(o,"{$1}")));return i?i.map((t=>t.slice(1,-1))):[]}};(0,i._)([(0,p.Cb)({type:z})],X.prototype,"actions",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"content",void 0),(0,i._)([(0,d.p)("content")],X.prototype,"castContent",null),(0,i._)([(0,h.r)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments"])],X.prototype,"readContent",null),(0,i._)([(0,y.c)("content",{popupElements:{type:r.Z.ofType(C)},showAttachments:{type:Boolean},mediaInfos:{type:r.Z.ofType(L.V)},description:{type:String}})],X.prototype,"writeContent",null),(0,i._)([(0,p.Cb)({type:[j.Z],json:{write:!0}})],X.prototype,"expressionInfos",void 0),(0,i._)([(0,p.Cb)({type:[F.Z]})],X.prototype,"fieldInfos",void 0),(0,i._)([(0,y.c)("fieldInfos")],X.prototype,"writeFieldInfos",null),(0,i._)([(0,p.Cb)({type:S})],X.prototype,"layerOptions",void 0),(0,i._)([(0,y.c)("layerOptions")],X.prototype,"writeLayerOptions",null),(0,i._)([(0,p.Cb)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],X.prototype,"lastEditInfoEnabled",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"outFields",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"overwriteActions",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"returnGeometry",void 0),(0,i._)([(0,p.Cb)({json:{type:String}})],X.prototype,"title",void 0),(0,i._)([(0,y.c)("title")],X.prototype,"writeTitle",null),(0,i._)([(0,p.Cb)({type:M,json:{write:!0}})],X.prototype,"relatedRecordsInfo",void 0),X=P=(0,i._)([(0,c.j)(G)],X);const $=X},90344:(t,e,o)=>{o.d(e,{Ze:()=>f,p6:()=>g});var i=o(35454),r=o(70171);const s={year:"numeric",month:"numeric",day:"numeric"},n={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},d={...p,second:"numeric"},h={"short-date":s,"short-date-short-time":{...s,...p},"short-date-short-time-24":{...s,...p,hour12:!1},"short-date-long-time":{...s,...d},"short-date-long-time-24":{...s,...d,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...p},"short-date-le-short-time-24":{...s,...p,hour12:!1},"short-date-le-long-time":{...s,...d},"short-date-le-long-time-24":{...s,...d,hour12:!1},"long-month-day-year":n,"long-month-day-year-short-time":{...n,...p},"long-month-day-year-short-time-24":{...n,...p,hour12:!1},"long-month-day-year-long-time":{...n,...d},"long-month-day-year-long-time-24":{...n,...d,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...p},"day-short-month-year-short-time-24":{...a,...p,hour12:!1},"day-short-month-year-long-time":{...a,...d},"day-short-month-year-long-time-24":{...a,...d,hour12:!1},"long-date":l,"long-date-short-time":{...l,...p},"long-date-short-time-24":{...l,...p,hour12:!1},"long-date-long-time":{...l,...d},"long-date-long-time-24":{...l,...d,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":d},c=(0,i.wY)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),y=(c.apiValues,c.toJSON.bind(c),c.fromJSON.bind(c),{ar:"ar-u-nu-latn-ca-gregory"});let u=new WeakMap,m=h["short-date-short-time"];function f(t){return h[t]||null}function g(t,e){return function(t){const e=t||m;if(!u.has(e)){const t=(0,r.Kd)(),o=y[(0,r.Kd)()]||t;u.set(e,new Intl.DateTimeFormat(o,e))}return u.get(e)}(e).format(t)}(0,r.Ze)((()=>{u=new WeakMap,m=h["short-date-short-time"]}))},18848:(t,e,o)=>{o.d(e,{sh:()=>l,uf:()=>p});var i=o(70586),r=o(70171);const s={ar:"ar-u-nu-latn"};let n=new WeakMap,a={};function l(t={}){const e={};return null!=t.digitSeparator&&(e.useGrouping=t.digitSeparator),null!=t.places&&(e.minimumFractionDigits=e.maximumFractionDigits=t.places),e}function p(t,e){return function(t){const e=t||a;if(!n.has(e)){const o=(0,r.Kd)(),i=s[(0,r.Kd)()]||o;n.set(e,new Intl.NumberFormat(i,t))}return(0,i.j0)(n.get(e))}(e).format(t)}(0,r.Ze)((()=>{n=new WeakMap,a={}}))},11223:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(96674),n=o(5600),a=(o(67676),o(80442),o(75215),o(52011));let l=i=class extends s.wq{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r._)([(0,n.Cb)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r._)([(0,a.j)("esri.popup.ExpressionInfo")],l);const p=l},422:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(35454),n=o(96674),a=o(22974),l=o(5600),p=(o(75215),o(36030)),d=o(52011),h=o(63061);let c=i=class extends n.wq{constructor(t){super(t),this.fieldName=null,this.format=null,this.isEditable=!1,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new i({fieldName:this.fieldName,format:this.format?(0,a.d9)(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,r._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],c.prototype,"format",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0,default:!1}})],c.prototype,"isEditable",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,p.J)(new s.Xn({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,r._)([(0,l.Cb)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=i=(0,r._)([(0,d.j)("esri.popup.FieldInfo")],c);const y=c},84649:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(63801);let l=i=class extends a.Z{constructor(t){super(t),this.description=null,this.displayType=null,this.title=null,this.type="attachments"}clone(){return new i({description:this.description,displayType:this.displayType,title:this.title})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"description",void 0),(0,r._)([(0,s.Cb)({type:["auto","preview","list"],json:{write:!0}})],l.prototype,"displayType",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.content.AttachmentsContent")],l);const p=l},41463:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="bar-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.BarChartMediaInfo")],p);const d=p},87131:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="column-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.ColumnChartMediaInfo")],p);const d=p},63801:(t,e,o)=>{o.d(e,{Z:()=>l});var i=o(43697),r=o(96674),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011));let a=class extends r.wq{constructor(t){super(t),this.type=null}};(0,i._)([(0,s.Cb)({type:["attachments","custom","fields","media","text","expression"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,n.j)("esri.popup.content.Content")],a);const l=a},48074:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(52011)),l=o(63801);let p=i=class extends l.Z{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,s.d9)(this.outFields):null})}};(0,r._)([(0,n.Cb)()],p.prototype,"creator",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"destroyer",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"outFields",void 0),(0,r._)([(0,n.Cb)({type:["custom"],readOnly:!0})],p.prototype,"type",void 0),p=i=(0,r._)([(0,a.j)("esri.popup.content.CustomContent")],p);const d=p},38745:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(96674);let l=i=class extends a.wq{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new i({title:this.title,expression:this.expression})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r._)([(0,s.Cb)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.ElementExpressionInfo")],l);const p=l;var d,h=o(63801);let c=d=class extends h.Z{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){var t;return new d({expressionInfo:null==(t=this.expressionInfo)?void 0:t.clone()})}};(0,r._)([(0,s.Cb)({type:p,json:{write:!0}})],c.prototype,"expressionInfo",void 0),(0,r._)([(0,s.Cb)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0),c=d=(0,r._)([(0,n.j)("esri.popup.content.ExpressionContent")],c);const y=c},9190:(t,e,o)=>{o.d(e,{Z:()=>c});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(52011)),l=o(30556),p=o(422),d=o(63801);let h=i=class extends d.Z{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map((t=>t.toJSON()))}clone(){return new i((0,s.d9)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],h.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:[p.Z]})],h.prototype,"fieldInfos",void 0),(0,r._)([(0,l.c)("fieldInfos")],h.prototype,"writeFieldInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=i=(0,r._)([(0,a.j)("esri.popup.content.FieldsContent")],h);const c=h},13151:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(35320),l=o(96674);let p=i=class extends l.wq{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new i({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"linkURL",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"sourceURL",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.support.ImageMediaInfoValue")],p);const d=p;var h;let c=h=class extends a.Z{constructor(t){super(t),this.refreshInterval=null,this.type="image",this.value=null}clone(){return new h({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],c.prototype,"refreshInterval",void 0),(0,r._)([(0,s.Cb)({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:d,json:{write:!0}})],c.prototype,"value",void 0),c=h=(0,r._)([(0,n.j)("esri.popup.content.ImageMediaInfo")],c);const y=c},55869:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="line-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.LineChartMediaInfo")],p);const d=p},10214:(t,e,o)=>{o.d(e,{Z:()=>v});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(71715)),l=o(52011),p=o(30556),d=o(41463),h=o(87131),c=o(63801),y=o(13151),u=o(55869),m=o(13353),f=o(79742);let g=i=class extends c.Z{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map((t=>"image"===t.type?y.Z.fromJSON(t):"barchart"===t.type?d.Z.fromJSON(t):"columnchart"===t.type?h.Z.fromJSON(t):"linechart"===t.type?u.Z.fromJSON(t):"piechart"===t.type?m.Z.fromJSON(t):void 0)).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map((t=>t.toJSON()))}clone(){return new i((0,s.d9)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r._)([(0,n.Cb)()],g.prototype,"activeMediaInfoIndex",void 0),(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],g.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],g.prototype,"description",void 0),(0,r._)([(0,n.Cb)({types:[f.V]})],g.prototype,"mediaInfos",void 0),(0,r._)([(0,a.r)("mediaInfos")],g.prototype,"readMediaInfos",null),(0,r._)([(0,p.c)("mediaInfos")],g.prototype,"writeMediaInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],g.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],g.prototype,"type",void 0),g=i=(0,r._)([(0,l.j)("esri.popup.content.MediaContent")],g);const v=g},13353:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="pie-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.PieChartMediaInfo")],p);const d=p},44951:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(63801);let l=i=class extends a.Z{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new i({text:this.text})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"text",void 0),(0,r._)([(0,s.Cb)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.content.TextContent")],l);const p=l},50379:(t,e,o)=>{o.d(e,{Z:()=>g});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(35320),l=o(96674),p=o(22974),d=o(15923);let h=i=class extends d.Z{constructor(t){super(t),this.tooltip=null,this.value=null}clone(){return new i({tooltip:this.tooltip,value:this.value})}};(0,r._)([(0,s.Cb)()],h.prototype,"tooltip",void 0),(0,r._)([(0,s.Cb)()],h.prototype,"value",void 0),h=i=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValueSeries")],h);const c=h;var y;let u=y=class extends l.wq{constructor(t){super(t),this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new y({fields:(0,p.d9)(this.fields),normalizeField:this.normalizeField,tooltipField:this.tooltipField})}};(0,r._)([(0,s.Cb)({type:[String],json:{write:!0}})],u.prototype,"fields",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"normalizeField",void 0),(0,r._)([(0,s.Cb)({type:[c],json:{read:!1}})],u.prototype,"series",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"tooltipField",void 0),u=y=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValue")],u);const m=u;let f=class extends a.Z{constructor(t){super(t),this.type=null,this.value=null}};(0,r._)([(0,s.Cb)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],f.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:m,json:{write:!0}})],f.prototype,"value",void 0),f=(0,r._)([(0,n.j)("esri.popup.content.mixins.ChartMediaInfo")],f);const g=f},35320:(t,e,o)=>{o.d(e,{Z:()=>l});var i=o(43697),r=o(96674),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011));let a=class extends r.wq{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"altText",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"caption",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,i._)([(0,s.Cb)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,n.j)("esri.popup.content.mixins.MediaInfo")],a);const l=a},87102:(t,e,o)=>{o.d(e,{l:()=>i});const i=(0,o(35454).wY)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},79742:(t,e,o)=>{o.d(e,{V:()=>l});var i=o(41463),r=o(87131),s=o(13151),n=o(55869),a=o(13353);const l={base:o(35320).Z,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":i.Z,"column-chart":r.Z,"line-chart":n.Z,"pie-chart":a.Z,image:s.Z}}},63061:(t,e,o)=>{o.d(e,{Z:()=>u});var i=o(43697);const r=(0,o(35454).wY)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"});r.toJSON.bind(r),r.fromJSON.bind(r);var s,n=o(96674),a=o(5600),l=(o(67676),o(80442),o(75215)),p=o(36030),d=o(52011),h=o(90344),c=o(18848);let y=s=class extends n.wq{constructor(t){super(t),this.dateFormat=null,this.dateTimeFormatOptions=null,this.digitSeparator=!1,this.places=null}clone(){return new s({dateFormat:this.dateFormat,digitSeparator:this.digitSeparator,places:this.places})}format(t){return this.dateFormat?(0,h.p6)(t,{...(0,h.Ze)(this.dateFormat),...this.dateTimeFormatOptions}):(0,c.uf)(t,(0,c.sh)(this))}};(0,i._)([(0,p.J)(r)],y.prototype,"dateFormat",void 0),(0,i._)([(0,a.Cb)({type:Object,json:{read:!1}})],y.prototype,"dateTimeFormatOptions",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"digitSeparator",void 0),(0,i._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],y.prototype,"places",void 0),y=s=(0,i._)([(0,d.j)("esri.popup.support.FieldInfoFormat")],y);const u=y},44729:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(96674),n=o(5600),a=(o(67676),o(80442),o(75215),o(52011));let l=i=class extends s.wq{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,r._)([(0,n.Cb)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=i=(0,r._)([(0,a.j)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const p=l}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1773],{51773:(t,e,o)=>{o.d(e,{Z:()=>$});var i=o(43697),r=o(80539),s=o(96674),n=o(22974),a=o(92604),l=o(95330),p=o(5600),d=o(90578),h=o(71715),c=o(52011),y=o(30556),u=o(75215),m=o(35671),f=o(84649),g=o(63801),v=o(48074),_=o(38745),b=o(9190),w=o(10214),x=o(44951);const C={base:null,key:"type",typeMap:{attachment:f.Z,media:w.Z,text:x.Z,expression:_.Z,field:b.Z}};var I,j=o(11223),F=o(422);o(67676),o(80442);let T=I=class extends s.wq{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new I({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,i._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],T.prototype,"returnTopmostRaster",void 0),(0,i._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],T.prototype,"showNoDataRecords",void 0),T=I=(0,i._)([(0,c.j)("esri.popup.LayerOptions")],T);const S=T;var Z,N=o(44729);let O=Z=class extends s.wq{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new Z({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,n.d9)(this.orderByFields):null})}};(0,i._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],O.prototype,"showRelatedRecords",void 0),(0,i._)([(0,p.Cb)({type:[N.Z],json:{write:!0}})],O.prototype,"orderByFields",void 0),O=Z=(0,i._)([(0,c.j)("esri.popup.RelatedRecordsInfo")],O);const M=O;var A,L=o(79742),D=o(15923),E=o(10699);let R=A=class extends((0,E.I)(D.Z)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new A({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,i._)([(0,p.Cb)()],R.prototype,"active",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"className",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"disabled",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"id",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"indicator",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"title",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"type",void 0),(0,i._)([(0,p.Cb)()],R.prototype,"visible",void 0),R=A=(0,i._)([(0,c.j)("esri.support.actions.ActionBase")],R);const Y=R;var J;let B=J=class extends Y{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new J({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,i._)([(0,p.Cb)()],B.prototype,"image",void 0),B=J=(0,i._)([(0,c.j)("esri.support.Action.ActionButton")],B);const k=B;var q;let U=q=class extends Y{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new q({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,i._)([(0,p.Cb)()],U.prototype,"image",void 0),(0,i._)([(0,p.Cb)()],U.prototype,"value",void 0),U=q=(0,i._)([(0,c.j)("esri.support.Action.ActionToggle")],U);const V=U;var P;const z=r.Z.ofType({key:"type",defaultKeyValue:"button",base:Y,typeMap:{button:k,toggle:V}}),K={base:g.Z,key:"type",typeMap:{media:w.Z,custom:v.Z,text:x.Z,attachments:f.Z,fields:b.Z,expression:_.Z}},G="esri.PopupTemplate",W=a.Z.getLogger(G),H=["attachments","fields","media","text","expression"];let X=P=class extends s.wq{constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title="",this.relatedRecordsInfo=null}castContent(t){return Array.isArray(t)?t.map((t=>(0,u.N7)(K,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,l.y8)(t)?t:(W.error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e):this._readPopupInfo(e)}writeContent(t,e,o,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>-1!==H.indexOf(t.type))).map((t=>t&&t.toJSON(i))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type&&this._writeTextContent(t,e)}))):e.description=t}writeFieldInfos(t,e,o,i){const{content:r}=this,s=Array.isArray(r)?r:null;if(t){const o=s?s.filter((t=>"fields"===t.type)):[],r=o.length&&o.every((t=>{var e;return null==(e=t.fieldInfos)?void 0:e.length}));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(i);return r&&(e.visible=!1),e}))}if(s)for(const t of s)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}clone(){const{actions:t}=this,e=t?(0,n.d9)(t.toArray()):[];return new P({actions:e,content:Array.isArray(this.content)?(0,n.d9)(this.content):this.content,expressionInfos:Array.isArray(this.expressionInfos)?(0,n.d9)(this.expressionInfos):null,fieldInfos:Array.isArray(this.fieldInfos)?(0,n.d9)(this.fieldInfos):null,layerOptions:this.layerOptions?(0,n.d9)(this.layerOptions):null,lastEditInfoEnabled:this.lastEditInfoEnabled,outFields:Array.isArray(this.outFields)?(0,n.d9)(this.outFields):null,overwriteActions:this.overwriteActions,returnGeometry:this.returnGeometry,title:this.title,relatedRecordsInfo:this.relatedRecordsInfo?(0,n.d9)(this.relatedRecordsInfo):null})}async collectRequiredFields(t,e){await this._collectExpressionInfoFields(t,e,this._getContentExpressionInfos(this.content,this.expressionInfos)),(0,m.gd)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const o=(0,n.d9)(t.fieldInfos);Array.isArray(e.fieldInfos)?o.forEach((t=>{const o=e.fieldInfos.find((e=>e.fieldName.toLowerCase()===t.fieldName.toLowerCase()));o?o.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=o}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=(0,n.d9)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements({description:t,mediaInfos:e,popupElements:o}){const i={description:!1,mediaInfos:!1};return o.map((o=>"media"===o.type?(o.mediaInfos||!e||i.mediaInfos||(o.mediaInfos=e,i.mediaInfos=!0),w.Z.fromJSON(o)):"text"===o.type?(o.text||!t||i.description||(o.text=t,i.description=!0),x.Z.fromJSON(o)):"attachments"===o.type?f.Z.fromJSON(o):"fields"===o.type?b.Z.fromJSON(o):"expression"===o.type?_.Z.fromJSON(o):void 0)).filter(Boolean)}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o}){const i=[];return t?i.push(new x.Z({text:t})):i.push(new b.Z),Array.isArray(e)&&e.length&&i.push(w.Z.fromJSON({mediaInfos:e})),o&&i.push(f.Z.fromJSON({displayType:"auto"})),i.length?i:t}_getContentElementFields(t){const e=null==t?void 0:t.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos||this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):[]}_getMediaInfoFields(t){const{caption:e,title:o,value:i}=t,r=i||{},{fields:s=[],normalizeField:n,tooltipField:a,sourceURL:l,linkURL:p}=r,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(p),...s];return n&&d.push(n),a&&d.push(a),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e||[]):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,o){o&&await Promise.all(o.map((o=>(0,m.io)(t,e,o.expression))))}_getFieldInfoFields(t){return t?t.filter((t=>void 0===t.visible||!!t.visible)).map((t=>t.fieldName)).filter((t=>-1===t.indexOf("relationships/")&&-1===t.indexOf("expression/"))):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){if(!t||"string"!=typeof t)return[];const e=t.match(/{[^}]*}/g);if(!e)return[];const o=/\{(\w+):.+\}/,i=e.filter((t=>!(0===t.indexOf("{relationships/")||0===t.indexOf("{expression/")))).map((t=>t.replace(o,"{$1}")));return i?i.map((t=>t.slice(1,-1))):[]}};(0,i._)([(0,p.Cb)({type:z})],X.prototype,"actions",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"content",void 0),(0,i._)([(0,d.p)("content")],X.prototype,"castContent",null),(0,i._)([(0,h.r)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments"])],X.prototype,"readContent",null),(0,i._)([(0,y.c)("content",{popupElements:{type:r.Z.ofType(C)},showAttachments:{type:Boolean},mediaInfos:{type:r.Z.ofType(L.V)},description:{type:String}})],X.prototype,"writeContent",null),(0,i._)([(0,p.Cb)({type:[j.Z],json:{write:!0}})],X.prototype,"expressionInfos",void 0),(0,i._)([(0,p.Cb)({type:[F.Z]})],X.prototype,"fieldInfos",void 0),(0,i._)([(0,y.c)("fieldInfos")],X.prototype,"writeFieldInfos",null),(0,i._)([(0,p.Cb)({type:S})],X.prototype,"layerOptions",void 0),(0,i._)([(0,y.c)("layerOptions")],X.prototype,"writeLayerOptions",null),(0,i._)([(0,p.Cb)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],X.prototype,"lastEditInfoEnabled",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"outFields",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"overwriteActions",void 0),(0,i._)([(0,p.Cb)()],X.prototype,"returnGeometry",void 0),(0,i._)([(0,p.Cb)({json:{type:String}})],X.prototype,"title",void 0),(0,i._)([(0,y.c)("title")],X.prototype,"writeTitle",null),(0,i._)([(0,p.Cb)({type:M,json:{write:!0}})],X.prototype,"relatedRecordsInfo",void 0),X=P=(0,i._)([(0,c.j)(G)],X);const $=X},90344:(t,e,o)=>{o.d(e,{Ze:()=>f,p6:()=>g});var i=o(35454),r=o(70171);const s={year:"numeric",month:"numeric",day:"numeric"},n={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},d={...p,second:"numeric"},h={"short-date":s,"short-date-short-time":{...s,...p},"short-date-short-time-24":{...s,...p,hour12:!1},"short-date-long-time":{...s,...d},"short-date-long-time-24":{...s,...d,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...p},"short-date-le-short-time-24":{...s,...p,hour12:!1},"short-date-le-long-time":{...s,...d},"short-date-le-long-time-24":{...s,...d,hour12:!1},"long-month-day-year":n,"long-month-day-year-short-time":{...n,...p},"long-month-day-year-short-time-24":{...n,...p,hour12:!1},"long-month-day-year-long-time":{...n,...d},"long-month-day-year-long-time-24":{...n,...d,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...p},"day-short-month-year-short-time-24":{...a,...p,hour12:!1},"day-short-month-year-long-time":{...a,...d},"day-short-month-year-long-time-24":{...a,...d,hour12:!1},"long-date":l,"long-date-short-time":{...l,...p},"long-date-short-time-24":{...l,...p,hour12:!1},"long-date-long-time":{...l,...d},"long-date-long-time-24":{...l,...d,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":d},c=(0,i.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),y=(c.apiValues,c.toJSON.bind(c),c.fromJSON.bind(c),{ar:"ar-u-nu-latn-ca-gregory"});let u=new WeakMap,m=h["short-date-short-time"];function f(t){return h[t]||null}function g(t,e){return function(t){const e=t||m;if(!u.has(e)){const t=(0,r.Kd)(),o=y[(0,r.Kd)()]||t;u.set(e,new Intl.DateTimeFormat(o,e))}return u.get(e)}(e).format(t)}(0,r.Ze)((()=>{u=new WeakMap,m=h["short-date-short-time"]}))},18848:(t,e,o)=>{o.d(e,{sh:()=>l,uf:()=>p});var i=o(70586),r=o(70171);const s={ar:"ar-u-nu-latn"};let n=new WeakMap,a={};function l(t={}){const e={};return null!=t.digitSeparator&&(e.useGrouping=t.digitSeparator),null!=t.places&&(e.minimumFractionDigits=e.maximumFractionDigits=t.places),e}function p(t,e){return function(t){const e=t||a;if(!n.has(e)){const o=(0,r.Kd)(),i=s[(0,r.Kd)()]||o;n.set(e,new Intl.NumberFormat(i,t))}return(0,i.j0)(n.get(e))}(e).format(t)}(0,r.Ze)((()=>{n=new WeakMap,a={}}))},11223:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(96674),n=o(5600),a=(o(67676),o(80442),o(75215),o(52011));let l=i=class extends s.wq{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r._)([(0,n.Cb)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r._)([(0,a.j)("esri.popup.ExpressionInfo")],l);const p=l},422:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(35454),n=o(96674),a=o(22974),l=o(5600),p=(o(75215),o(36030)),d=o(52011),h=o(63061);let c=i=class extends n.wq{constructor(t){super(t),this.fieldName=null,this.format=null,this.isEditable=!1,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new i({fieldName:this.fieldName,format:this.format?(0,a.d9)(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,r._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],c.prototype,"format",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0,default:!1}})],c.prototype,"isEditable",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,p.J)(new s.X({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,r._)([(0,l.Cb)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=i=(0,r._)([(0,d.j)("esri.popup.FieldInfo")],c);const y=c},84649:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(63801);let l=i=class extends a.Z{constructor(t){super(t),this.description=null,this.displayType="auto",this.title=null,this.type="attachments"}clone(){return new i({description:this.description,displayType:this.displayType,title:this.title})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"description",void 0),(0,r._)([(0,s.Cb)({type:["auto","preview","list"],json:{write:!0}})],l.prototype,"displayType",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.content.AttachmentsContent")],l);const p=l},41463:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="bar-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.BarChartMediaInfo")],p);const d=p},87131:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="column-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.ColumnChartMediaInfo")],p);const d=p},63801:(t,e,o)=>{o.d(e,{Z:()=>l});var i=o(43697),r=o(96674),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011));let a=class extends r.wq{constructor(t){super(t),this.type=null}};(0,i._)([(0,s.Cb)({type:["attachments","custom","fields","media","text","expression"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,n.j)("esri.popup.content.Content")],a);const l=a},48074:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(52011)),l=o(63801);let p=i=class extends l.Z{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,s.d9)(this.outFields):null})}};(0,r._)([(0,n.Cb)()],p.prototype,"creator",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"destroyer",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"outFields",void 0),(0,r._)([(0,n.Cb)({type:["custom"],readOnly:!0})],p.prototype,"type",void 0),p=i=(0,r._)([(0,a.j)("esri.popup.content.CustomContent")],p);const d=p},38745:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(96674);let l=i=class extends a.wq{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new i({title:this.title,expression:this.expression})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r._)([(0,s.Cb)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.ElementExpressionInfo")],l);const p=l;var d,h=o(63801);let c=d=class extends h.Z{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){var t;return new d({expressionInfo:null==(t=this.expressionInfo)?void 0:t.clone()})}};(0,r._)([(0,s.Cb)({type:p,json:{write:!0}})],c.prototype,"expressionInfo",void 0),(0,r._)([(0,s.Cb)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0),c=d=(0,r._)([(0,n.j)("esri.popup.content.ExpressionContent")],c);const y=c},9190:(t,e,o)=>{o.d(e,{Z:()=>c});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(52011)),l=o(30556),p=o(422),d=o(63801);let h=i=class extends d.Z{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map((t=>t.toJSON()))}clone(){return new i((0,s.d9)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],h.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:[p.Z]})],h.prototype,"fieldInfos",void 0),(0,r._)([(0,l.c)("fieldInfos")],h.prototype,"writeFieldInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=i=(0,r._)([(0,a.j)("esri.popup.content.FieldsContent")],h);const c=h},13151:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(35320),l=o(96674);let p=i=class extends l.wq{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new i({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"linkURL",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"sourceURL",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.support.ImageMediaInfoValue")],p);const d=p;var h;let c=h=class extends a.Z{constructor(t){super(t),this.refreshInterval=null,this.type="image",this.value=null}clone(){return new h({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],c.prototype,"refreshInterval",void 0),(0,r._)([(0,s.Cb)({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:d,json:{write:!0}})],c.prototype,"value",void 0),c=h=(0,r._)([(0,n.j)("esri.popup.content.ImageMediaInfo")],c);const y=c},55869:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="line-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.LineChartMediaInfo")],p);const d=p},10214:(t,e,o)=>{o.d(e,{Z:()=>v});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(71715)),l=o(52011),p=o(30556),d=o(41463),h=o(87131),c=o(63801),y=o(13151),u=o(55869),m=o(13353),f=o(79742);let g=i=class extends c.Z{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map((t=>"image"===t.type?y.Z.fromJSON(t):"barchart"===t.type?d.Z.fromJSON(t):"columnchart"===t.type?h.Z.fromJSON(t):"linechart"===t.type?u.Z.fromJSON(t):"piechart"===t.type?m.Z.fromJSON(t):void 0)).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map((t=>t.toJSON()))}clone(){return new i((0,s.d9)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r._)([(0,n.Cb)()],g.prototype,"activeMediaInfoIndex",void 0),(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],g.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],g.prototype,"description",void 0),(0,r._)([(0,n.Cb)({types:[f.V]})],g.prototype,"mediaInfos",void 0),(0,r._)([(0,a.r)("mediaInfos")],g.prototype,"readMediaInfos",null),(0,r._)([(0,p.c)("mediaInfos")],g.prototype,"writeMediaInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],g.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],g.prototype,"type",void 0),g=i=(0,r._)([(0,l.j)("esri.popup.content.MediaContent")],g);const v=g},13353:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="pie-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.PieChartMediaInfo")],p);const d=p},44951:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(63801);let l=i=class extends a.Z{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new i({text:this.text})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"text",void 0),(0,r._)([(0,s.Cb)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.content.TextContent")],l);const p=l},50379:(t,e,o)=>{o.d(e,{Z:()=>g});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(35320),l=o(96674),p=o(22974),d=o(15923);let h=i=class extends d.Z{constructor(t){super(t),this.tooltip=null,this.value=null}clone(){return new i({tooltip:this.tooltip,value:this.value})}};(0,r._)([(0,s.Cb)()],h.prototype,"tooltip",void 0),(0,r._)([(0,s.Cb)()],h.prototype,"value",void 0),h=i=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValueSeries")],h);const c=h;var y;let u=y=class extends l.wq{constructor(t){super(t),this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new y({fields:(0,p.d9)(this.fields),normalizeField:this.normalizeField,tooltipField:this.tooltipField})}};(0,r._)([(0,s.Cb)({type:[String],json:{write:!0}})],u.prototype,"fields",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"normalizeField",void 0),(0,r._)([(0,s.Cb)({type:[c],json:{read:!1}})],u.prototype,"series",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"tooltipField",void 0),u=y=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValue")],u);const m=u;let f=class extends a.Z{constructor(t){super(t),this.type=null,this.value=null}};(0,r._)([(0,s.Cb)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],f.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:m,json:{write:!0}})],f.prototype,"value",void 0),f=(0,r._)([(0,n.j)("esri.popup.content.mixins.ChartMediaInfo")],f);const g=f},35320:(t,e,o)=>{o.d(e,{Z:()=>l});var i=o(43697),r=o(96674),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011));let a=class extends r.wq{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"altText",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"caption",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,i._)([(0,s.Cb)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,n.j)("esri.popup.content.mixins.MediaInfo")],a);const l=a},87102:(t,e,o)=>{o.d(e,{l:()=>i});const i=(0,o(35454).w)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},79742:(t,e,o)=>{o.d(e,{V:()=>l});var i=o(41463),r=o(87131),s=o(13151),n=o(55869),a=o(13353);const l={base:o(35320).Z,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":i.Z,"column-chart":r.Z,"line-chart":n.Z,"pie-chart":a.Z,image:s.Z}}},63061:(t,e,o)=>{o.d(e,{Z:()=>u});var i=o(43697);const r=(0,o(35454).w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"});r.toJSON.bind(r),r.fromJSON.bind(r);var s,n=o(96674),a=o(5600),l=(o(67676),o(80442),o(75215)),p=o(36030),d=o(52011),h=o(90344),c=o(18848);let y=s=class extends n.wq{constructor(t){super(t),this.dateFormat=null,this.dateTimeFormatOptions=null,this.digitSeparator=!1,this.places=null}clone(){return new s({dateFormat:this.dateFormat,digitSeparator:this.digitSeparator,places:this.places})}format(t){return this.dateFormat?(0,h.p6)(t,{...(0,h.Ze)(this.dateFormat),...this.dateTimeFormatOptions}):(0,c.uf)(t,(0,c.sh)(this))}};(0,i._)([(0,p.J)(r)],y.prototype,"dateFormat",void 0),(0,i._)([(0,a.Cb)({type:Object,json:{read:!1}})],y.prototype,"dateTimeFormatOptions",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"digitSeparator",void 0),(0,i._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],y.prototype,"places",void 0),y=s=(0,i._)([(0,d.j)("esri.popup.support.FieldInfoFormat")],y);const u=y},44729:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(96674),n=o(5600),a=(o(67676),o(80442),o(75215),o(52011));let l=i=class extends s.wq{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,r._)([(0,n.Cb)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=i=(0,r._)([(0,a.j)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const p=l}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4547],{99880:(e,t,n)=>{n.d(t,{V:()=>P});var r=n(68773),o=(n(3172),n(20102)),_=n(92604),s=n(17452);const i=_.Z.getLogger("esri.assets");function P(e){if(!r.Z.assetsPath)throw i.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,s.v_)(r.Z.assetsPath,e)}},83305:(e,t,n)=>{n.d(t,{e:()=>l,f:()=>E,g:()=>u,h:()=>A,i:()=>i,j:()=>N,l:()=>P,p:()=>G});var r=n(99880),o=n(80442);let _,s=null;function i(){return!!s}function P(){return _||(_=n.e(6774).then(n.bind(n,66774)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,r.V)(`esri/geometry/support/${e}`)}))).then((e=>{T(e)})),_)}var u,E,l,c;!function(e){function t(e,t,n){s.ensureCache.prepare();const r=L(n),o=n===r,_=s.ensureFloat64(r),i=s._pe_geog_to_proj(s.getPointer(e),t,_);return i&&d(n,t,_,o),i}function n(e,t,n){return r(e,t,n,0)}function r(e,t,n,r){s.ensureCache.prepare();const o=L(n),_=n===o,i=s.ensureFloat64(o),P=s._pe_proj_to_geog_center(s.getPointer(e),t,i,r);return P&&d(n,t,i,_),P}e.geogToProj=t,e.projGeog=function(e,r,o,_){switch(_){case E.PE_TRANSFORM_P_TO_G:return n(e,r,o);case E.PE_TRANSFORM_G_TO_P:return t(e,r,o)}return 0},e.projToGeog=n,e.projToGeogCenter=r}(u||(u={})),(c=E||(E={})).init=function(){c.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,c.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,c.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,c.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,c.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,c.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,c.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,c.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,c.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,c.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,c.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,c.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,c.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,c.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,c.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,c.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,c.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,c.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,c.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,c.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,c.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,c.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,c.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,c.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,c.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,c.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,c.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,c.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,c.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,c.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const t={},n={},r=e=>{if(e){const t=e.getType();switch(t){case E.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case E.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case E.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:t&E.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}}return e};function o(e,n){let o=null,_=t[e];if(_||(_={},t[e]=_),_.hasOwnProperty(String(n)))o=_[n];else{const t=s.PeFactory.prototype.factoryByType(e,n);s.compare(t,s.NULL)||(o=t,_[n]=o)}return o=r(o),o}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return o(E.PE_TYPE_COORDSYS,e)},e.factoryByType=o,e.fromString=function(e,t){let o=null,_=n[e];if(_||(_={},n[e]=_),_.hasOwnProperty(t))o=_[t];else{const n=s.PeFactory.prototype.fromString(e,t);s.compare(n,s.NULL)||(o=n,_[t]=o)}return o=r(o),o},e.geogcs=function(e){return o(E.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return o(E.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return o(E.PE_TYPE_PROJCS,e)},e.unit=function(e){return o(E.PE_TYPE_UNIT,e)}}(l||(l={}));let a=null;var S,C,A,f,R,p,O,N,M;function T(e){function t(e,t,n){e[t]=n(e[t])}s=e,E.init(),S.init(),R.init(),O.init(),N.init(),a=class extends s.PeGCSExtent{destroy(){s.destroy(this)}};const n=[s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of n)t(e.prototype,"getName",(e=>function(){return e.call(this,new Array(E.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(E.PE_PARM_MAX);let n=e.call(this);for(let e=0;e<t.length;e++){const r=s.getValue(n,"*");t[e]=r?s.wrapPointer(r,s.PeParameter):null,n+=Int32Array.BYTES_PER_ELEMENT}return t}));t(s.PeHorizon.prototype,"getCoord",(e=>function(){const t=this.getSize();if(!t)return null;const n=[];return d(n,t,e.call(this)),n})),t(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=s._pe_getPeGTlistExtendedGTsSize();return function(){let n=null;const r=e.call(this);if(!s.compare(r,s.NULL)){n=[r];const e=this.getSteps();if(e>1){const o=s.getPointer(r);for(let r=1;r<e;r++)n.push(s.wrapPointer(o+t*r,s.PeGTlistExtendedGTs))}}return n}}));const r=s._pe_getPeHorizonSize(),o=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let n=null;const o=e.call(this);if(!s.compare(o,s.NULL)){n=[o];const e=o.getNump();if(e>1){const t=s.getPointer(o);for(let o=1;o<e;o++)n.push(s.wrapPointer(t+r*o,s.PeHorizon))}}return t.set(e,n),n};t(s.PeProjcs.prototype,"horizonGcsGenerate",o),t(s.PeProjcs.prototype,"horizonPcsGenerate",o),s.PeObject.prototype.toString=function(e=E.PE_STR_OPTS_NONE){s.ensureCache.prepare();const t=s.getPointer(this),n=s.ensureInt8(new Array(E.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(t,e,n))}}function g(e){if(!e)return;const t=s.getClass(e);if(!t)return;const n=s.getCache(t);if(!n)return;const r=s.getPointer(e);r&&delete n[r]}function h(e,t){const n=[],r=new Array(t);for(let t=0;t<e;t++)n.push(s.ensureInt8(r));return n}function L(e){let t;return Array.isArray(e[0])?(t=[],e.forEach((e=>{t.push(e[0],e[1])}))):t=e,t}function d(e,t,n,r=!1){if(r)for(let r=0;r<2*t;r++)e[r]=s.getValue(n+r*Float64Array.BYTES_PER_ELEMENT,"double");else{const r=0===e.length;for(let o=0;o<t;o++)r&&(e[o]=new Array(2)),e[o][0]=s.getValue(n,"double"),e[o][1]=s.getValue(n+Float64Array.BYTES_PER_ELEMENT,"double"),n+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,n,r,o,_,i){let P=null;const u=new s.PeInteger(i);try{const E=s.PeGTlistExtended.prototype.getGTlist(e,n,r,o,_,u);if((i=u.val)&&(P=[E],i>1)){const e=s.getPointer(E);for(let n=1;n<i;n++)P.push(s.wrapPointer(e+t*n,s.PeGTlistExtendedEntry))}}finally{s.destroy(u)}return P}}(S||(S={})),function(e){e.destroy=function(e){if(e&&e.length){for(const t of e)g(t),t.getEntries().forEach((e=>{g(e);const t=e.getGeogtran();g(t),t.getParameters().forEach(g),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{g(e);const t=e.getDatum();g(t),g(t.getSpheroid()),g(e.getPrimem()),g(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(C||(C={})),function(e){e.geogToGeog=function(e,t,n,r,o){s.ensureCache.prepare();const _=L(n),i=n===_,P=s.ensureFloat64(_);let u=0;r&&(u=s.ensureFloat64(r));const E=s._pe_geog_to_geog(s.getPointer(e),t,P,u,o);return E&&d(n,t,P,i),E}}(A||(A={})),function(e){const t=(e,t,n,r,o,_)=>{let i,P;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_geog_to_dd,P=E.PE_DD_MAX;break;case"ddm":i=s._pe_geog_to_ddm,P=E.PE_DDM_MAX;break;case"dms":i=s._pe_geog_to_dms,P=E.PE_DMS_MAX}let u=0;t&&(u=s.getPointer(t));const l=L(r),c=s.ensureFloat64(l),a=h(n,P),S=i(u,n,c,o,s.ensureInt32(a));if(S)for(let e=0;e<n;e++)_[e]=s.UTF8ToString(a[e]);return S},n=(e,t,n,r,o)=>{let _;switch(s.ensureCache.prepare(),e){case"dd":_=s._pe_dd_to_geog;break;case"ddm":_=s._pe_ddm_to_geog;break;case"dms":_=s._pe_dms_to_geog}let i=0;t&&(i=s.getPointer(t));const P=r.map((e=>s.ensureString(e))),u=s.ensureInt32(P),E=s.ensureFloat64(new Array(2*n)),l=_(i,n,u,E);return l&&d(o,n,E),l};e.geogToDms=function(e,n,r,o,_){return t("dms",e,n,r,o,_)},e.dmsToGeog=function(e,t,r,o){return n("dms",e,t,r,o)},e.geogToDdm=function(e,n,r,o,_){return t("ddm",e,n,r,o,_)},e.ddmToGeog=function(e,t,r,o){return n("ddm",e,t,r,o)},e.geogToDd=function(e,n,r,o,_){return t("dd",e,n,r,o,_)},e.ddToGeog=function(e,t,r,o){return n("dd",e,t,r,o)}}(f||(f={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,n,r,o,_,i){s.ensureCache.prepare();let P=0;e&&(P=s.getPointer(e));const u=L(n),l=s.ensureFloat64(u),c=h(t,E.PE_MGRS_MAX),a=s.ensureInt32(c),S=s._pe_geog_to_mgrs_extended(P,t,l,r,o,_,a);if(S)for(let e=0;e<t;e++)i[e]=s.UTF8ToString(c[e]);return S},e.mgrsToGeogExtended=function(e,t,n,r,o){s.ensureCache.prepare();let _=0;e&&(_=s.getPointer(e));const i=n.map((e=>s.ensureString(e))),P=s.ensureInt32(i),u=s.ensureFloat64(new Array(2*t)),E=s._pe_mgrs_to_geog_extended(_,t,P,r,u);return E&&d(o,t,u),E}}(R||(R={})),function(e){e.geogToUsng=function(e,t,n,r,o,_,i){s.ensureCache.prepare();let P=0;e&&(P=s.getPointer(e));const u=L(n),l=s.ensureFloat64(u),c=h(t,E.PE_MGRS_MAX),a=s.ensureInt32(c),S=s._pe_geog_to_usng(P,t,l,r,o,_,a);if(S)for(let e=0;e<t;e++)i[e]=s.UTF8ToString(c[e]);return S},e.usngToGeog=function(e,t,n,r){s.ensureCache.prepare();let o=0;e&&(o=s.getPointer(e));const _=n.map((e=>s.ensureString(e))),i=s.ensureInt32(_),P=s.ensureFloat64(new Array(2*t)),u=s._pe_usng_to_geog(o,t,i,P);return u&&d(r,t,P),u}}(p||(p={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,n,r,o){s.ensureCache.prepare();let _=0;e&&(_=s.getPointer(e));const i=L(n),P=s.ensureFloat64(i),u=h(t,E.PE_UTM_MAX),l=s.ensureInt32(u),c=s._pe_geog_to_utm(_,t,P,r,l);if(c)for(let e=0;e<t;e++)o[e]=s.UTF8ToString(u[e]);return c},e.utmToGeog=function(e,t,n,r,o){s.ensureCache.prepare();let _=0;e&&(_=s.getPointer(e));const i=n.map((e=>s.ensureString(e))),P=s.ensureInt32(i),u=s.ensureFloat64(new Array(2*t)),E=s._pe_utm_to_geog(_,t,P,r,u);return E&&d(o,t,u),E}}(O||(O={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(n,r=e.PE_PCSINFO_OPTION_DOMAIN){let o,_;return t.has(n)&&(_=t.get(n),_[r]&&(o=_[r])),o||(o=s.PePCSInfo.prototype.generate(n,r),_||(_=[],t.set(n,_)),_[r]=o),o}}(N||(N={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(M||(M={}));const G=Object.freeze({__proto__:null,get _pe(){return s},isLoaded:i,isSupported:function(){return!!(0,o.Z)("esri-wasm")},load:P,get PeCSTransformations(){return u},get PeDefs(){return E},get PeFactory(){return l},get PeGCSExtent(){return a},get PeGTlistExtended(){return S},get PeGTlistExtendedEntry(){return C},get PeGTTransformations(){return A},get PeNotationDms(){return f},get PeNotationMgrs(){return R},get PeNotationUsng(){return p},get PeNotationUtm(){return O},get PePCSInfo(){return N},get PeVersion(){return M},_init:T})},44547:(e,t,n)=>{n.d(t,{Up:()=>w,Bm:()=>Z,iQ:()=>U,kR:()=>G,zD:()=>I,iV:()=>y,CM:()=>B,oj:()=>F,KC:()=>k,Wt:()=>D});var r=n(20102),o=n(22021),_=n(70586),s=n(95330),i=n(67900),P=n(52138),u=(n(17896),n(65617)),E=n(6570),l=n(65091),c=n(83305),a=n(13473),S=n(17332),C=n(58901),A=n(24678),f=(n(24470),n(68441));Math.PI;const R=f.sv.radius,p=f.sv.eccentricitySquared,O={a1:R*p,a2:R*p*R*p,a3:R*p*p/2,a4:R*p*R*p*2.5,a5:R*p+R*p*p/2,a6:1-p};f.sv.radius,f.sv.flattening,f.Z1.radius,f.Z1.flattening,f.yr.radius,f.yr.flattening,f.yr.radius;var N=n(18571),M=n(8744),T=n(56726);n(69285);let g=null,h=null,L=null,d={};function G(){return!!g&&(0,c.i)()}function I(e){return(0,_.Wi)(L)&&(L=Promise.all([(0,c.l)(),n.e(5837).then(n.bind(n,45837)).then((e=>e.g)),n.e(819).then(n.bind(n,80819))])),L.then((([,t,{hydratedAdapter:n}])=>{(0,s.k_)(e),h=n,g=t.default,g._enableProjection(c.p)}))}function y(e,t,n=null){return Array.isArray(e)?0===e.length?[]:F(h,e,e[0].spatialReference,t,n):F(h,[e],e.spatialReference,t,n)[0]}function F(e,t,n,r,o=null){if((0,_.Wi)(n)||(0,_.Wi)(r))return t;if(w(n,r,o))return t.map((e=>(0,_.Wg)(function(e,t,n){return e?"x"in e?function(e,t,n,r,o){Oe[0]=e.x,Oe[1]=e.y;const _=e.z;return Oe[2]=void 0!==_?_:o,B(Oe,t,0,Oe,r,0,1)?(n.x=Oe[0],n.y=Oe[1],n.spatialReference=r,void 0===_?(n.z=void 0,n.hasZ=!1):(n.z=Oe[2],n.hasZ=!0),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}(e,t,new a.Z,n,0):"xmin"in e?function(e,t,n,r,o){const{xmin:_,ymin:s,xmax:i,ymax:P,hasZ:u,hasM:E}=e;return v(_,s,u?e.zmin:o,t,Oe,r)?(n.xmin=Oe[0],n.ymin=Oe[1],u&&(n.zmin=Oe[2]),v(i,P,u?e.zmax:o,t,Oe,r)?(n.xmax=Oe[0],n.ymax=Oe[1],u&&(n.zmax=Oe[2]),E&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null):null}(e,t,new E.Z,n,0):"rings"in e?H(e,t,new S.Z,n,0):"paths"in e?function(e,t,n,r,o){const{paths:_,hasZ:s,hasM:i}=e,P=[];return Y(_,s,i,t,P,r,o)?(n.paths=P,n.spatialReference=r,n.hasZ=s,n.hasM=i,n):null}(e,t,new C.Z,n,0):"points"in e?function(e,t,n,r,o){const{points:_,hasZ:s,hasM:i}=e,P=[],u=_.length,E=[];for(const e of _)E.push(e[0],e[1],s?e[2]:o);if(!B(E,t,0,E,r,0,u))return null;for(let e=0;e<u;++e){const t=3*e,n=E[t],r=E[t+1];s&&i?P.push([n,r,E[t+2],_[e][3]]):s?P.push([n,r,E[t+2]]):i?P.push([n,r,_[e][2]]):P.push([n,r])}return n.points=P,n.spatialReference=r,n.hasZ=s,n.hasM=i,n}(e,t,new l.Z,n,0):null:null}(e,n,r))));if((0,_.Wi)(o)){const e=N.Z.cacheKey(n,r);void 0!==d[e]?o=d[e]:(o=function(e,t,n=null){if((0,_.Wi)(g))throw new W;if((0,_.Wi)(e)||(0,_.Wi)(t))return null;const r=g._getTransformation(h,e,t,n,null==n?void 0:n.spatialReference);return null!==r?N.Z.fromGE(r):null}(n,r,null),(0,_.Wi)(o)&&(o=new N.Z),d[e]=o)}if((0,_.Wi)(g))throw new W;return g._project(e,t,n,r,o)}class W extends r.Z{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}var m;function w(e,t,n){return!n&&(!!(0,M.fS)(e,t)||(0,M.JY)(e)&&(0,M.JY)(t)&&!!Ee(e,t,Se))}async function U(e,t,n,r){if(!G())if(Array.isArray(e)){for(const{source:t,dest:n,geographicTransformation:o}of e)if(!w(t,n,o))return I(r)}else if(!w(e,t,n))return I(r)}function D(e,t,n=t.spatialReference,r=0){return(0,_.pC)(n)&&(0,_.pC)(H(e,e.spatialReference,t,n,r))}function H(e,t,n,r,o){const{rings:_,hasZ:s,hasM:i}=e,P=[];return Y(_,s,i,t,P,r,o)?(n.rings=P,n.spatialReference=r,n.hasZ=s,n.hasM=i,n):null}function k(e,t,n,r=0){Oe[0]=e.x,Oe[1]=e.y;const o=e.z;return Oe[2]=void 0!==o?o:r,B(Oe,e.spatialReference,0,t,n,0,1)}function v(e,t,n,r,o,_){return fe[0]=e,fe[1]=t,fe[2]=n,B(fe,r,0,o,_,0,1)}function B(e,t,n,r,o,s,i=1){const P=Ee(t,o,Se);if((0,_.Wi)(P))return!1;if(P===X){if(e===r&&n===s)return!0;const t=n+3*i;for(let o=n,_=s;o<t;o++,_++)r[_]=e[o];return!0}const u=n+3*i;for(let t=n,o=s;t<u;t+=3,o+=3)P(e,t,r,o);return!0}function Y(e,t,n,r,o,_,s=0){const i=new Array;for(const n of e)for(const e of n)i.push(e[0],e[1],t?e[2]:s);if(!B(i,r,0,i,_,0,i.length/3))return!1;let P=0;o.length=0;for(const r of e){const e=new Array;for(const o of r)t&&n?e.push([i[P++],i[P++],i[P++],o[3]]):t?e.push([i[P++],i[P++],i[P++]]):n?(e.push([i[P++],i[P++],o[2]]),P++):(e.push([i[P++],i[P++]]),P++);o.push(e)}return!0}function Z(e,t,n,r){if((0,_.Wi)(e)||(0,_.Wi)(r))return!1;const o=K(e,ce),s=K(r,ae);if(o===s&&!j(s)&&(o!==m.UNKNOWN||(0,M.fS)(e,r)))return(0,P.f)(n,t),!0;if(j(s)){const e=ue[o][m.LON_LAT],r=ue[m.LON_LAT][s];return!(0,_.Wi)(e)&&!(0,_.Wi)(r)&&(e(t,0,Re,0),r(Re,0,pe,0),x(Ce*Re[0],Ce*Re[1],n),n[12]=pe[0],n[13]=pe[1],n[14]=pe[2],!0)}if(!(s!==m.WEB_MERCATOR&&s!==m.PLATE_CARREE||o!==m.WGS84&&o!==m.SPHERICAL_ECEF&&o!==m.WEB_MERCATOR)){const e=ue[o][m.LON_LAT],r=ue[m.LON_LAT][s];return!(0,_.Wi)(e)&&!(0,_.Wi)(r)&&(e(t,0,Re,0),r(Re,0,pe,0),o===m.SPHERICAL_ECEF?function(e,t,n){x(e,t,n),(0,P.t)(n,n)}(Ce*Re[0],Ce*Re[1],n):(0,P.i)(n),n[12]=pe[0],n[13]=pe[1],n[14]=pe[2],!0)}return!1}function j(e){return e===m.SPHERICAL_ECEF||e===m.SPHERICAL_MARS_PCPF||e===m.SPHERICAL_MOON_PCPF}function x(e,t,n){const r=Math.sin(e),o=Math.cos(e),_=Math.sin(t),s=Math.cos(t),i=n;return i[0]=-r,i[4]=-_*o,i[8]=s*o,i[12]=0,i[1]=o,i[5]=-_*r,i[9]=s*r,i[13]=0,i[2]=0,i[6]=s,i[10]=_,i[14]=0,i[3]=0,i[7]=0,i[11]=0,i[15]=1,i}function K(e,t){return t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.c9)(e,1)),e.wkt===A.GG.wkt?t.spatialReferenceId=m.SPHERICAL_ECEF:(0,M.oR)(e)?t.spatialReferenceId=m.WGS84:(0,M.sS)(e)?t.spatialReferenceId=m.WEB_MERCATOR:(0,M.QM)(e)?t.spatialReferenceId=m.PLATE_CARREE:e.wkt===A.wY.wkt?t.spatialReferenceId=m.WGS84_ECEF:e.wkid===T.W.CGCS2000?t.spatialReferenceId=m.CGCS2000:e.wkt===A.HQ.wkt?t.spatialReferenceId=m.SPHERICAL_MARS_PCPF:e.wkt===A.VY.wkt?t.spatialReferenceId=m.SPHERICAL_MOON_PCPF:(0,M.BZ)(e)?t.spatialReferenceId=m.GCSMARS2000:(0,M.V2)(e)?t.spatialReferenceId=m.GCSMOON2000:t.spatialReferenceId=m.UNKNOWN)}function X(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t])}function b(e,t,n,r){n[r++]=Ae*(e[t++]/f.sv.radius),n[r++]=Ae*(Math.PI/2-2*Math.atan(Math.exp(-e[t++]/f.sv.radius))),n[r]=e[t]}function z(e,t,n,r){!function(e,t,n,r,_){const s=.4999999*Math.PI,i=(0,o.uZ)(Ce*e[t+1],-s,s),P=Math.sin(i);n[r++]=Ce*e[t]*_.radius,n[r++]=_.halfSemiMajorAxis*Math.log((1+P)/(1-P)),n[r]=e[t+2]}(e,t,n,r,f.sv)}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SPHERICAL_ECEF=1]="SPHERICAL_ECEF",e[e.WGS84=2]="WGS84",e[e.WEB_MERCATOR=3]="WEB_MERCATOR",e[e.WGS84_ECEF=4]="WGS84_ECEF",e[e.CGCS2000=5]="CGCS2000",e[e.WGS84_COMPARABLE_LON_LAT=6]="WGS84_COMPARABLE_LON_LAT",e[e.SPHERICAL_MARS_PCPF=7]="SPHERICAL_MARS_PCPF",e[e.GCSMARS2000=8]="GCSMARS2000",e[e.SPHERICAL_MOON_PCPF=9]="SPHERICAL_MOON_PCPF",e[e.GCSMOON2000=10]="GCSMOON2000",e[e.LON_LAT=11]="LON_LAT",e[e.PLATE_CARREE=12]="PLATE_CARREE"}(m||(m={}));const V=f.sv.radius*Math.PI/180,q=180/(f.sv.radius*Math.PI);function J(e,t,n,r){n[r]=e[t]*V,n[r+1]=e[t+1]*V,n[r+2]=e[t+2]}function Q(e,t,n,r){n[r]=e[t]*q,n[r+1]=e[t+1]*q,n[r+2]=e[t+2]}function $(e,t,n,r,o){const _=o+e[t+2],s=Ce*e[t+1],i=Ce*e[t],P=Math.cos(s);n[r++]=Math.cos(i)*P*_,n[r++]=Math.sin(i)*P*_,n[r]=Math.sin(s)*_}function ee(e,t,n,r){$(e,t,n,r,f.Z1.radius)}function te(e,t,n,r){$(e,t,n,r,f.yr.radius)}function ne(e,t,n,r){$(e,t,n,r,f.sv.radius)}function re(e,t,n,r,_){const s=e[t],i=e[t+1],P=e[t+2],u=Math.sqrt(s*s+i*i+P*P),E=(0,o.Kt)(P/(0===u?1:u)),l=Math.atan2(i,s);n[r++]=Ae*l,n[r++]=Ae*E,n[r]=u-_}function oe(e,t,n,r){re(e,t,n,r,f.Z1.radius)}function _e(e,t,n,r){re(e,t,n,r,f.yr.radius)}function se(e,t,n,r){re(e,t,n,r,f.sv.radius)}function ie(e,t,n,r){!function(e,t,n,r,o){const _=Ce*e[t],s=Ce*e[t+1],i=e[t+2],P=Math.sin(s),u=Math.cos(s),E=o.radius/Math.sqrt(1-o.eccentricitySquared*P*P);n[r++]=(E+i)*u*Math.cos(_),n[r++]=(E+i)*u*Math.sin(_),n[r++]=(E*(1-o.eccentricitySquared)+i)*P}(e,t,n,r,f.sv)}function Pe(e,t,n,r){const o=O,_=e[t],s=e[t+1],i=e[t+2];let P,u,E,l,c,a,S,C,A,R,p,N,M,T,g,h,L,d,G,I,y;P=Math.abs(i),u=_*_+s*s,E=Math.sqrt(u),l=u+i*i,c=Math.sqrt(l),I=Math.atan2(s,_),a=i*i/l,S=u/l,T=o.a2/c,g=o.a3-o.a4/c,S>.3?(C=P/c*(1+S*(o.a1+T+a*g)/c),G=Math.asin(C),R=C*C,A=Math.sqrt(1-R)):(A=E/c*(1-a*(o.a5-T-S*g)/c),G=Math.acos(A),R=1-A*A,C=Math.sqrt(R)),p=1-f.sv.eccentricitySquared*R,N=f.sv.radius/Math.sqrt(p),M=o.a6*N,T=E-N*A,g=P-M*C,L=A*T+C*g,h=A*g-C*T,d=h/(M/p+L),G+=d,y=L+h*d/2,i<0&&(G=-G),n[r++]=Ae*I,n[r++]=Ae*G,n[r]=y}const ue={[m.WGS84]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:X,[m.SPHERICAL_ECEF]:ne,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:z,[m.PLATE_CARREE]:J,[m.WGS84]:X,[m.WGS84_ECEF]:ie},[m.CGCS2000]:{[m.CGCS2000]:X,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:X,[m.SPHERICAL_ECEF]:ne,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:J,[m.WGS84]:null,[m.WGS84_ECEF]:ie},[m.GCSMARS2000]:{[m.CGCS2000]:null,[m.GCSMARS2000]:X,[m.GCSMOON2000]:null,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:null,[m.SPHERICAL_ECEF]:null,[m.SPHERICAL_MARS_PCPF]:te,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:null,[m.WGS84]:null,[m.WGS84_ECEF]:null},[m.GCSMOON2000]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:X,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:null,[m.SPHERICAL_ECEF]:null,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:ee,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:null,[m.WGS84]:null,[m.WGS84_ECEF]:null},[m.WEB_MERCATOR]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:b,[m.WGS84_COMPARABLE_LON_LAT]:b,[m.SPHERICAL_ECEF]:function(e,t,n,r){b(e,t,n,r),ne(n,r,n,r)},[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:X,[m.PLATE_CARREE]:function(e,t,n,r){b(e,t,n,r),J(n,r,n,r)},[m.WGS84]:b,[m.WGS84_ECEF]:function(e,t,n,r){b(e,t,n,r),ie(n,r,n,r)}},[m.WGS84_ECEF]:{[m.CGCS2000]:Pe,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:Pe,[m.WGS84_COMPARABLE_LON_LAT]:Pe,[m.SPHERICAL_ECEF]:function(e,t,n,r){Pe(e,t,n,r),ne(n,r,n,r)},[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:function(e,t,n,r){Pe(e,t,n,r),z(n,r,n,r)},[m.PLATE_CARREE]:function(e,t,n,r){Pe(e,t,n,r),J(n,r,n,r)},[m.WGS84]:Pe,[m.WGS84_ECEF]:X},[m.SPHERICAL_ECEF]:{[m.CGCS2000]:se,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:se,[m.WGS84_COMPARABLE_LON_LAT]:se,[m.SPHERICAL_ECEF]:X,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:function(e,t,n,r){se(e,t,n,r),z(n,r,n,r)},[m.PLATE_CARREE]:function(e,t,n,r){se(e,t,n,r),J(n,r,n,r)},[m.WGS84]:se,[m.WGS84_ECEF]:function(e,t,n,r){se(e,t,n,r),ie(n,r,n,r)}},[m.SPHERICAL_MARS_PCPF]:{[m.CGCS2000]:null,[m.GCSMARS2000]:_e,[m.GCSMOON2000]:null,[m.LON_LAT]:_e,[m.WGS84_COMPARABLE_LON_LAT]:null,[m.SPHERICAL_ECEF]:null,[m.SPHERICAL_MARS_PCPF]:X,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:null,[m.WGS84]:null,[m.WGS84_ECEF]:null},[m.SPHERICAL_MOON_PCPF]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:oe,[m.LON_LAT]:oe,[m.WGS84_COMPARABLE_LON_LAT]:null,[m.SPHERICAL_ECEF]:null,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:X,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:null,[m.WGS84]:null,[m.WGS84_ECEF]:null},[m.UNKNOWN]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:null,[m.WGS84_COMPARABLE_LON_LAT]:null,[m.SPHERICAL_ECEF]:null,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:X,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:null,[m.WGS84]:null,[m.WGS84_ECEF]:null},[m.LON_LAT]:{[m.CGCS2000]:X,[m.GCSMARS2000]:X,[m.GCSMOON2000]:X,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:X,[m.SPHERICAL_ECEF]:ne,[m.SPHERICAL_MARS_PCPF]:te,[m.SPHERICAL_MOON_PCPF]:ee,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:z,[m.PLATE_CARREE]:J,[m.WGS84]:X,[m.WGS84_ECEF]:ie},[m.WGS84_COMPARABLE_LON_LAT]:{[m.CGCS2000]:null,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:X,[m.WGS84_COMPARABLE_LON_LAT]:X,[m.SPHERICAL_ECEF]:ne,[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:null,[m.PLATE_CARREE]:J,[m.WGS84]:X,[m.WGS84_ECEF]:ie},[m.PLATE_CARREE]:{[m.CGCS2000]:Q,[m.GCSMARS2000]:null,[m.GCSMOON2000]:null,[m.LON_LAT]:Q,[m.WGS84_COMPARABLE_LON_LAT]:Q,[m.SPHERICAL_ECEF]:function(e,t,n,r){Q(e,t,n,r),ne(n,r,n,r)},[m.SPHERICAL_MARS_PCPF]:null,[m.SPHERICAL_MOON_PCPF]:null,[m.UNKNOWN]:null,[m.WEB_MERCATOR]:function(e,t,n,r){Q(e,t,n,r),z(n,r,n,r)},[m.PLATE_CARREE]:X,[m.WGS84]:Q,[m.WGS84_ECEF]:function(e,t,n,r){Q(e,t,n,r),ie(n,r,n,r)}}};function Ee(e,t,n=le()){return(0,_.Wi)(e)||(0,_.Wi)(t)?null:function(e,t,n){if((0,_.Wi)(e)||(0,_.Wi)(t)||n.source.spatialReference===e&&n.dest.spatialReference===t)return n;const r=K(e,n.source),o=K(t,n.dest);return r===m.UNKNOWN&&o===m.UNKNOWN?(0,M.fS)(e,t)?n.projector=X:n.projector=null:n.projector=ue[r][o],n}(e,t,n).projector}function le(){return{source:{spatialReference:null,spatialReferenceId:m.UNKNOWN,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:m.UNKNOWN,metersPerUnit:1},projector:X}}const ce={spatialReference:null,spatialReferenceId:m.UNKNOWN},ae={spatialReference:null,spatialReferenceId:m.UNKNOWN},Se=le(),Ce=(le(),(0,o.Vl)(1)),Ae=(0,o.BV)(1),fe=(0,u.c)(),Re=(0,u.c)(),pe=(0,u.c)(),Oe=(0,u.c)();(0,u.c)()},18571:(e,t,n)=>{n.d(t,{Z:()=>_});let r=0;class o{constructor(e=null){this.uid=r++,e?(this._wkt=void 0!==e.wkt?e.wkt:null,this._wkid=void 0!==e.wkid?e.wkid:-1,this._isInverse=void 0!==e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}static fromGE(e){const t=new o;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=r++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=r++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=r++}getInverse(){const e=new o;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class _{constructor(e){if(this.steps=[],this._cached_projection={},this._chain="",this._gtlistentry=null,e&&e.steps)for(const t of e.steps)t instanceof o?this.steps.push(t):this.steps.push(new o({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}static cacheKey(e,t){return[void 0!==e.wkid&&null!==e.wkid?e.wkid.toString():"-1",void 0!==e.wkt&&null!==e.wkt?e.wkt.toString():"",void 0!==t.wkid&&null!==t.wkid?t.wkid.toString():"-1",void 0!==t.wkt&&null!==t.wkt?t.wkt.toString():""].join(",")}static fromGE(e){const t=new _;let n="";for(const r of e.steps){const e=o.fromGE(r);t.steps.push(e),n+=e.uid.toString()+","}return t._cached_projection={},t._gtlistentry=null,t._chain=n,t}getInverse(){const e=new _;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cached_projection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,n){this._cached_projection[_.cacheKey(e,t)]=n}getCachedGeTransformation(e,t){let n="";for(const e of this.steps)n+=e.uid.toString()+",";n!==this._chain&&(this._gtlistentry=null,this._cached_projection={},this._chain=n);const r=this._cached_projection[_.cacheKey(e,t)];return void 0===r?null:r}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5517],{38581:(e,t,r)=>{r.d(t,{aX:()=>I});var s=r(68773),n=r(20102),o=r(92604),i=r(70586),a=r(17332),u=r(58901),l=r(73913),c=r(8744),d=r(40488),h=(r(66577),r(3172)),p=r(17452),f=r(33955);const y=o.Z.getLogger("esri.geometry.support.normalizeUtils");function m(e){return"polygon"===e[0].type}function g(e){return"polyline"===e[0].type}function b(e,t,r){if(t){const t=function(e,t){if(!(e instanceof u.Z||e instanceof a.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y.error(e),new n.Z(e)}const r=(0,l.x3)(e),s=[];for(const e of r){const r=[];s.push(r),r.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const n=e[s][0],o=e[s][1],i=e[s+1][0],a=e[s+1][1],u=Math.sqrt((i-n)*(i-n)+(a-o)*(a-o)),l=(a-o)/u,c=(i-n)/u,d=u/t;if(d>1){for(let e=1;e<=d-1;e++){const s=e*t,i=c*s+n,a=l*s+o;r.push([i,a])}const e=(u+Math.floor(d-1)*t)/2,s=c*e+n,i=l*e+o;r.push([s,i])}r.push([i,a])}}return function(e){return"polygon"===e.type}(e)?new a.Z({rings:s,spatialReference:e.spatialReference}):new u.Z({paths:s,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.Sx)(t,!0)}return r&&(e=(0,l.Sy)(e,r)),e}function F(e,t,r){if(Array.isArray(e)){const s=e[0];if(s>t){const r=(0,l.XZ)(s,t);e[0]=s+r*(-2*t)}else if(s<r){const t=(0,l.XZ)(s,r);e[0]=s+t*(-2*r)}}else{const s=e.x;if(s>t){const r=(0,l.XZ)(s,t);e=e.clone().offset(r*(-2*t),0)}else if(s<r){const t=(0,l.XZ)(s,r);e=e.clone().offset(t*(-2*r),0)}}return e}function R(e,t){let r=-1;for(let s=0;s<t.cutIndexes.length;s++){const n=t.cutIndexes[s],o=t.geometries[s],i=(0,l.x3)(o);for(let e=0;e<i.length;e++){const t=i[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const s=t[e][0];r=s>r?s:r}r=Number(r.toFixed(9));const s=-360*(0,l.XZ)(r,180);for(let r=0;r<t.length;r++){const t=o.getPoint(e,r);o.setPoint(e,r,t.clone().offset(s,0))}return!0}}))}if(n===r){if(m(e))for(const t of(0,l.x3)(o))e[n]=e[n].addRing(t);else if(g(e))for(const t of(0,l.x3)(o))e[n]=e[n].addPath(t)}else r=n,e[n]=o}return e}async function I(e,t,r){var n;if(!Array.isArray(e))return I([e],t);const o=null!=(n=null==t?void 0:t.url)?n:s.Z.geometryServiceUrl;let y,m,g,S,O,x,w,q,_=0;const Z=[],v=[];for(const t of e)if((0,i.Wi)(t))v.push(t);else if(y||(y=t.spatialReference,m=(0,c.C5)(y),g=y.isWebMercator,x=g?102100:4326,S=l.UZ[x].maxX,O=l.UZ[x].minX,w=l.UZ[x].plus180Line,q=l.UZ[x].minus180Line),m)if("mesh"===t.type)v.push(t);else if("point"===t.type)v.push(F(t.clone(),S,O));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>F(e,S,O))),v.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,m);v.push(e.rings?new a.Z(e):e)}else if(t.extent){const e=t.extent,r=(0,l.XZ)(e.xmin,O)*(2*S);let s=0===r?t.clone():(0,l.Sy)(t.clone(),r);e.offset(r,0),e.intersects(w)&&e.xmax!==S?(_=e.xmax>_?e.xmax:_,s=b(s,g),Z.push(s),v.push("cut")):e.intersects(q)&&e.xmin!==O?(_=e.xmax*(2*S)>_?e.xmax*(2*S):_,s=b(s,g,360),Z.push(s),v.push("cut")):v.push(s)}else v.push(t.clone());else v.push(t);let C=(0,l.XZ)(_,S),T=-90;const N=C,j=new u.Z;for(;C>0;){const e=360*C-180;j.addPath([[e,T],[e,-1*T]]),T*=-1,C--}if(Z.length>0&&N>0){const t=R(Z,await async function(e,t,r,s){const n="string"==typeof e?(0,p.mN)(e):e,o=t[0].spatialReference,i={...s,query:{...n.query,f:"json",sr:JSON.stringify(o),target:JSON.stringify({geometryType:(0,f.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,h.default)(n.path+"/cut",i),{cutIndexes:u,geometries:l=[]}=a.data;return{cutIndexes:u,geometries:l.map((e=>{const t=(0,f.im)(e);return t.spatialReference=o,t}))}}(o,Z,j,r)),s=[],n=[];for(let r=0;r<v.length;r++){const o=v[r];if("cut"!==o)n.push(o);else{const o=t.shift(),a=e[r];(0,i.pC)(a)&&"polygon"===a.type&&a.rings&&a.rings.length>1&&o.rings.length>=a.rings.length?(s.push(o),n.push("simplify")):n.push(g?(0,d.$)(o):o)}}if(!s.length)return n;const a=await async function(e,t,r){const s="string"==typeof e?(0,p.mN)(e):e,n=t[0].spatialReference,o=(0,f.Ji)(t[0]),i={...r,query:{...s.query,f:"json",sr:n.wkid?n.wkid:JSON.stringify(n),geometries:JSON.stringify((a=t,{geometryType:(0,f.Ji)(a[0]),geometries:a.map((e=>e.toJSON()))}))}};var a;return function(e,t,r){const s=(0,f.q9)(t);return e.map((e=>{const t=s.fromJSON(e);return t.spatialReference=r,t}))}((await(0,h.default)(s.path+"/simplify",i)).data,o,n)}(o,s,r),u=[];for(let e=0;e<n.length;e++){const t=n[e];"simplify"!==t?u.push(t):u.push(g?(0,d.$)(a.shift()):a.shift())}return u}const P=[];for(let e=0;e<v.length;e++){const t=v[e];if("cut"!==t)P.push(t);else{const e=Z.shift();P.push(!0===g?(0,d.$)(e):e)}}return Promise.resolve(P)}},73913:(e,t,r)=>{r.d(t,{UZ:()=>i,x3:()=>l,XZ:()=>a,Sy:()=>u});var s=r(58901),n=r(82971),o=r(33955);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new s.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new s.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const r=l(e);for(const e of r)for(const r of e)r[0]+=t;return e}function l(e){return(0,o.oU)(e)?e.rings:e.paths}},70272:(e,t,r)=>{r.d(t,{nd:()=>i,ZP:()=>n,S6:()=>o});var s=r(70586);class n{constructor(e=null,t={},r,s){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=s,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function o(e){return!((0,s.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class i extends n{}},44876:(e,t,r)=>{r.d(t,{Z:()=>s});class s{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new s;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},5428:(e,t,r)=>{r.d(t,{Z:()=>s});class s{constructor(e=[],t=[],r=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=r}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];for(let r=0;r<s;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=s}}clone(e){return e?(e.set(this.coords),new s(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new s(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},61159:(e,t,r)=>{r.d(t,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},98732:(e,t,r)=>{r.d(t,{XA:()=>k,h_:()=>V,Yn:()=>J,GH:()=>Q,Uy:()=>M,EI:()=>U,cn:()=>B,di:()=>z,Iv:()=>N,fQ:()=>S,eG:()=>E,J6:()=>P,oB:()=>oe,zj:()=>Y,$:()=>ee,lz:()=>ne,RZ:()=>$,Nh:()=>W,Jd:()=>b,IN:()=>F,hY:()=>re,lM:()=>X,$g:()=>te});var s=r(20102),n=r(92604),o=r(70586),i=r(33955),a=r(70272),u=r(44876),l=r(5428);function c(e,t){return e?t?4:3:t?3:2}const d=n.Z.getLogger("esri.tasks.support.optimizedFeatureSet"),h={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},p=(e,t,r,s,n,o)=>{e[r]=n,e[r+1]=o},f=(e,t,r,s,n,o)=>{e[r]=n,e[r+1]=o,e[r+2]=t[s+2]},y=(e,t,r,s,n,o)=>{e[r]=n,e[r+1]=o,e[r+2]=t[s+3]},m=(e,t,r,s,n,o)=>{e[r]=n,e[r+1]=o,e[r+2]=t[s+2],e[r+3]=t[s+3]};function g(e,t,r,s){if(e){if(r)return t&&s?m:f;if(t&&s)return y}else if(t&&s)return f;return p}function b({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function F({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function R({scale:e,translate:t},r){return r*e[0]+t[0]}function I({scale:e,translate:t},r){return t[1]-r*e[1]}function S(e,t,r){return e?t?r?v(e):w(e):r?_(e):O(e):null}function O(e){const t=e.coords;return{x:t[0],y:t[1]}}function x(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function w(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function q(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function _(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function Z(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function v(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function C(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function T(e,t){return e&&t?C:e?q:t?Z:x}function N(e,t,r){if((0,o.Wi)(e))return null;const s=c(t,r),n=[];for(let t=0;t<e.coords.length;t+=s){const r=[];for(let n=0;n<s;n++)r.push(e.coords[t+n]);n.push(r)}return t?r?{points:n,hasZ:t,hasM:r}:{points:n,hasZ:t}:r?{points:n,hasM:r}:{points:n}}function j(e,t,r=c(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const s=e.coords;let n=0;for(const e of t.points)for(let t=0;t<r;t++)s[n++]=e[t];return e}function P(e,t,r){if(!e)return null;const s=c(t,r),{coords:n,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<s;t++)e.push(n[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function G(e,t,r=c(t.hasZ,t.hasM)){const{lengths:s,coords:n}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)n[o++]=t[e];s.push(e.length)}return e}function E(e,t,r){if(!e)return null;const s=c(t,r),{coords:n,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<s;t++)e.push(n[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function M(e,t,r=t.hasZ,s=t.hasM){return function(e,t,r,s){const n=c(r,s),{lengths:o,coords:i}=e;let a=0;o.length=i.length=0;for(const e of t){for(const t of e)for(let e=0;e<n;e++)i[a++]=t[e];o.push(e.length)}}(e,t.rings,r,s),e}const D=[],A=[];function k(e,t,r,s,n){D[0]=e;const[o]=J(A,D,t,r,s,n);return D.length=A.length=0,o}function J(e,t,r,n,i,u){if(e.length=0,!r){for(const r of t){const t=r.attributes[u];e.push(new a.ZP(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,s,n){const o=T(r,s);for(const r of t){const{geometry:t,attributes:s}=r;let i;t&&(i=o(new l.Z,t)),e.push(new a.ZP(i,s,null,s[n]))}return e}(e,t,n,i,u);case"esriGeometryMultipoint":return function(e,t,r,s,n){const o=c(r,s);for(const r of t){const t=r.geometry,s=r.attributes;let i;t&&(i=j(new l.Z,t,o)),e.push(new a.ZP(i,s,null,s[n]))}return e}(e,t,n,i,u);case"esriGeometryPolyline":return function(e,t,r,s,n){const o=c(r,s);for(const r of t){const t=r.geometry,s=r.attributes;let i;t&&(i=G(new l.Z,t,o)),e.push(new a.ZP(i,s,null,s[n]))}return e}(e,t,n,i,u);case"esriGeometryPolygon":return function(e,t,r,s,n){for(const i of t){const t=i.geometry,u=i.centroid,c=i.attributes;let d;t&&(d=M(new l.Z,t,r,s)),(0,o.pC)(u)?e.push(new a.ZP(d,c,x(new l.Z,u),c[n])):e.push(new a.ZP(d,c,null,c[n]))}return e}(e,t,n,i,u);default:d.error("convertToFeatureSet:unknown-geometry",new s.Z(`Unable to parse unknown geometry type '${r}'`)),e.length=0}return e}function U(e,t,r,s){A[0]=e,L(D,A,t,r,s);const n=D[0];return D.length=A.length=0,n}function Q(e,t,r){if((0,o.Wi)(e))return null;const n=new l.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,i.wp)(e)?T(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(n,e):(0,i.oU)(e)?M(n,e,t,r):(0,i.l9)(e)?G(n,e,c(t,r)):(0,i.aW)(e)?j(n,e,c(t,r)):void d.error("convertFromGeometry:unknown-geometry",new s.Z(`Unable to parse unknown geometry type '${e}'`))}function z(e,t,r,n){const i=e&&("coords"in e?e:e.geometry);if((0,o.Wi)(i))return null;switch(t){case"esriGeometryPoint":{let e=O;return r&&n?e=v:r?e=w:n&&(e=_),e(i)}case"esriGeometryMultipoint":return N(i,r,n);case"esriGeometryPolyline":return P(i,r,n);case"esriGeometryPolygon":return E(i,r,n);default:return void d.error("convertToGeometry:unknown-geometry",new s.Z(`Unable to parse unknown geometry type '${t}'`))}}function L(e,t,r,n,i){if(e.length=0,(0,o.Wi)(r))return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,s){let n=O;r&&s?n=v:r?n=w:s&&(n=_);for(const r of t){const{geometry:t,attributes:s}=r,i=(0,o.pC)(t)?n(t):null;e.push({attributes:s,geometry:i})}return e}(e,t,n,i);case"esriGeometryMultipoint":return function(e,t,r,s){for(const n of t){const{geometry:t,attributes:o}=n;let i;t&&(i=N(t,r,s)),e.push({attributes:o,geometry:i})}return e}(e,t,n,i);case"esriGeometryPolyline":return function(e,t,r,s){for(const n of t){const{geometry:t,attributes:i}=n;let a;(0,o.pC)(t)&&(a=P(t,r,s)),e.push({attributes:i,geometry:a})}return e}(e,t,n,i);case"esriGeometryPolygon":return function(e,t,r,s){for(const n of t){const{geometry:t,attributes:i,centroid:a}=n;let u;if((0,o.pC)(t)&&(u=E(t,r,s)),a){const t=O(a);e.push({attributes:i,centroid:t,geometry:u})}else e.push({attributes:i,geometry:u})}return e}(e,t,n,i);default:d.error("convertToFeatureSet:unknown-geometry",new s.Z(`Unable to parse unknown geometry type '${r}'`))}return e}function B(e){const{objectIdFieldName:t,spatialReference:r,transform:s,fields:n,hasM:o,hasZ:i,features:a,geometryType:u,exceededTransferLimit:l,uniqueIdField:c,queryGeometry:d,queryGeometryType:h}=e,p={features:L([],a,u,i,o),fields:n,geometryType:u,objectIdFieldName:t,spatialReference:r,uniqueIdField:c,queryGeometry:z(d,h,!1,!1)};return s&&(p.transform=s),l&&(p.exceededTransferLimit=l),o&&(p.hasM=o),i&&(p.hasZ=i),p}function V(e,t){const r=new u.Z,{hasM:n,hasZ:o,features:i,objectIdFieldName:a,spatialReference:l,geometryType:c,exceededTransferLimit:h,transform:p,fields:f}=e;return f&&(r.fields=f),r.geometryType=c,r.objectIdFieldName=a||t,r.spatialReference=l,r.objectIdFieldName?(i&&J(r.features,i,c,o,n,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),n&&(r.hasM=n),o&&(r.hasZ=o),p&&(r.transform=p),r):(d.error(new s.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function X(e){const{transform:t,features:r,hasM:s,hasZ:n}=e;if(!t)return e;for(const e of r)(0,o.pC)(e.geometry)&&te(e.geometry,e.geometry,s,n,t),e.centroid&&te(e.centroid,e.centroid,s,n,t);return e.transform=null,e}function $(e,t){const{geometryType:r,features:s,hasM:n,hasZ:o}=t;if(!e)return t;for(let t=0;t<s.length;t++){const i=s[t],a=i.weakClone();a.geometry=new l.Z,W(a.geometry,i.geometry,n,o,r,e),i.centroid&&(a.centroid=new l.Z,W(a.centroid,i.centroid,n,o,"esriGeometryPoint",e)),s[t]=a}return t.transform=e,t}function W(e,t,r,s,n,i,a=r,u=s){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,o.Wi)(t)||!t.coords.length)return null;const l=h[n],{coords:d,lengths:p}=t,f=c(r,s),y=c(r&&a,s&&u),m=g(r,s,a,u);if(!p.length)return m(e.coords,d,0,0,b(i,d[0]),F(i,d[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=f,e;let R,I,S,O,x=0,w=0,q=w;for(const t of p){if(t<l)continue;let r=0;w=q,S=R=b(i,d[x]),O=I=F(i,d[x+1]),m(e.coords,d,w,x,S,O),r++,x+=f,w+=y;for(let s=1;s<t;s++,x+=f)S=b(i,d[x]),O=F(i,d[x+1]),S===R&&O===I||(m(e.coords,d,w,x,S-R,O-I),w+=y,r++,R=S,I=O);r>=l&&(e.lengths.push(r),q=w)}return e.coords.length=q,e.coords.length?e:null}function Y(e,t,r,s,n,o,i=r,a=s){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const u=h[n],{coords:l,lengths:d}=t,p=c(r,s),f=c(r&&i,s&&a),y=g(r,s,i,a);if(!d.length)return y(e.coords,l,0,0,l[0],l[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=p,e;let m=0;const b=o*o;for(const t of d){if(t<u){m+=t*p;continue}const r=e.coords.length/f,s=m,n=m+(t-1)*p;y(e.coords,l,e.coords.length,s,l[s],l[s+1]),K(e.coords,l,p,b,y,s,n),y(e.coords,l,e.coords.length,n,l[n],l[n+1]);const o=e.coords.length/f-r;o>=u?e.lengths.push(o):e.coords.length=r*f,m+=t*p}return e.coords.length?e:null}function H(e,t,r,s){const n=e[t],o=e[t+1],i=e[r],a=e[r+1],u=e[s],l=e[s+1];let c=i,d=a,h=u-c,p=l-d;if(0!==h||0!==p){const e=((n-c)*h+(o-d)*p)/(h*h+p*p);e>1?(c=u,d=l):e>0&&(c+=h*e,d+=p*e)}return h=n-c,p=o-d,h*h+p*p}function K(e,t,r,s,n,o,i){let a,u=s,l=0;for(let e=o+r;e<i;e+=r)a=H(t,e,o,i),a>u&&(l=e,u=a);u>s&&(l-o>r&&K(e,t,r,s,n,o,l),n(e,t,e.length,l,t[l],t[l+1]),i-l>r&&K(e,t,r,s,n,l,i))}function ee(e,t,r,s){if((0,o.Wi)(t)||!t.coords||!t.coords.length)return null;const n=c(r,s);let i=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=n){const r=e[t],s=e[t+1];i=Math.min(i,r),u=Math.max(u,r),a=Math.min(a,s),l=Math.max(l,s)}}return e[0]=i,e[1]=a,e[2]=u,e[3]=l,e}function te(e,t,r,s,n){const{coords:o,lengths:i}=t,a=r?s?m:f:s?f:p,u=c(r,s);if(!o.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;if(!i.length)return a(e.coords,o,0,0,R(n,o[0]),I(n,o[1])),e!==t&&(e.lengths.length=0,e.coords.length=u),e;const[l,d]=n.scale;let h=0;for(let t=0;t<i.length;t++){const r=i[t];e.lengths[t]=r;let s=R(n,o[h]),c=I(n,o[h+1]);a(e.coords,o,h,h,s,c),h+=u;for(let t=1;t<r;t++,h+=u)s+=o[h]*l,c-=o[h+1]*d,a(e.coords,o,h,h,s,c)}return e!==t&&(e.lengths.length=i.length,e.coords.length=o.length),e}function re(e,t,r,s,n,o){const i=c(r,s),a=g(r,s,n,o),u=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<u.length;t+=i)a(e.coords,u,e.coords.length,t,u[t],u[t+1]);return e}function se(e,t,r,s){let n=0,o=e[s*t],i=e[s*(t+1)];for(let a=1;a<r;a++){const r=o+e[s*(t+a)],u=i+e[s*(t+a)+1],l=(r-o)*(u+i);o=r,i=u,n+=l}return.5*n}function ne(e,t){const{coords:r,lengths:s}=e;let n=0,o=0;for(let e=0;e<s.length;e++)o+=se(r,n,s[e],t),n+=e;return Math.abs(o)}function oe(e,t){if((0,o.Wi)(e))return null;const r=e.clone(),s=e.coords,n=e.lengths;let i=0;for(let e=0;e<n.length;e++){const o=n[e];let a=s[t*i],u=s[t*i+1];for(let e=1;e<o;e++){const n=a+s[t*(i+e)],o=u+s[t*(i+e)+1];r.coords[t*(i+e)]=n,r.coords[t*(i+e)+1]=o,a=n,u=o}i+=o}return r}},85517:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ue});var s=r(43697),n=(r(66577),r(1692)),o=r(3172),i=r(92835),a=r(20102),u=r(80442),l=r(35454),c=r(83379),d=r(70586),h=r(78286),p=r(95330),f=r(17452),y=r(5600),m=(r(67676),r(75215),r(52011)),g=r(6570),b=r(33955),F=r(25278),R=r(59431),I=r(40330),S=r(76497),O=r(98326);function x(e){const t=e.toJSON();return t.attachmentTypes&&(t.attachmentTypes=t.attachmentTypes.join(",")),t.keywords&&(t.keywords=t.keywords.join(",")),t.globalIds&&(t.globalIds=t.globalIds.join(",")),t.objectIds&&(t.objectIds=t.objectIds.join(",")),t.size&&(t.size=t.size.join(",")),t}function w(e,t){const r={};for(const s of e){const{parentObjectId:e,parentGlobalId:n,attachmentInfos:o}=s;for(const s of o){const{id:o}=s,i=(0,f.qg)((0,I.Dp)(`${t}/${e}/attachments/${o}`)),a=O.Z.fromJSON(s);a.set({url:i,parentObjectId:e,parentGlobalId:n}),r[e]?r[e].push(a):r[e]=[a]}}return r}function q(e,t,r){let s={query:(0,S.A)({...e.query,f:"json",...x(t)})};return r&&(s={...r,...s,query:{...r.query,...s.query}}),(0,o.default)(e.path+"/queryAttachments",s)}var _=r(10158),Z=r(11282),v=r(56545),C=r(41818),T=r(34599),N=r(57444),j=r(5396),P=r(4967),G=r(74085),E=r(69285),M=r(98732);function D(e,t){return t}function A(e,t,r,s){switch(r){case 0:return Q(e,t+s,0);case 1:return"lowerLeft"===e.originPosition?Q(e,t+s,1):function({translate:e,scale:t},r,s){return e[s]-r*t[s]}(e,t+s,1)}}function k(e,t,r,s){return 2===r?Q(e,t,2):A(e,t,r,s)}function J(e,t,r,s){return 2===r?Q(e,t,3):A(e,t,r,s)}function U(e,t,r,s){return 3===r?Q(e,t,3):k(e,t,r,s)}function Q({translate:e,scale:t},r,s){return e[s]+r*t[s]}class z{constructor(e){this.options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this.previousCoordinate=[0,0],this.transform=null,this.applyTransform=D,this.lengths=[],this.currentLengthIndex=0,this.toAddInCurrentPath=0,this.vertexDimension=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,this._attributesConstructor=function(){}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this.options.applyTransform&&(e.transform=null),this._attributesConstructor=function(){},this.coordinateBuffer=null,this.lengths.length=0,!e.hasZ)return;const t=(0,E.k)(e.geometryType,this.options.sourceSpatialReference,e.spatialReference);if(!(0,d.Wi)(t))for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){e.fields.push(t);const r=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of r)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this.transform=e.transform,this.options.applyTransform&&e.transform&&(this.applyTransform=this._deriveApplyTransform(e)),this.vertexDimension=2,e.hasZ&&this.vertexDimension++,e.hasM&&this.vertexDimension++,e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e);break;default:(0,G.Bg)(e.geometryType)}}createFeature(){return this.lengths.length=0,this.currentLengthIndex=0,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0,this.coordinateBuffer=null,this.coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this.lengths.length&&(this.toAddInCurrentPath=t),this.lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:s}=t,n=(0,M.$g)(r.clone(),r,!1,!1,this.transform),o=(0,M.di)(n,s,!1,!1);e.queryGeometryType=s,e.queryGeometry={...o}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){switch(t=this.applyTransform(this.transform,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;return t<=1&&(r=this.previousCoordinate[t],this.previousCoordinate[t]+=e),this.applyTransform(this.transform,e,t,r)}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const s=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(s)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this.toAddInCurrentPath--&&(e.push([]),this.toAddInCurrentPath=this.lengths[++this.currentLengthIndex]-1,this.previousCoordinate[0]=0,this.previousCoordinate[1]=0);const s=this._transformPathLikeValue(t,r),n=e[e.length-1];0===r&&(this.coordinateBufferPtr=0,this.coordinateBuffer=new Array(this.vertexDimension),n.push(this.coordinateBuffer)),this.coordinateBuffer[this.coordinateBufferPtr++]=s}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?U:t?k:r?J:A}}var L=r(74889);function B(e,t){const r=e.toJSON();return r.objectIds&&(r.objectIds=r.objectIds.join(",")),r.orderByFields&&(r.orderByFields=r.orderByFields.join(",")),!r.outFields||null!=t&&t.returnCountOnly?delete r.outFields:-1!==r.outFields.indexOf("*")?r.outFields="*":r.outFields=r.outFields.join(","),r.outSpatialReference&&(r.outSR=r.outSR.wkid||JSON.stringify(r.outSR.toJSON()),delete r.outSpatialReference),r.dynamicDataSource&&(r.layer=JSON.stringify({source:r.dynamicDataSource}),delete r.dynamicDataSource),r}async function V(e,t,r={},s){const n=(0,S.A)({...e.query,f:"json",...s,...B(t,s)});return(0,o.default)(e.path+"/queryRelatedRecords",{...r,query:{...r.query,...n}})}var X=r(75935);var $=r(38581),W=r(28694);const Y="Layer does not support extent calculation.";function H(e,t){var r,s;const n=e.geometry,o=e.toJSON(),i=o;if((0,d.pC)(n)&&(i.geometry=JSON.stringify(n),i.geometryType=(0,b.Ji)(n),i.inSR=n.spatialReference.wkid||JSON.stringify(n.spatialReference)),null!=(r=o.topFilter)&&r.groupByFields&&(i.topFilter.groupByFields=o.topFilter.groupByFields.join(",")),null!=(s=o.topFilter)&&s.orderByFields&&(i.topFilter.orderByFields=o.topFilter.orderByFields.join(",")),o.topFilter&&(i.topFilter=JSON.stringify(i.topFilter)),o.objectIds&&(i.objectIds=o.objectIds.join(",")),o.orderByFields&&(i.orderByFields=o.orderByFields.join(",")),o.outFields&&!(null!=t&&t.returnCountOnly||null!=t&&t.returnExtentOnly||null!=t&&t.returnIdsOnly)?-1!==o.outFields.indexOf("*")?i.outFields="*":i.outFields=o.outFields.join(","):delete i.outFields,o.outSR?i.outSR=o.outSR.wkid||JSON.stringify(o.outSR):n&&o.returnGeometry&&(i.outSR=i.inSR),o.returnGeometry&&delete o.returnGeometry,o.timeExtent){const e=o.timeExtent,{start:t,end:r}=e;null==t&&null==r||(i.time=t===r?t:`${null==t?"null":t},${null==r?"null":r}`),delete o.timeExtent}return i}function K(e,t,r,s={},n={}){const i="string"==typeof e?(0,f.mN)(e):e,a=t.geometry?[t.geometry]:[];return s.responseType="pbf"===r?"array-buffer":"json",(0,$.aX)(a,null,s).then((e=>{const a=e&&e[0];(0,d.pC)(a)&&((t=t.clone()).geometry=a);const u=(0,S.A)({...i.query,f:r,...n,...H(t,n)});return(0,o.default)((0,f.v_)(i.path,"queryTopFeatures"),{...s,query:{...u,...s.query}})}))}var ee=r(28141);var te=r(59633);let re=class extends te.Z{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.format="json",this.gdbVersion=null,this.infoFor3D=null,this.sourceSpatialReference=null}execute(e,t){return this.executeJSON(e,t).then((r=>this.featureSetFromJSON(e,r,t)))}async executeJSON(e,t){var r;const s={...this.requestOptions,...t},n=this._normalizeQuery(e),o=null!=(null==(r=e.outStatistics)?void 0:r[0]),i=(0,u.Z)("featurelayer-pbf-statistics"),a=!o||i;let l;if("pbf"===this.format&&a)try{l=await async function(e,t,r){const s=(0,Z.en)(e),n={...r},o=N.Z.from(t),i=!o.quantizationParameters,{data:a}=await(0,T.executeQueryPBF)(s,o,new z({sourceSpatialReference:o.sourceSpatialReference,applyTransform:i}),n);return a}(this.url,n,s)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.format="json"}return"json"!==this.format&&a||(l=await(0,P.F)(this.url,n,s)),this._normalizeFields(l.fields),l}async featureSetFromJSON(e,t,s){if(!(this._queryIs3DObjectFormat(e)&&(0,d.pC)(this.infoFor3D)&&t.features&&t.features.length))return L.default.fromJSON(t);const{meshFeatureSetFromJSON:n}=await(0,p.Hl)(Promise.all([r.e(4547),r.e(6481),r.e(6459),r.e(8163)]).then(r.bind(r,38163)),s);return n(e,this.infoFor3D,t)}executeForCount(e,t){const r={...this.requestOptions,...t},s=this._normalizeQuery(e);return(0,C.P)(this.url,s,r)}executeForExtent(e,t){const r={...this.requestOptions,...t},s=this._normalizeQuery(e);return async function(e,t,r){const s=(0,Z.en)(e);return(0,T.executeQueryForExtent)(s,N.Z.from(t),{...r}).then((e=>({count:e.data.count,extent:g.Z.fromJSON(e.data.extent)})))}(this.url,s,r)}executeForIds(e,t){const r={...this.requestOptions,...t},s=this._normalizeQuery(e);return(0,j.G)(this.url,s,r)}executeRelationshipQuery(e,t){e=X.Z.from(e);const r={...this.requestOptions,...t};return(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),async function(e,t,r){return t=X.Z.from(t),async function(e,t,r){const s=await V(e,t,r),n=s.data,o=n.geometryType,i=n.spatialReference,a={};for(const e of n.relatedRecordGroups){const t={fields:void 0,objectIdFieldName:void 0,geometryType:o,spatialReference:i,hasZ:!!n.hasZ,hasM:!!n.hasM,features:e.relatedRecords};if(null!=e.objectId)a[e.objectId]=t;else for(const r in e)e.hasOwnProperty(r)&&"relatedRecords"!==r&&(a[e[r]]=t)}return{...s,data:a}}((0,Z.en)(e),t,r).then((e=>{const t=e.data,r={};return Object.keys(t).forEach((e=>r[e]=L.default.fromJSON(t[e]))),r}))}(this.url,e,r)}executeRelationshipQueryForCount(e,t){e=X.Z.from(e);const r={...this.requestOptions,...t};return(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),async function(e,t,r){return t=X.Z.from(t),async function(e,t,r){const s=await V(e,t,r,{returnCountOnly:!0}),n=s.data,o={};for(const e of n.relatedRecordGroups)null!=e.objectId&&(o[e.objectId]=e.count);return{...s,data:o}}((0,Z.en)(e),t,{...r}).then((e=>e.data))}(this.url,e,r)}executeAttachmentQuery(e,t){const r={...this.requestOptions,...t};return async function(e,t,r){const s=(0,Z.en)(e);return q(s,v.Z.from(t),{...r}).then((e=>w(e.data.attachmentGroups,s.path)))}(this.url,e,r)}executeTopFeaturesQuery(e,t){const r={...this.requestOptions,...t};return async function(e,t,r,s){const n=(0,Z.en)(e),o={...s},{data:i}=await async function(e,t,r,s){const n=await K(e,t,"json",s);return(0,W.p)(t,r,n.data),n}(n,ee.Z.from(t),r,o);return L.default.fromJSON(i)}(this.parsedUrl,e,this.sourceSpatialReference,r)}executeForTopIds(e,t){const r={...this.requestOptions,...t};return async function(e,t,r){const s=(0,Z.en)(e);return(await async function(e,t,r){return(0,d.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{objectIds:[]}}):K(e,t,"json",r,{returnIdsOnly:!0})}(s,ee.Z.from(t),{...r})).data.objectIds}(this.parsedUrl,e,r)}executeForTopExtents(e,t){const r={...this.requestOptions,...t};return async function(e,t,r){const s=(0,Z.en)(e),n=await async function(e,t,r){return(0,d.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0,extent:null}}):K(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then((e=>{const t=e.data;if(t.hasOwnProperty("extent"))return e;if(t.features)throw new Error(Y);if(t.hasOwnProperty("count"))throw new Error(Y);return e}))}(s,ee.Z.from(t),{...r});return{count:n.data.count,extent:g.Z.fromJSON(n.data.extent)}}(this.parsedUrl,e,r)}executeForTopCount(e,t){const r={...this.requestOptions,...t};return async function(e,t,r){const s=(0,Z.en)(e);return(await function(e,t,r){return(0,d.pC)(t.timeExtent)&&t.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):K(e,t,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}(s,ee.Z.from(t),{...r})).data.count}(this.parsedUrl,e,r)}_normalizeQuery(e){let t=N.Z.from(e);if(t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?_.n.from(e.dynamicDataSource):this.dynamicDataSource),(0,d.pC)(this.infoFor3D)&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;for(const e of this.infoFor3D.queryFormats){if("3D_glb"===e.id){t.formatOf3DObjects=e.id;break}"3D_gltf"!==e.id||t.formatOf3DObjects||(t.formatOf3DObjects=e.id)}if(!t.formatOf3DObjects)throw new a.Z("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if((0,d.Wi)(t.outFields)||!t.outFields.includes("*")){t=t===e?t.clone():t,(0,d.Wi)(t.outFields)&&(t.outFields=[]);const{originX:r,originY:s,originZ:n,translationX:o,translationY:i,translationZ:a,scaleX:u,scaleY:l,scaleZ:c,rotationX:h,rotationY:p,rotationZ:f,rotationDeg:y}=this.infoFor3D.transformFieldRoles;t.outFields.push(r,s,n,o,i,a,u,l,c,h,p,f,y)}}return t}_normalizeFields(e){if((0,d.pC)(this.fieldsIndex)&&(0,d.pC)(e))for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return(0,d.pC)(this.infoFor3D)&&e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,s._)([(0,y.Cb)({type:_.n})],re.prototype,"dynamicDataSource",void 0),(0,s._)([(0,y.Cb)()],re.prototype,"fieldsIndex",void 0),(0,s._)([(0,y.Cb)()],re.prototype,"format",void 0),(0,s._)([(0,y.Cb)()],re.prototype,"gdbVersion",void 0),(0,s._)([(0,y.Cb)()],re.prototype,"infoFor3D",void 0),(0,s._)([(0,y.Cb)()],re.prototype,"sourceSpatialReference",void 0),re=(0,s._)([(0,m.j)("esri.tasks.QueryTask")],re);const se=re;var ne=r(82971);const oe=new l.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),ie=new Set(["Feature Layer","Table"]);let ae=class extends c.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,p.Ds)((async()=>{var e,t;await this.load();const r=null==(e=this.sourceJSON.editingInfo)?void 0:e.lastEditDate;if(null==r)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const s=r!==(null==(t=this.sourceJSON.editingInfo)?void 0:t.lastEditDate);return{dataChanged:s,updates:s?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}))}load(e){const t=(0,d.pC)(e)?e.signal:null;return this.addResolvingPromise(this._fetchService(this.layer.sourceJSON,t)),Promise.resolve(this)}get queryTask(){const{capabilities:{query:{supportsFormatPBF:e}},parsedUrl:t,dynamicDataSource:r,infoFor3D:s,gdbVersion:n,spatialReference:o,fieldsIndex:i}=this.layer,a=(0,u.Z)("featurelayer-pbf")&&e&&(0,d.Wi)(s)?"pbf":"json";return new se({url:t.path,format:a,fieldsIndex:i,infoFor3D:s,dynamicDataSource:r,gdbVersion:n,sourceSpatialReference:o})}async addAttachment(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/addAttachment",n=this._getLayerRequestOptions(),i=this._getFormDataForAttachment(t,n.query);try{const e=await(0,o.default)(s,{body:i});return this._createFeatureEditResult(e.data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}async updateAttachment(e,t,r){await this.load();const s=e.attributes[this.layer.objectIdField],n=this.layer.parsedUrl.path+"/"+s+"/updateAttachment",i=this._getLayerRequestOptions({query:{attachmentId:t}}),a=this._getFormDataForAttachment(r,i.query);try{const e=await(0,o.default)(n,{body:a});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async applyEdits(e,t){await this.load();const r=e.addFeatures.map(this._serializeFeature,this),s=e.updateFeatures.map(this._serializeFeature,this),n=this._getFeatureIds(e.deleteFeatures,null==t?void 0:t.globalIdUsed);(0,R.P)(r,s,this.layer.spatialReference);const i=[],a=[],u=[...e.deleteAttachments];for(const t of e.addAttachments)i.push(await this._serializeAttachment(t));for(const t of e.updateAttachments)a.push(await this._serializeAttachment(t));const l=i.length||a.length||u.length?{adds:i,updates:a,deletes:u}:null,c={gdbVersion:(null==t?void 0:t.gdbVersion)||this.layer.gdbVersion,rollbackOnFailure:null==t?void 0:t.rollbackOnFailureEnabled,useGlobalIds:null==t?void 0:t.globalIdUsed,returnEditMoment:null==t?void 0:t.returnEditMoment,usePreviousEditMoment:null==t?void 0:t.usePreviousEditMoment,sessionId:null==t?void 0:t.sessionId};null!=t&&t.returnServiceEditsOption?(c.edits=JSON.stringify([{id:this.layer.layerId,adds:r,updates:s,deletes:n,attachments:l}]),c.returnServiceEditsOption=oe.toJSON(null==t?void 0:t.returnServiceEditsOption),c.returnServiceEditsInSourceSR=null==t?void 0:t.returnServiceEditsInSourceSR):(c.adds=r.length?JSON.stringify(r):null,c.updates=s.length?JSON.stringify(s):null,c.deletes=n.length?null!=t&&t.globalIdUsed?JSON.stringify(n):n.join(","):null,c.attachments=l&&JSON.stringify(l));const d=this._getLayerRequestOptions({method:"post",query:c}),h=null!=t&&t.returnServiceEditsOption?this.layer.url:this.layer.parsedUrl.path,p=await(0,o.default)(h+"/applyEdits",d);return this._createEditsResult(p)}async deleteAttachments(e,t){await this.load();const r=e.attributes[this.layer.objectIdField],s=this.layer.parsedUrl.path+"/"+r+"/deleteAttachments";try{return(await(0,o.default)(s,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:n}=await(0,o.default)(`${s}/${r}`,t),{id:a,extent:u,fullExtent:l,timeExtent:c}=n,d=u||l;return{id:a,fullExtent:d&&g.Z.fromJSON(d),timeExtent:c&&i.Z.fromJSON({start:c[0],end:c[1]})}}))}async queryAttachments(e,t={}){const{parsedUrl:r}=this.layer,s=r.path;await this.load();const n=this._getLayerRequestOptions(t);if(!this.layer.get("capabilities.operations.supportsQueryAttachments")){const{objectIds:t}=e,r=[];for(const e of t){const t=s+"/"+e+"/attachments";r.push((0,o.default)(t,n))}return Promise.all(r).then((e=>t.map(((t,r)=>({parentObjectId:t,attachmentInfos:e[r].data.attachmentInfos}))))).then((e=>w(e,s)))}return this.queryTask.executeAttachmentQuery(e,n)}async queryFeatures(e,t){return await this.load(),this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...null==e?void 0:e.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:r}=await(0,o.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,u.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=r}this.sourceJSON=this._patchServiceJSON(e);const r=e.type;if(!ie.has(r))throw new a.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}_patchServiceJSON(e){var t;if("Table"!==e.type&&e.geometryType&&(null==e||null==(t=e.drawingInfo)||!t.renderer)&&!e.defaultSymbol){const t=(0,F.bU)(e.geometryType).renderer;(0,h.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}_serializeFeature(e){const{geometry:t,attributes:r}=e;return(0,d.Wi)(t)?{attributes:r}:"mesh"===t.type||"extent"===t.type?null:{geometry:t.toJSON(),attributes:r}}async _serializeAttachment(e){const{feature:t,attachment:r}=e,{globalId:s,name:n,contentType:o,data:i,uploadId:a}=r,u={globalId:s,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(t&&(u.parentGlobalId="attributes"in t?t.attributes&&t.attributes[this.layer.globalIdField]:t.globalId),a)u.uploadId=a;else if(i){const e=await async function(e){return"string"==typeof e?(0,f.sJ)(e)||{data:e}:new Promise(((t,r)=>{const s=new FileReader;s.readAsDataURL(e),s.onload=()=>t((0,f.sJ)(s.result)),s.onerror=e=>r(e)}))}(i);u.contentType=e.mediaType,u.data=e.data,i instanceof File&&(u.name=i.name)}return n&&(u.name=n),o&&(u.contentType=o),u}_getFeatureIds(e,t){const r=e[0];return r?this._canUseGlobalIds(t,e)?this._getGlobalIdsFromFeatureIdentifier(e):"objectId"in r?this._getObjectIdsFromFeatureIdentifier(e):this._getIdsFromFeatures(e):[]}_getIdsFromFeatures(e){const t=this.layer.objectIdField;return e.map((e=>e.attributes&&e.attributes[t]))}_canUseGlobalIds(e,t){return e&&"globalId"in t[0]}_getObjectIdsFromFeatureIdentifier(e){return e.map((e=>e.objectId))}_getGlobalIdsFromFeatureIdentifier(e){return e.map((e=>e.globalId))}_createEditsResult(e){var t;const r=e.data,{layerId:s}=this.layer,n=[];let o=null;if(Array.isArray(r))for(const e of r)n.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===s&&(o={addResults:e.addResults,updateResults:e.updateResults,deleteResults:e.deleteResults,attachments:e.attachments,editMoment:e.editMoment});else o=r;const i=null==(t=o)?void 0:t.attachments,a={addFeatureResults:o.addResults?o.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:o.updateResults?o.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:o.deleteResults?o.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:i&&i.addResults?i.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:i&&i.updateResults?i.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:i&&i.deleteResults?i.deleteResults.map(this._createFeatureEditResult,this):[]};if(o.editMoment&&(a.editMoment=o.editMoment),n.length>0){a.editedFeatureResults=[];for(const e of n){const{adds:t,updates:r,deletes:s,spatialReference:n}=e.editedFeatures,o=n?new ne.Z(n):null;a.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:(null==t?void 0:t.map((e=>this._createEditedFeature(e,o))))||[],updates:(null==r?void 0:r.map((e=>({original:this._createEditedFeature(e[0],o),current:this._createEditedFeature(e[1],o)}))))||[],deletes:(null==s?void 0:s.map((e=>this._createEditedFeature(e,o))))||[],spatialReference:o}})}}return a}_createEditedFeature(e,t){return new n.Z({attributes:e.attributes,geometry:(0,b.im)({...e.geometry,spatialReference:t})})}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new a.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(e,t){const r=t.details.messages&&t.details.messages[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new a.Z("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){const r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(const e in t){const s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:r,dynamicDataSource:s}=this.layer;return{...e,query:{gdbVersion:r,layer:s?JSON.stringify({source:s}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}};(0,s._)([(0,y.Cb)()],ae.prototype,"type",void 0),(0,s._)([(0,y.Cb)({constructOnly:!0})],ae.prototype,"layer",void 0),(0,s._)([(0,y.Cb)({readOnly:!0})],ae.prototype,"queryTask",null),ae=(0,s._)([(0,m.j)("esri.layers.graphics.sources.FeatureLayerSource")],ae);const ue=ae},25278:(e,t,r)=>{r.d(t,{MS:()=>c,Dm:()=>u,Hq:()=>l,bU:()=>a});var s=r(80442),n=r(22974),o=r(61159),i=r(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}function u(e,t){if((0,s.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${t.includes(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const s=new Function(r);return()=>new s}catch(r){return()=>({[t]:null,...e})}}function l(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},59633:(e,t,r)=>{r.d(t,{Z:()=>l});var s=r(43697),n=r(15923),o=r(17452),i=r(5600),a=(r(67676),r(80442),r(75215),r(52011));let u=class extends n.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,o.mN)(e):null}_encode(e,t,r){const s={};for(const n in e){if("declaredClass"===n)continue;const o=e[n];if(null!=o&&"function"!=typeof o)if(Array.isArray(o)){s[n]=[];for(let e=0;e<o.length;e++)s[n][e]=this._encode(o[e])}else if("object"==typeof o)if(o.toJSON){const e=o.toJSON(r&&r[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?o:JSON.stringify(o);else s[n]=o}return s}};(0,s._)([(0,i.Cb)({readOnly:!0})],u.prototype,"parsedUrl",null),(0,s._)([(0,i.Cb)()],u.prototype,"requestOptions",void 0),(0,s._)([(0,i.Cb)({type:String})],u.prototype,"url",void 0),u=(0,s._)([(0,a.j)("esri.tasks.Task")],u);const l=u}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[755],{5499:(e,t,i)=>{i.d(t,{Z:()=>h});var s=i(43697),r=i(35454),a=i(96674),l=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),o=i(69237);const p=new r.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary"},{ignoreUnknown:!0});let u=class extends a.wq{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,l.Cb)({type:o.Z,json:{write:!0}})],u.prototype,"authoringInfo",void 0),(0,s._)([(0,l.Cb)({type:p.apiValues,readOnly:!0,json:{type:p.jsonValues,read:!1,write:{writer:p.write,ignoreOrigin:!0}}})],u.prototype,"type",void 0),u=(0,s._)([(0,n.j)("esri.renderers.Renderer")],u);const h=u},12571:(e,t,i)=>{i.d(t,{W:()=>q});var s,r=i(43697),a=i(5600),l=(i(67676),i(80442),i(75215)),n=i(71715),o=i(52011),p=i(30556),u=i(35671),h=i(77997),d=i(21849);let c=s=class extends h.Z{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,a.Cb)({readOnly:!0})],c.prototype,"cache",null),(0,r._)([(0,a.Cb)({type:["color"],json:{type:["colorInfo"]}})],c.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:[d.Z],json:{write:!0}})],c.prototype,"stops",null),c=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],c);const y=c;var b,v=i(96674),m=i(65242);let w=b=class extends v.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,m.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,m.a)(e)}clone(){return new b({label:this.label,opacity:this.opacity,value:this.value})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],w.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{type:l.z8,write:{target:"transparency"}}})],w.prototype,"opacity",void 0),(0,r._)([(0,n.r)("opacity",["transparency"])],w.prototype,"readOpacity",null),(0,r._)([(0,p.c)("opacity")],w.prototype,"writeOpacity",null),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],w.prototype,"value",void 0),w=b=(0,r._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],w);const g=w;var V;let _=V=class extends h.Z{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new V({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,a.Cb)({readOnly:!0})],_.prototype,"cache",null),(0,r._)([(0,a.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],_.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],_.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:[g],json:{write:!0}})],_.prototype,"stops",null),_=V=(0,r._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],_);const f=_;var x=i(89513),S=i(23847),z=i(15923),C=i(35454),j=i(92604),T=i(20941);const E=j.Z.getLogger("esri.renderers.visualVariables.VisualVariableFactory"),F={color:y,size:S.Z,opacity:f,rotation:x.Z},O=new C.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),D=/^\[([^\]]+)\]$/i;let I=class extends z.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter((e=>!!e)))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,a=s&&s.match(D),l=a&&a[1];if(l&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:l})),e)return e.map((e=>{const t=O.read(e.type),s=F[t];s||(E.warn(`Unknown variable type: ${t}`),i&&i.messages&&i.messages.push(new T.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const r=new s;return r.read(e,i),r}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,r._)([(0,a.Cb)()],I.prototype,"visualVariables",null),I=(0,r._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],I);const k=I,Z={base:h.Z,key:"type",typeMap:{opacity:f,color:y,rotation:x.Z,size:S.Z}},q=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new k}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.AB)(e,t,s.field),s.normalizationField&&(0,u.AB)(e,t,s.normalizationField),s.valueExpression&&await(0,u.io)(e,t,s.valueExpression))}};return(0,r._)([(0,a.Cb)({types:[Z],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,r._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,r._)([(0,p.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,r._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t}},69237:(e,t,i)=>{i.d(t,{Z:()=>I});var s,r=i(43697),a=i(35454),l=i(96674),n=i(22974),o=i(5600),p=i(75215),u=i(71715),h=i(52011);i(67676),i(80442);let d=s=class extends l.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,r._)([(0,h.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],d);const c=d;var y;let b=y=class extends l.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new y({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,n.d9)(this.classBreakInfos)})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],b.prototype,"field",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],b.prototype,"normalizationField",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:[c],json:{write:!0}})],b.prototype,"classBreakInfos",void 0),b=y=(0,r._)([(0,h.j)("esri.renderers.support.AuthoringInfoFieldInfo")],b);const v=b;var m,w=i(90578);const g=new a.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),V=new a.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),_={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},f=["high-to-low","above-and-below","centered-on","extremes"],x=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],S=["seconds","minutes","hours","days","months","years"];let z=m=class extends l.wq{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,o.Cb)({types:_,json:{write:!0}})],z.prototype,"endTime",void 0),(0,r._)([(0,w.p)("endTime")],z.prototype,"castEndTime",null),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,r._)([(0,o.Cb)({types:_,json:{write:!0}})],z.prototype,"startTime",void 0),(0,r._)([(0,w.p)("startTime")],z.prototype,"castStartTime",null),(0,r._)([(0,o.Cb)({type:g.apiValues,value:null,json:{type:g.jsonValues,read:g.read,write:g.write}})],z.prototype,"style",null),(0,r._)([(0,o.Cb)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:f,write:{writer:(e,t)=>{f.indexOf(e)>-1&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,r._)([(0,o.Cb)({type:V.apiValues,json:{type:V.jsonValues,read:V.read,write:V.write}})],z.prototype,"type",void 0),(0,r._)([(0,o.Cb)({type:S,json:{type:S,write:!0}})],z.prototype,"units",void 0),z=m=(0,r._)([(0,h.j)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const C=z;var j,T=i(94593);const E=new a.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),F=new a.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),O=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let D=j=class extends l.wq{constructor(e){super(e),this.colorRamp=null,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){if(e)return(0,T.i)(e)}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new j({classificationMethod:this.classificationMethod,colorRamp:(0,n.d9)(this.colorRamp),fields:this.fields&&this.fields.slice(0),field1:(0,n.d9)(this.field1),field2:(0,n.d9)(this.field2),focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme})}};(0,r._)([(0,o.Cb)({type:E.apiValues,value:null,json:{type:E.jsonValues,read:E.read,write:E.write,origins:{"web-document":{default:"manual",type:E.jsonValues,read:E.read,write:E.write}}}})],D.prototype,"classificationMethod",null),(0,r._)([(0,o.Cb)({types:T.V,json:{write:!0}})],D.prototype,"colorRamp",void 0),(0,r._)([(0,u.r)("colorRamp")],D.prototype,"readColorRamp",null),(0,r._)([(0,o.Cb)({type:[String],value:null,json:{write:!0}})],D.prototype,"fields",null),(0,r._)([(0,o.Cb)({type:v,value:null,json:{write:!0}})],D.prototype,"field1",null),(0,r._)([(0,o.Cb)({type:v,value:null,json:{write:!0}})],D.prototype,"field2",null),(0,r._)([(0,o.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],D.prototype,"focus",null),(0,r._)([(0,o.Cb)({type:Number,value:null,json:{type:p.z8,write:!0}})],D.prototype,"numClasses",null),(0,r._)([(0,o.Cb)({type:O,json:{type:O,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],D.prototype,"lengthUnit",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],D.prototype,"maxSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],D.prototype,"minSliderValue",void 0),(0,r._)([(0,o.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],D.prototype,"statistics",null),(0,r._)([(0,o.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],D.prototype,"standardDeviationInterval",null),(0,r._)([(0,o.Cb)({type:F.apiValues,value:null,json:{type:F.jsonValues,read:F.read,write:F.write}})],D.prototype,"type",null),(0,r._)([(0,o.Cb)({type:[C],json:{write:!0}})],D.prototype,"visualVariables",void 0),(0,r._)([(0,o.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],D.prototype,"univariateSymbolStyle",null),(0,r._)([(0,o.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],D.prototype,"univariateTheme",null),D=j=(0,r._)([(0,h.j)("esri.renderers.support.AuthoringInfo")],D);const I=D},66338:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),a=i(96674),l=i(5600),n=(i(67676),i(80442),i(75215),i(52011));let o=s=class extends a.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],o.prototype,"title",void 0),o=s=(0,r._)([(0,n.j)("esri.renderers.support.LegendOptions")],o);const p=o},89513:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),a=i(20102),l=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),o=i(30556),p=i(77997);let u=s=class extends p.Z{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s&&s.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new a.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,r._)([(0,l.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,r._)([(0,l.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],u.prototype,"axis",void 0),(0,r._)([(0,l.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],u.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],u.prototype,"rotationType",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],u.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,o.c)("web-scene","valueExpressionTitle")],u.prototype,"writeValueExpressionTitleWebScene",null),u=s=(0,r._)([(0,n.j)("esri.renderers.visualVariables.RotationVariable")],u);const h=u},23847:(e,t,i)=>{i.d(t,{Z:()=>T});var s,r=i(43697),a=i(20102),l=i(35454),n=i(92604),o=i(62357),p=i(5600),u=(i(67676),i(80442),i(90578)),h=i(71715),d=i(52011),c=i(30556),y=i(77997),b=i(30856),v=(i(75215),i(58439));let m=s=class extends v.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,r._)([(0,p.Cb)({type:[Number],json:{write:!0}})],m.prototype,"customValues",void 0),m=s=(0,r._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],m);const w=m;var g,V=i(51706),_=i(28101);const f=n.Z.getLogger("esri.renderers.visualVariables.SizeVariable"),x=new l.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new l.X({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function z(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,o.t_)(e):"size"===e.type?(0,V.iY)(e)?e:(delete(e={...e}).type,new j(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;const s=new j;return s.read(e,i),s}let j=g=class extends y.Z{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:_.B3.test(this.valueExpression)}}set expression(e){f.warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,V.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,V.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,V.PS)(this)}set maxDataValue(e){e&&this.stops&&(f.warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(f.warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return z(e)}readMaxSize(e,t,i){return C(e,0,i)}set minDataValue(e){e&&this.stops&&(f.warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(f.warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return z(e)}readMinSize(e,t,i){return C(e,0,i)}get arcadeRequired(){return!!this.valueExpression||this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(f.warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,V.QW)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s&&s.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new a.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,V.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,V.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===V.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===V.hL.Stops){const e=this.stops,t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,p.Cb)({readOnly:!0})],j.prototype,"cache",null),(0,r._)([(0,p.Cb)({type:x.apiValues,json:{type:x.jsonValues,origins:{"web-map":{read:!1}},read:x.read,write:x.write}})],j.prototype,"axis",void 0),(0,r._)([(0,p.Cb)({type:String,value:null,json:{read:!1}})],j.prototype,"expression",null),(0,r._)([(0,p.Cb)()],j.prototype,"index",null),(0,r._)([(0,p.Cb)({type:String,readOnly:!0})],j.prototype,"inputValueType",null),(0,r._)([(0,p.Cb)({type:w,json:{write:!0}})],j.prototype,"legendOptions",void 0),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"maxDataValue",null),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"maxSize",null),(0,r._)([(0,u.p)("maxSize")],j.prototype,"castMaxSize",null),(0,r._)([(0,h.r)("maxSize")],j.prototype,"readMaxSize",null),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"minDataValue",null),(0,r._)([(0,p.Cb)({type:Number,value:null,json:{write:!0}})],j.prototype,"minSize",null),(0,r._)([(0,u.p)("minSize")],j.prototype,"castMinSize",null),(0,r._)([(0,h.r)("minSize")],j.prototype,"readMinSize",null),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],j.prototype,"normalizationField",void 0),(0,r._)([(0,p.Cb)({readOnly:!0})],j.prototype,"arcadeRequired",null),(0,r._)([(0,p.Cb)({type:String})],j.prototype,"scaleBy",void 0),(0,r._)([(0,p.Cb)({type:[b.Z],value:null,json:{write:!0}})],j.prototype,"stops",null),(0,r._)([(0,p.Cb)({type:["outline"],json:{write:!0}})],j.prototype,"target",void 0),(0,r._)([(0,p.Cb)({type:String,readOnly:!0})],j.prototype,"transformationType",null),(0,r._)([(0,p.Cb)({type:["size"],json:{type:["sizeInfo"]}})],j.prototype,"type",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],j.prototype,"useSymbolValue",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpression",void 0),(0,r._)([(0,h.r)("valueExpression",["valueExpression","expression"])],j.prototype,"readValueExpression",null),(0,r._)([(0,c.c)("web-scene","valueExpression")],j.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,p.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],j.prototype,"valueRepresentation",void 0),(0,r._)([(0,p.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0}}}})],j.prototype,"valueUnit",void 0),(0,r._)([(0,h.r)("valueUnit")],j.prototype,"readValueUnit",null),j=g=(0,r._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],j);const T=j},77997:(e,t,i)=>{i.d(t,{Z:()=>b});var s=i(43697),r=i(35454),a=i(96674),l=i(92604),n=i(5600),o=(i(67676),i(80442),i(90578)),p=i(52011),u=i(75215),h=i(58439);const d=l.Z.getLogger("esri.renderers.visualVariables.VisualVariable"),c=new r.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let y=class extends a.wq{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(d.error(".field: field must be a string value"),null):(0,u.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,n.Cb)()],y.prototype,"index",void 0),(0,s._)([(0,n.Cb)({type:c.apiValues,readOnly:!0,json:{read:c.read,write:c.write}})],y.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,s._)([(0,o.p)("field")],y.prototype,"castField",null),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpression",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,n.Cb)({readOnly:!0})],y.prototype,"arcadeRequired",null),(0,s._)([(0,n.Cb)({type:h.Z,json:{write:!0}})],y.prototype,"legendOptions",void 0),y=(0,s._)([(0,p.j)("esri.renderers.visualVariables.VisualVariable")],y);const b=y},21849:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),a=i(22303),l=i(96674),n=i(5600),o=(i(67676),i(80442),i(75215)),p=i(52011),u=i(30556);let h=s=class extends l.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=null==e?0:e}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,n.Cb)({type:a.Z,json:{type:[o.z8],write:!0}})],h.prototype,"color",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],h.prototype,"value",void 0),(0,r._)([(0,u.c)("value")],h.prototype,"writeValue",null),h=s=(0,r._)([(0,p.j)("esri.renderers.visualVariables.support.ColorStop")],h);const d=h},30856:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),a=i(96674),l=i(62357),n=i(5600),o=(i(67676),i(80442),i(75215),i(52011));let p=s=class extends a.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],p.prototype,"size",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:!0}})],p.prototype,"value",void 0),p=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.support.SizeStop")],p);const u=p},58439:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),a=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),n=i(66338);let o=s=class extends n.Z{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],o.prototype,"showLegend",void 0),o=s=(0,r._)([(0,l.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],o);const p=o}}]);