@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 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8034,3172],{52138:(e,t,n)=>{n.d(t,{a:()=>l,d:()=>p,e:()=>m,f:()=>h,h:()=>f,i:()=>o,j:()=>u,m:()=>c,p:()=>v,s:()=>i,t:()=>a,u:()=>d,v:()=>g,w:()=>w,y:()=>y});var r=n(65617),s=n(46851);function i(e,t,n,r,s,i,o,a,l,c,u,f,m,h,d,p,y){return e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=f,e[11]=m,e[12]=h,e[13]=d,e[14]=p,e[15]=y,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function a(e,t){if(e===t){const n=t[1],r=t[2],s=t[3],i=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=i,e[11]=t[14],e[12]=s,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){const n=t[0],r=t[1],s=t[2],i=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],f=t[9],m=t[10],h=t[11],d=t[12],p=t[13],y=t[14],x=t[15],b=n*a-r*o,M=n*l-s*o,w=n*c-i*o,g=r*l-s*a,v=r*c-i*a,S=s*c-i*l,q=u*p-f*d,O=u*y-m*d,C=u*x-h*d,k=f*y-m*p,T=f*x-h*p,E=m*x-h*y;let P=b*E-M*T+w*k+g*C-v*O+S*q;return P?(P=1/P,e[0]=(a*E-l*T+c*k)*P,e[1]=(s*T-r*E-i*k)*P,e[2]=(p*S-y*v+x*g)*P,e[3]=(m*v-f*S-h*g)*P,e[4]=(l*C-o*E-c*O)*P,e[5]=(n*E-s*C+i*O)*P,e[6]=(y*w-d*S-x*M)*P,e[7]=(u*S-m*w+h*M)*P,e[8]=(o*T-a*C+c*q)*P,e[9]=(r*C-n*T-i*q)*P,e[10]=(d*v-p*w+x*b)*P,e[11]=(f*w-u*v-h*b)*P,e[12]=(a*O-o*k-l*q)*P,e[13]=(n*k-r*O+s*q)*P,e[14]=(p*M-d*g-y*b)*P,e[15]=(u*g-f*M+m*b)*P,e):null}function c(e,t,n){const r=t[0],s=t[1],i=t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],f=t[8],m=t[9],h=t[10],d=t[11],p=t[12],y=t[13],x=t[14],b=t[15];let M=n[0],w=n[1],g=n[2],v=n[3];return e[0]=M*r+w*a+g*f+v*p,e[1]=M*s+w*l+g*m+v*y,e[2]=M*i+w*c+g*h+v*x,e[3]=M*o+w*u+g*d+v*b,M=n[4],w=n[5],g=n[6],v=n[7],e[4]=M*r+w*a+g*f+v*p,e[5]=M*s+w*l+g*m+v*y,e[6]=M*i+w*c+g*h+v*x,e[7]=M*o+w*u+g*d+v*b,M=n[8],w=n[9],g=n[10],v=n[11],e[8]=M*r+w*a+g*f+v*p,e[9]=M*s+w*l+g*m+v*y,e[10]=M*i+w*c+g*h+v*x,e[11]=M*o+w*u+g*d+v*b,M=n[12],w=n[13],g=n[14],v=n[15],e[12]=M*r+w*a+g*f+v*p,e[13]=M*s+w*l+g*m+v*y,e[14]=M*i+w*c+g*h+v*x,e[15]=M*o+w*u+g*d+v*b,e}function u(e,t,n){const r=n[0],s=n[1],i=n[2];let o,a,l,c,u,f,m,h,d,p,y,x;return t===e?(e[12]=t[0]*r+t[4]*s+t[8]*i+t[12],e[13]=t[1]*r+t[5]*s+t[9]*i+t[13],e[14]=t[2]*r+t[6]*s+t[10]*i+t[14],e[15]=t[3]*r+t[7]*s+t[11]*i+t[15]):(o=t[0],a=t[1],l=t[2],c=t[3],u=t[4],f=t[5],m=t[6],h=t[7],d=t[8],p=t[9],y=t[10],x=t[11],e[0]=o,e[1]=a,e[2]=l,e[3]=c,e[4]=u,e[5]=f,e[6]=m,e[7]=h,e[8]=d,e[9]=p,e[10]=y,e[11]=x,e[12]=o*r+u*s+d*i+t[12],e[13]=a*r+f*s+p*i+t[13],e[14]=l*r+m*s+y*i+t[14],e[15]=c*r+h*s+x*i+t[15]),e}function f(e,t,n){const r=n[0],s=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function m(e,t,n,r){let i,o,a,l,c,u,f,m,h,d,p,y,x,b,M,w,g,v,S,q,O,C,k,T,E=r[0],P=r[1],R=r[2],Z=Math.sqrt(E*E+P*P+R*R);return Z<s.E?null:(Z=1/Z,E*=Z,P*=Z,R*=Z,i=Math.sin(n),o=Math.cos(n),a=1-o,l=t[0],c=t[1],u=t[2],f=t[3],m=t[4],h=t[5],d=t[6],p=t[7],y=t[8],x=t[9],b=t[10],M=t[11],w=E*E*a+o,g=P*E*a+R*i,v=R*E*a-P*i,S=E*P*a-R*i,q=P*P*a+o,O=R*P*a+E*i,C=E*R*a+P*i,k=P*R*a-E*i,T=R*R*a+o,e[0]=l*w+m*g+y*v,e[1]=c*w+h*g+x*v,e[2]=u*w+d*g+b*v,e[3]=f*w+p*g+M*v,e[4]=l*S+m*q+y*O,e[5]=c*S+h*q+x*O,e[6]=u*S+d*q+b*O,e[7]=f*S+p*q+M*O,e[8]=l*C+m*k+y*T,e[9]=c*C+h*k+x*T,e[10]=u*C+d*k+b*T,e[11]=f*C+p*k+M*T,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function h(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function d(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function p(e,t,n){let r,i,o,a=n[0],l=n[1],c=n[2],u=Math.sqrt(a*a+l*l+c*c);return u<s.E?null:(u=1/u,a*=u,l*=u,c*=u,r=Math.sin(t),i=Math.cos(t),o=1-i,e[0]=a*a*o+i,e[1]=l*a*o+c*r,e[2]=c*a*o-l*r,e[3]=0,e[4]=a*l*o-c*r,e[5]=l*l*o+i,e[6]=c*l*o+a*r,e[7]=0,e[8]=a*c*o+l*r,e[9]=l*c*o-a*r,e[10]=c*c*o+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function y(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function x(e,t,n){const r=t[0],s=t[1],i=t[2],o=t[3],a=r+r,l=s+s,c=i+i,u=r*a,f=r*l,m=r*c,h=s*l,d=s*c,p=i*c,y=o*a,x=o*l,b=o*c;return e[0]=1-(h+p),e[1]=f+b,e[2]=m-x,e[3]=0,e[4]=f-b,e[5]=1-(u+p),e[6]=d+y,e[7]=0,e[8]=m+x,e[9]=d-y,e[10]=1-(u+h),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}const b=(0,r.c)();function M(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function g(e,t){if(e===t)return!0;const n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7],f=e[8],m=e[9],h=e[10],d=e[11],p=e[12],y=e[13],x=e[14],b=e[15],M=t[0],w=t[1],g=t[2],v=t[3],S=t[4],q=t[5],O=t[6],C=t[7],k=t[8],T=t[9],E=t[10],P=t[11],R=t[12],Z=t[13],U=t[14],B=t[15];return Math.abs(n-M)<=s.E*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(r-w)<=s.E*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-g)<=s.E*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(o-v)<=s.E*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(a-S)<=s.E*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(l-q)<=s.E*Math.max(1,Math.abs(l),Math.abs(q))&&Math.abs(c-O)<=s.E*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(u-C)<=s.E*Math.max(1,Math.abs(u),Math.abs(C))&&Math.abs(f-k)<=s.E*Math.max(1,Math.abs(f),Math.abs(k))&&Math.abs(m-T)<=s.E*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(h-E)<=s.E*Math.max(1,Math.abs(h),Math.abs(E))&&Math.abs(d-P)<=s.E*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(p-R)<=s.E*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(y-Z)<=s.E*Math.max(1,Math.abs(y),Math.abs(Z))&&Math.abs(x-U)<=s.E*Math.max(1,Math.abs(x),Math.abs(U))&&Math.abs(b-B)<=s.E*Math.max(1,Math.abs(b),Math.abs(B))}function v(e){const t=s.E,n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],l=e[6],c=e[8],u=e[9],f=e[10];return Math.abs(1-(n*n+o*o+c*c))<=t&&Math.abs(1-(r*r+a*a+u*u))<=t&&Math.abs(1-(i*i+l*l+f*f))<=t}const S=c,q=M;Object.freeze({__proto__:null,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},set:i,identity:o,transpose:a,invert:l,adjoint:function(e,t){const n=t[0],r=t[1],s=t[2],i=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],f=t[9],m=t[10],h=t[11],d=t[12],p=t[13],y=t[14],x=t[15];return e[0]=a*(m*x-h*y)-f*(l*x-c*y)+p*(l*h-c*m),e[1]=-(r*(m*x-h*y)-f*(s*x-i*y)+p*(s*h-i*m)),e[2]=r*(l*x-c*y)-a*(s*x-i*y)+p*(s*c-i*l),e[3]=-(r*(l*h-c*m)-a*(s*h-i*m)+f*(s*c-i*l)),e[4]=-(o*(m*x-h*y)-u*(l*x-c*y)+d*(l*h-c*m)),e[5]=n*(m*x-h*y)-u*(s*x-i*y)+d*(s*h-i*m),e[6]=-(n*(l*x-c*y)-o*(s*x-i*y)+d*(s*c-i*l)),e[7]=n*(l*h-c*m)-o*(s*h-i*m)+u*(s*c-i*l),e[8]=o*(f*x-h*p)-u*(a*x-c*p)+d*(a*h-c*f),e[9]=-(n*(f*x-h*p)-u*(r*x-i*p)+d*(r*h-i*f)),e[10]=n*(a*x-c*p)-o*(r*x-i*p)+d*(r*c-i*a),e[11]=-(n*(a*h-c*f)-o*(r*h-i*f)+u*(r*c-i*a)),e[12]=-(o*(f*y-m*p)-u*(a*y-l*p)+d*(a*m-l*f)),e[13]=n*(f*y-m*p)-u*(r*y-s*p)+d*(r*m-s*f),e[14]=-(n*(a*y-l*p)-o*(r*y-s*p)+d*(r*l-s*a)),e[15]=n*(a*m-l*f)-o*(r*m-s*f)+u*(r*l-s*a),e},determinant:function(e){const t=e[0],n=e[1],r=e[2],s=e[3],i=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],f=e[10],m=e[11],h=e[12],d=e[13],p=e[14],y=e[15];return(t*o-n*i)*(f*y-m*p)-(t*a-r*i)*(u*y-m*d)+(t*l-s*i)*(u*p-f*d)+(n*a-r*o)*(c*y-m*h)-(n*l-s*o)*(c*p-f*h)+(r*l-s*a)*(c*d-u*h)},multiply:c,translate:u,scale:f,rotate:m,rotateX:function(e,t,n){const r=Math.sin(n),s=Math.cos(n),i=t[4],o=t[5],a=t[6],l=t[7],c=t[8],u=t[9],f=t[10],m=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*s+c*r,e[5]=o*s+u*r,e[6]=a*s+f*r,e[7]=l*s+m*r,e[8]=c*s-i*r,e[9]=u*s-o*r,e[10]=f*s-a*r,e[11]=m*s-l*r,e},rotateY:function(e,t,n){const r=Math.sin(n),s=Math.cos(n),i=t[0],o=t[1],a=t[2],l=t[3],c=t[8],u=t[9],f=t[10],m=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s-c*r,e[1]=o*s-u*r,e[2]=a*s-f*r,e[3]=l*s-m*r,e[8]=i*r+c*s,e[9]=o*r+u*s,e[10]=a*r+f*s,e[11]=l*r+m*s,e},rotateZ:function(e,t,n){const r=Math.sin(n),s=Math.cos(n),i=t[0],o=t[1],a=t[2],l=t[3],c=t[4],u=t[5],f=t[6],m=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s+c*r,e[1]=o*s+u*r,e[2]=a*s+f*r,e[3]=l*s+m*r,e[4]=c*s-i*r,e[5]=u*s-o*r,e[6]=f*s-a*r,e[7]=m*s-l*r,e},fromTranslation:h,fromScaling:d,fromRotation:p,fromXRotation:y,fromYRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotationTranslation:x,fromQuat2:function(e,t){const n=b,r=-t[0],s=-t[1],i=-t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],f=r*r+s*s+i*i+o*o;return f>0?(n[0]=2*(a*o+u*r+l*i-c*s)/f,n[1]=2*(l*o+u*s+c*r-a*i)/f,n[2]=2*(c*o+u*i+a*s-l*r)/f):(n[0]=2*(a*o+u*r+l*i-c*s),n[1]=2*(l*o+u*s+c*r-a*i),n[2]=2*(c*o+u*i+a*s-l*r)),x(e,t,n),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},getScaling:function(e,t){const n=t[0],r=t[1],s=t[2],i=t[4],o=t[5],a=t[6],l=t[8],c=t[9],u=t[10];return e[0]=Math.sqrt(n*n+r*r+s*s),e[1]=Math.sqrt(i*i+o*o+a*a),e[2]=Math.sqrt(l*l+c*c+u*u),e},getRotation:function(e,t){const n=t[0]+t[5]+t[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),e[3]=.25*r,e[0]=(t[6]-t[9])/r,e[1]=(t[8]-t[2])/r,e[2]=(t[1]-t[4])/r):t[0]>t[5]&&t[0]>t[10]?(r=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/r,e[0]=.25*r,e[1]=(t[1]+t[4])/r,e[2]=(t[8]+t[2])/r):t[5]>t[10]?(r=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/r,e[0]=(t[1]+t[4])/r,e[1]=.25*r,e[2]=(t[6]+t[9])/r):(r=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/r,e[0]=(t[8]+t[2])/r,e[1]=(t[6]+t[9])/r,e[2]=.25*r),e},fromRotationTranslationScale:function(e,t,n,r){const s=t[0],i=t[1],o=t[2],a=t[3],l=s+s,c=i+i,u=o+o,f=s*l,m=s*c,h=s*u,d=i*c,p=i*u,y=o*u,x=a*l,b=a*c,M=a*u,w=r[0],g=r[1],v=r[2];return e[0]=(1-(d+y))*w,e[1]=(m+M)*w,e[2]=(h-b)*w,e[3]=0,e[4]=(m-M)*g,e[5]=(1-(f+y))*g,e[6]=(p+x)*g,e[7]=0,e[8]=(h+b)*v,e[9]=(p-x)*v,e[10]=(1-(f+d))*v,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e},fromRotationTranslationScaleOrigin:function(e,t,n,r,s){const i=t[0],o=t[1],a=t[2],l=t[3],c=i+i,u=o+o,f=a+a,m=i*c,h=i*u,d=i*f,p=o*u,y=o*f,x=a*f,b=l*c,M=l*u,w=l*f,g=r[0],v=r[1],S=r[2],q=s[0],O=s[1],C=s[2],k=(1-(p+x))*g,T=(h+w)*g,E=(d-M)*g,P=(h-w)*v,R=(1-(m+x))*v,Z=(y+b)*v,U=(d+M)*S,B=(y-b)*S,_=(1-(m+p))*S;return e[0]=k,e[1]=T,e[2]=E,e[3]=0,e[4]=P,e[5]=R,e[6]=Z,e[7]=0,e[8]=U,e[9]=B,e[10]=_,e[11]=0,e[12]=n[0]+q-(k*q+P*O+U*C),e[13]=n[1]+O-(T*q+R*O+B*C),e[14]=n[2]+C-(E*q+Z*O+_*C),e[15]=1,e},fromQuat:function(e,t){const n=t[0],r=t[1],s=t[2],i=t[3],o=n+n,a=r+r,l=s+s,c=n*o,u=r*o,f=r*a,m=s*o,h=s*a,d=s*l,p=i*o,y=i*a,x=i*l;return e[0]=1-f-d,e[1]=u+x,e[2]=m-y,e[3]=0,e[4]=u-x,e[5]=1-c-d,e[6]=h+p,e[7]=0,e[8]=m+y,e[9]=h-p,e[10]=1-c-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,n,r,s,i,o){const a=1/(n-t),l=1/(s-r),c=1/(i-o);return e[0]=2*i*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*l,e[6]=0,e[7]=0,e[8]=(n+t)*a,e[9]=(s+r)*l,e[10]=(o+i)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*c,e[15]=0,e},perspective:function(e,t,n,r,s){const i=1/Math.tan(t/2);let o;return e[0]=i/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(o=1/(r-s),e[10]=(s+r)*o,e[14]=2*s*r*o):(e[10]=-1,e[14]=-2*r),e},perspectiveFromFieldOfView:function(e,t,n,r){const s=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+a),c=2/(s+i);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(o-a)*l*.5,e[9]=(s-i)*c*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e},ortho:function(e,t,n,r,s,i,o){const a=1/(t-n),l=1/(r-s),c=1/(i-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*a,e[13]=(s+r)*l,e[14]=(o+i)*c,e[15]=1,e},lookAt:function(e,t,n,r){let i,a,l,c,u,f,m,h,d,p;const y=t[0],x=t[1],b=t[2],M=r[0],w=r[1],g=r[2],v=n[0],S=n[1],q=n[2];return Math.abs(y-v)<s.E&&Math.abs(x-S)<s.E&&Math.abs(b-q)<s.E?o(e):(m=y-v,h=x-S,d=b-q,p=1/Math.sqrt(m*m+h*h+d*d),m*=p,h*=p,d*=p,i=w*d-g*h,a=g*m-M*d,l=M*h-w*m,p=Math.sqrt(i*i+a*a+l*l),p?(p=1/p,i*=p,a*=p,l*=p):(i=0,a=0,l=0),c=h*l-d*a,u=d*i-m*l,f=m*a-h*i,p=Math.sqrt(c*c+u*u+f*f),p?(p=1/p,c*=p,u*=p,f*=p):(c=0,u=0,f=0),e[0]=i,e[1]=c,e[2]=m,e[3]=0,e[4]=a,e[5]=u,e[6]=h,e[7]=0,e[8]=l,e[9]=f,e[10]=d,e[11]=0,e[12]=-(i*y+a*x+l*b),e[13]=-(c*y+u*x+f*b),e[14]=-(m*y+h*x+d*b),e[15]=1,e)},targetTo:function(e,t,n,r){const s=t[0],i=t[1],o=t[2],a=r[0],l=r[1],c=r[2];let u=s-n[0],f=i-n[1],m=o-n[2],h=u*u+f*f+m*m;h>0&&(h=1/Math.sqrt(h),u*=h,f*=h,m*=h);let d=l*m-c*f,p=c*u-a*m,y=a*f-l*u;return h=d*d+p*p+y*y,h>0&&(h=1/Math.sqrt(h),d*=h,p*=h,y*=h),e[0]=d,e[1]=p,e[2]=y,e[3]=0,e[4]=f*y-m*p,e[5]=m*d-u*y,e[6]=u*p-f*d,e[7]=0,e[8]=u,e[9]=f,e[10]=m,e[11]=0,e[12]=s,e[13]=i,e[14]=o,e[15]=1,e},str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e},subtract:M,multiplyScalar:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e},multiplyScalarAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e[9]=t[9]+n[9]*r,e[10]=t[10]+n[10]*r,e[11]=t[11]+n[11]*r,e[12]=t[12]+n[12]*r,e[13]=t[13]+n[13]*r,e[14]=t[14]+n[14]*r,e[15]=t[15]+n[15]*r,e},exactEquals:w,equals:g,isOrthoNormal:v,mul:S,sub:q})},36030:(e,t,n)=>{n.d(t,{J:()=>i});var r=n(35454),s=n(5600);function i(e,t={}){var n;const i=e instanceof r.Xn?e:new r.Xn(e,t),o={type:null==(n=null==t?void 0:t.ignoreUnknown)||n?i.apiValues:String,json:{type:i.jsonValues,read:(null==t||!t.readOnly)&&{reader:i.read},write:{writer:i.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(o.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(o.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(o.json.name=t.name),(0,s.Cb)(o)}},67900:(e,t,n)=>{n.d(t,{gV:()=>I,En:()=>S,Z7:()=>E,c9:()=>T,_R:()=>C,qE:()=>Z,cM:()=>k,hd:()=>u,ty:()=>q,Jo:()=>G,$C:()=>O}),n(80442);var r=n(35454),s=n(70586),i=n(24678),o=n(82971),a=n(68441),l=n(8744),c=n(58116);const u=39.37,f=a.sv.radius*Math.PI/200,m=/UNIT\[([^\]]+)\]\]$/i,h=c.Z,d=/UNIT\[([^\]]+)\]/i,p=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,r.wY)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),x=e=>e*e,b=e=>e*e*e,M={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:x(.001)},"square-centimeters":{inBaseUnits:x(.01)},"square-decimeters":{inBaseUnits:x(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:x(1e3)},"square-inches":{inBaseUnits:x(.0254)},"square-feet":{inBaseUnits:x(.3048)},"square-yards":{inBaseUnits:x(.9144)},"square-miles":{inBaseUnits:x(1609.344)},"square-us-feet":{inBaseUnits:x(1200/3937)},acres:{inBaseUnits:.0015625*x(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*b(.001)},"cubic-centimeters":{inBaseUnits:1e3*b(.01)},"cubic-decimeters":{inBaseUnits:1e3*b(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*b(1e3)},"cubic-inches":{inBaseUnits:1e3*b(.0254)},"cubic-feet":{inBaseUnits:1e3*b(.3048)},"cubic-yards":{inBaseUnits:1e3*b(.9144)},"cubic-miles":{inBaseUnits:1e3*b(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},w=function(){const e={};for(const t in M)for(const n in M[t].units)e[n]=t;return e}();function g(e){const t=w[e];if(t)return t;throw new Error("unknown measure")}function v(e,t=null){return t=t||g(e),M[t].baseUnit===e}function S(e,t,n){if(t===n)return e;const r=g(t);if(r!==g(n))throw new Error("incompatible units");const s=v(t,r)?e:function(e,t,n){return e*M[n].units[t].inBaseUnits}(e,t,r);return v(n,r)?s:function(e,t,n){return e/M[n].units[t].inBaseUnits}(s,n,r)}function q(e,t,n){return S(e,t,"meters")/(n*Math.PI/180)}function O(e){return y.fromJSON(e.toLowerCase())||null}function C(e){if(e&&"object"==typeof e&&!(0,l.N$)(e))return 1;const t=T(e);return t>1e5?1:t}function k(e){return T(e)>=(e instanceof o.Z?(0,i.Iu)(e).metersPerDegree:1e5)?"meters":Z(e)}function T(e,t=a.sv.metersPerDegree){return E(e,!0)||t}function E(e,t=!1){let n,r,s=null;if(null!=e&&("object"==typeof e?(n=e.wkid,r=e.wkt):"number"==typeof e?n=e:"string"==typeof e&&(r=e)),n){if((0,l.o$)(n))return a.yr.metersPerDegree;if((0,l.ME)(n))return a.Z1.metersPerDegree;s=h.values[h[n]],!s&&t&&p.has(n)&&(s=f)}else r&&(B(r)?s=P(m.exec(r),s):U(r)&&(s=P(d.exec(r),s)));return s}function P(e,t){return e&&e[1]?R(e[1]):t}function R(e){return parseFloat(e.split(",")[1])}function Z(e){let t,n,r=null;if(null!=e&&("object"==typeof e?(t=e.wkid,n=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(n=e)),t)r=h.units[h[t]];else if(n){const e=B(n)?m:U(n)?d:null;if(e){const t=e.exec(n);t&&t[1]&&(r=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let n=t&&t[1];if(!n||-1===h.units.indexOf(n)){const t=R(e);n=null;const r=h.values;for(let e=0;e<r.length;++e)if(Math.abs(t-r[e])<1e-7){n=h.units[e];break}}return n}(t[1]))}}return(0,s.pC)(r)?O(r):null}function U(e){return/^GEOCCS/i.test(e)}function B(e){return/^PROJCS/i.test(e)}const _={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},N={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},I=(0,r.wY)()(_),G=(0,r.wY)()(N);(0,r.wY)()({..._,...N})},66577:(e,t,n)=>{n.d(t,{qM:()=>u});var r=n(75215),s=n(6570),i=n(9361),o=n(65091),a=n(13473),l=n(17332),c=n(58901);n(82971),n(86973),n(33955);const u={base:i.Z,key:"type",typeMap:{extent:s.Z,multipoint:o.Z,point:a.Z,polyline:c.Z,polygon:l.Z}};(0,r.N7)(u)},24678:(e,t,n)=>{n.d(t,{GG:()=>a,HQ:()=>l,VY:()=>c,wY:()=>u,Iu:()=>m,e8:()=>h,rS:()=>f});var r=n(82971),s=n(68441),i=n(8744);function o(e){return new r.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const a=o(s.sv),l=o(s.yr),c=o(s.Z1),u=new r.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${s.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function f(e){return e&&((0,i.BZ)(e)||e===l)?l:e&&((0,i.V2)(e)||e===c)?c:a}function m(e){return e&&((0,i.BZ)(e)||e===l)?s.yr:e&&((0,i.V2)(e)||e===c)?s.Z1:s.sv}function h(e){return(0,i.o$)(e)?s.yr:(0,i.ME)(e)?s.Z1:s.sv}},24470:(e,t,n)=>{n.d(t,{Gv:()=>m,SO:()=>c,r3:()=>f,Ue:()=>i,oJ:()=>a,al:()=>o,kK:()=>u,HH:()=>l}),n(80442),n(22021);var r=n(70586),s=n(6570);function i(e=h){return[e[0],e[1],e[2],e[3]]}function o(e,t,n,r,s=i()){return s[0]=e,s[1]=t,s[2]=n,s[3]=r,s}function a(e,t=i()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function l(e,t){return new s.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function c(e){return function(e){return(0,r.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function u(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function f(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}const m=[1/0,1/0,-1/0,-1/0],h=[0,0,0,0]},33955:(e,t,n)=>{n.d(t,{im:()=>p,q9:()=>b,Ji:()=>y,YX:()=>u,aW:()=>f,wp:()=>m,oU:()=>d,l9:()=>h});var r=n(70586),s=n(6570),i=n(9361),o=n(65091),a=n(13473),l=n(17332),c=n(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function f(e){return void 0!==e.points}function m(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths}function d(e){return void 0!==e.rings}function p(e){return(0,r.Wi)(e)?null:e instanceof i.Z?e:m(e)?a.Z.fromJSON(e):h(e)?c.Z.fromJSON(e):d(e)?l.Z.fromJSON(e):f(e)?o.Z.fromJSON(e):u(e)?s.Z.fromJSON(e):null}function y(e){return e?m(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":d(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":f(e)?"esriGeometryMultipoint":null:null}const x={esriGeometryPoint:a.Z,esriGeometryPolyline:c.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:s.Z,esriGeometryMultipoint:o.Z};function b(e){return e&&x[e]||null}},86973:(e,t,n)=>{n.d(t,{Mk:()=>s,P$:()=>i});var r=n(35454);const s=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},69285:(e,t,n)=>{n.d(t,{k:()=>o});var r=n(70586),s=n(67900),i=n(8744);function o(e,t,n){if((0,r.Wi)(t)||(0,r.Wi)(n)||n.vcsWkid||(0,i.fS)(t,n))return null;const o=(0,s._R)(t)/(0,s._R)(n);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},61576:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d}),n(66577);var r=n(70586),s=n(18571),i=n(54163),o=n(75993),a=n(55914),l=n(73506),c=n(80676),u=n(87521),f=n(91219),m=n(23808),h=n(6570);class d{convertVectorFieldData(e){const t=i.Z.fromJSON(e.pixelBlock),n=(0,c.KC)(t,e.type);return Promise.resolve((0,r.pC)(n)&&n.toJSON())}async decode(e){const t=await(0,o.J)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=i.Z.fromJSON(e.pixelBlock),e.extent=e.extent?h.Z.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve((0,r.pC)(t)&&t.toJSON())}async updateSymbolizer(e){var t;this.symbolizer=f.Z.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===(null==(t=this.symbolizer)?void 0:t.rendererJSON.type)&&(this.symbolizer.rendererJSON.histograms=e.histograms)}stretch(e){const t=this.symbolizer.simpleStretch(i.Z.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve((0,r.pC)(t)&&t.toJSON())}estimateStatisticsHistograms(e){const t=(0,a.Hv)(i.Z.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,a.Vl)(i.Z.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel);return t&&t.forEach(((e,n)=>{t.set(n,null==e?void 0:e.toJSON())})),Promise.resolve(t)}async mosaicAndTransform(e){const t=e.srcPixelBlocks.map((e=>e?new i.Z(e):null)),n=(0,a.us)(t,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});if(!e.coefs)return n&&n.toJSON();const r=(0,a.Uk)(n,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation);return r&&r.toJSON()}async createStreamlinesMesh(e,t){const n={data:new Float32Array(e.flowData.buffer),width:e.flowData.width,height:e.flowData.height},{vertexData:r,indexData:s}=await(0,m.z_)(e.rendererSettings,n,t.signal);return{result:{vertexBuffer:r.buffer,indexBuffer:s.buffer},transferList:[r.buffer,s.buffer]}}async getProjectionOffsetGrid(e){const t=h.Z.fromJSON(e.projectedExtent),n=h.Z.fromJSON(e.srcBufferExtent);let r=null;e.datumTransformationStemps&&(r=new s.Z({steps:e.datumTransformationStemps})),(0,l.Mk)(t.spatialReference,n.spatialReference,r)&&await(0,l.zD)();const i=e.rasterTransform?(0,u.c)(e.rasterTransform):null;return(0,l.Qp)({...e,projectedExtent:t,srcBufferExtent:n,datumTransformation:r,rasterTransform:i})}}},73506:(e,t,n)=>{n.d(t,{Qp:()=>C,P_:()=>O,ut:()=>g,Hq:()=>q,zD:()=>d,tB:()=>M,nF:()=>x,VO:()=>p,Mk:()=>u,kZ:()=>T,kr:()=>E}),n(66577);var r=n(20102),s=n(70586),i=n(67900),o=n(90411),a=n(6570),l=n(13473);const c=5e-4;function u(e,t,n){return!(0,o.Up)(e,t,n)}function f(e,t,n){const s=u(e,t,n);if(s&&!(0,o.kR)())throw new r.Z("rasterprojectionhelper-project","projection engine is not loaded");return s}const m=function(e,t,n){const r=(e[0]+e[4]+e[4*t.cols]+e[4*t.cols+4])/4,s=(e[1]+e[5]+e[4*t.rows+1]+e[4*t.rows+5])/4,i=(e[4*t.cols]-e[0]+e[4*t.cols+4]-e[4])/n[0]*.5,o=(e[4*t.cols+1]-e[1]+e[4*t.cols+5]-e[5])/n[1]*.5;return[0===i||isNaN(i)?0:Math.abs(r-e[2*t.rows+2])/Math.abs(i),0===o||isNaN(o)?0:Math.abs(s-e[2*t.rows+3])/Math.abs(o)]},h={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244};async function d(){if((0,o.kR)())return null;await(0,o.zD)()}function p(e,t,n,r=null){if(e.spatialReference.equals(t))return e;f(e.spatialReference,t,r);const i=n.center,l=new a.Z({xmin:i.x-e.x/2,xmax:i.x+e.x/2,ymin:i.y-e.y/2,ymax:i.y+e.y/2,spatialReference:e.spatialReference}),c=(0,o.iV)(l,t,r);return(0,s.Wi)(c)?null:{x:c.xmax-c.xmin,y:c.ymax-c.ymin}}function y(e,t=.01){return(0,i.c9)(e)?t/(0,i.c9)(e):0}function x(e,t,n=null,r=!0){const s=e.spatialReference;if(s.equals(t))return e;f(s,t,n);const i=(0,o.iV)(e,t,n);if(r&&t.isGeographic){const[t,n]=v(s,!0),r=y(s);r&&null!=t&&null!=n&&(Math.abs(e.x-t)<r&&Math.abs(180-i.x)<c?i.x-=360:Math.abs(e.x-n)<r&&Math.abs(180+i.x)<c&&(i.x+=360))}return i}function b(e){const t=g(e[0].spatialReference);if(e.length<2||!(0,s.pC)(t))return e[0];let{xmin:n,xmax:r,ymin:i,ymax:o}=e[0];for(let n=1;n<e.length;n++){const s=e[n];r=s.xmax+t*n,i=Math.min(i,s.ymin),o=Math.max(o,s.ymax)}return new a.Z({xmin:n,xmax:r,ymin:i,ymax:o,spatialReference:e[0].spatialReference})}function M(e,t,n=null,r=!0){if(e.spatialReference.equals(t))return e;const i=q(e),o=g(e.spatialReference,!0);return(0,s.pC)(o)&&0!==i?b(e.clone().normalize().map((e=>w(e,t,n,r)))):w(e,t,n,r)}function w(e,t,n=null,r=!0){const s=e.spatialReference;if(s.equals(t))return e;f(s,t,n);const i=(0,o.iV)(e,t,n);let[a,u]=v(s,!0);if(i&&r&&s.isWebMercator&&t.isGeographic&&null!=a&&null!=u){const r=.001,o=1e3;if(Math.abs(e.xmin-a)<r&&Math.abs(u-e.xmax)>o&&Math.abs(180-i.xmax)<c){i.xmin=-180;const r=[];r.push(new l.Z(e.xmax,e.ymin,s)),r.push(new l.Z(e.xmax,(e.ymin+e.ymax)/2,s)),r.push(new l.Z(e.xmax,e.ymax,s));const o=r.map((e=>x(e,t,n))).filter((e=>!isNaN(null==e?void 0:e.x))).map((e=>e.x));i.xmax=Math.max.apply(null,o)}if(Math.abs(e.xmax-u)<r&&Math.abs(a-e.xmin)>o&&Math.abs(180+i.xmin)<c){i.xmax=180;const r=[];r.push(new l.Z(e.xmin,e.ymin,s)),r.push(new l.Z(e.xmin,(e.ymin+e.ymax)/2,s)),r.push(new l.Z(e.xmin,e.ymax,s));const o=r.map((e=>x(e,t,n))).filter((e=>!isNaN(null==e?void 0:e.x))).map((e=>e.x));i.xmin=Math.min.apply(null,o)}}[a,u]=v(t,!0);const m=y(t);return m&&null!=a&&null!=u&&i&&(Math.abs(i.xmin-a)<m&&(i.xmin=a),Math.abs(i.xmax-u)<m&&(i.xmax=u)),i}function g(e,t=!1){const n=t?20037508.342787:20037508.342788905;return e.isWebMercator?2*n:e.wkid&&e.isGeographic?360:2*h[e.wkid]||null}function v(e,t=!1){const n=[],r=g(e,t);return(0,s.pC)(r)&&(n.push(-r/2),n.push(r/2)),n}function S(e,t,n,r){let s=(e-t)/n;return s-Math.floor(s)!=0?s=Math.floor(s):r&&(s-=1),s}function q(e,t=!1){const n=g(e.spatialReference);if(!(0,s.pC)(n))return 0;const r=t?0:-n/2;return S(e.xmax,r,n,!0)-S(e.xmin,r,n,!1)}function O(e){const t=e.storageInfo.origin.x,n=g(e.spatialReference,!0);if(!(0,s.pC)(n))return{originX:t,halfWorldWidth:null,pyramidsInfo:null};const r=n/2,{nativePixelSize:i,storageInfo:o,extent:a}=e,{maximumPyramidLevel:l,blockWidth:c,pyramidScalingFactor:u}=o;let f=i.x;const m=[],h=(0,s.pC)(e.transform)&&"gcs-shift"===e.transform.type,d=t+(h?0:r),p=h?n-t:r-t;for(let e=0;e<=l;e++){const e=(a.xmax-t)/f/c,n=e-Math.floor(e)==0?e:Math.ceil(e),r=p/f/c,s=r-Math.floor(r)==0?r:Math.ceil(r),i=Math.floor(d/f/c),o=Math.round(d/f)%c,l=(c-Math.round(p/f)%c)%c;m.push({resolutionX:f,blockWidth:c,datsetColumnCount:n,worldColumnCountFromOrigin:s,leftMargin:o,rightPadding:l,originColumnOffset:i}),f*=u}return{originX:t,halfWorldWidth:r,pyramidsInfo:m,hasGCSSShiftTransform:h}}function C(e){const t=e.isAdaptive&&null==e.spacing,n=e.spacing||[32,32];let r=k(e),s={cols:r.size[0]+1,rows:r.size[1]+1},i=m(r.offsets,s,n);const o=(i[0]+i[1])/2,a=r.outofBoundPointCount>0&&r.outofBoundPointCount<r.offsets.length/2;return t&&(a||o>4)&&(r=k({...e,spacing:[4,4]}),s={cols:r.size[0]+1,rows:r.size[1]+1},i=m(r.offsets,s,n)),r.error=i,r.coefficients=function(e,t,n){const{cols:r,rows:s}=t,i=new Float32Array((r-1)*(s-1)*2*6),o=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),a=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let t=0;t<r-1;t++){for(let n=0;n<s-1;n++){let l=t*s*2+2*n;const c=e[l],u=e[l+1],f=e[l+2],m=e[l+3];l+=2*s;const h=e[l],d=e[l+1],p=e[l+2],y=e[l+3];let x=0,b=12*(n*(r-1)+t);for(let e=0;e<3;e++)i[b++]=o[x++]*c+o[x++]*f+o[x++]*p;x=0;for(let e=0;e<3;e++)i[b++]=o[x++]*u+o[x++]*m+o[x++]*y;x=0;for(let e=0;e<3;e++)i[b++]=a[x++]*c+a[x++]*h+a[x++]*p;x=0;for(let e=0;e<3;e++)i[b++]=a[x++]*u+a[x++]*d+a[x++]*y}if(n)for(let e=0;e<i.length;e++)isNaN(i[e])&&(i[e]=-1)}return i}(r.offsets,s,a),r}function k(e){const{projectedExtent:t,srcBufferExtent:n,pixelSize:r,datumTransformation:i,rasterTransform:a}=e,c=t.spatialReference,u=n.spatialReference;f(c,u);const{xmin:m,ymin:h,xmax:d,ymax:p}=t,y=g(u),x=e.hasWrapAround||"gcs-shift"===(null==a?void 0:a.type),b=e.spacing||[32,32],M={x:b[0]*r.x,y:b[1]*r.y},w=Math.ceil((d-m)/M.x-.1/b[0])+1,v=Math.ceil((p-h)/M.y-.1/b[1])+1,S=M.x,q=M.y,O=[];let C,k=0;const T=[];for(let e=0;e<w;e++)for(let t=0;t<v;t++)T.push(new l.Z({x:m+S*e,y:p-q*t,spatialReference:c}));const E=function(e,t,n=null){const r=e[0].spatialReference;return r.equals(t)?e:(f(r,t,n),(0,o.iV)(e,t,n))}(T,u,i);for(let e=0;e<w;e++){const t=[];for(let r=0;r<v;r++){let i=E[e*v+r];a&&(i=a.inverseTransform(i)),t.push(i),e>0&&x&&i&&C[r]&&(0,s.pC)(y)&&i.x<C[r].x&&(i.x+=y),i?(O.push((i.x-n.xmin)/(n.xmax-n.xmin)),O.push((n.ymax-i.y)/(n.ymax-n.ymin))):(O.push(NaN),O.push(NaN),k++)}C=t}return{offsets:O,error:null,coefficients:null,outofBoundPointCount:k,spacing:b,size:[w-1,v-1]}}function T(e){const t=e.clone().normalize();return 1===t.length?t[0]:b(t)}function E(e,t,n){const{storageInfo:r,pixelSize:i}=t;let o,a=!1;const{pyramidResolutions:c}=r;if((0,s.pC)(c)&&c.length){const r=(e.x+e.y)/2,s=c[c.length-1],u=(s.x+s.y)/2,f=(i.x+i.y)/2;if(r<=f)o=0;else if(r>=u)o=c.length,a=r/u>8;else{let e,t=f;for(let s=1;s<=c.length;s++){if(e=(c[s-1].x+c[s-1].y)/2,r<=e){r===e?o=s:"down"===n?(o=s-1,a=r/t>8):o="up"===n||r-t>e-r||r/t>2?s:s-1;break}t=e}}const m=0===o?i:c[o-1];return{pyramidLevel:o,pyramidResolution:new l.Z({x:m.x,y:m.y,spatialReference:t.spatialReference}),excessiveReading:a}}const u=Math.log(e.x/i.x)/Math.LN2,f=Math.log(e.y/i.y)/Math.LN2,m=t.storageInfo.maximumPyramidLevel||0;o="down"===n?Math.floor(Math.min(u,f)):"up"===n?Math.ceil(Math.max(u,f)):Math.round((u+f)/2),o<0?o=0:o>m&&(a=o>m+3,o=m);const h=2**o;return{pyramidLevel:o,pyramidResolution:new l.Z({x:h*t.nativePixelSize.x,y:h*t.nativePixelSize.y,spatialReference:t.spatialReference}),excessiveReading:a}}},48700:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(43697),s=n(96674),i=n(5600),o=(n(67676),n(80442),n(75215),n(52011));let a=class extends s.wq{get affectsPixelSize(){return!1}forwardTransform(e){return e}inverseTransform(e){return e}};(0,r._)([(0,i.Cb)()],a.prototype,"affectsPixelSize",null),(0,r._)([(0,i.Cb)({json:{write:!0}})],a.prototype,"spatialReference",void 0),a=(0,r._)([(0,o.j)("esri.layers.support.rasterTransforms.BaseRasterTransform")],a);const l=a},29680:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(43697),s=n(5600),i=(n(67676),n(80442),n(75215),n(36030)),o=n(52011),a=n(48700);let l=class extends a.Z{constructor(){super(...arguments),this.type="gcs-shift",this.tolerance=1e-8}forwardTransform(e){return"point"===(e=e.clone()).type?(e.x>180+this.tolerance&&(e.x-=360),e):(e.xmin>=180-this.tolerance?(e.xmax-=360,e.xmin-=360):e.xmax>180+this.tolerance&&(e.xmin=-180,e.xmax=180),e)}inverseTransform(e){return"point"===(e=e.clone()).type?(e.x<-this.tolerance&&(e.x+=360),e):(e.xmin<-this.tolerance&&(e.xmin+=360,e.xmax+=360),e)}};(0,r._)([(0,i.J)({GCSShiftXform:"gcs-shift"})],l.prototype,"type",void 0),(0,r._)([(0,s.Cb)()],l.prototype,"tolerance",void 0),l=(0,r._)([(0,o.j)("esri.layers.support.rasterTransforms.GCSShiftTransform")],l);const c=l},87390:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(43697),s=(n(66577),n(5600)),i=(n(67676),n(80442),n(75215),n(36030)),o=n(71715),a=n(52011),l=n(30556),c=n(48700),u=n(13473),f=n(6570);function m(e,t,n){const{x:r,y:s}=t;if(n<2)return{x:e[0]+r*e[2]+s*e[4],y:e[1]+r*e[3]+s*e[5]};if(2===n){const t=r*r,n=s*s,i=r*s;return{x:e[0]+r*e[2]+s*e[4]+t*e[6]+i*e[8]+n*e[10],y:e[1]+r*e[3]+s*e[5]+t*e[7]+i*e[9]+n*e[11]}}const i=r*r,o=s*s,a=r*s,l=i*r,c=i*s,u=r*o,f=s*o;return{x:e[0]+r*e[2]+s*e[4]+i*e[6]+a*e[8]+o*e[10]+l*e[12]+c*e[14]+u*e[16]+f*e[18],y:e[1]+r*e[3]+s*e[5]+i*e[7]+a*e[9]+o*e[11]+l*e[13]+c*e[15]+u*e[17]+f*e[19]}}function h(e,t,n){const{xmin:r,ymin:s,xmax:i,ymax:o,spatialReference:a}=t;let l=[];if(n<2)l.push({x:r,y:o}),l.push({x:i,y:o}),l.push({x:r,y:s}),l.push({x:i,y:s});else{let e=10;for(let t=0;t<e;t++)l.push({x:r,y:s+(o-s)*t/(e-1)}),l.push({x:i,y:s+(o-s)*t/(e-1)});e=8;for(let t=1;t<=e;t++)l.push({x:r+(i-r)*t/e,y:s}),l.push({x:r+(i-r)*t/e,y:o})}l=l.map((t=>m(e,t,n)));const c=l.map((e=>e.x)),u=l.map((e=>e.y));return new f.Z({xmin:Math.min.apply(null,c),xmax:Math.max.apply(null,c),ymin:Math.min.apply(null,u),ymax:Math.max.apply(null,u),spatialReference:a})}let d=class extends c.Z{constructor(){super(...arguments),this.polynomialOrder=1,this.type="polynomial"}readForwardCoefficients(e,t){const{coeffX:n,coeffY:r}=t;if(null==n||!n.length||null==r||!r.length||n.length!==r.length)return null;const s=[];for(let e=0;e<n.length;e++)s.push(n[e]),s.push(r[e]);return s}writeForwardCoefficients(e,t,n){const r=[],s=[];for(let t=0;t<(null==e?void 0:e.length);t++)t%2==0?r.push(e[t]):s.push(e[t]);t.coeffX=r,t.coeffY=s}get inverseCoefficients(){let e=this._get("inverseCoefficients");const t=this._get("forwardCoefficients");return!e&&t&&this.polynomialOrder<2&&(e=function(e){const[t,n,r,s,i,o]=e,a=r*o-i*s,l=i*s-r*o;return[(i*n-t*o)/a,(r*n-t*s)/l,o/a,s/l,-i/a,-r/l]}(t)),e}set inverseCoefficients(e){this._set("inverseCoefficients",e)}readInverseCoefficients(e,t){const{inverseCoeffX:n,inverseCoeffY:r}=t;if(null==n||!n.length||null==r||!r.length||n.length!==r.length)return null;const s=[];for(let e=0;e<n.length;e++)s.push(n[e]),s.push(r[e]);return s}writeInverseCoefficients(e,t,n){const r=[],s=[];for(let t=0;t<(null==e?void 0:e.length);t++)t%2==0?r.push(e[t]):s.push(e[t]);t.inverseCoeffX=r,t.inverseCoeffY=s}get affectsPixelSize(){return this.polynomialOrder>0}forwardTransform(e){if("point"===e.type){const t=m(this.forwardCoefficients,e,this.polynomialOrder);return new u.Z({x:t.x,y:t.y,spatialReference:e.spatialReference})}return h(this.forwardCoefficients,e,this.polynomialOrder)}inverseTransform(e){if("point"===e.type){const t=m(this.inverseCoefficients,e,this.polynomialOrder);return new u.Z({x:t.x,y:t.y,spatialReference:e.spatialReference})}return h(this.inverseCoefficients,e,this.polynomialOrder)}};(0,r._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"polynomialOrder",void 0),(0,r._)([(0,s.Cb)()],d.prototype,"forwardCoefficients",void 0),(0,r._)([(0,o.r)("forwardCoefficients",["coeffX","coeffY"])],d.prototype,"readForwardCoefficients",null),(0,r._)([(0,l.c)("forwardCoefficients")],d.prototype,"writeForwardCoefficients",null),(0,r._)([(0,s.Cb)({json:{write:!0}})],d.prototype,"inverseCoefficients",null),(0,r._)([(0,o.r)("inverseCoefficients",["inverseCoeffX","inverseCoeffY"])],d.prototype,"readInverseCoefficients",null),(0,r._)([(0,l.c)("inverseCoefficients")],d.prototype,"writeInverseCoefficients",null),(0,r._)([(0,s.Cb)()],d.prototype,"affectsPixelSize",null),(0,r._)([(0,i.J)({PolynomialXform:"polynomial"})],d.prototype,"type",void 0),d=(0,r._)([(0,a.j)("esri.layers.support.rasterTransforms.PolynomialTransform")],d);const p=d},87521:(e,t,n)=>{n.d(t,{j:()=>h,c:()=>d});var r=n(29680),s=n(43697),i=(n(92604),n(75215),n(67676),n(80442),n(37697),n(36030)),o=n(52011),a=n(48700);let l=class extends a.Z{constructor(){super(...arguments),this.type="identity"}};(0,s._)([(0,i.J)({IdentityXform:"identity"})],l.prototype,"type",void 0),l=(0,s._)([(0,o.j)("esri.layers.support.rasterTransforms.IdentityTransform")],l);const c=l;var u=n(87390);const f={GCSShiftXform:r.Z,IdentityXform:c,PolynomialXform:u.Z},m=Object.keys(f);function h(e){const t=null==e?void 0:e.type;return!e||m.includes(t)}function d(e){if(!(null==e?void 0:e.type))return null;const t=f[null==e?void 0:e.type];if(t){const n=new t;return n.read(e),n}return null}},3172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var r=n(68773),s=n(40330),i=n(20102),o=n(80442),a=n(22974),l=n(70586),c=n(95330),u=n(17452),f=n(71058),m=n(85958);async function h(e,t){var a;const m=(0,u.HK)(e),x=(0,u.jc)(e);x||m||(e=(0,u.Fv)(e));const b={url:e,requestOptions:{...(0,l.Wg)(t)}};let M=(0,u.oh)(e);if(M){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let n,r;try{r=await e.before(t)}catch(e){n=S("request:interceptor",e,t)}if((r instanceof Error||r instanceof i.Z)&&(n=S("request:interceptor",r,t)),n)throw e.error&&e.error(n),n;return r}}(M,b);if(null!=e)return{data:e,getHeader:w,requestOptions:b.requestOptions,url:b.url};M.after||M.error||(M=null)}if(e=b.url,"image"===(t=b.requestOptions).responseType){if((0,o.Z)("host-webworker")||(0,o.Z)("host-node"))throw S("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),b)}else if(m)throw S("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),b);if("head"===t.method){if(t.body)throw S("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),b);if(m||x)throw S("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),b)}if(await async function(){(0,o.Z)("host-webworker")?d||(d=await Promise.all([n.e(102),n.e(9884)]).then(n.bind(n,29884))):h._abortableFetch||(h._abortableFetch=globalThis.fetch.bind(globalThis))}(),d)return d.execute(e,t);const g=new AbortController;(0,c.fu)(t,(()=>g.abort()));const v={controller:g,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:M,params:b,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},k=await async function(e){var t,n;let i,o;await async function(e){const t=e.params.url,n=e.params.requestOptions,i=e.controller.signal,o=n.body;let a=null,l=null,u=null;if(y&&"HTMLFormElement"in globalThis&&(o instanceof FormData?a=o:o instanceof HTMLFormElement&&(l=o,a=new FormData(l))),"string"==typeof o&&(u=o),e.fetchOptions={cache:n.cacheBust&&!h._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:i},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===n.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||n.query&&n.query.token||a&&a.get&&a.get("token")||l&&l.elements.token),!e.hasToken&&r.Z.apiKey&&(0,f.r)(t)&&(n.query||(n.query={}),n.query.token=r.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!O(t)&&!(0,c.Hc)(i)){let r;"immediate"===n.authMode?(await q(),r=await s.id.getCredential(t,{signal:i}),e.credential=r):"no-prompt"===n.authMode?(await q(),r=await s.id.getCredential(t,{prompt:!1,signal:i}).catch((()=>{})),e.credential=r):s.id&&(r=s.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[i,o]=await C(e)}while(!await T(e,i,o))}catch(t){const n=S("request:server",t,e.params,i);throw n.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(n),n}const a=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)&&!e.hasToken&&!e.credentialToken&&null!=(t=o)&&null!=(n=t.user)&&n.username&&!(0,u.kl)(a)){const e=(0,u.P$)(a,!0);e&&p.trustedServers.push(e)}const l=e.credential;if(l&&s.id){const e=s.id.findServerInfo(l.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=s.id.findCredential(t,l.userId);e&&-1===s.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:o,getHeader:i?e=>i.headers.get(e):w,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(v);return null==(a=M)||null==a.after||a.after(k),k}let d;const p=r.Z.request,y="FormData"in globalThis,x=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],M=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],w=()=>null,g=Symbol();function v(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||h._corsServers.includes(t)||(0,u.kl)(t)}function S(e,t,n,r){let s="Error";const o={url:n.url,requestOptions:n.requestOptions,getHeader:w,ssl:!1};if(t instanceof i.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=n.url,t.details.requestOptions=n.requestOptions):t.details=o,t;if(t){const e=r&&(e=>r.headers.get(e)),n=r&&r.status,i=t.message;i&&(s=i),e&&(o.getHeader=e),o.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||n||0,o.subCode=t.subcode,o.messageCode=t.messageCode,"string"==typeof t.details?o.messages=[t.details]:o.messages=t.details,o.raw=g in t?t[g]:t}return(0,c.D_)(t)?(0,c.zE)():new i.Z(e,s,o)}async function q(){s.id||await Promise.all([n.e(280),n.e(2785),n.e(102),n.e(8536)]).then(n.bind(n,85976))}function O(e){return M.some((t=>t.test(e)))}async function C(e){let t=e.params.url;const n=e.params.requestOptions,r=e.fetchOptions,i=(0,u.jc)(t)||(0,u.HK)(t),a=n.responseType||"json",l=i?0:null!=n.timeout?n.timeout:p.timeout;let f=!1;if(!i){e.useSSL&&(t=(0,u.hO)(t)),n.cacheBust&&"default"===r.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let i={...n.query};e.credentialToken&&(i.token=e.credentialToken);let a=(0,u.B7)(i);(0,o.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let c;f="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||l>p.maxUrlLength;const m=n.useProxy||!!(0,u.ed)(t);if(m){const e=(0,u.b7)(t);c=e.path,!f&&c.length+1+l>p.maxUrlLength&&(f=!0),e.query&&(i={...e.query,...i})}if("HEAD"===r.method&&(f||m)){if(f){if(l>p.maxUrlLength)throw S("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw S("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(m)throw S("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(f?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?t=(0,u.fl)(t,i):(r.body=(0,u.B7)(i),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,i),m&&(e.useProxy=!0,t=`${c}?${t}`),i.token&&y&&r.body instanceof FormData){const e=r.body;e.set?e.set("token",i.token):e.append("token",i.token)}if(n.hasOwnProperty("withCredentials"))e.withCredentials=n.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(s.id){const n=s.id.findServerInfo(t);n&&n.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include")}let m,d,x=0,b=!1;l>0&&(x=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===n.responseType)d=r,d.url=t;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||f||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(n.headers)||!i&&!e.useProxy&&p.proxyUrl&&!v(t)){if(m=await h._abortableFetch(t,r),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!h._corsServers.includes(t)&&h._corsServers.push(t)}(t),"native"===n.responseType)d=m;else if("HEAD"!==r.method)if(m.ok){switch(a){case"array-buffer":d=await m.arrayBuffer();break;case"blob":case"image":d=await m.blob();break;default:d=await m.text()}if(x&&(clearTimeout(x),x=0),"json"===a||"xml"===a||"document"===a)if(d)switch(a){case"json":d=JSON.parse(d);break;case"xml":d=k(d,"application/xml");break;case"document":d=k(d,"text/html")}else d=null;if(d){if("array-buffer"===a||"blob"===a){const e=m.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&d["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(d).json();e.error&&(d=e)}catch{}}"image"===a&&d instanceof Blob&&(d=await E(URL.createObjectURL(d),e,!0))}}else d=await m.text()}else d=await E(t,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!m&&r instanceof TypeError&&p.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||e.useProxy||v(t))throw r;e.redoRequest=!0,(0,u.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,u.P$)(t)})}finally{x&&clearTimeout(x)}return[m,d]}function k(e,t){let n;try{n=(new DOMParser).parseFromString(e,t)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function T(e,t,n){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let i,o,a,l;if(!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[g]=n,i;null!=n&&n.error&&(i=n.error),i&&(o=Number(i.code),a=i.hasOwnProperty("subcode")?Number(i.subcode):null,l=i.messageCode,l=l&&l.toUpperCase());const c=r.authMode;if(403===o&&(4===a||i.message&&i.message.toLowerCase().indexOf("ssl")>-1&&-1===i.message.toLowerCase().indexOf("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===o)&&-1!==x.indexOf(o)&&!O(e.params.url)&&(403!==o||-1===b.indexOf(l)&&(null==a||2===a&&e.credentialToken))){await q();try{const t=await s.id.getCredential(e.params.url,{error:S("request:server",i,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===c)return e.credential=null,e.credentialToken=null,!1;i=t}}if(i)throw i;return!0}function E(e,t,n=!1){const r=t.controller.signal,s=new Image;return t.withCredentials?s.crossOrigin="use-credentials":s.crossOrigin="anonymous",s.alt="",s.src=e,(0,m.f)(s,e,n,r)}h._abortableFetch=null,h._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,n)=>{n.d(t,{r:()=>i});var r=n(17452);const s=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function i(e){const t=(0,r.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!s.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,n)=>{n.d(t,{f:()=>o});var r=n(80442),s=n(70586),i=n(95330);function o(e,t,n=!1,o){return new Promise(((l,c)=>{if((0,i.Hc)(o))return void c(a());let u=()=>{h(),c(new Error(`Unable to load ${t}`))},f=()=>{const t=e;h(),l(t)},m=()=>{if(!e)return;const t=e;h(),t.src="",c(a())};const h=()=>{(0,r.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",f)),u=null,f=null,e=null,(0,s.pC)(o)&&o.removeEventListener("abort",m),m=null,n&&URL.revokeObjectURL(t)};(0,s.pC)(o)&&o.addEventListener("abort",m),(0,r.Z)("esri-image-decode")?e.decode().then(f,u):(e.addEventListener("error",u),e.addEventListener("load",f))}))}function a(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[635],{84552:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),n=i(96674),l=i(35463),o=i(5600),a=(i(67676),i(80442),i(75215),i(52011)),u=i(78981);let p=s=class extends n.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,l.rJ)(this.value,this.unit,"milliseconds")}clone(){return new s({value:this.value,unit:this.unit})}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),(0,r._)([(0,o.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],p.prototype,"unit",void 0),p=s=(0,r._)([(0,a.j)("esri.TimeInterval")],p);const d=p},69637:(e,t,i)=>{i.d(t,{b:()=>S});var s,r=i(43697),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),o=i(20102),a=i(96674),u=i(70586),p=i(78286),d=i(57520),c=i(66577),y=i(92835),m=i(35454),f=i(22974),v=i(57444);const h=new m.Xn({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),w=new m.Xn({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let b=s=class extends a.wq{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:i,spatialRelationship:s,timeExtent:r,objectIds:n,units:l,distance:o}=this;return new v.Z({geometry:(0,f.d9)(i),objectIds:(0,f.d9)(n),spatialRelationship:s,timeExtent:(0,f.d9)(r),where:t,units:l,distance:o,...e})}clone(){const{where:e,geometry:t,spatialRelationship:i,timeExtent:r,objectIds:n,units:l,distance:o}=this;return new s({geometry:(0,f.d9)(t),objectIds:(0,f.d9)(n),spatialRelationship:i,timeExtent:(0,f.d9)(r),where:e,units:l,distance:o})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],b.prototype,"where",void 0),(0,r._)([(0,n.Cb)({types:c.qM,json:{write:!0}})],b.prototype,"geometry",void 0),(0,r._)([(0,n.Cb)({type:h.apiValues,json:{name:"spatialRel",read:{reader:h.read},write:{allowNull:!1,writer:h.write,overridePolicy(){return{enabled:(0,u.pC)(this.geometry)}}}}})],b.prototype,"spatialRelationship",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],b.prototype,"distance",void 0),(0,r._)([(0,n.Cb)({type:[Number],json:{write:!0}})],b.prototype,"objectIds",void 0),(0,r._)([(0,n.Cb)({type:w.apiValues,json:{read:w.read,write:{writer:w.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],b.prototype,"units",void 0),(0,r._)([(0,n.Cb)({type:y.Z,json:{write:!0}})],b.prototype,"timeExtent",void 0),b=s=(0,r._)([(0,l.j)("esri.layers.support.FeatureFilter")],b);const g=b;var x;let _=x=class extends a.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const i=super.write(e,t);if(null!=t&&t.origin){if(i.filter){const e=Object.keys(i.filter);var s;if(e.length>1||"where"!==e[0])return null==(s=t.messages)||s.push(new o.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}var r;if("showExcludedLabels"in i)return null==(r=t.messages)||r.push(new o.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new x({filter:(0,u.pC)(this.filter)&&this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,r._)([(0,n.Cb)({type:g,json:{write:{allowNull:!0,writer(e,t,i,s){const r=null==e?void 0:e.write({},s);r&&0!==Object.keys(r).length?(0,p.RB)(i,r,t):(0,p.RB)(i,null,t)}}}})],_.prototype,"filter",void 0),(0,r._)([(0,n.Cb)({json:{write:!0,origins:{"web-map":{read:{reader:d.ij},write:{writer:d.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}}}}})],_.prototype,"includedEffect",void 0),(0,r._)([(0,n.Cb)({json:{write:!0,origins:{"web-map":{read:{reader:d.ij},write:{writer:d.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}}}}})],_.prototype,"excludedEffect",void 0),(0,r._)([(0,n.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":{name:"showExcludedLabels",default:!0}}}})],_.prototype,"excludedLabelsVisible",void 0),_=x=(0,r._)([(0,l.j)("esri.layers.support.FeatureEffect")],_);const j=_,S=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,r._)([(0,n.Cb)({type:j,json:{origins:{"web-map":{write:{allowNull:!0}}}}})],t.prototype,"featureEffect",void 0),t=(0,r._)([(0,l.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},28294:(e,t,i)=>{i.d(t,{n:()=>c});var s=i(43697),r=i(92835),n=i(84552),l=i(5600),o=(i(67676),i(80442),i(75215),i(71715)),a=i(52011),u=i(30547),p=i(35671),d=i(78981);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const s=i.timeOffset,r=d.v.fromJSON(i.timeOffsetUnits);return s&&r?new n.Z({value:s,unit:r}):null}set timeInfo(e){(0,p.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,s._)([(0,l.Cb)({type:r.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,s._)([(0,l.Cb)({type:n.Z})],t.prototype,"timeOffset",void 0),(0,s._)([(0,o.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,s._)([(0,l.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,s._)([(0,l.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,s._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},61960:(e,t,i)=>{i.d(t,{Z:()=>a});var s=i(43697),r=i(96674),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011));let o=class extends r.wq{constructor(){super(...arguments),this.type=null}};(0,s._)([(0,n.Cb)({type:["selection","cluster"],readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,l.j)("esri.layers.support.FeatureReduction")],o);const a=o},85857:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011)),o=i(61960);let a=s=class extends o.Z{constructor(e){super(e),this.type="selection"}clone(){return new s}};(0,r._)([(0,n.Cb)({type:["selection"]})],a.prototype,"type",void 0),a=s=(0,r._)([(0,l.j)("esri.layers.support.FeatureReductionSelection")],a);const u=a},30547:(e,t,i)=>{i.d(t,{Z:()=>b});var s,r=i(43697),n=i(92835),l=i(84552),o=i(96674),a=i(22974),u=i(70586),p=i(5600),d=(i(75215),i(71715)),c=i(52011),y=i(30556);i(67676),i(80442);let m=s=class extends o.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new s({respectsDaylightSaving:e,timezone:t})}};(0,r._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"respectsDaylightSaving",void 0),(0,r._)([(0,d.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],m.prototype,"readRespectsDaylightSaving",null),(0,r._)([(0,p.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],m.prototype,"timezone",void 0),m=s=(0,r._)([(0,c.j)("esri.layers.support.TimeReference")],m);const f=m;var v,h=i(78981);let w=v=class extends o.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),s=new Date(t.timeExtent[1]);return new n.Z({start:i,end:s})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new l.Z({value:t.timeInterval,unit:h.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new l.Z({value:t.defaultTimeInterval,unit:h.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const i=e.toJSON();t.timeInterval=i.value,t.timeIntervalUnits=i.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:i,interval:s,startField:r,timeReference:n,fullTimeExtent:l,trackIdField:o,useTime:u}=this;return new v({cumulative:e,endField:t,hasLiveData:i,interval:s,startField:r,timeReference:(0,a.d9)(n),fullTimeExtent:(0,a.d9)(l),trackIdField:o,useTime:u})}};(0,r._)([(0,p.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],w.prototype,"cumulative",void 0),(0,r._)([(0,p.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],w.prototype,"endField",void 0),(0,r._)([(0,p.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],w.prototype,"fullTimeExtent",void 0),(0,r._)([(0,d.r)("fullTimeExtent",["timeExtent"])],w.prototype,"readFullTimeExtent",null),(0,r._)([(0,y.c)("fullTimeExtent")],w.prototype,"writeFullTimeExtent",null),(0,r._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],w.prototype,"hasLiveData",void 0),(0,r._)([(0,p.Cb)({type:l.Z,json:{write:{enabled:!0,allowNull:!0}}})],w.prototype,"interval",void 0),(0,r._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],w.prototype,"readInterval",null),(0,r._)([(0,y.c)("interval")],w.prototype,"writeInterval",null),(0,r._)([(0,p.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],w.prototype,"startField",void 0),(0,r._)([(0,p.Cb)({type:f,json:{write:{enabled:!0,allowNull:!0}}})],w.prototype,"timeReference",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],w.prototype,"trackIdField",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],w.prototype,"useTime",void 0),w=v=(0,r._)([(0,c.j)("esri.layers.support.TimeInfo")],w);const b=w},55785:(e,t,i)=>{i.d(t,{d:()=>S});var s,r=i(61960),n=i(43697),l=i(51773),o=i(78223),a=i(96674),u=i(22974),p=i(62357),d=i(5600),c=(i(75215),i(52011));i(67676),i(80442);let y=s=class extends a.wq{constructor(){super(...arguments),this.statisticType=null,this.onStatisticField=null,this.onStatisticValueExpression=null}clone(){return new s({statisticType:this.statisticType,onStatisticField:this.onStatisticField,onStatisticValueExpression:this.onStatisticValueExpression})}};(0,n._)([(0,d.Cb)({type:String,json:{write:!0}})],y.prototype,"statisticType",void 0),(0,n._)([(0,d.Cb)({type:String,json:{write:!0}})],y.prototype,"onStatisticField",void 0),(0,n._)([(0,d.Cb)({type:String,json:{write:!0}})],y.prototype,"onStatisticValueExpression",void 0),y=s=(0,n._)([(0,c.j)("esri.layers.support.OutStatistic")],y);const m=y;var f;let v=f=class extends a.wq{constructor(){super(...arguments),this.name=null}clone(){return new f({name:this.name,outStatistic:this.outStatistic.clone()})}};(0,n._)([(0,d.Cb)({type:String,json:{write:!0}})],v.prototype,"name",void 0),(0,n._)([(0,d.Cb)({type:m,json:{write:!0}})],v.prototype,"outStatistic",void 0),v=f=(0,n._)([(0,c.j)("esri.layers.support.AggregateField")],v);const h=v;var w,b=i(21506),g=i(2319);let x=w=class extends a.wq{constructor(e){super(e),this.type="cluster",this.clusterRadius=(0,p.t_)("80px"),this.clusterMinSize=(0,p.t_)("12px"),this.clusterMaxSize=(0,p.t_)("50px"),this.popupEnabled=!0,this.popupTemplate=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=null}clone(){return new w({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:(0,u.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,fields:(0,u.d9)(this.fields),popupEnabled:this.popupEnabled,popupTemplate:(0,u.d9)(this.popupTemplate)})}};(0,n._)([(0,d.Cb)({type:["cluster"],readOnly:!0,json:{write:!0}})],x.prototype,"type",void 0),(0,n._)([(0,d.Cb)({type:Number,cast:e=>"auto"===e?e:(0,p.t_)(e),json:{write:!0}})],x.prototype,"clusterRadius",void 0),(0,n._)([(0,d.Cb)({type:Number,cast:p.t_,json:{write:!0}})],x.prototype,"clusterMinSize",void 0),(0,n._)([(0,d.Cb)({type:Number,cast:p.t_,json:{write:!0}})],x.prototype,"clusterMaxSize",void 0),(0,n._)([(0,d.Cb)(b.C_)],x.prototype,"popupEnabled",void 0),(0,n._)([(0,d.Cb)({type:l.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],x.prototype,"popupTemplate",void 0),(0,n._)([(0,d.Cb)({types:o.AH})],x.prototype,"symbol",void 0),(0,n._)([(0,d.Cb)({type:[g.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],x.prototype,"labelingInfo",void 0),(0,n._)([(0,d.Cb)(b.iR)],x.prototype,"labelsVisible",void 0),(0,n._)([(0,d.Cb)({type:[h],json:{write:!0}})],x.prototype,"fields",void 0),x=w=(0,n._)([(0,c.j)("esri.layers.support.FeatureReductionCluster")],x);const _=x;var j=i(85857);const S={types:{key:"type",base:r.Z,typeMap:{selection:j.Z,cluster:_}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:{key:"type",base:r.Z,typeMap:{selection:_}}},"web-scene":{types:{key:"type",base:r.Z,typeMap:{selection:j.Z}}}}}}},53518:(e,t,i)=>{i.d(t,{v:()=>a});var s=i(92604),r=i(1231),n=i(99514),l=i(35671);const o=s.Z.getLogger("esri.layers.support.fieldProperties");function a(){return{fields:{type:[r.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new n.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e)this.fieldsIndex.has(t)||o.error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,l.Q0)(this.fieldsIndex,e)}}}}},30707:(e,t,i)=>{i.d(t,{r:()=>n});var s=i(2319);const r=/\[([^\[\]]+)\]/gi;function n(e,t,i){return e?e.map((e=>{const n=new s.Z;if(n.read(e,i),n.labelExpression){const e=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;n.labelExpression=n.labelExpression.replace(r,((t,i)=>`[${function(e,t){if(!t)return e;const i=e.toLowerCase();for(let e=0;e<t.length;e++){const s=t[e].name;if(s.toLowerCase()===i)return s}return e}(i,e)}]`))}return n})):null}},78981:(e,t,i)=>{i.d(t,{v:()=>s});const s=(0,i(35454).wY)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[966,5732],{5732:(e,t,n)=>{n.d(t,{a:()=>s,c:()=>i,g:()=>r});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},14808:(e,t,n)=>{n.d(t,{lt:()=>u,WU:()=>l,Qc:()=>d});var i=n(19153),r=n(70171);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e){e||(e=(0,r.Kd)());let t=e in s;if(!t){const n=e.split("-");n.length>1&&n[0]in s&&(e=n[0],t=!0),t||(e="en")}const[n,i,o="#,##0.###"]=s[e];return{decimal:n,group:i,pattern:o}}function l(e,t){const n=o((t={...t}).locale);t.customs=n;const i=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const i=(n=n||{}).customs.group,r=n.customs.decimal,s=t.split(";"),o=s[0];if(-1!==(t=s[e<0?1:0]||"-"+o).indexOf("%"))e*=100;else if(-1!==t.indexOf("‰"))e*=1e3;else{if(-1!==t.indexOf("¤"))throw new Error("currency notation not supported");if(-1!==t.indexOf("E"))throw new Error("exponential notation not supported")}const l=a,u=o.match(l);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(l,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const i=t.split("."),r="string"==typeof n.places&&n.places.indexOf(",");let s=n.places;r?s=n.places.substring(r+1):s>=0||(s=(i[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),l=o[1]||"";if(i[1]||n.places){r&&(n.places=n.places.substring(0,r));const e=void 0!==n.places?n.places:i[1]&&i[1].lastIndexOf("0")+1;e>l.length&&(o[1]=l.padEnd(Number(e),"0")),s<l.length&&(o[1]=l.substr(0,Number(s)))}else o[1]&&o.pop();const a=i[0].replace(",","");let u=a.indexOf("0");-1!==u&&(u=a.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),-1===a.indexOf("#")&&(o[0]=o[0].substr(o[0].length-u)));let d,c,f=i[0].lastIndexOf(",");if(-1!==f){d=i[0].length-f-1;const e=i[0].substr(0,f);f=e.lastIndexOf(","),-1!==f&&(c=e.length-f-1)}const p=[];for(let e=o[0];e;){const t=e.length-d;p.push(t>0?e.substr(t):e),e=t>0?e.slice(0,t):"",c&&(d=c,c=void 0)}return o[0]=p.reverse().join(n.group||","),o.join(n.decimal||".")}(e,u[0],{decimal:r,group:i,places:n.places,round:n.round}))}(e,i,t)}const a=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,r=t.group,s=t.decimal;let l=1;if(-1!==n.indexOf("%"))l/=100;else if(-1!==n.indexOf("‰"))l/=1e3;else if(-1!==n.indexOf("¤"))throw new Error("currency notation not supported");const u=n.split(";");1===u.length&&u.push("-"+u[0]);const d=f(u,(function(t){return(t="(?:"+(0,i.Qs)(t,".")+")").replace(a,(function(t){const n={signed:!1,separator:e.strict?r:[r,""],fractional:e.fractional,decimal:s,exponent:!1},i=t.split(".");let o=e.places;1===i.length&&1!==l&&(i[1]="###"),1===i.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?i[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&o<i[1].length&&(o+=","+i[1].length),n.places=o);const a=i[0].split(",");return a.length>1&&(n.groupSize=a.pop().length,a.length>1&&(n.groupSize2=a.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!/^0/.test(String(e.places))||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=c(e),n=f(e.fractional,(function(t){let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n}),!0);let i=t+n;return n&&(i="(?:(?:"+i+")|(?:"+n+"))"),i+f(e.exponent,(function(t){return t?"([eE]"+c({signed:e.eSigned})+")":""}))}(n)+")"}))}),!0);return{regexp:d.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:r,decimal:s,factor:l}}function d(e,t){const n=u(t),i=new RegExp("^"+n.regexp+"$").exec(e);if(!i)return NaN;let r=i[1];if(!i[1]){if(!i[2])return NaN;r=i[2],n.factor*=-1}return r=r.replace(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(r)*n.factor}function c(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",f(e.signed,(function(e){return e?"[-+]":""}),!0)+f(e.separator,(function(t){if(!t)return"(?:\\d+)";" "===(t=(0,i.Qs)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,r=e.groupSize2;if(r){const e="(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+t+"]\\d{"+r+"})*["+t+"]\\d{"+n+"})";return n-r>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"}),!0)}const f=function(e,t,n){if(!(e instanceof Array))return t(e);const i=[];for(let n=0;n<e.length;n++)i.push(t(e[n]));return p(i.join("|"),n)},p=function(e,t){return"("+(t?"?:":"")+e+")"}},66577:(e,t,n)=>{n.d(t,{qM:()=>d});var i=n(75215),r=n(6570),s=n(9361),o=n(65091),l=n(13473),a=n(17332),u=n(58901);n(82971),n(86973),n(33955);const d={base:s.Z,key:"type",typeMap:{extent:r.Z,multipoint:o.Z,point:l.Z,polyline:u.Z,polygon:a.Z}};(0,i.N7)(d)},60437:(e,t,n)=>{n.d(t,{Gv:()=>y,Ue:()=>r,cS:()=>f,fS:()=>m,TC:()=>o,pp:()=>l,JR:()=>p,al:()=>s,t8:()=>c,Tn:()=>d,op:()=>u,dp:()=>a});var i=n(70586);function r(e=g){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,n,i,s,o,l=r()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=s,l[5]=o,l}function o(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function a(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function u(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function d(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?c(e,y):r(y)}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function h(e){return 6===e.length}function m(e,t,n){if((0,i.Wi)(e)||(0,i.Wi)(t))return e===t;if(!h(e)||!h(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n(6570),n(24470);const y=[1/0,1/0,1/0,-1/0,-1/0,-1/0],g=[0,0,0,0,0,0];r()},33955:(e,t,n)=>{n.d(t,{im:()=>m,q9:()=>_,Ji:()=>y,YX:()=>d,aW:()=>c,wp:()=>f,oU:()=>h,l9:()=>p});var i=n(70586),r=n(6570),s=n(9361),o=n(65091),l=n(13473),a=n(17332),u=n(58901);function d(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function f(e){return void 0!==e.x&&void 0!==e.y}function p(e){return void 0!==e.paths}function h(e){return void 0!==e.rings}function m(e){return(0,i.Wi)(e)?null:e instanceof s.Z?e:f(e)?l.Z.fromJSON(e):p(e)?u.Z.fromJSON(e):h(e)?a.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):d(e)?r.Z.fromJSON(e):null}function y(e){return e?f(e)?"esriGeometryPoint":p(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":d(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:l.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:r.Z,esriGeometryMultipoint:o.Z};function _(e){return e&&g[e]||null}},86973:(e,t,n)=>{n.d(t,{Mk:()=>r,P$:()=>s});var i=n(35454);const r=(0,i.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,i.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},70171:(e,t,n)=>{var i,r,s;let o;n.d(t,{Ze:()=>p,Kd:()=>u,qe:()=>c});const l=null!=(i=null==(r=globalThis.esriConfig)?void 0:r.locale)?i:null==(s=globalThis.dojoConfig)?void 0:s.locale;function a(){var e,t;return null!=(e=null!=l?l:null==(t=globalThis.navigator)?void 0:t.language)?e:"en"}function u(){return void 0===o&&(o=a()),o}const d=[];function c(e){return d.push(e),{remove(){d.splice(d.indexOf(e),1)}}}const f=[];function p(e){return f.push(e),{remove(){d.splice(f.indexOf(e),1)}}}null==globalThis.addEventListener||globalThis.addEventListener("languagechange",(function(){const e=null!=undefined?undefined:a();o!==e&&(o=e,[...f].forEach((t=>{t.call(null,e)})),[...d].forEach((t=>{t.call(null,e)})))}))},37549:(e,t,n)=>{n.d(t,{H:()=>o});var i=n(80442),r=n(24133);const s={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.QB(9,(0,i.Z)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((n,i)=>{e[t++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))),this._boundsToLoad.length=0)}}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3],e.search(s,n)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(e,t,n)=>{n.d(t,{Z:()=>m});var i=n(20102),r=n(32448),s=n(92604),o=n(70586),l=n(60437),a=n(24470),u=n(98732),d=n(37549),c=n(29730),f=n(70272),p=n(5428);const h={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new f.ZP(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(e.centroid||(e.centroid=(0,c.Y)(new p.Z,e.geometry,t.hasZ,t.hasM)),e.centroid)};class m{constructor(e){this.geometryInfo=e,this._boundsStore=new d.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new r.Z,this.featureAdapter=h}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){if(!this.numFeatures)return null;const e=(0,a.Ue)(a.Gv);return this._featuresById.forEach((t=>{const n=this._boundsStore.get(t.objectId);n&&(e[0]=Math.min(n[0],e[0]),e[1]=Math.min(n[1],e[1]),e[2]=Math.max(n[2],e[2]),e[3]=Math.max(n[3],e[3]))})),e}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{(0,o.pC)(t.geometry)&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t,n){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,l.JR)(n,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,n)=>{this._markedIds.has(n)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void s.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new i.Z("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let r;if(this._markedIds.add(t),n?(e.displayId=n.displayId,r=this._boundsStore.get(t),this._boundsStore.delete(t)):(0,o.pC)(this.onFeatureAdd)&&this.onFeatureAdd(e),(0,o.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);r=(0,u.$)((0,o.pC)(r)?r:(0,a.Ue)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,o.pC)(r)&&this._boundsStore.set(t,r),this._featuresById.set(t,e)}_remove(e){return(0,o.pC)(this.onFeatureRemove)&&this.onFeatureRemove(e),this._markedIds.delete(e.objectId),this._boundsStore.delete(e.objectId),this._featuresById.delete(e.objectId),e}}},27793:(e,t,n)=>{n.r(t),n.d(t,{default:()=>A,inferFieldType:()=>P,inferFields:()=>q,inferLocationInfo:()=>j}),n(66577);var i=n(3172),r=n(20102),s=n(92604),o=n(14808),l=n(95330),a=n(17452),u=n(90411),d=n(37455),c=n(8744),f=n(40488),p=n(70272),h=n(5428),m=n(57191),y=n(37427),g=n(7673);const _=/^\s*"([\S\s]*)"\s*$/,b=/""/g,F=[","," ",";","|","\t"];function*I(e,t,n){let i=0;for(;i<=e.length;){const r=e.indexOf(t,i),s=e.substring(i,r>-1?r:void 0);i+=s.length+t.length,n&&!s.trim()||(yield s)}}function S(e){const t=e.includes("\r\n")?"\r\n":"\n";return I(e,t,!0)}function v(e,t){return I(e,t,!1)}function x(e){const t=e.trim();let n=0,i="";for(const e of F){const r=t.split(e).length;r>n&&(n=r,i=e)}return""===i?null:i}function*w(e,t,n,i=(()=>Object.create(null))){let r="",s="",o=0,l=i(),a=0;e:for(const u of e){const e=v(u,n);for(const u of e)if(r+=s+u,s="",o+=N(u),o%2==0){if(o>0){const e=_.exec(r);if(!e){l=i(),a=0,r="",o=0;continue e}l[t[a]]=e[1].replace(b,'"'),a++}else l[t[a]]=r,a++;r="",o=0}else s=n;0===o?(yield l,l=i(),a=0):s="\n"}}function N(e){let t=0,n=0;for(n=e.indexOf('"',n);n>=0;)t++,n=e.indexOf('"',n+1);return t}var T=n(25278),E=n(99514),C=n(35671),O=n(82971);const M=(0,T.bU)("esriGeometryPoint"),Z=["csv"],D=[0,0];class B{constructor(e,t){this.x=e,this.y=t}}class A{constructor(){this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){var e;null==(e=this._queryEngine)||e.destroy(),this._queryEngine=null}async load(e,t={}){var n;this.loadOptions=e;const[i]=await Promise.all([this._fetch(t.signal),this._checkProjection(null==e||null==(n=e.parsingOptions)?void 0:n.spatialReference)]),s=function(e,t){const n=t.parsingOptions||{},i={delimiter:n.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:n.latitudeField,longitudeFieldName:n.longitudeField}},s=S(e);let o=s.next().value;if(!o)throw new r.Z("csv-layer:empty-csv","CSV is empty",{csv:e});if(o=o.trim(),!n.delimiter){const e=x(o);if(!e)throw new r.Z("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV");i.delimiter=e}const l=o.split(i.delimiter).filter((e=>!!e)),u=i.layerDefinition={name:(0,a.vt)(t.url,Z)||"csv",drawingInfo:M,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:n.timeInfo,extent:{xmin:Number.POSITIVE_INFINITY,ymin:Number.POSITIVE_INFINITY,xmax:Number.NEGATIVE_INFINITY,ymax:Number.NEGATIVE_INFINITY,spatialReference:n.spatialReference||{wkid:102100}}};if(!n.latitudeField||!n.longitudeField){const e=j(l);if(!n.longitudeField&&!e.longitudeFieldName||!n.latitudeField&&!e.latitudeFieldName)throw new r.Z("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file");i.locationInfo={longitudeFieldName:n.longitudeField||e.longitudeFieldName,latitudeFieldName:n.latitudeField||e.latitudeFieldName}}const d=q(s,i.delimiter,l,i.locationInfo);if(n.fields&&n.fields.length){const e=new Map;for(const t of n.fields)e.set(t.name.toLowerCase(),t);for(const t of d){const n=e.get(t.name.toLowerCase());if(n){const e=t.name;Object.assign(t,n),t.name=e}}}if(u.fields=d,!u.fields.some((e=>"esriFieldTypeOID"===e.type&&(u.objectIdField=e.name,!0)))){const e={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};u.objectIdField=e.name,u.fields.unshift(e)}if(u.timeInfo){const e=new E.Z(u.fields),t=u.timeInfo;if(t.startTimeField){const n=e.get(t.startTimeField);n?(t.startTimeField=n.name,n.type="esriFieldTypeDate"):t.startTimeField=null}if(t.endTimeField){const n=e.get(t.endTimeField);n?(t.endTimeField=n.name,n.type="esriFieldTypeDate"):t.endTimeField=null}if(t.trackIdField){const n=e.get(t.trackIdField);t.trackIdField=n?n.name:null}t.startTimeField||t.endTimeField||(u.timeInfo=null)}return i}(i,e);this.locationInfo=s.locationInfo,this.delimiter=s.delimiter,this._queryEngine=this._createQueryEngine(s);const o=await this._createFeatures(i);if(this._queryEngine.featureStore.addMany(o),s.layerDefinition.extent=this._queryEngine.fullExtent,s.layerDefinition.timeInfo){const{start:e,end:t}=this._queryEngine.timeExtent;s.layerDefinition.timeInfo.timeExtent=[e,t]}return s}async applyEdits(){throw new r.Z("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForSnapping(e,t.signal)}async refresh(e){var t;return this.loadOptions.customParameters=e,null==(t=this._snapshotTask)||t.abort(),this._snapshotTask=(0,l.vr)(this._snapshotFeatures),this._snapshotTask.promise.then((e=>{this._queryEngine.featureStore.clear(),e&&this._queryEngine.featureStore.addMany(e)}),(e=>{this._queryEngine.featureStore.clear(),(0,l.D_)(e)||s.Z.getLogger("esri.layers.CSVLayer").error(new r.Z("csv-layer:refresh","An error occurred during refresh",{error:e}))})),await this._waitSnapshotComplete(),{extent:this._queryEngine.fullExtent,timeExtent:this._queryEngine.timeExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:n}=this.loadOptions;if(!t)throw new r.Z("csv-layer:invalid-source","url not defined");const s=(0,a.mN)(t);return(await(0,i.default)(s.path,{query:{...s.query,...n},responseType:"text",signal:e})).data}_createQueryEngine(e){const{objectIdField:t,fields:n,extent:i,timeInfo:r}=e.layerDefinition,s=new m.Z({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1});return new g.Z({fields:n,geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:r,objectIdField:t,spatialReference:i.spatialReference||{wkid:4326},cacheSpatialQueries:!0,featureStore:s})}async _createFeatures(e){const{latitudeFieldName:t,longitudeFieldName:n}=this.locationInfo,{objectIdField:i,fieldsIndex:r,spatialReference:s}=this._queryEngine;let o=[];const l=[],a=r.fields.filter((e=>e.name!==i)).map((e=>e.name));let m=0;const y=S(e);y.next();const g={};for(const e of r.fields)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,C.os)(e);void 0!==t&&(g[e.name]=t)}const _=w(y,a,this.delimiter,(0,T.Dm)(g,i));for(const e of _){const s=this._parseCoordinateValue(e[t]),a=this._parseCoordinateValue(e[n]);if(null!=a&&null!=s&&!isNaN(s)&&!isNaN(a)){e[t]=s,e[n]=a;for(const i in e)if(i!==t&&i!==n)if(r.isDateField(i)){const t=new Date(e[i]);e[i]=R(t,e[i])?t.getTime():null}else if(r.isNumericField(i)){const t=$(e[i]);isNaN(t)?e[i]=null:e[i]=t}e[i]=m,m++,o.push(new B(a,s)),l.push(e)}}if(!(0,c.fS)({wkid:4326},s))if((0,c.sS)(s))for(const e of o)[e.x,e.y]=(0,f.hG)(e.x,e.y,D);else o=(0,u.oj)(d.N,o,O.Z.WGS84,s,null);const b=[];for(let e=0;e<o.length;e++){const{x:t,y:n}=o[e],r=l[e];r[i]=e+1,b.push(new p.ZP(new h.Z([],[t,n]),r,null,r[i]))}return b}_parseCoordinateValue(e){if(null==e||""===e)return null;let t=$(e);return(isNaN(t)||Math.abs(t)>181)&&(t=parseFloat(e)),t}async _checkProjection(e){try{await(0,y._W)(c.Zn,e)}catch{throw new r.Z("csv-layer:projection-not-supported","Projection not supported")}}}const L=["lat","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point-y"],G=["lon","lng","long","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point-x"];function j(e){const t=e.map((e=>e.toLowerCase()));return{longitudeFieldName:e[t.indexOf(G.find((e=>t.includes(e))))],latitudeFieldName:e[t.indexOf(L.find((e=>t.includes(e))))]}}function q(e,t,n,i){const r=[],s=w(e,n,t),o=[];for(const e of s){if(10===o.length)break;o.push(e)}for(const e of n)if(e===i.longitudeFieldName||e===i.latitudeFieldName)r.push({name:e,type:"esriFieldTypeDouble",alias:e});else{const t=P(o.map((t=>t[e]))),n={name:e,type:null,alias:e};switch(t){case"integer":n.type="esriFieldTypeInteger";break;case"double":n.type="esriFieldTypeDouble";break;case"date":n.type="esriFieldTypeDate",n.length=36;break;default:n.type="esriFieldTypeString",n.length=255}r.push(n)}return r}function P(e){if(!e.length)return"string";const t=/[^+-.,0-9]/;return e.map((e=>{let n=!1;if(""!==e){if(t.test(e))n=!0;else{let t=$(e);if(!isNaN(t))return/[.,]/.test(e)||!Number.isInteger(t)||t>214783647||t<-214783648?"double":"integer";if(-1===e.indexOf("E"))n=!0;else{if(t=Number(e),!isNaN(t))return"double";if(-1===e.indexOf(","))n=!0;else{if(e=e.replace(",","."),t=Number(e),!isNaN(t))return"double";n=!0}}}return n?/^[-]?\d*[.,]?\d*$/.test(e)?"string":R(new Date(e),e)?"date":"string":"string"}})).reduce(((e,t)=>void 0===e||e===t?t:"string"===e||"string"===t?"string":"double"===e||"double"===t?"double":void 0))}const k=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,V=Number.isNaN(new Date("technology 10").getTime());function R(e,t){if(!e||"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))return!1;let n=!0;if(!V&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!k.test(e[i]),i++;n=!t}}return n}const $=function(){const e=(0,o.lt)(),t=new RegExp("^"+e.regexp+"$"),n=new RegExp("["+e.group+"\\s\\xa0]","g"),i=e.factor;return function(r){const s=t.exec(r);if(e.factor=i,!s)return NaN;let o=s[1];if(!s[1]){if(!s[2])return NaN;o=s[2],e.factor*=-1}return o=o.replace(n,"").replace(e.decimal,"."),+o*e.factor}}()},25278:(e,t,n)=>{n.d(t,{MS:()=>d,Dm:()=>a,Hq:()=>u,bU:()=>l});var i=n(80442),r=n(22974),s=n(61159),o=n(58333);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.I4:"esriGeometryPolyline"===e?o.ET:o.lF}}}function a(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this.${t} = null;`;for(const t in e)n+=`this${t.includes(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const i=new Function(n);return()=>new i}catch(n){return()=>({[t]:null,...e})}}function u(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.d9)(e)}}]}function d(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:s.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}}}},99514:(e,t,n)=>{n.d(t,{Z:()=>o});var i=n(35671);function r(e){return"oid"===e.type||"esriFieldTypeOID"===e.type}function s(e){return"global-id"===e.type||"esriFieldTypeGlobalID"===e.type}class o{constructor(e){if(this.fields=e,this._fieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this.dateFields=[],this.numericFields=[],this._requiredFields=null,!e)return;const t=[];for(const o of e){const e=o&&o.name;if(e){const a=l(e);this._fieldsMap.set(e,o),this._fieldsMap.set(a,o),t.push(a),"date"===(n=o).type||"esriFieldTypeDate"===n.type?(this.dateFields.push(o),this._dateFieldsSet.add(o)):(0,i.H7)(o)&&(this._numericFieldsSet.add(o),this.numericFields.push(o)),r(o)||s(o)||(o.editable=null==o.editable||!!o.editable,o.nullable=null==o.nullable||!!o.nullable)}}var n;t.sort(),this.uid=t.join(",")}destroy(){this._fieldsMap.clear()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)r(e)||s(e)||e.nullable||void 0!==(0,i.os)(e)||this._requiredFields.push(e)}return this._requiredFields}has(e){return null!=this.get(e)}get(e){return null!=e?this._fieldsMap.get(e)||this._fieldsMap.get(l(e)):void 0}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){const t=this.get(e);if(t)return t.name}}function l(e){return e.toLowerCase().trim()}},35671:(e,t,n)=>{n.d(t,{io:()=>g,AB:()=>y,gd:()=>m,Mu:()=>F,Q0:()=>h,YN:()=>d,UF:()=>f,O5:()=>_,os:()=>I,H7:()=>M,qN:()=>Z,Pz:()=>A,Qc:()=>L,vP:()=>V});var i,r,s=n(20102),o=n(78286);(r=i||(i={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",r.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var l=n(59266);const a=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],u=["field","normalizationField"];function d(e,t){if(null!=e&&null!=t)for(const n of Array.isArray(e)?e:[e])if(c(a,n,t),"visualVariables"in n&&n.visualVariables)for(const e of n.visualVariables)c(u,e,t)}function c(e,t,n){if(e)for(const i of e){const e=(0,o.hS)(i,t),r=e&&"function"!=typeof e&&n.get(e);r&&(0,o.RB)(i,r.name,t)}}function f(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const n=t.get(e.startField),i=t.get(e.endField);e.startField=n&&n.name||null,e.endField=i&&i.name||null}else{const n=t.get(e.startTimeField),i=t.get(e.endTimeField);e.startTimeField=n&&n.name||null,e.endTimeField=i&&i.name||null}}const p=new Set;function h(e,t){return e&&t?(p.clear(),m(p,e,t),Array.from(p).sort()):[]}function m(e,t,n){var i;if(n)if(null!=t&&null!=(i=t.fields)&&i.length)if(n.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const i of n)y(e,t,i);else{if(n.includes("*"))return e.clear(),void e.add("*");for(const t of n)e.add(t)}}function y(e,t,n){if("string"==typeof n)if(t){const i=t.get(n);i&&e.add(i.name)}else e.add(n)}async function g(e,t,n){var i;if(!n)return;const{arcadeUtils:r}=await(0,l.LC)(),s=r.extractFieldNames(n,null==t||null==(i=t.fields)?void 0:i.map((e=>e.name)));for(const n of s)y(e,t,n)}function _({displayField:e,fields:t}){return e||(t&&t.length?b(t,"name-or-title")||b(t,"unique-identifier")||b(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function b(e,t){for(const n of e)if(n&&n.valueType&&n.valueType===t)return n.name;return null}async function F(e,t){const{labelingInfo:i,fieldsIndex:r}=t;i&&i.length&&await Promise.all(i.map((t=>async function(e,t,i){if(!i)return;const r=i.getLabelExpression(),o=i.where;if("arcade"===r.type)await g(e,t,r.expression);else{const n=r.expression.match(/{[^}]*}/g);n&&n.forEach((n=>{y(e,t,n.slice(1,-1))}))}await async function(e,t,i){if(i&&"1=1"!==i){const r=(await Promise.all([n.e(1534),n.e(5732)]).then(n.bind(n,41534))).WhereClause.create(i,t);if(!r.isStandardized)throw new s.Z("fieldUtils:collectFilterFields","Where clause is not standardized");m(e,t,r.fieldNames)}}(e,t,o)}(e,r,t))))}function I(e){const t=e.defaultValue;return void 0!==t&&C(e,t)?t:e.nullable?null:void 0}function S(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function v(e){return null===e||S(e)}const x="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function w(e){return null===e||x(e)}function N(e){return null!=e&&"string"==typeof e}function T(e){return null===e||N(e)}function E(){return!0}function C(e,t){let n;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":n=e.nullable?w:x;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":n=e.nullable?v:S;break;case"string":case"esriFieldTypeString":n=e.nullable?T:N;break;default:n=E}return 1===arguments.length?n:n(t)}const O=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function M(e){return null!=e&&O.has(e.type)}function Z(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var D,B;function A(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function L(e,t){return e.nullable&&null===t?null:M(e)&&!function(e,t){const n="string"==typeof e?G(e):e;return!!n&&(n.isInteger?x(t)&&t>=n.min&&t<=n.max:t>=n.min&&t<=n.max)}(e.type,Number(t))?D.OUT_OF_RANGE:C(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const n="range"in e?e.range[0]:e.minValue,r="range"in e?e.range[1]:e.maxValue;if(+t<n||+t>r)return i.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return i.INVALID_CODED_VALUE}return null}(e.domain,t):null:B.INVALID_TYPE}function G(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return j;case"esriFieldTypeInteger":case"integer":return q;case"esriFieldTypeSingle":case"single":return P;case"esriFieldTypeDouble":case"double":return k}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(D||(D={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(B||(B={}));const j={min:-32768,max:32767,isInteger:!0},q={min:-2147483648,max:2147483647,isInteger:!0},P={min:-34e37,max:12e37,isInteger:!1},k={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function V(e,t,n){switch(e){case i.INVALID_CODED_VALUE:return`Value ${n} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case i.VALUE_OUT_OF_RANGE:return`Value ${n} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case B.INVALID_TYPE:return`Value ${n} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case D.OUT_OF_RANGE:{const{min:e,max:i}=G(t.type);return`Value ${n} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${i}`}}}},98046:(e,t,n)=>{n.d(t,{Z:()=>p});var i,r=n(43697),s=n(22303),o=n(22974),l=n(5600),a=n(75215),u=n(36030),d=n(52011),c=n(899);let f=i=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new i({fromColor:(0,o.d9)(this.fromColor),toColor:(0,o.d9)(this.toColor),algorithm:this.algorithm})}};(0,r._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],f.prototype,"algorithm",void 0),(0,r._)([(0,l.Cb)({type:s.Z,json:{type:[a.z8],write:!0}})],f.prototype,"fromColor",void 0),(0,r._)([(0,l.Cb)({type:s.Z,json:{type:[a.z8],write:!0}})],f.prototype,"toColor",void 0),(0,r._)([(0,l.Cb)({type:["algorithmic"]})],f.prototype,"type",void 0),f=i=(0,r._)([(0,d.j)("esri.rest.support.AlgorithmicColorRamp")],f);const p=f},899:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(43697),r=n(96674),s=n(5600),o=(n(67676),n(80442),n(75215),n(52011));let l=class extends r.wq{constructor(e){super(e),this.type=null}};(0,i._)([(0,s.Cb)({readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,i._)([(0,o.j)("esri.rest.support.ColorRamp")],l);const a=l},1515:(e,t,n)=>{n.d(t,{Z:()=>c});var i,r=n(43697),s=n(22974),o=n(5600),l=(n(75215),n(52011)),a=n(98046),u=n(899);let d=i=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new i({colorRamps:(0,s.d9)(this.colorRamps)})}};(0,r._)([(0,o.Cb)({type:[a.Z],json:{write:!0}})],d.prototype,"colorRamps",void 0),(0,r._)([(0,o.Cb)({type:["multipart"]})],d.prototype,"type",void 0),d=i=(0,r._)([(0,l.j)("esri.rest.support.MultipartColorRamp")],d);const c=d},94593:(e,t,n)=>{n.d(t,{i:()=>l,V:()=>o});var i=n(98046),r=n(899),s=n(1515);const o={key:"type",base:r.Z,typeMap:{algorithmic:i.Z,multipart:s.Z}};function l(e){return e&&e.type?"algorithmic"===e.type?i.Z.fromJSON(e):"multipart"===e.type?s.Z.fromJSON(e):null:null}},59266:(e,t,n)=>{n.d(t,{mz:()=>d,pp:()=>u,WW:()=>l,Yi:()=>a,LC:()=>o}),n(66577);var i=n(70586),r=n(82971);let s;function o(){return s||(s=(async()=>{const e=await Promise.all([n.e(9490),n.e(6690)]).then(n.bind(n,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),s}const l=(e,t,n)=>d.create(e,t,n,null,["$feature"]),a=(e,t,n)=>d.create(e,t,n,null,["$feature","$view"]),u=(e,t,n,i)=>d.create(e,t,n,i,["$feature","$view"]);class d{constructor(e,t,n,i,r,s,o,l){this.script=e,this.evaluate=r;const a=Array.isArray(o)?o:o.fields;this.fields=a,this._syntaxTree=i,this._arcade=t,this._arcadeDictionary=n,this._arcadeFeature=s,this._spatialReference=l,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,n,s,l,a){const{arcade:u,Feature:c,Dictionary:f}=await o(),p=r.Z.fromJSON(t),h=u.parseScript(e,a),m=l.reduce(((e,t)=>({...e,[t]:null})),{});let y=null;(0,i.pC)(s)&&(y=new f(s),y.immutable=!0,m.$config=null);const g=u.scriptUsesGeometryEngine(h)&&u.enableGeometrySupport(),_=u.scriptUsesFeatureSet(h)&&u.enableFeatureSetSupport(),b=u.scriptIsAsync(h)&&u.enableAsyncSupport(),F={vars:m,spatialReference:p,useAsync:!!b},I=new f;I.immutable=!1,I.setField("scale",0);const S=u.compileScript(h,F);return await Promise.all([g,_,b]),new d(e,u,f,h,(e=>("$view"in e&&e.$view&&(I.setField("scale",e.$view.scale),e.$view=I),y&&(e.$config=y),S({vars:e,spatialReference:p}))),new c,n,p)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}},89164:(e,t,n)=>{n.d(t,{Z:()=>p});var i=n(43697),r=n(22303),s=n(35454),o=n(96674),l=n(5600),a=(n(67676),n(80442),n(75215),n(71715)),u=n(52011);const d=new s.Xn({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let c=0,f=class extends o.wq{constructor(e){super(e),this.id="sym"+c++,this.type=null,this.color=new r.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i._)([(0,l.Cb)({type:d.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:d.write}}})],f.prototype,"type",void 0),(0,i._)([(0,l.Cb)({type:r.Z,json:{write:{allowNull:!0}}})],f.prototype,"color",void 0),(0,i._)([(0,a.r)("color")],f.prototype,"readColor",null),f=(0,i._)([(0,u.j)("esri.symbols.Symbol")],f);const p=f},58333:(e,t,n)=>{n.d(t,{I4:()=>r,lF:()=>o,ET:()=>s,qP:()=>l,eG:()=>a,lj:()=>d,wW:()=>u});const i=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},d={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8062],{87344:(e,a,t)=>{t.d(a,{T:()=>n});const n={BingMapsLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(6968),t.e(3485),t.e(3749)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(9101),t.e(7284),t.e(3792),t.e(8216),t.e(223)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(9101),t.e(7284),t.e(9938)]).then(t.bind(t,45425))).default,ElevationLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(7668),t.e(3485),t.e(9151),t.e(9932),t.e(1765)]).then(t.bind(t,49932))).default,FeatureLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(9101),t.e(7284),t.e(6104)]).then(t.bind(t,67284))).default,GroupLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(6968),t.e(6401),t.e(7049)]).then(t.bind(t,63144))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(9201)]).then(t.bind(t,3723))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(3307)]).then(t.bind(t,23477))).default,ImageryLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(9101),t.e(3578),t.e(3942),t.e(176),t.e(3081),t.e(4464)]).then(t.bind(t,66984))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(411),t.e(3485),t.e(3578),t.e(9151),t.e(176),t.e(3081),t.e(7622)]).then(t.bind(t,52294))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(411),t.e(3792),t.e(8589)]).then(t.bind(t,4717))).default,KMLLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(8014)]).then(t.bind(t,42756))).default,MapImageLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(4369),t.e(5823),t.e(6204)]).then(t.bind(t,75823))).default,MapNotesLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(411),t.e(635),t.e(9101),t.e(7284),t.e(4859)]).then(t.bind(t,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(2730),t.e(7616)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(6968),t.e(3485),t.e(8659),t.e(6237)]).then(t.bind(t,66237))).default,PointCloudLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(1773),t.e(3792),t.e(9294),t.e(6726)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(755),t.e(3471),t.e(5638),t.e(4273),t.e(368),t.e(7013)]).then(t.bind(t,84593))).default,SceneLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(9101),t.e(7284),t.e(3792),t.e(8216),t.e(9254)]).then(t.bind(t,49254))).default,StreamLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(635),t.e(3667)]).then(t.bind(t,88387))).default,TileLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(3485),t.e(9151),t.e(4369),t.e(9767)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(4166)]).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(9296)]).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7668),t.e(3485),t.e(9151),t.e(4325),t.e(1785),t.e(7212)]).then(t.bind(t,44854))).default,VoxelLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(7668),t.e(3792),t.e(5410)]).then(t.bind(t,58092))).default,WebTileLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(6968),t.e(3485),t.e(8659)]).then(t.bind(t,16199))).default,WFSLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(755),t.e(3471),t.e(5638),t.e(4588),t.e(511),t.e(411),t.e(635),t.e(4556),t.e(3516)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(2303),t.e(6968),t.e(7319),t.e(1773),t.e(7668),t.e(5845)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(2785),t.e(6570),t.e(9928),t.e(102),t.e(6968),t.e(3485),t.e(8659),t.e(5853)]).then(t.bind(t,55853))).default}},33516:(e,a,t)=>{t.d(a,{m:()=>l});var n=t(17452),r=t(65587);function l(e){return{origin:"portal-item",url:(0,n.mN)(e.itemUrl),portal:e.portal||r.Z.getDefault(),portalItem:e,readResourcePaths:[]}}},18062:(e,a,t)=>{t.r(a),t.d(a,{getFirstLayerOrTableId:()=>p,getNumLayersAndTables:()=>f,load:()=>u,preprocessFSItemData:()=>m});var n=t(20102),r=t(87344),l=t(65587),i=t(33516),s=t(40555),o=t(96187);async function u(e,a){const t=e.instance.portalItem;return t&&t.id?(await t.load(a),function(e){const a=e.instance.portalItem;if(-1===e.supportedTypes.indexOf(a.type))throw new n.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const t=e.instance,l=t.portalItem,{url:u,title:y}=l,p=(0,i.m)(l);if("group"===t.type)return t.read({title:y},p),function(e,a){let t;const l=e.portalItem.type;switch(l){case"Feature Service":case"Feature Collection":t=r.T.FeatureLayer;break;case"Stream Service":t=r.T.StreamLayer;break;case"Scene Service":t=r.T.SceneLayer;break;default:throw new n.Z("portal:unsupported-item-type-as-group",`The item type '${l}' is not supported as a 'IGroupLayer'`)}let i;return t().then((e=>(i=e,c(a)))).then((async a=>"Feature Service"===l?(a=await m(a,e.portalItem.url),d(e,i,a)):f(a)>0?d(e,i,a):function(e,a){return e.portalItem.url?(0,o.b)(e.portalItem.url).then((t=>{var n,r;function l(e){return{id:e.id,name:e.name}}t&&d(e,a,{layers:null==(n=t.layers)?void 0:n.map(l),tables:null==(r=t.tables)?void 0:r.map(l)})})):Promise.resolve()}(e,i)))}(t,e);u&&t.read({url:u},p);const h=await c(e,a);return h&&t.read(h,p),t.resourceReferences={portalItem:l,paths:p.readResourcePaths},t.read({title:y},p),(0,s.y)(t,p)}(e,a)):Promise.resolve()}function d(e,a,t){let n=t.layers||[];const r=t.tables||[];"Feature Collection"===e.portalItem.type&&(n.forEach((e=>{var a;"Table"===(null==e||null==(a=e.layerDefinition)?void 0:a.type)&&r.push(e)})),n=n.filter((e=>{var a;return"Table"!==(null==e||null==(a=e.layerDefinition)?void 0:a.type)}))),n.reverse().forEach((n=>{const r=y(e,a,t,n);e.add(r)})),r.reverse().forEach((n=>{const r=y(e,a,t,n);e.tables.add(r)}))}function y(e,a,t,n){const r=new a({portalItem:e.portalItem.clone(),layerId:n.id,sublayerTitleMode:"service-name"});if("Feature Collection"===e.portalItem.type){const a={origin:"portal-item",portal:e.portalItem.portal||l.Z.getDefault()};r.read(n,a);const i=t.showLegend;null!=i&&r.read({showLegend:i},a)}return r}function c(e,a){if(!1===e.supportsData)return Promise.resolve(void 0);const t=e.instance;return t.portalItem.fetchData("json",a).catch((()=>null)).then((async e=>{if(function(e){return"stream"!==e.type&&"layerId"in e}(t)){let a,n=!0;return e&&f(e)>0&&(null==t.layerId&&(t.layerId=p(e)),a=function(e,a){const t=e.layers;if(t)for(let e=0;e<t.length;e++)if(t[e].id===a)return t[e];const n=e.tables;if(n)for(let e=0;e<n.length;e++)if(n[e].id===a)return n[e];return null}(e,t.layerId),a&&(1===f(e)&&(n=!1),null!=e.showLegend&&(a.showLegend=e.showLegend))),n&&"service-name"!==t.sublayerTitleMode&&(t.sublayerTitleMode="item-title-and-service-name"),a}return e}))}async function m(e,a){var t,n;if(null==(null==(t=e)?void 0:t.layers)||null==(null==(n=e)?void 0:n.tables)){const t=await(0,o.b)(a);(e=e||{}).layers=e.layers||(null==t?void 0:t.layers),e.tables=e.tables||(null==t?void 0:t.tables)}return e}function p(e){const a=e.layers;if(a&&a.length)return a[0].id;const t=e.tables;return t&&t.length?t[0].id:null}function f(e){var a,t,n,r;return(null!=(a=null==e||null==(t=e.layers)?void 0:t.length)?a:0)+(null!=(n=null==e||null==(r=e.tables)?void 0:r.length)?n:0)}},40555:(e,a,t)=>{t.d(a,{y:()=>i});var n=t(66643),r=t(95330),l=t(20941);async function i(e,a,t){const i=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(i&&"unique-value"===i.type&&i.styleOrigin){const s=await(0,n.q6)(i.populateFromStyle());if((0,r.k_)(t),!1===s.ok){const t=s.error;a&&a.messages&&a.messages.push(new l.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a.origin)}}}},96187:(e,a,t)=>{t.d(a,{b:()=>r});var n=t(3172);async function r(e){const{data:a}=await(0,n.default)(e,{responseType:"json",query:{f:"json"}});return a}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8121,2515],{1692:(e,t,i)=>{i.d(t,{Z:()=>C});var r=i(43697),a=i(66577),o=i(51773),s=i(78223),n=i(15923),l=(i(80442),i(22974)),p=i(92604),c=i(70586),u=i(31263),d=i(1153),h=i(52011);p.Z.getLogger("esri.core.Clonable");const m=e=>{let t=class extends e{clone(){const e=(0,c.s3)((0,d.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,i=e.store,r={},a=new Map;for(const e in t){const o=t[e],s=null==i?void 0:i.originOf(e);if(o.readOnly||!1===o.clonable||s!==u.s3.USER&&s!==u.s3.DEFAULTS)continue;const n=this[e];let p=null;const c=o.clonable;p="function"==typeof c?c(n):"reference"===c?n:(0,l.Vo)(n),null!=n&&null==p||(s===u.s3.DEFAULTS?a.set(e,p):r[e]=p)}const o=new(0,Object.getPrototypeOf(this).constructor)(r);if(a.size){var s;const e=null==(s=(0,d.vw)(o))?void 0:s.store;if(e)for(const[t,i]of a)e.set(t,i,u.s3.DEFAULTS)}return o}};return t=(0,r._)([(0,h.j)("esri.core.Clonable")],t),t};let y=class extends(m(n.Z)){};y=(0,r._)([(0,h.j)("esri.core.Clonable")],y);var g=i(96674),f=i(99001),b=i(5600),v=(i(67676),i(75215),i(33955));let w=class extends(m(g.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,f.D)(),configurable:!0})}normalizeCtorArgs(e,t,i,r){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:i,popupTemplate:r}}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,c.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&this.attributes[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{geometry:(0,c.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,c.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}_notifyLayer(e,t,i,r){if(!this.layer||!("graphicChanged"in this.layer))return;const a={graphic:this,property:e,oldValue:t,newValue:i};"attributes"===e&&(a.attributeName=r),this.layer.graphicChanged(a)}};(0,r._)([(0,b.Cb)({value:null})],w.prototype,"attributes",null),(0,r._)([(0,b.Cb)({value:null,types:a.qM,json:{read:v.im}})],w.prototype,"geometry",null),(0,r._)([(0,b.Cb)({type:Boolean})],w.prototype,"isAggregate",void 0),(0,r._)([(0,b.Cb)({clonable:"reference"})],w.prototype,"layer",void 0),(0,r._)([(0,b.Cb)({type:o.Z})],w.prototype,"popupTemplate",void 0),(0,r._)([(0,b.Cb)({clonable:"reference"})],w.prototype,"sourceLayer",void 0),(0,r._)([(0,b.Cb)({value:null,types:s.LB})],w.prototype,"symbol",null),(0,r._)([(0,b.Cb)({type:Boolean,value:!0})],w.prototype,"visible",null),w=(0,r._)([(0,h.j)("esri.Graphic")],w),(w||(w={})).generateUID=f.D;const C=w},66643:(e,t,i)=>{i.d(t,{Ed:()=>o,UI:()=>s,q6:()=>n,mt:()=>l});var r=i(70586),a=i(95330);function o(e,t,i){return(0,a.as)(e.map(((e,r)=>t.apply(i,[e,r]))))}function s(e,t,i){return(0,a.as)(e.map(((e,r)=>t.apply(i,[e,r])))).then((e=>e.map((e=>e.value))))}function n(e){return(0,r.Wi)(e)?(0,a.DB)():e.then((e=>({ok:!0,value:e}))).catch((e=>({ok:!1,error:e})))}function l(e){return e.then((e=>({ok:!0,value:e}))).catch((e=>((0,a.r9)(e),{ok:!1,error:e})))}},74085:(e,t,i)=>{function r(e){}i.d(t,{Bg:()=>r}),i(80442)},70171:(e,t,i)=>{var r,a,o;let s;i.d(t,{Ze:()=>h,Kd:()=>p,qe:()=>u});const n=null!=(r=null==(a=globalThis.esriConfig)?void 0:a.locale)?r:null==(o=globalThis.dojoConfig)?void 0:o.locale;function l(){var e,t;return null!=(e=null!=n?n:null==(t=globalThis.navigator)?void 0:t.language)?e:"en"}function p(){return void 0===s&&(s=l()),s}const c=[];function u(e){return c.push(e),{remove(){c.splice(c.indexOf(e),1)}}}const d=[];function h(e){return d.push(e),{remove(){c.splice(d.indexOf(e),1)}}}null==globalThis.addEventListener||globalThis.addEventListener("languagechange",(function(){const e=null!=undefined?undefined:l();s!==e&&(s=e,[...d].forEach((t=>{t.call(null,e)})),[...c].forEach((t=>{t.call(null,e)})))}))},54295:(e,t,i)=>{i.d(t,{V:()=>s});var r=i(43697),a=i(5600),o=(i(67676),i(80442),i(75215),i(52011));const s=e=>{let t=class extends e{get apiKey(){var e;return this._isOverridden("apiKey")?this._get("apiKey"):function(e){return"portalItem"in e}(this)?null==(e=this.portalItem)?void 0:e.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r._)([(0,a.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,o.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,i)=>{i.d(t,{Y:()=>p});var r=i(43697),a=i(92604),o=i(70586),s=i(5600),n=(i(67676),i(80442),i(75215),i(52011)),l=i(66677);const p=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if((0,o.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,a.Z.getLogger(this.declaredClass)))}};return(0,r._)([(0,s.Cb)()],t.prototype,"title",null),(0,r._)([(0,s.Cb)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,n.j)("esri.layers.mixins.ArcGISService")],t),t}},16859:(e,t,i)=>{i.d(t,{I:()=>w});var r=i(43697),a=i(40330),o=i(3172),s=i(66643),n=i(20102),l=i(92604),p=i(70586),c=i(95330),u=i(17452),d=i(5600),h=(i(67676),i(80442),i(75215),i(71715)),m=i(52011),y=i(30556),g=i(65587),f=i(15235),b=i(86082);const v=l.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new f.default({id:t.itemId,portal:i&&i.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const r=await i.e(8062).then(i.bind(i,18062));return(0,c.k_)(t),await r.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,c.D_)(e)||v.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==a.id?void 0:a.id.findCredential(this.url):null;if(!t)return!0;const i=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=i,(0,p.Wi)(i)||null==i.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,i;const r=null==(t=this.portalItem)||null==(i=t.portal)?void 0:i.user;if(r)return r;const n=a.id.findServerInfo(this.url);if(null==n||!n.owningSystemUrl)return null;const l=`${n.owningSystemUrl}/sharing/rest`,c=g.Z.getDefault();if(c&&c.loaded&&(0,u.Fv)(c.restUrl)===(0,u.Fv)(l))return c.user;const d=`${l}/community/self`,h=(0,p.pC)(e)?e.signal:null,m=await(0,s.q6)((0,o.default)(d,{authMode:"no-prompt",query:{f:"json"},signal:h}));return m.ok?b.default.fromJSON(m.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t&&t.portal,r=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||g.Z.getDefault());return i&&r&&!(0,u.tm)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new n.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,d.Cb)({type:f.default})],t.prototype,"portalItem",null),(0,r._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,y.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,d.Cb)()],t.prototype,"resourceReferences",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,r._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},C={credential:null,user:null}},70082:(e,t,i)=>{i.d(t,{Z:()=>c});var r=i(43697),a=i(35454),o=i(96674),s=i(5600),n=(i(67676),i(80442),i(75215),i(52011));const l=new a.Xn({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends o.wq{constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,r._)([(0,s.Cb)({json:{write:!0}})],p.prototype,"name",void 0),(0,r._)([(0,s.Cb)({json:{write:!0}})],p.prototype,"description",void 0),(0,r._)([(0,s.Cb)({json:{read:l.read,write:l.write}})],p.prototype,"drawingTool",void 0),(0,r._)([(0,s.Cb)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,r._)([(0,s.Cb)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,r._)([(0,n.j)("esri.layers.support.FeatureTemplate")],p);const c=p},16451:(e,t,i)=>{i.d(t,{Z:()=>d});var r=i(43697),a=i(96674),o=i(5600),s=(i(67676),i(80442),i(75215),i(71715)),n=i(52011),l=i(30556),p=i(72729),c=i(70082);let u=class extends a.wq{constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const i of Object.keys(e))t[i]=(0,p.im)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e)){var r;e[t]&&(i[t]=null==(r=e[t])?void 0:r.toJSON())}t.domains=i}};(0,r._)([(0,o.Cb)({json:{write:!0}})],u.prototype,"id",void 0),(0,r._)([(0,o.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,r._)([(0,o.Cb)({json:{write:!0}})],u.prototype,"domains",void 0),(0,r._)([(0,s.r)("domains")],u.prototype,"readDomains",null),(0,r._)([(0,l.c)("domains")],u.prototype,"writeDomains",null),(0,r._)([(0,o.Cb)({type:[c.Z],json:{write:!0}})],u.prototype,"templates",void 0),u=(0,r._)([(0,n.j)("esri.layers.support.FeatureType")],u);const d=u},56765:(e,t,i)=>{i.d(t,{Z:()=>c});var r,a=i(43697),o=i(80539),s=i(96674),n=i(5600),l=(i(67676),i(80442),i(75215),i(52011));let p=r=class extends s.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.Z}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,a._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"floorField",void 0),(0,a._)([(0,n.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllMode",void 0),(0,a._)([(0,n.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllLevelIds",void 0),p=r=(0,a._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],p);const c=p},15235:(e,t,i)=>{i.r(t),i.d(t,{default:()=>O});var r=i(43697),a=i(99880),o=i(20102),s=i(96674),n=i(22974),l=i(83379),p=i(70586),c=i(17452),u=i(5600),d=i(75215),h=i(71715),m=i(52011),y=i(6570),g=i(65587),f=i(15923),b=i(92604),v=(i(67676),i(80442),i(90578));const w=b.Z.getLogger("esri.portal.PortalItemResource");let C=class extends f.Z{constructor(e){super(e),this.portalItem=null}normalizeCtorArgs(e){return e&&e.portalItem&&e.path?{...e,path:this._normalizePath(e.path,e.portalItem)}:e}set path(e){(0,p.pC)(e)&&(0,c.YP)(e)?w.error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",e)}_castPath(e){return this._normalizePath(e,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(e="json",t){const i=this.url;if((0,p.Wi)(i))throw new o.Z("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");return this.portalItem.portal._request(i,{responseType:e,query:{token:this.portalItem.apiKey},signal:(0,p.U2)(t,"signal")})}async update(e,t){return(await i.e(7873).then(i.bind(i,97873))).addOrUpdateResource(this,"update",e,t)}hasPath(){return(0,p.pC)(this.path)}_normalizePath(e,t){return(0,p.Wi)(e)?e:(e=e.replace(/^\/+/,""),(0,p.pC)(t)&&(0,c.YP)(e)&&(e=(0,c.PF)(e,t.itemUrl)),e.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}};(0,r._)([(0,u.Cb)()],C.prototype,"portalItem",void 0),(0,r._)([(0,u.Cb)({type:String,value:null})],C.prototype,"path",null),(0,r._)([(0,v.p)("path")],C.prototype,"_castPath",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],C.prototype,"url",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],C.prototype,"itemRelativeUrl",null),C=(0,r._)([(0,m.j)("esri.portal.PortalItemResource")],C);const x=C;let _=class extends f.Z{constructor(e){super(e),this.created=null,this.rating=null}};(0,r._)([(0,u.Cb)()],_.prototype,"created",void 0),(0,r._)([(0,u.Cb)()],_.prototype,"rating",void 0),_=(0,r._)([(0,m.j)("esri.portal.PortalRating")],_);const k=_;var S;let I=S=class extends((0,s.eC)(l.Z)){constructor(e){super(e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}static from(e){return(0,d.TJ)(S,e)}destroy(){this.portal=null}get displayName(){const e=this.type,t=this.typeKeywords||[];let i=e;return"Feature Service"===e||"Feature Collection"===e?i=t.indexOf("Table")>-1?"Table":t.indexOf("Route Layer")>-1?"Route Layer":t.indexOf("Markup")>-1?"Markup":"Feature Layer":"Image Service"===e?i=t.indexOf("Elevation 3D Layer")>-1?"Elevation Layer":t.indexOf("Tiled Imagery")>-1?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===e?i="Scene Layer":"Scene Package"===e?i="Scene Layer Package":"Stream Service"===e?i="Feature Layer":"Geoprocessing Service"===e&&this.portal&&this.portal.isPortal?i=t.indexOf("Web Tool")>-1?"Tool":"Geoprocessing Service":"Geocoding Service"===e?i="Locator":"Geoenrichment Service"===e?i="GeoEnrichment Service":"Microsoft Powerpoint"===e?i="Microsoft PowerPoint":"GeoJson"===e?i="GeoJSON":"Globe Service"===e?i="Globe Layer":"Vector Tile Service"===e?i="Tile Layer":"netCDF"===e?i="NetCDF":"Map Service"===e?i=-1===t.indexOf("Spatiotemporal")&&(t.indexOf("Hosted Service")>-1||t.indexOf("Tiled")>-1)&&-1===t.indexOf("Relational")?"Tile Layer":"Map Image Layer":e&&e.toLowerCase().indexOf("add in")>-1?i=e.replace(/(add in)/gi,"Add-In"):"datastore catalog service"===e?i="Big Data File Share":"Compact Tile Package"===e?i="Tile Package (tpkx)":"OGCFeatureServer"===e?i="OGC Feature Layer":"web mapping application"===e&&t.indexOf("configurableApp")>-1&&(i="Instant App"),i}readExtent(e){return e&&e.length?new y.Z(e[0][0],e[0][1],e[1][0],e[1][1]):null}get iconUrl(){const e=this.type&&this.type.toLowerCase()||"",t=this.typeKeywords||[];let i,r=!1,o=!1,s=!1,n=!1,l=!1,p=!1;return e.indexOf("service")>0||"feature collection"===e||"kml"===e||"wms"===e||"wmts"===e||"wfs"===e?(r=t.indexOf("Hosted Service")>-1,"feature service"===e||"feature collection"===e||"kml"===e||"wfs"===e?(o=t.indexOf("Table")>-1,s=t.indexOf("Route Layer")>-1,n=t.indexOf("Markup")>-1,l=-1!==t.indexOf("Spatiotemporal"),p=-1!==t.indexOf("UtilityNetwork"),i=l&&o?"spatiotemporaltable":o?"table":s?"routelayer":n?"markup":l?"spatiotemporal":r?"featureshosted":p?"utilitynetwork":"features"):i="map service"===e||"wms"===e||"wmts"===e?r||t.indexOf("Tiled")>-1||"wmts"===e?"maptiles":"mapimages":"scene service"===e?t.indexOf("Line")>-1?"sceneweblayerline":t.indexOf("3DObject")>-1?"sceneweblayermultipatch":t.indexOf("Point")>-1?"sceneweblayerpoint":t.indexOf("IntegratedMesh")>-1?"sceneweblayermesh":t.indexOf("PointCloud")>-1?"sceneweblayerpointcloud":t.indexOf("Polygon")>-1?"sceneweblayerpolygon":t.indexOf("Building")>-1?"sceneweblayerbuilding":t.indexOf("Voxel")>-1?"sceneweblayervoxel":"sceneweblayer":"image service"===e?t.indexOf("Elevation 3D Layer")>-1?"elevationlayer":t.indexOf("Tiled Imagery")>-1?"tiledimagerylayer":"imagery":"stream service"===e?"streamlayer":"vector tile service"===e?"vectortile":"datastore catalog service"===e?"datastorecollection":"geocoding service"===e?"geocodeservice":"geoprocessing service"===e&&t.indexOf("Web Tool")>-1&&this.portal&&this.portal.isPortal?"tool":"layers"):i="web map"===e||"cityengine web scene"===e?"maps":"web scene"===e?t.indexOf("ViewingMode-Local")>-1?"webscenelocal":"websceneglobal":"web mapping application"===e&&t.indexOf("configurableApp")>-1?"instantapps":"web mapping application"===e||"mobile application"===e||"application"===e||"operation view"===e||"desktop application"===e?"apps":"map document"===e||"map package"===e||"published map"===e||"scene document"===e||"globe document"===e||"basemap package"===e||"mobile basemap package"===e||"mobile map package"===e||"project package"===e||"project template"===e||"pro map"===e||"layout"===e||"layer"===e&&t.indexOf("ArcGIS Pro")>-1||"explorer map"===e&&t.indexOf("Explorer Document")?"mapsgray":"service definition"===e||"csv"===e||"shapefile"===e||"cad drawing"===e||"geojson"===e||"360 vr experience"===e||"netcdf"===e||"administrative report"===e?"datafiles":"explorer add in"===e||"desktop add in"===e||"windows viewer add in"===e||"windows viewer configuration"===e?"appsgray":"arcgis pro add in"===e||"arcgis pro configuration"===e?"addindesktop":"rule package"===e||"file geodatabase"===e||"sqlite geodatabase"===e||"csv collection"===e||"kml collection"===e||"windows mobile package"===e||"map template"===e||"desktop application template"===e||"gml"===e||"arcpad package"===e||"code sample"===e||"form"===e||"document link"===e||"earth configuration"===e||"operations dashboard add in"===e||"rules package"===e||"image"===e||"workflow manager package"===e||"explorer map"===e&&t.indexOf("Explorer Mapping Application")>-1||t.indexOf("Document")>-1?"datafilesgray":"network analysis service"===e||"geoprocessing service"===e||"geodata service"===e||"geometry service"===e||"geoprocessing package"===e||"locator package"===e||"geoprocessing sample"===e||"workflow manager service"===e?"toolsgray":"layer"===e||"layer package"===e||"explorer layer"===e?"layersgray":"scene package"===e?"scenepackage":"mobile scene package"===e?"mobilescenepackage":"tile package"===e||"compact tile package"===e?"tilepackage":"task file"===e?"taskfile":"report template"===e?"report-template":"statistical data collection"===e?"statisticaldatacollection":"insights workbook"===e?"workbook":"insights model"===e?"insightsmodel":"insights page"===e?"insightspage":"insights theme"===e?"insightstheme":"hub initiative"===e?"hubinitiative":"hubpage"===e?"hubpage":"hub event"===e?"hubevent":"hub site application"===e?"hubsite":"relational database connection"===e?"relationaldatabaseconnection":"big data file share"===e?"datastorecollection":"image collection"===e?"imagecollection":"style"===e?"style":"desktop style"===e?"desktopstyle":"dashboard"===e?"dashboard":"raster function template"===e?"rasterprocessingtemplate":"vector tile package"===e?"vectortilepackage":"ortho mapping project"===e?"orthomappingproject":"ortho mapping template"===e?"orthomappingtemplate":"solution"===e?"solutions":"geopackage"===e?"geopackage":"deep learning package"===e?"deeplearningpackage":"real time analytic"===e?"realtimeanalytics":"big data analytic"===e?"bigdataanalytics":"feed"===e?"feed":"excalibur imagery project"===e?"excaliburimageryproject":"notebook"===e?"notebook":"storymap"===e?"storymap":"survey123 add in"===e?"survey123addin":"mission"===e?"mission":"mission report"===e?"missionreport":"quickcapture project"===e?"quickcaptureproject":"pro report"===e?"proreport":"urban model"===e?"urbanmodel":"web experience"===e?"experiencebuilder":"web experience template"===e?"webexperiencetemplate":"workflow"===e?"workflow":"insights script"===e?"insightsscript":"kernel gateway connection"===e?"kernelgatewayconnection":"hub initiative template"===e?"hubinitiativetemplate":"storymap theme"===e?"storymaptheme":"knowledge graph"===e?"knowledgegraph":"native application"===e?"nativeapp":"native application installer"===e?"nativeappinstaller":"link chart"===e?"linkchart":"investigation"===e?"investigation":"ogcfeatureserver"===e?"features":"pro project"===e?"proproject":"insights workbook package"===e?"insightsworkbookpackage":"apache parquet"===e?"apacheparquet":"maps",i?(0,a.V)("esri/images/portal/"+i+"16.png"):null}get isLayer(){return["Map Service","Feature Service","Feature Collection","Scene Service","Image Service","Stream Service","Vector Tile Service","WMTS","WMS"].indexOf(this.type)>-1}get itemUrl(){const e=this.get("portal.restUrl");return e?e+"/content/items/"+this.id:null}get thumbnailUrl(){const e=this.itemUrl,t=this.thumbnail;return e&&t?this.portal._normalizeUrl(`${e}/info/${t}?f=json`):null}get userItemUrl(){const e=this.get("portal.restUrl");if(!e)return null;const t=this.owner||this.get("portal.user.username");return t?`${e}/content/users/${this.ownerFolder?`${t}/${this.ownerFolder}`:t}/items/${this.id}`:null}load(e){this.portal||(this.portal=g.Z.getDefault());const t=this.portal.load(e).then((()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?this.portal._request(this.itemUrl,{signal:(0,p.pC)(e)?e.signal:null,query:{token:this.apiKey}}):{})).then((e=>{this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(t),Promise.resolve(this)}addRating(e){const t={method:"post",query:{}};return e instanceof k&&(e=e.rating),isNaN(e)||"number"!=typeof e||(t.query.rating=e),this.portal._request(this.itemUrl+"/addRating",t).then((()=>new k({rating:e,created:new Date})))}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:(0,n.d9)(this.applicationProxies),avgRating:this.avgRating,categories:(0,n.d9)(this.categories),created:(0,n.d9)(this.created),culture:this.culture,description:this.description,extent:(0,n.d9)(this.extent),groupCategories:(0,n.d9)(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:(0,n.d9)(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:(0,n.d9)(this.screenshots),size:this.size,snippet:this.snippet,tags:(0,n.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,n.d9)(this.typeKeywords),url:this.url};return this.loaded&&(e.loadStatus="loaded"),new S({sourceJSON:this.sourceJSON}).set(e)}createPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}deleteRating(){return this.portal._request(this.itemUrl+"/deleteRating",{method:"post"}).then((()=>{}))}fetchData(e="json",t){return this.portal._request(this.itemUrl+"/data",{responseType:e,...t,query:{token:this.apiKey}})}fetchRating(e){return this.portal._request(this.itemUrl+"/rating",{query:{token:this.apiKey},...e}).then((e=>null!=e.rating?(e.created=new Date(e.created),new k(e)):null))}fetchRelatedItems(e,t){return this.portal._requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...e,token:this.apiKey},...t},S)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}reload(){return this.portal._request(this.itemUrl,{cacheBust:!0,query:{token:this.apiKey}}).then((e=>(this.sourceJSON=e,this.read(e),this)))}update(e){return this.id?this.load().then((()=>this.portal._signIn())).then((()=>{const t=e&&e.data,i={method:"post"};i.query=this.createPostQuery();for(const e in i.query)null===i.query[e]&&(i.query[e]="");return i.query.clearEmptyFields=!0,null!=t&&("string"==typeof t?i.query.text=t:"object"==typeof t&&(i.query.text=JSON.stringify(t))),this.portal._request(`${this.userItemUrl}/update`,i).then((()=>this.reload()))})):Promise.reject(new o.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}updateThumbnail(e){return this.id?this.load().then((()=>this.portal._signIn())).then((()=>{const t=e.thumbnail,i=e.filename,r={method:"post"};if("string"==typeof t)(0,c.HK)(t)?r.query={data:t}:r.query={url:(0,c.hF)(t)},(0,p.pC)(i)&&(r.query.filename=i);else{const e=new FormData;(0,p.pC)(i)?e.append("file",t,i):e.append("file",t),r.body=e}return this.portal._request(`${this.userItemUrl}/updateThumbnail`,r).then((()=>this.reload()))})):Promise.reject(new o.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async fetchResources(e={},t){return(await i.e(7873).then(i.bind(i,97873))).fetchResources(this,e,t)}async addResource(e,t,r){const a=await i.e(7873).then(i.bind(i,97873));return e.portalItem=this,a.addOrUpdateResource(e,"add",t,r)}async removeResource(e,t){const r=await i.e(7873).then(i.bind(i,97873));if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new o.Z("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return r.removeResource(this,e,t)}async removeAllResources(e){return(await i.e(7873).then(i.bind(i,97873))).removeAllResources(this,e)}resourceFromPath(e){return new x({portalItem:this,path:e})}toJSON(){const e=this.extent,t={created:this.created&&this.created.getTime(),description:this.description,extent:e&&[[e.xmin,e.ymin],[e.xmax,e.ymax]],id:this.id,modified:this.modified&&this.modified.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,tags:this.tags,thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:this.typeKeywords,url:this.url};return(0,n.yd)(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new S({sourceJSON:e})}_getPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}};(0,r._)([(0,u.Cb)({type:["private","shared","org","public"]})],I.prototype,"access",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"accessInformation",void 0),(0,r._)([(0,u.Cb)({type:String})],I.prototype,"apiKey",void 0),(0,r._)([(0,u.Cb)({json:{read:{source:"appProxies"}}})],I.prototype,"applicationProxies",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"avgRating",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"categories",void 0),(0,r._)([(0,u.Cb)({type:Date})],I.prototype,"created",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"culture",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"description",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"displayName",null),(0,r._)([(0,u.Cb)({type:y.Z})],I.prototype,"extent",void 0),(0,r._)([(0,h.r)("extent")],I.prototype,"readExtent",null),(0,r._)([(0,u.Cb)()],I.prototype,"groupCategories",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"iconUrl",null),(0,r._)([(0,u.Cb)()],I.prototype,"id",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"isLayer",null),(0,r._)([(0,u.Cb)()],I.prototype,"itemControl",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"itemUrl",null),(0,r._)([(0,u.Cb)()],I.prototype,"licenseInfo",void 0),(0,r._)([(0,u.Cb)({type:Date})],I.prototype,"modified",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"name",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"numComments",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"numRatings",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"numViews",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"owner",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"ownerFolder",void 0),(0,r._)([(0,u.Cb)({type:g.Z})],I.prototype,"portal",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"screenshots",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"size",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"snippet",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"sourceJSON",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"tags",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"thumbnail",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"thumbnailUrl",null),(0,r._)([(0,u.Cb)()],I.prototype,"title",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"type",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"typeKeywords",void 0),(0,r._)([(0,u.Cb)()],I.prototype,"url",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"userItemUrl",null),I=S=(0,r._)([(0,m.j)("esri.portal.PortalItem")],I);const O=I},99282:(e,t,i)=>{i.d(t,{a:()=>o});var r=i(67900),a=i(68441);const o={inches:(0,r.En)(1,"meters","inches"),feet:(0,r.En)(1,"meters","feet"),"us-feet":(0,r.En)(1,"meters","us-feet"),yards:(0,r.En)(1,"meters","yards"),miles:(0,r.En)(1,"meters","miles"),"nautical-miles":(0,r.En)(1,"meters","nautical-miles"),millimeters:(0,r.En)(1,"meters","millimeters"),centimeters:(0,r.En)(1,"meters","centimeters"),decimeters:(0,r.En)(1,"meters","decimeters"),meters:(0,r.En)(1,"meters","meters"),kilometers:(0,r.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,r.ty)(1,"meters",a.sv.radius)}},51706:(e,t,i)=>{var r,a;function o(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function n(e){return e.valueExpression?r.Expression:e.field&&"string"==typeof e.field?r.Field:r.Unknown}function l(e,t){const i=t||n(e),o=e.valueUnit||"unknown";return i===r.Unknown?a.Constant:e.stops?a.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?a.ClampedLinear:"unknown"===o?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?a.Proportional:a.Additive:a.Identity:a.RealWorldSize}i.d(t,{RY:()=>r,hL:()=>a,PS:()=>n,QW:()=>l,iY:()=>o,qh:()=>s}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(r||(r={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(a||(a={}))},28101:(e,t,i)=>{i.d(t,{PR:()=>x,Lq:()=>m,Km:()=>y,cM:()=>g,ap:()=>f,V3:()=>w,B3:()=>h});var r=i(22303),a=i(1692),o=i(74085),s=i(92604),n=i(70586),l=i(99282),p=i(51706);const c=s.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=new a.Z,d=Math.PI,h=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function m(e,t,i){const a="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"color"===e.type))[0]:e;if(!a)return;if("esri.renderers.visualVariables.ColorVariable"!==a.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const o="number"==typeof t,s=o?null:t,l=s&&s.attributes;let p=o?t:null;const u=a.field,{ipData:d,hasExpression:h}=a.cache;let m=a.cache.compiledFunc;if(!u&&!h){const e=a.stops;return e&&e[0]&&e[0].color}if("number"!=typeof p)if(h){if(!(0,n.pC)(i)||!(0,n.pC)(i.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,r=t.getViewInfo(e),o=t.createExecContext(s,r);if(!m){const e=t.createSyntaxTree(a.valueExpression);m=t.createFunction(e),a.cache.compiledFunc=m}p=t.executeFunction(m,o)}else l&&(p=l[u]);const y=a.normalizationField,g=l?parseFloat(l[y]):void 0;if(null!=p&&(!y||o||!isNaN(g)&&0!==g)){isNaN(g)||o||(p/=g);const e=C(p,d);if(e){const t=e[0],o=e[1],s=t===o?a.stops[t].color:r.Z.blendColors(a.stops[t].color,a.stops[o].color,e[2],(0,n.pC)(i)?i.color:void 0);return new r.Z(s)}}}function y(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.OpacityVariable"!==r.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const a="number"==typeof t,o=a?null:t,s=o&&o.attributes;let l=a?t:null;const p=r.field,{ipData:u,hasExpression:d}=r.cache;let h=r.cache.compiledFunc;if(!p&&!d){const e=r.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(d){if((0,n.Wi)(i)||(0,n.Wi)(i.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,a=t.getViewInfo(e),s=t.createExecContext(o,a);if(!h){const e=t.createSyntaxTree(r.valueExpression);h=t.createFunction(e),r.cache.compiledFunc=h}l=t.executeFunction(h,s)}else s&&(l=s[p]);const m=r.normalizationField,y=s?parseFloat(s[m]):void 0;if(null!=l&&(!m||a||!isNaN(y)&&0!==y)){isNaN(y)||a||(l/=y);const e=C(l,u);if(e){const t=e[0],i=e[1];if(t===i)return r.stops[t].opacity;{const a=r.stops[t].opacity;return a+(r.stops[i].opacity-a)*e[2]}}}}function g(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.RotationVariable"!==r.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const a=r.axis||"heading",o="heading"===a&&"arithmetic"===r.rotationType?90:0,s="heading"===a&&"arithmetic"===r.rotationType?-1:1,l="number"==typeof t?null:t,p=l&&l.attributes,u=r.field,{hasExpression:d}=r.cache;let h=r.cache.compiledFunc,m=0;if(!u&&!d)return m;if(d){if((0,n.Wi)(i)||(0,n.Wi)(i.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,a=t.getViewInfo(e),o=t.createExecContext(l,a);if(!h){const e=t.createSyntaxTree(r.valueExpression);h=t.createFunction(e),r.cache.compiledFunc=h}m=t.executeFunction(h,o)}else p&&(m=p[u]||0);return m="number"!=typeof m||isNaN(m)?null:o+s*m,m}function f(e,t,i){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.SizeVariable"!==r.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const a=function(e,t,i,r,a){switch(t.transformationType){case p.hL.Additive:return function(e,t,i,r){return e+(b(t.minSize,i,r)||t.minDataValue)}(e,t,i,r);case p.hL.Constant:return function(e,t,i){const r=e.stops;let a=r&&r.length&&r[0].size;return null==a&&(a=e.minSize),b(a,t,i)}(t,i,r);case p.hL.ClampedLinear:return function(e,t,i,r){const a=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),o=b(t.minSize,i,r),s=b(t.maxSize,i,r),l=(0,n.pC)(r)?r.shape:void 0;if(e<=t.minDataValue)return o;if(e>=t.maxDataValue)return s;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?d*(o/2)**2:o*o,i=t+a*((e?d*(s/2)**2:s*s)-t);return e?2*Math.sqrt(i/d):Math.sqrt(i)}return o+a*(s-o)}(e,t,i,r);case p.hL.Proportional:return function(e,t,i,r){const a=(0,n.pC)(r)?r.shape:void 0,o=e/t.minDataValue,s=b(t.minSize,i,r),l=b(t.maxSize,i,r);let p=null;return p="circle"===a?2*Math.sqrt(o*(s/2)**2):"square"===a||"diamond"===a||"image"===a?Math.sqrt(o*s**2):o*s,v(p,s,l)}(e,t,i,r);case p.hL.Stops:return function(e,t,i,r,a){const[o,s,n]=C(e,a);if(o===s)return b(t.stops[o].size,i,r);{const e=b(t.stops[o].size,i,r);return e+(b(t.stops[s].size,i,r)-e)*n}}(e,t,i,r,a);case p.hL.RealWorldSize:return function(e,t,i,r){const a=((0,n.pC)(r)&&r.resolution?r.resolution:1)*l.a[t.valueUnit],o=b(t.minSize,i,r),s=b(t.maxSize,i,r),{valueRepresentation:p}=t;let c=null;return c="area"===p?2*Math.sqrt(e/d)/a:"radius"===p||"distance"===p?2*e/a:e/a,v(c,o,s)}(e,t,i,r);case p.hL.Identity:return e;case p.hL.Unknown:return null}}(function(e,t,i){const r="number"==typeof t,a=r?null:t,o=a&&a.attributes;let s=r?t:null;const{isScaleDriven:l}=e.cache;let u=e.cache.compiledFunc;if(l){const t=(0,n.pC)(i)?i.scale:void 0,r=(0,n.pC)(i)?i.view:void 0;s=null==t||"3d"===r?function(e){let t=null,i=null;const r=e.stops;return r?(t=r[0].value,i=r[r.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!r)switch(e.inputValueType){case p.RY.Expression:{if((0,n.Wi)(i)||(0,n.Wi)(i.arcade))return void c.error("Use of arcade expressions requires an arcade context");const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},r=i.arcade.arcadeUtils,o=r.getViewInfo(t),l=r.createExecContext(a,o);if(!u){const t=r.createSyntaxTree(e.valueExpression);u=r.createFunction(t),e.cache.compiledFunc=u}s=r.executeFunction(u,l);break}case p.RY.Field:o&&(s=o[e.field]);break;case p.RY.Unknown:s=null}if(!(0,p.qh)(s))return null;if(r||!e.normalizationField)return s;const d=o?parseFloat(o[e.normalizationField]):null;return(0,p.qh)(d)&&0!==d?s/d:null}(r,t,i),r,t,i,r.cache.ipData);return null==a||isNaN(a)?0:a}function b(e,t,i){return null==e?null:(0,p.iY)(e)?f(e,t,i):(0,p.qh)(e)?e:null}function v(e,t,i){return(0,p.qh)(i)&&e>i?i:(0,p.qh)(t)&&e<t?t:e}function w(e,t,i){const{isScaleDriven:r}=e.cache;if(!(r&&"3d"===i||t))return null;const a={scale:t,view:i};let o=b(e.minSize,u,a),s=b(e.maxSize,u,a);if(null!=o||null!=s){if(o>s){const e=s;s=o,o=e}return{minSize:o,maxSize:s}}}function C(e,t){if(!t)return;let i=0,r=t.length-1;return t.some(((t,a)=>e<t?(r=a,!0):(i=a,!1))),[i,r,(e-t[i])/(t[r]-t[i])]}function x(e,t,i){const r=["proportional","proportional","proportional"];for(const a of e){const e=a.useSymbolValue?"symbol-value":f(a,t,i);switch(a.axis){case"width":r[0]=e;break;case"depth":r[1]=e;break;case"height":r[2]=e;break;case"width-and-depth":r[0]=e,r[1]=e;break;case"all":case void 0:case null:r[0]=e,r[1]=e,r[2]=e;break;default:(0,o.Bg)(a.axis)}}return r}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9928],{35454:(t,n,e)=>{e.d(n,{Xn:()=>s,wY:()=>r});var i=e(78286);class s{constructor(t,n={ignoreUnknown:!1,useNumericKeys:!1}){this.jsonToAPI=t,this.options=n,this.apiValues=[],this.jsonValues=[],this.apiToJSON=this._invertMap(t),this.apiValues=this._getKeysSorted(this.apiToJSON),this.jsonValues=this._getKeysSorted(this.jsonToAPI),this.read=t=>this.fromJSON(t),this.write=(t,n,e)=>{const s=this.toJSON(t);void 0!==s&&(0,i.RB)(e,s,n)},this.write.isJSONMapWriter=!0}toJSON(t){if(this.apiToJSON.hasOwnProperty(t)){const n=this.apiToJSON[t];return this.options.useNumericKeys?+n:n}return this.options.ignoreUnknown?void 0:t}fromJSON(t){return this.jsonToAPI.hasOwnProperty(t)?this.jsonToAPI[t]:this.options.ignoreUnknown?void 0:t}_invertMap(t){const n={};for(const e in t)n[t[e]]=e;return n}_getKeysSorted(t){const n=[];for(const e in t)n.push(e);return n.sort(),n}}function r(){return function(t,n){return new s(t,{ignoreUnknown:!0,...n})}}},65091:(t,n,e)=>{e.d(n,{Z:()=>m});var i,s=e(43697),r=e(22974),o=e(5600),h=(e(75215),e(52011)),a=e(30556),l=e(6570),u=e(9361),c=e(13473),p=e(16238);function f(t){return(n,e)=>null==n?e:null==e?n:t(n,e)}let g=i=class extends u.Z{constructor(...t){super(...t),this.points=[],this.type="multipoint"}normalizeCtorArgs(t,n){if(!t&&!n)return null;const e={};Array.isArray(t)?(e.points=t,e.spatialReference=n):function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?e.spatialReference=t:(t.points&&(e.points=t.points),t.spatialReference&&(e.spatialReference=t.spatialReference),t.hasZ&&(e.hasZ=t.hasZ),t.hasM&&(e.hasM=t.hasM));const i=e.points&&e.points[0];return i&&(void 0===e.hasZ&&void 0===e.hasM?(e.hasZ=i.length>2,e.hasM=!1):void 0===e.hasZ?e.hasZ=i.length>3:void 0===e.hasM&&(e.hasM=i.length>3)),e}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=this.points;if(!t.length)return null;const n=new l.Z,e=this.hasZ,i=this.hasM,s=e?3:2,r=t[0],o=f(Math.min),h=f(Math.max);let a,u,c,p,[g,m]=r,[y,d]=r;for(let n=0,r=t.length;n<r;n++){const r=t[n],[l,f]=r;if(g=o(g,l),m=o(m,f),y=h(y,l),d=h(d,f),e&&r.length>2){const t=r[2];a=o(a,t),c=h(c,t)}if(i&&r.length>s){const t=r[s];u=o(u,t),p=h(p,t)}}return n.xmin=g,n.ymin=m,n.xmax=y,n.ymax=d,n.spatialReference=this.spatialReference,e?(n.zmin=a,n.zmax=c):(n.zmin=null,n.zmax=null),i?(n.mmin=u,n.mmax=p):(n.mmin=null,n.mmax=null),n}writePoints(t,n){n.points=(0,r.d9)(this.points)}addPoint(t){return(0,p.l)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}clone(){const t={points:(0,r.d9)(this.points),spatialReference:this.spatialReference};return this.hasZ&&(t.hasZ=!0),this.hasM&&(t.hasM=!0),new i(t)}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(e.z=n[2],i=3),this.hasM&&(e.m=n[i]),new c.Z(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new c.Z(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,p.l)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,s._)([(0,o.Cb)({readOnly:!0})],g.prototype,"cache",null),(0,s._)([(0,o.Cb)()],g.prototype,"extent",null),(0,s._)([(0,o.Cb)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,s._)([(0,a.c)("points")],g.prototype,"writePoints",null),g=i=(0,s._)([(0,h.j)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0;const m=g},17332:(t,n,e)=>{e.d(n,{Z:()=>A});var i=e(43697),s=e(67676),r=e(22974),o=e(70586),h=e(5600),a=(e(75215),e(52011)),l=e(30556),u=e(6570),c=e(9361),p=e(13473),f=e(82971),g=e(86662);function m(t){return t?function(t,n){if(!t||!t.length)return null;const e=[],i=[],s=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let e=0,r=t.length;e<r;e++){const r=y(t[e],n,s);r&&i.push(r)}if(i.sort(((t,e)=>{let i=t[2]-e[2];return 0===i&&n&&(i=t[4]-e[4]),i})),i.length&&(e[0]=i[0][0],e[1]=i[0][1],n&&(e[2]=i[0][3]),(e[0]<s[0]||e[0]>s[1]||e[1]<s[2]||e[1]>s[3]||n&&(e[2]<s[4]||e[2]>s[5]))&&(e.length=0)),!e.length){const i=t[0]&&t[0].length?function(t,n){const e=n?[0,0,0]:[0,0],i=n?[0,0,0]:[0,0];let s=0,r=0,o=0,h=0;for(let a=0,l=t.length;a<l-1;a++){const l=t[a],u=t[a+1];if(l&&u){e[0]=l[0],e[1]=l[1],i[0]=u[0],i[1]=u[1],n&&l.length>2&&u.length>2&&(e[2]=l[2],i[2]=u[2]);const t=(0,g.xA)(e,i);if(t){s+=t;const e=(0,g.Gi)(l,u);r+=t*e[0],o+=t*e[1],n&&e.length>2&&(h+=t*e[2])}}}return s>0?n?[r/s,o/s,h/s]:[r/s,o/s]:t.length?t[0]:null}(t[0],n):null;if(!i)return null;e[0]=i[0],e[1]=i[1],n&&i.length>2&&(e[2]=i[2])}return e}(t.rings,t.hasZ):null}function y(t,n,e){let i=0,s=0,r=0,o=0,h=0;const a=t.length?t[0][0]:0,l=t.length?t[0][1]:0,u=t.length&&n?t[0][2]:0;for(let c=0;c<t.length;c++){const p=t[c],f=t[(c+1)%t.length],[g,m,y]=p,d=g-a,x=m-l,v=n?y-u:void 0,[Z,R,w]=f,M=Z-a,C=R-l,A=n?w-u:void 0,_=d*C-M*x;if(o+=_,i+=(d+M)*_,s+=(x+C)*_,n&&p.length>2&&f.length>2){const t=d*A-M*v;r+=(v+A)*t,h+=t}g<e[0]&&(e[0]=g),g>e[1]&&(e[1]=g),m<e[2]&&(e[2]=m),m>e[3]&&(e[3]=m),n&&(y<e[4]&&(e[4]=y),y>e[5]&&(e[5]=y))}if(o>0&&(o*=-1),h>0&&(h*=-1),!o)return null;o*=.5,h*=.5;const c=[i/(6*o)+a,s/(6*o)+l,o];return n&&(e[4]===e[5]||0===h?(c[3]=(e[4]+e[5])/2,c[4]=0):(c[3]=r/(6*h)+u,c[4]=h)),c}var d,x=e(54102),v=e(49600),Z=e(87416),R=e(40488),w=e(16238);function M(t){return!Array.isArray(t[0])}let C=d=class extends c.Z{constructor(...t){super(...t),this.rings=[],this.type="polygon"}static fromExtent(t){const n=t.clone().normalize(),e=t.spatialReference;let i=!1,s=!1;for(const t of n)t.hasZ&&(i=!0),t.hasM&&(s=!0);const r={rings:n.map((function(t){const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(i&&t.hasZ){const e=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(e)}if(s&&t.hasM){const e=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(e)}return n})),spatialReference:e};return i&&(r.hasZ=!0),s&&(r.hasM=!0),new d(r)}normalizeCtorArgs(t,n){let e,i,s=null,r=null;return t&&!Array.isArray(t)?(s=t.rings?t.rings:null,n||(t.spatialReference?n=t.spatialReference:t.rings||(n=t)),e=t.hasZ,i=t.hasM):s=t,s=s||[],n=n||f.Z.WGS84,s.length&&s[0]&&null!=s[0][0]&&"number"==typeof s[0][0]&&(s=[s]),r=s[0]&&s[0][0],r&&(void 0===e&&void 0===i?(e=r.length>2,i=r.length>3):void 0===e?e=i?r.length>3:r.length>2:void 0===i&&(i=e?r.length>3:r.length>2)),{rings:s,spatialReference:n,hasZ:e,hasM:i}}get cache(){return this.commitProperty("rings"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get centroid(){const t=m(this);if(!t||isNaN(t[0])||isNaN(t[1])||this.hasZ&&isNaN(t[2]))return null;const n=new p.Z;return n.x=t[0],n.y=t[1],n.spatialReference=this.spatialReference,this.hasZ&&(n.z=t[2]),n}get extent(){const{spatialReference:t}=this,n=(0,v._w)(this);if(!n)return null;const e=new u.Z(n);return e.spatialReference=t,e}get isSelfIntersecting(){return(0,Z.Ff)(this.rings)}writeRings(t,n){n.rings=(0,r.d9)(this.rings)}addRing(t){if(!t)return;const n=this.rings,e=n.length;if(M(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.concat();return this.notifyChange("rings"),this}clone(){const t=new d;return t.spatialReference=this.spatialReference,t.rings=(0,r.d9)(this.rings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if((0,o.Wi)(t))return!1;const n=this.spatialReference,e=t.spatialReference;if((0,o.pC)(n)!==(0,o.pC)(e))return!1;if((0,o.pC)(n)&&(0,o.pC)(e)&&!n.equals(e))return!1;if(this.rings.length!==t.rings.length)return!1;const i=([t,n,e,i],[s,r,o,h])=>t===s&&n===r&&(null==e&&null==o||e===o)&&(null==i&&null==h||i===h);for(let n=0;n<this.rings.length;n++){const e=this.rings[n],r=t.rings[n];if(!(0,s.fS)(e,r,i))return!1}return!0}contains(t){if(!t)return!1;const n=(0,R.iV)(t,this.spatialReference);return(0,x.CI)(this,(0,o.pC)(n)?n:t)}isClockwise(t){let n;return n=M(t)?t.map((t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])):t,(0,g.bu)(n,this.hasM,this.hasZ)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.rings[t][n],i=this.hasZ,s=this.hasM;return i&&!s?new p.Z(e[0],e[1],e[2],void 0,this.spatialReference):s&&!i?new p.Z(e[0],e[1],void 0,e[2],this.spatialReference):i&&s?new p.Z(e[0],e[1],e[2],e[3],this.spatialReference):new p.Z(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,w.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t].splice(n,0,e),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new p.Z(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),e}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new p.Z(t,e)));return this.notifyChange("rings"),i}setPoint(t,n,e){return this._validateInputs(t,n)?((0,w.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t][n]=e,this.notifyChange("rings"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const i=this.rings[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i._)([(0,h.Cb)({readOnly:!0})],C.prototype,"cache",null),(0,i._)([(0,h.Cb)({readOnly:!0})],C.prototype,"centroid",null),(0,i._)([(0,h.Cb)({readOnly:!0})],C.prototype,"extent",null),(0,i._)([(0,h.Cb)({readOnly:!0})],C.prototype,"isSelfIntersecting",null),(0,i._)([(0,h.Cb)({type:[[[Number]]],json:{write:{isRequired:!0}}})],C.prototype,"rings",void 0),(0,i._)([(0,l.c)("rings")],C.prototype,"writeRings",null),C=d=(0,i._)([(0,a.j)("esri.geometry.Polygon")],C),C.prototype.toJSON.isDefaultToJSON=!0;const A=C},58901:(t,n,e)=>{e.d(n,{Z:()=>y});var i,s=e(43697),r=e(22974),o=e(5600),h=(e(75215),e(52011)),a=e(30556),l=e(6570),u=e(9361),c=e(13473),p=e(82971),f=e(49600),g=e(16238);let m=i=class extends u.Z{constructor(...t){super(...t),this.paths=[],this.type="polyline"}normalizeCtorArgs(t,n){let e,i,s=null,r=null;return t&&!Array.isArray(t)?(s=t.paths?t.paths:null,n||(t.spatialReference?n=t.spatialReference:t.paths||(n=t)),e=t.hasZ,i=t.hasM):s=t,s=s||[],n=n||p.Z.WGS84,s.length&&s[0]&&null!=s[0][0]&&"number"==typeof s[0][0]&&(s=[s]),r=s[0]&&s[0][0],r&&(void 0===e&&void 0===i?(e=r.length>2,i=!1):void 0===e?e=!i&&r.length>3:void 0===i&&(i=!e&&r.length>3)),{paths:s,spatialReference:n,hasZ:e,hasM:i}}get cache(){return this.commitProperty("paths"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const{spatialReference:t}=this,n=(0,f.Wn)(this);if(!n)return null;const e=new l.Z(n);return e.spatialReference=t,e}writePaths(t,n){n.paths=(0,r.d9)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const i=[];for(let n=0,e=t.length;n<e;n++)i[n]=t[n].toArray();n[e]=i}else n[e]=t.concat();return this.notifyChange("paths"),this}clone(){const t=new i;return t.spatialReference=this.spatialReference,t.paths=(0,r.d9)(this.paths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],i=this.hasZ,s=this.hasM;return i&&!s?new c.Z(e[0],e[1],e[2],void 0,this.spatialReference):s&&!i?new c.Z(e[0],e[1],void 0,e[2],this.spatialReference):i&&s?new c.Z(e[0],e[1],e[2],e[3],this.spatialReference):new c.Z(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,g.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,i=n.map((t=>new c.Z(t,e)));return this.notifyChange("paths"),i}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.Z(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,g.l)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const i=this.paths[t];if(e&&(n<0||n>i.length))return!1;if(!e&&(n<0||n>=i.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s._)([(0,o.Cb)({readOnly:!0})],m.prototype,"cache",null),(0,s._)([(0,o.Cb)({readOnly:!0})],m.prototype,"extent",null),(0,s._)([(0,o.Cb)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,s._)([(0,a.c)("paths")],m.prototype,"writePaths",null),m=i=(0,s._)([(0,h.j)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0;const y=m},20322:(t,n,e)=>{function i(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function s(t){return void 0!==t.points}function r(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths}function h(t){return void 0!==t.rings}function a(t){return(n,e)=>null==n?e:null==e?n:t(n,e)}e.d(n,{$P:()=>c,Yg:()=>p,lC:()=>m,C6:()=>f});const l=a(Math.min),u=a(Math.max);function c(t,n){return o(n)?f(t,n.paths,!1,!1):h(n)?f(t,n.rings,!1,!1):s(n)?m(t,n.points,!1,!1,!1,!1):i(n)?g(t,n):(r(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function p(t,n){return o(n)?f(t,n.paths,!0,!1):h(n)?f(t,n.rings,!0,!1):s(n)?m(t,n.points,!0,!1,!0,!1):i(n)?g(t,n,0,0,!0,!1):(r(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function f(t,n,e,i){const s=e?3:2;if(!n.length||!n[0].length)return null;let r,o,h,a,[c,p]=n[0][0],[f,g]=n[0][0];for(let t=0;t<n.length;t++){const m=n[t];for(let t=0;t<m.length;t++){const n=m[t],[y,d]=n;if(c=l(c,y),p=l(p,d),f=u(f,y),g=u(g,d),e&&n.length>2){const t=n[2];r=l(r,t),o=u(o,t)}if(i&&n.length>s){const t=n[s];h=l(r,t),a=u(o,t)}}}return e?i?(t[0]=c,t[1]=p,t[2]=r,t[3]=h,t[4]=f,t[5]=g,t[6]=o,t[7]=a,t.length=8,t):(t[0]=c,t[1]=p,t[2]=r,t[3]=f,t[4]=g,t[5]=o,t.length=6,t):i?(t[0]=c,t[1]=p,t[2]=h,t[3]=f,t[4]=g,t[5]=a,t.length=6,t):(t[0]=c,t[1]=p,t[2]=f,t[3]=g,t.length=4,t)}function g(t,n,e,i,s,r){const o=n.xmin,h=n.xmax,a=n.ymin,l=n.ymax;let u=n.zmin,c=n.zmax,p=n.mmin,f=n.mmax;return s?(u=u||0,c=c||0,r?(p=p||0,f=f||0,t[0]=o,t[1]=a,t[2]=u,t[3]=p,t[4]=h,t[5]=l,t[6]=c,t[7]=f,t):(t[0]=o,t[1]=a,t[2]=u,t[3]=h,t[4]=l,t[5]=c,t)):r?(p=p||0,f=f||0,t[0]=o,t[1]=a,t[2]=p,t[3]=h,t[4]=l,t[5]=f,t):(t[0]=o,t[1]=a,t[2]=h,t[3]=l,t)}function m(t,n,e,i,s,r){const o=e?3:2,h=i&&r,a=e&&s;if(!n.length||!n[0].length)return null;let c,p,f,g,[m,y]=n[0],[d,x]=n[0];for(let t=0;t<n.length;t++){const e=n[t],[i,s]=e;if(m=l(m,i),y=l(y,s),d=u(d,i),x=u(x,s),a&&e.length>2){const t=e[2];c=l(c,t),p=u(p,t)}if(h&&e.length>o){const t=e[o];f=l(c,t),g=u(p,t)}}return s?(c=c||0,p=p||0,r?(f=f||0,g=g||0,t[0]=m,t[1]=y,t[2]=c,t[3]=f,t[4]=d,t[5]=x,t[6]=p,t[7]=g,t):(t[0]=m,t[1]=y,t[2]=c,t[3]=d,t[4]=x,t[5]=p,t)):r?(f=f||0,g=g||0,t[0]=m,t[1]=y,t[2]=f,t[3]=d,t[4]=x,t[5]=g,t):(t[0]=m,t[1]=y,t[2]=d,t[3]=x,t)}},86662:(t,n,e)=>{function i(t,n){const e=n[0]-t[0],i=n[1]-t[1];if(t.length>2&&n.length>2){const s=t[2]-n[2];return Math.sqrt(e*e+i*i+s*s)}return Math.sqrt(e*e+i*i)}function s(t,n){return function(t,n,e){const i=t[0]+e*(n[0]-t[0]),s=t[1]+e*(n[1]-t[1]);return t.length>2&&n.length>2?[i,s,t[2]+e*(n[2]-t[2])]:[i,s]}(t,n,.5)}function r(t,n,e){const i=t.length;let s=0,r=0,o=0;for(let h=0;h<i;h++){const a=t[h],l=t[(h+1)%i];let u=2;s+=a[0]*l[1]-l[0]*a[1],a.length>2&&l.length>2&&e&&(r+=a[0]*l[2]-l[0]*a[2],u=3),a.length>u&&l.length>u&&n&&(o+=a[0]*l[u]-l[0]*a[u])}return s<=0&&r<=0&&o<=0}e.d(n,{xA:()=>i,Gi:()=>s,bu:()=>r}),e(8744)},49600:(t,n,e)=>{e.d(n,{aO:()=>u,_w:()=>c,Wn:()=>p});var i=e(20322);const s=[];function r(t,n,e,i){return{xmin:t,ymin:n,xmax:e,ymax:i}}function o(t,n,e,i,s,r){return{xmin:t,ymin:n,zmin:e,xmax:i,ymax:s,zmax:r}}function h(t,n,e,i,s,r){return{xmin:t,ymin:n,mmin:e,xmax:i,ymax:s,mmax:r}}function a(t,n,e,i,s,r,o,h){return{xmin:t,ymin:n,zmin:e,mmin:i,xmax:s,ymax:r,zmax:o,mmax:h}}function l(t,n=!1,e=!1){return n?e?a(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):o(t[0],t[1],t[2],t[3],t[4],t[5]):e?h(t[0],t[1],t[2],t[3],t[4],t[5]):r(t[0],t[1],t[2],t[3])}function u(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:e,z:i,m:s}=t,l=null!=s;return null!=i?l?a(n,e,i,s,n,e,i,s):o(n,e,i,n,e,i):l?h(n,e,s,n,e,s):r(n,e,n,e)}(t):function(t){return void 0!==t.rings}(t)?c(t):function(t){return void 0!==t.paths}(t)?p(t):function(t){return void 0!==t.points}(t)?function(t){const{hasZ:n,hasM:e,points:r}=t;return l((0,i.lC)(s,r,n,e),n,e)}(t):null:null}function c(t){const{hasZ:n,hasM:e,rings:r}=t,o=(0,i.C6)(s,r,n,e);return o?l(o,n,e):null}function p(t){const{hasZ:n,hasM:e,paths:r}=t,o=(0,i.C6)(s,r,n,e);return o?l(o,n,e):null}},16238:(t,n,e)=>{function i(t,n,e=!1){let{hasM:i,hasZ:s}=t;Array.isArray(n)?4!==n.length||i||s?3===n.length&&e&&!i?(s=!0,i=!1):3===n.length&&i&&s&&(i=!1,s=!1):(i=!0,s=!0):(s=!s&&n.hasZ&&(!i||n.hasM),i=!i&&n.hasM&&(!s||n.hasZ)),t.hasZ=s,t.hasM=i}e.d(n,{l:()=>i})}}]);
@@ -1,5 +0,0 @@
1
- /*
2
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- See https://js.arcgis.com/4.23/esri/copyright.txt for details.
4
- */
5
- const l=["none","underline","line-through"],o=["normal","italic","oblique"],e=["normal","lighter","bold","bolder"];export{l as FONT_DECORATIONS,o as FONT_STYLES,e as FONT_WEIGHTS};
@@ -1,5 +0,0 @@
1
- /*
2
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- See https://js.arcgis.com/4.23/esri/copyright.txt for details.
4
- */
5
- import{isSome as e}from"../../core/maybe.js";import{getJsonType as r}from"../../geometry/support/jsonUtils.js";import{toDynamicLayersJSON as t}from"../../rest/utils.js";const n=e=>e.spatialReference.wkid||JSON.stringify(e.spatialReference);function i(i,a){const{dpi:o,gdbVersion:s,geometry:m,geometryPrecision:l,height:y,layerOption:f,mapExtent:p,maxAllowableOffset:c,returnFieldName:u,returnGeometry:g,returnUnformattedValues:d,returnZ:x,spatialReference:O,timeExtent:$,tolerance:N,width:j}=i.toJSON(),{dynamicLayers:R,layerDefs:b,layerIds:w}=t(i),J=a&&e(a.geometry)?a.geometry:null,S={geometryPrecision:l,maxAllowableOffset:c,returnFieldName:u,returnGeometry:g,returnUnformattedValues:d,returnZ:x,tolerance:N},V=J&&J.toJSON()||m;if(S.imageDisplay=`${j},${y},${o}`,s&&(S.gdbVersion=s),V&&(delete V.spatialReference,S.geometry=JSON.stringify(V),S.geometryType=r(V)),O?S.sr=O.wkid||JSON.stringify(O):V&&V.spatialReference?S.sr=n(V):p&&p.spatialReference&&(S.sr=n(p)),S.time=$?$.join(","):null,p){const{xmin:e,ymin:r,xmax:t,ymax:n}=p;S.mapExtent=`${e},${r},${t},${n}`}return b&&(S.layerDefs=b),R&&!b&&(S.dynamicLayers=R),S.layers=f,w&&!R&&(S.layers+=`:${w.join(",")}`),S}export{i as identifyToIdentifyRESTParameters};
@@ -1,5 +0,0 @@
1
- /*
2
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- See https://js.arcgis.com/4.23/esri/copyright.txt for details.
4
- */
5
- import{_ as t}from"../../../../chunks/tslib.es6.js";import e from"../../../../Graphic.js";import i from"../../../../core/Accessor.js";import{neverReached as s}from"../../../../core/compilerUtils.js";import r from"../../../../core/Handles.js";import{logOnError as n}from"../../../../core/promiseUtils.js";import{init as a}from"../../../../core/watchUtils.js";import{property as o}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/arrayUtils.js";import"../../../../core/has.js";import"../../../../core/accessorSupport/ensureType.js";import{subclass as l}from"../../../../core/accessorSupport/decorators/subclass.js";import{diff as p}from"../../../../core/accessorSupport/diffUtils.js";import{canProject as h,project as d}from"../../../../geometry/support/webMercatorUtils.js";import c from"../../../../rest/support/Query.js";import{SUSPEND_RESUME_EXTENT_OPTIMISM as u}from"./constants.js";import{Graphics3DCore as g}from"./Graphics3DCore.js";import y from"./Graphics3DElevationAlignment.js";import{Graphics3DFilterVisibility as m}from"./Graphics3DFilterVisibility.js";import f from"./Graphics3DFrustumVisibility.js";import{Graphics3DObjectStates as b}from"./Graphics3DObjectStates.js";import w from"./Graphics3DScaleVisibility.js";import{enlargeExtent as x}from"./graphicUtils.js";import{attributeLookup as E}from"../support/attributeUtils.js";import{Object3DState as C}from"../../webgl-engine/lib/basicInterfaces.js";import{WatchUpdatingTracking as v}from"../../../support/WatchUpdatingTracking.js";let V=class extends i{constructor(t){super(t),this.type="graphics-3d",this._handles=new r,this.watchUpdatingTracking=new v,this.suspendResumeExtentMode="computed",this.dataExtent=null,this.suspendResumeExtent=null}get suspended(){var t;return null==(t=this.scaleVisibility)?void 0:t.suspended}get suspendInfo(){var t,e;const i={};return null!=(t=this.scaleVisibility)&&t.suspended&&(i.outsideScaleRange=!0),null!=(e=this.frustumVisibility)&&e.suspended&&(i.outsideOfView=!0),i}get updating(){var t,e,i;return!!(null!=(t=this.graphicsCore)&&t.updating||null!=(e=this.frustumVisibility)&&e.updating||null!=(i=this.watchUpdatingTracking)&&i.updating)}get featureStore(){var t;return null==(t=this.graphicsCore)?void 0:t.featureStore}normalizeCtorArgs(t){const e=t.frustumVisibilityEnabled?new f:null,i=t.scaleVisibilityEnabled?new w:null,s=(t.filterVisibilityEnabled||t.timeExtentVisibilityEnabled)&&"multipatch"!==t.layer.geometryType?new m:null,r=t.elevationAlignmentEnabled?new y:null,n=new g({owner:t.owner,layer:t.layer,preferredUpdatePolicy:t.preferredUpdatePolicy,elevationFeatureExpressionEnabled:t.elevationFeatureExpressionEnabled,graphicSymbolSupported:!1,hasZ:t.owner.hasZ,hasM:t.owner.hasM}),{updateClippingExtent:a,suspendResumeExtentMode:o,dataExtent:l}=t;return{graphicsCore:n,frustumVisibility:e,scaleVisibility:i,filterVisibility:s,elevationAlignment:r,updateClippingExtent:a,suspendResumeExtentMode:o,dataExtent:l}}initialize(){this.scaleVisibility&&this.watchUpdatingTracking.add((()=>this.layer.effectiveScaleRange),(()=>this.scaleVisibility.layerMinMaxScaleChangeHandler())),this.filterVisibility&&(this.watchUpdatingTracking.add((()=>this.owner.filter),(()=>this.filterVisibility.filterChanged())),this.watchUpdatingTracking.add((()=>this.owner&&"feature-3d"===this.owner.type&&this.owner.timeExtent),(()=>this.filterVisibility.filterChanged()))),this.elevationAlignment&&this.watchUpdatingTracking.add((()=>this.layer.elevationInfo),((t,e)=>{p(t,e)&&this.watchUpdatingTracking.addPromise(this.graphicsCore.elevationInfoChange())})),this.watchUpdatingTracking.add((()=>this.layer.labelsVisible),(()=>this.graphicsCore.updateVisibilityInfo())),this.watchUpdatingTracking.add((()=>this.layer.labelingInfo),((t,e)=>{p(t,e)&&this.graphicsCore.updateLabelingInfo()}))}async setup(){this.frustumVisibility&&this.frustumVisibility.setup(this.owner);const t=this.owner,e=this.owner.view.basemapTerrain,i=(t,e,i)=>this.graphicsCore.spatialIndex.queryGraphicUIDsInExtent(t,e,i);if(this.scaleVisibility&&this.scaleVisibility.setup(t,this.layer,i,this.graphicsCore,e),this.filterVisibility&&("filter"in t||"timeExtent"in t)&&this.filterVisibility.setup(t,this.graphicsCore),this.elevationAlignment){const e=t.view.elevationProvider;this.elevationAlignment.setup(t,i,this.graphicsCore,e)}this._set("objectStates",new b(this.graphicsCore)),this._set("labeling",this.owner.view.labeler.addGraphicsOwner(this.graphicsCore,this.scaleVisibility)),this._set("deconfliction",t.view.deconflictor.addGraphicsOwner(this.graphicsCore)),await n(this.graphicsCore.setup({elevationAlignment:this.elevationAlignment,scaleVisibility:this.scaleVisibility,filterVisibility:this.filterVisibility,deconflictor:this.deconfliction,labeler:this.labeling,objectStates:this.objectStates})),this.watchUpdatingTracking.add((()=>this.layer.renderer),(t=>this.watchUpdatingTracking.addPromise(this.graphicsCore.rendererChange(t)))),this.watchUpdatingTracking.add((()=>t.fullOpacity),(()=>this.graphicsCore.opacityChange())),this._setupSuspendResumeExtent(),this.updateClippingExtent&&(this.watchUpdatingTracking.add((()=>t.view.clippingArea),(()=>this._updateClippingExtent())),this._updateClippingExtent()),this.graphicsCore.startCreateGraphics(),this.graphicsCore.labelsEnabled&&await n(this.graphicsCore.updateLabelingInfo())}destroy(){this._handles&&(this._handles.destroy(),this._handles=null);const t=["watchUpdatingTracking","frustumVisibility","scaleVisibility","filterVisibility","elevationAlignment","objectStates","graphicsCore"];for(const e of t){const t=this[e];t&&(t.destroy(),this._set(e,null))}this._set("layer",null),this._set("owner",null)}maskOccludee(t){const{set:e,handle:i}=this.objectStates.acquireSet(C.MaskOccludee,null);return this.objectStates.setUid(e,t.uid),i}highlight(t,i){if(t instanceof c){const{set:e,handle:s}=this.objectStates.acquireSet(C.Highlight,i);return this.owner.queryObjectIds(t).then((t=>this.objectStates.setObjectIds(e,t))),s}if("number"==typeof t||"string"==typeof t)return this.highlight([t],i);if(t instanceof e)return this.highlight([t],i);if("toArray"in t&&(t=t.toArray()),Array.isArray(t)&&t.length>0){if(t[0]instanceof e){const e=t;if(null==E(this.layer.fieldsIndex,e[0].attributes,i)){const t=e.map((t=>t.uid)),{set:i,handle:s}=this.objectStates.acquireSet(C.Highlight,null);return this.objectStates.setUids(i,t),s}t=e.map((t=>E(this.layer.fieldsIndex,t.attributes,i)))}if("number"==typeof t[0]||"string"==typeof t[0]){const e=t,{set:s,handle:r}=this.objectStates.acquireSet(C.Highlight,i);return this.objectStates.setObjectIds(s,e),r}}return U}_updateClippingExtent(){const t=this.owner.view.clippingArea;this.graphicsCore.setClippingExtent(t,this.owner.view.spatialReference)&&(this.updateClippingExtent(t)||this.graphicsCore.recreateAllGraphics())}_setupSuspendResumeExtent(){(this.frustumVisibility||this.scaleVisibility)&&this._handles.add(a(this,"suspendResumeExtentMode",(()=>{switch(this._handles.remove(S),this.suspendResumeExtentMode){case"computed":this._handles.add([a(this.graphicsCore,"computedExtent",(t=>this._updateSuspendResumeExtent(t))),this.graphicsCore.watch("extentPadding",(()=>this._updateSuspendResumeExtent(this.graphicsCore.computedExtent)))],S);break;case"data":this._handles.add([a(this,"dataExtent",(t=>this._updateSuspendResumeExtent(t))),this.graphicsCore.watch("extentPadding",(()=>this._updateSuspendResumeExtent(this.dataExtent)))],S);break;default:s(this.suspendResumeExtentMode)}})))}_updateSuspendResumeExtent(t){t?this._suspendResumeExtentChanged(this._extentToSuspendResumeRect(t,this.suspendResumeExtent)):this._suspendResumeExtentChanged(null)}_extentToSuspendResumeRect(t,e){const i=this.owner.view.spatialReference;if(!t.spatialReference.equals(i)){if(!h(t,i))return;t=d(t,i)}return x(t,e,u,this.graphicsCore.extentPadding)}_suspendResumeExtentChanged(t){this.frustumVisibility&&this.frustumVisibility.setExtent(t),this.scaleVisibility&&this.scaleVisibility.setExtent(t)}};t([o()],V.prototype,"type",void 0),t([o({aliasOf:"graphicsCore.layer"})],V.prototype,"layer",void 0),t([o({aliasOf:"graphicsCore.owner"})],V.prototype,"owner",void 0),t([o({constructOnly:!0})],V.prototype,"updateClippingExtent",void 0),t([o({constructOnly:!0})],V.prototype,"graphicsCore",void 0),t([o({constructOnly:!0})],V.prototype,"scaleVisibility",void 0),t([o({constructOnly:!0})],V.prototype,"filterVisibility",void 0),t([o({constructOnly:!0})],V.prototype,"elevationAlignment",void 0),t([o({constructOnly:!0})],V.prototype,"frustumVisibility",void 0),t([o({readOnly:!0})],V.prototype,"deconfliction",void 0),t([o({readOnly:!0})],V.prototype,"labeling",void 0),t([o({readOnly:!0})],V.prototype,"objectStates",void 0),t([o({readOnly:!0})],V.prototype,"watchUpdatingTracking",void 0),t([o()],V.prototype,"suspendResumeExtentMode",void 0),t([o()],V.prototype,"dataExtent",void 0),t([o({readOnly:!0})],V.prototype,"suspended",null),t([o({readOnly:!0})],V.prototype,"suspendInfo",null),t([o({readOnly:!0,dependsOn:["graphicsCore.updating","frustumVisibility.updating","watchUpdatingTracking.updating"]})],V.prototype,"updating",null),t([o()],V.prototype,"featureStore",null),V=t([l("esri.views.3d.layers.graphics.Graphics3DFeatureLikeLayerView")],V);const j=V,S="suspendResumeExtentMode",U={remove(){},pause(){},resume(){}};export{j as default};
@@ -1,5 +0,0 @@
1
- /*
2
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- See https://js.arcgis.com/4.23/esri/copyright.txt for details.
4
- */
5
- import{_ as t}from"../../../../chunks/tslib.es6.js";import e from"../../../../Graphic.js";import i from"../../../../core/Accessor.js";import s from"../../../../core/Collection.js";import r from"../../../../core/Handles.js";import{isSome as a,destroyMaybe as o,isNone as n}from"../../../../core/maybe.js";import{isAbortError as c}from"../../../../core/promiseUtils.js";import{init as p}from"../../../../core/watchUtils.js";import{property as h}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/arrayUtils.js";import"../../../../core/has.js";import"../../../../core/accessorSupport/ensureType.js";import{subclass as l}from"../../../../core/accessorSupport/decorators/subclass.js";import{diff as d}from"../../../../core/accessorSupport/diffUtils.js";import u from"../../../../layers/Layer.js";import{hydrateGraphic as g}from"../../../../layers/graphics/hydratedFeatures.js";import m from"../../../../rest/support/Query.js";import{SUSPEND_RESUME_EXTENT_OPTIMISM as y}from"./constants.js";import{Graphics3DCore as f}from"./Graphics3DCore.js";import b from"./Graphics3DElevationAlignment.js";import{Graphics3DObjectStates as j}from"./Graphics3DObjectStates.js";import w from"./Graphics3DScaleVisibility.js";import{enlargeExtent as C}from"./graphicUtils.js";import{UpdatePolicy as S,Object3DState as v}from"../../webgl-engine/lib/basicInterfaces.js";import{WatchUpdatingTracking as x}from"../../../support/WatchUpdatingTracking.js";let E=class extends i{constructor(t){super(t),this.type="graphics-3d",this.graphicsCore=null,this.elevationAlignment=new b,this.watchUpdatingTracking=new x,this.handles=new r,this.suspendResumeExtent=null}normalizeCtorArgs(t){let e=null;t.scaleVisibilityEnabled&&(delete(t={...t}).scaleVisibilityEnabled,e=new w);const i=new f({owner:t.owner,layer:t.layer,preferredUpdatePolicy:S.SYNC,graphicSymbolSupported:!0});return{...t,graphicsCore:i,scaleVisibility:e}}initialize(){const{layer:t,scaleVisibility:e}=this;a(e)&&"graphics"===t.type&&this.watchUpdatingTracking.add((()=>t.effectiveScaleRange),(()=>e.layerMinMaxScaleChangeHandler())),"graphics"===t.type&&this.watchUpdatingTracking.add((()=>t.elevationInfo),((t,e)=>{d(t,e)&&this.watchUpdatingTracking.addPromise(this.graphicsCore.elevationInfoChange())}))}async setup(){const t=(t,e,i)=>this.graphicsCore.spatialIndex.queryGraphicUIDsInExtent(t,e,i);if(this.elevationAlignment.setup(this.owner,t,this.graphicsCore,this.view.elevationProvider),a(this.scaleVisibility)&&"effectiveScaleRange"in this.layer){const e=this.owner.view.basemapTerrain;this.scaleVisibility.setup(this.owner,this.layer,t,this.graphicsCore,e)}this._set("objectStates",new j(this.graphicsCore));try{await this.graphicsCore.setup({elevationAlignment:this.elevationAlignment,scaleVisibility:this.scaleVisibility,objectStates:this.objectStates})}catch(e){if(c(e))return;throw e}this.destroyed||(this.handles.add(this.view.watch("clippingArea",(()=>this._updateClippingExtent()),!0)),this._updateClippingExtent(),this._setupSuspendResumeExtent(),this.graphicsCore.startCreateGraphics())}destroy(){this.handles=o(this.handles),this.watchUpdatingTracking.destroy(),this._set("elevationAlignment",o(this.elevationAlignment)),this._set("scaleVisibility",o(this.scaleVisibility)),this._set("objectStates",o(this.objectStates)),this._set("graphicsCore",o(this.graphicsCore))}get suspended(){return!(!a(this.scaleVisibility)||!this.scaleVisibility.suspended)}get updating(){var t,e;return!!(null!=(t=this.graphicsCore)&&t.updating||a(this.scaleVisibility)&&this.scaleVisibility.updating||null!=(e=this.watchUpdatingTracking)&&e.updating)}getGraphicFromGraphicUid(t){if(this.owner.loadedGraphics){const e=this.owner.loadedGraphics.find((e=>e.uid===t));if(e){const t=this.layer instanceof u?this.layer:null;return g(e,t)}}}whenGraphicBounds(t,e){return this.graphicsCore?this.graphicsCore.whenGraphicBounds(t,e):Promise.reject()}computeAttachmentOrigin(t,e){return this.graphicsCore?this.graphicsCore.computeAttachmentOrigin(t,e):null}getSymbolLayerSize(t,e){return this.graphicsCore?this.graphicsCore.getSymbolLayerSize(t,e):null}maskOccludee(t){const{set:e,handle:i}=this.objectStates.acquireSet(v.MaskOccludee,null);return this.objectStates.setUid(e,t.uid),i}highlight(t){if(t instanceof m)return V;if("number"==typeof t)return this.highlight([t]);if(t instanceof e)return this.highlight([t]);if(t instanceof s&&(t=t.toArray()),Array.isArray(t)&&t.length>0){if(t[0]instanceof e){const e=t.map((t=>t.uid)),{set:i,handle:s}=this.objectStates.acquireSet(v.Highlight,null);return this.objectStates.setUids(i,e),s}if("number"==typeof t[0]){const e=t,{set:i,handle:s}=this.objectStates.acquireSet(v.Highlight,null);return this.objectStates.setObjectIds(i,e),s}}return V}_updateClippingExtent(){const t=this.view.clippingArea;this.graphicsCore.setClippingExtent(t,this.view.spatialReference)&&this.graphicsCore.recreateAllGraphics()}_updateSuspendResumeExtent(){n(this.scaleVisibility)||(this.suspendResumeExtent=C(this.graphicsCore.computedExtent,this.suspendResumeExtent,y,this.graphicsCore.extentPadding),this.scaleVisibility.setExtent(this.suspendResumeExtent))}_setupSuspendResumeExtent(){n(this.scaleVisibility)||(p(this.graphicsCore,"computedExtent",(t=>this._updateSuspendResumeExtent()),!0),this.graphicsCore.watch("extentPadding",(t=>this._updateSuspendResumeExtent())))}};t([h()],E.prototype,"type",void 0),t([h({constructOnly:!0})],E.prototype,"owner",void 0),t([h({constructOnly:!0})],E.prototype,"layer",void 0),t([h({readOnly:!0,aliasOf:"owner.view"})],E.prototype,"view",void 0),t([h({constructOnly:!0})],E.prototype,"graphicsCore",void 0),t([h({constructOnly:!0})],E.prototype,"scaleVisibility",void 0),t([h({readOnly:!0})],E.prototype,"elevationAlignment",void 0),t([h({readOnly:!0})],E.prototype,"objectStates",void 0),t([h({readOnly:!0})],E.prototype,"watchUpdatingTracking",void 0),t([h({readOnly:!0})],E.prototype,"suspended",null),t([h({readOnly:!0})],E.prototype,"updating",null),E=t([l("esri.views.3d.layers.graphics.Graphics3DGraphicLikeLayerView")],E);const V={remove(){},pause(){},resume(){}},A=E;export{A as default};