@arcgis/core 6.0.0-next.42 → 6.0.0-next.43

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 (489) hide show
  1. package/Basemap.js +1 -1
  2. package/Graphic.js +1 -1
  3. package/Ground.js +1 -1
  4. package/WebDocument2D.js +1 -1
  5. package/WebScene.js +1 -1
  6. package/analysis/ElevationProfile/ElevationProfileLineScene.d.ts +1 -0
  7. package/analysis/ElevationProfileAnalysis.d.ts +15 -0
  8. package/analysis/LineOfSightAnalysis.d.ts +6 -1
  9. package/analysis/ShadowCastAnalysis.d.ts +18 -22
  10. package/analysis/ShadowCastAnalysis.js +1 -1
  11. package/analysis/ViewshedAnalysis.d.ts +6 -1
  12. package/applications/Components/analysisUtils.d.ts +6 -0
  13. package/applications/Components/analysisUtils.js +1 -1
  14. package/arcade/ArcadeModuleResolver.js +1 -1
  15. package/arcade/arcadeCompiler.js +1 -1
  16. package/arcade/featureset/actions/Adapted.js +1 -1
  17. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  18. package/arcade/featureset/support/FeatureSet.js +1 -1
  19. package/arcade/featureset/support/shared.js +1 -1
  20. package/arcade/featureset/support/sqlUtils.js +1 -1
  21. package/arcade/functions/knowledgegraph.js +1 -1
  22. package/arcade/functions/maths.js +1 -1
  23. package/assets/esri/core/workers/RemoteClient.js +1 -1
  24. package/assets/esri/core/workers/chunks/{2f54e4feb554c1a7b9c4.js → 02debe67e6fef9d88bdd.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{bd046399e05e759e0bc2.js → 035204000954973b0ebc.js} +1 -1
  26. package/assets/esri/core/workers/chunks/05225506fdba0c827407.js +1 -0
  27. package/assets/esri/core/workers/chunks/{4c73c493dabe949c2512.js → 077b755688346e0dc8d3.js} +1 -1
  28. package/assets/esri/core/workers/chunks/0c1d8e0c2eae21f97fc0.js +1 -0
  29. package/assets/esri/core/workers/chunks/105865a4d8cb4ddf8a8a.js +1 -0
  30. package/assets/esri/core/workers/chunks/{afe3e89737fb45189a99.js → 14ed0c34b910eba3434e.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{f67b37253d6d05d1e339.js → 14ef986665b4a1f6ccdc.js} +1 -1
  32. package/assets/esri/core/workers/chunks/158cbf4075d3eca83a6a.js +1 -0
  33. package/assets/esri/core/workers/chunks/{a03f15f2cbc3fed291c2.js → 15f2b27b8edc0d53e399.js} +1 -1
  34. package/assets/esri/core/workers/chunks/181d24ced5ef6b1f959b.js +1 -0
  35. package/assets/esri/core/workers/chunks/18dbee576b7b9dbe69fb.js +1 -0
  36. package/assets/esri/core/workers/chunks/1aebb8fe0692058bf2fb.js +1 -0
  37. package/assets/esri/core/workers/chunks/1cdb55d9a5ab1a5e3f08.js +1 -0
  38. package/assets/esri/core/workers/chunks/{cf2e5f827cea7d7319ce.js → 1e5c5029b0653047a769.js} +1 -1
  39. package/assets/esri/core/workers/chunks/20db6e844708d3e71437.js +1 -0
  40. package/assets/esri/core/workers/chunks/21a4c3d8265aca775616.js +1 -0
  41. package/assets/esri/core/workers/chunks/23fff0505e02fd364909.js +1 -0
  42. package/assets/esri/core/workers/chunks/286e3e050b29e6158e6f.js +1 -0
  43. package/assets/esri/core/workers/chunks/29ef9d357e30082d267a.js +1 -0
  44. package/assets/esri/core/workers/chunks/29feef121b0916fb90bf.js +1 -0
  45. package/assets/esri/core/workers/chunks/2ef91e8da260454f46d8.js +1 -0
  46. package/assets/esri/core/workers/chunks/32b9bedd4bb0504f0b1d.js +1 -0
  47. package/assets/esri/core/workers/chunks/{279089a6a3f08022c678.js → 361d620b3f91868b1490.js} +1 -1
  48. package/assets/esri/core/workers/chunks/37c16e20f022ca27cdae.js +1 -0
  49. package/assets/esri/core/workers/chunks/380aefa522dfeccb8c65.js +1 -0
  50. package/assets/esri/core/workers/chunks/394ae3199c78a94c6a2a.js +1 -0
  51. package/assets/esri/core/workers/chunks/{fdd2b35388f9fe42b623.js → 3a90b6eafa92f1a68ac5.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{6a65fc1a2931230fe994.js → 3bb1e06861cd0563ed9f.js} +1 -1
  53. package/assets/esri/core/workers/chunks/3f92afa58c895bf87e62.js +1 -0
  54. package/assets/esri/core/workers/chunks/422784ceae0d511868a0.js +1 -0
  55. package/assets/esri/core/workers/chunks/44782e8318dc47cb08a0.js +1 -0
  56. package/assets/esri/core/workers/chunks/{5882f349f3771868e67f.js → 4521f72ab0ea872e5d7c.js} +1 -1
  57. package/assets/esri/core/workers/chunks/45b5a61c4e9fbd9ca0b3.js +1 -0
  58. package/assets/esri/core/workers/chunks/47af220003adfca2167e.js +1 -0
  59. package/assets/esri/core/workers/chunks/487500443a6037d3599f.js +1 -0
  60. package/assets/esri/core/workers/chunks/4a4fab74442c3d914505.js +1 -0
  61. package/assets/esri/core/workers/chunks/4a8903fb1a5d30a68df9.js +1 -0
  62. package/assets/esri/core/workers/chunks/4d818b231e6d1fa73cc5.js +1 -0
  63. package/assets/esri/core/workers/chunks/{e0cf6e1e21d0ee739009.js → 4e03aa5518d46a36661c.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{1a614bac5db42c6263f8.js → 4fe10650ba3cd30aa9a2.js} +1 -1
  65. package/assets/esri/core/workers/chunks/50b8b1cce0a5f77c8372.js +1 -0
  66. package/assets/esri/core/workers/chunks/5470a29a69010c8361c4.js +1 -0
  67. package/assets/esri/core/workers/chunks/564d7f2e58fbc16853c0.js +1 -0
  68. package/assets/esri/core/workers/chunks/5c2e79f2ca401741bf3e.js +1 -0
  69. package/assets/esri/core/workers/chunks/5c9ab86bec07264dc9f2.js +1 -0
  70. package/assets/esri/core/workers/chunks/{04d55ed51e8b2683c4b4.js → 5d908a823b324bafda1e.js} +1 -1
  71. package/assets/esri/core/workers/chunks/5e6d6676a5c47c0e132a.js +1 -0
  72. package/assets/esri/core/workers/chunks/5fd4d3cb3c9350131a59.js +1 -0
  73. package/assets/esri/core/workers/chunks/60637f38159e9bf68d4e.js +1 -0
  74. package/assets/esri/core/workers/chunks/69b73251257088ce7099.js +1 -0
  75. package/assets/esri/core/workers/chunks/6cd17c3a254a0b5c2476.js +1 -0
  76. package/assets/esri/core/workers/chunks/{06102715e9a8f218e07c.js → 6f3732e7ba2d031ba789.js} +1 -1
  77. package/assets/esri/core/workers/chunks/7191ab31fa040a7c561e.js +1 -0
  78. package/assets/esri/core/workers/chunks/71ba848c3352ea3ff96f.js +1 -0
  79. package/assets/esri/core/workers/chunks/76dc8e3264a456f33e61.js +1 -0
  80. package/assets/esri/core/workers/chunks/77d80b6d65d761214a7c.js +1 -0
  81. package/assets/esri/core/workers/chunks/{e2430bc3a1edeb5c3266.js → 78a69594c82d37aecbfb.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{787c1a8bda7d745633f2.js → 81b9894e81cce3490984.js} +1 -1
  83. package/assets/esri/core/workers/chunks/85cd525705eec6803dd3.js +1 -0
  84. package/assets/esri/core/workers/chunks/863f04cacdc843d3f208.js +1 -0
  85. package/assets/esri/core/workers/chunks/8766832c7253557da8fe.js +1 -0
  86. package/assets/esri/core/workers/chunks/87992070008812f8ae6f.js +1 -0
  87. package/assets/esri/core/workers/chunks/892fd2c3533ce46a9258.js +1 -0
  88. package/assets/esri/core/workers/chunks/89b9d716d96135d4f057.js +1 -0
  89. package/assets/esri/core/workers/chunks/{4b2d392ad8e381bfd6b3.js → 89e9ebc8d5c1022cb265.js} +1 -1
  90. package/assets/esri/core/workers/chunks/8b38798ac6d774185238.js +1 -0
  91. package/assets/esri/core/workers/chunks/8b53369cace136ed1329.js +1 -0
  92. package/assets/esri/core/workers/chunks/8ba4f5e1912edf397947.js +1 -0
  93. package/assets/esri/core/workers/chunks/{987424121cf30b0f3c50.js → 8d3e92a3367a3ddc02bd.js} +1 -1
  94. package/assets/esri/core/workers/chunks/8e7a3b1b088c160f4db7.js +1 -0
  95. package/assets/esri/core/workers/chunks/8f4fba4d2339c91c8b3f.js +1 -0
  96. package/assets/esri/core/workers/chunks/{45aaefbdffe5e15dfb24.js → 919a6aedf38e9631ee09.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{487c46d5245cfb35c4bb.js → 921917e53bac82693ec8.js} +1 -1
  98. package/assets/esri/core/workers/chunks/92809b209b68abcb97ee.js +1 -0
  99. package/assets/esri/core/workers/chunks/{beccbfff549902733c4e.js → 9869c696e6321c8db0a9.js} +1 -1
  100. package/assets/esri/core/workers/chunks/98957dba728c93506e50.js +1 -0
  101. package/assets/esri/core/workers/chunks/99ffb839407cb3c26ad8.js +1 -0
  102. package/assets/esri/core/workers/chunks/9b517c8d26a86dedb921.js +1 -0
  103. package/assets/esri/core/workers/chunks/{cb2329d1ea72ce5cc057.js → 9c3f56f22e9baa80a387.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{1860104c2b33f68785dd.js → 9d0976f5979c4f9154dc.js} +1 -1
  105. package/assets/esri/core/workers/chunks/9fe1812aad6e566aea31.js +1 -0
  106. package/assets/esri/core/workers/chunks/a1602995ef96beb7df29.js +1 -0
  107. package/assets/esri/core/workers/chunks/{dff845574c0037a1dca6.js → a332e31165b65a6fb92e.js} +1 -1
  108. package/assets/esri/core/workers/chunks/a553478664a688f32488.js +1 -0
  109. package/assets/esri/core/workers/chunks/a7937b06f4b0860c7671.js +1 -0
  110. package/assets/esri/core/workers/chunks/{1980fd7ae1617ef4d19d.js → a95186214f1206efd8ed.js} +1 -1
  111. package/assets/esri/core/workers/chunks/{853563c66ecf58d53d36.js → ab60e8fbe0f92340616a.js} +1 -1
  112. package/assets/esri/core/workers/chunks/acea0946049136578354.js +1 -0
  113. package/assets/esri/core/workers/chunks/{342a97974a78007b25e0.js → ad94f54b4c88b3a047bc.js} +1 -1
  114. package/assets/esri/core/workers/chunks/ae29fec228e70a93ced1.js +1 -0
  115. package/assets/esri/core/workers/chunks/ae6dc159be974ca0e8da.js +1 -0
  116. package/assets/esri/core/workers/chunks/ae70972bf88d586fd453.js +1 -0
  117. package/assets/esri/core/workers/chunks/b021fa4654ede1d04279.js +1 -0
  118. package/assets/esri/core/workers/chunks/b03f32f02858244c6cd0.js +1 -0
  119. package/assets/esri/core/workers/chunks/b2d922ecc2c4899dbee1.js +1 -0
  120. package/assets/esri/core/workers/chunks/b42e50ec6b819f669400.js +1 -0
  121. package/assets/esri/core/workers/chunks/b6a82775b83d20599635.js +1 -0
  122. package/assets/esri/core/workers/chunks/b6d365b9198b74b05338.js +1 -0
  123. package/assets/esri/core/workers/chunks/{48c6230b8a6d3a8a7906.js → bc21241bc9acb83d1b1c.js} +1 -1
  124. package/assets/esri/core/workers/chunks/bd02d927b0b4991b61c5.js +1 -0
  125. package/assets/esri/core/workers/chunks/bdf1c4c038d556527483.js +1 -0
  126. package/assets/esri/core/workers/chunks/c1273f14a5ef3d81de0d.js +1 -0
  127. package/assets/esri/core/workers/chunks/c752f1e732bb019f657d.js +1 -0
  128. package/assets/esri/core/workers/chunks/{3f74c61359b4bd6dcf00.js → c7f49493bd548d5dc1e0.js} +1 -1
  129. package/assets/esri/core/workers/chunks/{36bafcc29ac133a05558.js → c86d3af148b28ded5875.js} +10 -10
  130. package/assets/esri/core/workers/chunks/{692f0093c444fcc752b5.js → cadd60fa4370284c7ae3.js} +1 -1
  131. package/assets/esri/core/workers/chunks/{d5e251cddd41d643510c.js → cb62326b6526cde429c1.js} +1 -1
  132. package/assets/esri/core/workers/chunks/cd8304b1db83d48c57db.js +1 -0
  133. package/assets/esri/core/workers/chunks/cdf0c7706d3e1221f49b.js +1 -0
  134. package/assets/esri/core/workers/chunks/d00dd961a5b79f563123.js +1 -0
  135. package/assets/esri/core/workers/chunks/d893c3bb093104d3db95.js +1 -0
  136. package/assets/esri/core/workers/chunks/d8fb1d9da16492574a11.js +1 -0
  137. package/assets/esri/core/workers/chunks/{520f499d79fa71f262c7.js → dd7e4c94a88452425750.js} +1 -1
  138. package/assets/esri/core/workers/chunks/ddb4689624d091922471.js +1 -0
  139. package/assets/esri/core/workers/chunks/df32a3fe81d60f0d7462.js +1 -0
  140. package/assets/esri/core/workers/chunks/dfc6b33f51dc81f3a7be.js +1 -0
  141. package/assets/esri/core/workers/chunks/e55934eb4a17a5b24c94.js +1 -0
  142. package/assets/esri/core/workers/chunks/{5473409fee59db80f87d.js → e5bdfef7c2cc5354be52.js} +1 -1
  143. package/assets/esri/core/workers/chunks/e8cdec961e9cff1cb73b.js +1 -0
  144. package/assets/esri/core/workers/chunks/{446d172834f8675f1202.js → eaf720dfdf6ceca31249.js} +1 -1
  145. package/assets/esri/core/workers/chunks/ef274db3fa260eadf371.js +1 -0
  146. package/assets/esri/core/workers/chunks/efca82a4dc494f57380b.js +1 -0
  147. package/assets/esri/core/workers/chunks/f05990e6fb378e2e1a3b.js +1 -0
  148. package/assets/esri/core/workers/chunks/f0fc89cdf50a40913c02.js +1 -0
  149. package/assets/esri/core/workers/chunks/{8b5dcc4282772bf6b675.js → f11eaab5354cc6aa9569.js} +1 -1
  150. package/assets/esri/core/workers/chunks/f1c2f7c7ce4bd4096eb0.js +1 -0
  151. package/assets/esri/core/workers/chunks/f4e63c5f82b8c2bbfacb.js +1 -0
  152. package/assets/esri/core/workers/chunks/f86ff791a10c802879ec.js +1 -0
  153. package/assets/esri/core/workers/chunks/{7452b5ae971a9ff2e6e9.js → fdffefd7de540272a8a6.js} +1 -1
  154. package/assets/esri/core/workers/chunks/fe0248af95d3f37e099e.js +1 -0
  155. package/chunks/languageUtils.js +1 -1
  156. package/config.js +1 -1
  157. package/core/Accessor.js +1 -1
  158. package/core/Collection.js +1 -1
  159. package/core/LRUCache.js +1 -1
  160. package/core/MapUtils.js +1 -1
  161. package/core/Version.js +1 -1
  162. package/core/asyncUtils.js +1 -1
  163. package/core/fontUtils.js +1 -1
  164. package/core/has.js +1 -1
  165. package/core/sql/SqlInterval.js +1 -1
  166. package/core/sql/WhereClause.js +1 -1
  167. package/core/sql/writeUtils.js +1 -1
  168. package/core/sql.js +1 -1
  169. package/core/urlUtils.js +1 -1
  170. package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
  171. package/editing/sharedTemplates/executor/builders/polygonBoundary.js +1 -1
  172. package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
  173. package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
  174. package/geometry/Point.js +1 -1
  175. package/geometry/Polygon.js +1 -1
  176. package/geometry/SpatialReference.js +1 -1
  177. package/geometry/support/webMercatorUtils.js +1 -1
  178. package/kernel.js +1 -1
  179. package/layers/FeatureLayer.js +1 -1
  180. package/layers/GeoJSONLayer.d.ts +5 -1
  181. package/layers/GeospatialPDFLayer.js +1 -1
  182. package/layers/KnowledgeGraphLayer.js +1 -1
  183. package/layers/LineOfSightLayer.d.ts +6 -1
  184. package/layers/LinkChartLayer.js +1 -1
  185. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  186. package/layers/SubtypeGroupLayer.js +1 -1
  187. package/layers/TileLayer.js +1 -1
  188. package/layers/VectorTileLayer.d.ts +53 -0
  189. package/layers/VectorTileLayer.js +1 -1
  190. package/layers/VideoLayer.js +1 -1
  191. package/layers/ViewshedLayer.d.ts +6 -1
  192. package/layers/VoxelLayer.js +1 -1
  193. package/layers/effects/jsonUtils.js +1 -1
  194. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  195. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  196. package/layers/graphics/data/QueryEngineResult.js +1 -1
  197. package/layers/graphics/data/projectionSupport.js +1 -1
  198. package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
  199. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  200. package/layers/graphics/sources/geojson/geojson.js +1 -1
  201. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  202. package/layers/graphics/sources/support/QueryTask.js +1 -1
  203. package/layers/graphics/sources/support/uploads.js +1 -1
  204. package/layers/knowledgeGraph/cypherUtils.js +1 -1
  205. package/layers/mixins/refresh.js +1 -1
  206. package/layers/ogc/ogcFeatureUtils.js +1 -1
  207. package/layers/ogc/wfsUtils.js +1 -1
  208. package/layers/parquet.js +1 -1
  209. package/layers/raster/datasets/BaseRaster.js +1 -1
  210. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  211. package/layers/raster/datasets/TIFFRaster.js +1 -1
  212. package/layers/raster/datasets/wcsCoverageParser.js +1 -1
  213. package/layers/raster/formats/Lerc.js +1 -1
  214. package/layers/support/ClientSideConnection.js +1 -1
  215. package/layers/support/ElevationSampler.js +1 -1
  216. package/layers/support/MultidimensionalSubset.js +1 -1
  217. package/layers/support/SpriteSource.js +1 -1
  218. package/layers/support/TileInfo.js +1 -1
  219. package/layers/support/fieldUtils.js +1 -1
  220. package/layers/support/infoFor3D.js +1 -1
  221. package/layers/support/vectorTileLayerLoader.js +1 -1
  222. package/layers/support/wmsUtils.js +1 -1
  223. package/layers/support/wmtsUtils.js +1 -1
  224. package/layers/video/videoUtils.js +1 -1
  225. package/libs/lyr3d/Lyr3DModule.js +1 -1
  226. package/linkChart/utils.js +1 -1
  227. package/networks/support/Circuit.js +1 -1
  228. package/networks/support/CircuitSection.js +1 -1
  229. package/package.json +2 -2
  230. package/portal/Portal.js +1 -1
  231. package/portal/PortalItemResource.js +1 -1
  232. package/portal/PortalQueryParams.js +1 -1
  233. package/renderers/HeatmapRenderer.js +1 -1
  234. package/renderers/UniqueValueRenderer.js +1 -1
  235. package/rest/knowledgeGraphService.js +1 -1
  236. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  237. package/rest/query/operations/queryAttachments.js +1 -1
  238. package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
  239. package/symbols/cim/types.d.ts +15 -11
  240. package/symbols/support/previewSymbol3D.js +1 -1
  241. package/tables/support/templateUtils.js +1 -1
  242. package/views/2d/engine/vectorTiles/SourceLayerData.js +1 -1
  243. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  244. package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
  245. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  246. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  247. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  248. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  249. package/views/2d/engine/vectorTiles/VectorTileSourceData.js +2 -0
  250. package/views/2d/engine/vectorTiles/WorkerTile.js +1 -1
  251. package/views/2d/engine/vectorTiles/WorkerTileHandler.js +1 -1
  252. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  253. package/views/2d/engine/vectorTiles/expression/expression.js +1 -1
  254. package/views/2d/engine/vectorTiles/style/Filter.js +1 -1
  255. package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSourceWorker.js +1 -1
  256. package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
  257. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  258. package/views/2d/engine/webgl/mesh/factories/MeshWriterGroupCoordinator.js +1 -1
  259. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +4 -4
  260. package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
  261. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  262. package/views/2d/layers/features/Processor.js +1 -1
  263. package/views/2d/layers/features/support/TileStore.js +1 -1
  264. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  265. package/views/2d/tiling/TileKey.js +1 -1
  266. package/views/2d/tiling/TileStrategy.js +1 -1
  267. package/views/3d/analysis/Dimension/LengthDimensionComputation.js +1 -1
  268. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  269. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  270. package/views/3d/analysis/images/generateTextures.js +1 -1
  271. package/views/3d/environment/EnvironmentView.js +1 -1
  272. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  273. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  274. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  275. package/views/3d/layers/I3SMeshView3D.js +1 -1
  276. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  277. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  278. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  279. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  280. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  281. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  282. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  283. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  284. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  285. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  286. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  287. package/views/3d/layers/graphics/MeshFastUpdateProcessor.js +1 -1
  288. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  289. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  290. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  291. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  292. package/views/3d/layers/i3s/I3SAsyncElevationUpdater.js +1 -1
  293. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  294. package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
  295. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  296. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  297. package/views/3d/state/ConstraintsManager.js +1 -1
  298. package/views/3d/state/controllers/GroundNavigationController.js +1 -1
  299. package/views/3d/support/QualityProfile.js +1 -1
  300. package/views/3d/support/TextureCollection.js +1 -1
  301. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  302. package/views/3d/terrain/TerrainRenderer.js +1 -1
  303. package/views/3d/terrain/Tile.js +1 -1
  304. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  305. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  306. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  307. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  308. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechniqueConfiguration.js +1 -1
  309. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  310. package/views/3d/webgl-engine/lib/CutFill.js +1 -1
  311. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  312. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  313. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  314. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  315. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  316. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  317. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  318. package/views/3d/webgl-engine/materials/intersectWithPolygonOffset.js +1 -1
  319. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  320. package/views/SceneView.js +1 -1
  321. package/views/SelectionManager.js +1 -1
  322. package/views/analysis/ElevationProfile/ElevationProfileChart.js +2 -2
  323. package/views/analysis/ElevationProfile/elevationProfileChartBoundsUtils.js +1 -1
  324. package/views/draw/DrawAction.js +1 -1
  325. package/views/draw/support/PluginContext.js +1 -1
  326. package/views/interactive/sketch/normalizedPoint.js +1 -1
  327. package/views/interactive/tooltip/fields/TooltipFieldElevation.js +1 -1
  328. package/views/interactive/tooltip/fields/TooltipFieldOrientation.js +1 -1
  329. package/views/interactive/tooltip/fields/TooltipFieldSize.js +1 -1
  330. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
  331. package/widgets/Attachments.js +1 -1
  332. package/widgets/Attribution/AttributionViewModel.js +1 -1
  333. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  334. package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
  335. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  336. package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +1 -1
  337. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  338. package/widgets/BatchAttributeForm.js +1 -1
  339. package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
  340. package/widgets/BuildingExplorer/BuildingExplorerViewModel.js +1 -1
  341. package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.js +1 -1
  342. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  343. package/widgets/CatalogLayerList.js +1 -1
  344. package/widgets/Compass/CompassViewModel.js +1 -1
  345. package/widgets/CoordinateConversion/support/Format.js +1 -1
  346. package/widgets/CoordinateConversion/support/formatUtils.js +1 -1
  347. package/widgets/Daylight/DaylightViewModel.js +1 -1
  348. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
  349. package/widgets/Editor/support/SketchController.js +1 -1
  350. package/widgets/ElevationProfile/ElevationProfileLine.js +1 -1
  351. package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
  352. package/widgets/Expand/ExpandViewModel.js +1 -1
  353. package/widgets/Expand.js +1 -1
  354. package/widgets/Feature/FeatureMedia.js +1 -1
  355. package/widgets/Feature/FeatureViewModel.js +1 -1
  356. package/widgets/Feature.js +1 -1
  357. package/widgets/FeatureForm.js +1 -1
  358. package/widgets/FeatureTemplates.js +1 -1
  359. package/widgets/Features/FeaturesViewModel.js +1 -1
  360. package/widgets/Features.js +1 -1
  361. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  362. package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
  363. package/widgets/Histogram/HistogramViewModel.js +1 -1
  364. package/widgets/Histogram.js +1 -1
  365. package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.js +1 -1
  366. package/widgets/Home/HomeViewModel.js +1 -1
  367. package/widgets/LayerList/LayerListViewModel.js +1 -1
  368. package/widgets/Legend/LegendViewModel.js +1 -1
  369. package/widgets/Legend/styles/card/CardView.js +1 -1
  370. package/widgets/Legend/styles/classic/ClassicView.js +1 -1
  371. package/widgets/Locate/LocateViewModel.js +1 -1
  372. package/widgets/Locate.js +1 -1
  373. package/widgets/NavigationToggle/NavigationToggleViewModel.js +1 -1
  374. package/widgets/NavigationToggle.js +1 -1
  375. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  376. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  377. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  378. package/widgets/OrientedImageryViewer/support/urlUtils.js +1 -1
  379. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
  380. package/widgets/Search.js +1 -1
  381. package/widgets/ShadowCast/DiscreteOptions.js +1 -1
  382. package/widgets/ShadowCast/DurationOptions.js +1 -1
  383. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  384. package/widgets/ShadowCast/ThresholdOptions.js +1 -1
  385. package/widgets/Sketch.js +1 -1
  386. package/widgets/Slider/SliderViewModel.js +1 -1
  387. package/widgets/Slider.js +1 -1
  388. package/widgets/TableList/TableListViewModel.js +1 -1
  389. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  390. package/widgets/Weather/WeatherViewModel.js +1 -1
  391. package/widgets/Widget.js +1 -1
  392. package/widgets/Zoom/ZoomViewModel.js +1 -1
  393. package/widgets/support/AnalysisViewModelMixin.js +1 -1
  394. package/widgets/support/GridControls.js +1 -1
  395. package/widgets/support/dateUtils.js +1 -1
  396. package/assets/esri/core/workers/chunks/00d43f02119167531d1b.js +0 -1
  397. package/assets/esri/core/workers/chunks/0696fa44a04b99738d7b.js +0 -1
  398. package/assets/esri/core/workers/chunks/091ec4fe83038f3558f4.js +0 -1
  399. package/assets/esri/core/workers/chunks/098ac10877d92fde1006.js +0 -1
  400. package/assets/esri/core/workers/chunks/0a29d87b6e58a3c6df8f.js +0 -1
  401. package/assets/esri/core/workers/chunks/0d04353843ccb7440342.js +0 -1
  402. package/assets/esri/core/workers/chunks/0d87cb6417672de95d53.js +0 -1
  403. package/assets/esri/core/workers/chunks/1132e28aaa5825b10b6e.js +0 -1
  404. package/assets/esri/core/workers/chunks/1380cec385426673f294.js +0 -1
  405. package/assets/esri/core/workers/chunks/1b24a40c0fa197014873.js +0 -1
  406. package/assets/esri/core/workers/chunks/1c7096eb48a3a7f27d4f.js +0 -1
  407. package/assets/esri/core/workers/chunks/1cc03067f8405285057c.js +0 -1
  408. package/assets/esri/core/workers/chunks/1f76f6dcdae9f55389cb.js +0 -1
  409. package/assets/esri/core/workers/chunks/21e1d423ee33f916547e.js +0 -1
  410. package/assets/esri/core/workers/chunks/247617c0dbae2386ab3b.js +0 -1
  411. package/assets/esri/core/workers/chunks/25657f70c5f04a4ed978.js +0 -1
  412. package/assets/esri/core/workers/chunks/2690d5fcd9d5ca92ebf6.js +0 -1
  413. package/assets/esri/core/workers/chunks/2853606099602f73d379.js +0 -1
  414. package/assets/esri/core/workers/chunks/28ed020d9995b6577be5.js +0 -1
  415. package/assets/esri/core/workers/chunks/2b27d3bc492e000bbe58.js +0 -1
  416. package/assets/esri/core/workers/chunks/2d64a13c2303e9cae613.js +0 -1
  417. package/assets/esri/core/workers/chunks/36e5f070009b29b7ac3d.js +0 -1
  418. package/assets/esri/core/workers/chunks/3b5e9e0b180dc10491ec.js +0 -1
  419. package/assets/esri/core/workers/chunks/46edd6c9ed6701e6b975.js +0 -1
  420. package/assets/esri/core/workers/chunks/4e17665dd9048c300d87.js +0 -1
  421. package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +0 -1
  422. package/assets/esri/core/workers/chunks/4e8e322b469657ac22e2.js +0 -1
  423. package/assets/esri/core/workers/chunks/5396b6e99a0546a25d19.js +0 -1
  424. package/assets/esri/core/workers/chunks/553a8bf5bc5c56d1bcaf.js +0 -1
  425. package/assets/esri/core/workers/chunks/55c0c074e4afe05f5d4d.js +0 -1
  426. package/assets/esri/core/workers/chunks/5bfb962ca192f90a2724.js +0 -1
  427. package/assets/esri/core/workers/chunks/60c8eedd06080edab3e3.js +0 -1
  428. package/assets/esri/core/workers/chunks/61d36730564c5ac5edab.js +0 -1
  429. package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +0 -1
  430. package/assets/esri/core/workers/chunks/661c6324529dd17b297e.js +0 -1
  431. package/assets/esri/core/workers/chunks/6699fac01ccd842851ba.js +0 -1
  432. package/assets/esri/core/workers/chunks/672a5390182b20d632be.js +0 -1
  433. package/assets/esri/core/workers/chunks/67caef2ecf0dc5f2eed3.js +0 -1
  434. package/assets/esri/core/workers/chunks/68dd1fd2025c7125ead1.js +0 -1
  435. package/assets/esri/core/workers/chunks/68fd7b314377d27aaa54.js +0 -1
  436. package/assets/esri/core/workers/chunks/69627b2634da64dd885f.js +0 -1
  437. package/assets/esri/core/workers/chunks/6f2e7e663229b223b4df.js +0 -1
  438. package/assets/esri/core/workers/chunks/7390af96250e89194332.js +0 -1
  439. package/assets/esri/core/workers/chunks/7b45ac83e279fe9516a5.js +0 -1
  440. package/assets/esri/core/workers/chunks/7e0ed6e8f7b77e43f628.js +0 -1
  441. package/assets/esri/core/workers/chunks/832c887fdc5af4c08cf2.js +0 -1
  442. package/assets/esri/core/workers/chunks/84fb27e3425515cd0e3f.js +0 -1
  443. package/assets/esri/core/workers/chunks/8502274806ea52308822.js +0 -1
  444. package/assets/esri/core/workers/chunks/867502158997cb2d6406.js +0 -1
  445. package/assets/esri/core/workers/chunks/8ceb6697e8adbeffe019.js +0 -1
  446. package/assets/esri/core/workers/chunks/8e391b5b82429f39791e.js +0 -1
  447. package/assets/esri/core/workers/chunks/8e6276ddd8d094c61f08.js +0 -1
  448. package/assets/esri/core/workers/chunks/8fe22c2370219f25c15b.js +0 -1
  449. package/assets/esri/core/workers/chunks/90d797ab82d4a68ba32f.js +0 -1
  450. package/assets/esri/core/workers/chunks/91586bf29492735e692d.js +0 -1
  451. package/assets/esri/core/workers/chunks/96f87c8efd4b11b37686.js +0 -1
  452. package/assets/esri/core/workers/chunks/9826baa3c15ea2062669.js +0 -1
  453. package/assets/esri/core/workers/chunks/9c3de54513bf8619271c.js +0 -1
  454. package/assets/esri/core/workers/chunks/a125650edbed802e419a.js +0 -1
  455. package/assets/esri/core/workers/chunks/a18c3cbe505a19d29569.js +0 -1
  456. package/assets/esri/core/workers/chunks/a422a801e55fa125546e.js +0 -1
  457. package/assets/esri/core/workers/chunks/a5f17e9a025ac2b6e1bf.js +0 -1
  458. package/assets/esri/core/workers/chunks/a6e846361bf5dd3a11c7.js +0 -1
  459. package/assets/esri/core/workers/chunks/a91dc05a6a609d04ed04.js +0 -1
  460. package/assets/esri/core/workers/chunks/a99c50b4e1c7568210e1.js +0 -1
  461. package/assets/esri/core/workers/chunks/ab48faea5432e2dbd45c.js +0 -1
  462. package/assets/esri/core/workers/chunks/ac107079342251a984dd.js +0 -1
  463. package/assets/esri/core/workers/chunks/acf4737ba509cbd73cce.js +0 -1
  464. package/assets/esri/core/workers/chunks/b7205620ca248f4efc88.js +0 -1
  465. package/assets/esri/core/workers/chunks/bbddeb1c893ff8bbae5d.js +0 -1
  466. package/assets/esri/core/workers/chunks/bc2e2bdf1194e6e9eb5e.js +0 -1
  467. package/assets/esri/core/workers/chunks/c0eb27263f608dc3684b.js +0 -1
  468. package/assets/esri/core/workers/chunks/c3ba1a3247e14f6b7b3a.js +0 -1
  469. package/assets/esri/core/workers/chunks/c5d0a034ff31d5954571.js +0 -1
  470. package/assets/esri/core/workers/chunks/c8057b47c7c6c02a0bda.js +0 -1
  471. package/assets/esri/core/workers/chunks/ca21786e519c914fc9e1.js +0 -1
  472. package/assets/esri/core/workers/chunks/cd46d9b4a8de644e7332.js +0 -1
  473. package/assets/esri/core/workers/chunks/d4c8673ca65df874a7ce.js +0 -1
  474. package/assets/esri/core/workers/chunks/da1e6962ba0c85c37953.js +0 -1
  475. package/assets/esri/core/workers/chunks/dcdf837a452dc0cac582.js +0 -1
  476. package/assets/esri/core/workers/chunks/e0864ca82ffa3c9a0776.js +0 -1
  477. package/assets/esri/core/workers/chunks/e69cd62f824ce7a22fa0.js +0 -1
  478. package/assets/esri/core/workers/chunks/e9457a67befc61e11095.js +0 -1
  479. package/assets/esri/core/workers/chunks/f190a3124d6d03417d73.js +0 -1
  480. package/assets/esri/core/workers/chunks/f4135779bfdaf349352a.js +0 -1
  481. package/assets/esri/core/workers/chunks/f6bd7b52745b82ba73dc.js +0 -1
  482. package/assets/esri/core/workers/chunks/fbe3a3b9d6c8c0b52f65.js +0 -1
  483. package/assets/esri/core/workers/chunks/fc77eb7683e708774168.js +0 -1
  484. package/assets/esri/core/workers/chunks/fe7184993ef5713d13fb.js +0 -1
  485. package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +0 -1
  486. package/views/2d/engine/vectorTiles/style/VectorTilePbfWriter.js +0 -2
  487. package/views/2d/engine/vectorTiles/style/encodeVectorTileFeatures.js +0 -2
  488. package/views/2d/layers/features/support/FeatureSetReaderVectorTileFeatureCursor.js +0 -2
  489. /package/views/2d/engine/vectorTiles/{Feature.js → PbfFeature.js} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9279],{52106(e,t,r){r.d(t,{A:()=>S});var i,o,l=r(32198),n=r(40124),s=r(69540),a=r(51447),p=r(25482),u=r(53966),y=r(36708),d=r(24326),c=r(91429),g=r(12195),h=r(65864),f=r(50498),m=r(55156),b=r(60950),v=r(54339),w=r(94128),C=r(33910);const M=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let S=class extends((0,s.OU)(p.o)){static{i=w.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,d.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:x(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(M);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,y.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,y.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],M)}};(0,l.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,h.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],S.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,c.MZ)({value:null})],S.prototype,"attributes",null),(0,l.Cg)([(0,c.MZ)({value:null,types:f.yR,json:{read:h.rS}})],S.prototype,"geometry",null),(0,l.Cg)([(0,c.MZ)()],S.prototype,"distance",void 0),(0,l.Cg)([(0,c.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,l.Cg)([(0,c.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,l.Cg)([(0,c.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,l.Cg)([(0,c.MZ)({type:n.A,value:null})],S.prototype,"popupTemplate",null),(0,l.Cg)([(0,c.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,c.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,c.MZ)({value:null,types:C.Es})],S.prototype,"symbol",null),(0,l.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,l.Cg)([(0,c.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=o=(0,l.Cg)([(0,c.$K)("esri.Graphic")],S)},4902(e,t,r){var i=r(32198),o=r(64108);let l=0;const n=e=>{let t=e,r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+l++})}};return r=(0,i.Cg)([(0,o.$)("esri.core.Identifiable")],r),r};n(class{}),r.d(t,["s",0,n])},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},4146(e,t,r){r.d(t,{A:()=>b});var i=r(32198),o=r(56507),l=r(49186),n=r(65529),s=r(4902),a=r(92474),p=r(53966),u=r(17676),y=r(84952),d=r(91429),c=r(5443),g=r(16930),h=r(92602),f=r(79677);let m=0,b=class extends((0,n.Zt)((0,s.s)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new c.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:g.A.WGS84}),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(9917),r.e(812),r.e(5613)]).then(()=>r(45613));try{return await i(t)}catch(e){let r=t?.portalItem,i=r?.id||"unset",o=r?.portal?.url||h.A.portalUrl;throw p.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||p.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,y.An)(this.url)}createLayerView(e,t){return Promise.reject(new l.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new l.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,i.Cg)([(0,d.MZ)({type:c.A})],b.prototype,"fullExtent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i.Cg)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:g.A})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)()],b.prototype,"url",void 0),(0,i.Cg)([(0,d.MZ)({type:f.A})],b.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i.Cg)([(0,d.$K)("esri.layers.Layer")],b)},52136(e,t,r){var i=r(32198),o=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),o=r(93637),l=r(91429),n=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new n.A;return o.read(i,r),[o]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let l=e.find(e=>!!e.field);l&&(0,o.sM)(r,[l.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,l.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(69540),l=r(25482),n=r(91429),s=r(56400);let a=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,n.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,n.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,n.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,n.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(69540),l=r(66552),n=r(25482),s=r(91429);const a=new l.J({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((0,o.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>y});var i=r(32198),o=r(69540),l=r(25482),n=r(91429),s=r(8631),a=r(29005),p=r(36005),u=r(43937);let y=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],y.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],y.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],y.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],y.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],y.prototype,"writeDomains",null),(0,i.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],y.prototype,"templates",void 0),y=(0,i.Cg)([(0,n.$K)("esri.layers.support.FeatureType")],y)},46499(e,t,r){var i,o,l=r(32198),n=(r(44208),r(66552)),s=r(25482),a=r(4718),p=r(90629),u=r(91429),y=r(90360),d=r(73913),c=r(32730),g=r(77548),h=r(59868),f=r(73838),m=r(33910),b=r(36005),v=r(43937);const w=new n.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function C(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let S=class extends s.o{static{i=c.vK}static{o=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),o=i[3],l=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&l;case"OR":return e||l}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,c.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,c.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&M(i))e=new d.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,c.XJ)(this)}getLabelExpressionArcade(){return(0,c.BI)(this)}getLabelExpressionSingleField(){return(0,c.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,l.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"name",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:C}}}}})],S.prototype,"allowOverrun",void 0),(0,l.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:C}}}}})],S.prototype,"deconflictionStrategy",void 0),(0,l.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],S.prototype,"labelExpression",void 0),(0,l.Cg)([(0,b.w)("labelExpression")],S.prototype,"readLabelExpression",null),(0,l.Cg)([(0,v.K)("labelExpression")],S.prototype,"writeLabelExpression",null),(0,l.Cg)([(0,u.MZ)({type:d.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],S.prototype,"labelExpressionInfo",void 0),(0,l.Cg)([(0,v.K)("labelExpressionInfo")],S.prototype,"writeLabelExpressionInfo",null),(0,l.Cg)([(0,u.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],S.prototype,"labelPlacement",void 0),(0,l.Cg)([(0,u.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],S.prototype,"offsetDistance",void 0),(0,l.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],S.prototype,"labelPosition",void 0),(0,l.Cg)([(0,u.MZ)({type:Number})],S.prototype,"maxScale",void 0),(0,l.Cg)([(0,v.K)("maxScale")],S.prototype,"writeMaxScale",null),(0,l.Cg)([(0,u.MZ)({type:Number})],S.prototype,"minScale",void 0),(0,l.Cg)([(0,v.K)("minScale")],S.prototype,"writeMinScale",null),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],S.prototype,"repeatLabel",void 0),(0,l.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],S.prototype,"repeatLabelDistance",null),(0,l.Cg)([(0,u.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,y.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,y.C)({types:m.Rv})},write:f.oO,default:null}},write:f.oO,default:null}})],S.prototype,"symbol",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"useCodedValues",void 0),(0,l.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=o=(0,l.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],S);const A=S;r.d(t,["A",0,A])},73913(e,t,r){var i,o=r(32198),l=r(25482),n=r(91429),s=r(32730),a=r(36005),p=r(43937);let u=class extends l.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"name",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,o.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,o.Cg)([(0,n.$K)("esri.layers.support.LabelExpressionInfo")],u);const y=u;r.d(t,["A",0,y])},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),l=r(7762),n=r(25482),s=r(91429);let a=i=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new l.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),l=r(66552),n=r(25482),s=r(91429);const a=new l.J({asc:"ascending",desc:"descending"});let p=class extends n.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,s.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(69540),l=r(66552),n=r(25482),s=r(91429);const a=new l.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new l.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.Relationship")],u)},39383(e,t,r){r.d(t,{w:()=>a,z:()=>y});var i=r(49186),o=r(53966),l=r(46499);const n=()=>o.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new l.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function y(e,t){let r=[];for(let o of e){let e=o.labelPlacement,l=u[t];if(!o.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!l)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(l.includes(e))r.push(o);else{let i=l[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=o.clone();s.labelPlacement=i,r.push(s)}}return r}},77548(e,t,r){r.d(t,{Gh:()=>j,tk:()=>Z,BR:()=>A,p2:()=>x,qd:()=>L,wI:()=>S,G$:()=>E,$x:()=>P,Ov:()=>v,cM:()=>d,UC:()=>c,Qz:()=>g,OP:()=>T,TU:()=>b,F2:()=>h,XX:()=>m,Qi:()=>w,jy:()=>C});var i=r(70333),o=r(56507),l=r(7762),n=(r(84952),r(36563)),s=r(36708),a=r(4146);const p=new WeakMap;function u(e){return!e.destroyed&&(p.has(e)||e.addHandles([(0,s.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof a.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>p.set(e,t),s.pc),(0,n.hA)(()=>p.delete(e))]),p.get(e))}function y(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function d(e){return y(e,"knowledge-graph")&&"layers"in e}function c(e){return y(e,"knowledge-graph-sublayer")}function g(e){return y(e,"link-chart")&&"layers"in e}function h(e){return y(e,"subtype-group")&&"sublayers"in e}function f(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const m={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function C(e){return function(e){return y(e,"catalog-footprint")}(e)||function(e){return y(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return y(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function M(e){let t=e?.type;return"binning"===t||"cluster"===t}function x(e,t){if(!C(e))return;let r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){let e=r.origin;return e&&"featureReductionProvider"in e&&i?M(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?M(i)?i:null:e}async function S(e,t){let r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;let l=e.toLowerCase().indexOf("/rest/services");if(-1===l)return null;let n=`${e.slice(0,l)}/rest/info`,s=null==t?null:t.signal,{data:a}=await(0,o.A)(n,{query:{f:"json"},responseType:"json",signal:s});return a?.owningSystemUrl||null}function A(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function Z(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function L(e){let t=new l.A;for(let r of e.allLayers.concat(e.allTables))u(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function P(e,t){return null}function E(e){return null}function T(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function j(e,t){if(!t||!T(e))return;let r=(e.url,null);r&&(e.url=r)}},22671(e,t,r){r.d(t,{A:()=>b});var i,o=r(32198),l=r(52106),n=r(66552),s=r(25482),a=r(4718),p=r(91429),u=r(16930),y=r(60408),d=r(65864),c=r(50498),g=r(20437),h=r(36005),f=r(43937);const m=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,l=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=l.length;e<t;e++)n?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[l,n]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let p=this._getHydrationFunction(e,e=>e*l+i,e=>o-e*n,s,a);for(let{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let l=e[t],n=r.fromJSON(l),s=l.geometry?.spatialReference;null!=n.geometry&&!s&&(n.geometry.spatialReference=i);let a=l.aggregateGeometries,p=n.aggregateGeometries;if(a&&null!=p)for(let e in p){let t=p[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(n)}return o}_quantizePoints(e,t,r){let i,o,l=[];for(let n=0,s=e.length;n<s;n++){let s=e[n];if(n>0){let e=t(s[0]),n=r(s[1]);(e!==i||n!==o)&&(l.push([e-i,n-o]),i=e,o=n)}else i=t(s[0]),o=r(s[1]),l.push([i,o])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,y.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],n=this._quantizePoints(l,t,r);n&&o.push(n)}return o.length>0?((0,y.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,n,s=(0,y.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(l+=o[0],n+=o[1]):(l=o[0],n=o[1]),o[0]=t(l),o[1]=r(n)}}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let l,n,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(l+=i[0],n+=i[1]):(l=i[0],n=i[1]),i[0]=t(l),i[1]=r(n)}if(i&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[l.A],json:{write:!0}})],b.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],b.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,o.Cg)([(0,f.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,o.Cg)([(0,f.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},16215(e,t,r){r.d(t,{S:()=>o});const i=Symbol("BasemapInstance");function o(e){return"object"==typeof e&&!!e&&i in e}r.d(t,["Y",0,i])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{88930(e,t,r){r.d(t,{S1:()=>l,VW:()=>o,lL:()=>u,rb:()=>d,t:()=>p});var i=r(97770),n=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function l(e,t,r,s="system"){if("unknown"===r)return e;let a=new n.oh((0,i.wj)(s)),l=n.c9.fromJSDate(e,{zone:a}),o="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[o]:t}).toJSDate()}function o(e,t,r="milliseconds"){let i=e.getTime(),n=p(t,r,"milliseconds");return new Date(i+n)}function u(e,t,r="system"){let{unit:s}=t,a=Math.max(1,Math.trunc(t.value)),l=new n.oh((0,i.wj)(r)),o=n.c9.fromJSDate(e,{zone:l}),u=e=>e-e%a;switch(s){case"milliseconds":return o.startOf("second").plus({millisecond:u(o.millisecond)}).toJSDate();case"seconds":return o.startOf("minute").plus({second:u(o.second)}).toJSDate();case"minutes":return o.startOf("hour").plus({minute:u(o.minute)}).toJSDate();case"hours":return o.startOf("day").plus({hour:u(o.hour)}).toJSDate();case"days":return o.startOf("month").plus({day:u(o.day-1)}).toJSDate();case"weeks":{let e=o.startOf("year").startOf("week"),t=Math.floor(o.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return o.startOf("year").plus({month:u(o.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=o.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function d(e){let t=s.exec(e);if(!t)return null;let{hh:r,mm:i,ss:n,ms:l}=t.groups;return Number(r)*a.hours+Number(i)*a.minutes+Number(n||0)*a.seconds+Number(l||0)}function p(e,t,r){return 0===e?0:e*a[t]/a[r]}},4146(e,t,r){r.d(t,{A:()=>b});var i=r(32198),n=r(56507),s=r(49186),a=r(65529),l=r(4902),o=r(92474),u=r(53966),d=r(17676),p=r(84952),y=r(91429),c=r(5443),h=r(16930),m=r(92602),f=r(79677);let g=0,b=class extends((0,a.Zt)((0,l.s)(o.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new c.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:h.A.WGS84}),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=h.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(9917),r.e(812),r.e(5613)]).then(()=>r(45613));try{return await i(t)}catch(e){let r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,d.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,y.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,i.Cg)([(0,y.MZ)({type:c.A})],b.prototype,"fullExtent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i.Cg)([(0,y.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i.Cg)([(0,y.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,y.MZ)({type:h.A})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.MZ)({type:String})],b.prototype,"title",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i.Cg)([(0,y.MZ)()],b.prototype,"url",void 0),(0,i.Cg)([(0,y.MZ)({type:f.A})],b.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i.Cg)([(0,y.$K)("esri.layers.Layer")],b)},7656(e,t,r){r.r(t),r.d(t,{default:()=>B});var i=r(32198),n=r(56507),s=r(7762),a=r(49186),l=r(81583),o=r(34727),u=r(25728),d=r(17676),p=r(91429),y=r(78888),c=r(35666),h=r(5443),m=r(83960),f=r(21325),g=r(4146),b=r(52136),v=r(98534),w=r(18768),S=r(63074),C=r(69208),M=r(34287),x=r(8303),A=r(54310),O=r(25036),I=r(91921),Z=r(82935),T=r(10873),D=r(69622),E=r(39516);function L(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;let r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var P=r(63389);const j={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let N=class extends D.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;let e=this.visibleSublayers.map(e=>{let t=L(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,P.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(j[e.propertyName]))],"layer"))}get layers(){let e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){let e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{let r=L(this.floors,t),i=(0,E.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");let e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){let e=[];if(!this.layer)return e;let t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,m.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);let n=this._get("visibleSublayers");return!n||n.length!==e.length||n.some((t,r)=>e[r]!==t)?e:n}toJSON(){let e=this.layer,t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"dynamicLayers",null),(0,i.Cg)([(0,p.MZ)()],N.prototype,"floors",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,p.MZ)()],N.prototype,"layer",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"layers",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"layerDefs",null),(0,i.Cg)([(0,p.MZ)({type:Number})],N.prototype,"scale",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"version",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"visibleSublayers",null),N=(0,i.Cg)([(0,p.$K)("esri.layers.support.ExportImageParameters")],N);var k=r(33446),J=r(15775),U=r(91908),F=r(88625),_=r(79677),R=r(56400),V=r(36005),$=r(43937);let q=class extends((0,S.dM)((0,Z.e)((0,O.j)((0,I.I)((0,v.V)((0,w.b)((0,M.q)((0,x.A)((0,u.M)((0,A.J)((0,b.p)((0,C.d)(g.A))))))))))))){constructor(e){super(e),this._exportImageParameters=new N({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new F.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,i)=>{let{save:n,saveAs:s}=await r.e(390).then(()=>r(10390));switch(e){case 0:return n(this,t);case 1:return s(this,i,t)}})}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){let r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;let n,s=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray(),a=!1,l=(0,c.aB)(i.origin);if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===l){let e=this.createSublayersForOrigin("service").sublayers;a=(0,P.Zx)(s,e,2)}else if(l>3){let e=this.createSublayersForOrigin("portal-item");a=(0,P.Zx)(s,e.sublayers,(0,c.aB)(e.origin)),n=e.originWithPartialOverrides}let o=[],u={writeSublayerStructure:a,...i,minimumWritableOrigin:n},d=a||this.hasVisibleLayersForOrigin(l);s.forEach(e=>{let t=e.write({},u);o.push(t),d||="user"===e.originOf("visible")}),o.some(e=>Object.keys(e).length>1)&&(t.layers=o),d&&(t.visibleLayers=s.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){let n=i?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale??(0,m.X_)({extent:e,width:t})*n;let s=this._exportImageParameters.toJSON(),a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},l=e?.spatialReference,u=(0,f.YX)(l),d=this._exportImageParameters.scale/(0,m.X_)({extent:e,width:t});d=(0,o.Sp)(d,n)?n:d,s.dpi*=d;let p={};if(i?.timeExtent){let{start:e,end:t}=i.timeExtent.toJSON();p.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(p.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...a,...p}}async fetchImage(e,t,r,i){let{data:n}=await this._fetchImage("image",e,t,r,i);return n}async fetchImageBitmap(e,t,r,i){let{data:n,url:s}=await this._fetchImage("blob",e,t,r,i);return(0,k.mn)(n,s,i)}async fetchRecomputedExtents(e={}){let t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,n.A)(this.url,t),{extent:i,fullExtent:s,timeExtent:a}=r,l=i||s;return{fullExtent:l&&h.A.fromJSON(l),timeExtent:a&&_.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,l.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,U.D)(this,e)}async _fetchImage(e,t,r,i,s){let l={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},o=this.parsedUrl.path+"/export";if(null!=l.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:l.query});try{let{data:e}=await(0,n.A)(o,l);return{data:e,url:o}}catch(e){throw(0,d.zf)(e)?e:new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${o}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let{data:t,ssl:r}=await(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,p.MZ)((0,R.P6)("dateFieldsTimeReference"))],q.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],q.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"dpi",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"imageFormat",void 0),(0,i.Cg)([(0,V.w)("imageFormat",["supportedImageFormatTypes"])],q.prototype,"readImageFormat",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],q.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],q.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],q.prototype,"isReference",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],q.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:["ArcGISMapServiceLayer"]})],q.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],q.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)((0,R.P6)("preferredTimeReference"))],q.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,p.MZ)({type:s.A.ofType(J.A),json:{write:{ignoreOrigin:!0}}})],q.prototype,"sublayers",void 0),(0,i.Cg)([(0,$.K)("sublayers",{layers:{type:[J.A]},visibleLayers:{type:[y.jz]}})],q.prototype,"writeSublayers",null),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],q.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],q.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)(T.OZ)],q.prototype,"url",void 0),q=(0,i.Cg)([(0,p.$K)("esri.layers.MapImageLayer")],q);const B=q},82935(e,t,r){var i=r(32198),n=r(91429),s=r(30524),a=r(96184),l=r(73133),o=r(79677),u=r(10184),d=r(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,p,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,n=l.j.fromJSON(r.timeOffsetUnits);return i&&n?new u.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:o.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(p)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>O,BR:()=>A,p2:()=>M,qd:()=>I,wI:()=>x,G$:()=>T,$x:()=>Z,Ov:()=>v,cM:()=>y,UC:()=>c,Qz:()=>h,OP:()=>D,TU:()=>b,F2:()=>m,XX:()=>g,Qi:()=>w,jy:()=>S});var i=r(70333),n=r(56507),s=r(7762),a=(r(84952),r(36563)),l=r(36708),o=r(4146);const u=new WeakMap;function d(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,l.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof o.A)&&("catalog-dynamic-group"===t.type||d(t))},t=>u.set(e,t),l.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function p(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function y(e){return p(e,"knowledge-graph")&&"layers"in e}function c(e){return p(e,"knowledge-graph-sublayer")}function h(e){return p(e,"link-chart")&&"layers"in e}function m(e){return p(e,"subtype-group")&&"sublayers"in e}function f(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function S(e){return function(e){return p(e,"catalog-footprint")}(e)||function(e){return p(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return p(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){let t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!S(e))return;let r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){let e=r.origin;return e&&"featureReductionProvider"in e&&i?C(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?C(i)?i:null:e}async function x(e,t){let r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;let s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;let a=`${e.slice(0,s)}/rest/info`,l=null==t?null:t.signal,{data:o}=await(0,n.A)(a,{query:{f:"json"},responseType:"json",signal:l});return o?.owningSystemUrl||null}function A(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function O(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function I(e){let t=new s.A;for(let r of e.allLayers.concat(e.allTables))d(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function T(e){return null}function D(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!D(e))return;let r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var i=r(60694);const n=[];function s(e,t){if((0,i.Wo)(e.url??""))return!0;let{wkid:r}=t;for(let t of n){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}n.push([10.91,()=>{let e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),n.push([10.9,()=>{let e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),n.push([10.81,()=>{let e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),n.push([10.8,()=>{let e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),n.push([10.71,()=>{let e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>n});const i=Symbol("BasemapInstance");function n(e){return"object"==typeof e&&!!e&&i in e}r.d(t,["Y",0,i])},79677(e,t,r){r.d(t,{A:()=>p});var i,n=r(32198),s=r(25482),a=r(88930),l=r(91429),o=(r(98623),r(10184)),u=r(36005),d=r(43937);let p=class extends s.o{static{i=this}static get allTime(){return y}static get empty(){return c}static fromArray(e){return new i({start:null==e[0]?e[0]:new Date(e[0]),end:null==e[1]?e[1]:new Date(e[1])})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null==t.end?null:new Date(t.end)}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null==t.start?null:new Date(t.start)}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&=(0,a.lL)(r,new o.A({value:1,unit:e}),t);let n=this.end;if(n){let r=(0,a.lL)(n,new o.A({value:1,unit:e}),t);n=n.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t,r,n=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,a=e.start?.getTime()??-1/0,l=e.end?.getTime()??1/0;return a>=n&&a<=s?t=a:n>=a&&n<=l&&(t=n),s>=a&&s<=l?r=s:l>=n&&l<=s&&(r=l),null==t||null==r||isNaN(t)||isNaN(r)?i.empty:new i({start:t===-1/0?null:new Date(t),end:r===1/0?null:new Date(r)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let n=new i,{start:s,end:l}=this;return null!=s&&(n.start=(0,a.S1)(s,e,t,r)),null!=l&&(n.end=(0,a.S1)(l,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();let t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,n.Cg)([(0,u.w)("end")],p.prototype,"readEnd",null),(0,n.Cg)([(0,d.K)("end")],p.prototype,"writeEnd",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,n.Cg)([(0,u.w)("start")],p.prototype,"readStart",null),(0,n.Cg)([(0,d.K)("start")],p.prototype,"writeStart",null),p=i=(0,n.Cg)([(0,l.$K)("esri.time.TimeExtent")],p);const y=new p,c=new p({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>d});var i=r(32198),n=r(69540),s=r(25482),a=r(88930),l=r(91429),o=r(73133),u=r(93223);let d=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,u.e)(o.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,i.Cg)([(0,l.$K)("esri.time.TimeInterval")],d)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{88930(e,t,r){r.d(t,{S1:()=>l,VW:()=>o,lL:()=>u,rb:()=>d,t:()=>p});var i=r(97770),n=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function l(e,t,r,s="system"){if("unknown"===r)return e;let a=new n.oh((0,i.wj)(s)),l=n.c9.fromJSDate(e,{zone:a}),o="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[o]:t}).toJSDate()}function o(e,t,r="milliseconds"){let i=e.getTime(),n=p(t,r,"milliseconds");return new Date(i+n)}function u(e,t,r="system"){let{unit:s}=t,a=Math.max(1,Math.trunc(t.value)),l=new n.oh((0,i.wj)(r)),o=n.c9.fromJSDate(e,{zone:l}),u=e=>e-e%a;switch(s){case"milliseconds":return o.startOf("second").plus({millisecond:u(o.millisecond)}).toJSDate();case"seconds":return o.startOf("minute").plus({second:u(o.second)}).toJSDate();case"minutes":return o.startOf("hour").plus({minute:u(o.minute)}).toJSDate();case"hours":return o.startOf("day").plus({hour:u(o.hour)}).toJSDate();case"days":return o.startOf("month").plus({day:u(o.day-1)}).toJSDate();case"weeks":{let e=o.startOf("year").startOf("week"),t=Math.floor(o.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return o.startOf("year").plus({month:u(o.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=o.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function d(e){let t=s.exec(e);if(!t)return null;let{hh:r,mm:i,ss:n,ms:l}=t.groups;return Number(r)*a.hours+Number(i)*a.minutes+Number(n||0)*a.seconds+Number(l||0)}function p(e,t,r){return 0===e?0:e*a[t]/a[r]}},4146(e,t,r){r.d(t,{A:()=>b});var i=r(32198),n=r(56507),s=r(49186),a=r(65529),l=r(4902),o=r(92474),u=r(53966),d=r(17676),p=r(84952),y=r(91429),c=r(5443),h=r(16930),m=r(92602),f=r(79677);let g=0,b=class extends((0,a.Zt)((0,l.s)(o.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new c.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:h.A.WGS84}),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=h.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(9917),r.e(812),r.e(5613)]).then(()=>r(45613));try{return await i(t)}catch(e){let r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,d.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,y.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,i.Cg)([(0,y.MZ)({type:c.A})],b.prototype,"fullExtent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i.Cg)([(0,y.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i.Cg)([(0,y.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,y.MZ)({type:h.A})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.MZ)({type:String})],b.prototype,"title",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i.Cg)([(0,y.MZ)()],b.prototype,"url",void 0),(0,i.Cg)([(0,y.MZ)({type:f.A})],b.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i.Cg)([(0,y.$K)("esri.layers.Layer")],b)},7656(e,t,r){r.r(t),r.d(t,{default:()=>B});var i=r(32198),n=r(56507),s=r(7762),a=r(49186),l=r(81583),o=r(34727),u=r(25728),d=r(17676),p=r(91429),y=r(78888),c=r(35666),h=r(5443),m=r(83960),f=r(21325),g=r(4146),b=r(52136),v=r(98534),w=r(18768),S=r(63074),C=r(69208),M=r(34287),x=r(8303),A=r(54310),O=r(25036),I=r(91921),Z=r(82935),T=r(10873),D=r(56372),E=r(39516);function L(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;let r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var P=r(63389);const j={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let N=class extends D.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;let e=this.visibleSublayers.map(e=>{let t=L(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,P.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(j[e.propertyName]))],"layer"))}get layers(){let e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){let e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{let r=L(this.floors,t),i=(0,E.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");let e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){let e=[];if(!this.layer)return e;let t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,m.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);let n=this._get("visibleSublayers");return!n||n.length!==e.length||n.some((t,r)=>e[r]!==t)?e:n}toJSON(){let e=this.layer,t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"dynamicLayers",null),(0,i.Cg)([(0,p.MZ)()],N.prototype,"floors",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,p.MZ)()],N.prototype,"layer",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"layers",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"layerDefs",null),(0,i.Cg)([(0,p.MZ)({type:Number})],N.prototype,"scale",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"version",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],N.prototype,"visibleSublayers",null),N=(0,i.Cg)([(0,p.$K)("esri.layers.support.ExportImageParameters")],N);var k=r(33446),J=r(15775),U=r(91908),F=r(88625),_=r(79677),R=r(56400),V=r(36005),$=r(43937);let q=class extends((0,S.dM)((0,Z.e)((0,O.j)((0,I.I)((0,v.V)((0,w.b)((0,M.q)((0,x.A)((0,u.M)((0,A.J)((0,b.p)((0,C.d)(g.A))))))))))))){constructor(e){super(e),this._exportImageParameters=new N({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new F.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,i)=>{let{save:n,saveAs:s}=await r.e(390).then(()=>r(10390));switch(e){case 0:return n(this,t);case 1:return s(this,i,t)}})}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){let r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;let n,s=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray(),a=!1,l=(0,c.aB)(i.origin);if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===l){let e=this.createSublayersForOrigin("service").sublayers;a=(0,P.Zx)(s,e,2)}else if(l>3){let e=this.createSublayersForOrigin("portal-item");a=(0,P.Zx)(s,e.sublayers,(0,c.aB)(e.origin)),n=e.originWithPartialOverrides}let o=[],u={writeSublayerStructure:a,...i,minimumWritableOrigin:n},d=a||this.hasVisibleLayersForOrigin(l);s.forEach(e=>{let t=e.write({},u);o.push(t),d||="user"===e.originOf("visible")}),o.some(e=>Object.keys(e).length>1)&&(t.layers=o),d&&(t.visibleLayers=s.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){let n=i?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale??(0,m.X_)({extent:e,width:t})*n;let s=this._exportImageParameters.toJSON(),a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},l=e?.spatialReference,u=(0,f.YX)(l),d=this._exportImageParameters.scale/(0,m.X_)({extent:e,width:t});d=(0,o.Sp)(d,n)?n:d,s.dpi*=d;let p={};if(i?.timeExtent){let{start:e,end:t}=i.timeExtent.toJSON();p.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(p.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...a,...p}}async fetchImage(e,t,r,i){let{data:n}=await this._fetchImage("image",e,t,r,i);return n}async fetchImageBitmap(e,t,r,i){let{data:n,url:s}=await this._fetchImage("blob",e,t,r,i);return(0,k.mn)(n,s,i)}async fetchRecomputedExtents(e={}){let t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,n.A)(this.url,t),{extent:i,fullExtent:s,timeExtent:a}=r,l=i||s;return{fullExtent:l&&h.A.fromJSON(l),timeExtent:a&&_.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,l.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,U.D)(this,e)}async _fetchImage(e,t,r,i,s){let l={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},o=this.parsedUrl.path+"/export";if(null!=l.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:l.query});try{let{data:e}=await(0,n.A)(o,l);return{data:e,url:o}}catch(e){throw(0,d.zf)(e)?e:new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${o}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let{data:t,ssl:r}=await(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,p.MZ)((0,R.P6)("dateFieldsTimeReference"))],q.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],q.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"dpi",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"imageFormat",void 0),(0,i.Cg)([(0,V.w)("imageFormat",["supportedImageFormatTypes"])],q.prototype,"readImageFormat",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],q.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],q.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],q.prototype,"isReference",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],q.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:["ArcGISMapServiceLayer"]})],q.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],q.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)((0,R.P6)("preferredTimeReference"))],q.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,p.MZ)()],q.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,p.MZ)({type:s.A.ofType(J.A),json:{write:{ignoreOrigin:!0}}})],q.prototype,"sublayers",void 0),(0,i.Cg)([(0,$.K)("sublayers",{layers:{type:[J.A]},visibleLayers:{type:[y.jz]}})],q.prototype,"writeSublayers",null),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],q.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],q.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)(T.OZ)],q.prototype,"url",void 0),q=(0,i.Cg)([(0,p.$K)("esri.layers.MapImageLayer")],q);const B=q},82935(e,t,r){var i=r(32198),n=r(91429),s=r(30524),a=r(96184),l=r(73133),o=r(79677),u=r(10184),d=r(36005);const p={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,p,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,n=l.j.fromJSON(r.timeOffsetUnits);return i&&n?new u.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:o.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(p)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>O,BR:()=>A,p2:()=>M,qd:()=>I,wI:()=>x,G$:()=>T,$x:()=>Z,Ov:()=>v,cM:()=>y,UC:()=>c,Qz:()=>h,OP:()=>D,TU:()=>b,F2:()=>m,XX:()=>g,Qi:()=>w,jy:()=>S});var i=r(70333),n=r(56507),s=r(7762),a=(r(84952),r(36563)),l=r(36708),o=r(4146);const u=new WeakMap;function d(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,l.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof o.A)&&("catalog-dynamic-group"===t.type||d(t))},t=>u.set(e,t),l.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function p(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function y(e){return p(e,"knowledge-graph")&&"layers"in e}function c(e){return p(e,"knowledge-graph-sublayer")}function h(e){return p(e,"link-chart")&&"layers"in e}function m(e){return p(e,"subtype-group")&&"sublayers"in e}function f(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function S(e){return function(e){return p(e,"catalog-footprint")}(e)||function(e){return p(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return p(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){let t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!S(e))return;let r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){let e=r.origin;return e&&"featureReductionProvider"in e&&i?C(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?C(i)?i:null:e}async function x(e,t){let r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;let s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;let a=`${e.slice(0,s)}/rest/info`,l=null==t?null:t.signal,{data:o}=await(0,n.A)(a,{query:{f:"json"},responseType:"json",signal:l});return o?.owningSystemUrl||null}function A(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function O(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function I(e){let t=new s.A;for(let r of e.allLayers.concat(e.allTables))d(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function T(e){return null}function D(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!D(e))return;let r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var i=r(60694);const n=[];function s(e,t){if((0,i.Wo)(e.url??""))return!0;let{wkid:r}=t;for(let t of n){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}n.push([10.91,()=>{let e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),n.push([10.9,()=>{let e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),n.push([10.81,()=>{let e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),n.push([10.8,()=>{let e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),n.push([10.71,()=>{let e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>n});const i=Symbol("BasemapInstance");function n(e){return"object"==typeof e&&!!e&&i in e}r.d(t,["Y",0,i])},79677(e,t,r){r.d(t,{A:()=>p});var i,n=r(32198),s=r(25482),a=r(88930),l=r(91429),o=(r(98623),r(10184)),u=r(36005),d=r(43937);let p=class extends s.o{static{i=this}static get allTime(){return y}static get empty(){return c}static fromArray(e){return new i({start:null==e[0]?e[0]:new Date(e[0]),end:null==e[1]?e[1]:new Date(e[1])})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null==t.end?null:new Date(t.end)}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null==t.start?null:new Date(t.start)}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&=(0,a.lL)(r,new o.A({value:1,unit:e}),t);let n=this.end;if(n){let r=(0,a.lL)(n,new o.A({value:1,unit:e}),t);n=n.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t,r,n=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,a=e.start?.getTime()??-1/0,l=e.end?.getTime()??1/0;return a>=n&&a<=s?t=a:n>=a&&n<=l&&(t=n),s>=a&&s<=l?r=s:l>=n&&l<=s&&(r=l),null==t||null==r||isNaN(t)||isNaN(r)?i.empty:new i({start:t===-1/0?null:new Date(t),end:r===1/0?null:new Date(r)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let n=new i,{start:s,end:l}=this;return null!=s&&(n.start=(0,a.S1)(s,e,t,r)),null!=l&&(n.end=(0,a.S1)(l,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();let t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,n.Cg)([(0,u.w)("end")],p.prototype,"readEnd",null),(0,n.Cg)([(0,d.K)("end")],p.prototype,"writeEnd",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,n.Cg)([(0,u.w)("start")],p.prototype,"readStart",null),(0,n.Cg)([(0,d.K)("start")],p.prototype,"writeStart",null),p=i=(0,n.Cg)([(0,l.$K)("esri.time.TimeExtent")],p);const y=new p,c=new p({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>d});var i=r(32198),n=r(69540),s=r(25482),a=r(88930),l=r(91429),o=r(73133),u=r(93223);let d=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,u.e)(o.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,i.Cg)([(0,l.$K)("esri.time.TimeInterval")],d)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[77],{11006(t,e,n){function i(t,e,n,i,a){r(t,e,n||0,i||t.length-1,a||o)}function r(t,e,n,i,o){for(;i>n;){if(i-n>600){var l=i-n+1,s=e-n+1,h=Math.log(l),c=.5*Math.exp(2*h/3),u=.5*Math.sqrt(h*c*(l-c)/l)*(s-l/2<0?-1:1);r(t,e,Math.max(n,Math.floor(e-s*c/l+u)),Math.min(i,Math.floor(e+(l-s)*c/l+u)),o)}var m=t[e],f=n,p=i;for(a(t,n,e),o(t[i],m)>0&&a(t,n,i);f<p;){for(a(t,f,p),f++,p--;o(t[f],m)<0;)f++;for(;o(t[p],m)>0;)p--}0===o(t[n],m)?a(t,n,p):a(t,++p,i),p<=e&&(n=p+1),e<=p&&(i=p-1)}}function a(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function o(t,e){return t<e?-1:+(t>e)}n.d(e,{q:()=>i})},4341(t,e,n){n.d(e,{I:()=>r});var i=n(26390);class r{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*a);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,a));t++)this._items.push(this._allocator())}}const a=1024},75503(t,e,n){n.d(e,{wq:()=>l});var i=n(4576),r=n(21818),a=(n(44208),n(15142)),o=n(11006);class l{constructor(t=9,e){this._compareMinX=m,this._compareMinY=f,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),X.prune(),Y.prune(),w.prune(),B.prune()}all(t){s(this._data,t)}search(t,e){let n=this._data,i=this._toBBox;if(v(t,n))for(X.clear();n;){for(let r=0,a=n.children.length;r<a;r++){let a=n.children[r],o=n.leaf?i(a):a;v(t,o)&&(n.leaf?e(a):g(t,o)?s(a,e):X.push(a))}n=X.pop()}}collides(t){let e=this._data,n=this._toBBox;if(!v(t,e))return!1;for(X.clear();e;){for(let i=0,r=e.children.length;i<r;i++){let r=e.children[i],a=e.leaf?n(r):r;if(v(t,a)){if(e.leaf||g(t,a))return!0;X.push(r)}}e=X.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){let t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new R([]),this}remove(t){if(!t)return this;let e,n=this._data,a=null,o=0,l=!1,s=this._toBBox(t);for(w.clear(),B.clear();n||w.length>0;){if(n||(n=w.pop(),a=w.data[w.length-1],o=B.pop()??0,l=!0),n.leaf&&(e=(0,i.qh)(n.children,(0,r.z)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),w.push(n),this._condense(w),this;l||n.leaf||!g(n,s)?a?(o++,n=a.children[o],l=!1):n=null:(w.push(n),B.push(o),o=0,a=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,i){let r=n-e+1,a=this._maxEntries;if(r<=a){let i=new R(t.slice(e,n+1));return h(i,this._toBBox),i}i||(i=Math.ceil(Math.log(r)/Math.log(a)),a=Math.ceil(r/a**(i-1)));let o=new b([]);o.height=i;let l=Math.ceil(r/a),s=l*Math.ceil(Math.sqrt(a));M(t,e,n,s,this._compareMinX);for(let r=e;r<=n;r+=s){let e=Math.min(r+s-1,n);M(t,r,e,l,this._compareMinY);for(let n=r;n<=e;n+=l){let r=Math.min(n+l-1,e);o.children.push(this._build(t,n,r,i-1))}}return h(o,this._toBBox),o}_insert(t,e,n){let i=this._toBBox,r=n?t:i(t);w.clear();let a=function(t,e,n,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==n;){let n,i=1/0,r=1/0;for(let a=0,o=e.children.length;a<o;a++){let o=e.children[a],l=p(o),s=x(t,o)-l;s<r?(r=s,i=l<i?l:i,n=o):s===r&&l<i&&(i=l,n=o)}e=n||e.children[0]}return e}(r,this._data,e,w);for(a.children.push(t),u(a,r);e>=0&&w.data[e].children.length>this._maxEntries;)this._split(w,e),e--;!function(t,e,n){for(let i=n;i>=0;i--)u(e.data[i],t)}(r,w,e)}_split(t,e){let n=t.data[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);let a=this._chooseSplitIndex(n,r,i);if(!a)return;let o=n.children.splice(a,n.children.length-a),l=n.leaf?new R(o):new b(o);l.height=n.height,h(n,this._toBBox),h(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new b([t,e]),this._data.height=t.height+1,h(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let i,r,a;i=r=1/0;for(let o=e;o<=n-e;o++){let e=c(t,0,o,this._toBBox),l=c(t,o,n,this._toBBox),s=_(e,l),h=p(e)+p(l);s<i?(i=s,a=o,r=h<r?h:r):s===i&&h<r&&(r=h,a=o)}return a}_chooseSplitAxis(t,e,n){let i=t.leaf?this._compareMinX:m,r=t.leaf?this._compareMinY:f;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)}_allDistMargin(t,e,n,i){t.children.sort(i);let r=this._toBBox,a=c(t,0,e,r),o=c(t,n-e,n,r),l=d(a)+d(o);for(let i=e;i<n-e;i++){let e=t.children[i];u(a,t.leaf?r(e):e),l+=d(a)}for(let i=n-e-1;i>=e;i--){let e=t.children[i];u(o,t.leaf?r(e):e),l+=d(o)}return l}_condense(t){for(let e=t.length-1;e>=0;e--){let n=t.data[e];if(0===n.children.length)if(e>0){let r=t.data[e-1],a=r.children;a.splice((0,i.qh)(a,n,a.length,r.indexHint),1)}else this.clear();else h(n,this._toBBox)}}_initFormat(t){let e=["return a"," - b",";"];this._compareMinX=Function("a","b",e.join(t[0])),this._compareMinY=Function("a","b",e.join(t[1])),this._toBBox=Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function s(t,e){let n=t;for(Y.clear();n;){if(!0===n.leaf)for(let t of n.children)e((0,r.z)(t));else Y.pushArray(n.children);n=Y.pop()??null}}function h(t,e){c(t,0,t.children.length,e,t)}function c(t,e,n,i,r){r||=new R([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let a,o=e;o<n;o++)a=t.children[o],u(r,t.leaf?i(a):a);return r}function u(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function m(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function x(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function _(t,e){let n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),a=Math.min(t.maxY,e.maxY);return Math.max(0,r-n)*Math.max(0,a-i)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function v(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function M(t,e,n,i,r){let a=[e,n];for(;a.length;){let e=a.pop(),n=a.pop();if(e-n<=i)continue;let l=n+Math.ceil((e-n)/i/2)*i;(0,o.q)(t,l,n,e,r),a.push(n,l,l,e)}}const X=new a.A,Y=new a.A,w=new a.A,B=new a.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class y extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class R extends y{constructor(t){super(),this.children=t,this.leaf=!0}}class b extends y{constructor(t){super(),this.children=t,this.leaf=!1}}},83027(t,e,n){const i=n(29953).ho;n.d(e,["h",0,i])},11964(t,e,n){n.d(e,{Cr:()=>c,LV:()=>h,_I:()=>u,vt:()=>s});var i=n(34727),r=n(4341),a=n(35522),o=n(51850),l=n(32114);function s(t){return t?{origin:(0,o.o8)(t.origin),vector:(0,o.o8)(t.vector)}:{origin:(0,o.vt)(),vector:(0,o.vt)()}}function h(t,e){let n=m.get();return n.origin=t,n.vector=e,n}function c(t,e,n=s()){return(0,a.C)(n.origin,t),(0,a.Re)(n.vector,e,t),n}function u(t,e,n){return function(t,e,n,r,o){let{vector:s,origin:h}=t,c=(0,a.Re)(l.rq.get(),e,h),u=(0,a.Om)(s,c)/(0,a.m3)(s);return(0,a.hs)(o,s,(0,i.qE)(u,0,1)),(0,a.WQ)(o,o,t.origin)}(t,e,0,0,n)}(0,o.vt)(),(0,o.vt)();const m=new r.I(()=>s())},38419(t,e,n){n.r(e),n.d(e,{default:()=>l});var i=n(44208),r=n(75503),a=n(95696),o=n(72258);class l{async createIndex(t,e){if(!t.vertexAttributes?.position)return new r.wq;let n=function(t){let{vertexAttributes:{position:e},vertexSpace:n,spatialReference:i,transform:r}=t,l=(0,o.UR)({vertexAttributes:{position:e},vertexSpace:n,spatialReference:i,transform:r},a.A.absolute,{allowBufferReuse:!0})?.position;return l?!t.components||t.components.some(t=>!t.faces)?{position:l.buffer}:{position:l.buffer,components:t.components.map(t=>t.faces)}:null}(t),i=null==e?this.createIndexThread(n).result:await e.invoke("createIndexThread",n,{transferList:[]});return s().fromJSON(i)}createIndexThread(t){let e=s();if(!t)return{result:e.toJSON()};let n=new Float64Array(t.position);return t.components?function(t,e,n){let i=0;for(let t of n)i+=t.length/3;let r=Array(i),a=0;for(let t of n)for(let n=0;n<t.length;n+=3)r[a++]=h(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(r),{result:t.toJSON()}}(e,n,t.components.map(t=>new Uint32Array(t))):function(t,e){let n=Array(e.length/9),i=0;for(let t=0;t<e.length;t+=9)n[i++]=h(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}(e,n)}}function s(){return new r.wq(9,(0,i.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function h(t,e,n,i){return{minX:Math.min(t[e],t[n],t[i]),maxX:Math.max(t[e],t[n],t[i]),minY:Math.min(t[e+1],t[n+1],t[i+1]),maxY:Math.max(t[e+1],t[n+1],t[i+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[i],t[i+1],t[i+2]]}}},60077(t,e,n){n.d(e,{create:()=>u});var i=n(32198),r=n(83027),a=n(91429),o=n(51850),l=n(71351),s=n(48295),h=n(38419),c=n(7236);async function u(t,e){let n=await(++p,x&&=(clearTimeout(x),0),d||(d=(0,r.h)("ElevationSamplerWorker").catch(()=>null),d)),i=await f.createIndex(t,n);!function(t){--p,null!=t&&0===p&&(x=setTimeout(()=>{t.close(),d=null,x=0},_))}(n);let a=t.spatialReference,o=t.extent.clone();return new m({spatialReference:a,extent:o,noDataValue:e?.noDataValue||0,rindex:i})}let m=class extends c.A{constructor(t){super(t),this.demResolution={min:0,max:0}}elevationAt(t,e){let n=-1/0;return(0,l.fA)([t,e,0],[0,0,-1],g),this.rindex.search({minX:t,maxX:t,minY:e,maxY:e},t=>{(0,s.Ui)(t,g,v)&&v[2]>n&&(n=v[2])}),n===-1/0?this.noDataValue:n}};(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],m.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],m.prototype,"extent",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],m.prototype,"noDataValue",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],m.prototype,"rindex",void 0),m=(0,i.Cg)([(0,a.$K)("esri.geometry.support.meshUtils.elevationSampler")],m);const f=new h.default;let p=0,d=null,x=0;const _=1e4,g=(0,l.fA)([0,0,0],[0,0,-1]),v=(0,o.vt)()},71351(t,e,n){n.d(e,{C:()=>c,Cr:()=>u,LV:()=>h,fA:()=>m,vt:()=>l});var i=n(4341),r=(n(77690),n(29242)),a=n(35522),o=n(51850);function l(t){return t?s((0,o.o8)(t.origin),(0,o.o8)(t.direction)):s((0,o.vt)(),(0,o.vt)())}function s(t,e){return{origin:t,direction:e}}function h(t,e){let n=f.get();return n.origin=t,n.direction=e,n}function c(t,e=l()){return m(t.origin,t.direction,e)}function u(t,e,n=l()){return(0,a.C)(n.origin,t),(0,a.Re)(n.direction,e,t),n}function m(t,e,n=l()){return(0,a.C)(n.origin,t),(0,a.C)(n.direction,e),n}n(32114);const f=new i.I(()=>l());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,r.vt)()},48295(t,e,n){n.d(e,{BU:()=>c,Ui:()=>l,cq:()=>h,k3:()=>u,rb:()=>m});var i=n(4341),r=n(35522),a=n(51850),o=n(11964);function l(t,e,n){let{direction:i,origin:a}=e,{p0:o,p1:l,p2:s}=t,h=l[0]-o[0],c=l[1]-o[1],u=l[2]-o[2],m=s[0]-o[0],f=s[1]-o[1],p=s[2]-o[2],d=i[1]*p-f*i[2],x=i[2]*m-p*i[0],_=i[0]*f-m*i[1],g=h*d+c*x+u*_;if(g>-1e-5&&g<1e-5)return!1;let v=1/g,M=a[0]-o[0],X=a[1]-o[1],Y=a[2]-o[2],w=v*(M*d+X*x+Y*_);if(w<0||w>1)return!1;let B=X*u-c*Y,A=Y*h-u*M,y=M*c-h*X,R=v*(i[0]*B+i[1]*A+i[2]*y);if(R<0||w+R>1)return!1;if(n){let t=v*(m*B+f*A+p*y);(0,r.hs)(n,i,t),(0,r.WQ)(n,a,n)}return!0}function s(t,e,n){let[i,r]=t,[a,o]=e,[l,s]=n;return.5*((a-i)*(s-r)-(o-r)*(l-i))}function h(t,e,n,i,r=0){let a=s(i,t,e),o=s(i,e,n),l=s(i,n,t);return!((a<-r||o<-r||l<-r)&&(a>r||o>r||l>r))}function c(t,e,n){return(0,r.Re)(f,e,t),(0,r.Re)(p,n,t),.5*(0,r.Bw)((0,r.$A)(f,f,p))}function u(t,e,n,i,a){(0,r.jb)(f,i,n),(0,r.jb)(d,a,n),(0,r.jb)(p,e,n);let o=(0,r.Om)(f,p),l=(0,r.Om)(d,p);if(o<=0&&l<=0)return void(0,r.C)(t,n);(0,r.jb)(p,e,i);let s=(0,r.Om)(f,p),h=(0,r.Om)(d,p);if(s>=0&&h<=s)return void(0,r.C)(t,i);let c=o*h-s*l;if(c<=0&&o>=0&&s<=0)return void(0,r.Ln)(t,n,f,o/(o-s));(0,r.jb)(p,e,a);let u=(0,r.Om)(f,p),m=(0,r.Om)(d,p);if(m>=0&&u<=m)return void(0,r.C)(t,a);let x=u*l-o*m;if(x<=0&&l>=0&&m<=0)return void(0,r.Ln)(t,n,d,l/(l-m));let _=s*m-u*h;if(_<=0&&h-s>=0&&u-m>=0)return(0,r.jb)(p,a,i),void(0,r.Ln)(t,i,p,(h-s)/(h-s+(u-m)));let g=1/(_+x+c);(0,r.C)(t,n),(0,r.Ln)(t,t,f,x*g),(0,r.Ln)(t,t,d,c*g)}function m(t,e,n,i){(0,r.jb)(f,n,e),(0,r.jb)(p,i,e),(0,r.$A)(t,f,p);let a=(0,r.Bw)(t);return 0!==a&&((0,r.hs)(t,t,1/a),!0)}n(32114),new i.I(o.vt),new i.I(()=>{return t?{p0:(0,a.o8)(t.p0),p1:(0,a.o8)(t.p1),p2:(0,a.o8)(t.p2)}:{p0:(0,a.vt)(),p1:(0,a.vt)(),p2:(0,a.vt)()};var t});const f=(0,a.vt)(),p=(0,a.vt)(),d=(0,a.vt)()},7236(t,e,n){n.d(e,{A:()=>h});var i=n(32198),r=n(65529),a=n(53966),o=n(91429),l=n(86738),s=n(28735);let h=class extends r.nJ{queryElevation(t){let e=this.projectIfRequired(t,this.spatialReference);if(!e)return null;switch(t.type){case"point":return function(t,e,n){return t.hasZ=!0,t.z=n.elevationAt(e.x,e.y),t}(t,e,this);case"polyline":return function(t,e,n){c.spatialReference=e.spatialReference;let i=t.hasM&&!t.hasZ;for(let r=0;r<t.paths.length;r++){let a=t.paths[r],o=e.paths[r];for(let t=0;t<a.length;t++){let e=a[t],r=o[t];c.x=r[0],c.y=r[1],i&&(e[3]=e[2]),e[2]=n.elevationAt(c.x,c.y)}}return t.hasZ=!0,t}(t,e,this);case"multipoint":return function(t,e,n){c.spatialReference=e.spatialReference;let i=t.hasM&&!t.hasZ;for(let r=0;r<t.points.length;r++){let a=t.points[r],o=e.points[r];c.x=o[0],c.y=o[1],i&&(a[3]=a[2]),a[2]=n.elevationAt(c.x,c.y)}return t.hasZ=!0,t}(t,e,this);default:return null}}projectIfRequired(t,e){if(null==t)return null;let n=t.spatialReference;if(n.equals(e))return t;let i=(0,s.Cv)(t,e);return i||a.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${n.wkid}) to elevation sampler spatial reference (wkid:${e.wkid})`),i}};h=(0,i.Cg)([(0,o.$K)("esri.layers.support.ElevationSampler")],h);const c=new l.A}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[77],{11006(t,e,n){function i(t,e,n,i,a){r(t,e,n||0,i||t.length-1,a||o)}function r(t,e,n,i,o){for(;i>n;){if(i-n>600){var l=i-n+1,s=e-n+1,h=Math.log(l),c=.5*Math.exp(2*h/3),u=.5*Math.sqrt(h*c*(l-c)/l)*(s-l/2<0?-1:1);r(t,e,Math.max(n,Math.floor(e-s*c/l+u)),Math.min(i,Math.floor(e+(l-s)*c/l+u)),o)}var m=t[e],f=n,p=i;for(a(t,n,e),o(t[i],m)>0&&a(t,n,i);f<p;){for(a(t,f,p),f++,p--;o(t[f],m)<0;)f++;for(;o(t[p],m)>0;)p--}0===o(t[n],m)?a(t,n,p):a(t,++p,i),p<=e&&(n=p+1),e<=p&&(i=p-1)}}function a(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function o(t,e){return t<e?-1:+(t>e)}n.d(e,{q:()=>i})},4341(t,e,n){n.d(e,{I:()=>r});var i=n(26390);class r{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*a);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,a));t++)this._items.push(this._allocator())}}const a=1024},75503(t,e,n){n.d(e,{wq:()=>l});var i=n(4576),r=n(21818),a=(n(44208),n(15142)),o=n(11006);class l{constructor(t=9,e){this._compareMinX=m,this._compareMinY=f,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),X.prune(),Y.prune(),w.prune(),B.prune()}all(t){s(this._data,t)}search(t,e){let n=this._data,i=this._toBBox;if(v(t,n))for(X.clear();n;){for(let r=0,a=n.children.length;r<a;r++){let a=n.children[r],o=n.leaf?i(a):a;v(t,o)&&(n.leaf?e(a):g(t,o)?s(a,e):X.push(a))}n=X.pop()}}collides(t){let e=this._data,n=this._toBBox;if(!v(t,e))return!1;for(X.clear();e;){for(let i=0,r=e.children.length;i<r;i++){let r=e.children[i],a=e.leaf?n(r):r;if(v(t,a)){if(e.leaf||g(t,a))return!0;X.push(r)}}e=X.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){let t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new R([]),this}remove(t){if(!t)return this;let e,n=this._data,a=null,o=0,l=!1,s=this._toBBox(t);for(w.clear(),B.clear();n||w.length>0;){if(n||(n=w.pop(),a=w.data[w.length-1],o=B.pop()??0,l=!0),n.leaf&&(e=(0,i.qh)(n.children,(0,r.z)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),w.push(n),this._condense(w),this;l||n.leaf||!g(n,s)?a?(o++,n=a.children[o],l=!1):n=null:(w.push(n),B.push(o),o=0,a=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,i){let r=n-e+1,a=this._maxEntries;if(r<=a){let i=new R(t.slice(e,n+1));return h(i,this._toBBox),i}i||(i=Math.ceil(Math.log(r)/Math.log(a)),a=Math.ceil(r/a**(i-1)));let o=new b([]);o.height=i;let l=Math.ceil(r/a),s=l*Math.ceil(Math.sqrt(a));M(t,e,n,s,this._compareMinX);for(let r=e;r<=n;r+=s){let e=Math.min(r+s-1,n);M(t,r,e,l,this._compareMinY);for(let n=r;n<=e;n+=l){let r=Math.min(n+l-1,e);o.children.push(this._build(t,n,r,i-1))}}return h(o,this._toBBox),o}_insert(t,e,n){let i=this._toBBox,r=n?t:i(t);w.clear();let a=function(t,e,n,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==n;){let n,i=1/0,r=1/0;for(let a=0,o=e.children.length;a<o;a++){let o=e.children[a],l=p(o),s=x(t,o)-l;s<r?(r=s,i=l<i?l:i,n=o):s===r&&l<i&&(i=l,n=o)}e=n||e.children[0]}return e}(r,this._data,e,w);for(a.children.push(t),u(a,r);e>=0&&w.data[e].children.length>this._maxEntries;)this._split(w,e),e--;!function(t,e,n){for(let i=n;i>=0;i--)u(e.data[i],t)}(r,w,e)}_split(t,e){let n=t.data[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);let a=this._chooseSplitIndex(n,r,i);if(!a)return;let o=n.children.splice(a,n.children.length-a),l=n.leaf?new R(o):new b(o);l.height=n.height,h(n,this._toBBox),h(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new b([t,e]),this._data.height=t.height+1,h(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let i,r,a;i=r=1/0;for(let o=e;o<=n-e;o++){let e=c(t,0,o,this._toBBox),l=c(t,o,n,this._toBBox),s=_(e,l),h=p(e)+p(l);s<i?(i=s,a=o,r=h<r?h:r):s===i&&h<r&&(r=h,a=o)}return a}_chooseSplitAxis(t,e,n){let i=t.leaf?this._compareMinX:m,r=t.leaf?this._compareMinY:f;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)}_allDistMargin(t,e,n,i){t.children.sort(i);let r=this._toBBox,a=c(t,0,e,r),o=c(t,n-e,n,r),l=d(a)+d(o);for(let i=e;i<n-e;i++){let e=t.children[i];u(a,t.leaf?r(e):e),l+=d(a)}for(let i=n-e-1;i>=e;i--){let e=t.children[i];u(o,t.leaf?r(e):e),l+=d(o)}return l}_condense(t){for(let e=t.length-1;e>=0;e--){let n=t.data[e];if(0===n.children.length)if(e>0){let r=t.data[e-1],a=r.children;a.splice((0,i.qh)(a,n,a.length,r.indexHint),1)}else this.clear();else h(n,this._toBBox)}}_initFormat(t){let e=["return a"," - b",";"];this._compareMinX=Function("a","b",e.join(t[0])),this._compareMinY=Function("a","b",e.join(t[1])),this._toBBox=Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function s(t,e){let n=t;for(Y.clear();n;){if(!0===n.leaf)for(let t of n.children)e((0,r.z)(t));else Y.pushArray(n.children);n=Y.pop()??null}}function h(t,e){c(t,0,t.children.length,e,t)}function c(t,e,n,i,r){r||=new R([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let a,o=e;o<n;o++)a=t.children[o],u(r,t.leaf?i(a):a);return r}function u(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function m(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function x(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function _(t,e){let n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),a=Math.min(t.maxY,e.maxY);return Math.max(0,r-n)*Math.max(0,a-i)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function v(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function M(t,e,n,i,r){let a=[e,n];for(;a.length;){let e=a.pop(),n=a.pop();if(e-n<=i)continue;let l=n+Math.ceil((e-n)/i/2)*i;(0,o.q)(t,l,n,e,r),a.push(n,l,l,e)}}const X=new a.A,Y=new a.A,w=new a.A,B=new a.A({deallocator:void 0});class y{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends y{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class R extends A{constructor(t){super(),this.children=t,this.leaf=!0}}class b extends A{constructor(t){super(),this.children=t,this.leaf=!1}}},83027(t,e,n){const i=n(29953).ho;n.d(e,["h",0,i])},11964(t,e,n){n.d(e,{Cr:()=>c,LV:()=>h,_I:()=>u,vt:()=>s});var i=n(34727),r=n(4341),a=n(35522),o=n(51850),l=n(32114);function s(t){return t?{origin:(0,o.o8)(t.origin),vector:(0,o.o8)(t.vector)}:{origin:(0,o.vt)(),vector:(0,o.vt)()}}function h(t,e){let n=m.get();return n.origin=t,n.vector=e,n}function c(t,e,n=s()){return(0,a.C)(n.origin,t),(0,a.Re)(n.vector,e,t),n}function u(t,e,n){return function(t,e,n,r,o){let{vector:s,origin:h}=t,c=(0,a.Re)(l.rq.get(),e,h),u=(0,a.Om)(s,c)/(0,a.m3)(s);return(0,a.hs)(o,s,(0,i.qE)(u,0,1)),(0,a.WQ)(o,o,t.origin)}(t,e,0,0,n)}(0,o.vt)(),(0,o.vt)();const m=new r.I(()=>s())},38419(t,e,n){n.r(e),n.d(e,{default:()=>l});var i=n(44208),r=n(75503),a=n(95696),o=n(72258);class l{async createIndex(t,e){if(!t.vertexAttributes?.position)return new r.wq;let n=function(t){let{vertexAttributes:{position:e},vertexSpace:n,spatialReference:i,transform:r}=t,l=(0,o.UR)({vertexAttributes:{position:e},vertexSpace:n,spatialReference:i,transform:r},a.A.absolute,{allowBufferReuse:!0})?.position;return l?!t.components||t.components.some(t=>!t.faces)?{position:l.buffer}:{position:l.buffer,components:t.components.map(t=>t.faces)}:null}(t),i=null==e?this.createIndexThread(n).result:await e.invoke("createIndexThread",n,{transferList:[]});return s().fromJSON(i)}createIndexThread(t){let e=s();if(!t)return{result:e.toJSON()};let n=new Float64Array(t.position);return t.components?function(t,e,n){let i=0;for(let t of n)i+=t.length/3;let r=Array(i),a=0;for(let t of n)for(let n=0;n<t.length;n+=3)r[a++]=h(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(r),{result:t.toJSON()}}(e,n,t.components.map(t=>new Uint32Array(t))):function(t,e){let n=Array(e.length/9),i=0;for(let t=0;t<e.length;t+=9)n[i++]=h(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}(e,n)}}function s(){return new r.wq(9,(0,i.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function h(t,e,n,i){return{minX:Math.min(t[e],t[n],t[i]),maxX:Math.max(t[e],t[n],t[i]),minY:Math.min(t[e+1],t[n+1],t[i+1]),maxY:Math.max(t[e+1],t[n+1],t[i+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[i],t[i+1],t[i+2]]}}},60077(t,e,n){n.d(e,{create:()=>u});var i=n(32198),r=n(83027),a=n(91429),o=n(51850),l=n(71351),s=n(48295),h=n(38419),c=n(7236);async function u(t,e){let n=await(++p,x&&=(clearTimeout(x),0),d||(d=(0,r.h)("ElevationSamplerWorker").catch(()=>null),d)),i=await f.createIndex(t,n);!function(t){--p,null!=t&&0===p&&(x=setTimeout(()=>{t.close(),d=null,x=0},_))}(n);let a=t.spatialReference,o=t.extent.clone();return new m({spatialReference:a,extent:o,noDataValue:e?.noDataValue||0,rindex:i})}let m=class extends c.A{constructor(t){super(t),this.demResolution={min:0,max:0}}elevationAt(t,e){let n=-1/0;return(0,l.fA)([t,e,0],[0,0,-1],g),this.rindex.search({minX:t,maxX:t,minY:e,maxY:e},t=>{(0,s.Ui)(t,g,v)&&v[2]>n&&(n=v[2])}),n===-1/0?this.noDataValue:n}};(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],m.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],m.prototype,"extent",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],m.prototype,"noDataValue",void 0),(0,i.Cg)([(0,a.MZ)({constructOnly:!0})],m.prototype,"rindex",void 0),m=(0,i.Cg)([(0,a.$K)("esri.geometry.support.meshUtils.elevationSampler")],m);const f=new h.default;let p=0,d=null,x=0;const _=1e4,g=(0,l.fA)([0,0,0],[0,0,-1]),v=(0,o.vt)()},71351(t,e,n){n.d(e,{C:()=>c,Cr:()=>u,LV:()=>h,fA:()=>m,vt:()=>l});var i=n(4341),r=(n(77690),n(29242)),a=n(35522),o=n(51850);function l(t){return t?s((0,o.o8)(t.origin),(0,o.o8)(t.direction)):s((0,o.vt)(),(0,o.vt)())}function s(t,e){return{origin:t,direction:e}}function h(t,e){let n=f.get();return n.origin=t,n.direction=e,n}function c(t,e=l()){return m(t.origin,t.direction,e)}function u(t,e,n=l()){return(0,a.C)(n.origin,t),(0,a.Re)(n.direction,e,t),n}function m(t,e,n=l()){return(0,a.C)(n.origin,t),(0,a.C)(n.direction,e),n}n(32114);const f=new i.I(()=>l());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,r.vt)()},48295(t,e,n){n.d(e,{BU:()=>c,Ui:()=>l,cq:()=>h,k3:()=>u,rb:()=>m});var i=n(4341),r=n(35522),a=n(51850),o=n(11964);function l(t,e,n){let{direction:i,origin:a}=e,{p0:o,p1:l,p2:s}=t,h=l[0]-o[0],c=l[1]-o[1],u=l[2]-o[2],m=s[0]-o[0],f=s[1]-o[1],p=s[2]-o[2],d=i[1]*p-f*i[2],x=i[2]*m-p*i[0],_=i[0]*f-m*i[1],g=h*d+c*x+u*_;if(g>-1e-5&&g<1e-5)return!1;let v=1/g,M=a[0]-o[0],X=a[1]-o[1],Y=a[2]-o[2],w=v*(M*d+X*x+Y*_);if(w<0||w>1)return!1;let B=X*u-c*Y,y=Y*h-u*M,A=M*c-h*X,R=v*(i[0]*B+i[1]*y+i[2]*A);if(R<0||w+R>1)return!1;if(n){let t=v*(m*B+f*y+p*A);(0,r.hs)(n,i,t),(0,r.WQ)(n,a,n)}return!0}function s(t,e,n){let[i,r]=t,[a,o]=e,[l,s]=n;return.5*((a-i)*(s-r)-(o-r)*(l-i))}function h(t,e,n,i,r=0){let a=s(i,t,e),o=s(i,e,n),l=s(i,n,t);return!((a<-r||o<-r||l<-r)&&(a>r||o>r||l>r))}function c(t,e,n){return(0,r.Re)(f,e,t),(0,r.Re)(p,n,t),.5*(0,r.Bw)((0,r.$A)(f,f,p))}function u(t,e,n,i,a){(0,r.jb)(f,i,n),(0,r.jb)(d,a,n),(0,r.jb)(p,e,n);let o=(0,r.Om)(f,p),l=(0,r.Om)(d,p);if(o<=0&&l<=0)return void(0,r.C)(t,n);(0,r.jb)(p,e,i);let s=(0,r.Om)(f,p),h=(0,r.Om)(d,p);if(s>=0&&h<=s)return void(0,r.C)(t,i);let c=o*h-s*l;if(c<=0&&o>=0&&s<=0)return void(0,r.Ln)(t,n,f,o/(o-s));(0,r.jb)(p,e,a);let u=(0,r.Om)(f,p),m=(0,r.Om)(d,p);if(m>=0&&u<=m)return void(0,r.C)(t,a);let x=u*l-o*m;if(x<=0&&l>=0&&m<=0)return void(0,r.Ln)(t,n,d,l/(l-m));let _=s*m-u*h;if(_<=0&&h-s>=0&&u-m>=0)return(0,r.jb)(p,a,i),void(0,r.Ln)(t,i,p,(h-s)/(h-s+(u-m)));let g=1/(_+x+c);(0,r.C)(t,n),(0,r.Ln)(t,t,f,x*g),(0,r.Ln)(t,t,d,c*g)}function m(t,e,n,i){(0,r.jb)(f,n,e),(0,r.jb)(p,i,e),(0,r.$A)(t,f,p);let a=(0,r.Bw)(t);return 0!==a&&((0,r.hs)(t,t,1/a),!0)}n(32114),new i.I(o.vt),new i.I(()=>{return t?{p0:(0,a.o8)(t.p0),p1:(0,a.o8)(t.p1),p2:(0,a.o8)(t.p2)}:{p0:(0,a.vt)(),p1:(0,a.vt)(),p2:(0,a.vt)()};var t});const f=(0,a.vt)(),p=(0,a.vt)(),d=(0,a.vt)()},7236(t,e,n){n.d(e,{A:()=>h});var i=n(32198),r=n(65529),a=n(53966),o=n(91429),l=n(86738),s=n(28735);let h=class extends r.nJ{queryElevation(t){let e=this.projectIfRequired(t,this.spatialReference);if(!e)return null;switch(t.type){case"point":return function(t,e,n){return t.hasZ=!0,t.z=n.elevationAt(e.x,e.y),t}(t,e,this);case"polyline":return function(t,e,n){c.spatialReference=e.spatialReference;let i=t.hasM&&!t.hasZ;for(let r=0;r<t.paths.length;r++){let a=t.paths[r],o=e.paths[r];for(let t=0;t<a.length;t++){let e=a[t],r=o[t];c.x=r[0],c.y=r[1],i&&(e[3]=e[2]),e[2]=n.elevationAt(c.x,c.y)}}return t.hasZ=!0,t}(t,e,this);case"multipoint":return function(t,e,n){c.spatialReference=e.spatialReference;let i=t.hasM&&!t.hasZ;for(let r=0;r<t.points.length;r++){let a=t.points[r],o=e.points[r];c.x=o[0],c.y=o[1],i&&(a[3]=a[2]),a[2]=n.elevationAt(c.x,c.y)}return t.hasZ=!0,t}(t,e,this);default:return null}}projectIfRequired(t,e){if(null==t)return null;let n=t.spatialReference;if(n.equals(e))return t;let i=(0,s.y)(t,e);return i||a.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${n.wkid}) to elevation sampler spatial reference (wkid:${e.wkid})`),i}};h=(0,i.Cg)([(0,o.$K)("esri.layers.support.ElevationSampler")],h);const c=new l.A}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,8915],{52106(e,t,r){r.d(t,{A:()=>x});var i,s,o=r(32198),n=r(40124),l=r(69540),a=r(51447),p=r(25482),u=r(53966),d=r(36708),c=r(24326),g=r(91429),h=r(12195),y=r(65864),m=r(50498),f=r(55156),v=r(60950),b=r(54339),w=r(94128),S=r(33910);const C=Symbol("meshGeometryHandles");function I(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let x=class extends((0,l.OU)(p.o)){static{i=w.Z}static{s=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,c.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:I(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(s.action=i),"attributes"===e&&(s.attributeName=i),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,o.Cg)([(0,g.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,y.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],x.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,g.MZ)({value:null})],x.prototype,"attributes",null),(0,o.Cg)([(0,g.MZ)({value:null,types:m.yR,json:{read:y.rS}})],x.prototype,"geometry",null),(0,o.Cg)([(0,g.MZ)()],x.prototype,"distance",void 0),(0,o.Cg)([(0,g.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,o.Cg)([(0,g.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,o.Cg)([(0,g.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,o.Cg)([(0,g.MZ)({type:n.A,value:null})],x.prototype,"popupTemplate",null),(0,o.Cg)([(0,g.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,g.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],x.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,g.MZ)({value:null,types:S.Es})],x.prototype,"symbol",null),(0,o.Cg)([(0,g.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,o.Cg)([(0,g.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=s=(0,o.Cg)([(0,g.$K)("esri.Graphic")],x)},46140(e,t,r){r.d(t,{A:()=>s});var i=r(49186);class s{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new s(this.major,this.minor,this._context)}static parse(e,t=""){let[r,o]=e.split(".",2),n=/^\s*\d+\s*$/;if(!r?.match||!n.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!o?.match||!n.test(o)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new s(parseInt(r,10),parseInt(o,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>c});var i=r(56372),s=r(7762),o=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof s.A?Object.keys(e.items):l(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function p(e,t){return e instanceof s.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),s=a(t);if(0===i.length&&0===s.length)return;if(!i.length||!s.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=s.filter(e=>!i.includes(e)),c=i.filter(e=>!s.includes(e)),g=i.filter(r=>s.includes(r)&&p(e,r)!==p(t,r)).concat(o,c).sort(),h=u(e);if(h&&n.has(h)&&g.length)return{type:"complete",oldValue:e,newValue:t};let y,m=l(e)&&l(t);for(let i of g){let s,o=p(e,i),n=p(t,i);if((m||"function"!=typeof o&&"function"!=typeof n)&&o!==n&&(null!=o||null!=n)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(o,n);else if(o instanceof Date&&n instanceof Date){if(o.getTime()===n.getTime())continue;s={type:"complete",oldValue:o,newValue:n}}else s="object"==typeof o&&"object"==typeof n&&u(o)===u(n)?d(o,n):{type:"complete",oldValue:o,newValue:n};null!=s&&(null==y?y={type:"partial",diff:{[i]:s}}:y.diff[i]=s)}}return y}function c(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},55156(e,t,r){r.d(t,{I:()=>s});const i=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},79457(e,t,r){r.r(t),r.d(t,{default:()=>pe});var i=r(32198),s=r(40124),o=r(56507),n=r(69540),l=r(49186),a=r(36563),p=r(4718),u=r(53966),d=r(25728),c=r(17676),g=r(84952),h=r(91429),y=r(78888),m=r(5443),f=r(16930),v=r(50498),b=r(41910),w=r(55156),S=r(60950),C=r(89808),I=r(99959);const x=Symbol("isStreamGraphicOrigin");var M;class A extends I.A{get[(M=x,S.ym)](){return this.layer}get[w.e](){return this.layer}get[C.Q](){return this.layer}get[b.e7](){return this.layer}constructor(e){super(),this[M]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var P,L=r(4146),Z=r(18768),j=r(63074),T=r(69208),O=r(6455),_=r(87718),F=r(56658),E=r(34287),N=r(8303),k=r(54310),R=r(25036),D=r(82935),U=r(63396),$=r(10873),z=r(25747),G=r(15426),J=r(20437),K=r(17036),q=r(30524),V=r(9916),H=r(46499),B=r(39383),Q=r(25482);let W=class extends Q.o{static{P=this}constructor(e){super(e),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new P({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,i.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],W.prototype,"age",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],W.prototype,"ageReceived",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],W.prototype,"displayCount",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],W.prototype,"maxObservations",void 0),W=P=(0,i.Cg)([(0,h.$K)("esri.layers.support.PurgeOptions")],W);var X=r(72691),Y=r(65494),ee=r(8947),te=r(41214),re=r(97552),ie=r(30291),se=r(88625),oe=r(59923),ne=r(36005);const le=(0,K.p)();let ae=class extends((0,O.FJ)((0,F.J)((0,_.F)((0,j.dM)((0,D.e)((0,U.d)((0,R.j)((0,k.J)((0,Z.b)((0,E.q)((0,N.A)((0,d.M)((0,T.d)((0,n.OU)(L.A))))))))))))))){constructor(e){super(e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new A(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new W,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.source=null,this.sourceJSON=null,this.spatialReference=f.A.WGS84,this.timeInfo=null,this.type="stream",this.url=null,this.updateInterval=300,this.webSocketUrl=null,this._debouncedSaveOperations=(0,c.sg)(async(e,t,i)=>{let{save:s,saveAs:o}=await r.e(7301).then(()=>r(87301));switch(e){case 0:return s(this,t);case 1:return o(this,i,t)}})}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new l.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(c.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){let t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,q.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){t=t.layerDefinition||t;let i=t.drawingInfo?.renderer;if(i){let e=(0,Y.L)(i,t,r)||void 0;return e||u.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}return(0,G.PD)(t,r)}async connect(e){let[{createConnection:t}]=await Promise.all([Promise.all([r.e(893),r.e(4834)]).then(()=>r(60986)),this.load()]),i=e?.spatialReference??this.spatialReference,s=t(this.getStreamConnectionSource(e),i),o=(0,a.vE)([this.on("send-message-to-socket",e=>s.sendMessageToSocket(e)),this.on("send-message-to-client",e=>s.sendMessageToClient(e))]);return s.once("destroy",o.remove),s}getStreamConnectionSource(e){let{customParameters:t=null,definitionExpression:r=null,geometryDefinition:i=null,maxReconnectionAttempts:s=0,maxReconnectionInterval:o=20}=e||this.createConnectionParameters(),n=this.geometryType?v.gy.toJSON(this.geometryType):null,a=this.spatialReference.toJSON();if(this.source){if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","TrackIdField required for Kusto data source.");return{type:"kusto",database:this.database,table:this.source.table,trackIdField:this.timeInfo.trackIdField,geometryEncoding:this.source.geometryEncoding.toJSON(),sourceSpatialReference:a,refreshInterval:this.source.refreshInterval}}return this.webSocketUrl?{type:"custom",url:(0,g.An)(this.webSocketUrl),customParameters:t,definitionExpression:r,geometryDefinition:i,geometryType:n,maxReconnectionAttempts:s,maxReconnectionInterval:o,sourceSpatialReference:a}:this.parsedUrl?{type:"geoevent",url:this.parsedUrl,customParameters:t,definitionExpression:r,geometryDefinition:i,geometryType:n,maxReconnectionAttempts:s,maxReconnectionInterval:o,sourceSpatialReference:a}:{type:"client",geometryType:n,sourceSpatialReference:this.spatialReference.toJSON()}}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,ie.tn)(this,e)}createQuery(){let e=new re.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let r=null;return this.fields.some(t=>(t.name===e&&(r=t.domain),!!r)),r}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){return this.webSocketUrl?((0,oe.U4)(t,this,"a custom websocket connection cannot be written to web scenes and web maps"),null):this.source?((0,oe.U4)(t,this,"a custom source cannot be written to web scenes and web maps"),null):this.parsedUrl?super.write(e,t):((0,oe.U4)(t,this,"a client-side only connection without a url cannot be written to web scenes and web maps"),null)}async _fetchService(e){if(this.source){let e=await(0,V.ZF)(this.source.workspace,this.source.database,this.source.table,{fields:this.fields,source:this.source,database:this.database});if(this.database=e.database,!e.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields=e.fields,!e.source)throw new l.A("stream-layer:missing-metadata","Unable to infer Kusto source.",{layerInfo:e});if(!e.source.geometryEncoding)throw new l.A("stream-layer:missing-metadata","Unable to infer Kusto geometry encoding.",{layerInfo:e});this.source=e.source}if(this.parsedUrl){if(!this.sourceJSON){let{data:t}=await(0,o.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(!this.objectIdField){let e=this.fields.find(e=>"oid"===e.type)?.name;e&&(this.objectIdField=e)}if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new J.A({name:this.objectIdField??X.DN,alias:this.objectIdField??X.DN,type:"oid"})),!this.geometryType)throw new l.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.")}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,q.yp)(this.renderer,this.fieldsIndex),(0,q.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||=X.DN,(0,ee.L)(this,{origin:"service"})}};(0,i.Cg)([(0,h.MZ)({type:String})],ae.prototype,"copyright",void 0),(0,i.Cg)([(0,h.MZ)()],ae.prototype,"database",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],ae.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,h.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ae.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],ae.prototype,"displayField",void 0),(0,i.Cg)([(0,h.MZ)({type:se.A})],ae.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,h.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],ae.prototype,"featureReduction",null),(0,i.Cg)([(0,h.MZ)(le.fields)],ae.prototype,"fields",void 0),(0,i.Cg)([(0,h.MZ)(le.fieldsIndex)],ae.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,h.MZ)({type:m.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],ae.prototype,"geometryDefinition",void 0),(0,i.Cg)([(0,h.MZ)({type:v.gy.apiValues,json:{read:{reader:v.gy.read}}})],ae.prototype,"geometryType",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,clonable:!1})],ae.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,h.MZ)($.kF)],ae.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,h.MZ)({type:[H.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:B.w},write:!0}})],ae.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,h.MZ)($.fV)],ae.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],ae.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)({type:y.jz})],ae.prototype,"maxReconnectionAttempts",void 0),(0,i.Cg)([(0,h.MZ)({type:y.jz})],ae.prototype,"maxReconnectionInterval",void 0),(0,i.Cg)([(0,h.MZ)($.hG)],ae.prototype,"maxScale",void 0),(0,i.Cg)([(0,h.MZ)($.hn)],ae.prototype,"minScale",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],ae.prototype,"objectIdField",void 0),(0,i.Cg)([(0,h.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],ae.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],ae.prototype,"outFields",void 0),(0,i.Cg)([(0,h.MZ)($.M6)],ae.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],ae.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,h.MZ)({type:W})],ae.prototype,"purgeOptions",void 0),(0,i.Cg)([(0,h.MZ)({json:{read:!1,write:!1}})],ae.prototype,"refreshInterval",void 0),(0,i.Cg)([(0,h.MZ)({types:te.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:te.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],ae.prototype,"renderer",null),(0,i.Cg)([(0,ne.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,ne.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],ae.prototype,"readRenderer",null),(0,i.Cg)([(0,h.MZ)((()=>{let e=(0,p.o8)($.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],ae.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:z.A,json:{write:!1}})],ae.prototype,"source",void 0),(0,i.Cg)([(0,h.MZ)()],ae.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,h.MZ)({type:f.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],ae.prototype,"spatialReference",void 0),(0,i.Cg)([(0,h.MZ)((0,$.U$)())],ae.prototype,"timeInfo",void 0),(0,i.Cg)([(0,h.MZ)({json:{read:!1}})],ae.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)($.OZ)],ae.prototype,"url",void 0),(0,i.Cg)([(0,h.MZ)({type:Number})],ae.prototype,"updateInterval",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],ae.prototype,"webSocketUrl",void 0),ae=(0,i.Cg)([(0,h.$K)("esri.layers.StreamLayer")],ae);const pe=ae},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>s})},18768(e,t,r){var i=r(32198),s=r(53966),o=r(91429),n=r(60694);r.d(t,["b",0,e=>{let t=e,r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let e=(0,n.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,n.Jf)(e,s.A.getLogger(this)))}};return(0,i.Cg)([(0,o.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(32198),s=r(91429);r.d(t,["d",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},8303(e,t,r){var i=r(32198),s=r(92602),o=r(70333),n=r(56507),l=r(60999),a=r(49186),p=r(36563),u=r(53966),d=r(97768),c=r(17676),g=r(84952),h=r(91429),y=r(77548),m=r(20655),f=r(80812),v=r(41318),b=r(10407),w=r(26121),S=r(36005),C=r(43937);const I={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,x=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,d.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new f.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:i}=await r.e(1204).then(()=>r(41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let i=t?.signal?null:new AbortController;try{let{reload:s}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,p.rE)(i),"reloadFromPortal"),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let i,s,n=!o.id?.findCredential(this.url),l=e===r.id;if(l&&r.portal.user)return this._getUserPrivileges(r,n);if(l)i=r.portal.url;else try{i=await(0,y.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!i||!(0,g.b8)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;s=await(o.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(l?await r.reload():(r=new f.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,c.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;let r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,s=m.A.getDefault();if(s&&s.loaded&&(0,g.S8)(s.restUrl)===(0,g.S8)(i))return s.user;let a=`${i}/community/self`,p=null==e?null:e.signal,u=await(0,l.Ke)((0,n.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:p}));return u.ok?v.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,w.wN)(this.portalItem,t)?(t?.messages?.push(new a.A("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, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,h.MZ)({type:f.default})],x.prototype,"portalItem",null),(0,i.Cg)([(0,S.w)("web-document","portalItem",["itemId"])],x.prototype,"readPortalItem",null),(0,i.Cg)([(0,C.K)("web-document","portalItem",{itemId:{type:String}})],x.prototype,"writePortalItem",null),(0,i.Cg)([(0,h.MZ)({clonable:!1})],x.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasUpdateItemPrivileges",void 0),x=(0,i.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],x),x}])},82935(e,t,r){var i=r(32198),s=r(91429),o=r(30524),n=r(96184),l=r(73133),a=r(79677),p=r(10184),u=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,d,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,s=l.j.fromJSON(r.timeOffsetUnits);return i&&s?new p.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,u.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:n.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},63396(e,t,r){r.d(t,{d:()=>I});var i=r(32198),s=r(91429),o=r(41910),n=r(60950),l=r(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[n.ym](){return this.trackInfoProvider.trackInfo}get[o.e7](){return this.trackInfoProvider}}var p=r(40124),u=r(69540),d=r(25482),c=r(93637),g=r(50820),h=r(10873),y=r(46499),m=r(41214);let f=class extends((0,u.OU)(d.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,s.MZ)({type:[y.A],json:{write:!0}})],f.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,s.MZ)(h.kF)],f.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,s.MZ)({types:m.Hg,json:{write:!0}})],f.prototype,"renderer",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"visible",void 0),f=(0,i.Cg)([(0,s.$K)("esri.layers.support.TrackPartInfo")],f);var v=r(96576),b=r(59868),w=r(10184),S=r(43937);let C=class extends((0,u.OU)(d.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new f({renderer:new v.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new f({renderer:new v.A({symbol:b.UK.clone()})}),this.trackLines=new f({renderer:new v.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,r){let i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,c.sM)(r,i,t)}};(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],C.prototype,"enabled",void 0),(0,i.Cg)([(0,s.MZ)({type:[g.A],json:{write:!0}})],C.prototype,"fields",void 0),(0,i.Cg)([(0,S.K)("fields")],C.prototype,"writeFields",null),(0,i.Cg)([(0,s.MZ)({type:f,json:{write:!0}})],C.prototype,"latestObservations",void 0),(0,i.Cg)([(0,s.MZ)({type:w.A,json:{write:!0}})],C.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],C.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,s.MZ)(h.M6)],C.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:p.A,json:{name:"popupInfo",write:!0}})],C.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,s.MZ)({type:f,json:{write:!0}})],C.prototype,"previousObservations",void 0),(0,i.Cg)([(0,s.MZ)({type:f,json:{write:!0}})],C.prototype,"trackLines",void 0),(0,i.Cg)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],C.prototype,"timeField",void 0),C=(0,i.Cg)([(0,s.$K)("esri.layers.support.TrackInfo")],C);const I=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,s.MZ)({type:C})],r.prototype,"trackInfo",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TrackableLayer")],r),r}},25747(e,t,r){r.d(t,{A:()=>p});var i=r(32198),s=r(69540),o=r(25482),n=r(91429),l=r(64108),a=r(9075);let p=class extends((0,o.T)(s.Pw)){constructor(e){super(e),this.type="fabric",this.refreshInterval=5e3/6e4}};(0,i.Cg)([(0,n.MZ)({type:["fabric"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"workspace",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"database",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"table",void 0),(0,i.Cg)([(0,n.MZ)({type:a.A,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"geometryEncoding",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"refreshInterval",void 0),p=(0,i.Cg)([(0,l.$)("esri.layers.support.FabricKustoSource")],p)},9075(e,t,r){r.d(t,{A:()=>l});var i=r(32198),s=r(69540),o=r(25482),n=r(91429);let l=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.type="location",this.xField=null,this.yField=null}};(0,i.Cg)([(0,n.MZ)({type:["location"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],l.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"xField",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"yField",void 0),l=(0,i.Cg)([(0,n.$K)("esri.layers.support.GeometryEncodingLocation")],l)},46499(e,t,r){var i,s,o=r(32198),n=(r(44208),r(66552)),l=r(25482),a=r(4718),p=r(90629),u=r(91429),d=r(90360),c=r(73913),g=r(32730),h=r(77548),y=r(59868),m=r(73838),f=r(33910),v=r(36005),b=r(43937);const w=new n.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,h.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function I(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let x=class extends l.o{static{i=g.vK}static{s=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),s=i[3],o=r(t[i[4]],i[5],i[6]);switch(s){case"AND":return e&&o;case"OR":return e||o}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=y.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,g.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,g.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&C(i))e=new c.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let s=e.toJSON(i);s.expression&&(t[r]=s)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,g.XJ)(this)}getLabelExpressionArcade(){return(0,g.BI)(this)}getLabelExpressionSingleField(){return(0,g.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new s({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"name",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],x.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],x.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&I(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],x.prototype,"labelExpression",void 0),(0,o.Cg)([(0,v.w)("labelExpression")],x.prototype,"readLabelExpression",null),(0,o.Cg)([(0,b.K)("labelExpression")],x.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,u.MZ)({type:c.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||I(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],x.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,b.K)("labelExpressionInfo")],x.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,u.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],x.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],x.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],x.prototype,"labelPosition",void 0),(0,o.Cg)([(0,u.MZ)({type:Number})],x.prototype,"maxScale",void 0),(0,o.Cg)([(0,b.K)("maxScale")],x.prototype,"writeMaxScale",null),(0,o.Cg)([(0,u.MZ)({type:Number})],x.prototype,"minScale",void 0),(0,o.Cg)([(0,b.K)("minScale")],x.prototype,"writeMinScale",null),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],x.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],x.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,u.MZ)({types:f.em,json:{types:f.em,origins:{"portal-item":{types:f.em,read:{reader:(0,d.C)({types:f.em})},default:null},"web-scene":{types:f.Rv,read:{reader:(0,d.C)({types:f.Rv})},write:m.oO,default:null}},write:m.oO,default:null}})],x.prototype,"symbol",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"where",void 0),x=s=(0,o.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],x);const M=x;r.d(t,["A",0,M])},73913(e,t,r){var i,s=r(32198),o=r(25482),n=r(91429),l=r(32730),a=r(36005),p=r(43937);let u=class extends o.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,s.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,s.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,s.Cg)([(0,n.$K)("esri.layers.support.LabelExpressionInfo")],u);const d=u;r.d(t,["A",0,d])},41560(e,t,r){r.d(t,{Ch:()=>n,mW:()=>o});var i=r(34727),s=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){let o=function(e){if("manual"===p(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";let n=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let s=u(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,i.ZH)(s,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],s=e[t+1];if((0,i.ZH)(u(s.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,s.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===p(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,s){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(s??r)>e||(0,i.Hx)(t,r)||void 0!==s&&(0,i.Sp)(s,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||1/0}function d(e){return e||0}},17036(e,t,r){r.d(t,{p:()=>a});var i=r(44208),s=r(53966),o=r(20437),n=r(95466),l=r(30524);function a(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){let t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){let e=t.map(e=>`'${e.name}'`).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${2**53-1} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return n.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){let e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(let t of e)this.fieldsIndex?.has(t)||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e});return(0,l.DB)(this.fieldsIndex,e)}}}}},9916(e,t,r){r.d(t,{ZF:()=>p,iD:()=>c,xw:()=>d});var i=r(56507),s=r(49186),o=r(25747),n=r(20437),l=r(9075),a=r(54625);async function p(e,t,r,n,p={}){if(n.database||=await async function(e,t){let{data:r}=await(0,i.A)(`https://api.fabric.microsoft.com/v1/workspaces/${e}/kqlDatabases/${t}`,{responseType:"json"});if(null==r)throw new s.A("kusto:connection",`KQL database '${t}' was not found in workspace '${e}'`);return r}(e,t),n.fields?.length||(n.fields=await async function(e,t,r={}){let o=await async function(e,t,r={}){let o=e.properties.queryServiceUri;return function(e){let t=e.Tables[0];if(null==t||0===t.Rows.length)throw new s.A("kusto:invalid-schema-response","Kusto schema response did not include any rows");let[r,i]=t.Rows[0];if("string"!=typeof i)throw new s.A("kusto:invalid-schema-response","Kusto schema response did not include a schema string");return JSON.parse(i)}((await(0,i.A)(`${o}/v1/rest/mgmt`,{responseType:"json",method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({db:e.displayName,csl:`.show table ${d(t)} schema as json`}),signal:r.signal})).data)}(e,t,r),n=[];for(let e of o.OrderedColumns){let t=u(e);t&&n.push(t)}return n}(n.database,r,p)),n.source||=new o.A({workspace:e,database:t,table:r}),!n.source.geometryEncoding){let e=(0,a.i_)(n.fields.map(e=>e.name));e.latitudeFieldName&&e.longitudeFieldName&&(n.source.geometryEncoding=new l.A({xField:e.longitudeFieldName,yField:e.latitudeFieldName}))}return n}function u(e){let t=function(e){switch(e){case"bool":return"small-integer";case"guid":case"string":return"string";case"int":return"integer";case"long":return"big-integer";case"real":return"double";case"dynamic":case"datetime":case"decimal":case"timespan":return null}}(e.CslType);return t?new n.A({name:e.Name,type:t}):null}function d(e){return`['${e.replaceAll("'","''")}']`}function c(e){return e.replaceAll("'","''")}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>d});var i=r(49186),s=r(53966),o=r(46499);const n=()=>s.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new o.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let s of e){let e=s.labelPlacement,o=u[t];if(!s.symbol)return n().warn("No ILabelClass symbol specified."),[];if(!o)return n().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(s);else{let i=o[0];e&&n().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let l=s.clone();l.labelPlacement=i,r.push(l)}}return r}},54625(e,t,r){r.d(t,{i_:()=>s});var i=r(30524);function s(e,t,r){t=(0,i.rS)(t)?.toLowerCase(),r=(0,i.rS)(r)?.toLowerCase();let s=e.map(e=>e.toLowerCase()),l=t?e[s.indexOf(t)]:null,a=r?e[s.indexOf(r)]:null;return{longitudeFieldName:l||e[s.indexOf(n.find(e=>s.includes(e)))],latitudeFieldName:a||e[s.indexOf(o.find(e=>s.includes(e)))]}}const o=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],n=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"];r.d(t,["A0",0,n,"bD",0,o])},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),s=r(53966),o=r(46140),n=r(95466),l=r(55674);class a{static async from(e,t,r){let n=e.dictionary_version?o.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(let e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);let c=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))c.delete(e);c.size&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});let g=await(0,l.xR)(e.expression,null,d);if(!g)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let h=!n||!n.greaterEqual(4,0);h&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});let y=new p(r,h);return new a(h,u,g,y)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new n.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new n.A(t)}}class p extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},8947(e,t,r){r.d(t,{L:()=>n});var i=r(60999),s=r(17676),o=r(67076);async function n(e,t,r){let n=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(n&&"unique-value"===n.type&&n.styleOrigin){let l=await(0,i.Ke)(n.populateFromStyle());if((0,s.Te)(r),!1===l.ok){let r=l.error;t?.messages&&t.messages.push(new o.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},41366(e,t,r){var i=r(32198),s=r(66552),o=r(53966),n=r(91429),l=r(93223);const a=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&u||r&&p||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===u||e===p)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,n.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,s,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])},26121(e,t,r){r.d(t,{I6:()=>u,ci:()=>p,dL:()=>a,wN:()=>d});var i=r(49186),s=r(84952),o=r(77548),n=r(20655),l=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function p(e,t,r){let s=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(s=s.concat(e.blockedRelativeUrls.map(e=>(0,l.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=r;e&&(s=s.filter(({name:e})=>!(l.MG.has(e)||t.includes(e)))),i&&(s=s.filter(e=>"web-document-write:property-required"!==e.name))}if(s.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:s})}function u(e){return(0,o.qd)(e).some(e=>!!e.charts?.length)}function d(e,t){let r=t?.portal,i=e?.id&&(e.portal||n.A.getDefault());return!!r&&!!i&&!(0,s.ut)(i.restUrl,r.restUrl)}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5128],{68197(t,e,i){i.d(e,{A:()=>u});var r=i(40876),n=i(4576),s=i(34727),a=i(78888);function o(t){return(0,s.qE)((0,a.Vr)(t),0,255)}function l(t,e){let i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}function h(t){return.2126*(0,r.Q6)(t.r)+.7152*(0,r.Q6)(t.g)+.0722*(0,r.Q6)(t.b)}class u{static blendColors(t,e,i,r=new u){return r.r=Math.round(t.r+(e.r-t.r)*i),r.g=Math.round(t.g+(e.g-t.g)*i),r.b=Math.round(t.b+(e.b-t.b)*i),r.a=t.a+(e.a-t.a)*i,r._sanitize()}static fromRgb(t,e){let i=(0,r.lT)(t);return i?u.fromArray(i,e):null}static fromHex(t,e=new u){let i=(0,r.oW)(t);return i?u.fromArray(i,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){let i=(0,r.Eq)(t);return i?u.fromArray(i,e):null}static fromJSON(t){return null==t?void 0:new u([t[0],t[1],t[2],(t[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null==this.a?1:this.a,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(t,e=3){let i=t instanceof u?t:new u(t),r=h(this),n=h(i);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)<e}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,n.yc)(t))u.fromArray(t,this);else{let e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){let e=t?.capitalize??!1,i=t?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${n?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(t=!1){let e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){let e=o(this.r),i=o(this.g),r=o(this.b);return 0===t||1!==this.a?[e,i,r,o(255*this.a)]:[e,i,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,i,r){this.r=t,this.g=e,this.b=i,this.a=r}}u.prototype.declaredClass="esri.Color"},40876(t,e,i){i.d(e,{Eq:()=>m,G1:()=>g,Q6:()=>y,TS:()=>s,V6:()=>n,Vm:()=>d,ay:()=>l,c1:()=>b,c4:()=>a,j5:()=>h,lT:()=>c,oW:()=>u,xV:()=>M});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(t){return!!r[t]||!!r[t.toLowerCase()]}function s(t){return r[t]??r[t.toLowerCase()]}function a(t){return[...s(t)]}function o(t,e,i){i<0&&++i,i>1&&--i;let r=6*i;return r<1?t+(e-t)*r:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function l(t,e,i,r=1){let n=(t%360+360)%360/360,s=i<=.5?i*(e+1):i+e-i*e,a=2*i-s;return[Math.round(255*o(a,s,n+1/3)),Math.round(255*o(a,s,n)),Math.round(255*o(a,s,n-1/3)),r]}function h(t){let e=t.length>5,i=e?8:4,r=(1<<i)-1,n=e?1:17,s=e?9===t.length:5===t.length,a=Number("0x"+t.slice(1));if(isNaN(a))return null;let o,l=[0,0,0,1];return s&&(o=a&r,a>>=i,l[3]=n*o/255),o=a&r,a>>=i,l[2]=n*o,o=a&r,a>>=i,l[1]=n*o,o=a&r,a>>=i,l[0]=n*o,l}function u(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{let e=parseInt(t.slice(1,2),16),i=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),n=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,i+16*i,r+16*r,(n+16*n)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function c(t){let e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){let t=e[2].split(/\s*,\s*/),i=e[1];if("rgb"===i&&3===t.length||"rgba"===i&&4===t.length){if(t[0].endsWith("%")){let e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===i&&3===t.length||"hsla"===i&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=b(t[0]),t[1]=b(t[1]),t[2]=b(t[2]),t[3]=4===t.length?g(t[3]):1,t}function m(t){let e=n(t)?s(t):null;return e??=c(t),e??=u(t),e}function d(t){let e=m(t);return null==e?null:[e[0]/255,e[1]/255,e[2]/255,e[3]]}function g(t){return p(t,0,1)}function b(t){return Math.round(p(t,0,255))}function p(t,e,i){return t=Number(t),isNaN(t)?i:t<e?e:t>i?i:t}const _=1/2.2;function y(t){return t**2.2}function M(t){return t**_}i.d(e,["iw",0,_])},66344(t,e,i){i.d(e,{q:()=>o});const r=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){return this._db.get(t.id+e)?.size??0}put(t,e,i,n,a){e=t.id+e;let o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,0)),n>this._maxSize)return void this._notifyRemove(e,i,n,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return r||console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,i,0,0);let l=1+Math.max(a,-4)- -3;this._db.set(e,new s(i,n,l)),this._size+=n,t.size+=n,this._checkSize()}updateSize(t,e){e=t.id+e;let i=this._db.get(e);if(!i)return;this._size-=i.size,t.size-=i.size;let r=i.entry.usedMemory;for(;r>this._maxSize;){let t=this._notifyRemove(e,i.entry,r,1);if(!(null!=t&&t>0))return void this._db.delete(e);r=t}i.size=r,this._size+=r,t.size+=r,this._checkSize()}pop(t,e){e=t.id+e;let i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;let i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){let i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=[];this._db.forEach((t,r)=>{let n=t.lifetime;i[n]=(i[n]||0)+t.size,this._clients.forEach(i=>{let{id:n,name:s}=i;if(r.startsWith(n)){let i=e[s]||0;e[s]=i+t.size}})});let r={};this._clients.forEach(t=>{let i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){let n=e[i]||0;e[i]=n,r[i]=Math.round(100*t.hitRate)+"%"}else r[i]="0%"});let n=Object.keys(e);n.sort((t,i)=>e[i]-e[t]),n.forEach(i=>t[i]=Math.round(e[i]/2**20)+"MB / "+r[i]);for(let e=i.length-1;e>=0;--e){let r=i[e];r&&(t["Priority "+(e+-3-1)]=Math.round(r/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){let e=t.id;this._db.forEach((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(let[e,i]of this._db)e.startsWith(t.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,r){let n=this._clients.get(t.split(a)[0])?.removeFunc,s=n?.(e,r,i);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){let i=e??this;if(i.size<=t)return;let r=e?.id,n=!0;for(;n;){n=!1;for(let[s,o]of this._db)if(0===o.lifetime&&(!r||s.startsWith(r))){let r=e??this._clients.get(s.split(a)[0]);if(this._purgeItem(s,o,r),i.size<=.9*t)return;n||=this._db.has(s)}}for(let[n,s]of this._db)if(!r||n.startsWith(r)){let r=e??this._clients.get(n.split(a)[0]);if(this._purgeItem(n,s,r),i.size<=.9*t)return}}_purgeItem(t,e,i){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);let r=this._notifyRemove(t,e.entry,e.size,1);null!=r&&r>0&&(this._size+=r,i&&(i.size+=r),e.lives=e.lifetime,e.size=r,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new n(0);class s{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const a=":";class o{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new n(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},9093(t,e,i){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}i.d(e,{o8:()=>n,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:r,fromValues:function(t,e,i,r,n,s,a,o,l,h,u,c,f,m,d,g){return[t,e,i,r,n,s,a,o,l,h,u,c,f,m,d,g]}},Symbol.toStringTag,{value:"Module"})),i.d(e,["zK",0,s])},35522(t,e,i){i.d(e,{$A:()=>k,Bw:()=>s,C:()=>a,Cc:()=>S,DI:()=>x,Io:()=>_,Ln:()=>p,Om:()=>w,Qr:()=>c,Re:()=>h,S8:()=>v,T9:()=>g,WQ:()=>l,Z0:()=>R,_S:()=>m,aI:()=>E,ei:()=>A,fw:()=>C,gL:()=>q,hG:()=>y,hZ:()=>o,hs:()=>b,jk:()=>d,lw:()=>u,m3:()=>M,oW:()=>T,t2:()=>N,tn:()=>f,ze:()=>z});var r=i(51850),n=i(34304);function s(t){let e=t[0],i=t[1],r=t[2];return Math.sqrt(e*e+i*i+r*r)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,i,r){return t[0]=e,t[1]=i,t[2]=r,t}function l(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}function h(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function u(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function c(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t}function g(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t}function b(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function p(t,e,i,r){return t[0]=e[0]+i[0]*r,t[1]=e[1]+i[1]*r,t[2]=e[2]+i[2]*r,t}function _(t,e){let i=e[0]-t[0],r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(i*i+r*r+n*n)}function y(t,e){let i=e[0]-t[0],r=e[1]-t[1],n=e[2]-t[2];return i*i+r*r+n*n}function M(t){let e=t[0],i=t[1],r=t[2];return e*e+i*i+r*r}function z(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e=t){let i=e[0],r=e[1],n=e[2],s=i*i+r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function w(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,i){let r=e[0],n=e[1],s=e[2],a=i[0],o=i[1],l=i[2];return t[0]=n*l-s*o,t[1]=s*a-r*l,t[2]=r*o-n*a,t}function S(t,e,i,r){let n=e[0],s=e[1],a=e[2];return t[0]=n+r*(i[0]-n),t[1]=s+r*(i[1]-s),t[2]=a+r*(i[2]-a),t}function R(t,e,i){let r=e[0],n=e[1],s=e[2];return t[0]=i[0]*r+i[4]*n+i[8]*s+i[12],t[1]=i[1]*r+i[5]*n+i[9]*s+i[13],t[2]=i[2]*r+i[6]*n+i[10]*s+i[14],t}function A(t,e,i){let r=e[0],n=e[1],s=e[2];return t[0]=r*i[0]+n*i[3]+s*i[6],t[1]=r*i[1]+n*i[4]+s*i[7],t[2]=r*i[2]+n*i[5]+s*i[8],t}function q(t,e,i){return C(t,e,i[0],i[1],i[2],i[3])}function C(t,e,i,r,n,s){let a=e[0],o=e[1],l=e[2],h=r*l-n*o,u=n*a-i*l,c=i*o-r*a,f=r*c-n*u,m=n*h-i*c,d=i*u-r*h,g=2*s;return t[0]=a+h*g+2*f,t[1]=o+u*g+2*m,t[2]=l+c*g+2*d,t}const I=(0,r.vt)(),L=(0,r.vt)();function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function E(t,e){if(t===e)return!0;let i=t[0],r=t[1],s=t[2],a=e[0],o=e[1],l=e[2],h=(0,n.FD)();return Math.abs(i-a)<=h*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-l)<=h*Math.max(1,Math.abs(s),Math.abs(l))}function T(t,e,i){let r=i[0]-e[0],n=i[1]-e[1],s=i[2]-e[2],a=r*r+n*n+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=n*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const G=h,F=u,j=c,P=_,O=y,W=s,$=M;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:l,angle:function(t,e){v(I,t),v(L,e);let i=w(I,L);return i>1?0:i<-1?Math.PI:Math.acos(i)},applyTranslation:function(t,e,i){return t[0]=e[0]+i[12],t[1]=e[1]+i[13],t[2]=e[2]+i[14],t},bezier:function(t,e,i,r,n,s){let a=1-s,o=a*a,l=s*s,h=o*a,u=3*s*o,c=3*l*a,f=l*s;return t[0]=e[0]*h+i[0]*u+r[0]*c+n[0]*f,t[1]=e[1]*h+i[1]*u+r[1]*c+n[1]*f,t[2]=e[2]*h+i[2]*u+r[2]*c+n[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,i=1){return t[0]=Math.min(Math.max(t[0],e),i),t[1]=Math.min(Math.max(t[1],e),i),t[2]=Math.min(Math.max(t[2],e),i),t},copy:a,cross:k,crossAndNormalize:function(t,e,i){let r=e[0],n=e[1],s=e[2],a=i[0],o=i[1],l=i[2],h=n*l-s*o,u=s*a-r*l,c=r*o-n*a,f=Math.sqrt(h*h+u*u+c*c);return t[0]=h/f,t[1]=u/f,t[2]=c/f,t},direction:T,dist:P,distance:_,div:j,divide:c,dot:w,equals:E,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,i,r,n,s){let a=s*s,o=a*(2*s-3)+1,l=a*(s-2)+s,h=a*(s-1),u=a*(3-2*s);return t[0]=e[0]*o+i[0]*l+r[0]*h+n[0]*u,t[1]=e[1]*o+i[1]*l+r[1]*h+n[1]*u,t[2]=e[2]*o+i[2]*l+r[2]*h+n[2]*u,t},inverse:x,len:W,length:s,lerp:S,max:g,min:d,mul:F,multiply:u,negate:z,normalize:v,random:function(t,e=1){let i=n.Ov,r=2*i()*Math.PI,s=2*i()-1,a=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=s*e,t},rotateX:function(t,e,i,r){let n=[],s=[];return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],s[0]=n[0],s[1]=n[1]*Math.cos(r)-n[2]*Math.sin(r),s[2]=n[1]*Math.sin(r)+n[2]*Math.cos(r),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateY:function(t,e,i,r){let n=[],s=[];return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],s[0]=n[2]*Math.sin(r)+n[0]*Math.cos(r),s[1]=n[1],s[2]=n[2]*Math.cos(r)-n[0]*Math.sin(r),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateZ:function(t,e,i,r){let n=[],s=[];return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],s[0]=n[0]*Math.cos(r)-n[1]*Math.sin(r),s[1]=n[0]*Math.sin(r)+n[1]*Math.cos(r),s[2]=n[2],t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:b,scaleAndAdd:p,scaleTo:function(t,e){return b(t,t,e/W(t))},set:o,sign:m,sqrDist:O,sqrLen:$,squaredDistance:y,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:G,subtract:h,transformMat3:A,transformMat4:R,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:q,transformQuatValues:C},Symbol.toStringTag,{value:"Module"})),i.d(e,["Il",0,W,"jb",0,G,"lo",0,O,"uE",0,$])},90629(t,e,i){i.d(e,{Lz:()=>a,PN:()=>o,cr:()=>l,gs:()=>u,r_:()=>c,tc:()=>h}),i(39829);const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,n=o(1),s=a(1);function a(t){return t?t/72*96:0}function o(t){return t?72*t/96:0}function l(t){if("string"==typeof t){let e=t.match(r);if(e){let i=Number(e[1]),r=e[3]&&e[3].toLowerCase(),n=t.startsWith("-"),s="px"===r?o(i):i;return n?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function h(t=0,e=0){return{x:t,y:e}}function u(t=0,e=0){return[t,e]}function c(t=0,e=0,i=0){return[t,e,i]}i.d(e,["L7",0,s,"ps",0,n])},4197(t,e,i){i.d(e,{Vj:()=>a,cj:()=>s,jh:()=>n});var r=i(9093);function n(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function s(t){return[...t]}function a(t){let e=(0,r.vt)();for(let i=0;i<16;++i)e[i]=t[i];return e}},70328(t,e,i){i.d(e,{BI:()=>R,C:()=>a,DC:()=>f,Ej:()=>y,Ie:()=>k,Jt:()=>S,Lu:()=>z,Ne:()=>x,RF:()=>c,TF:()=>p,VL:()=>d,aI:()=>q,fA:()=>o,gE:()=>h,gX:()=>_,hZ:()=>w,iT:()=>m,is:()=>A,pg:()=>M,uJ:()=>b,vI:()=>v,vY:()=>l,vt:()=>s,w1:()=>u,yr:()=>g}),i(35522);var r=i(5443),n=(i(19419),i(4197));function s(t=I){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e){for(let i=0;i<6;i++)t[i]=e[i];return t}function o(t,e,i,r,n,a,o=s()){return o[0]=t,o[1]=e,o[2]=i,o[3]=r,o[4]=n,o[5]=a,o}function l(t,e=s()){return function(t,e,i,r=s()){return w(r,C),function(t,e,i=0,r=e.length/3){let n=t[0],s=t[1],a=t[2],o=t[3],l=t[4],h=t[5];for(let t=0;t<r;t++)n=Math.min(n,e[i+3*t]),s=Math.min(s,e[i+3*t+1]),a=Math.min(a,e[i+3*t+2]),o=Math.max(o,e[i+3*t]),l=Math.max(l,e[i+3*t+1]),h=Math.max(h,e[i+3*t+2]);t[0]=n,t[1]=s,t[2]=a,t[3]=o,t[4]=l,t[5]=h}(r,t,e,i),r}(t,0,t.length/3,e)}function h(t,e=(0,n.jh)(24)){let[i,r,s,a,o,l]=t;return e[0]=i,e[1]=r,e[2]=s,e[3]=i,e[4]=r,e[5]=l,e[6]=i,e[7]=o,e[8]=s,e[9]=i,e[10]=o,e[11]=l,e[12]=a,e[13]=r,e[14]=s,e[15]=a,e[16]=r,e[17]=l,e[18]=a,e[19]=o,e[20]=s,e[21]=a,e[22]=o,e[23]=l,e}function u(t,e){return isFinite(t[2])||isFinite(t[5])?new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e,i=t){i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.min(t[2],e[2]),i[3]=Math.max(t[3],e[3]),i[4]=Math.max(t[4],e[4]),i[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function m(t,[e,i,r]){!function(t,e,i,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],i),t[5]=Math.max(t[5],r)}(t,e,i,r)}function d(t){return t[0]>=t[3]?0:t[3]-t[0]}function g(t){return t[1]>=t[4]?0:t[4]-t[1]}function b(t){return t[2]>=t[5]?0:t[5]-t[2]}function p(t){let e=d(t),i=b(t),r=g(t);return e*e+i*i+r*r}function _(t,e=[0,0,0]){return e[0]=t[0]+d(t)/2,e[1]=t[1]+g(t)/2,e[2]=t[2]+b(t)/2,e}function y(t,e=[0,0,0]){return e[0]=d(t),e[1]=g(t),e[2]=b(t),e}function M(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function z(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function x(t,e,i=t){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i!==t&&(i[3]=t[3],i[4]=t[4],i[5]=t[5]),i}function v(t,e,i=t){return i[3]=e[0],i[4]=e[1],i[5]=e[2],i!==t&&(i[0]=t[0],i[1]=t[1],i[2]=t[2]),t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function k(t){return t?w(t,C):s(C)}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function R(t,e,i,r,n){return t[0]=e,t[1]=i,t[2]=-1/0,t[3]=r,t[4]=n,t[5]=1/0,t}function A(t){return 6===t.length}function q(t,e,i){if(null==t||null==e)return t===e;if(!A(t)||!A(e))return!1;if(i){for(let r=0;r<t.length;r++)if(!i(t[r],e[r]))return!1}else for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];s(),i.d(e,["qv",0,C,"v_",0,I])},50498(t,e,i){var r=i(66552),n=i(5443),s=i(91075),a=i(48526),o=i(86738),l=i(39829),h=i(82799);const u=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:a.A,point:o.A,polyline:h.A,polygon:l.A}},m=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});i.d(e,["Ye",0,c,"gy",0,u,"iI",0,m,"yR",0,f])},45733(t,e,i){function r(t){let e=t.slice();e.length%2&&(e=[...e,...e]);let i=0;for(;i<e.length&&0===e[i];)i++;let r=0,n=[];for(let t=i;t<e.length;t++)0===e[t]?r++:0===r?n.push(e[t]):1&r?(n[n.length-1]+=e[t],r=0):(n.push(e[t]),r=0);return e=n,e.length<=1?0===e.length||i%2==0?{dashTemplate:[],hidesLine:!1}:{dashTemplate:[],hidesLine:!0}:(e.length%2==1?i%2==1?e.unshift(0):e.push(0):i%2==1&&(e.unshift(0),e.push(0)),{dashTemplate:e,hidesLine:!1})}function n(t){return t?.dashTemplate&&(t.dashTemplate=function(t){return"string"==typeof t?t.split(" ").map(t=>Number(t)):t}(t.dashTemplate)),t}i.d(e,{FH:()=>n,OI:()=>r})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5128],{68197(t,e,i){i.d(e,{A:()=>u});var r=i(40876),n=i(4576),s=i(34727),a=i(78888);function o(t){return(0,s.qE)((0,a.Vr)(t),0,255)}function l(t,e){let i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}function h(t){return.2126*(0,r.Q6)(t.r)+.7152*(0,r.Q6)(t.g)+.0722*(0,r.Q6)(t.b)}class u{static blendColors(t,e,i,r=new u){return r.r=Math.round(t.r+(e.r-t.r)*i),r.g=Math.round(t.g+(e.g-t.g)*i),r.b=Math.round(t.b+(e.b-t.b)*i),r.a=t.a+(e.a-t.a)*i,r._sanitize()}static fromRgb(t,e){let i=(0,r.lT)(t);return i?u.fromArray(i,e):null}static fromHex(t,e=new u){let i=(0,r.oW)(t);return i?u.fromArray(i,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){let i=(0,r.Eq)(t);return i?u.fromArray(i,e):null}static fromJSON(t){return null==t?void 0:new u([t[0],t[1],t[2],(t[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null==this.a?1:this.a,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(t,e=3){let i=t instanceof u?t:new u(t),r=h(this),n=h(i);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)<e}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,n.yc)(t))u.fromArray(t,this);else{let e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){let e=t?.capitalize??!1,i=t?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${n?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(t=!1){let e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){let e=o(this.r),i=o(this.g),r=o(this.b);return 0===t||1!==this.a?[e,i,r,o(255*this.a)]:[e,i,r]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,i,r){this.r=t,this.g=e,this.b=i,this.a=r}}u.prototype.declaredClass="esri.Color"},40876(t,e,i){i.d(e,{Eq:()=>m,G1:()=>g,Q6:()=>y,TS:()=>s,V6:()=>n,Vm:()=>d,ay:()=>l,c1:()=>b,c4:()=>a,j5:()=>h,lT:()=>c,oW:()=>u,xV:()=>M});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(t){return!!r[t]||!!r[t.toLowerCase()]}function s(t){return r[t]??r[t.toLowerCase()]}function a(t){return[...s(t)]}function o(t,e,i){i<0&&++i,i>1&&--i;let r=6*i;return r<1?t+(e-t)*r:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function l(t,e,i,r=1){let n=(t%360+360)%360/360,s=i<=.5?i*(e+1):i+e-i*e,a=2*i-s;return[Math.round(255*o(a,s,n+1/3)),Math.round(255*o(a,s,n)),Math.round(255*o(a,s,n-1/3)),r]}function h(t){let e=t.length>5,i=e?8:4,r=(1<<i)-1,n=e?1:17,s=e?9===t.length:5===t.length,a=Number("0x"+t.slice(1));if(isNaN(a))return null;let o,l=[0,0,0,1];return s&&(o=a&r,a>>=i,l[3]=n*o/255),o=a&r,a>>=i,l[2]=n*o,o=a&r,a>>=i,l[1]=n*o,o=a&r,a>>=i,l[0]=n*o,l}function u(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{let e=parseInt(t.slice(1,2),16),i=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),n=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,i+16*i,r+16*r,(n+16*n)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function c(t){let e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){let t=e[2].split(/\s*,\s*/),i=e[1];if("rgb"===i&&3===t.length||"rgba"===i&&4===t.length){if(t[0].endsWith("%")){let e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===i&&3===t.length||"hsla"===i&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=b(t[0]),t[1]=b(t[1]),t[2]=b(t[2]),t[3]=4===t.length?g(t[3]):1,t}function m(t){let e=n(t)?s(t):null;return e??=c(t),e??=u(t),e}function d(t){let e=m(t);return null==e?null:[e[0]/255,e[1]/255,e[2]/255,e[3]]}function g(t){return p(t,0,1)}function b(t){return Math.round(p(t,0,255))}function p(t,e,i){return t=Number(t),isNaN(t)?i:t<e?e:t>i?i:t}const _=1/2.2;function y(t){return t**2.2}function M(t){return t**_}i.d(e,["iw",0,_])},66344(t,e,i){i.d(e,{q:()=>o});const r=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){return this._db.get(t.id+e)?.size??0}put(t,e,i,n,a){e=t.id+e;let o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,0)),n>this._maxSize)return void this._notifyRemove(e,i,n,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return r||console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,i,0,0);let l=1+Math.max(a,-4)- -3;this._db.set(e,new s(i,n,l)),this._size+=n,t.size+=n,this._checkSize()}updateSize(t,e){e=t.id+e;let i=this._db.get(e);if(!i)return;this._size-=i.size,t.size-=i.size;let r=i.entry.usedMemory;for(;r>this._maxSize;){let t=this._notifyRemove(e,i.entry,r,1);if(!(null!=t&&t>0))return void this._db.delete(e);r=t}i.size=r,this._size+=r,t.size+=r,this._checkSize()}pop(t,e){e=t.id+e;let i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;let i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){let i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=[];this._db.forEach((t,r)=>{let n=t.lifetime;i[n]=(i[n]||0)+t.size,this._clients.forEach(i=>{let{id:n,name:s}=i;if(r.startsWith(n)){let i=e[s]||0;e[s]=i+t.size}})});let r={};this._clients.forEach(t=>{let i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){let n=e[i]||0;e[i]=n,r[i]=Math.round(100*t.hitRate)+"%"}else r[i]="0%"});let n=Object.keys(e);n.sort((t,i)=>e[i]-e[t]),n.forEach(i=>t[i]=Math.round(e[i]/2**20)+"MB / "+r[i]);for(let e=i.length-1;e>=0;--e){let r=i[e];r&&(t["Priority "+(e+-3-1)]=Math.round(r/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){let e=t.id;this._db.forEach((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(let[e,i]of this._db)e.startsWith(t.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,r){let n=this._clients.get(t.split(a)[0])?.removeFunc,s=n?.(e,r,i);return"number"==typeof s?s:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){let i=e??this;if(i.size<=t)return;let r=e?.id,n=!0;for(;n;){n=!1;for(let[s,o]of this._db)if(0===o.lifetime&&(!r||s.startsWith(r))){let r=e??this._clients.get(s.split(a)[0]);if(this._purgeItem(s,o,r),i.size<=.9*t)return;n||=this._db.has(s)}}for(let[n,s]of this._db)if(!r||n.startsWith(r)){let r=e??this._clients.get(n.split(a)[0]);if(this._purgeItem(n,s,r),i.size<=.9*t)return}}_purgeItem(t,e,i){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);let r=this._notifyRemove(t,e.entry,e.size,1);null!=r&&r>0&&(this._size+=r,i&&(i.size+=r),e.lives=e.lifetime,e.size=r,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new n(0);class s{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const a=":";class o{constructor(t,e){this.removeFunc=e,this.id=":",this.name="",this.size=0,this._storage=new n(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},9093(t,e,i){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}i.d(e,{o8:()=>n,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:r,fromValues:function(t,e,i,r,n,s,a,o,l,h,u,c,f,m,d,g){return[t,e,i,r,n,s,a,o,l,h,u,c,f,m,d,g]}},Symbol.toStringTag,{value:"Module"})),i.d(e,["zK",0,s])},35522(t,e,i){i.d(e,{$A:()=>k,Bw:()=>s,C:()=>a,Cc:()=>S,DI:()=>x,Io:()=>_,Ln:()=>p,Om:()=>w,Qr:()=>c,Re:()=>h,S8:()=>v,T9:()=>g,WQ:()=>l,Z0:()=>R,_S:()=>m,aI:()=>E,ei:()=>A,fw:()=>C,gL:()=>q,hG:()=>y,hZ:()=>o,hs:()=>b,jk:()=>d,lw:()=>u,m3:()=>M,oW:()=>T,t2:()=>N,tn:()=>f,ze:()=>z});var r=i(51850),n=i(34304);function s(t){let e=t[0],i=t[1],r=t[2];return Math.sqrt(e*e+i*i+r*r)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,i,r){return t[0]=e,t[1]=i,t[2]=r,t}function l(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}function h(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function u(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function c(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t}function g(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t}function b(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function p(t,e,i,r){return t[0]=e[0]+i[0]*r,t[1]=e[1]+i[1]*r,t[2]=e[2]+i[2]*r,t}function _(t,e){let i=e[0]-t[0],r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(i*i+r*r+n*n)}function y(t,e){let i=e[0]-t[0],r=e[1]-t[1],n=e[2]-t[2];return i*i+r*r+n*n}function M(t){let e=t[0],i=t[1],r=t[2];return e*e+i*i+r*r}function z(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e=t){let i=e[0],r=e[1],n=e[2],s=i*i+r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function w(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,i){let r=e[0],n=e[1],s=e[2],a=i[0],o=i[1],l=i[2];return t[0]=n*l-s*o,t[1]=s*a-r*l,t[2]=r*o-n*a,t}function S(t,e,i,r){let n=e[0],s=e[1],a=e[2];return t[0]=n+r*(i[0]-n),t[1]=s+r*(i[1]-s),t[2]=a+r*(i[2]-a),t}function R(t,e,i){let r=e[0],n=e[1],s=e[2];return t[0]=i[0]*r+i[4]*n+i[8]*s+i[12],t[1]=i[1]*r+i[5]*n+i[9]*s+i[13],t[2]=i[2]*r+i[6]*n+i[10]*s+i[14],t}function A(t,e,i){let r=e[0],n=e[1],s=e[2];return t[0]=r*i[0]+n*i[3]+s*i[6],t[1]=r*i[1]+n*i[4]+s*i[7],t[2]=r*i[2]+n*i[5]+s*i[8],t}function q(t,e,i){return C(t,e,i[0],i[1],i[2],i[3])}function C(t,e,i,r,n,s){let a=e[0],o=e[1],l=e[2],h=r*l-n*o,u=n*a-i*l,c=i*o-r*a,f=r*c-n*u,m=n*h-i*c,d=i*u-r*h,g=2*s;return t[0]=a+h*g+2*f,t[1]=o+u*g+2*m,t[2]=l+c*g+2*d,t}const I=(0,r.vt)(),L=(0,r.vt)();function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function E(t,e){if(t===e)return!0;let i=t[0],r=t[1],s=t[2],a=e[0],o=e[1],l=e[2],h=(0,n.FD)();return Math.abs(i-a)<=h*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-l)<=h*Math.max(1,Math.abs(s),Math.abs(l))}function T(t,e,i){let r=i[0]-e[0],n=i[1]-e[1],s=i[2]-e[2],a=r*r+n*n+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=n*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const G=h,F=u,j=c,P=_,O=y,W=s,$=M;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:l,angle:function(t,e){v(I,t),v(L,e);let i=w(I,L);return i>1?0:i<-1?Math.PI:Math.acos(i)},applyTranslation:function(t,e,i){return t[0]=e[0]+i[12],t[1]=e[1]+i[13],t[2]=e[2]+i[14],t},bezier:function(t,e,i,r,n,s){let a=1-s,o=a*a,l=s*s,h=o*a,u=3*s*o,c=3*l*a,f=l*s;return t[0]=e[0]*h+i[0]*u+r[0]*c+n[0]*f,t[1]=e[1]*h+i[1]*u+r[1]*c+n[1]*f,t[2]=e[2]*h+i[2]*u+r[2]*c+n[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,i=1){return t[0]=Math.min(Math.max(t[0],e),i),t[1]=Math.min(Math.max(t[1],e),i),t[2]=Math.min(Math.max(t[2],e),i),t},copy:a,cross:k,crossAndNormalize:function(t,e,i){let r=e[0],n=e[1],s=e[2],a=i[0],o=i[1],l=i[2],h=n*l-s*o,u=s*a-r*l,c=r*o-n*a,f=Math.sqrt(h*h+u*u+c*c);return t[0]=h/f,t[1]=u/f,t[2]=c/f,t},direction:T,dist:P,distance:_,div:j,divide:c,dot:w,equals:E,exactEquals:N,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,i,r,n,s){let a=s*s,o=a*(2*s-3)+1,l=a*(s-2)+s,h=a*(s-1),u=a*(3-2*s);return t[0]=e[0]*o+i[0]*l+r[0]*h+n[0]*u,t[1]=e[1]*o+i[1]*l+r[1]*h+n[1]*u,t[2]=e[2]*o+i[2]*l+r[2]*h+n[2]*u,t},inverse:x,len:W,length:s,lerp:S,max:g,min:d,mul:F,multiply:u,negate:z,normalize:v,random:function(t,e=1){let i=n.Ov,r=2*i()*Math.PI,s=2*i()-1,a=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=s*e,t},rotateX:function(t,e,i,r){let n=[],s=[];return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],s[0]=n[0],s[1]=n[1]*Math.cos(r)-n[2]*Math.sin(r),s[2]=n[1]*Math.sin(r)+n[2]*Math.cos(r),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateY:function(t,e,i,r){let n=[],s=[];return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],s[0]=n[2]*Math.sin(r)+n[0]*Math.cos(r),s[1]=n[1],s[2]=n[2]*Math.cos(r)-n[0]*Math.sin(r),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateZ:function(t,e,i,r){let n=[],s=[];return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],s[0]=n[0]*Math.cos(r)-n[1]*Math.sin(r),s[1]=n[0]*Math.sin(r)+n[1]*Math.cos(r),s[2]=n[2],t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:b,scaleAndAdd:p,scaleTo:function(t,e){return b(t,t,e/W(t))},set:o,sign:m,sqrDist:O,sqrLen:$,squaredDistance:y,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:G,subtract:h,transformMat3:A,transformMat4:R,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:q,transformQuatValues:C},Symbol.toStringTag,{value:"Module"})),i.d(e,["Il",0,W,"jb",0,G,"lo",0,O,"uE",0,$])},90629(t,e,i){i.d(e,{Lz:()=>a,PN:()=>o,cr:()=>l,gs:()=>u,r_:()=>c,tc:()=>h}),i(39829);const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,n=o(1),s=a(1);function a(t){return t?t/72*96:0}function o(t){return t?72*t/96:0}function l(t){if("string"==typeof t){let e=t.match(r);if(e){let i=Number(e[1]),r=e[3]&&e[3].toLowerCase(),n=t.startsWith("-"),s="px"===r?o(i):i;return n?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function h(t=0,e=0){return{x:t,y:e}}function u(t=0,e=0){return[t,e]}function c(t=0,e=0,i=0){return[t,e,i]}i.d(e,["L7",0,s,"ps",0,n])},4197(t,e,i){i.d(e,{Vj:()=>a,cj:()=>s,jh:()=>n});var r=i(9093);function n(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function s(t){return[...t]}function a(t){let e=(0,r.vt)();for(let i=0;i<16;++i)e[i]=t[i];return e}},70328(t,e,i){i.d(e,{BI:()=>R,C:()=>a,DC:()=>f,Ej:()=>y,Ie:()=>k,Jt:()=>S,Lu:()=>z,Ne:()=>x,RF:()=>c,TF:()=>p,VL:()=>d,aI:()=>q,fA:()=>o,gE:()=>h,gX:()=>_,hZ:()=>w,iT:()=>m,is:()=>A,pg:()=>M,uJ:()=>b,vI:()=>v,vY:()=>l,vt:()=>s,w1:()=>u,yr:()=>g}),i(35522);var r=i(5443),n=(i(19419),i(4197));function s(t=I){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e){for(let i=0;i<6;i++)t[i]=e[i];return t}function o(t,e,i,r,n,a,o=s()){return o[0]=t,o[1]=e,o[2]=i,o[3]=r,o[4]=n,o[5]=a,o}function l(t,e=s()){return function(t,e,i,r=s()){return w(r,C),function(t,e,i=0,r=e.length/3){let n=t[0],s=t[1],a=t[2],o=t[3],l=t[4],h=t[5];for(let t=0;t<r;t++)n=Math.min(n,e[i+3*t]),s=Math.min(s,e[i+3*t+1]),a=Math.min(a,e[i+3*t+2]),o=Math.max(o,e[i+3*t]),l=Math.max(l,e[i+3*t+1]),h=Math.max(h,e[i+3*t+2]);t[0]=n,t[1]=s,t[2]=a,t[3]=o,t[4]=l,t[5]=h}(r,t,e,i),r}(t,0,t.length/3,e)}function h(t,e=(0,n.jh)(24)){let[i,r,s,a,o,l]=t;return e[0]=i,e[1]=r,e[2]=s,e[3]=i,e[4]=r,e[5]=l,e[6]=i,e[7]=o,e[8]=s,e[9]=i,e[10]=o,e[11]=l,e[12]=a,e[13]=r,e[14]=s,e[15]=a,e[16]=r,e[17]=l,e[18]=a,e[19]=o,e[20]=s,e[21]=a,e[22]=o,e[23]=l,e}function u(t,e){return isFinite(t[2])||isFinite(t[5])?new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e,i=t){i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.min(t[2],e[2]),i[3]=Math.max(t[3],e[3]),i[4]=Math.max(t[4],e[4]),i[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function m(t,[e,i,r]){!function(t,e,i,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],i),t[5]=Math.max(t[5],r)}(t,e,i,r)}function d(t){return t[0]>=t[3]?0:t[3]-t[0]}function g(t){return t[1]>=t[4]?0:t[4]-t[1]}function b(t){return t[2]>=t[5]?0:t[5]-t[2]}function p(t){let e=d(t),i=b(t),r=g(t);return e*e+i*i+r*r}function _(t,e=[0,0,0]){return e[0]=t[0]+d(t)/2,e[1]=t[1]+g(t)/2,e[2]=t[2]+b(t)/2,e}function y(t,e=[0,0,0]){return e[0]=d(t),e[1]=g(t),e[2]=b(t),e}function M(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function z(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function x(t,e,i=t){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i!==t&&(i[3]=t[3],i[4]=t[4],i[5]=t[5]),i}function v(t,e,i=t){return i[3]=e[0],i[4]=e[1],i[5]=e[2],i!==t&&(i[0]=t[0],i[1]=t[1],i[2]=t[2]),t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function k(t){return t?w(t,C):s(C)}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function R(t,e,i,r,n){return t[0]=e,t[1]=i,t[2]=-1/0,t[3]=r,t[4]=n,t[5]=1/0,t}function A(t){return 6===t.length}function q(t,e,i){if(null==t||null==e)return t===e;if(!A(t)||!A(e))return!1;if(i){for(let r=0;r<t.length;r++)if(!i(t[r],e[r]))return!1}else for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];s(),i.d(e,["qv",0,C,"v_",0,I])},50498(t,e,i){var r=i(66552),n=i(5443),s=i(91075),a=i(48526),o=i(86738),l=i(39829),h=i(82799);const u=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:a.A,point:o.A,polyline:h.A,polygon:l.A}},m=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});i.d(e,["Ye",0,c,"gy",0,u,"iI",0,m,"yR",0,f])},45733(t,e,i){function r(t){let e=t.slice();e.length%2&&(e=[...e,...e]);let i=0;for(;i<e.length&&0===e[i];)i++;let r=0,n=[];for(let t=i;t<e.length;t++)0===e[t]?r++:0===r?n.push(e[t]):1&r?(n[n.length-1]+=e[t],r=0):(n.push(e[t]),r=0);return e=n,e.length<=1?0===e.length||i%2==0?{dashTemplate:[],hidesLine:!1}:{dashTemplate:[],hidesLine:!0}:(e.length%2==1?i%2==1?e.unshift(0):e.push(0):i%2==1&&(e.unshift(0),e.push(0)),{dashTemplate:e,hidesLine:!1})}function n(t){return t?.dashTemplate&&(t.dashTemplate=function(t){return"string"==typeof t?t.split(" ").map(t=>Number(t)):t}(t.dashTemplate)),t}i.d(e,{FH:()=>n,OI:()=>r})}}]);