@arcgis/core 5.1.0-next.113 → 5.1.0-next.115

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 (428) hide show
  1. package/Graphic.d.ts +1 -0
  2. package/Map.js +1 -1
  3. package/analysis/ShadowCast/MinDurationOptions.d.ts +3 -5
  4. package/analysis/ShadowCastAnalysis.d.ts +1 -1
  5. package/arcgisGlobal.d.ts +4 -0
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/{31a8bc25aa1441c70caa.js → 009250a7bded12099dd1.js} +1 -1
  8. package/assets/esri/core/workers/chunks/05c47ca3a266a271974b.js +1 -0
  9. package/assets/esri/core/workers/chunks/{29bbc0d6d847b065d10e.js → 062aadf426fe97a76bbb.js} +1 -1
  10. package/assets/esri/core/workers/chunks/0954e82f739d25001bcb.js +1 -0
  11. package/assets/esri/core/workers/chunks/0a530fbbb4486c670ea2.js +1 -0
  12. package/assets/esri/core/workers/chunks/0aaee272520c6e5bb617.js +1 -0
  13. package/assets/esri/core/workers/chunks/{12053c1213465d07d2f6.js → 0b445c1cf281f158c1f1.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{14b7b55c42af65ffa024.js → 0bd2b035c6ee89c725f9.js} +1 -1
  15. package/assets/esri/core/workers/chunks/0ded5c114cbb7574f2f4.js +1 -0
  16. package/assets/esri/core/workers/chunks/102ff3710db4ba5f083d.js +1 -0
  17. package/assets/esri/core/workers/chunks/{7dafe608c224b9d48ffa.js → 115664cb7d7b22a315bb.js} +1 -1
  18. package/assets/esri/core/workers/chunks/123a67e84ed68b96ac59.js +1 -0
  19. package/assets/esri/core/workers/chunks/163ce1be8bfe20e77f97.js +1 -0
  20. package/assets/esri/core/workers/chunks/16713986893adfbc9331.js +1 -0
  21. package/assets/esri/core/workers/chunks/{054ae729e7cefa2c7778.js → 170f8dc97614e9609443.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{9bd713d96502ddc2ce25.js → 1765042635084f75d2b3.js} +1 -1
  23. package/assets/esri/core/workers/chunks/185c670eb99474906836.js +1 -0
  24. package/assets/esri/core/workers/chunks/18ebf1d3ed05c8057f7d.js +1 -0
  25. package/assets/esri/core/workers/chunks/{4a65bc9091d7ea7e80df.js → 19f07c8d0f32ec889861.js} +1 -1
  26. package/assets/esri/core/workers/chunks/1da2c34743897d1b6a24.js +1 -0
  27. package/assets/esri/core/workers/chunks/{ca92176d5348e2c533d7.js → 224a9f39876aa426a9bc.js} +1 -1
  28. package/assets/esri/core/workers/chunks/22d4521637806a8b828f.js +1 -0
  29. package/assets/esri/core/workers/chunks/233ff588798c8a5eedf4.js +1 -0
  30. package/assets/esri/core/workers/chunks/24d9e4f1c7b8ff0d2cce.js +1 -0
  31. package/assets/esri/core/workers/chunks/2562d8905bd05ef6fd07.js +1 -0
  32. package/assets/esri/core/workers/chunks/{8aac1155b8ac071cd2ad.js → 2855357a2c1f2ab03fb7.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{e5d969214d9eda5c0b4c.js → 2a5dbed88bbd96cfac9f.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{33329f5d88e60b4ec568.js → 2a8f198f6c272f92bad5.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{cb3004998eff7c60930e.js → 2b2a09ce14d00b4b1187.js} +1 -1
  36. package/assets/esri/core/workers/chunks/2bcd4d395bfe6a19ccc8.js +1 -0
  37. package/assets/esri/core/workers/chunks/{bd17ac2e6f1eb8cf7abf.js → 2fa080539d039c92ce08.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{ee635172be7fdea69367.js → 3109b05fe4fc40d4f25b.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{92db9a6d273ae2862883.js → 315bf08dff4757ffbed3.js} +1 -1
  40. package/assets/esri/core/workers/chunks/3192586ec7fc73ed1165.js +1 -0
  41. package/assets/esri/core/workers/chunks/{593772bd8b19ac664b29.js → 35527a01d61cabbfd33e.js} +1 -1
  42. package/assets/esri/core/workers/chunks/38ca59db0e8f45bd7811.js +1 -0
  43. package/assets/esri/core/workers/chunks/3b10a962e4ff2f3da5bc.js +1 -0
  44. package/assets/esri/core/workers/chunks/3e9709e61015993b1c7d.js +1 -0
  45. package/assets/esri/core/workers/chunks/41074d383af3662673ca.js +1 -0
  46. package/assets/esri/core/workers/chunks/425c04b26a6ec6d04b08.js +1 -0
  47. package/assets/esri/core/workers/chunks/4364a3e706294bb6ae41.js +1 -0
  48. package/assets/esri/core/workers/chunks/44e52fe98ffafe6a2807.js +1 -0
  49. package/assets/esri/core/workers/chunks/49675e77a351abda2728.js +1 -0
  50. package/assets/esri/core/workers/chunks/4cecc582513b8a83f194.js +1 -0
  51. package/assets/esri/core/workers/chunks/5022413f5a41b5d435ea.js +1 -0
  52. package/assets/esri/core/workers/chunks/{8ade869fa9bae446266a.js → 51816d79c6be15e4bfcf.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{cf9b0ba30a75c030ca92.js → 5524a71d1abc9568ce26.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{ba31616de9d73d83d867.js → 557e39e5156b313597f9.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{5ef37f37e405b3bb5450.js → 59dafa1e1340ea4043e6.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{77ac243d4dcd901c2eec.js → 621d71d26bd20e296138.js} +1 -1
  57. package/assets/esri/core/workers/chunks/624b1bb269744142b835.js +1 -0
  58. package/assets/esri/core/workers/chunks/{52a91c314afec70199bc.js → 62b5972d0ef9bf173308.js} +1 -1
  59. package/assets/esri/core/workers/chunks/641b8622fbb93c84671d.js +1 -0
  60. package/assets/esri/core/workers/chunks/643c7506f8fe8e06acd2.js +1 -0
  61. package/assets/esri/core/workers/chunks/65f02eca694cc1c9f5a7.js +1 -0
  62. package/assets/esri/core/workers/chunks/{7e203e947846d40f897e.js → 67dffb896b6ef4b2038b.js} +1 -1
  63. package/assets/esri/core/workers/chunks/696967c8c6f53b94f851.js +1 -0
  64. package/assets/esri/core/workers/chunks/6d696beddcc5fbed5875.js +1 -0
  65. package/assets/esri/core/workers/chunks/7014e73dfd3c8baa704c.js +1 -0
  66. package/assets/esri/core/workers/chunks/728ad5bbbcbf88d6249f.js +1 -0
  67. package/assets/esri/core/workers/chunks/76a9b64fd573775bf6cd.js +1 -0
  68. package/assets/esri/core/workers/chunks/{0d2bc1be5802681666a4.js → 77859a61d059738d057f.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{03a4543b94f9adeb1852.js → 7a3b05e25de2ff150f38.js} +1 -1
  70. package/assets/esri/core/workers/chunks/7bbffe07e62897928773.js +1 -0
  71. package/assets/esri/core/workers/chunks/7c292f7b181f3b93352b.js +1 -0
  72. package/assets/esri/core/workers/chunks/7c2d7df4ef4d775cd648.js +1 -0
  73. package/assets/esri/core/workers/chunks/{6d20d741b8ae1a45b422.js → 7dc2c21d61ba66a3f461.js} +1 -1
  74. package/assets/esri/core/workers/chunks/7df05c3c82cd27b77300.js +1 -0
  75. package/assets/esri/core/workers/chunks/{6c79e8e840c1d027fbb2.js → 7e0daf0864005cdd63c5.js} +1 -1
  76. package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +1 -0
  77. package/assets/esri/core/workers/chunks/8461f50e9875db4ccfec.js +1 -0
  78. package/assets/esri/core/workers/chunks/{71e12db99589c98a4357.js → 8477b5fdd99c6ac5c27b.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{be1e4c3ec53fc92a26f1.js → 8598997340682113a2a5.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{2dc2487d05381de07e3f.js → 86229634bf008f53dad4.js} +1 -1
  81. package/assets/esri/core/workers/chunks/86443e47ad99e555753a.js +1 -0
  82. package/assets/esri/core/workers/chunks/8795c4895df229cb471c.js +1 -0
  83. package/assets/esri/core/workers/chunks/87a40e7f79f97ca637a9.js +1 -0
  84. package/assets/esri/core/workers/chunks/{7bc746ea17f4e336e0b0.js → 8b5ee6be52e892fbd325.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{27d6ad4ca5ab8c9d62cd.js → 8c443c52c846a096a250.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{86161025b53b916328ff.js → 8ca88cfc0b9f84dc5832.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{340f2c996f62f7f5ceae.js → 8e7ce4835b3106349684.js} +1 -1
  88. package/assets/esri/core/workers/chunks/90b0fe5584fb6fc99766.js +1 -0
  89. package/assets/esri/core/workers/chunks/9133c1b7cc1c9da27deb.js +1 -0
  90. package/assets/esri/core/workers/chunks/{d4749eb8a47869477037.js → 9250615c78f8570a9cda.js} +1 -1
  91. package/assets/esri/core/workers/chunks/927c8ca7fd385b28a1b7.js +640 -0
  92. package/assets/esri/core/workers/chunks/92a7735973b2f82a66ce.js +1 -0
  93. package/assets/esri/core/workers/chunks/942e527b9b92999886c7.js +1 -0
  94. package/assets/esri/core/workers/chunks/94a5a834e32fc6cc6ed4.js +1 -0
  95. package/assets/esri/core/workers/chunks/986d8c3907aeeb18c4f6.js +1 -0
  96. package/assets/esri/core/workers/chunks/98e489c2b85feded7776.js +1 -0
  97. package/assets/esri/core/workers/chunks/{eb1d6614eeac6d26bb9c.js → 9a3344f1dd22c425b8cc.js} +1 -1
  98. package/assets/esri/core/workers/chunks/9a6e62ef984e9c5babc4.js +1 -0
  99. package/assets/esri/core/workers/chunks/{271e42b7cd3c3441839e.js → 9eab1e1535494ff2050d.js} +10 -22
  100. package/assets/esri/core/workers/chunks/{466c250537415f12eb59.js → a01f0ffbe555f690bdca.js} +1 -1
  101. package/assets/esri/core/workers/chunks/a03c4c0bf138734a002e.js +1 -0
  102. package/assets/esri/core/workers/chunks/a0b6eef4890cc61609dc.js +1 -0
  103. package/assets/esri/core/workers/chunks/{f37be7e517f0892014e3.js → a320c69bc7528ff0d0cf.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{660713adb5a845dfa2ef.js → a40003dfe3c081d1a1d2.js} +1 -1
  105. package/assets/esri/core/workers/chunks/a814069325125466506b.js +1 -0
  106. package/assets/esri/core/workers/chunks/{e4b2120d7ee1c998b1fc.js → aa03f770178693167aa0.js} +1 -1
  107. package/assets/esri/core/workers/chunks/aea439d4c2308f88b295.js +1 -0
  108. package/assets/esri/core/workers/chunks/{7995e6983456c779adf9.js → b002304a45856b024b46.js} +1 -1
  109. package/assets/esri/core/workers/chunks/b0c242c4f5412e4cce73.js +1 -0
  110. package/assets/esri/core/workers/chunks/b44f1d08784f2e50c853.js +1 -0
  111. package/assets/esri/core/workers/chunks/b5937ce657c1fff3864f.js +1 -0
  112. package/assets/esri/core/workers/chunks/b7a0a5b895ddd2d3d038.js +1 -0
  113. package/assets/esri/core/workers/chunks/{f3161c47a572194f6017.js → c06ae3a6ecc4a4fc67b2.js} +1 -1
  114. package/assets/esri/core/workers/chunks/c1b6de0d728d25d7905a.js +1 -0
  115. package/assets/esri/core/workers/chunks/{970e91de5dfbbc247afb.js → c5b7ff8650235c464dbf.js} +1 -1
  116. package/assets/esri/core/workers/chunks/c8dedc010fcc2382af24.js +1 -0
  117. package/assets/esri/core/workers/chunks/{f8b884b529064df4a30a.js → caf80facb0322be054ab.js} +1 -1
  118. package/assets/esri/core/workers/chunks/{5a6523c903b11dea77d4.js → cdef9c3f80588ae45a04.js} +1 -1
  119. package/assets/esri/core/workers/chunks/{25d795a1697803d77e56.js → ce0e627a5e1cb78adce8.js} +1 -1
  120. package/assets/esri/core/workers/chunks/{e973cab79ec2541cb81b.js → d19600336cb6023d3e34.js} +1 -1
  121. package/assets/esri/core/workers/chunks/{10491b5b106bc5ad0b2b.js → d66f68a811c90739951a.js} +1 -1
  122. package/assets/esri/core/workers/chunks/{63378b0b4265a547656b.js → d8ec0afb2b91ccf32e55.js} +1 -1
  123. package/assets/esri/core/workers/chunks/d97c0c18202b8c578f8c.js +1 -0
  124. package/assets/esri/core/workers/chunks/da3c54e27a808f4fcc18.js +1 -0
  125. package/assets/esri/core/workers/chunks/db012650fb34c10cecd0.js +1 -0
  126. package/assets/esri/core/workers/chunks/dc6d50e1097a920ff820.js +1 -0
  127. package/assets/esri/core/workers/chunks/dce37324a2382d2eef0d.js +1 -0
  128. package/assets/esri/core/workers/chunks/e0bd550b10dd402c48f1.js +1 -0
  129. package/assets/esri/core/workers/chunks/{63513e706fe55a1def15.js → e227ae2c1a63e30e62d9.js} +1 -1
  130. package/assets/esri/core/workers/chunks/{e4c350dc65aae121171d.js → e29d182460564c2a52ad.js} +1 -1
  131. package/assets/esri/core/workers/chunks/e2ba57f7119b7182ba02.js +279 -0
  132. package/assets/esri/core/workers/chunks/e755477dc78e9d6038d4.js +1 -0
  133. package/assets/esri/core/workers/chunks/ea4057090cf15d602585.js +1 -0
  134. package/assets/esri/core/workers/chunks/ea8f642b1db933d2c26f.js +1 -0
  135. package/assets/esri/core/workers/chunks/eabd4a78221b7e733793.js +1 -0
  136. package/assets/esri/core/workers/chunks/eb16976b4eb7f1300f4a.js +1 -0
  137. package/assets/esri/core/workers/chunks/efae58f746b108163a50.js +1 -0
  138. package/assets/esri/core/workers/chunks/f0b5c140a5ba174572b6.js +1 -0
  139. package/assets/esri/core/workers/chunks/f231548c8ac7ecb59927.js +1 -0
  140. package/assets/esri/core/workers/chunks/{ce3b5b83237cf37ff523.js → f286680e363eefdf27df.js} +1 -1
  141. package/assets/esri/core/workers/chunks/f7698c855800e0af3038.js +1 -0
  142. package/assets/esri/core/workers/chunks/f931d560f3f14598f454.js +1 -0
  143. package/assets/esri/core/workers/chunks/fe2325efd0d8ad8369ed.js +1 -0
  144. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  145. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  146. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +26 -3
  147. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -13
  148. package/assets/esri/themes/dark/main.css +1 -1
  149. package/assets/esri/themes/light/main.css +1 -1
  150. package/assets/esri/themes/light/view.css +1 -1
  151. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery.json +1 -1
  152. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_en.json +1 -1
  153. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm.json +1 -1
  154. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_en.json +1 -1
  155. package/chunks/GlobalIllumination.glsl.js +22 -34
  156. package/chunks/Path.glsl.js +22 -17
  157. package/config.js +1 -1
  158. package/core/screenUtils.js +1 -1
  159. package/core/typedArrayUtil.js +1 -1
  160. package/editing/templates/TemplateListing.d.ts +32 -0
  161. package/editing/templates/TemplateListing.js +2 -0
  162. package/geometry/support/DoubleArray.js +1 -1
  163. package/geometry/support/Indices.js +1 -1
  164. package/geometry/support/buffer/BufferView.js +1 -1
  165. package/geometry/support/heightModelInfoUtils.js +1 -1
  166. package/interfaces.d.ts +14 -0
  167. package/kernel.js +1 -1
  168. package/layers/AnnotationLayer.d.ts +42 -0
  169. package/layers/AnnotationLayer.js +2 -0
  170. package/layers/DimensionFeatureLayer.d.ts +36 -1
  171. package/layers/DimensionFeatureLayer.js +1 -1
  172. package/layers/DimensionLayer.d.ts +22 -0
  173. package/layers/FeatureLayer.d.ts +15 -12
  174. package/layers/FeatureLayer.js +1 -1
  175. package/layers/GaussianSplatLayer.d.ts +22 -0
  176. package/layers/LineOfSightLayer.d.ts +22 -0
  177. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  178. package/layers/PointCloudLayer.d.ts +22 -0
  179. package/layers/ViewshedLayer.d.ts +22 -0
  180. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  181. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  182. package/layers/support/Field.d.ts +1 -0
  183. package/layers/support/Field.js +1 -1
  184. package/layers/support/SceneModification.js +1 -1
  185. package/layers/support/types.d.ts +1 -1
  186. package/layers/types.d.ts +2 -1
  187. package/networks/support/networkFieldUtils.js +1 -1
  188. package/package.json +1 -1
  189. package/rest/support/OutDistance.js +1 -1
  190. package/rest/support/Query.d.ts +1 -0
  191. package/rest/support/Query.js +1 -1
  192. package/support/basemapEnsureType.js +1 -1
  193. package/support/revision.js +1 -1
  194. package/symbols/cim/CIMOperators.js +1 -1
  195. package/symbols/cim/CIMSymbolHelper.js +1 -1
  196. package/symbols/cim/animationUtils.js +1 -1
  197. package/symbols/cim/defaultCIMValues.js +1 -1
  198. package/symbols/cim/utils.js +1 -1
  199. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  200. package/views/2d/engine/webgl/animations/instructions.js +1 -1
  201. package/views/2d/engine/webgl/mesh/factories/FeatureMeshFactory.js +1 -1
  202. package/views/2d/engine/webgl/mesh/factories/ResourceProxy.js +1 -1
  203. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  204. package/views/2d/engine/webgl/shaderGraph/techniques/createTestMeshData.js +1 -1
  205. package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
  206. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  207. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  208. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  209. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
  210. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  211. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  212. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  213. package/views/2d/engine/webgl/util/AnnotationMatcher.js +2 -0
  214. package/views/2d/engine/webgl/util/DimensionMatcher.js +2 -0
  215. package/views/2d/engine/webgl/util/Matcher.js +1 -1
  216. package/views/2d/engine/webgl/util/createMatcher.js +1 -1
  217. package/views/2d/layerViewModuleImportUtils.js +1 -1
  218. package/views/2d/layers/AnnotationLayerView2D.js +2 -0
  219. package/views/2d/layers/{DimensionLayerView2D.js → DimensionFeatureLayerView2D.js} +1 -1
  220. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  221. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  222. package/views/2d/layers/RouteLayerView2D.js +1 -1
  223. package/views/2d/layers/TileLayerView2D.js +1 -1
  224. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  225. package/views/2d/layers/features/FeatureContainer.js +1 -1
  226. package/views/2d/layers/features/Processor.js +1 -1
  227. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +2 -0
  228. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  229. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  230. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  231. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  232. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  233. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  234. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  235. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  236. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  237. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  238. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  239. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  240. package/views/2d/layers/features/support/FeatureMetadata.js +1 -1
  241. package/views/2d/layers/features/support/FeatureSetReaderAnnotationJSON.js +2 -0
  242. package/views/2d/layers/features/support/FeatureSetReaderDimensionJSON.js +2 -0
  243. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  244. package/views/2d/layers/support/annodime/DimensionInfo.js +2 -0
  245. package/views/2d/layers/support/annodime/DimensionMatcherSchema.js +2 -0
  246. package/views/2d/layers/support/annodime/PrivateDimensionEffect.js +2 -0
  247. package/views/2d/layers/support/annodime/PrivatePlacementMultipoint.js +2 -0
  248. package/views/2d/layers/support/annodime/annotationGraphic.js +2 -0
  249. package/views/2d/layers/support/annodime/annotationSchema.js +2 -0
  250. package/views/2d/layers/support/annodime/annotationUtils.js +2 -0
  251. package/views/2d/layers/support/annodime/cimAnnotations.js +2 -0
  252. package/views/2d/layers/support/annodime/dimensionSchema.js +2 -0
  253. package/views/2d/layers/support/annodime/dimensionSymbols.js +2 -0
  254. package/views/2d/layers/support/annodime/dimensionUtils.js +2 -0
  255. package/views/2d/layers/support/annodime/fields.js +2 -0
  256. package/views/2d/layers/support/annodime/unsupported.js +2 -0
  257. package/views/2d/layers/support/annodime/utils.js +2 -0
  258. package/views/2d/layers/support/annodime/virtualFields.js +2 -0
  259. package/views/2d/support/clippingUtils.js +1 -1
  260. package/views/2d/support/hitTestUtils.js +1 -1
  261. package/views/2d/types.d.ts +5 -1
  262. package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
  263. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  264. package/views/3d/input/SceneInputManager.js +1 -1
  265. package/views/3d/layerViewModuleImportUtils.js +1 -1
  266. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  267. package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +1 -1
  268. package/views/3d/layers/MapImageLayerView3D.js +1 -1
  269. package/views/3d/layers/TileLayerView3D.js +1 -1
  270. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  271. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  272. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  273. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  274. package/views/3d/layers/graphics/extrudeUtils.js +1 -1
  275. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  276. package/views/3d/support/engineContent/line.js +1 -1
  277. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  278. package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
  279. package/views/3d/types.d.ts +2 -0
  280. package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
  281. package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
  282. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +8 -8
  283. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathEvaluate.glsl.js +225 -0
  284. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexInfo.glsl.js +19 -0
  285. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +55 -40
  286. package/views/3d/webgl-engine/core/shaderModules/Float2sPassUniform.js +2 -0
  287. package/views/3d/webgl-engine/core/shaderModules/IntegersPassUniform.js +2 -0
  288. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  289. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  290. package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
  291. package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
  292. package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
  293. package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
  294. package/views/3d/webgl-engine/lib/PathProfile.js +1 -1
  295. package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
  296. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  297. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  298. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
  299. package/views/3d/webgl-engine/materials/PathLayouts.js +1 -1
  300. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  301. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  302. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  303. package/views/3d/webgl-engine/shaders/ditherNoise.glsl.js +18 -1
  304. package/views/PopupView.d.ts +3 -3
  305. package/views/PopupView.js +1 -1
  306. package/views/SceneView.js +1 -1
  307. package/views/View2D.d.ts +1 -1
  308. package/views/View2D.js +1 -1
  309. package/views/draw/DrawTool.d.ts +34 -1
  310. package/views/input/EventMatch.js +1 -1
  311. package/views/layers/AnnotationLayerView.d.ts +18 -0
  312. package/views/layers/AnnotationLayerView.js +2 -0
  313. package/views/layers/DimensionFeatureLayerView.d.ts +18 -0
  314. package/views/layers/DimensionFeatureLayerView.js +2 -0
  315. package/views/layers/FeatureLikeLayerView.d.ts +2 -1
  316. package/views/layers/FeatureLikeLayerView.js +1 -1
  317. package/views/layers/ImageryLayerView.js +1 -1
  318. package/views/layers/ImageryTileLayerView.js +1 -1
  319. package/views/layers/WMSLayerView.js +1 -1
  320. package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
  321. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  322. package/widgets/BatchAttributeForm/css.js +1 -1
  323. package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +2 -0
  324. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  325. package/widgets/BatchAttributeForm.js +1 -1
  326. package/widgets/Directions/DirectionsViewModel.js +1 -1
  327. package/widgets/Directions.js +1 -1
  328. package/widgets/FeatureForm.js +1 -1
  329. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +7 -1
  330. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  331. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  332. package/widgets/FeatureTable/support/types.d.ts +11 -1
  333. package/widgets/FeatureTable.d.ts +7 -1
  334. package/widgets/FeatureTable.js +1 -1
  335. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  336. package/widgets/OrientedImageryViewer/css.js +1 -1
  337. package/widgets/OrientedImageryViewer.js +1 -1
  338. package/widgets/support/iconUtils.js +1 -1
  339. package/assets/esri/core/workers/chunks/0175098da590a7109539.js +0 -1
  340. package/assets/esri/core/workers/chunks/01c70c27aa3a955e2928.js +0 -262
  341. package/assets/esri/core/workers/chunks/02c0640005b09007bb70.js +0 -1
  342. package/assets/esri/core/workers/chunks/040884cec4b84dd1bb17.js +0 -1
  343. package/assets/esri/core/workers/chunks/04ea806b933d4dd41609.js +0 -1
  344. package/assets/esri/core/workers/chunks/0550dc63b6b1274242b8.js +0 -1
  345. package/assets/esri/core/workers/chunks/0c8e6ccb5a8174718d62.js +0 -640
  346. package/assets/esri/core/workers/chunks/13a8346abe5509167578.js +0 -1
  347. package/assets/esri/core/workers/chunks/13d43a0683c42b94feb6.js +0 -1
  348. package/assets/esri/core/workers/chunks/13f0e08de2dfab07d212.js +0 -1
  349. package/assets/esri/core/workers/chunks/1c0e8808d14d8e6dde2c.js +0 -1
  350. package/assets/esri/core/workers/chunks/1c8c8050d60205cf2156.js +0 -1
  351. package/assets/esri/core/workers/chunks/1ebb613bbe09fcf274d8.js +0 -1
  352. package/assets/esri/core/workers/chunks/23119a1b1310b7dab2aa.js +0 -1
  353. package/assets/esri/core/workers/chunks/282f3d364411efac7b80.js +0 -1
  354. package/assets/esri/core/workers/chunks/2b9661700743d1f9717e.js +0 -1
  355. package/assets/esri/core/workers/chunks/2f0a3b22fc46d832e240.js +0 -1
  356. package/assets/esri/core/workers/chunks/2ffffc1931b2e27c6617.js +0 -1
  357. package/assets/esri/core/workers/chunks/313a89b334e3518d30a4.js +0 -1
  358. package/assets/esri/core/workers/chunks/34c11e7c8762fe0c19fb.js +0 -1
  359. package/assets/esri/core/workers/chunks/3835097520296b0517af.js +0 -1
  360. package/assets/esri/core/workers/chunks/389e57aab12d52d72695.js +0 -1
  361. package/assets/esri/core/workers/chunks/3fed503185ea1913fb84.js +0 -1
  362. package/assets/esri/core/workers/chunks/4020f95d8131493f799e.js +0 -1
  363. package/assets/esri/core/workers/chunks/4255ad7601c7a7621b71.js +0 -1
  364. package/assets/esri/core/workers/chunks/453c3b265481c80fc625.js +0 -1
  365. package/assets/esri/core/workers/chunks/4605a68e40c5c3ac6e3e.js +0 -1
  366. package/assets/esri/core/workers/chunks/4a41f98210f1da3b5041.js +0 -1
  367. package/assets/esri/core/workers/chunks/4afe76de6e82e86fe697.js +0 -1
  368. package/assets/esri/core/workers/chunks/4b130db9b7b4e2e32ea4.js +0 -1
  369. package/assets/esri/core/workers/chunks/4c5cdd2712c938fafc5d.js +0 -1
  370. package/assets/esri/core/workers/chunks/4fa3840672c33adb9171.js +0 -1
  371. package/assets/esri/core/workers/chunks/5a85cbc04c64091d7f46.js +0 -1
  372. package/assets/esri/core/workers/chunks/5d60253ea3d247cdb3d1.js +0 -1
  373. package/assets/esri/core/workers/chunks/5e5c7cc74ff1c9603aff.js +0 -1
  374. package/assets/esri/core/workers/chunks/5ea0096a282e87a269bd.js +0 -1
  375. package/assets/esri/core/workers/chunks/601edefd8da4eb2eda28.js +0 -1
  376. package/assets/esri/core/workers/chunks/63ea9035dcf9ce45560c.js +0 -1
  377. package/assets/esri/core/workers/chunks/66fe1634c6e8f72fc653.js +0 -1
  378. package/assets/esri/core/workers/chunks/6b66a6f69aa03338c346.js +0 -1
  379. package/assets/esri/core/workers/chunks/6d59a9cf533ebc590f70.js +0 -1
  380. package/assets/esri/core/workers/chunks/6f02681bcaa9bef501fc.js +0 -1
  381. package/assets/esri/core/workers/chunks/7b66691d133dabd87ce6.js +0 -1
  382. package/assets/esri/core/workers/chunks/7c077e1a63ab97bf3e87.js +0 -1
  383. package/assets/esri/core/workers/chunks/7dc9ff66e1eceadbae24.js +0 -1
  384. package/assets/esri/core/workers/chunks/825db2ea15308ee6e5dc.js +0 -1
  385. package/assets/esri/core/workers/chunks/85a200aecc7a844c9566.js +0 -1
  386. package/assets/esri/core/workers/chunks/89250d268dc2554a9ece.js +0 -1
  387. package/assets/esri/core/workers/chunks/8c8fed53c12fb80ef2ed.js +0 -1
  388. package/assets/esri/core/workers/chunks/8ff83c59462dea6e3427.js +0 -1
  389. package/assets/esri/core/workers/chunks/958617c3a9854ea04e06.js +0 -1
  390. package/assets/esri/core/workers/chunks/9890c85a238879490926.js +0 -1
  391. package/assets/esri/core/workers/chunks/a001e7e8a39f27284d87.js +0 -1
  392. package/assets/esri/core/workers/chunks/a5b9ae4c93f9af7589f2.js +0 -1
  393. package/assets/esri/core/workers/chunks/a93a058678c8c8996d54.js +0 -1
  394. package/assets/esri/core/workers/chunks/a9c9c00432ee41ec91ba.js +0 -1
  395. package/assets/esri/core/workers/chunks/acb8cff06142f828fb78.js +0 -1
  396. package/assets/esri/core/workers/chunks/af762422a65c551dcd54.js +0 -1
  397. package/assets/esri/core/workers/chunks/b041c22885193bdd3004.js +0 -1
  398. package/assets/esri/core/workers/chunks/b3e8ab68fc38306f13c6.js +0 -1
  399. package/assets/esri/core/workers/chunks/b432a5a829e309837db6.js +0 -1
  400. package/assets/esri/core/workers/chunks/b4badbcf1bdb7823d825.js +0 -1
  401. package/assets/esri/core/workers/chunks/b891d95b7858665cd6c1.js +0 -1
  402. package/assets/esri/core/workers/chunks/bb2f6b0fcdfb8b158e26.js +0 -1
  403. package/assets/esri/core/workers/chunks/c0c693c2e0043ecba4a5.js +0 -1
  404. package/assets/esri/core/workers/chunks/c5ab346a226df1894302.js +0 -1
  405. package/assets/esri/core/workers/chunks/c91d4f1b42cfe474df52.js +0 -1
  406. package/assets/esri/core/workers/chunks/cedf3e316d6f89cf7005.js +0 -1
  407. package/assets/esri/core/workers/chunks/d33a08e5f589355c57a3.js +0 -1
  408. package/assets/esri/core/workers/chunks/d52172439db02a349542.js +0 -1
  409. package/assets/esri/core/workers/chunks/dd29fd1b3da90d3ca6b1.js +0 -1
  410. package/assets/esri/core/workers/chunks/e393fd61deb2e7f22ee6.js +0 -1
  411. package/assets/esri/core/workers/chunks/e8518bd3596543b387f8.js +0 -1
  412. package/assets/esri/core/workers/chunks/ecf4d07917efc97eb991.js +0 -1
  413. package/assets/esri/core/workers/chunks/eda51e512eff551ad858.js +0 -1
  414. package/assets/esri/core/workers/chunks/ee56290e600cbeb25a00.js +0 -1
  415. package/assets/esri/core/workers/chunks/f14e3693cd644265f909.js +0 -1
  416. package/assets/esri/core/workers/chunks/f52c6efc5a2abf5ac845.js +0 -1
  417. package/assets/esri/core/workers/chunks/f635a8e3b0bfeda99ed5.js +0 -1
  418. package/assets/esri/core/workers/chunks/f91a2c69a93295cf4de6.js +0 -1
  419. package/assets/esri/core/workers/chunks/fec3fffcf854a6226df4.js +0 -1
  420. package/symbols/dimensions/effects/LinearDimensionArrowEffect.js +0 -2
  421. package/symbols/dimensions/effects/LinearDimensionExtensionLineEffect.js +0 -2
  422. package/symbols/dimensions/effects/LinearDimensionLeaderLineEffect.js +0 -2
  423. package/symbols/dimensions/effects/LinearDimensionLineEffect.js +0 -2
  424. package/symbols/dimensions/effects/LinearDimensionPointEffect.js +0 -2
  425. package/symbols/dimensions/effects/LinearDimensionTextEffect.js +0 -2
  426. package/views/2d/layers/features/support/FeatureSetReaderDimension.js +0 -2
  427. package/views/3d/webgl-engine/effects/globalIllumination/BlueNoise.js +0 -2
  428. package/views/layers/support/dimensionUtils.js +0 -2
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4342,9062,9279],{32587(e,t,r){r.d(t,{A:()=>o});var i=r(62788),n=r(95488);class o{constructor(e){this._observable=new n.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,i.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,i.gc)(this._observable),this._map.entries()}forEach(e,t){(0,i.gc)(this._observable),this._map.forEach((r,i)=>e.call(t,r,i,this),t)}get(e){return(0,i.gc)(this._observable),this._map.get(e)}has(e){return(0,i.gc)(this._observable),this._map.has(e)}keys(){return(0,i.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const r of t){if(!this._map.has(r))continue;const t=this._map.get(r),i=e(t,r);i!==t&&this.set(r,i)}})}values(){return(0,i.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,i.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{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){const 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 n(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const l=parseInt(r,10),a=parseInt(o,10);return new n(l,a,t)}}},44794(e,t,r){r.d(t,{v:()=>l});var i=r(4718),n=r(62788),o=r(95488);class s{constructor(e,t){this._observable=new o.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function l(e,t=i.gh){return new s(e,t)}},62815(e,t,r){r.d(t,{N:()=>l,d:()=>a});var i=r(86211),n=r(73941),o=r(21325),s=r(52006);function l(e,t,r){const i=a(t,r);if(1!==i)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const r of e.curvePaths)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const r of e.curveRings)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return}}function a(e,t){return null==e||null==t||t.vcsWkid||(0,o.aI)(e,t)||(0,n.xP)(e)||(0,n.xP)(t)?1:(0,i.G9)(e)/(0,i.G9)(t)}},83508(e,t,r){r.r(t),r.d(t,{default:()=>ve});var i=r(5482),n=r(11254),o=r(7762),s=r(49186),l=r(91869),a=r(25728),u=r(17676),d=r(84952),p=r(91429),c=r(4146),y=r(36563),h=r(66344),f=r(32587),m=r(36708),g=r(44794),v=r(56507),w=r(63074),b=r(25036),_=r(10873),C=r(91880),F=r(1873);let M=class extends((0,b.j)((0,w.dM)((0,a.M)(c.A)))){constructor(e){super(e),this._layerCache=new h.q(20,e=>e.destroy()),this._oidToReference=new f.A,this._layerToReference=new Map,this.legendEnabled=!0,this.layers=new o.A,this.maximumVisibleSublayers=10,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.title="Layers in view",this.type="catalog-dynamic-group",this.visible=!0}initialize(){this.addHandles([this.layers.on("after-add",({item:e})=>{e.parent=this}),this.layers.on("after-remove",({item:e})=>{e.parent=null}),(0,m.wB)(()=>this._orderBy,()=>{this._updateLayerSortValues(),this._sortAllLayers()})])}load(e){return this.addResolvingPromise(this.parent.load()),Promise.resolve(this)}destroy(){this._layerCache.destroy(),this._oidToReference.clear(),this._layerToReference.clear()}get _orderBy(){return this.parent?this.parent.orderBy?.find(e=>!e.valueExpression&&e.field)??new C.A({field:this.parent.objectIdField}):null}get _referenceComparator(){const e=this._orderBy;if(!this.parent||!e)return()=>0;const t=this.parent.fieldsIndex.get(e.field),r=(0,F.FM)(t?.toJSON().type,"descending"===e.order,"case-sensitive"),i=(0,F.FM)("esriFieldTypeOID","descending"===e.order);return(e,t)=>r(t.sortValue,e.sortValue)||i(t.objectId,e.objectId)}get fullExtent(){return this.parent?.fullExtent??null}get updating(){return(0,l.Bs)(this._oidToReference,({pending:e})=>null!=e)}acquireLayer(e){if(this.destroyed)return(0,y.hA)();const t=this._getLayerReference(e);return t.count++,(0,y.hA)(()=>{t.count--,t.count||this._destroyLayerReference(t)})}_getLayerReference(e){const t=e.getObjectId();return(0,l.tE)(this._oidToReference,t,()=>{const t=e.getObjectId(),r=`${t}`,i=e.getAttribute(this.parent.itemSourceField),n=new x(e,t,i),o=this._layerCache.pop(r);return o?(this._addLayer(n,o),n):(n.pending=this.parent.createLayerFromFootprint(e).then(e=>{n.count?this._addLayer(n,e):(this.destroyed||this._layerCache.get(r)||this._layerCache.put(r,e),n.layer=null)}).catch(()=>{}).finally(()=>{n.pending=null}),n)})}_destroyLayerReference(e){e.layer&&(this._layerToReference.delete(e.layer),this.layers.remove(e.layer),this.destroyed?e.layer.destroy():this._layerCache.put(`${e.objectId}`,e.layer),e.layer=null),this._oidToReference.delete(e.objectId)}_addLayer(e,t){e.layer=t,t.persistenceEnabled=!1,this._layerToReference.set(t,e),this._updateLayerSortValue(e),this.layers.add(t),this._sortAllLayers()}_updateLayerSortValues(){for(const e of this._layerToReference.values())this._updateLayerSortValue(e)}_updateLayerSortValue(e){this._orderBy&&(e.sortValue=e.footprint.getAttribute(this._orderBy.field))}_sortAllLayers(){this.layers.sort((e,t)=>this._referenceComparator(this._layerToReference.get(e),this._layerToReference.get(t)))}};(0,i.Cg)([(0,p.MZ)()],M.prototype,"_orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"_referenceComparator",null),(0,i.Cg)([(0,p.MZ)(_.fV)],M.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{write:!0}})],M.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],M.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:v.jz,range:{min:0,max:50},json:{write:!0,default:10}})],M.prototype,"maximumVisibleSublayers",void 0),(0,i.Cg)([(0,p.MZ)(_.ke)],M.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],M.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],M.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],M.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"updating",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],M.prototype,"visible",void 0),M=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogDynamicGroupLayer")],M);class x{constructor(e,t,r){this.footprint=e,this.objectId=t,this.itemSource=r,this.count=0,this.layer=null,this.sortValue=void 0,this._pending=(0,g.v)(null)}get pending(){return this._pending.value}set pending(e){this._pending.value=e}}var T=r(37838),S=r(4718),Z=r(78247),I=r(55156),O=r(60950),E=r(89808),j=r(99959);const R=Symbol("isCatalogGraphicOrigin");var A;class L extends j.A{get[(A=R,O.ym)](){return this.layer}get[I.e](){return this.layer}get[E.Q](){return this.layer}constructor(e){super(),this[A]=!0,this.type="catalog",this.layer=e}get id(){return this.layer.id}}var D=r(87718),V=r(30279),P=r(16194),N=r(30524),q=r(46499),z=r(39383),G=r(96576),$=r(41214),k=r(30291),B=r(94985),J=r(43937);let U=class extends((0,b.j)((0,D.F)((0,w.dM)((0,a.M)(c.A))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.elevationInfo=null,this.formTemplate=null,this.graphicOrigin=new L(this),this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.title="Footprints",this.type="catalog-footprint",this.visible=!0}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.parent.load(e),(0,N.yp)(this.renderer,this.fieldsIndex),this.addHandles([this.parent.on("apply-edits",e=>this.emit("apply-edits",e)),this.parent.on("edits",e=>this.emit("edits",e)),this.parent.on("refresh",e=>this.emit("refresh",e))])}get apiKey(){return this.parent?.apiKey}get capabilities(){return this.parent?.capabilities}get customParameters(){return this.parent?.customParameters}get dateFieldsTimeZone(){return this.parent?.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this.parent?.datesInUnknownTimezone??!1}get definitionExpression(){return this.parent?.definitionExpression}get editingInfo(){return this.parent?.editingInfo}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get createQueryVersion(){return this.parent?.createQueryVersion}get defaultPopupTemplate(){return this.createPopupTemplate()}get displayField(){return this.parent?.displayField}get displayFilterEnabled(){return this.parent?.displayFilterEnabled??!0}get displayFilterInfo(){return this.parent?.displayFilterInfo??null}get effectiveEditingEnabled(){return!1}set fieldConfigurations(e){if(this._override("fieldConfigurations",e),!this.parent?.loaded)return;const t=(0,P.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,P.QX)(this)||null}get fields(){return this.parent?.fields}get fieldsIndex(){return this.parent?.fieldsIndex}get fullExtent(){return this.parent?.fullExtent}get geometryFieldsInfo(){return this.parent?.geometryFieldsInfo}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?.globalIdField}get hasM(){return this.parent?.hasM??!1}get hasZ(){return this.parent?.hasZ??!1}get objectIdField(){return this.parent?.objectIdField}get orderBy(){return this.parent?.orderBy??null}get outFields(){return this.parent?.outFields}get parsedUrl(){return this.parent?.parsedUrl??null}writePopupTemplate(e,t,r,i){e&&(t[r]=e.toJSON({...i,writeFieldFormat:!0}))}get preferredTimeZone(){return this.parent?.preferredTimeZone??null}set renderer(e){(0,N.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):function(){const e=new B.A({style:"solid",color:[0,0,0,0],outline:{style:"solid",color:[96,96,96,.75],width:.75}});return new G.A({symbol:e})}()}get returnM(){return this.parent?.returnM}get returnZ(){return this.parent?.returnZ}get source(){return this.parent?.source}get timeExtent(){return this.parent?.timeExtent}get timeInfo(){return this.parent?.timeInfo}get timeOffset(){return this.parent?.timeOffset}get typeIdField(){return this.parent?.typeIdField}get types(){return this.parent?.types}get useViewTime(){return this.parent?.useViewTime??!0}get version(){return this.parent?.version}async applyEdits(e,t){return await this.load(),this.parent.applyEdits(e,t)}createFieldConfigurations(){return(0,P.xY)(this)}createPopupTemplate(e){const t={fields:this.fields,objectIdField:this.objectIdField,title:this.title};return(0,k.tn)(t,e)}createQuery(){return this.parent?.createQuery()}getField(e){return this.parent?.getField(e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){return this.parent?.getFieldDomain(e,t)}async queryExtent(e,t){return await this.load(),this.parent.queryExtent(e,t)}async queryFeatures(e,t){return await this.load(),this.parent.queryFeatures(e,t)}async queryFeatureCount(e,t){return await this.load(),this.parent.queryFeatureCount(e,t)}async queryObjectIds(e,t){return await this.load(),this.parent.queryObjectIds(e,t)}async queryAttributeBins(e,t){return await this.load(),this.parent.queryAttributeBins(e,t)}};(0,i.Cg)([(0,p.MZ)(_.zQ)],U.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"apiKey",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"capabilities",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"customParameters",null),(0,i.Cg)([(0,p.MZ)()],U.prototype,"dateFieldsTimeZone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"definitionExpression",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"editingInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],U.prototype,"charts",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"displayField",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],U.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)((()=>{const e=(0,S.o8)(_.Yj);return e.json.origins["web-map"]={read:!1,write:!1},e})())],U.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:[V.A],json:{name:"layerDefinition.fieldConfigurations",write:{overridePolicy(e,t){return{enabled:!0,ignoreOrigin:this.originIdOf(t)<3}}}}})],U.prototype,"fieldConfigurations",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"fields",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"fieldsIndex",null),(0,i.Cg)([(0,p.MZ)({type:Z.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],U.prototype,"formTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"geometryFieldsInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"geometryType",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"globalIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],U.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"hasM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"hasZ",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],U.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:[q.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:z.w,write:!0}})],U.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,p.MZ)(_.kF)],U.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)(_.fV)],U.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide"],json:{write:!0}})],U.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)((()=>{const e=(0,S.o8)(_.hG);return e.json.origins.service.read=!1,e})())],U.prototype,"maxScale",void 0),(0,i.Cg)([(0,p.MZ)((()=>{const e=(0,S.o8)(_.hn);return e.json.origins.service.read=!1,e})())],U.prototype,"minScale",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"objectIdField",null),(0,i.Cg)([(0,p.MZ)(_.ke)],U.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"outFields",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],U.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)(_.M6)],U.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:T.A,json:{name:"popupInfo",write:!0}})],U.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,J.K)("popupTemplate")],U.prototype,"writePopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"preferredTimeZone",null),(0,i.Cg)([(0,p.MZ)({types:$.Hg,json:{origins:{"web-scene":{types:$.XJ}},name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(e,t){return{ignoreOrigin:this.originIdOf(t)<3}}}}})],U.prototype,"renderer",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"returnM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"returnZ",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"source",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"timeExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"timeInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"timeOffset",null),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],U.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],U.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"typeIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"types",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"useViewTime",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],U.prototype,"visible",void 0),U=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogFootprintLayer")],U);var Q=r(65515),K=r(52136),Y=r(18768),H=r(69208),W=r(6455),X=r(47685),ee=r(10086),te=r(34287),re=r(32756),ie=r(8303),ne=r(54310),oe=r(82935),se=r(15426),le=r(33143),ae=r(17036),ue=r(91908),de=r(20655),pe=r(80812),ce=r(39131),ye=r(61956);const he=(0,ae.p)();function fe(e,t,r,i){const n=e.write({},i);(function(e){if(null==e)return!0;const t=Object.keys(e);return!t.length||1===t.length&&"id"===t[0]})(n)||(t[r]=n)}let me=class extends((0,W.FJ)((0,ee.j)((0,X.w6)((0,w.dM)((0,re.fY)((0,oe.e)((0,b.j)((0,ne.J)((0,Y.b)((0,te.q)((0,ie.A)((0,a.M)((0,H.d)((0,K.p)(c.A))))))))))))))){constructor(e){super(e),this.legendEnabled=!0,this._portals=new Map,this._layerToFootprint=new WeakMap,this.drawOrderField="cd_draworder",this.dynamicGroupLayer=new M({parent:this}),this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.footprintLayer=new U({parent:this}),this.itemNameField="cd_itemname",this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new o.A([this.dynamicGroupLayer,this.footprintLayer]),this.maxScaleField="cd_maxscale",this.minScaleField="cd_minscale",this.orderBy=null,this.outFields=null,this.supportedSourceTypes=new Set(["Catalog Layer"]),this.source=new Q.default({layer:this,supportedSourceTypes:this.supportedSourceTypes}),this.type="catalog",this.typeIdField=null,this.types=null}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(u.QP).then(async()=>{const{url:e,source:r,portalItem:i}=this;if(!e)throw new s.A("catalog-layer:missing-url","Catalog layer must be created with a url");if(null==this.layerId){const r=await this._fetchFirstValidLayerId(t);if(null==r)throw new s.A("catalog-layer:missing-layerId","There is no Catalog Layer in the service",{service:e});this.layerId=r}await r.load({signal:t});const{sourceJSON:n}=r;n&&(this.sourceJSON=n,this.read(n,{origin:"service",portalItem:i,portal:i?.portal,url:this.parsedUrl}))}).then(()=>{const e=[this.itemNameField,this.itemSourceField,this.itemTypeField,this.minScaleField,this.maxScaleField],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new s.A("catalog-layer:missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}).then(()=>(0,se.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.footprintLayer.destroy(),this.dynamicGroupLayer.destroy();for(const e of this._portals.values())e.destroy();this._portals.clear()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return!1}async applyEdits(e,t){return(0,se.ct)(this,e,t)}async createLayerFromFootprint(e){const t=await this._createLayer(e);return this._configureLayer(t,e),this._layerToFootprint.set(t,e),t}createFootprintFromLayer(e){return this._layerToFootprint.get(e)?.clone()}createQuery(){const e=new ye.A,t=this.capabilities?.query;e.returnGeometry=!0,t&&(e.compactGeometryEnabled=t.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=t.supportsDefaultSpatialReference),e.outFields=["*"];const{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e.where=this.definitionExpression||"1=1",e}getFeatureType(e){return(0,se.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){const r=t?.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this.getField(e)?.domain}async hasDataChanged(){return(0,se.jp)(this)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(ye.A.from(e)??r.createQuery(),t),n=r.footprintLayer.graphicOrigin;if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r.footprintLayer,e.origin=n;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(ye.A.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(ye.A.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(ye.A.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,ue.D)(this,e)}read(e,t){if(super.read(e,t),e){const{footprintLayer:r,dynamicGroupLayer:i}=e;r&&this.footprintLayer.read(r,t),i&&this.dynamicGroupLayer.read(i,t)}}async queryAttributeBins(e,t){const{source:i,capabilities:n}=await this.load();(0,se.ZJ)(e,n,"CatalogLayer");const o=await r.e(6956).then(r.bind(r,14575)),s=await i.queryAttributeBins(o.default.from(e),t);if(s.features)for(const e of s.features)e.layer=e.sourceLayer=this.footprintLayer;return s}async _fetchFirstValidLayerId(e){const{data:t}=await(0,n.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(this.applyPreferredHost(t),Array.isArray(t?.layers))return t.layers.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}async _createLayer(e){const t=e.getAttribute(this.itemSourceField);if(!t)throw new s.A("catalog-layer:item-source-missing",`The footprint is missing the "${this.itemSourceField}" attribute`);const i=JSON.parse(t);if(function(e){return"object"==typeof e&&null!=e&&"itemId"in e&&"portalUrl"in e}(i)){const{itemId:e,portalUrl:t}=i,r=(0,ce.qG)(t),n=this.portalItem?.portal,o=de.A.getDefault();let s,a=!0;n&&(0,d.ut)(t,n.url)?s=n:(0,d.ut)(t,o.url)?s=o:(s=(0,l.tE)(this._portals,r,()=>new de.A({url:r})),a=!1);const u=await c.A.fromPortalItem(new pe.default({id:e,portal:s}));return a||await ge(u),u}if(function(e){return"object"==typeof e&&null!=e&&"url"in e}(i))return c.A.fromArcGISServerUrl({url:i.url});const{default:n}=await r.e(7546).then(r.bind(r,45165));return new n}_configureLayer(e,t){const r=t.getAttribute(this.itemNameField);r&&(e.title=r);const i=t.getAttribute(this.maxScaleField);null!=i&&"maxScale"in e&&(e.maxScale=i);const n=t.getAttribute(this.minScaleField);null!=n&&"minScale"in e&&(e.minScale=n)}};async function ge(e){if("portalItem"in e&&e.portalItem){try{await e.load()}catch{}e.portalItem=null,"group"===e.type&&await Promise.allSettled([...e.layers.map(e=>ge(e)),...e.tables.map(e=>ge(e))])}}(0,i.Cg)([(0,p.MZ)(_.fV)],me.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"drawOrderField",void 0),(0,i.Cg)([(0,p.MZ)({type:M,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:fe}}})],me.prototype,"dynamicGroupLayer",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.elevationInfo",read:!1,write:!1}}}})],me.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({...he.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],me.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(he.fieldsIndex)],me.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.floorInfo",read:!1,write:!1}}}})],me.prototype,"floorInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:U,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:fe}}})],me.prototype,"footprintLayer",void 0),(0,i.Cg)([(0,p.MZ)(_.id)],me.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"itemNameField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"itemSourceField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"itemTypeField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],me.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"maxScaleField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"minScaleField",void 0),(0,i.Cg)([(0,p.MZ)({value:"CatalogLayer",type:["CatalogLayer"]})],me.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.orderBy",write:!0,read:!0}}}})],me.prototype,"orderBy",void 0),(0,i.Cg)([(0,p.MZ)(he.outFields)],me.prototype,"outFields",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],me.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],me.prototype,"typeIdField",void 0),(0,i.Cg)([(0,p.MZ)({type:[le.A]})],me.prototype,"types",void 0),me=(0,i.Cg)([(0,p.$K)("esri.layers.CatalogLayer")],me);const ve=me},87718(e,t,r){r.d(t,{F:()=>T,Y:()=>x});var i,n=r(5482),o=r(91429),s=r(49186),l=r(25482),a=r(93637),u=r(76369),d=r(66552),p=r(4718),c=r(50498),y=r(61956),h=r(79677);const f=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),m=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let g=i=class extends l.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:o,units:s,distance:l}=this;return new y.A({geometry:(0,p.o8)(r),objectIds:(0,p.o8)(o),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:t,units:s,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:o,units:s,distance:l}=this;return new i({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(o),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:e,units:s,distance:l})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],g.prototype,"where",void 0),(0,n.Cg)([(0,o.MZ)({types:c.yR,json:{write:!0}})],g.prototype,"geometry",void 0),(0,n.Cg)([(0,o.MZ)({type:f.apiValues,json:{name:"spatialRel",read:{reader:f.read},write:{allowNull:!1,writer:f.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],g.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"distance",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],json:{write:!0}})],g.prototype,"objectIds",void 0),(0,n.Cg)([(0,o.MZ)({type:m.apiValues,json:{read:m.read,write:{writer:m.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"units",void 0),(0,n.Cg)([(0,o.MZ)({type:h.A,json:{write:!0}})],g.prototype,"timeExtent",void 0),g=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.FeatureFilter")],g);const v=g;var w;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},_={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},C={name:"showExcludedLabels",default:!0};let F=w=class extends l.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new w({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,o.MZ)({type:v,json:{write:{allowNull:!0,writer(e,t,r,i){const n=e?.write({},i);n&&0!==Object.keys(n).length?(0,a.sM)(r,n,t):(0,a.sM)(r,null,t)}}}})],F.prototype,"filter",void 0),(0,n.Cg)([(0,o.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],F.prototype,"includedEffect",void 0),(0,n.Cg)([(0,o.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":_,"portal-item":_}}})],F.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":C,"portal-item":C}}})],F.prototype,"excludedLabelsVisible",void 0),F=w=(0,n.Cg)([(0,o.$K)("esri.layers.support.FeatureEffect")],F);const M={write:{allowNull:!0}},x={type:F,json:{origins:{"web-map":M,"portal-item":M}}},T=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,o.MZ)(x)],r.prototype,"featureEffect",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.FeatureEffectLayer")],r),r}},32756(e,t,r){r.d(t,{Rr:()=>l,fY:()=>u,ne:()=>a});var i=r(5482),n=r(93637),o=r(91429),s=r(91880);function l(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const n=new s.A;return n.read(i,r),[n]}const a={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){const o=e.find(e=>!!e.field);o&&(0,n.sM)(r,[o.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r}},33143(e,t,r){r.d(t,{A:()=>p});var i=r(5482),n=r(69540),o=r(25482),s=r(91429),l=r(8631),a=r(29005),u=r(36005),d=r(43937);let p=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"id",void 0),(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,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],p.prototype,"readDomains",null),(0,i.Cg)([(0,d.K)("domains")],p.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],p.prototype,"templates",void 0),p=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],p)},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(66552),s=r(25482),l=r(91429);const a=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.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,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),n=r(53966),o=r(46140),s=r(95466),l=r(55674);class a{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,d=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const c=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))c.delete(e);c.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});const y=await(0,l.xR)(e.expression,null,p);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!s||!s.greaterEqual(4,0);h&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const f=new u(r,h);return new a(h,d,y,f)}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){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},96520(e,t,r){r.d(t,{u:()=>a});var i=r(86211),n=r(21325),o=r(52006);function s(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function l(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e){const e=(0,o.yP)(t);e.length>2&&(e[2]*=r)}}function a(e,t,r){if(!e&&!t||!r)return;const n=(0,i.G9)(r);u(e,r,n),u(t,r,n)}function u(e,t,r){if(e)for(const i of e)d(i.geometry,t,r)}function d(e,t,r){if(!e?.spatialReference||(0,n.aI)(e.spatialReference,t))return;const o=(0,i.G9)(e.spatialReference)/r;if(1!==o)if("x"in e)null!=e.z&&(e.z*=o);else if("curveRings"in e)l(e,e.curveRings,o);else if("curvePaths"in e)l(e,e.curvePaths,o);else if("rings"in e)s(e,e.rings,o);else if("paths"in e)s(e,e.paths,o);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=o)}},58501(e,t,r){r.d(t,{q:()=>n});var i=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(n)for(const e of r.features)n(e.geometry)}},22671(e,t,r){r.d(t,{A:()=>v});var i,n=r(5482),o=r(52106),s=r(66552),l=r(25482),a=r(4718),u=r(91429),d=r(16930),p=r(60408),c=r(65864),y=r(50498),h=r(20437),f=r(36005),m=r(43937);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.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,o.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=d.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const 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){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[o,s]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*o+i,e=>n-e*s,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=d.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const o=e[t],s=r.fromJSON(o),l=o.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=i);const a=o.aggregateGeometries,u=s.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],r=a[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(s)}return n}_quantizePoints(e,t,r){let i,n;const o=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=r(l[1]);e===i&&s===n||(o.push([e-i,s-n]),i=e,n=s)}else i=t(l[0]),n=r(l[1]),o.push([i,n])}return o.length>0?o: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=>{const i=(0,p.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],s=this._quantizePoints(o,t,r);s&&n.push(s)}return n.length>0?((0,p.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const 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,n){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=>{const o=(0,p.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(s+=n[0],l+=n[1]):(s=n[0],l=n[1]),n[0]=t(s),n[1]=r(l)}}if(i&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(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)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=r(l)}if(i&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n.Cg)([(0,f.w)("features")],v.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,f.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:d.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},1873(e,t,r){r.d(t,{$y:()=>A,Ak:()=>D,FM:()=>h,G_:()=>c,Rw:()=>j,Vb:()=>d,b3:()=>Z,gJ:()=>u,jM:()=>R,lv:()=>O,oZ:()=>S,qg:()=>y,sU:()=>L,z9:()=>p,zS:()=>E});var i=r(9760),n=r(84892);const o=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,s=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),l=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),a=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function d(e){const t=null!=e.normalizationField||null!=e.normalizationType,r=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!r&&!i}function p(e){const{outStatisticTypes:t}=e,r=e.returnDistinct?[...new Set(e.values)]:e.values,i=r.filter(e=>null!=e).sort(),n=i.length,o={count:n,min:i[0],max:i[n-1]};return e.supportsNullCount&&(o.nullcount=r.length-n),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(o.median=y(r,e.percentileParams)),o}function c(e){const{values:t,useSampleStdDev:r,supportsNullCount:i,outStatisticTypes:n}=e;let o=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,l=null,a=null,u=null,d=null,p=0;const c=null==e.minValue?-1/0:e.minValue,h=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=c&&e<=h&&(l=null===l?e:l+e,o=Math.min(o,e),s=Math.max(s,e),p++):"string"==typeof e&&p++;if(p&&null!=l){a=l/p;let e=0;for(const r of t)Number.isFinite(r)&&r>=c&&r<=h&&(e+=(r-a)**2);d=r?p>1?e/(p-1):0:p>0?e/p:0,u=Math.sqrt(d)}else o=null,s=null;const f={avg:a,count:p,max:s,min:o,stddev:u,sum:l,variance:d};return i&&(f.nullcount=t.length-p),!e.percentileParams||n?.include?.length&&!n.include.includes("median")||n?.exclude?.length&&n.exclude.includes("median")||(f.median=y(t,e.percentileParams)),f}function y(e,t){const{fieldType:r,value:i,orderBy:n,isDiscrete:o}=t,s=h(r,"desc"===n,"case-insensitive");if(0===(e=[...e].filter(e=>null!=e).sort((e,t)=>s(e,t))).length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];const l=(e.length-1)*i,a=Math.floor(l),u=a+1,d=l%1,p=e[a],c=e[u];return u>=e.length||o||"string"==typeof p||"string"==typeof c?p:p*(1-d)+c*d}function h(e,t,r="case-sensitive"){if(e){if(s.has(e))return x(t);if(l.has(e))return C(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?w:v}(t);const i=C(t,"case-sensitive"===r);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(T(e),T(t))}const i=t?1:-1,n=x(t),o=C(t,"case-sensitive"===r),a=g(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?n(e,t):"string"==typeof e&&"string"==typeof t?o(e,t):a(e,t)??i}const f=(e,t)=>null==e?null==t?0:1:null==t?-1:null,m=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function g(e){return e?f:m}const v=(e,t)=>m(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),w=(e,t)=>f(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),b=(e,t)=>m(e,t)??(e===t?0:e<t?-1:1),_=(e,t)=>f(e,t)??(e===t?0:e<t?1:-1);function C(e,t){if(t)return e?_:b;const r=g(e);return e?(e,t)=>{const i=r(e,t);return null!=i?i:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const i=r(e,t);return null!=i?i:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}const F=(e,t)=>f(e,t)??t-e,M=(e,t)=>m(e,t)??e-t;function x(e){return e?F:M}function T(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function S(e,t,r){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:a.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return r?(["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e):e}function Z(e){const t={};for(let r of e)(null==r||"string"==typeof r&&""===r.trim())&&(r=null),null==t[r]?t[r]={count:1,data:r}:t[r].count++;return{count:t}}function I(e){return"coded-value"!==e?.type?[]:e.codedValues.map(e=>e.code)}function O(e,t,r,i){const n=e.count,o=[];if(r&&t){const e=[],r=I(t[0]);for(const n of r)if(t[1]){const r=I(t[1]);for(const o of r)if(t[2]){const r=I(t[2]);for(const t of r)e.push(`${u(n)}${i}${u(o)}${i}${u(t)}`)}else e.push(`${u(n)}${i}${u(o)}`)}else e.push(n);for(const t of e)n.hasOwnProperty(t)||(n[t]={data:t,count:0})}for(const e in n){const t=n[e];o.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:o}}function E(e,t,r,i){let n=null;switch(t){case"log":0!==e&&(n=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(n=e/i*100);break;case"field":Number.isFinite(r)&&0!==r&&(n=e/r);break;case"natural-log":e>0&&(n=Math.log(e));break;case"square-root":e>0&&(n=e**.5)}return n}function j(e,t,r){const o=function(e){const{breakCount:t,field:r,normalizationField:n,normalizationType:o}=e,s=e.classificationMethod||"equal-interval",l="standard-deviation"===s?e.standardDeviationInterval||1:void 0,a="defined-interval"===s?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:r,classificationMethod:s,normalizationField:"field"===o?n:void 0,normalizationType:o,standardDeviationInterval:l,definedInterval:a})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,r){const i=t??-1/0,n=r??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=n)}(e,t.minValue,t.maxValue),(0,n.t)({definition:o,values:e,normalizationTotal:t.normalizationTotal},r)}function R(e,t){let r=e.classBreaks;const i=r.length,n=r[0]?.minValue,s=r[i-1]?.maxValue,l="standard-deviation"===t,a=o;return r=r.map(e=>{const t=e.label,r={minValue:e.minValue,maxValue:e.maxValue,label:t};if(l&&t){const e=t.match(a),i=e?.map(e=>+e.trim())??[];2===i.length?(r.minStdDev=i[0],r.maxStdDev=i[1],i[0]<0&&i[1]>0&&(r.hasAvg=!0)):1===i.length&&(t.includes("<")?(r.minStdDev=null,r.maxStdDev=i[0]):t.includes(">")&&(r.minStdDev=i[0],r.maxStdDev=null))}return r}),{minValue:n,maxValue:s,classBreakInfos:r,normalizationTotal:e.normalizationTotal}}function A(e,t){const r=L(e,t);if(null==r.min&&null==r.max)return{bins:[],minValue:r.min,maxValue:r.max,normalizationTotal:t.normalizationTotal};const i=r.intervals,n=r.min??0,o=r.max??0,s=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(const t of e)if(null!=t&&t>=n&&t<=o){const e=D(i,t);e>-1&&s[e].count++}return{bins:s,minValue:n,maxValue:o,normalizationTotal:t.normalizationTotal}}function L(e,t,r=!1){const{field:i,classificationMethod:n,standardDeviationInterval:o,definedInterval:s,normalizationType:l,normalizationField:a,normalizationTotal:u,minValue:p,maxValue:y}=t,h=t.numBins||10;let f=null,m=null,g=null;if(n&&"equal-interval"!==n||l){const{classBreaks:t}=j(e,{field:i,normalizationType:l,normalizationField:a,normalizationTotal:u,classificationMethod:n,standardDeviationInterval:o,definedInterval:s,minValue:p,maxValue:y,numClasses:h},null!=p&&null!=y?[p,y]:void 0);f=t[0]?.minValue,m=t[t.length-1]?.maxValue,g=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=p&&null!=y)f=p,m=y;else{const t=c({values:e,minValue:p,maxValue:y,useSampleStdDev:!l,supportsNullCount:d({normalizationType:l,normalizationField:a,minValue:p,maxValue:y})});f=t.min??null,m=t.max??null}g=function(e,t,r){const i=(t-e)/r,n=[];let o,s=e;for(let e=1;e<=r;e++)o=s+i,o=Number(o.toFixed(16)),n.push([s,e===r?t:o]),s=o;return n}(f??0,m??0,h)}if(r&&g.length){const e=g.at(-1)[1];g.push([e,e])}return{min:f,max:m,intervals:g}}function D(e,t){let r=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){r=i;break}return r}},55674(e,t,r){r.d(t,{Ad:()=>y,Gj:()=>m,QY:()=>c,lL:()=>g,xR:()=>h});var i=r(66131),n=r(49186),o=(r(44208),r(44729)),s=r(15032),l=r(65864),a=r(95466),u=r(43668),d=r(98623);const p=["geometry","scale","timeProperties"];function c(e,t){if(null!=t)for(const r of p)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return f.create(e,t,null,["$feature","$view"])}function h(e,t,r){return f.create(e,t,r,["$feature","$view","$config"])}class f{static async create(e,t,r,i){const{arcade:o,Dictionary:s}=await(0,u.l)();let l;try{l=o.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=o.scriptUsesGeometryEngine(l);a&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,l,null,!1,a);const d={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=o.compileScript(l,d);let c=null;null!=r&&(c=new s(r),c.immutable=!0);const y=new s;return y.immutable=!1,y.setField("scale",0),new f(e,o,l,p,t,y,c,s)}constructor(e,t,r,i,n,o,s,l){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=o,this._configDict=s,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new a.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===d.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??d.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4342,9062,9279],{32587(e,t,r){r.d(t,{A:()=>o});var i=r(62788),n=r(95488);class o{constructor(e){this._observable=new n.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,i.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,i.gc)(this._observable),this._map.entries()}forEach(e,t){(0,i.gc)(this._observable),this._map.forEach((r,i)=>e.call(t,r,i,this),t)}get(e){return(0,i.gc)(this._observable),this._map.get(e)}has(e){return(0,i.gc)(this._observable),this._map.has(e)}keys(){return(0,i.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const r of t){if(!this._map.has(r))continue;const t=this._map.get(r),i=e(t,r);i!==t&&this.set(r,i)}})}values(){return(0,i.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,i.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{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){const 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 n(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const l=parseInt(r,10),a=parseInt(o,10);return new n(l,a,t)}}},44794(e,t,r){r.d(t,{v:()=>l});var i=r(4718),n=r(62788),o=r(95488);class s{constructor(e,t){this._observable=new o.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function l(e,t=i.gh){return new s(e,t)}},62815(e,t,r){r.d(t,{N:()=>l,d:()=>a});var i=r(86211),n=r(73941),o=r(21325),s=r(52006);function l(e,t,r){const i=a(t,r);if(1!==i)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const r of e.curvePaths)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const r of e.curveRings)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return}}function a(e,t){return null==e||null==t||t.vcsWkid||(0,o.aI)(e,t)||(0,n.xP)(e)||(0,n.xP)(t)?1:(0,i.G9)(e)/(0,i.G9)(t)}},83508(e,t,r){r.r(t),r.d(t,{default:()=>ve});var i=r(5482),n=r(11254),o=r(7762),s=r(49186),l=r(91869),a=r(25728),u=r(17676),d=r(84952),p=r(91429),c=r(4146),y=r(36563),h=r(66344),f=r(32587),m=r(36708),g=r(44794),v=r(56507),w=r(63074),b=r(25036),_=r(10873),C=r(91880),F=r(1873);let M=class extends((0,b.j)((0,w.dM)((0,a.M)(c.A)))){constructor(e){super(e),this._layerCache=new h.q(20,e=>e.destroy()),this._oidToReference=new f.A,this._layerToReference=new Map,this.legendEnabled=!0,this.layers=new o.A,this.maximumVisibleSublayers=10,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.title="Layers in view",this.type="catalog-dynamic-group",this.visible=!0}initialize(){this.addHandles([this.layers.on("after-add",({item:e})=>{e.parent=this}),this.layers.on("after-remove",({item:e})=>{e.parent=null}),(0,m.wB)(()=>this._orderBy,()=>{this._updateLayerSortValues(),this._sortAllLayers()})])}load(e){return this.addResolvingPromise(this.parent.load()),Promise.resolve(this)}destroy(){this._layerCache.destroy(),this._oidToReference.clear(),this._layerToReference.clear()}get _orderBy(){return this.parent?this.parent.orderBy?.find(e=>!e.valueExpression&&e.field)??new C.A({field:this.parent.objectIdField}):null}get _referenceComparator(){const e=this._orderBy;if(!this.parent||!e)return()=>0;const t=this.parent.fieldsIndex.get(e.field),r=(0,F.FM)(t?.toJSON().type,"descending"===e.order,"case-sensitive"),i=(0,F.FM)("esriFieldTypeOID","descending"===e.order);return(e,t)=>r(t.sortValue,e.sortValue)||i(t.objectId,e.objectId)}get fullExtent(){return this.parent?.fullExtent??null}get updating(){return(0,l.Bs)(this._oidToReference,({pending:e})=>null!=e)}acquireLayer(e){if(this.destroyed)return(0,y.hA)();const t=this._getLayerReference(e);return t.count++,(0,y.hA)(()=>{t.count--,t.count||this._destroyLayerReference(t)})}_getLayerReference(e){const t=e.getObjectId();return(0,l.tE)(this._oidToReference,t,()=>{const t=e.getObjectId(),r=`${t}`,i=e.getAttribute(this.parent.itemSourceField),n=new x(e,t,i),o=this._layerCache.pop(r);return o?(this._addLayer(n,o),n):(n.pending=this.parent.createLayerFromFootprint(e).then(e=>{n.count?this._addLayer(n,e):(this.destroyed||this._layerCache.get(r)||this._layerCache.put(r,e),n.layer=null)}).catch(()=>{}).finally(()=>{n.pending=null}),n)})}_destroyLayerReference(e){e.layer&&(this._layerToReference.delete(e.layer),this.layers.remove(e.layer),this.destroyed?e.layer.destroy():this._layerCache.put(`${e.objectId}`,e.layer),e.layer=null),this._oidToReference.delete(e.objectId)}_addLayer(e,t){e.layer=t,t.persistenceEnabled=!1,this._layerToReference.set(t,e),this._updateLayerSortValue(e),this.layers.add(t),this._sortAllLayers()}_updateLayerSortValues(){for(const e of this._layerToReference.values())this._updateLayerSortValue(e)}_updateLayerSortValue(e){this._orderBy&&(e.sortValue=e.footprint.getAttribute(this._orderBy.field))}_sortAllLayers(){this.layers.sort((e,t)=>this._referenceComparator(this._layerToReference.get(e),this._layerToReference.get(t)))}};(0,i.Cg)([(0,p.MZ)()],M.prototype,"_orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"_referenceComparator",null),(0,i.Cg)([(0,p.MZ)(_.fV)],M.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{write:!0}})],M.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],M.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:v.jz,range:{min:0,max:50},json:{write:!0,default:10}})],M.prototype,"maximumVisibleSublayers",void 0),(0,i.Cg)([(0,p.MZ)(_.ke)],M.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],M.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],M.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],M.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"updating",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],M.prototype,"visible",void 0),M=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogDynamicGroupLayer")],M);class x{constructor(e,t,r){this.footprint=e,this.objectId=t,this.itemSource=r,this.count=0,this.layer=null,this.sortValue=void 0,this._pending=(0,g.v)(null)}get pending(){return this._pending.value}set pending(e){this._pending.value=e}}var T=r(37838),S=r(4718),Z=r(78247),I=r(55156),O=r(60950),E=r(89808),j=r(99959);const R=Symbol("isCatalogGraphicOrigin");var A;class L extends j.A{get[(A=R,O.ym)](){return this.layer}get[I.e](){return this.layer}get[E.Q](){return this.layer}constructor(e){super(),this[A]=!0,this.type="catalog",this.layer=e}get id(){return this.layer.id}}var D=r(87718),V=r(30279),P=r(16194),N=r(30524),q=r(46499),z=r(39383),G=r(96576),$=r(41214),k=r(30291),B=r(94985),J=r(43937);let U=class extends((0,b.j)((0,D.F)((0,w.dM)((0,a.M)(c.A))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.elevationInfo=null,this.formTemplate=null,this.graphicOrigin=new L(this),this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.title="Footprints",this.type="catalog-footprint",this.visible=!0}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.parent.load(e),(0,N.yp)(this.renderer,this.fieldsIndex),this.addHandles([this.parent.on("apply-edits",e=>this.emit("apply-edits",e)),this.parent.on("edits",e=>this.emit("edits",e)),this.parent.on("refresh",e=>this.emit("refresh",e))])}get apiKey(){return this.parent?.apiKey}get capabilities(){return this.parent?.capabilities}get customParameters(){return this.parent?.customParameters}get dateFieldsTimeZone(){return this.parent?.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this.parent?.datesInUnknownTimezone??!1}get definitionExpression(){return this.parent?.definitionExpression}get editingInfo(){return this.parent?.editingInfo}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get createQueryVersion(){return this.parent?.createQueryVersion}get defaultPopupTemplate(){return this.createPopupTemplate()}get displayField(){return this.parent?.displayField}get displayFilterEnabled(){return this.parent?.displayFilterEnabled??!0}get displayFilterInfo(){return this.parent?.displayFilterInfo??null}get effectiveEditingEnabled(){return!1}set fieldConfigurations(e){if(this._override("fieldConfigurations",e),!this.parent?.loaded)return;const t=(0,P.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,P.QX)(this)||null}get fields(){return this.parent?.fields}get fieldsIndex(){return this.parent?.fieldsIndex}get fullExtent(){return this.parent?.fullExtent}get geometryFieldsInfo(){return this.parent?.geometryFieldsInfo}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?.globalIdField}get hasM(){return this.parent?.hasM??!1}get hasZ(){return this.parent?.hasZ??!1}get objectIdField(){return this.parent?.objectIdField}get orderBy(){return this.parent?.orderBy??null}get outFields(){return this.parent?.outFields}get parsedUrl(){return this.parent?.parsedUrl??null}writePopupTemplate(e,t,r,i){e&&(t[r]=e.toJSON({...i,writeFieldFormat:!0}))}get preferredTimeZone(){return this.parent?.preferredTimeZone??null}set renderer(e){(0,N.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):function(){const e=new B.A({style:"solid",color:[0,0,0,0],outline:{style:"solid",color:[96,96,96,.75],width:.75}});return new G.A({symbol:e})}()}get returnM(){return this.parent?.returnM}get returnZ(){return this.parent?.returnZ}get source(){return this.parent?.source}get timeExtent(){return this.parent?.timeExtent}get timeInfo(){return this.parent?.timeInfo}get timeOffset(){return this.parent?.timeOffset}get typeIdField(){return this.parent?.typeIdField}get types(){return this.parent?.types}get useViewTime(){return this.parent?.useViewTime??!0}get version(){return this.parent?.version}async applyEdits(e,t){return await this.load(),this.parent.applyEdits(e,t)}createFieldConfigurations(){return(0,P.xY)(this)}createPopupTemplate(e){const t={fields:this.fields,objectIdField:this.objectIdField,title:this.title};return(0,k.tn)(t,e)}createQuery(){return this.parent?.createQuery()}getField(e){return this.parent?.getField(e)}getFieldAlias(e){const t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){return this.parent?.getFieldDomain(e,t)}async queryExtent(e,t){return await this.load(),this.parent.queryExtent(e,t)}async queryFeatures(e,t){return await this.load(),this.parent.queryFeatures(e,t)}async queryFeatureCount(e,t){return await this.load(),this.parent.queryFeatureCount(e,t)}async queryObjectIds(e,t){return await this.load(),this.parent.queryObjectIds(e,t)}async queryAttributeBins(e,t){return await this.load(),this.parent.queryAttributeBins(e,t)}};(0,i.Cg)([(0,p.MZ)(_.zQ)],U.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"apiKey",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"capabilities",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"customParameters",null),(0,i.Cg)([(0,p.MZ)()],U.prototype,"dateFieldsTimeZone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"definitionExpression",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"editingInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],U.prototype,"charts",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"displayField",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],U.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)((()=>{const e=(0,S.o8)(_.Yj);return e.json.origins["web-map"]={read:!1,write:!1},e})())],U.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:[V.A],json:{name:"layerDefinition.fieldConfigurations",write:{overridePolicy(e,t){return{enabled:!0,ignoreOrigin:this.originIdOf(t)<3}}}}})],U.prototype,"fieldConfigurations",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"fields",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"fieldsIndex",null),(0,i.Cg)([(0,p.MZ)({type:Z.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],U.prototype,"formTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"geometryFieldsInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"geometryType",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"globalIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],U.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"hasM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"hasZ",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],U.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:[q.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:z.w,write:!0}})],U.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,p.MZ)(_.kF)],U.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)(_.fV)],U.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide"],json:{write:!0}})],U.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)((()=>{const e=(0,S.o8)(_.hG);return e.json.origins.service.read=!1,e})())],U.prototype,"maxScale",void 0),(0,i.Cg)([(0,p.MZ)((()=>{const e=(0,S.o8)(_.hn);return e.json.origins.service.read=!1,e})())],U.prototype,"minScale",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"objectIdField",null),(0,i.Cg)([(0,p.MZ)(_.ke)],U.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"outFields",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],U.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)(_.M6)],U.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:T.A,json:{name:"popupInfo",write:!0}})],U.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,J.K)("popupTemplate")],U.prototype,"writePopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"preferredTimeZone",null),(0,i.Cg)([(0,p.MZ)({types:$.Hg,json:{origins:{"web-scene":{types:$.XJ}},name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(e,t){return{ignoreOrigin:this.originIdOf(t)<3}}}}})],U.prototype,"renderer",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"returnM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"returnZ",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"source",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"timeExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"timeInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"timeOffset",null),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],U.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],U.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"typeIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"types",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],U.prototype,"useViewTime",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],U.prototype,"visible",void 0),U=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogFootprintLayer")],U);var Q=r(65515),K=r(52136),Y=r(18768),H=r(69208),W=r(6455),X=r(47685),ee=r(10086),te=r(34287),re=r(32756),ie=r(8303),ne=r(54310),oe=r(82935),se=r(15426),le=r(33143),ae=r(17036),ue=r(91908),de=r(20655),pe=r(80812),ce=r(39131),ye=r(97552);const he=(0,ae.p)();function fe(e,t,r,i){const n=e.write({},i);(function(e){if(null==e)return!0;const t=Object.keys(e);return!t.length||1===t.length&&"id"===t[0]})(n)||(t[r]=n)}let me=class extends((0,W.FJ)((0,ee.j)((0,X.w6)((0,w.dM)((0,re.fY)((0,oe.e)((0,b.j)((0,ne.J)((0,Y.b)((0,te.q)((0,ie.A)((0,a.M)((0,H.d)((0,K.p)(c.A))))))))))))))){constructor(e){super(e),this.legendEnabled=!0,this._portals=new Map,this._layerToFootprint=new WeakMap,this.drawOrderField="cd_draworder",this.dynamicGroupLayer=new M({parent:this}),this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.footprintLayer=new U({parent:this}),this.itemNameField="cd_itemname",this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new o.A([this.dynamicGroupLayer,this.footprintLayer]),this.maxScaleField="cd_maxscale",this.minScaleField="cd_minscale",this.orderBy=null,this.outFields=null,this.supportedSourceTypes=new Set(["Catalog Layer"]),this.source=new Q.default({layer:this,supportedSourceTypes:this.supportedSourceTypes}),this.type="catalog",this.typeIdField=null,this.types=null}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(u.QP).then(async()=>{const{url:e,source:r,portalItem:i}=this;if(!e)throw new s.A("catalog-layer:missing-url","Catalog layer must be created with a url");if(null==this.layerId){const r=await this._fetchFirstValidLayerId(t);if(null==r)throw new s.A("catalog-layer:missing-layerId","There is no Catalog Layer in the service",{service:e});this.layerId=r}await r.load({signal:t});const{sourceJSON:n}=r;n&&(this.sourceJSON=n,this.read(n,{origin:"service",portalItem:i,portal:i?.portal,url:this.parsedUrl}))}).then(()=>{const e=[this.itemNameField,this.itemSourceField,this.itemTypeField,this.minScaleField,this.maxScaleField],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new s.A("catalog-layer:missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}).then(()=>(0,se.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.footprintLayer.destroy(),this.dynamicGroupLayer.destroy();for(const e of this._portals.values())e.destroy();this._portals.clear()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return!1}async applyEdits(e,t){return(0,se.ct)(this,e,t)}async createLayerFromFootprint(e){const t=await this._createLayer(e);return this._configureLayer(t,e),this._layerToFootprint.set(t,e),t}createFootprintFromLayer(e){return this._layerToFootprint.get(e)?.clone()}createQuery(){const e=new ye.A,t=this.capabilities?.query;e.returnGeometry=!0,t&&(e.compactGeometryEnabled=t.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=t.supportsDefaultSpatialReference),e.outFields=["*"];const{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e.where=this.definitionExpression||"1=1",e}getFeatureType(e){return(0,se.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){const r=t?.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this.getField(e)?.domain}async hasDataChanged(){return(0,se.jp)(this)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(ye.A.from(e)??r.createQuery(),t),n=r.footprintLayer.graphicOrigin;if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r.footprintLayer,e.origin=n;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(ye.A.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(ye.A.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(ye.A.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,ue.D)(this,e)}read(e,t){if(super.read(e,t),e){const{footprintLayer:r,dynamicGroupLayer:i}=e;r&&this.footprintLayer.read(r,t),i&&this.dynamicGroupLayer.read(i,t)}}async queryAttributeBins(e,t){const{source:i,capabilities:n}=await this.load();(0,se.ZJ)(e,n,"CatalogLayer");const o=await r.e(6956).then(r.bind(r,14575)),s=await i.queryAttributeBins(o.default.from(e),t);if(s.features)for(const e of s.features)e.layer=e.sourceLayer=this.footprintLayer;return s}async _fetchFirstValidLayerId(e){const{data:t}=await(0,n.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(this.applyPreferredHost(t),Array.isArray(t?.layers))return t.layers.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}async _createLayer(e){const t=e.getAttribute(this.itemSourceField);if(!t)throw new s.A("catalog-layer:item-source-missing",`The footprint is missing the "${this.itemSourceField}" attribute`);const i=JSON.parse(t);if(function(e){return"object"==typeof e&&null!=e&&"itemId"in e&&"portalUrl"in e}(i)){const{itemId:e,portalUrl:t}=i,r=(0,ce.qG)(t),n=this.portalItem?.portal,o=de.A.getDefault();let s,a=!0;n&&(0,d.ut)(t,n.url)?s=n:(0,d.ut)(t,o.url)?s=o:(s=(0,l.tE)(this._portals,r,()=>new de.A({url:r})),a=!1);const u=await c.A.fromPortalItem(new pe.default({id:e,portal:s}));return a||await ge(u),u}if(function(e){return"object"==typeof e&&null!=e&&"url"in e}(i))return c.A.fromArcGISServerUrl({url:i.url});const{default:n}=await r.e(7546).then(r.bind(r,45165));return new n}_configureLayer(e,t){const r=t.getAttribute(this.itemNameField);r&&(e.title=r);const i=t.getAttribute(this.maxScaleField);null!=i&&"maxScale"in e&&(e.maxScale=i);const n=t.getAttribute(this.minScaleField);null!=n&&"minScale"in e&&(e.minScale=n)}};async function ge(e){if("portalItem"in e&&e.portalItem){try{await e.load()}catch{}e.portalItem=null,"group"===e.type&&await Promise.allSettled([...e.layers.map(e=>ge(e)),...e.tables.map(e=>ge(e))])}}(0,i.Cg)([(0,p.MZ)(_.fV)],me.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"drawOrderField",void 0),(0,i.Cg)([(0,p.MZ)({type:M,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:fe}}})],me.prototype,"dynamicGroupLayer",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.elevationInfo",read:!1,write:!1}}}})],me.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({...he.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],me.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(he.fieldsIndex)],me.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.floorInfo",read:!1,write:!1}}}})],me.prototype,"floorInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:U,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:fe}}})],me.prototype,"footprintLayer",void 0),(0,i.Cg)([(0,p.MZ)(_.id)],me.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"itemNameField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"itemSourceField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"itemTypeField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],me.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"maxScaleField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"minScaleField",void 0),(0,i.Cg)([(0,p.MZ)({value:"CatalogLayer",type:["CatalogLayer"]})],me.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.orderBy",write:!0,read:!0}}}})],me.prototype,"orderBy",void 0),(0,i.Cg)([(0,p.MZ)(he.outFields)],me.prototype,"outFields",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],me.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],me.prototype,"typeIdField",void 0),(0,i.Cg)([(0,p.MZ)({type:[le.A]})],me.prototype,"types",void 0),me=(0,i.Cg)([(0,p.$K)("esri.layers.CatalogLayer")],me);const ve=me},87718(e,t,r){r.d(t,{F:()=>T,Y:()=>x});var i,n=r(5482),o=r(91429),s=r(49186),l=r(25482),a=r(93637),u=r(76369),d=r(66552),p=r(4718),c=r(50498),y=r(97552),h=r(79677);const f=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),m=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let g=i=class extends l.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:o,units:s,distance:l}=this;return new y.A({geometry:(0,p.o8)(r),objectIds:(0,p.o8)(o),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:t,units:s,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:o,units:s,distance:l}=this;return new i({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(o),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:e,units:s,distance:l})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],g.prototype,"where",void 0),(0,n.Cg)([(0,o.MZ)({types:c.yR,json:{write:!0}})],g.prototype,"geometry",void 0),(0,n.Cg)([(0,o.MZ)({type:f.apiValues,json:{name:"spatialRel",read:{reader:f.read},write:{allowNull:!1,writer:f.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],g.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"distance",void 0),(0,n.Cg)([(0,o.MZ)({type:[Number],json:{write:!0}})],g.prototype,"objectIds",void 0),(0,n.Cg)([(0,o.MZ)({type:m.apiValues,json:{read:m.read,write:{writer:m.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"units",void 0),(0,n.Cg)([(0,o.MZ)({type:h.A,json:{write:!0}})],g.prototype,"timeExtent",void 0),g=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.FeatureFilter")],g);const v=g;var w;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},_={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},C={name:"showExcludedLabels",default:!0};let F=w=class extends l.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new s.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new w({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,o.MZ)({type:v,json:{write:{allowNull:!0,writer(e,t,r,i){const n=e?.write({},i);n&&0!==Object.keys(n).length?(0,a.sM)(r,n,t):(0,a.sM)(r,null,t)}}}})],F.prototype,"filter",void 0),(0,n.Cg)([(0,o.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],F.prototype,"includedEffect",void 0),(0,n.Cg)([(0,o.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":_,"portal-item":_}}})],F.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":C,"portal-item":C}}})],F.prototype,"excludedLabelsVisible",void 0),F=w=(0,n.Cg)([(0,o.$K)("esri.layers.support.FeatureEffect")],F);const M={write:{allowNull:!0}},x={type:F,json:{origins:{"web-map":M,"portal-item":M}}},T=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,o.MZ)(x)],r.prototype,"featureEffect",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.FeatureEffectLayer")],r),r}},32756(e,t,r){r.d(t,{Rr:()=>l,fY:()=>u,ne:()=>a});var i=r(5482),n=r(93637),o=r(91429),s=r(91880);function l(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const n=new s.A;return n.read(i,r),[n]}const a={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){const o=e.find(e=>!!e.field);o&&(0,n.sM)(r,[o.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r}},33143(e,t,r){r.d(t,{A:()=>p});var i=r(5482),n=r(69540),o=r(25482),s=r(91429),l=r(8631),a=r(29005),u=r(36005),d=r(43937);let p=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],p.prototype,"id",void 0),(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,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],p.prototype,"readDomains",null),(0,i.Cg)([(0,d.K)("domains")],p.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],p.prototype,"templates",void 0),p=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],p)},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(66552),s=r(25482),l=r(91429);const a=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.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,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),n=r(53966),o=r(46140),s=r(95466),l=r(55674);class a{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,d=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const c=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))c.delete(e);c.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});const y=await(0,l.xR)(e.expression,null,p);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!s||!s.greaterEqual(4,0);h&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const f=new u(r,h);return new a(h,d,y,f)}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){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},96520(e,t,r){r.d(t,{u:()=>a});var i=r(86211),n=r(21325),o=r(52006);function s(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function l(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e){const e=(0,o.yP)(t);e.length>2&&(e[2]*=r)}}function a(e,t,r){if(!e&&!t||!r)return;const n=(0,i.G9)(r);u(e,r,n),u(t,r,n)}function u(e,t,r){if(e)for(const i of e)d(i.geometry,t,r)}function d(e,t,r){if(!e?.spatialReference||(0,n.aI)(e.spatialReference,t))return;const o=(0,i.G9)(e.spatialReference)/r;if(1!==o)if("x"in e)null!=e.z&&(e.z*=o);else if("curveRings"in e)l(e,e.curveRings,o);else if("curvePaths"in e)l(e,e.curvePaths,o);else if("rings"in e)s(e,e.rings,o);else if("paths"in e)s(e,e.paths,o);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=o)}},58501(e,t,r){r.d(t,{q:()=>n});var i=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(n)for(const e of r.features)n(e.geometry)}},22671(e,t,r){r.d(t,{A:()=>v});var i,n=r(5482),o=r(52106),s=r(66552),l=r(25482),a=r(4718),u=r(91429),d=r(16930),p=r(60408),c=r(65864),y=r(50498),h=r(20437),f=r(36005),m=r(43937);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.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,o.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=d.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const 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){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[o,s]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*o+i,e=>n-e*s,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=d.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const o=e[t],s=r.fromJSON(o),l=o.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=i);const a=o.aggregateGeometries,u=s.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],r=a[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(s)}return n}_quantizePoints(e,t,r){let i,n;const o=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=r(l[1]);e===i&&s===n||(o.push([e-i,s-n]),i=e,n=s)}else i=t(l[0]),n=r(l[1]),o.push([i,n])}return o.length>0?o: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=>{const i=(0,p.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],s=this._quantizePoints(o,t,r);s&&n.push(s)}return n.length>0?((0,p.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const 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,n){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=>{const o=(0,p.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(s+=n[0],l+=n[1]):(s=n[0],l=n[1]),n[0]=t(s),n[1]=r(l)}}if(i&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(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)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=r(l)}if(i&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n.Cg)([(0,f.w)("features")],v.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,f.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:d.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},1873(e,t,r){r.d(t,{$y:()=>A,Ak:()=>D,FM:()=>h,G_:()=>c,Rw:()=>j,Vb:()=>d,b3:()=>Z,gJ:()=>u,jM:()=>R,lv:()=>O,oZ:()=>S,qg:()=>y,sU:()=>L,z9:()=>p,zS:()=>E});var i=r(9760),n=r(84892);const o=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,s=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),l=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),a=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function d(e){const t=null!=e.normalizationField||null!=e.normalizationType,r=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!r&&!i}function p(e){const{outStatisticTypes:t}=e,r=e.returnDistinct?[...new Set(e.values)]:e.values,i=r.filter(e=>null!=e).sort(),n=i.length,o={count:n,min:i[0],max:i[n-1]};return e.supportsNullCount&&(o.nullcount=r.length-n),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(o.median=y(r,e.percentileParams)),o}function c(e){const{values:t,useSampleStdDev:r,supportsNullCount:i,outStatisticTypes:n}=e;let o=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,l=null,a=null,u=null,d=null,p=0;const c=null==e.minValue?-1/0:e.minValue,h=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=c&&e<=h&&(l=null===l?e:l+e,o=Math.min(o,e),s=Math.max(s,e),p++):"string"==typeof e&&p++;if(p&&null!=l){a=l/p;let e=0;for(const r of t)Number.isFinite(r)&&r>=c&&r<=h&&(e+=(r-a)**2);d=r?p>1?e/(p-1):0:p>0?e/p:0,u=Math.sqrt(d)}else o=null,s=null;const f={avg:a,count:p,max:s,min:o,stddev:u,sum:l,variance:d};return i&&(f.nullcount=t.length-p),!e.percentileParams||n?.include?.length&&!n.include.includes("median")||n?.exclude?.length&&n.exclude.includes("median")||(f.median=y(t,e.percentileParams)),f}function y(e,t){const{fieldType:r,value:i,orderBy:n,isDiscrete:o}=t,s=h(r,"desc"===n,"case-insensitive");if(0===(e=[...e].filter(e=>null!=e).sort((e,t)=>s(e,t))).length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];const l=(e.length-1)*i,a=Math.floor(l),u=a+1,d=l%1,p=e[a],c=e[u];return u>=e.length||o||"string"==typeof p||"string"==typeof c?p:p*(1-d)+c*d}function h(e,t,r="case-sensitive"){if(e){if(s.has(e))return x(t);if(l.has(e))return C(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?w:v}(t);const i=C(t,"case-sensitive"===r);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(T(e),T(t))}const i=t?1:-1,n=x(t),o=C(t,"case-sensitive"===r),a=g(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?n(e,t):"string"==typeof e&&"string"==typeof t?o(e,t):a(e,t)??i}const f=(e,t)=>null==e?null==t?0:1:null==t?-1:null,m=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function g(e){return e?f:m}const v=(e,t)=>m(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),w=(e,t)=>f(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),b=(e,t)=>m(e,t)??(e===t?0:e<t?-1:1),_=(e,t)=>f(e,t)??(e===t?0:e<t?1:-1);function C(e,t){if(t)return e?_:b;const r=g(e);return e?(e,t)=>{const i=r(e,t);return null!=i?i:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const i=r(e,t);return null!=i?i:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}const F=(e,t)=>f(e,t)??t-e,M=(e,t)=>m(e,t)??e-t;function x(e){return e?F:M}function T(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function S(e,t,r){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:a.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return r?(["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e):e}function Z(e){const t={};for(let r of e)(null==r||"string"==typeof r&&""===r.trim())&&(r=null),null==t[r]?t[r]={count:1,data:r}:t[r].count++;return{count:t}}function I(e){return"coded-value"!==e?.type?[]:e.codedValues.map(e=>e.code)}function O(e,t,r,i){const n=e.count,o=[];if(r&&t){const e=[],r=I(t[0]);for(const n of r)if(t[1]){const r=I(t[1]);for(const o of r)if(t[2]){const r=I(t[2]);for(const t of r)e.push(`${u(n)}${i}${u(o)}${i}${u(t)}`)}else e.push(`${u(n)}${i}${u(o)}`)}else e.push(n);for(const t of e)n.hasOwnProperty(t)||(n[t]={data:t,count:0})}for(const e in n){const t=n[e];o.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:o}}function E(e,t,r,i){let n=null;switch(t){case"log":0!==e&&(n=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(n=e/i*100);break;case"field":Number.isFinite(r)&&0!==r&&(n=e/r);break;case"natural-log":e>0&&(n=Math.log(e));break;case"square-root":e>0&&(n=e**.5)}return n}function j(e,t,r){const o=function(e){const{breakCount:t,field:r,normalizationField:n,normalizationType:o}=e,s=e.classificationMethod||"equal-interval",l="standard-deviation"===s?e.standardDeviationInterval||1:void 0,a="defined-interval"===s?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:r,classificationMethod:s,normalizationField:"field"===o?n:void 0,normalizationType:o,standardDeviationInterval:l,definedInterval:a})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,r){const i=t??-1/0,n=r??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=n)}(e,t.minValue,t.maxValue),(0,n.t)({definition:o,values:e,normalizationTotal:t.normalizationTotal},r)}function R(e,t){let r=e.classBreaks;const i=r.length,n=r[0]?.minValue,s=r[i-1]?.maxValue,l="standard-deviation"===t,a=o;return r=r.map(e=>{const t=e.label,r={minValue:e.minValue,maxValue:e.maxValue,label:t};if(l&&t){const e=t.match(a),i=e?.map(e=>+e.trim())??[];2===i.length?(r.minStdDev=i[0],r.maxStdDev=i[1],i[0]<0&&i[1]>0&&(r.hasAvg=!0)):1===i.length&&(t.includes("<")?(r.minStdDev=null,r.maxStdDev=i[0]):t.includes(">")&&(r.minStdDev=i[0],r.maxStdDev=null))}return r}),{minValue:n,maxValue:s,classBreakInfos:r,normalizationTotal:e.normalizationTotal}}function A(e,t){const r=L(e,t);if(null==r.min&&null==r.max)return{bins:[],minValue:r.min,maxValue:r.max,normalizationTotal:t.normalizationTotal};const i=r.intervals,n=r.min??0,o=r.max??0,s=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(const t of e)if(null!=t&&t>=n&&t<=o){const e=D(i,t);e>-1&&s[e].count++}return{bins:s,minValue:n,maxValue:o,normalizationTotal:t.normalizationTotal}}function L(e,t,r=!1){const{field:i,classificationMethod:n,standardDeviationInterval:o,definedInterval:s,normalizationType:l,normalizationField:a,normalizationTotal:u,minValue:p,maxValue:y}=t,h=t.numBins||10;let f=null,m=null,g=null;if(n&&"equal-interval"!==n||l){const{classBreaks:t}=j(e,{field:i,normalizationType:l,normalizationField:a,normalizationTotal:u,classificationMethod:n,standardDeviationInterval:o,definedInterval:s,minValue:p,maxValue:y,numClasses:h},null!=p&&null!=y?[p,y]:void 0);f=t[0]?.minValue,m=t[t.length-1]?.maxValue,g=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=p&&null!=y)f=p,m=y;else{const t=c({values:e,minValue:p,maxValue:y,useSampleStdDev:!l,supportsNullCount:d({normalizationType:l,normalizationField:a,minValue:p,maxValue:y})});f=t.min??null,m=t.max??null}g=function(e,t,r){const i=(t-e)/r,n=[];let o,s=e;for(let e=1;e<=r;e++)o=s+i,o=Number(o.toFixed(16)),n.push([s,e===r?t:o]),s=o;return n}(f??0,m??0,h)}if(r&&g.length){const e=g.at(-1)[1];g.push([e,e])}return{min:f,max:m,intervals:g}}function D(e,t){let r=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){r=i;break}return r}},55674(e,t,r){r.d(t,{Ad:()=>y,Gj:()=>m,QY:()=>c,lL:()=>g,xR:()=>h});var i=r(66131),n=r(49186),o=(r(44208),r(44729)),s=r(15032),l=r(65864),a=r(95466),u=r(43668),d=r(98623);const p=["geometry","scale","timeProperties"];function c(e,t){if(null!=t)for(const r of p)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return f.create(e,t,null,["$feature","$view"])}function h(e,t,r){return f.create(e,t,r,["$feature","$view","$config"])}class f{static async create(e,t,r,i){const{arcade:o,Dictionary:s}=await(0,u.l)();let l;try{l=o.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=o.scriptUsesGeometryEngine(l);a&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,l,null,!1,a);const d={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=o.compileScript(l,d);let c=null;null!=r&&(c=new s(r),c.immutable=!0);const y=new s;return y.immutable=!1,y.setField("scale",0),new f(e,o,l,p,t,y,c,s)}constructor(e,t,r,i,n,o,s,l){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=o,this._configDict=s,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new a.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===d.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??d.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9419],{5443(t,e,i){i.d(e,{A:()=>f});var n,r=i(5482),s=i(799),a=i(91429),o=i(91075),h=i(86738),m=i(16930),l=i(94078),u=i(12176),c=i(21325),x=i(28735);function y(t,e,i){return null==e?i:null==i?e:t(e,i)}let f=n=class extends o.A{constructor(...t){super(...t),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(t,e,i,n,r){return function(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}(t)?{spatialReference:t,xmin:0,ymin:0,xmax:0,ymax:0}:"object"==typeof t?(t.spatialReference=null==t.spatialReference?m.A.WGS84:t.spatialReference,t):{xmin:t,ymin:e,xmax:i,ymax:n,spatialReference:r??m.A.WGS84}}static fromPoint(t){return new n({xmin:t.x,ymin:t.y,zmin:t.z,xmax:t.x,ymax:t.y,zmax:t.z,spatialReference:t.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){const t=new h.A({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(t.z=.5*(this.zmin+this.zmax)),this.hasM&&(t.m=.5*(this.mmin+this.mmax)),t}get extent(){return this.clone()}get hasM(){return null!=this.mmin&&null!=this.mmax}get hasZ(){return null!=this.zmin&&null!=this.zmax}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(t){const e=this.center;return null!=t.z&&this.hasZ?this.offset(t.x-e.x,t.y-e.y,t.z-e.z):this.offset(t.x-e.x,t.y-e.y)}clone(){const t=new n;return t.xmin=this.xmin,t.ymin=this.ymin,t.xmax=this.xmax,t.ymax=this.ymax,t.spatialReference=this.spatialReference,null!=this.zmin&&(t.zmin=this.zmin,t.zmax=this.zmax),null!=this.mmin&&(t.mmin=this.mmin,t.mmax=this.mmax),t}contains(t){if(!t)return!1;const e=this.spatialReference,i=t.spatialReference;return e&&i&&!e.equals(i)&&(0,x.y7)(e,i)&&(t=e.isWebMercator?(0,x.Gh)(t):(0,x.ci)(t,!0)),"point"===t.type?(0,l.qz)(this,t):"extent"===t.type&&(0,l.gH)(this,t)}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,i=t.spatialReference;return e&&i&&!e.equals(i)&&(0,x.y7)(e,i)&&(t=e.isWebMercator?(0,x.Gh)(t):(0,x.ci)(t,!0)),this.xmin===t.xmin&&this.ymin===t.ymin&&this.zmin===t.zmin&&this.mmin===t.mmin&&this.xmax===t.xmax&&this.ymax===t.ymax&&this.zmax===t.zmax&&this.mmax===t.mmax}expand(t){const e=.5*(1-t),i=this.width*e,n=this.height*e;if(this.xmin+=i,this.ymin+=n,this.xmax-=i,this.ymax-=n,this.hasZ){const t=(this.zmax-this.zmin)*e;this.zmin+=t,this.zmax-=t}if(this.hasM){const t=(this.mmax-this.mmin)*e;this.mmin+=t,this.mmax-=t}return this}intersects(t){if(null==t)return!1;"mesh"===t.type&&(t=t.extent);const e=this.spatialReference,i=t.spatialReference;return e&&i&&!(0,c.aI)(e,i)&&(0,x.y7)(e,i)&&(t=e.isWebMercator?(0,x.Gh)(t):(0,x.ci)(t,!0)),(0,u.xK)(t.type)(this,t)}normalize(){const t=this._normalize(!1,!0);return Array.isArray(t)?t:[t]}offset(t,e,i){return this.xmin+=t,this.ymin+=e,this.xmax+=t,this.ymax+=e,null!=i&&(this.zmin+=i,this.zmax+=i),this}shiftCentralMeridian(){return this._normalize(!0)}union(t){return this===t||(this.xmin=Math.min(this.xmin,t.xmin),this.ymin=Math.min(this.ymin,t.ymin),this.xmax=Math.max(this.xmax,t.xmax),this.ymax=Math.max(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=y(Math.min,this.zmin,t.zmin),this.zmax=y(Math.max,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=y(Math.min,this.mmin,t.mmin),this.mmax=y(Math.max,this.mmax,t.mmax))),this}intersection(t){return this===t?this:null!=t&&this.intersects(t)?(this.xmin=Math.max(this.xmin,t.xmin),this.ymin=Math.max(this.ymin,t.ymin),this.xmax=Math.min(this.xmax,t.xmax),this.ymax=Math.min(this.ymax,t.ymax),(this.hasZ||t.hasZ)&&(this.zmin=y(Math.max,this.zmin,t.zmin),this.zmax=y(Math.min,this.zmax,t.zmax)),(this.hasM||t.hasM)&&(this.mmin=y(Math.max,this.mmin,t.mmin),this.mmax=y(Math.min,this.mmax,t.mmax)),this):null}toJSON(t){return this.write({},t)}_shiftCM(t=(0,c.Vp)(this.spatialReference)){if(!t||!this.spatialReference)return this;const e=this.spatialReference,i=this._getCM(t);if(i){const n=e.isWebMercator?(0,x.ci)(i):i;this.xmin-=i.x,this.xmax-=i.x,e.isWebMercator||(n.x=p(n.x,t).x),this.spatialReference=new m.A((0,s.HC)((e.isWGS84?t.altTemplate:null)??t.wkTemplate,{Central_Meridian:n.x}))}return this}_getCM(t){let e=null;const[i,n]=t.valid,r=this.xmin,s=this.xmax;return r>=i&&r<=n&&s>=i&&s<=n||(e=this.center),e}_normalize(t,e,i){const n=this.spatialReference;if(!n)return this;const r=i??(0,c.Vp)(n);if(null==r)return this;const s=this._getParts(r).map(t=>t.extent);if(s.length<2)return s[0]||this;if(s.length>2)return t?this._shiftCM(r):this.set({xmin:r.valid[0],xmax:r.valid[1]});if(t)return this._shiftCM(r);if(e)return s;let a=!0,o=!0;return s.forEach(t=>{t.hasZ||(a=!1),t.hasM||(o=!1)}),{rings:s.map(t=>{const e=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(a){const i=(t.zmax-t.zmin)/2;for(let t=0;t<e.length;t++)e[t].push(i)}if(o){const i=(t.mmax-t.mmin)/2;for(let t=0;t<e.length;t++)e[t].push(i)}return e}),hasZ:a,hasM:o,spatialReference:n}}_getParts(t){let e=this.cache._parts;if(!e){e=[];const{ymin:i,ymax:r,spatialReference:s}=this,a=this.width,o=this.xmin,h=this.xmax;let m;t=t||(0,c.Vp)(s);const[l,u]=t.valid;m=p(this.xmin,t);const x=m.x,y=m.frameId;m=p(this.xmax,t);const f=m.x,d=m.frameId,g=x===f&&a>0;if(a>2*u){const t=new n(o<h?x:f,i,u,r,s),a=new n(l,i,o<h?f:x,r,s),m=new n(0,i,u,r,s),c=new n(l,i,0,r,s),p=[],g=[];t.contains(m)&&p.push(y),t.contains(c)&&g.push(y),a.contains(m)&&p.push(d),a.contains(c)&&g.push(d);for(let t=y+1;t<d;t++)p.push(t),g.push(t);e.push({extent:t,frameIds:[y]},{extent:a,frameIds:[d]},{extent:m,frameIds:p},{extent:c,frameIds:g})}else x>f||g?e.push({extent:new n(x,i,u,r,s),frameIds:[y]},{extent:new n(l,i,f,r,s),frameIds:[d]}):e.push({extent:new n(x,i,f,r,s),frameIds:[y]});this.cache._parts=e}const i=this.hasZ,r=this.hasM;if(i||r){const t={};i&&(t.zmin=this.zmin,t.zmax=this.zmax),r&&(t.mmin=this.mmin,t.mmax=this.mmax);for(let i=0;i<e.length;i++)e[i].extent.set(t)}return e}};function p(t,e){const[i,n]=e.valid,r=2*n;let s,a=0;return t>n?(s=Math.ceil(Math.abs(t-n)/r),t-=s*r,a=s):t<i&&(s=Math.ceil(Math.abs(t-i)/r),t+=s*r,a=-s),{x:t,frameId:a}}(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"center",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],f.prototype,"hasM",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],f.prototype,"hasZ",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"height",null),(0,r.Cg)([(0,a.MZ)({type:m.A,json:{write:!0},value:m.A.WGS84})],f.prototype,"spatialReference",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"width",null),(0,r.Cg)([(0,a.MZ)({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],f.prototype,"xmin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"ymin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],f.prototype,"mmin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],f.prototype,"zmin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"xmax",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"ymax",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},read:t=>t??void 0,write:{overridePolicy(){return{enabled:this.hasM}}}}})],f.prototype,"mmax",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],f.prototype,"zmax",void 0),f=n=(0,r.Cg)([(0,a.$K)("esri.geometry.Extent")],f),f.prototype.toJSON.isDefaultToJSON=!0},91075(t,e,i){i.d(e,{A:()=>h});var n=i(5482),r=i(25482),s=i(91429),a=i(16930),o=i(36005);let h=class extends r.o{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=a.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof a.A)return t;if(null!=t){const i=new a.A;return i.read(t,e),i}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,n.Cg)([(0,s.MZ)()],h.prototype,"type",void 0),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasM",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],h.prototype,"hasZ",void 0),(0,n.Cg)([(0,s.MZ)({type:a.A,json:{write:!0},value:a.A.WGS84})],h.prototype,"spatialReference",void 0),(0,n.Cg)([(0,o.w)("spatialReference")],h.prototype,"readSpatialReference",null),h=(0,n.Cg)([(0,s.$K)("esri.geometry.Geometry")],h)},86738(t,e,i){i.d(e,{A:()=>M});var n=i(5482),r=i(69622),s=i(53966),a=i(91429),o=i(56507),h=i(91075),m=i(16930),l=i(21325),u=i(28735);function c({x:t,y:e,spatialReference:i},n=[0,0]){if(i){if((0,l.K8)(i))return(0,u.tD)(t,e,n);if((0,l.EA)(i))return n[0]=t,n[1]=e,n}return null}const x=[0,0];var y,f=i(43937),p=i(36005);const d=[0,0];function g(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let M=y=class extends h.A{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const i=t._get("spatialReference");e._set("spatialReference",r.A.isFrozen(i)?i:i.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,i,n,r){let a;if(Array.isArray(t))a=t,r=e,t=a[0],e=a[1],i=a[2],n=a[3];else if(t&&"object"==typeof t){if(a=t,t=null!=a.x?a.x:a.longitude,e=null!=a.y?a.y:a.latitude,i=a.z,n=a.m,(r=a.spatialReference)&&"esri.geometry.SpatialReference"!==r.declaredClass&&(r=new m.A(r)),null!=a.longitude||null!=a.latitude)if(null==a.longitude)s.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==a.latitude)s.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!a.declaredClass&&r?.isWebMercator){const i=(0,u.je)(a.longitude,a.latitude,d);t=i[0],e=i[1]}}else g(i)?(r=i,i=null):g(n)&&(r=n,n=null);const o={x:t,y:e};return null==o.x&&null!=o.y?s.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==o.y&&null!=o.x&&s.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=r&&(o.spatialReference=r),null!=i&&(o.z=i),null!=n&&(o.m=n),o}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){return c(this,x)?.[1]??null}set latitude(t){const{spatialReference:e,x:i}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,u.je)(i,t,d)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){return c(this,x)?.[0]??null}set longitude(t){const{y:e,spatialReference:i}=this;null!=t&&i&&(i.isWebMercator?this._set("x",(0,u.je)(t,e,d)[0]):i.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,i){e[i]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new y;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return y.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:i,z:n,m:r,spatialReference:s}=this,{z:a,m:o}=t;let{x:h,y:m,spatialReference:l}=t;if(!s.equals(l))if(s.isWebMercator&&l.isWGS84)[h,m]=(0,u.je)(h,m),l=s;else{if(!s.isWGS84||!l.isWebMercator)return!1;[h,m]=(0,u.tD)(h,m),l=s}return e===h&&i===m&&n===a&&r===o&&s.wkid===l.wkid}offset(t,e,i){return this.x+=t,this.y+=e,null!=i&&(this.z=(this.z??0)+i),this}normalize(){if(!this.spatialReference)return this;const t=(0,l.Vp)(this.spatialReference);if(!t)return this;let e=this.x;const[i,n]=t.valid,r=2*n;let s;return e>n?(s=Math.ceil(Math.abs(e-n)/r),e-=s*r):e<i&&(s=Math.ceil(Math.abs(e-i)/r),e+=s*r),this._set("x",e),this}distance(t){return function(t,e){const i=t.x-e.x,n=t.y-e.y,r=null!=t.z&&null!=e.z?t.z-e.z:0;return Math.sqrt(i*i+n*n+r*r)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasM",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],M.prototype,"hasZ",null),(0,n.Cg)([(0,a.MZ)({type:Number})],M.prototype,"latitude",null),(0,n.Cg)([(0,a.MZ)({type:Number})],M.prototype,"longitude",null),(0,n.Cg)([(0,a.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.wg)(t=>isNaN(t)?t:(0,o.GB)(t))],M.prototype,"x",void 0),(0,n.Cg)([(0,f.K)("x")],M.prototype,"writeX",null),(0,n.Cg)([(0,p.w)("x")],M.prototype,"readX",null),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],M.prototype,"z",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],M.prototype,"m",void 0),M=y=(0,n.Cg)([(0,a.$K)("esri.geometry.Point")],M),M.prototype.toJSON.isDefaultToJSON=!0},21276(t,e,i){i.d(e,{H:()=>s,f:()=>r});var n=i(49186);function r(t){if(t&&"object"==typeof t&&"type"in t&&"mesh"===t.type)throw new n.A("internal:mesh","Mesh geometries are not supported for this operation")}function s(t){t.forEach(r)}},19419(t,e,i){i.d(e,{$9:()=>w,C:()=>s,HY:()=>z,IO:()=>u,Ie:()=>R,Rj:()=>M,VL:()=>y,VY:()=>o,Wc:()=>p,aI:()=>b,bx:()=>c,cY:()=>v,fA:()=>a,fT:()=>x,gR:()=>C,gX:()=>d,ib:()=>g,nw:()=>l,qv:()=>A,tK:()=>m,uJ:()=>f,vt:()=>r,w1:()=>h}),i(34727);var n=i(5443);function r(t=P){return[t[0],t[1],t[2],t[3]]}function s(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function a(t,e,i,n,s=r()){return s[0]=t,s[1]=e,s[2]=i,s[3]=n,s}function o(t,e=r()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function h(t,e,i=new n.A){return i.xmin=t[0],i.ymin=t[1],i.xmax=t[2],i.ymax=t[3],i.spatialReference=e,i}function m(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function l(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function u(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function c(t,{xmin:e,ymin:i,xmax:n,ymax:r}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],n),t[3]=Math.max(t[3],r)}function x(t,e,i){if(null!=e)if("length"in e)Z(e)?(i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.max(t[2],e[2]),i[3]=Math.max(t[3],e[3])):2!==e.length&&3!==e.length||(i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.max(t[2],e[0]),i[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":i[0]=Math.min(t[0],e.xmin),i[1]=Math.min(t[1],e.ymin),i[2]=Math.max(t[2],e.xmax),i[3]=Math.max(t[3],e.ymax);break;case"point":i[0]=Math.min(t[0],e.x),i[1]=Math.min(t[1],e.y),i[2]=Math.max(t[2],e.x),i[3]=Math.max(t[3],e.y)}else s(i,t)}function y(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function f(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function p(t){return y(t)*f(t)}function d(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function g(t){const e=y(t),i=f(t);return Math.sqrt(e*e+i*i)}function M(t,e,i){return e>=t[0]&&i>=t[1]&&e<=t[2]&&i<=t[3]}function z(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function w(t,e,i){return Math.max(e[0],t[0])-i<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-i<=Math.min(e[3],t[3])}function C(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function v(t,e,i,n){return n??=t,n[0]=t[0]+e,n[1]=t[1]+i,n[2]=t[2]+e,n[3]=t[3]+i,n}function R(t){return t?s(t,A):r(A)}function Z(t){return null!=t&&4===t.length}function b(t,e){return Z(t)&&Z(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:t===e}const A=[1/0,1/0,-1/0,-1/0],P=[0,0,0,0]},94078(t,e,i){i.d(e,{CW:()=>o,F8:()=>h,gH:()=>a,m3:()=>l,qz:()=>r,rL:()=>s,t1:()=>u});const n=[0,0];function r(t,e){return null!=e&&m(t,e.x,e.y,e.z)}function s(t,e){if(!e.points?.length)return!1;for(const i of e.points)if(!o(t,i))return!1;return!0}function a(t,e){const{xmin:i,ymin:n,zmin:r,xmax:s,ymax:a,zmax:o}=e;return t.hasZ&&e.hasZ?m(t,i,n,r)&&m(t,i,a,r)&&m(t,s,a,r)&&m(t,s,n,r)&&m(t,i,n,o)&&m(t,i,a,o)&&m(t,s,a,o)&&m(t,s,n,o):m(t,i,n)&&m(t,i,a)&&m(t,s,a)&&m(t,s,n)}function o(t,e){return m(t,e[0],e[1])}function h(t,e){return m(t,e[0],e[1],e[2])}function m(t,e,i,n){return e>=t.xmin&&e<=t.xmax&&i>=t.ymin&&i<=t.ymax&&(null==n||!t.hasZ||n>=t.zmin&&n<=t.zmax)}function l(t,e){return n[1]=e.y,n[0]=e.x,function(t,e){return u(t.rings,e)}(t,n)}function u(t,e){if(!t||t.length<1)return!1;if(function(t){return!Array.isArray(t[0][0])}(t))return c(!1,t,e);let i=!1;for(let n=0,r=t.length;n<r;n++)i=c(i,t[n],e);return i}function c(t,e,i){const[n,r]=i;let s=t,a=0;for(let t=0,i=e.length;t<i;t++){a++,a===i&&(a=0);const[o,h]=e[t],[m,l]=e[a];(h<r&&l>=r||l<r&&h>=r)&&o+(r-h)/(l-h)*(m-o)<n&&(s=!s)}return s}},12176(t,e,i){i.d(e,{Ql:()=>p,fA:()=>x,xB:()=>s,xK:()=>d});var n=i(94078);function r(t,e){return(0,n.qz)(t,e)}function s(t,e){const i=t.hasZ&&e.hasZ;let n,r,s;if(t.xmin<=e.xmin){if(n=e.xmin,t.xmax<n)return!1}else if(n=t.xmin,e.xmax<n)return!1;if(t.ymin<=e.ymin){if(r=e.ymin,t.ymax<r)return!1}else if(r=t.ymin,e.ymax<r)return!1;if(i&&e.hasZ)if(t.zmin<=e.zmin){if(s=e.zmin,t.zmax<s)return!1}else if(s=t.zmin,e.zmax<s)return!1;return!0}function a(t,e){const{points:i,hasZ:r}=e,s=r?n.F8:n.CW;for(const e of i)if(s(t,e))return!0;return!1}const o=[0,0],h=[0,0],m=[0,0],l=[0,0],u=[o,h,m,l],c=[[m,o],[o,h],[h,l],[l,m]];function x(t,e){return function(t,e){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,m[0]=t.xmin,m[1]=t.ymin,l[0]=t.xmax,l[1]=t.ymin;for(const t of u)if((0,n.t1)(e,t))return!0;for(const i of e){if(!i.length)continue;let e=i[0];if((0,n.CW)(t,e))return!0;for(let r=1;r<i.length;r++){const s=i[r];if((0,n.CW)(t,s)||f(e,s,c))return!0;e=s}}return!1}(t,e.rings)}function y(t,e){o[0]=t.xmin,o[1]=t.ymax,h[0]=t.xmax,h[1]=t.ymax,m[0]=t.xmin,m[1]=t.ymin,l[0]=t.xmax,l[1]=t.ymin;const i=e.paths;for(const e of i){if(!i.length)continue;let r=e[0];if((0,n.CW)(t,r))return!0;for(let i=1;i<e.length;i++){const s=e[i];if((0,n.CW)(t,s)||f(r,s,c))return!0;r=s}}return!1}function f(t,e,i){for(let n=0;n<i.length;n++)if(p(t,e,i[n][0],i[n][1]))return!0;return!1}function p(t,e,i,n,r){const[s,a]=t,[o,h]=e,[m,l]=i,[u,c]=n,x=u-m,y=s-m,f=o-s,p=c-l,d=a-l,g=h-a,M=p*f-x*g;if(0===M)return!1;const z=(x*d-p*y)/M,w=(f*d-g*y)/M;return z>=0&&z<=1&&w>=0&&w<=1&&(r&&(r[0]=s+z*(o-s),r[1]=a+z*(h-a)),!0)}function d(t){switch(t){case"esriGeometryEnvelope":case"extent":return s;case"esriGeometryMultipoint":case"multipoint":return a;case"esriGeometryPoint":case"point":return r;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return x;case"esriGeometryPolyline":case"polyline":return y}}},28735(t,e,i){i.d(e,{Cv:()=>f,Gh:()=>g,ci:()=>M,je:()=>p,jg:()=>l,tD:()=>d,y7:()=>y});var n=i(4718),r=i(21276),s=i(16930),a=i(79258),o=i(21325);function h(t){return 57.29577951308232*t}function m(t){return.017453292519943*t}function l(t){return Math.PI/2-2*Math.atan(Math.exp(-t/a.$O.radius))}function u(t){return null!=t.wkid||null!=t.wkt}const c=[0,0];function x(t,e,i,n,r){const s=t,a=r;if(a.spatialReference=i,"x"in s&&"x"in a)[a.x,a.y]=e(s.x,s.y,c,n);else if("xmin"in s&&"xmin"in a)[a.xmin,a.ymin]=e(s.xmin,s.ymin,c,n),[a.xmax,a.ymax]=e(s.xmax,s.ymax,c,n);else if("paths"in s&&"paths"in a||"rings"in s&&"rings"in a){const t="paths"in s?s.paths:s.rings,i=[];let r;for(let s=0;s<t.length;s++){const a=t[s];r=[],i.push(r);for(let t=0;t<a.length;t++)r.push(e(a[t][0],a[t][1],[0,0],n)),a[t].length>2&&r[t].push(a[t][2]),a[t].length>3&&r[t].push(a[t][3])}"paths"in a?a.paths=i:a.rings=i}else if("points"in s&&"points"in a){const t=s.points,i=[];for(let r=0;r<t.length;r++)i[r]=e(t[r][0],t[r][1],[0,0],n),t[r].length>2&&i[r].push(t[r][2]),t[r].length>3&&i[r].push(t[r][3]);a.points=i}return r}function y(t,e){const i=t&&(u(t)?t:t.spatialReference),n=e&&(u(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!i||!n)&&(!!(0,o.aI)(n,i)||(0,o.K8)(n)&&(0,o.oT)(i)||(0,o.K8)(i)&&(0,o.oT)(n))}function f(t,e){if(null==t)return null;const i=t.spatialReference,r=e&&(u(e)?e:e.spatialReference);return y(i,r)?(0,o.aI)(i,r)?(0,n.o8)(t):(0,o.K8)(r)?x(t,p,s.A.WebMercator,!1,(0,n.o8)(t)):(0,o.oT)(r)?x(t,d,s.A.WGS84,!1,(0,n.o8)(t)):null:null}function p(t,e,i=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const n=m(e);return i[0]=m(t)*a.$O.radius,i[1]=a.$O.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),i}function d(t,e,i=[0,0],n=!1){if(t===o.Mc[0])i[0]=-180;else if(t===o.Mc[1])i[0]=180;else{const e=h(t/a.$O.radius);i[0]=n?e:e-360*Math.floor((e+180)/360)}return i[1]=h(Math.PI/2-2*Math.atan(Math.exp(-e/a.$O.radius))),i}function g(t,e=!1,i=(0,n.o8)(t)){return(0,r.f)(t),(0,r.f)(i),x(t,p,s.A.WebMercator,e,i)}function M(t,e=!1,i=(0,n.o8)(t)){return(0,r.f)(t),(0,r.f)(i),x(t,d,s.A.WGS84,e,i)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[821],{66344(e,t,i){i.d(t,{q:()=>a});const r=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,s,n){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),s>this._maxSize)return void this._notifyRemove(t,i,s,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return r||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,0);const l=1+Math.max(n,-4)- -3;this._db.set(t,new o(i,s,l)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let r=i.entry.usedMemory;for(;r>this._maxSize;){const e=this._notifyRemove(t,i.entry,r,1);if(!(null!=e&&e>0))return void this._db.delete(t);r=e}i.size=r,this._size+=r,e.size+=r,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,r)=>{const s=e.lifetime;i[s]=(i[s]||0)+e.size,this._clients.forEach(i=>{const{id:s,name:o}=i;if(r.startsWith(s)){const i=t[o]||0;t[o]=i+e.size}})});const r={};this._clients.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"});const s=Object.keys(t);s.sort((e,i)=>t[i]-t[e]),s.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]);for(let t=i.length-1;t>=0;--t){const r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){const s=this._clients.get(e.split(n)[0])?.removeFunc,o=s?.(t,r,i);return"number"==typeof o?o:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const r=t?.id;let s=!0;for(;s;){s=!1;for(const[o,a]of this._db)if(0===a.lifetime&&(!r||o.startsWith(r))){const r=t??this._clients.get(o.split(n)[0]);if(this._purgeItem(o,a,r),i.size<=.9*e)return;s||=this._db.has(o)}}for(const[s,o]of this._db)if(!r||s.startsWith(r)){const r=t??this._clients.get(s.split(n)[0]);if(this._purgeItem(s,o,r),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const r=this._notifyRemove(e,t.entry,t.size,1);null!=r&&r>0&&(this._size+=r,i&&(i.size+=r),t.lives=t.lifetime,t.size=r,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class o{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const n=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new s(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},28076(e,t,i){i.d(t,{D:()=>s});var r=i(13337);const s={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:r.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:r.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}}},13337(e,t,i){i.d(t,{h:()=>r});const r={Relative:0,Absolute:1}},93397(e,t,i){i.d(t,{$w:()=>M,Bu:()=>k,DW:()=>b,FH:()=>v,FM:()=>a,Kn:()=>g,MM:()=>u,Nl:()=>x,O2:()=>w,UE:()=>P,YC:()=>A,YF:()=>L,_1:()=>_,_d:()=>S,_h:()=>n,bs:()=>E,e6:()=>c,gQ:()=>o,jn:()=>m,lW:()=>f,ll:()=>D,mA:()=>h,oI:()=>H,pM:()=>I,pV:()=>C,pk:()=>F,rB:()=>T,xo:()=>z,yX:()=>V,z9:()=>p,zb:()=>R,zr:()=>d});var r=i(28076);function s(e){let t=e.length;for(;t--;)if(!" /-,\n".includes(e.charAt(t)))return!1;return!0}function o(e,t){const i=[];let r=0,o=-1;do{if(o=e.indexOf("[",r),o>=r){if(o>r){const t=e.slice(r,o);i.push([t,null,s(t)])}if(r=o+1,o=e.indexOf("]",r),o>=r){if(o>r){const s=t[e.slice(r,o)];s&&i.push([null,s,!1])}r=o+1}}}while(-1!==o);if(r<e.length){const t=e.slice(r);i.push([t,null,s(t)])}return i}function n(e,t,i){let r="",s=null;for(const i of t){const[t,o,n]=i;if(null!=t&&""!==t)n?s=t:(null!=s&&(r+=s,s=null),r+=t);else{const t=e.readAttribute(o);null!=t&&""!==t&&(null!==s&&(r+=s,s=null),r+=t)}}return l(r,i)}function a(e,t,i,r){let s="",o=null;for(const r of t){const[t,n,a]=r;if(null!=t&&""!==t)a?o=t:(null!=o&&(s+=o,o=null),s+=t);else{let t=n;null!=i&&(t=G(n,i));const r=e.attributes[t];null!=r&&""!==r&&(null!=o&&(s+=o,o=null),s+=r)}}return l(s,r)}function l(e,t){switch("string"!=typeof e&&(e=String(e)),t){case"LowerCase":return e.toLowerCase();case"Allcaps":return e.toUpperCase();default:return e}}function c(e){return e?[e[0],e[1],e[2],e[3]/255]:[0,0,0,0]}function f(e){return e.data?.symbol??null}function u(e){return"CIMVectorMarker"===e.type||"CIMPictureMarker"===e.type||"CIMBarChartMarker"===e.type||"CIMCharacterMarker"===e.type||"CIMPieChartMarker"===e.type||"CIMStackedBarChartMarker"===e.type}function h(e){return"CIMGradientStroke"===e.type||"CIMPictureStroke"===e.type||"CIMSolidStroke"===e.type}function m(e){return null!=e&&("CIMGradientFill"===e.type||"CIMHatchFill"===e.type||"CIMPictureFill"===e.type||"CIMSolidFill"===e.type||"CIMWaterFill"===e.type)}function d(e){return null!=e&&("CIMMarkerPlacementAlongLineRandomSize"===e.type||"CIMMarkerPlacementAlongLineSameSize"===e.type||"CIMMarkerPlacementAlongLineVariableSize"===e.type||"CIMMarkerPlacementAtExtremities"===e.type||"CIMMarkerPlacementAtMeasuredUnits"===e.type||"CIMMarkerPlacementAtRatioPositions"===e.type||"CIMMarkerPlacementOnLine"===e.type||"CIMMarkerPlacementOnVertices"===e.type)}const M=(e,t=0)=>null==e||isNaN(e)?t:e;class y{constructor(e){this._import=e}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(e=>this.module=e)),this._promise}}function p(e){return new y(e)}function C(e){if(!e)return"normal";switch(e.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function g(e){if(!e)return"normal";switch(e.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function S(e){let t="normal",i="normal";if(e){const r=e.toLowerCase();r.includes("italic")?t="italic":r.includes("oblique")&&(t="oblique"),r.includes("bold")?i="bold":r.includes("light")&&(i="lighter")}return{style:t,weight:i}}function b(e){return e.underline?"underline":e.strikethrough?"line-through":"none"}function I(e){if(!e)return null;switch(e.type){case"CIMPolygonSymbol":if(e.symbolLayers)for(const t of e.symbolLayers){const e=I(t);if(null!=e)return e}break;case"CIMTextSymbol":return I(e.symbol);case"CIMSolidFill":return e.color}return null}function _(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const t=e.symbolLayers;if(t)for(const e of t){const t=_(e);if(null!=t)return t}break}case"CIMTextSymbol":return _(e.symbol);case"CIMSolidStroke":return e.color}}function z(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(e.symbolLayers)for(const t of e.symbolLayers){const e=z(t);if(void 0!==e)return e}break;case"CIMTextSymbol":return z(e.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return e.width}}function k(e){switch(e){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function x(e){switch(e){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function w(e){return(e?Object.keys(e):[]).map(t=>({name:t,alias:t,type:"string"==typeof e[t]?"esriFieldTypeString":"esriFieldTypeDouble"}))}const P=e=>e.includes("data:image/svg+xml");function L(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function R(e,t,i,r,s,o,n=!0){const{infos:a}=o;let l=1,c=0,f=0,u=0,h=1;for(const{absoluteAnchorPoint:e,offsetX:t,offsetY:i,rotation:r,size:s,frameHeight:o,rotateClockWise:m,scaleSymbolsProportionally:d}of a)h=e?1:l,f=N(t,i,c,h,f),u=W(t,i,c,h,u),o&&(d||n)&&(l*=s/o),c=B(r,m,c);const m=N(r,s,c,h,f),d=W(r,s,c,h,u);return{size:e*l,rotation:B(t,i,c),offsetX:m,offsetY:d}}function v(e){return e?.dashTemplate&&(e.dashTemplate=function(e){return"string"==typeof e?function(e){return e.split(" ").map(e=>Number(e))}(e):e}(e.dashTemplate)),e}function E(e){if(null==e)return"Normal";switch(e.type){case"CIMTextSymbol":return e.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const t=e.symbolLayers;if(!t)return"Normal";for(const e of t)if("CIMVectorMarker"===e.type)return E(e)}break;case"CIMVectorMarker":{const t=e.markerGraphics;if(!t)return"Normal";for(const e of t)if(e.symbol)return E(e.symbol)}}return"Normal"}function A(e){if(e)switch(e.type){case"CIMTextSymbol":return e.height;case"CIMPointSymbol":{let t=0;if(e.symbolLayers)for(const i of e.symbolLayers)if(i)switch(i.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const e=i.size??r.D.CIMVectorMarker.size;e>t&&(t=e);break}}return t}case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=0;if(e.symbolLayers)for(const i of e.symbolLayers)if(i)switch(i.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const e=i.width;null!=e&&e>t&&(t=e);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(i.markerPlacement&&d(i.markerPlacement)){const e=i.size??r.D.CIMVectorMarker.size;e>t&&(t=e)}break;case"CIMPictureFill":{const e=i.height;null!=e&&e>t&&(t=e)}}return t}}}function G(e,t){if(null!==t){const i=t.get(e);return i?i.name:e}return e}function F(e){return e.map(e=>({...e,propertyName:L(e.propertyName)}))}function T(e){const t={};for(const i in e){const r=e[i];t[L(i)]=r}return t}function D(e){if(!e)return 0;let t=0;for(const i of e)t+=O(i);return t}function O(e){if(!e)return 0;if(function(e){return e.type.startsWith("PRI")}(e))return e.inflateSize??256;switch(e.type){case"CIMGeometricEffectArrow":return Math.abs(.5*e.width);case"CIMGeometricEffectBuffer":return Math.abs(e.size);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(e.length);case"CIMGeometricEffectJog":return Math.abs(.5*e.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(M(e.offsetX)),Math.abs(M(e.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(e.offset);case"CIMGeometricEffectRadial":return Math.abs(e.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(e.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(e.fromWidth),Math.abs(e.toWidth));case"CIMGeometricEffectWave":return Math.abs(e.amplitude);case"CIMGeometricEffectDonut":return Math.abs(e.width)}}function W(e,t,i,r,s){const o=i*Math.PI/180;if(o){const i=Math.cos(o);return(Math.sin(o)*e+i*t)*r+s}return t*r+s}function N(e,t,i,r,s){const o=i*Math.PI/180;return o?(Math.cos(o)*e-Math.sin(o)*t)*r+s:e*r+s}function B(e,t,i){return t?i-e:i+e}function V(e,t){return Math.max(Math.min((e??t)/100,1),0)}function H(e){return null!=e&&function(e){return"setControlPoint"in e&&"getControlPoint"in e&&"setControlPointAt"in e&&"getControlPointAt"in e}(e)?e:void 0}},93470(e,t,i){i.d(t,{Cb:()=>o,HW:()=>f,JR:()=>s,JZ:()=>l,WR:()=>a,b6:()=>u,fT:()=>r,nC:()=>c,yM:()=>n});const r=[252,146,31,255],s=[153,153,153,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},a={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},c={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},f={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},u={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9657],{68197(e,t,r){r.d(t,{A:()=>u});var n=r(40876),i=r(4576),s=r(34727),o=r(56507);function l(e){return(0,s.qE)((0,o.Vr)(e),0,255)}function a(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,n=new u){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?u.fromArray(r,t):null}static fromHex(e,t=new u){const r=(0,n.oW)(e);return r?u.fromArray(r,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.Eq)(e);return r?u.fromArray(r,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,i.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,s=`#${a(this.r,n)}${a(this.g,n)}${a(this.b,n)}${i?a(Math.round(255*this.a),n):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=l(this.r),r=l(this.g),n=l(this.b);return 0===e||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}u.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>d,G1:()=>y,TS:()=>s,Tf:()=>w,V6:()=>i,Vm:()=>f,ay:()=>a,c1:()=>g,c4:()=>o,j5:()=>u,lT:()=>p,oW:()=>c,xV:()=>b});const n={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 i(e){return!!n[e]||!!n[e.toLowerCase()]}function s(e){return n[e]??n[e.toLowerCase()]}function o(e){return[...s(e)]}function l(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,n=1){const i=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,o=2*r-s;return[Math.round(255*l(o,s,i+1/3)),Math.round(255*l(o,s,i)),Math.round(255*l(o,s,i-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const l=[0,0,0,1];let a;return s&&(a=o&n,o>>=r,l[3]=i*a/255),a=o&n,o>>=r,l[2]=i*a,a=o&n,o>>=r,l[1]=i*a,a=o&n,o>>=r,l[0]=i*a,l}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function p(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),h(t)}return h(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function h(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?y(e[3]):1,e}function d(e){let t=i(e)?s(e):null;return t??=p(e),t??=c(e),t}function f(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function y(e){return m(e,0,1)}function g(e){return Math.round(m(e,0,255))}function m(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const w=2.2,S=1/w;function b(e){return e**S}},60999(e,t,r){r.d(t,{DZ:()=>f,Ke:()=>d,Tj:()=>c,UT:()=>y,aD:()=>m,jJ:()=>u});var n=r(5482),i=r(69622),s=r(97768),o=r(17676),l=r(10107),a=r(64108);function u(e,t,r){return(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return h(e)}}async function f(e){try{return p(await e)}catch(e){return(0,o.QP)(e),h(e)}}function y(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,l.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,l.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,l.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,l.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,l.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],g);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},90629(e,t,r){r.d(t,{Lz:()=>i,PN:()=>s,cr:()=>o,gs:()=>a,r_:()=>u,tc:()=>l}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(e){return e?e/72*96:0}function s(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(n);if(t){const r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),o="px"===n?s(r):r;return i?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function l(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,r=0){return[e,t,r]}},159(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),s=r(69540),o=r(25482),l=r(91429),a=r(99157);let u=n=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,l.MZ)({type:[a.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=n=(0,i.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>a});var n,i=r(5482),s=r(69540),o=r(25482),l=r(91429);let a=n=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,l.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkt",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],a.prototype,"wkid",void 0),a=n=(0,i.Cg)([(0,l.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(49208);function i(e,t,r,i,s,o,l=Math.floor(e.length/3)){const a=(0,n.jd)(t,s);if(null==a)return!1;if(a===n.pO){if(e===i&&r===o)return!0;const t=r+3*l;for(let n=r,s=o;n<t;n++,s++)i[s]=e[n]??0;return!0}const u=r+3*l;for(let t=r,n=o;t<u;t+=3,n+=3)a(e,t,i,n);return!0}},49208(e,t,r){r.d(t,{Tp:()=>p,jd:()=>c,pO:()=>d,w5:()=>u});var n=r(34727),i=r(86211),s=r(73941),o=r(79258),l=r(34403),a=r(21325);const u={2:{5:d,7:null,9:null,10:d,1:v,6:null,8:null,0:null,3:y,11:g,2:d,4:I},5:{5:d,7:null,9:null,10:d,1:v,6:null,8:null,0:null,3:y,11:g,2:d,4:I},7:{5:null,7:d,9:null,10:d,1:null,6:b,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:S,0:null,3:null,11:null,2:null,4:null},3:{5:f,7:null,9:null,10:f,1:function(e,t,r,n){const i=e[t]/x,s=L-2*Math.atan(Math.exp(-e[t+1]/x)),o=x+(e[t+2]??0),l=Math.cos(s)*o;r[n]=Math.cos(i)*l,r[n+1]=Math.sin(i)*l,r[n+2]=Math.sin(s)*o},6:null,8:null,0:null,3:d,11:function(e,t,r,n){f(e,t,r,n),g(r,n,r,n)},2:f,4:function(e,t,r,n){f(e,t,r,n),I(r,n,r,n)}},4:{5:P,7:null,9:null,10:P,1:function(e,t,r,n){P(e,t,r,n),v(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){P(e,t,r,n),y(r,n,r,n)},11:function(e,t,r,n){P(e,t,r,n),g(r,n,r,n)},2:P,4:d},1:{5:k,7:null,9:null,10:k,1:d,6:null,8:null,0:null,3:function(e,t,r,n){k(e,t,r,n),y(r,n,r,n)},11:function(e,t,r,n){k(e,t,r,n),g(r,n,r,n)},2:k,4:function(e,t,r,n){k(e,t,r,n),I(r,n,r,n)}},6:{5:null,7:A,9:null,10:A,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:C,10:C,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:v,6:b,8:S,0:null,3:y,11:g,2:d,4:I},11:{5:m,7:null,9:null,10:m,1:function(e,t,r,n){m(e,t,r,n),v(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){m(e,t,r,n),y(r,n,r,n)},11:d,2:m,4:function(e,t,r,n){m(e,t,r,n),I(r,n,r,n)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(R.source.spatialReference===e&&R.dest.spatialReference===t)return R;const r=h(e,R.source),n=h(t,R.dest);return 0===r&&0===n?(0,a.aI)(e,t)?R.projector=d:R.projector=null:R.projector=u[r][n],R}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,a.oT)(e)?t.spatialReferenceId=2:(0,a.K8)(e)?t.spatialReferenceId=3:(0,a.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,s.q8)(e)?t.spatialReferenceId=7:(0,s.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function d(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function f(e,t,r,n){r[n]=j*(e[t]/x),r[n+1]=j*(L-2*Math.atan(Math.exp(-e[t+1]/x))),r[n+2]=e[t+2]??0}function y(e,t,r,i){!function(e,t,r,i,s){const o=.4999999*Math.PI,l=(0,n.qE)(_*e[t+1],-o,o),a=Math.sin(l);r[i++]=_*e[t]*s.radius,r[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),r[i]=e[t+2]??0}(e,t,r,i,o.$O)}function g(e,t,r,n){r[n]=e[t]*$,r[n+1]=e[t+1]*$,r[n+2]=e[t+2]??0}function m(e,t,r,n){r[n]=e[t]*Z,r[n+1]=e[t+1]*Z,r[n+2]=e[t+2]??0}function w(e,t,r,n,i){const s=i+(e[t+2]??0),o=_*e[t],l=_*e[t+1],a=Math.cos(l)*s;r[n]=Math.cos(o)*a,r[n+1]=Math.sin(o)*a,r[n+2]=Math.sin(l)*s}function S(e,t,r,n){w(e,t,r,n,o.Sw.radius)}function b(e,t,r,n){w(e,t,r,n,o.sH.radius)}function v(e,t,r,n){w(e,t,r,n,o.$O.radius)}function M(e,t,r,i,s){const o=e[t],l=e[t+1],a=e[t+2]??0,u=Math.sqrt(o*o+l*l+a*a),c=(0,n.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);r[i++]=j*p,r[i++]=j*c,r[i]=u-s}function C(e,t,r,n){M(e,t,r,n,o.Sw.radius)}function A(e,t,r,n){M(e,t,r,n,o.sH.radius)}function k(e,t,r,n){M(e,t,r,n,o.$O.radius)}function I(e,t,r,n){!function(e,t,r,n,i){const s=_*e[t],o=_*e[t+1],l=e[t+2]??0,a=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);r[n++]=(c+l)*u*Math.cos(s),r[n++]=(c+l)*u*Math.sin(s),r[n++]=(c*(1-i.eccentricitySquared)+l)*a}(e,t,r,n,o.$O)}function P(e,t,r,n){const i=l.TP,s=e[t],a=e[t+1],u=e[t+2]??0;let c,p,h,d,f,y,g,m,w,S,b,v,M,C,A,k,I,P,R,_,L;c=Math.abs(u),p=s*s+a*a,h=Math.sqrt(p),d=p+u*u,f=Math.sqrt(d),_=Math.atan2(a,s),y=u*u/d,g=p/d,C=i.a2/f,A=i.a3-i.a4/f,g>.3?(m=c/f*(1+g*(i.a1+C+y*A)/f),R=Math.asin(m),S=m*m,w=Math.sqrt(1-S)):(w=h/f*(1-y*(i.a5-C-g*A)/f),R=Math.acos(w),S=1-w*w,m=Math.sqrt(S)),b=1-o.$O.eccentricitySquared*S,v=o.$O.radius/Math.sqrt(b),M=i.a6*v,C=h-v*w,A=c-M*m,I=w*C+m*A,k=w*A-m*C,P=k/(M/b+I),R+=P,L=I+k*P/2,u<0&&(R=-R),r[n++]=j*_,r[n++]=j*R,r[n]=L}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},_=(0,n.kU)(1),j=(0,n.KJ)(1),L=.5*Math.PI,x=o.$O.radius,$=x*Math.PI/180,Z=180/(x*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>K,initializeProjection:()=>J,isEqualBaseGCS:()=>B,isLoaded:()=>x,isLoadedOrLoad:()=>$,isLoadedOrLoadFor:()=>Z,load:()=>T,project:()=>D,projectAsync:()=>H,projectExtent:()=>ie,projectMany:()=>O,projectMultipoint:()=>Q,projectOrLoad:()=>U,projectOrLoadMany:()=>F,projectPoint:()=>W,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>V,requiresLoad:()=>E,test:()=>q,tryProject:()=>z,unload:()=>N});var n=r(49186),i=r(17676),s=r(62788),o=r(95488),l=r(51850),a=r(21276),u=r(73941),c=r(5443),p=r(91075),h=r(48526),d=r(86738),f=r(39829),y=r(82799),g=r(16930),m=r(98764),w=r(159),S=r(9762),b=r(49208);function v(e,t,r,n,i,s){return M[0]=e,M[1]=t,M[2]=r,(0,S.projectBuffer)(M,n,0,i,s,0)}const M=(0,l.vt)();var C=r(60408),A=r(21325),k=r(52006);let I=null,P=null,R=null,_=null,j={};const L=new o.I;function x(){return!!(P?.isLoaded()&&R?.isLoaded()&&_?.isLoaded())}function $(){return!!x()||((0,s.gc)(L),T(),!1)}function Z(e,t){return!e||!t||K(e,t)||$()}function E(e,t){return!K(e,t)&&!x()}async function T(e){null==I&&(I=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(P=e,P.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(R=e,R.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(_=e,_.load()))])),await I,(0,i.Te)(e),L.notify()}function D(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),O(e,e[0].spatialReference,t,r)):((0,a.f)(e),O([e],e.spatialReference,t,r)[0])}function O(e,t,r,n){if(null==t||null==r)return e;if(K(t,r,n))return e.map(e=>V(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return O(e.map(e=>V(e,t,g.A.WGS84)),g.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return O(e,t,g.A.WGS84).map(e=>V(e,g.A.WGS84,r));if(!x())throw new G;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:_.getTransformation(t,r,n.areaOfInterestExtent)||new w.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=j[e];i||(i=_.getTransformation(t,r)||new w.A,j[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?P.executeMany(e,r,n):R.executeMany(e,r,n)}function z(e,t,r){try{return D(e,t,r)}catch(e){return null}}function U(e,t){const r=F([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function F(e,t,r){if(!x())for(const r of e)if(null!=r&&!(0,A.aI)(r.spatialReference,t)&&(0,A.fn)(r.spatialReference)&&(0,A.fn)(t)&&!K(r.spatialReference,t))return(0,s.gc)(L),{pending:T(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,A.aI)(e.spatialReference,t)?e:(0,A.fn)(e.spatialReference)&&(0,A.fn)(t)?D(e,t,r):null)}}class G extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function N(){I=null,P=null,R=null,_=null,j={}}const q={get loadPromise(){return I}};async function H(e,t,r){if((0,i.Te)(r),!e)return e;const n=F(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),H(e,t,r);const s=n.geometries??[];return Array.isArray(e)?s:s[0]}function K(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,A.aI)(e,t)||(0,A.fn)(e)&&(0,A.fn)(t)&&!!(0,b.jd)(e,t))}function B(e,t){if((0,A.aI)(e,t))return!0;if(!(0,A.fn)(e)||!(0,A.fn)(t))return!1;const r=(0,A.oT)(e)||(0,A.K8)(e)||(0,A.x1)(e),n=(0,A.oT)(t)||(0,A.K8)(t)||(0,A.x1)(t);return r&&n}async function J(e,t,r,n){if(x())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!K(t,r,i))return T(n)}else if(e&&t&&!K(e,t,r))return T(n);return(0,i.NO)(n)}function V(e,t,r){return e?(0,C.fT)(e)?Y(e,t,new d.A,r,0):(0,C.ZC)(e)?se(e,t,new c.A,r,0):(0,C.Bi)(e)?ne(e,t,new f.A,r,0):(0,C.Rg)(e)?te(e,t,new y.A,r,0):(0,C.U9)(e)?X(e,t,new h.A,r,0):null:null}function W(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,r,n)}function Y(e,t,r,n,i){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:i,(0,S.projectBuffer)(ue,t,0,ue,n,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=n,void 0!==s||(0,u.xP)(n)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function Q(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,i){const{points:s,hasZ:o,hasM:l}=e,a=[],u=s.length,c=[];for(const e of s)c.push(e[0],e[1],o?e[2]:i);if(!(0,S.projectBuffer)(c,t,0,c,n,0,u))return null;const p=ae(o,n);for(let e=0;e<u;++e){const t=3*e,r=c[t],n=c[t+1];p&&l?a.push([r,n,c[t+2],s[e][3]]):p?a.push([r,n,c[t+2]]):l?a.push([r,n,s[e][2]]):a.push([r,n])}return r.points=a,r.spatialReference=n,r.hasZ=o,r.hasM=l,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,i){const{curvePaths:s,paths:o,hasZ:l,hasM:a}=e;if(!(s?le(s,l??!1,a??!1,t,r.curvePaths=[],n,i):oe(o,l??!1,a??!1,t,r.paths,n,i)))return null;const u=ae(l,n);return r.spatialReference=n,r.hasZ=u,r.hasM=a,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,i){const{curveRings:s,rings:o,hasZ:l,hasM:a}=e;return(s?le(s,l??!1,a??!1,t,r.curveRings=[],n,i):oe(o,l??!1,a??!1,t,r.rings,n,i))?(r.spatialReference=n,r.hasZ=ae(l,n),r.hasM=a,r):null}function ie(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=se(e,e.spatialReference,t,r,n)}function se(e,t,r,n,i){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:u,hasM:c}=e;if(!v(s,o,u?e.zmin:i,t,ue,n))return null;const p=ae(u,n);return r.xmin=ue[0],r.ymin=ue[1],p&&(r.zmin=ue[2]),v(l,a,u?e.zmax:i,t,ue,n)?(r.xmax=ue[0],r.ymax=ue[1],p&&(r.zmax=ue[2]),c&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function oe(e,t,r,n,i,s,o=0){const l=new Array;for(const r of e)for(const e of r)l.push(e[0],e[1],t?e[2]:o);if(!(0,S.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;i.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const n of t){const t=l.slice(a,a+=3);c||t.pop(),r&&t.push(n[u]),e.push(t)}i.push(e)}return!0}function le(e,t,r,n,i,s,o=0){const l=new Array;for(const r of e)for(const e of r){if((0,k.FG)(e))return!1;if((0,k.aO)(e)){const[r,n]=e.c;l.push(r[0],r[1],t?r[2]:o,n[0],n[1],o);continue}if((0,k.n1)(e)){const[r,n,i]=e.b;l.push(r[0],r[1],t?r[2]:o,n[0],n[1],o,i[0],i[1],o);continue}const r=e;l.push(r[0],r[1],t?r[2]:o)}if(!(0,S.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;i.length=0;const u=t?3:2,c=ae(t,s);for(const t of e){const e=new Array;for(const n of t){const t=l.slice(a,a+=3);if(c||t.pop(),r&&t.push((0,k.yP)(n)[u]),(0,k.FG)(n))return!1;if((0,k.aO)(n)){const r=l[a++],n=l[a++];++a,e.push({c:[t,[r,n]]});continue}if((0,k.n1)(n)){const r=l[a++],n=l[a++];++a;const i=l[a++],s=l[a++];++a,e.push({b:[t,[r,n],[i,s]]});continue}e.push(t)}i.push(e)}return!0}function ae(e,t){return e||(0,u.xP)(t)||(0,A.aI)(t,m.Y0)}const ue=(0,l.vt)()},98764(e,t,r){r.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var n=r(73941),i=r(16930),s=r(21325);const o=new i.A(n.fv),l=new i.A(n.FY),a=new i.A(n.LJ),u=new i.A(n.Ro);function c(e){const t=p.get(e);if(t)return t;let r=o;if(e)if(e===l)r=l;else if(e===a)r=a;else{const t=e.wkid,n=e.latestWkid;if(null!=t||null!=n)(0,s.tl)(t)||(0,s.tl)(n)?r=l:((0,s.ZL)(t)||(0,s.ZL)(n))&&(r=a);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===h?r=l:e===d&&(r=a)}}}return p.set(e,r),r}const p=new Map,h=l.wkt.toUpperCase(),d=a.wkt.toUpperCase()},34403(e,t,r){r.d(t,{TP:()=>o});var n=r(79258);Math.PI;const i=n.$O.radius,s=n.$O.eccentricitySquared,o={a1:i*s,a2:i*s*i*s,a3:i*s*s/2,a4:i*s*i*s*2.5,a5:i*s+i*s*s/2,a6:1-s};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius},63201(e,t,r){r.r(t),r.d(t,{default:()=>j});var n=r(5482),i=r(92602),s=r(11254),o=r(25728),l=r(17676),a=r(84952),u=r(91429),c=r(5443),p=r(21325),h=r(4146),d=r(63074),f=r(34287),y=r(8303),g=r(54310),m=r(25036),w=r(10873),S=r(58592),b=r(94985),v=r(31593),M=r(53930),C=r(20378),A=r(36005);const k=["atom","xml"],I={base:C.A,key:"type",typeMap:{"simple-line":v.A},errorContext:"symbol"},P={base:C.A,key:"type",typeMap:{"picture-marker":S.A,"simple-marker":M.A},errorContext:"symbol"},R={base:C.A,key:"type",typeMap:{"simple-fill":b.A},errorContext:"symbol"};let _=class extends((0,d.dM)((0,g.J)((0,f.q)((0,y.A)((0,m.j)((0,o.M)(h.A))))))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readFeatureCollections(e,t){return t.featureCollection.layers.forEach(e=>{const t=e.layerDefinition.drawingInfo.renderer.symbol;t&&"esriSFS"===t.type&&t.outline?.style.includes("esriSFS")&&(t.outline.style="esriSLSSolid")}),t.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,a.e7)(this.url,k)||"GeoRSS":e}set title(e){this._set("title",e)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},e).catch(l.QP).then(()=>this._fetchService(t)).then(e=>{this.read(e,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const e=await this._fetchService();return this.read(e,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(e){const t=this.spatialReference,{data:r}=await(0,s.A)(i.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,p.oT)(t)?void 0:t.wkid??JSON.stringify(t)},signal:e});return r}_hasGeometry(e){return this.featureCollections?.some(t=>t.featureSet?.geometryType===e&&t.featureSet.features?.length>0)??!1}};(0,n.Cg)([(0,u.MZ)()],_.prototype,"description",void 0),(0,n.Cg)([(0,u.MZ)()],_.prototype,"featureCollections",void 0),(0,n.Cg)([(0,A.w)("service","featureCollections",["featureCollection.layers"])],_.prototype,"readFeatureCollections",null),(0,n.Cg)([(0,u.MZ)({type:c.A,json:{name:"lookAtExtent"}})],_.prototype,"fullExtent",void 0),(0,n.Cg)([(0,u.MZ)(w.id)],_.prototype,"id",void 0),(0,n.Cg)([(0,u.MZ)(w.fV)],_.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,u.MZ)({types:I,json:{write:!0}})],_.prototype,"lineSymbol",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],_.prototype,"listMode",void 0),(0,n.Cg)([(0,u.MZ)({types:P,json:{write:!0}})],_.prototype,"pointSymbol",void 0),(0,n.Cg)([(0,u.MZ)({types:R,json:{write:!0}})],_.prototype,"polygonSymbol",void 0),(0,n.Cg)([(0,u.MZ)({type:["GeoRSS"]})],_.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)(w.OZ)],_.prototype,"url",void 0),(0,n.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:e=>e||void 0}}}}})],_.prototype,"title",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],_.prototype,"type",void 0),_=(0,n.Cg)([(0,u.$K)("esri.layers.GeoRSSLayer")],_);const j=_},8303(e,t,r){r.d(t,{A:()=>M});var n=r(5482),i=r(92602),s=r(70333),o=r(11254),l=r(60999),a=r(49186),u=r(36563),c=r(53966),p=r(97768),h=r(17676),d=r(84952),f=r(91429),y=r(77548),g=r(20655),m=r(80812),w=r(41318),S=r(10407),b=r(36005),v=r(43937);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.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 m.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{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,h.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(r.bind(r,41204)),n=new AbortController,i=(0,u.rE)(n);return this.addHandles(i,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:n.signal})}catch(e){throw(0,h.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let o,l;if(i)o=r.portal.url;else try{o=await(0,y.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!o||!(0,d.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new m.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,h.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,S.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=g.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(n))return i.user;const a=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?w.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return r&&n&&!(0,d.ut)(n.restUrl,r.restUrl)?(t.messages&&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,n.Cg)([(0,f.MZ)({type:m.default})],M.prototype,"portalItem",null),(0,n.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,n.Cg)([(0,v.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,n.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],M),M},C={credential:null,user:null}},10407(e,t,r){r.d(t,{It:()=>d,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>h,sQ:()=>p});var n=r(91218),i=r(16930),s=r(28735);function o(e,t){if(!l(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,h.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const h={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const l="update"===n||"admin"===n;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},65851(e,t,r){r.d(t,{A:()=>l});var n=r(5482),i=r(91429),s=r(31593),o=r(20378);let l=class extends o.A{constructor(e){super(e),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,n.Cg)([(0,i.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":s.A}},json:{default:null,write:!0}})],l.prototype,"outline",void 0),(0,n.Cg)([(0,i.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],l.prototype,"type",void 0),l=(0,n.Cg)([(0,i.$K)("esri.symbols.FillSymbol")],l)},89420(e,t,r){r.d(t,{A:()=>a});var n=r(5482),i=r(90629),s=r(91429),o=r(56507),l=r(20378);let a=class extends l.A{constructor(e){super(e),this.angle=0,this.type=null}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get size(){return this._get("size")??9}set size(e){this._set("size",e)}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],a.prototype,"angle",void 0),(0,n.Cg)([(0,s.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],a.prototype,"type",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],a.prototype,"xoffset",null),(0,n.Cg)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],a.prototype,"yoffset",null),(0,n.Cg)([(0,s.MZ)({cast:e=>"auto"===e?e:(0,o.GB)((0,i.cr)(e)),json:{write:!0}})],a.prototype,"size",null),a=(0,n.Cg)([(0,s.$K)("esri.symbols.MarkerSymbol")],a)},58592(e,t,r){r.d(t,{A:()=>h});var n,i=r(5482),s=r(4718),o=r(90629),l=r(91429),a=r(89420),u=r(77040),c=r(93223),p=r(36005);let h=n=class extends a.A{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e&&null==e.imageData)return e;const n={};return e&&(n.url=e),null!=t&&(n.width=(0,o.cr)(t)),null!=r&&(n.height=(0,o.cr)(r)),n}get height(){return this._get("height")??12}set height(e){this._set("height",e)}readHeight(e,t){return t.size||e}get width(){return this._get("width")??12}set width(e){this._set("width",e)}readWidth(e,t){return t.size||e}get size(){return this._get("size")??null}set size(e){this._set("size",e)}clone(){const e=new n({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,s.o8)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,i.Cg)([(0,l.MZ)({json:{write:!1}})],h.prototype,"color",void 0),(0,i.Cg)([(0,c.e)({esriPMS:"picture-marker"},{readOnly:!0})],h.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)(u.ku)],h.prototype,"url",void 0),(0,i.Cg)([(0,l.MZ)(u.k7)],h.prototype,"source",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,cast:o.cr,json:{write:!0}})],h.prototype,"height",null),(0,i.Cg)([(0,p.w)("height",["height","size"])],h.prototype,"readHeight",null),(0,i.Cg)([(0,l.MZ)({type:Number,cast:o.cr,json:{write:!0}})],h.prototype,"width",null),(0,i.Cg)([(0,l.MZ)({json:{write:!1}})],h.prototype,"size",null),h=n=(0,i.Cg)([(0,l.$K)("esri.symbols.PictureMarkerSymbol")],h)},94985(e,t,r){r.d(t,{A:()=>d});var n,i=r(5482),s=r(68197),o=r(66552),l=r(4718),a=r(91429),u=r(65851),c=r(31593),p=r(93223);const h=new o.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let d=n=class extends u.A{constructor(...e){super(...e),this.color=new s.A([0,0,0,.25]),this.outline=new c.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const n={};return e&&(n.style=e),t&&(n.outline=t),r&&(n.color=r),n}clone(){return new n({color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,i.Cg)([(0,a.MZ)({type:s.A})],d.prototype,"color",void 0),(0,i.Cg)([(0,a.MZ)()],d.prototype,"outline",void 0),(0,i.Cg)([(0,p.e)({esriSFS:"simple-fill"},{readOnly:!0})],d.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:h.apiValues,json:{read:h.read,write:h.write}})],d.prototype,"style",void 0),d=n=(0,i.Cg)([(0,a.$K)("esri.symbols.SimpleFillSymbol")],d)},31593(e,t,r){r.d(t,{A:()=>v});var n=r(5482),i=r(66552),s=r(4718),o=r(90629),l=r(91429),a=r(20378),u=r(93223);let c=class extends a.A{constructor(e){super(e),this.type="simple-line"}get width(){return this._get("width")??.75}set width(e){this._set("width",e)}hash(){return`${this.type}.${this.width}`}};(0,n.Cg)([(0,u.e)({esriSLS:"simple-line"},{readOnly:!0})],c.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,cast:o.cr,json:{write:!0}})],c.prototype,"width",null),c=(0,n.Cg)([(0,l.$K)("esri.symbols.LineSymbol")],c);var p,h=r(68197),d=r(25482),f=r(83213),y=r(43937),g=r(36005);let m=p=class extends d.o{constructor(e){super(e),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(e,t,r,n){t[r]="web-map"===n?.origin?"arrow":e}set color(e){this._set("color",e)}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}writeColor(e,t,r,n){"web-map"===n?.origin||(t[r]=e)}clone(){return new p({color:(0,s.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,n.Cg)([(0,l.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],m.prototype,"placement",void 0),(0,n.Cg)([(0,u.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,l.MZ)({json:{origins:{"web-map":{write:!1}}}})],m.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:f.z})],m.prototype,"style",void 0),(0,n.Cg)([(0,y.K)("style")],m.prototype,"writeStyle",null),(0,n.Cg)([(0,l.MZ)({type:h.A,value:null,json:{write:{allowNull:!0}}})],m.prototype,"color",null),(0,n.Cg)([(0,g.w)("color")],m.prototype,"readColor",null),(0,n.Cg)([(0,y.K)("color")],m.prototype,"writeColor",null),m=p=(0,n.Cg)([(0,l.$K)("esri.symbols.LineSymbolMarker")],m);const w=m;var S;const b=new i.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let v=S=class extends c{constructor(...e){super(...e),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(e,t,r,n,i,s){if(e&&"string"!=typeof e)return e;const l={};return null!=e&&(l.style=e),null!=t&&(l.color=t),null!=r&&(l.width=(0,o.cr)(r)),null!=n&&(l.cap=n),null!=i&&(l.join=i),null!=s&&(l.miterLimit=(0,o.cr)(s)),l}clone(){return new S({color:(0,s.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,n.Cg)([(0,u.e)({esriSLS:"simple-line"},{readOnly:!0})],v.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:b.apiValues,json:{read:b.read,write:b.write}})],v.prototype,"style",void 0),(0,n.Cg)([(0,l.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&null==r?.origin})}}})],v.prototype,"cap",void 0),(0,n.Cg)([(0,l.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&null==r?.origin})}}})],v.prototype,"join",void 0),(0,n.Cg)([(0,l.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],v.prototype,"marker",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{read:!1,write:!1}})],v.prototype,"miterLimit",void 0),v=S=(0,n.Cg)([(0,l.$K)("esri.symbols.SimpleLineSymbol")],v)},53930(e,t,r){r.d(t,{A:()=>y});var n,i=r(5482),s=r(68197),o=r(66552),l=r(4718),a=r(90629),u=r(91429),c=r(89420),p=r(31593),h=r(43937),d=r(93223);const f=new o.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let y=n=class extends c.A{constructor(...e){super(...e),this.color=new s.A([255,255,255,.25]),this.type="simple-marker",this.style="circle",this.outline=new p.A}normalizeCtorArgs(e,t,r,n){if(e&&"string"!=typeof e)return e;const i={};return e&&(i.style=e),null!=t&&(i.size=(0,a.cr)(t)),r&&(i.outline=r),n&&(i.color=n),i}writeColor(e,t){e&&"x"!==this.style&&"cross"!==this.style&&(t.color=e.toJSON()),null===e&&(t.color=null)}get size(){return this._get("size")??12}set size(e){this._set("size",e)}set path(e){this.style="path",this._set("path",e)}clone(){return new n({angle:this.angle,color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,i.Cg)([(0,u.MZ)({type:s.A})],y.prototype,"color",void 0),(0,i.Cg)([(0,h.K)("color")],y.prototype,"writeColor",null),(0,i.Cg)([(0,d.e)({esriSMS:"simple-marker"},{readOnly:!0})],y.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)()],y.prototype,"size",null),(0,i.Cg)([(0,u.MZ)({type:f.apiValues,json:{read:f.read,write:f.write}})],y.prototype,"style",void 0),(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],y.prototype,"path",null),(0,i.Cg)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":p.A}},json:{default:null,write:!0}})],y.prototype,"outline",void 0),y=n=(0,i.Cg)([(0,u.$K)("esri.symbols.SimpleMarkerSymbol")],y)},20378(e,t,r){r.d(t,{A:()=>p});var n=r(5482),i=r(68197),s=r(66552),o=r(25482),l=r(91429),a=r(36005);const u=new s.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let c=0,p=class extends o.o{constructor(e){super(e),this.id="sym"+c++,this.type=null,this.color=new i.A([0,0,0,1])}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,n.Cg)([(0,l.MZ)({type:u.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:u.write,isRequired:!0}}})],p.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({type:i.A,json:{write:{allowNull:!0}}})],p.prototype,"color",void 0),(0,n.Cg)([(0,a.w)("color")],p.prototype,"readColor",null),p=(0,n.Cg)([(0,l.$K)("esri.symbols.Symbol")],p)},83213(e,t,r){r.d(t,{x:()=>n,z:()=>i});const n=["begin","end","begin-end"],i=["arrow","circle","square","diamond","cross","x"]},77040(e,t,r){r.d(t,{k7:()=>l,ku:()=>o});var n=r(84952),i=r(97159);function s(e,t){if(!(0,n.oP)(e)){const r=function(e){if(!e)return null;const{origin:t,layer:r}=e;if("service"!==t&&"portal-item"!==t)return null;const n=r?.type;return"feature"===n||"stream"===n?r.parsedUrl?.path:"map-image"===n||"tile"===n?e.url?.path:null}(t);if(r)return(0,n.fj)(r,"images",e)}return(0,i.a)(e,t)}const o={json:{read:{source:["imageData","url"],reader:function(e,t,r){return t.imageData?(0,n.Hg)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):s(t.url,r)}},write:{writer(e,t,r,s){!function(e,t,r,s){if((0,n.DB)(e)){const o=(0,n.r$)(e);if(!o)return;t.contentType=o.mediaType,t.imageData=o.data,r&&r.imageData===t.imageData&&r.url&&(0,i.w)(r.url,t,"url",s)}else(0,i.w)(e,t,"url",s)}(e,t,this.source,s)}}}},l={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,r){const n={};return t.imageData&&(n.imageData=t.imageData),t.contentType&&(n.contentType=t.contentType),t.url&&(n.url=s(t.url,r)),n}}}}},78553(e,t,r){r.d(t,{D:()=>s,p:()=>i});var n=r(56507);function i(e){const t=(0,n.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);