@arcgis/core 5.2.0-next.136 → 5.2.0-next.138

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 (507) hide show
  1. package/analysis/LineOfSightAnalysisObserver.d.ts +12 -0
  2. package/analysis/LineOfSightAnalysisObserver.js +1 -1
  3. package/analysis/LineOfSightAnalysisTarget.d.ts +12 -0
  4. package/analysis/LineOfSightAnalysisTarget.js +1 -1
  5. package/arcade/featureset/sources/FeatureLayerParquet.js +1 -1
  6. package/arcgisGlobal.d.ts +4 -0
  7. package/assets/components/assets/icon/blockHeightMedium16.json +1 -0
  8. package/assets/components/assets/icon/blockHeightMedium24.json +1 -0
  9. package/assets/components/assets/icon/blockHeightMedium32.json +1 -0
  10. package/assets/components/assets/icon/blockHeightShort16.json +1 -0
  11. package/assets/components/assets/icon/blockHeightShort24.json +1 -0
  12. package/assets/components/assets/icon/blockHeightShort32.json +1 -0
  13. package/assets/components/assets/icon/blockHeightTall16.json +1 -0
  14. package/assets/components/assets/icon/blockHeightTall24.json +1 -0
  15. package/assets/components/assets/icon/blockHeightTall32.json +1 -0
  16. package/assets/components/assets/icon/cursorCircle16.json +1 -0
  17. package/assets/components/assets/icon/cursorCircle24.json +1 -0
  18. package/assets/components/assets/icon/cursorCircle32.json +1 -0
  19. package/assets/components/assets/icon/dictionary16.json +1 -0
  20. package/assets/components/assets/icon/dictionary24.json +1 -0
  21. package/assets/components/assets/icon/dictionary32.json +1 -0
  22. package/assets/components/assets/icon/jobDependency16.json +1 -0
  23. package/assets/components/assets/icon/jobDependency24.json +1 -0
  24. package/assets/components/assets/icon/jobDependency32.json +1 -0
  25. package/assets/components/assets/icon/referenceChip16.json +1 -0
  26. package/assets/components/assets/icon/referenceChip24.json +1 -0
  27. package/assets/components/assets/icon/referenceChip32.json +1 -0
  28. package/assets/esri/core/workers/RemoteClient.js +1 -1
  29. package/assets/esri/core/workers/chunks/{4e6f95d8c624d513849a.js → 05963f57cbe5a5249496.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{0b8681ca4a83e97f1f71.js → 067de1910190da228291.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{3c0fd1c6cda44e9f40ab.js → 070684943698fa43c2b4.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{bc1cb4b9a02e6c78deb7.js → 076e8d2e08ff2a013736.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{c10e040368065411506a.js → 10445313d0d57b34511b.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{d537c59b46cdaaf66034.js → 1188d0a136fffc009643.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{20af3f085f60c32c6c53.js → 178083d8ed7707b45ca2.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{f5efe3e800c6e23efcf3.js → 1819c45655c836b9a8d7.js} +1 -1
  37. package/assets/esri/core/workers/chunks/1b946714ca4a1a7359d4.js +2 -0
  38. package/assets/esri/core/workers/chunks/{d8d8b38ac8a91d9e45fc.js → 1cc744ab5eee5ee3bed8.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{05e39b4de7f62c5b22cc.js → 20f75cc777af13fa249b.js} +1 -1
  40. package/assets/esri/core/workers/chunks/2a1ec30f9ad305763f81.js +2 -0
  41. package/assets/esri/core/workers/chunks/34570e6bbf559f18c1a5.js +1 -0
  42. package/assets/esri/core/workers/chunks/{60f6d5da9480dd36e877.js → 3dddae78286d05eb10fc.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{9efd30bbd02ec0d1031b.js → 3ec3589f6e74d7cb87cf.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{0bec054fca104f3bf141.js → 3f776d9fd2ab68b21fca.js} +1 -1
  45. package/assets/esri/core/workers/chunks/402a82c77420254831bc.js +1 -0
  46. package/assets/esri/core/workers/chunks/{e2ebf0ea3af2e6907987.js → 406f24ec13eb30d43405.js} +1 -1
  47. package/assets/esri/core/workers/chunks/43fc42405167a5537039.js +1 -0
  48. package/assets/esri/core/workers/chunks/{ddedc414bb478b376221.js → 46b2d4addfc73f9183a4.js} +1 -1
  49. package/assets/esri/core/workers/chunks/498d6dfd3bb0d3490548.js +1 -0
  50. package/assets/esri/core/workers/chunks/{36ef86701883a20dd6f6.js → 4a640548032355e57acd.js} +1 -1
  51. package/assets/esri/core/workers/chunks/5566f14afb63065e438f.js +1 -0
  52. package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js → 590e6c70206122e4cc3c.js} +2 -2
  53. package/assets/esri/core/workers/chunks/{54860dd53a46cf4c47f3.js → 59295b99bdff4045a0e7.js} +1 -1
  54. package/assets/esri/core/workers/chunks/5aeb5e18514644fe2cf9.js +1 -0
  55. package/assets/esri/core/workers/chunks/{5da86409d70098fc6a10.js → 5b3cfe95314a75a735c1.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{a54678bfa0f1807b61cd.js → 5c855af73ee3c3e764fb.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{06da3409992bb1fa85b0.js → 5e90c1b49f2b7e21d05a.js} +39 -31
  58. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +1 -0
  59. package/assets/esri/core/workers/chunks/{30f808cac8a34f95ea6e.js → 6079d27f4ab319fb8f0c.js} +1 -1
  60. package/assets/esri/core/workers/chunks/66c2a28a851130b87c04.js +1 -0
  61. package/assets/esri/core/workers/chunks/{dac90b3631f7f7158f68.js → 67f15538c51838201fc7.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js → 68d8ae42ab71d01a70a5.js} +2 -2
  63. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +1 -0
  64. package/assets/esri/core/workers/chunks/{864e7030c4ddbfcf0114.js → 6ccf9535013fe672c93b.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{ba7f0cf7e495d3ec2d55.js → 6e62581d933e7298d1f6.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{83b5dd4029e00abd80bf.js → 700b1d5bc67b7e1b3ff3.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{f9fea72cc222a30ef2f9.js → 72399062767abdfb0bee.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{2a7fbfd77002a24bf737.js → 747461bb6a1bc2f0a64d.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{c333f6ed42985bb2b11f.js → 7851aef196eea5d6c94e.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{f0b6bd6fab5320c3082f.js → 7a05b18f655c1167ce0a.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{04296b75d0f81fbd1bb5.js → 864194927d05ebc4cc31.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{3c4a13a9f0b305394a26.js → 876f7633c15f1e31078d.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{62298dba3f6cbdc3f4ae.js → 879b2f0ff1977bca9376.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{b547b3bce729c9dac90d.js → 898359be6996fd9763b8.js} +1 -1
  75. package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +1 -0
  76. package/assets/esri/core/workers/chunks/8dc1c3042267618fd710.js +2 -0
  77. package/assets/esri/core/workers/chunks/{625f02db93d7fbf175ca.js → 9001e9a1e81bce175ddd.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{9ffa6c8d93d3443834c6.js → 912080c90b5cc2e817cf.js} +1 -1
  79. package/assets/esri/core/workers/chunks/96c50a0dda0f1503ef92.js +2 -0
  80. package/assets/esri/core/workers/chunks/{13e4379441499599c3b5.js → 9cbde13e536676767900.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{408db4f32850b77264ae.js → 9cd3fcb5fca6f9dbbcd8.js} +1 -1
  82. package/assets/esri/core/workers/chunks/a054da6cbd8ee4774a57.js +1 -0
  83. package/assets/esri/core/workers/chunks/a05790444115e4cf1bcc.js +1 -0
  84. package/assets/esri/core/workers/chunks/{d1f2685782b423ef87a6.js → a556dd4e9e6d35e33a2c.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{00d576d355599c88931e.js → bc38def1983089514e4b.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{0725e515f3004bdd5c56.js → ca2adcbcf44454484fd5.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{f3507b9e831ffd7a6bf8.js → cca8bd07bcd1d267a2e8.js} +1 -1
  88. package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +1 -0
  89. package/assets/esri/core/workers/chunks/{1d6b2a64f4e40e5cc13d.js → d201fbf3ceff946d2bd6.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{4439078780d9ba49fd26.js → d51bb11baadc741c46bc.js} +1 -1
  91. package/assets/esri/core/workers/chunks/db1ab9b9c8bf5c7635d3.js +1 -0
  92. package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +1 -0
  93. package/assets/esri/core/workers/chunks/e630f3c56c077cb2bd8e.js +1 -0
  94. package/assets/esri/core/workers/chunks/e81173724e8de8c1e65b.js +1 -0
  95. package/assets/esri/core/workers/chunks/{2025288bed125594ceda.js → f6e62d2d279a328cbed7.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{47c19778fcee7154ca38.js → f8bc474434fd365ab174.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{9a20dc26cb9c7b2087cf.js → f95a1f878c9c1146180e.js} +1 -1
  98. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
  99. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
  100. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
  101. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
  102. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
  103. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
  104. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
  105. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
  106. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  107. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
  108. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
  109. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
  110. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
  111. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
  112. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
  113. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
  114. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
  115. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
  116. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
  117. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
  118. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
  119. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
  120. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
  121. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
  122. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
  123. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
  124. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
  125. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
  126. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
  127. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
  128. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
  129. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
  130. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
  131. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
  132. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
  133. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
  134. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
  135. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
  136. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
  137. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
  138. package/assets/esri/widgets/FeatureForm/t9n/messages.ar.json +1 -1
  139. package/assets/esri/widgets/FeatureForm/t9n/messages.bg.json +1 -1
  140. package/assets/esri/widgets/FeatureForm/t9n/messages.bs.json +1 -1
  141. package/assets/esri/widgets/FeatureForm/t9n/messages.ca.json +1 -1
  142. package/assets/esri/widgets/FeatureForm/t9n/messages.cs.json +1 -1
  143. package/assets/esri/widgets/FeatureForm/t9n/messages.da.json +1 -1
  144. package/assets/esri/widgets/FeatureForm/t9n/messages.de.json +1 -1
  145. package/assets/esri/widgets/FeatureForm/t9n/messages.el.json +1 -1
  146. package/assets/esri/widgets/FeatureForm/t9n/messages.es.json +1 -1
  147. package/assets/esri/widgets/FeatureForm/t9n/messages.et.json +1 -1
  148. package/assets/esri/widgets/FeatureForm/t9n/messages.fi.json +1 -1
  149. package/assets/esri/widgets/FeatureForm/t9n/messages.fr.json +1 -1
  150. package/assets/esri/widgets/FeatureForm/t9n/messages.he.json +1 -1
  151. package/assets/esri/widgets/FeatureForm/t9n/messages.hr.json +1 -1
  152. package/assets/esri/widgets/FeatureForm/t9n/messages.hu.json +1 -1
  153. package/assets/esri/widgets/FeatureForm/t9n/messages.id.json +1 -1
  154. package/assets/esri/widgets/FeatureForm/t9n/messages.it.json +1 -1
  155. package/assets/esri/widgets/FeatureForm/t9n/messages.ja.json +1 -1
  156. package/assets/esri/widgets/FeatureForm/t9n/messages.ko.json +1 -1
  157. package/assets/esri/widgets/FeatureForm/t9n/messages.lt.json +1 -1
  158. package/assets/esri/widgets/FeatureForm/t9n/messages.lv.json +1 -1
  159. package/assets/esri/widgets/FeatureForm/t9n/messages.nl.json +1 -1
  160. package/assets/esri/widgets/FeatureForm/t9n/messages.no.json +1 -1
  161. package/assets/esri/widgets/FeatureForm/t9n/messages.pl.json +1 -1
  162. package/assets/esri/widgets/FeatureForm/t9n/messages.pt-BR.json +1 -1
  163. package/assets/esri/widgets/FeatureForm/t9n/messages.pt-PT.json +1 -1
  164. package/assets/esri/widgets/FeatureForm/t9n/messages.ro.json +1 -1
  165. package/assets/esri/widgets/FeatureForm/t9n/messages.ru.json +1 -1
  166. package/assets/esri/widgets/FeatureForm/t9n/messages.sk.json +1 -1
  167. package/assets/esri/widgets/FeatureForm/t9n/messages.sl.json +1 -1
  168. package/assets/esri/widgets/FeatureForm/t9n/messages.sr.json +1 -1
  169. package/assets/esri/widgets/FeatureForm/t9n/messages.sv.json +1 -1
  170. package/assets/esri/widgets/FeatureForm/t9n/messages.th.json +1 -1
  171. package/assets/esri/widgets/FeatureForm/t9n/messages.tr.json +1 -1
  172. package/assets/esri/widgets/FeatureForm/t9n/messages.uk.json +1 -1
  173. package/assets/esri/widgets/FeatureForm/t9n/messages.vi.json +1 -1
  174. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-CN.json +1 -1
  175. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-HK.json +1 -1
  176. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-TW.json +1 -1
  177. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ar.json +1 -1
  178. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bg.json +1 -1
  179. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bs.json +1 -1
  180. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ca.json +1 -1
  181. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.cs.json +1 -1
  182. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.da.json +1 -1
  183. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.de.json +1 -1
  184. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.el.json +1 -1
  185. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.en.json +1 -1
  186. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.es.json +1 -1
  187. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.et.json +1 -1
  188. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fi.json +1 -1
  189. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fr.json +1 -1
  190. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.he.json +1 -1
  191. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hr.json +1 -1
  192. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hu.json +1 -1
  193. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.id.json +1 -1
  194. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.it.json +1 -1
  195. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ja.json +1 -1
  196. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ko.json +1 -1
  197. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lt.json +1 -1
  198. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lv.json +1 -1
  199. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.nl.json +1 -1
  200. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.no.json +1 -1
  201. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pl.json +1 -1
  202. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-BR.json +1 -1
  203. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-PT.json +1 -1
  204. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ro.json +1 -1
  205. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ru.json +1 -1
  206. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sk.json +1 -1
  207. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sl.json +1 -1
  208. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sr.json +1 -1
  209. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sv.json +1 -1
  210. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.th.json +1 -1
  211. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.tr.json +1 -1
  212. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.uk.json +1 -1
  213. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.vi.json +1 -1
  214. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-CN.json +1 -1
  215. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-HK.json +1 -1
  216. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-TW.json +1 -1
  217. package/chunks/Bufferer-CclWhXVb.js +1 -1
  218. package/chunks/Component.glsl.js +3 -3
  219. package/chunks/DefaultMaterial.glsl.js +2 -2
  220. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  221. package/chunks/Envelope.js +1 -1
  222. package/chunks/Envelope2D.js +1 -1
  223. package/chunks/FocusArea.glsl.js +8 -10
  224. package/chunks/GaussianSplat.glsl.js +2 -2
  225. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  226. package/chunks/GeodeticUtils.js +1 -1
  227. package/chunks/Geometry.js +1 -1
  228. package/chunks/GeometryCleaner-CIE8Wfmb.js +1 -1
  229. package/chunks/GlobalIllumination.glsl.js +3 -3
  230. package/chunks/LineMarker.glsl.js +35 -42
  231. package/chunks/MultiPathImpl.js +1 -1
  232. package/chunks/OperatorAffineTransform.js +1 -1
  233. package/chunks/OperatorClip.js +1 -1
  234. package/chunks/OperatorDensify.js +1 -1
  235. package/chunks/OperatorDistance.js +1 -1
  236. package/chunks/OperatorGeneralize.js +1 -1
  237. package/chunks/OperatorGeodesicBuffer.js +1 -1
  238. package/chunks/OperatorGeodeticArea.js +1 -1
  239. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  240. package/chunks/OperatorGeodeticDistance.js +1 -1
  241. package/chunks/OperatorGeodeticLength.js +1 -1
  242. package/chunks/OperatorGraphicBuffer.js +1 -1
  243. package/chunks/OperatorIntegrate.js +1 -1
  244. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  245. package/chunks/OperatorProximity.js +1 -1
  246. package/chunks/OperatorProximityGeodesic.js +1 -1
  247. package/chunks/OperatorShapePreservingLength.js +1 -1
  248. package/chunks/OperatorShapePreservingProject.js +1 -1
  249. package/chunks/OperatorSimplifyOGC.js +1 -1
  250. package/chunks/Path.glsl.js +2 -2
  251. package/chunks/Point2D.js +1 -1
  252. package/chunks/RealisticTree.glsl.js +2 -2
  253. package/chunks/RibbonLine.glsl.js +51 -57
  254. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  255. package/chunks/Terrain.glsl.js +2 -2
  256. package/chunks/Transformation2D.js +1 -1
  257. package/chunks/UnitFactory.js +1 -1
  258. package/config.js +1 -1
  259. package/core/workers/RemoteClient.js +1 -1
  260. package/core/workers/workerFactory.js +1 -1
  261. package/editing/fieldUtils.d.ts +12 -0
  262. package/editing/sharedTemplates/templateDefinitions/TemplateDefinitionBase.js +1 -1
  263. package/geometry/operators/extendOperator.js +1 -1
  264. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  265. package/geometry/operators/gx/operatorBoundary.js +1 -1
  266. package/geometry/operators/gx/operatorBuffer.js +1 -1
  267. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  268. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  269. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  270. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  271. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  272. package/geometry/operators/gx/operatorOffset.js +1 -1
  273. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  274. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  275. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  276. package/geometry/operators/isNearOperator.js +1 -1
  277. package/geometry/operators/reshapeOperator.js +1 -1
  278. package/geometry/operators/support/jsonConverter.js +1 -1
  279. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  280. package/geometry/support/ellipseUtils.js +2 -0
  281. package/interfaces.d.ts +15 -18
  282. package/kernel.js +1 -1
  283. package/layers/LinkChartLayer.js +1 -1
  284. package/layers/ParquetLayer.js +1 -1
  285. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  286. package/layers/list/LayerItemCollection.d.ts +1 -0
  287. package/layers/list/types.d.ts +5 -1
  288. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  289. package/layers/orientedImagery/queries.js +1 -1
  290. package/layers/support/TimeSeriesCalculation.d.ts +1 -1
  291. package/layers/support/TimeSeriesCalculation.js +1 -1
  292. package/layers/support/dataSeriesUtils.d.ts +10 -0
  293. package/layers/support/timeSeriesUtils.js +17 -6
  294. package/libs/lyr3d/Lyr3DModule.js +1 -1
  295. package/networks/UtilityNetwork.d.ts +15 -0
  296. package/networks/UtilityNetwork.js +1 -1
  297. package/package.json +4 -4
  298. package/popup/FeatureContent.d.ts +14 -1
  299. package/popup/FeatureContent.js +1 -1
  300. package/popup/FeatureContentCollection.d.ts +4 -10
  301. package/popup/FeatureContentCollection.js +1 -1
  302. package/popup/actions.js +1 -1
  303. package/popup/support/featureUtils.js +1 -1
  304. package/renderers/support/RenderingInfo.js +1 -1
  305. package/renderers/support/renderingInfoUtils.js +1 -1
  306. package/renderers/visualVariables/SizeVariable.d.ts +16 -20
  307. package/renderers/visualVariables/support/SizeStop.d.ts +6 -2
  308. package/rest/networks/support/TraceLocation.js +1 -1
  309. package/rest/networks/support/TraceResult.d.ts +7 -0
  310. package/rest/networks/support/TraceResult.js +1 -1
  311. package/smartMapping/renderers/color.js +1 -1
  312. package/smartMapping/renderers/opacity.js +1 -1
  313. package/smartMapping/renderers/size.js +1 -1
  314. package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
  315. package/smartMapping/statistics/histogramForTimeSeries.d.ts +11 -0
  316. package/smartMapping/statistics/histogramForTimeSeries.js +2 -0
  317. package/smartMapping/statistics/summaryStatisticsForTimeSeries.d.ts +11 -0
  318. package/smartMapping/statistics/summaryStatisticsForTimeSeries.js +2 -0
  319. package/smartMapping/statistics/support/timeSeriesUtils.js +24 -0
  320. package/smartMapping/statistics/types.d.ts +50 -0
  321. package/support/tests/serviceMockDependencies.js +1 -1
  322. package/support/tests/setupServiceMocksMesh.js +1 -1
  323. package/symbols/cim/CIMPlacements.js +1 -1
  324. package/symbols/cim/callouts/calloutAnalysisUtils.js +1 -1
  325. package/symbols/cim/callouts/effects/BackgroundCallout.js +1 -1
  326. package/symbols/cim/callouts/effects/BalloonCallout.js +1 -1
  327. package/symbols/cim/callouts/effects/PointSymbolCallout.js +1 -1
  328. package/symbols/cim/callouts/effects/calloutUtils.js +1 -1
  329. package/symbols/cim/cimAnalyzer.js +1 -1
  330. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  331. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  332. package/views/2d/engine/vectorTiles/decluttering/CollisionJob.js +1 -1
  333. package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
  334. package/views/2d/engine/vectorTiles/decluttering/jobsUtil.js +1 -1
  335. package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
  336. package/views/2d/engine/webgl/definitions.js +1 -1
  337. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  338. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  339. package/views/2d/engine/webgl/shaderGraph/techniques/animated/ComputedAnimatedParams.js +1 -1
  340. package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
  341. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/CalloutMeshWriterPolicy.js +1 -1
  342. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  343. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextParams.js +1 -1
  344. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  345. package/views/2d/layers/SketchLayerView2D.js +1 -1
  346. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  347. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  348. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  349. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  350. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  351. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  352. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  353. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  354. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  355. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  356. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  357. package/views/2d/layers/features/layerAdapters/labelingUtils.js +1 -1
  358. package/views/2d/layers/features/schema/ExceedsLimitCache.js +1 -1
  359. package/views/2d/layers/features/schema/TimeSchema.js +2 -0
  360. package/views/2d/layers/features/schema/processor/LabelMatcherSchema.js +1 -1
  361. package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
  362. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  363. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  364. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  365. package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
  366. package/views/2d/layers/support/vectorTileDebugUtils.js +1 -1
  367. package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
  368. package/views/2d/types.d.ts +2 -1
  369. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  370. package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
  371. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  372. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +24 -0
  373. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  374. package/views/3d/analysis/Viewshed/ViewshedObserverManipulatedObject3D.js +1 -1
  375. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  376. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  377. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  378. package/views/3d/camera/constraintUtils.js +1 -1
  379. package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
  380. package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
  381. package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
  382. package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
  383. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  384. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  385. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  386. package/views/3d/state/controllers/GroundNavigationController.js +1 -1
  387. package/views/3d/state/controllers/momentum/GroundNavigationMomentumController.js +1 -1
  388. package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
  389. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  390. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  391. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  392. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +16 -8
  393. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +5 -1
  394. package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +12 -0
  395. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
  396. package/views/3d/webgl-engine/effects/focusArea/FocusArea.glsl.js +1 -1
  397. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  398. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  399. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  400. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  401. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  402. package/views/SelectionManager.d.ts +3 -3
  403. package/views/draw/support/Reshape.js +1 -1
  404. package/views/interactive/options/bindViewToolOptions.js +1 -1
  405. package/views/interactive/sketch/SketchLabelOptions.d.ts +3 -0
  406. package/views/interactive/sketch/SketchLabelOptions.js +1 -1
  407. package/views/interactive/sketch/SketchTooltipOptions.d.ts +3 -0
  408. package/views/interactive/sketch/SketchTooltipOptions.js +1 -1
  409. package/views/interactive/sketch/SketchValueOptions.d.ts +3 -0
  410. package/views/interactive/sketch/SketchValueOptions.js +1 -1
  411. package/views/interactive/snapping/SnappingOptions.d.ts +3 -0
  412. package/views/interactive/snapping/SnappingOptions.js +1 -1
  413. package/views/interactive/snapping/snappingUtils.js +1 -1
  414. package/views/interactive/tooltip/fields/parsingAndFormattingUtils.js +1 -1
  415. package/views/layers/SketchLayerView.d.ts +34 -0
  416. package/views/layers/SketchLayerView.js +2 -0
  417. package/views/layers/types.d.ts +3 -2
  418. package/views/selection/types.d.ts +15 -4
  419. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  420. package/widgets/BasemapGallery.js +1 -1
  421. package/widgets/Bookmarks/BookmarksViewModel.d.ts +4 -0
  422. package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +5 -1
  423. package/widgets/Bookmarks/types.d.ts +2 -0
  424. package/widgets/Editor/EditorViewModel.d.ts +31 -30
  425. package/widgets/Editor/EditorViewModel.js +1 -1
  426. package/widgets/Editor/components/Settings.js +1 -1
  427. package/widgets/Editor/types.d.ts +44 -0
  428. package/widgets/Editor.d.ts +30 -27
  429. package/widgets/Editor.js +1 -1
  430. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -1
  431. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  432. package/widgets/FeatureTable/support/FeatureStore.d.ts +1 -1
  433. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  434. package/widgets/FeatureTable.d.ts +6 -0
  435. package/widgets/FeatureTable.js +1 -1
  436. package/widgets/Histogram/types.d.ts +10 -2
  437. package/widgets/HistogramRangeSlider/types.d.ts +4 -1
  438. package/widgets/LayerList/LayerListViewModel.d.ts +2 -1
  439. package/widgets/Legend/LegendViewModel.d.ts +2 -0
  440. package/widgets/Legend/styles/card/CardView.d.ts +2 -0
  441. package/widgets/Legend/styles/classic/ClassicView.d.ts +4 -1
  442. package/widgets/Legend.d.ts +3 -0
  443. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +7 -0
  444. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  445. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  446. package/widgets/OrientedImageryViewer/support/VideoFeatureCache.js +2 -0
  447. package/widgets/OrientedImageryViewer/types.d.ts +9 -0
  448. package/widgets/OrientedImageryViewer.d.ts +7 -0
  449. package/widgets/OrientedImageryViewer.js +2 -2
  450. package/widgets/PanoramicVideoViewer.js +1 -1
  451. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  452. package/widgets/ScaleRangeSlider/types.d.ts +9 -2
  453. package/widgets/Sketch/SketchViewModel.d.ts +32 -1
  454. package/widgets/Sketch/SketchViewModel.js +1 -1
  455. package/widgets/Sketch.d.ts +27 -1
  456. package/widgets/Sketch.js +1 -1
  457. package/widgets/Slider/types.d.ts +58 -13
  458. package/widgets/Slider.d.ts +6 -0
  459. package/widgets/smartMapping/BinaryColorSizeSlider/BinaryColorSizeSliderViewModel.d.ts +2 -0
  460. package/widgets/smartMapping/ClassedColorSlider/ClassedColorSliderViewModel.d.ts +2 -0
  461. package/widgets/smartMapping/ClassedSizeSlider/ClassedSizeSliderViewModel.d.ts +2 -0
  462. package/widgets/smartMapping/ColorSizeSlider/ColorSizeSliderViewModel.d.ts +2 -0
  463. package/widgets/smartMapping/ColorSlider/ColorSliderViewModel.d.ts +2 -0
  464. package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.d.ts +2 -0
  465. package/widgets/smartMapping/OpacitySlider/OpacitySliderViewModel.d.ts +2 -0
  466. package/widgets/smartMapping/SizeSlider/SizeSliderViewModel.d.ts +3 -0
  467. package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.d.ts +2 -0
  468. package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +2 -0
  469. package/widgets/smartMapping/types.d.ts +30 -7
  470. package/widgets/support/FilterBuilder/FilterBuilderViewModel.d.ts +21 -11
  471. package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
  472. package/widgets/support/FilterBuilder/types.d.ts +28 -0
  473. package/widgets/support/FilterBuilder.js +1 -1
  474. package/widgets/support/FilterCondition/FilterConditionViewModel.d.ts +24 -0
  475. package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
  476. package/widgets/support/FilterCondition/types.d.ts +16 -1
  477. package/widgets/support/FilterCondition.js +1 -1
  478. package/widgets/support/SnappingControls/snappingLayerListUtils.js +1 -1
  479. package/widgets/support/iconUtils.js +1 -1
  480. package/assets/esri/core/workers/chunks/0606ab6fdfc1dfea3856.js +0 -1
  481. package/assets/esri/core/workers/chunks/078dcd17f46403d44b24.js +0 -1
  482. package/assets/esri/core/workers/chunks/1289204f8ca96032c17a.js +0 -1
  483. package/assets/esri/core/workers/chunks/12b5a645c0987a0efe54.js +0 -2
  484. package/assets/esri/core/workers/chunks/152fe3d6ad7aebbd23d1.js +0 -1
  485. package/assets/esri/core/workers/chunks/17b938ba49fb1e7ab8c4.js +0 -1
  486. package/assets/esri/core/workers/chunks/1dbb3e25e005a8220779.js +0 -2
  487. package/assets/esri/core/workers/chunks/3d6fef25af7e1a51e1bd.js +0 -1
  488. package/assets/esri/core/workers/chunks/3ef367c9b7bf1588307d.js +0 -1
  489. package/assets/esri/core/workers/chunks/5f4feca26102088ea565.js +0 -1
  490. package/assets/esri/core/workers/chunks/74211d096cc3296e0968.js +0 -1
  491. package/assets/esri/core/workers/chunks/7926faab76a721a2e1c4.js +0 -1
  492. package/assets/esri/core/workers/chunks/ad28486bc6afaa346de5.js +0 -1
  493. package/assets/esri/core/workers/chunks/ad29c729e90b5866713c.js +0 -1
  494. package/assets/esri/core/workers/chunks/b72a2514aa4cc4ae7d1b.js +0 -1
  495. package/assets/esri/core/workers/chunks/bb51cf52b8ea8283f4f8.js +0 -1
  496. package/assets/esri/core/workers/chunks/be761749f8d77fbd9df5.js +0 -1
  497. package/assets/esri/core/workers/chunks/dbfd25aa0d19aed5890c.js +0 -1
  498. package/assets/esri/core/workers/chunks/de28a86775235bd5d3c4.js +0 -2
  499. package/assets/esri/core/workers/chunks/f6cfc901267a229de7a1.js +0 -2
  500. package/assets/esri/core/workers/chunks/fb147097149a89e671ff.js +0 -1
  501. package/support/revision.js +0 -2
  502. /package/assets/esri/core/workers/chunks/{1dbb3e25e005a8220779.js.LICENSE.txt → 1b946714ca4a1a7359d4.js.LICENSE.txt} +0 -0
  503. /package/assets/esri/core/workers/chunks/{f6cfc901267a229de7a1.js.LICENSE.txt → 2a1ec30f9ad305763f81.js.LICENSE.txt} +0 -0
  504. /package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js.LICENSE.txt → 590e6c70206122e4cc3c.js.LICENSE.txt} +0 -0
  505. /package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js.LICENSE.txt → 68d8ae42ab71d01a70a5.js.LICENSE.txt} +0 -0
  506. /package/assets/esri/core/workers/chunks/{de28a86775235bd5d3c4.js.LICENSE.txt → 8dc1c3042267618fd710.js.LICENSE.txt} +0 -0
  507. /package/assets/esri/core/workers/chunks/{12b5a645c0987a0efe54.js.LICENSE.txt → 96c50a0dda0f1503ef92.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7772],{56512(e,t,i){function r(e){let t,i,r=[],s=!1;return function(...n){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}(n,r)||(i=e.apply(this,n),t=this,r=n,s=!0),i}}i.d(t,{B:()=>r})},74379(e,t,i){i.d(t,{t:()=>s});const r=Symbol("isImageryGraphicOrigin");function s(e){return!!e&&r in e}i.d(t,["V",0,r])},87772(e,t,i){i.r(t),i.d(t,{default:()=>bi});var r,s=i(32198),n=i(37838),a=i(69540),o=i(53966),l=i(25728),u=i(17676),p=i(91429),m=i(41910),c=i(55156),d=i(60950),y=i(89808),h=i(99959),g=i(74379);class f extends h.A{get[(r=g.V,d.ym)](){return this.layer}get[c.e](){return this.layer}get[y.Q](){return this.layer}get[m.e7](){return this.layer}constructor(e){super(),this[r]=!0,this.type="imagery",this.layer=e}get id(){return this.layer.id}}var w=i(4146),v=i(52106),R=i(56507),C=i(49186),b=i(4718),S=i(563),x=i(36708),I=i(84952),M=i(78888),F=i(62788),A=i(5443),D=i(39829),T=i(16930),P=i(21325),j=i(4366),N=i(96381),O=i(47520),Z=i(34251),_=i(10873),V=i(45617),q=i(25482),E=i(94778);const J={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var G=i(22796),$=i(67369),z=i(70274),L=i(48940);const U=new Set(["u1","u2","u4","u8","s8","u16","s16"]),B={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},K=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function k(e){return K.has(e.type)}function Q(e,t){if(!e||!t)return(0,b.o8)(e||t);let i=(0,b.o8)(e);if(i.functionDefinition&&t.rasterFunctionDefinition){let e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),H(i.functionDefinition.arguments,t),i.rasterFunctionDefinition=i.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&(X(i.functionArguments).Raster=t);return i}function H(e,t){for(let i in e)"raster"===i.toLowerCase()&&("RasterFunctionVariable"===e[i].type?(e[i]=t.rasterFunctionDefinition,e[i].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[i].type&&H(e[i].arguments,t))}function W(e){let t=(0,b.o8)(J[e.functionName+"Function"]),i=e.functionArguments;for(let e in i)"raster"===e.toLowerCase()?(t.arguments[e]=W(i[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=re(i[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=i[e];return e.outputPixelType&&t.function&&(t.function.pixelType=e.outputPixelType.toUpperCase()),t}function X(e){let t=e?.Raster??e?.raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?X(t.functionArguments):e}const Y={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function ee(e,t){let i=U.has(t)?(0,E.hP)(t):null;return i&&e.push([Math.floor(i[0]-1),0,0,0],[Math.ceil(i[1]+1),0,0,0]),e}function te(e){if(null==e)return;let{fields:t}=e;return t?.find(e=>e?.name&&"value"===e.name.toLowerCase())?.name}function ie(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find(e=>"fill"===e.type)?.material?.color:e.symbol?.color}function re(e){let t=[],i=[];return e.forEach(e=>{t.push(e[0]),i.push((0,$.vL)([...e.slice(1),255]))}),{type:"RasterColormap",values:t,colors:i}}var se=i(85675),ne=i(13868),ae=i(43937);let oe=class extends q.o{constructor(){super(...arguments),this.layer=null,this.requestRawData=!1,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,i){this.layer.version<10.3||(t[i]=e)}get bandIds(){return this.requestRawData?this.rawDataRequestBandIds:this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,i){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[i]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}get format(){let e=this.layer.renderer?.type;return this.requestRawData||"vector-field"===e||"flow"===e?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){let{layer:e}=this;return e.pixelType===e.serviceRasterInfo.pixelType?void 0:e.pixelType}writeLercVersion(e,t,i){"lerc"===this.format&&this.layer.version>=10.5&&(t[i]=e)}get version(){let e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){let e=this.layer,t=e.mosaicRule,i=e.definitionExpression;if(t?i&&i!==t.where&&(t=t.clone(),t.where=i):i&&(t=new se.A({where:i})),!t?.itemRasterFunction){let i=e.rasterFunction,r=le(i,e.rasterFunctionInfos)?i:null;r&&(t=t?t.clone():new se.A,t.itemRasterFunction=r)}return t}get rasterFunction(){let e=this.layer,{rasterFunction:t,rasterInfo:i}=e;t=le(t,e.rasterFunctionInfos)?null:t?.clone(),t&&"lerc"===this.format&&1===i?.bandCount&&i.colormap&&(t=function(e,t){let[i,r]=(0,E.hP)(t);return Q(new G.A({functionName:"Stretch",functionArguments:{StretchType:5,UseGamma:!1,Min:i,Max:r,Statistics:[[i,r,1,1]]}}),e)}(t,i.pixelType));let r=e.multidimensionalSubset?.areaOfInterest;return r&&(t=function(e,t){return Q(new G.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)}(t,r)),!this.requestRawData&&e.isRenderedFormat&&!e.pixelFilter&&"vector-field"!==e.renderer?.type&&(t=this.combineRendererWithRenderingRule(t)),t}combineRendererWithRenderingRule(e){let t=this.layer,{rasterInfo:i,renderer:r}=t;return r&&k(r)?Q(function(e,t){switch(t||={},e.type){case"raster-stretch":return function(e,t){let i=t.convertToRFT,r=new G.A;r.functionName="Stretch";let s=Y[z.u.toJSON(e.stretchType)],n={StretchType:s,Statistics:e.customStatistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]),DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(n.Min=e.outputMin),null!=e.outputMax&&(n.Max=e.outputMax),s===Y.standardDeviation?(n.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType="u8"):s===Y.percentClip?(n.MinPercent=e.minPercent,n.MaxPercent=e.maxPercent,r.outputPixelType="u8"):s===Y.minMax?r.outputPixelType="u8":s===Y.sigmoid&&(n.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=n,r.variableName="Raster",e.colorRamp){let s=e.colorRamp,n=new G.A;if(i)n.functionArguments={ColorRamp:(0,$.hf)(s)};else{let i=(0,$.hs)(s,!0);if(i)n.functionArguments={colorRampName:i};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){let t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach(e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm"),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,$.R8)(s)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=r,i?new G.A({rasterFunctionDefinition:W(n)}):n}return i?new G.A({rasterFunctionDefinition:W(r)}):r}(e,t);case"class-breaks":return function(e,t){let i=[],r=[],s=[],n=[],a=1e-4,{pixelType:o,rasterAttributeTable:l}=t,u=null==l?null:l.features,p=te(l);if(p&&u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach((t,i)=>{let r,s=t.symbol?.color;s?.a&&null!=t.minValue&&null!=t.maxValue&&u.forEach(a=>{null!=t.minValue&&null!=t.maxValue&&(r=a.attributes[e.field],(r>=t.minValue&&r<t.maxValue||i===e.classBreakInfos.length-1&&r>=t.minValue)&&n.push([a.attributes[p],s.r,s.g,s.b]))})});let i=o?ee(n,o):n,r=new G.A;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=i,r.variableName="Raster",t.convertToRFT?new G.A({rasterFunctionDefinition:W(r)}):r}e.classBreakInfos.forEach((e,t)=>{if(null==e.minValue||null==e.maxValue)return;let o=e.symbol&&e.symbol.color;o?.a?(0===t?i.push(e.minValue,e.maxValue+a):i.push(e.minValue+a,e.maxValue+a),r.push(t),n.push([t,o.r,o.g,o.b])):s.push(e.minValue,e.maxValue)});let m=o?ee(n,o):n,c=new G.A;c.functionName="Remap",c.functionArguments={InputRanges:i,OutputValues:r,NoDataRanges:s},c.variableName="Raster";let d=new G.A;return d.functionName="Colormap",d.functionArguments={Colormap:m,Raster:c},t.convertToRFT?new G.A({rasterFunctionDefinition:W(d)}):d}(e,t);case"unique-value":return function(e,t){let i=[],{pixelType:r,rasterAttributeTable:s}=t,n=null==s?null:s.features,a=te(s),o=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(n){if(a){let t=new Map;l.forEach(e=>{let i=e.value,r=ie(e);null!=i&&r?.a&&t.set(String(i),r.toRgb())});let r=e.field;r&&n.forEach(({attributes:e})=>{let s=String(e[r]),n=e[a],l=t.get(s);l?i.push([n,...l]):o&&i.push([n,...o])})}}else for(let e=0;e<l.length;e++){let t=l[e],r=ie(t),s=+t.value;if(r?.a){if(isNaN(s))return null;i.push([s,r.r,r.g,r.b])}}let u=r?ee(i,r):i,p=new G.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new G.A({rasterFunctionDefinition:W(p)}):p}(e,t);case"raster-colormap":return function(e,t){let i=e.extractColormap();if(!i||0===i.length)return null;let{pixelType:r}=t,s=r?ee(i,r):i,n=new G.A;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new G.A({rasterFunctionDefinition:W(n)}):n}(e,t);case"vector-field":return function(e,t){let i=new G.A;i.functionName="VectorFieldRenderer";let r,s,{dataType:n,bandNames:a}=t,o="vector-uv"===n;if(2===a?.length){let e=a.map(e=>e.toLowerCase());r=e.indexOf("magnitude"),s=e.indexOf("direction")}(-1===r||null===r)&&(r=0,s=1);let l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find(e=>"Magnitude"===e.field):new L.A;i.functionArguments={magnitudeBandID:r,directionBandID:s,isUVComponents:o,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:B[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};let m=W(i);return t.convertToRFT?G.A.fromJSON({rasterFunctionDefinition:m}):i}(e,t);case"raster-shaded-relief":return function(e,t){let i=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new G.A;let r=new G.A;r.functionName="Hillshade";let s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,a={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(a.Azimuth=e.azimuth,a.Altitude=e.altitude),3===n&&(a.PSPower=e.pixelSizePower,a.PSZFactor=e.pixelSizeFactor),r.functionArguments=a,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",i?a.ColorRamp=(0,$.hf)(e.colorRamp):a.Colormap=(0,$.R8)(e.colorRamp)),i?new G.A({rasterFunctionDefinition:W(r)}):r}(e,t);case"flow":throw Error("Unsupported rendering rule.")}}(r,{rasterAttributeTable:i.attributeTable,pixelType:i.pixelType,dataType:i.dataType,bandNames:i.bandInfos.map(({name:e})=>e),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:i.bandCount}),e):e}};function le(e,t){if(!e)return!1;let i=e.functionDefinition;if(i)return"item"===i.functionType||"item-group"===i.functionType;let r=e?.functionName?.toLowerCase(),s=r?t?.find(({name:e})=>e.toLowerCase()===r):null;return 1===s?.functionType||2===s?.functionType}(0,s.Cg)([(0,p.MZ)()],oe.prototype,"layer",void 0),(0,s.Cg)([(0,p.MZ)()],oe.prototype,"requestRawData",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"adjustAspectRatio",null),(0,s.Cg)([(0,ae.K)("adjustAspectRatio")],oe.prototype,"writeAdjustAspectRatio",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"bandIds",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"rawDataRequestBandIds",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"compression",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"compressionQuality",null),(0,s.Cg)([(0,ae.K)("compressionQuality")],oe.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"compressionTolerance",null),(0,s.Cg)([(0,ae.K)("compressionTolerance")],oe.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"format",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:{reader:ne.SZ.read},write:{writer:ne.SZ.write}}})],oe.prototype,"interpolation",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"noData",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:{reader:ne.hm.read},write:{writer:ne.hm.write}}})],oe.prototype,"noDataInterpretation",null),(0,s.Cg)([(0,p.MZ)({type:ne.e8.apiValues,json:{read:ne.e8.read,write:ne.e8.write}})],oe.prototype,"pixelType",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"lercVersion",void 0),(0,s.Cg)([(0,ae.K)("lercVersion")],oe.prototype,"writeLercVersion",null),(0,s.Cg)([(0,p.MZ)({type:Number})],oe.prototype,"version",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"mosaicRule",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0,name:"renderingRule"}})],oe.prototype,"rasterFunction",null),oe=(0,s.Cg)([(0,p.$K)("esri.layers.support.ExportImageServiceParameters")],oe);var ue=i(20437),pe=i(95466),me=i(33446),ce=i(43577),de=i(14140),ye=i(74797),he=i(87186),ge=i(12711),fe=i(85676),we=i(94359),ve=i(65864),Re=i(52039),Ce=i(2272),be=i(86738);let Se=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0}})],Se.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0,write:!0}})],Se.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Se.prototype,"objectIds",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Se.prototype,"where",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Se.prototype,"maxCount",void 0),Se=(0,s.Cg)([(0,p.$K)("esri.rest.support.FindImagesParameters")],Se);const xe=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"make",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"model",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"focalLength",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"rows",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"cols",void 0),i=(0,s.Cg)([(0,p.$K)("esri.rest.support.CameraInfoMixin")],i),i};let Ie=class extends(xe(q.o)){constructor(e){super(e),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ie.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"uri",write:!0}})],Ie.prototype,"referenceUri",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:!0}})],Ie.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,ae.K)("acquisitionDate")],Ie.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ie.prototype,"cameraID",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],Ie.prototype,"center",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],Ie.prototype,"perspectiveCenter",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ie.prototype,"orientation",void 0),Ie=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageInspectionInfo")],Ie);const Me=Ie;let Fe=class extends q.o{constructor(e){super(e),this.images=null}};var Ae;(0,s.Cg)([(0,p.MZ)({type:[Me],json:{write:!0}})],Fe.prototype,"images",void 0),Fe=(0,s.Cg)([(0,p.$K)("esri.rest.support.FindImagesResult")],Fe);let De=Ae=class extends q.o{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new Ae((0,b.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,s.Cg)([(0,p.MZ)({type:[String],json:{name:"angleName",write:!0}})],De.prototype,"angleNames",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],De.prototype,"point",void 0),(0,s.Cg)([(0,p.MZ)({type:T.A,json:{write:!0}})],De.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.MZ)({type:M.jz,json:{write:!0}})],De.prototype,"rasterId",void 0),De=Ae=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAngleParameters")],De);let Te=class extends q.o{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Te.prototype,"north",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Te.prototype,"up",void 0),(0,s.Cg)([(0,p.MZ)({type:T.A,json:{write:!0}})],Te.prototype,"spatialReference",void 0),Te=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAngleResult")],Te);var Pe=i(86211),je=i(60408),Ne=i(50498),Oe=i(66552);const Ze=new Oe.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let _e=class extends q.o{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};var Ve;(0,s.Cg)([(0,p.MZ)()],_e.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({type:Ze.apiValues,json:{read:Ze.read,write:Ze.write}})],_e.prototype,"measureOperation",void 0),(0,s.Cg)([(0,p.MZ)({type:se.A,json:{write:!0}})],_e.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],_e.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],_e.prototype,"raster",void 0),_e=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureParameters")],_e);let qe=Ve=class extends _e{constructor(e){super(e),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new Ve((0,b.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"fromGeometry",read:!0,write:!0}})],qe.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],qe.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:Ze.apiValues,json:{write:Ze.write}})],qe.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],qe.prototype,"is3D",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:Pe.Sk.read,write:Pe.Sk.write}})],qe.prototype,"linearUnit",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:Pe.dk.read,write:Pe.dk.write}})],qe.prototype,"areaUnit",void 0),qe=Ve=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAreaParameters")],qe);let Ee=class extends q.o{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Ee.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Ee.prototype,"sensorName",void 0),Ee=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureResult")],Ee);var Je=i(64108);let Ge=class extends q.o{constructor(e){super(e),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,s.Cg)([(0,p.MZ)({type:String})],Ge.prototype,"unit",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],Ge.prototype,"value",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Ge.prototype,"displayValue",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],Ge.prototype,"uncertainty",void 0),Ge=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureResultValue")],Ge);const $e=Ge;let ze=class extends $e{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:Pe.dk.read,write:Pe.dk.write}})],ze.prototype,"unit",void 0),ze=(0,s.Cg)([(0,Je.$)("esri.rest.support.ImageMeasureResultAreaValue")],ze);const Le=ze;let Ue=class extends $e{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:Pe.Sk.read,write:Pe.Sk.write}})],Ue.prototype,"unit",void 0),Ue=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageMeasureResultLengthValue")],Ue);const Be=Ue;let Ke=class extends Ee{constructor(e){super(e),this.area=null,this.perimeter=null}};(0,s.Cg)([(0,p.MZ)({type:Le,json:{read:!0,write:!0}})],Ke.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({type:Be,json:{read:!0,write:!0}})],Ke.prototype,"perimeter",void 0),Ke=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAreaResult")],Ke);let ke=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.outSpatialReference=null}};(0,s.Cg)([(0,p.MZ)({type:T.A,json:{name:"outSR",write:!0}})],ke.prototype,"outSpatialReference",void 0),ke=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageBoundaryParameters")],ke);var Qe=i(36005);let He=class extends q.o{constructor(e){super(e),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?D.A.fromJSON(e):A.A.fromJSON(e)}};var We;(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],He.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"shape",write:!0}})],He.prototype,"geometry",void 0),(0,s.Cg)([(0,Qe.w)("geometry")],He.prototype,"readGeometry",null),He=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageBoundaryResult")],He);let Xe=We=class extends _e{constructor(e){super(e),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new We((0,b.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0,write:!0}})],Xe.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,ae.K)("fromGeometry")],Xe.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0,write:!0}})],Xe.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:Ze.apiValues,json:{write:Ze.write}})],Xe.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],Xe.prototype,"is3D",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:Pe.Sk.read,write:Pe.Sk.write}})],Xe.prototype,"linearUnit",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:Pe.b$.read,write:Pe.b$.write}})],Xe.prototype,"angularUnit",void 0),Xe=We=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageDistanceParameters")],Xe);let Ye=class extends $e{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:Pe.b$.read,write:Pe.b$.write}})],Ye.prototype,"unit",void 0),Ye=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageMeasureResultAngleValue")],Ye);const et=Ye;let tt=class extends Ee{constructor(e){super(e),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,s.Cg)([(0,p.MZ)({type:Be,json:{read:!0,write:!0}})],tt.prototype,"distance",void 0),(0,s.Cg)([(0,p.MZ)({type:et,json:{read:!0,write:!0}})],tt.prototype,"azimuthAngle",void 0),(0,s.Cg)([(0,p.MZ)({type:et,json:{read:!0,write:!0}})],tt.prototype,"elevationAngle",void 0),tt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageDistanceResult")],tt);var it=i(58174),rt=i(79677),st=i(93223);let nt=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=JSON.stringify(e.toJSON()))}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{read:ve.rS,write:!0}})],nt.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],nt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],nt.prototype,"objectIds",void 0),(0,s.Cg)([(0,st.e)(it.x,{ignoreUnknown:!1,name:"spatialRel"})],nt.prototype,"spatialRelationship",void 0),(0,s.Cg)([(0,p.MZ)({type:rt.A,json:{name:"time",write:!0}})],nt.prototype,"timeExtent",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],nt.prototype,"where",void 0),nt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfoParameters")],nt);let at=class extends(xe(q.o)){constructor(e){super(e),this.id=null}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],at.prototype,"id",void 0),at=(0,s.Cg)([(0,p.$K)("esri.rest.support.CameraInfo")],at);const ot=at;let lt=class extends q.o{constructor(e){super(e),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],lt.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],lt.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:!0}})],lt.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,ae.K)("acquisitionDate")],lt.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],lt.prototype,"cameraID",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],lt.prototype,"center",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],lt.prototype,"gps",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],lt.prototype,"orientation",void 0),lt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfo")],lt);const ut=lt;let pt=class extends q.o{constructor(e){super(e),this.images=null,this.cameras=null}};var mt;(0,s.Cg)([(0,p.MZ)({type:[ut],json:{write:!0}})],pt.prototype,"images",void 0),(0,s.Cg)([(0,p.MZ)({type:[ot],json:{write:!0}})],pt.prototype,"cameras",void 0),pt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfoResult")],pt);let ct=mt=class extends _e{constructor(e){super(e),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new mt((0,b.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0}})],ct.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,ae.K)("fromGeometry")],ct.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0,write:!0}})],ct.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:Ze.apiValues,json:{write:Ze.write}})],ct.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],ct.prototype,"operationType",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:Pe.Sk.read,write:Pe.Sk.write}})],ct.prototype,"linearUnit",void 0),ct=mt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageHeightParameters")],ct);let dt=class extends Ee{constructor(e){super(e),this.height=null}};(0,s.Cg)([(0,p.MZ)({type:Be,json:{read:!0,write:!0}})],dt.prototype,"height",void 0),dt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageHeightResult")],dt);var yt,ht=i(22048);let gt=yt=class extends q.o{constructor(e){super(e),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=se.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=G.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[i]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,i){null!=e&&(t[i]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,i){null!=e&&(t[i]=JSON.stringify(e))}writeTimeExtent(e,t,i){if(null!=e){let r=null==e.start?null:e.start.getTime(),s=null==e.end?null:e.end.getTime();t[i]=null==r?null:null==s?`${r}`:`${r},${s}`}}clone(){return new yt((0,b.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{write:!0}})],gt.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],gt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:se.A,json:{write:!0}})],gt.prototype,"mosaicRule",null),(0,s.Cg)([(0,ae.K)("mosaicRule")],gt.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,p.MZ)({type:G.A,json:{write:!0,name:"renderingRule"}})],gt.prototype,"rasterFunction",null),(0,s.Cg)([(0,ae.K)("rasterFunction")],gt.prototype,"writeRasterFunction",null),(0,s.Cg)([(0,p.MZ)({type:[G.A],json:{write:!0,name:"renderingRules"}})],gt.prototype,"rasterFunctions",void 0),(0,s.Cg)([(0,ae.K)("rasterFunctions")],gt.prototype,"writeRasterFunctions",null),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],gt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,ae.K)("pixelSize")],gt.prototype,"writePixelSize",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"returnCatalogItems",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"returnPixelValues",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],gt.prototype,"maxItemCount",void 0),(0,s.Cg)([(0,p.MZ)({type:rt.A,json:{write:{target:"time"}}})],gt.prototype,"timeExtent",void 0),(0,s.Cg)([(0,ae.K)("timeExtent")],gt.prototype,"writeTimeExtent",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],gt.prototype,"raster",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],gt.prototype,"viewId",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"processAsMultidimensional",void 0),gt=yt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageIdentifyParameters")],gt);var ft=i(22671);let wt=class extends q.o{constructor(e){super(e),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};var vt;(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"catalogItemVisibilities",void 0),(0,s.Cg)([(0,p.MZ)({type:ft.A,json:{write:!0}})],wt.prototype,"catalogItems",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],wt.prototype,"location",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"objectId",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"processedValues",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"properties",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"value",void 0),wt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageIdentifyResult")],wt);let Rt=vt=class extends q.o{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,i){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new vt({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};(0,s.Cg)([(0,p.MZ)({type:[be.A],json:{write:!0}})],Rt.prototype,"geometries",void 0),(0,s.Cg)([(0,ae.K)("geometries")],Rt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:M.jz,json:{write:!0}})],Rt.prototype,"rasterId",void 0),Rt=vt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePixelLocationParameters")],Rt);let Ct=class extends q.o{constructor(e){super(e),this.geometries=null}};var bt;(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ct.prototype,"geometries",void 0),Ct=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePixelLocationResult")],Ct);let St=bt=class extends _e{constructor(e){super(e),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=e.toJSON())}get measureOperation(){let{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new bt((0,b.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"fromGeometry",read:ve.rS}})],St.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],St.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:Ze.apiValues,json:{read:Ze.read,write:Ze.write}})],St.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],St.prototype,"is3D",void 0),St=bt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePointParameters")],St);let xt=class extends Ee{constructor(e){super(e),this.point=null}};(0,s.Cg)([(0,p.MZ)({type:be.A,json:{name:"point.value",read:!0,write:!0}})],xt.prototype,"point",void 0),xt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePointResult")],xt);var It=i(34606),Mt=i(29127);let Ft=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,i){t.geometries=e?.length?{geometryType:(0,je.$B)(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};(0,s.Cg)([(0,p.MZ)({types:[Ne.yR]})],Ft.prototype,"geometries",void 0),(0,s.Cg)([(0,ae.K)("geometries")],Ft.prototype,"writeGeometries",null),(0,s.Cg)([(0,p.MZ)({type:[M.jz],json:{write:!0}})],Ft.prototype,"rasterIds",void 0),(0,s.Cg)([(0,p.MZ)({type:T.A,json:{name:"outSR",write:!0}})],Ft.prototype,"outSpatialReference",void 0),Ft=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageToMapMultirayParameters")],Ft);let At=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{read:ve.rS,write:!0}})],At.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],At.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],At.prototype,"rasterId",void 0),(0,s.Cg)([(0,p.MZ)({type:T.A,json:{name:"outSR",write:!0}})],At.prototype,"outSpatialReference",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.DOff",write:!0}})],At.prototype,"depthOffset",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.Adjust",write:!0}})],At.prototype,"adjust",void 0),At=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageToMapParameters")],At);let Dt=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};(0,s.Cg)([(0,p.MZ)({type:String,json:{name:"uri",write:!0}})],Dt.prototype,"referenceUri",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Dt.prototype,"rasterId",void 0),Dt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageUrlParameters")],Dt);let Tt=class extends q.o{constructor(e){super(e),this.url=null}};(0,s.Cg)([(0,p.MZ)({json:{name:"imageURL",write:!0}})],Tt.prototype,"url",void 0),Tt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageUrlResult")],Tt);const Pt=new Oe.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0});let jt=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,i){e?.length&&(t.geometryType=(0,je.$B)(e[0]),t.geometries=e.map(e=>e.toJSON()))}};(0,s.Cg)([(0,p.MZ)({types:[Ne.yR]})],jt.prototype,"geometries",void 0),(0,s.Cg)([(0,ae.K)("geometries")],jt.prototype,"writeGeometries",null),(0,s.Cg)([(0,p.MZ)({type:se.A,json:{write:!0}})],jt.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],jt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],jt.prototype,"constantZ",void 0),(0,s.Cg)([(0,p.MZ)({type:Pt.apiValues,json:{read:Pt.read,write:Pt.write}})],jt.prototype,"baseType",void 0),jt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolumeParameters")],jt);let Nt=class extends q.o{constructor(e){super(e),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"cut",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"fill",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"maxz",write:!0}})],Nt.prototype,"maxZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"minz",write:!0}})],Nt.prototype,"minZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"meanz",write:!0}})],Nt.prototype,"meanZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"cutCellCount",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"fillCellCount",void 0),Nt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolume")],Nt);const Ot=Nt;let Zt=class extends q.o{constructor(e){super(e),this.volumes=[]}};(0,s.Cg)([(0,p.MZ)({type:[Ot],json:{write:!0}})],Zt.prototype,"volumes",void 0),Zt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolumeResult")],Zt);let _t=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=JSON.stringify(e))}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{read:ve.rS,write:!0}})],_t.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],_t.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],_t.prototype,"rasterId",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.VisibleOnly",write:!0}})],_t.prototype,"visibleOnly",void 0),_t=(0,s.Cg)([(0,p.$K)("esri.rest.support.MapToImageParameters")],_t);let Vt=class extends q.o{constructor(e){super(e),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),be.A.fromJSON(e)}};var qt;(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"Shape",read:ve.rS,write:!0}})],Vt.prototype,"geometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Length",write:!0}})],Vt.prototype,"length",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Area",write:!0}})],Vt.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{name:"Center",write:!0}})],Vt.prototype,"center",void 0),(0,s.Cg)([(0,Qe.w)("center")],Vt.prototype,"readCenter",null),Vt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureAreaFromImageResult")],Vt);let Et=qt=class extends q.o{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}clone(){let e=(0,b.o8)({geometry:this.geometry,rasterId:this.rasterId});return new qt(e)}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"fromGeometry",read:ve.rS,write:!0}})],Et.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],Et.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Et.prototype,"rasterId",void 0),Et=qt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureFromImageParameters")],Et);let Jt=class extends q.o{constructor(e){super(e),this.geometry=null,this.length=null}};function Gt(e){let t=e?.time;if(t&&(null!=t.start||null!=t.end)){let i=[];null!=t.start&&i.push(t.start),null!=t.end&&!i.includes(t.end)&&i.push(t.end),e.time=i.join(",")}}async function $t(e,t,i){let r=(0,M.PZ)(ht.A,t),s=(0,Ce.Dl)(e),n=r.geometry?[r.geometry]:[],a=await(0,Re.el)(n),o=r.toJSON();Gt(o);let l=a?.[0];null!=l&&(o.geometry=kt(l));let u=(0,Ce.lF)({...s.query,f:"json",...o});return(0,Ce.jV)(u,i)}async function zt(e,t,i){let r=(0,M.PZ)(De,t),s=r.toJSON();null!=s.angleName&&(s.angleName=s.angleName.join(",")),r?.point?.spatialReference?.imageCoordinateSystem&&(s.point.spatialReference=Qt(r.point.spatialReference)),r?.spatialReference?.imageCoordinateSystem&&(s.spatialReference=Ht(r.spatialReference));let n=(0,Ce.Dl)(e),a=(0,Ce.lF)({...n.query,f:"json",...s}),o=(0,Ce.jV)(a,i),{data:l}=await(0,R.A)(`${n.path}/computeAngles`,o);return l.spatialReference=l.spatialReference?null==l.spatialReference.geodataXform?T.A.fromJSON(l.spatialReference):new T.A({wkid:0,imageCoordinateSystem:l.spatialReference}):null,"NaN"===l.north&&(l.north=null),"NaN"===l.up&&(l.up=null),new Te(l)}async function Lt(e,t,i){let r=(0,M.PZ)(Rt,t),s=r.toJSON(),{geometries:n}=r;if(n)for(let e=0;e<n.length;e++)n[e].spatialReference?.imageCoordinateSystem&&(s.geometries.geometries[e].spatialReference=Qt(n[e].spatialReference));let a=(0,Ce.Dl)(e),o=(0,Ce.lF)({...a.query,f:"json",...s}),l=(0,Ce.jV)(o,i),{data:u}=await(0,R.A)(`${a.path}/computePixelLocation`,l);return Ct.fromJSON(u)}async function Ut(e,t,i){let r=(0,M.PZ)(gt,t),s=(0,Ce.Dl)(e),n=r.geometry?[r.geometry]:[],a=await(0,Re.el)(n),o=r.toJSON(),l=a?.[0];null!=l&&(o.geometry=JSON.stringify(kt(l)));let u=(0,Ce.lF)({...s.query,f:"json",...o}),p=(0,Ce.jV)(u,i),m=await(0,R.A)(s.path+"/identify",p);return wt.fromJSON(m.data)}async function Bt(e,t,i,r){let s=(0,Ce.Dl)(e),n=await(0,Re.el)(i),a=t.toJSON();null!=n[0]&&(a.fromGeometry=JSON.stringify(kt(n[0]))),null!=n[1]&&(a.toGeometry=JSON.stringify(kt(n[1])));let o=(0,Ce.lF)({...s.query,f:"json",...a}),l=(0,Ce.jV)(o,r),{data:u}=await(0,R.A)(s.path+"/measure",l);return u}async function Kt(e,t,i){t=(0,M.PZ)(Et,t);let r=(0,Ce.Dl)(e),s=t.toJSON(),n=(0,Ce.lF)({...r.query,f:"json",...s}),a=(0,Ce.jV)(n,i),{data:o}=await(0,R.A)(r.path+"/measureFromImage",a);return o}function kt(e){let t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=Qt(e.spatialReference)),t}function Qt(e){let{imageCoordinateSystem:t}=e;if(t){let{id:e,referenceServiceName:i}=t;return null==e?{ics:t}:i?{icsid:e,icsns:i}:{icsid:e}}return e.toJSON()}function Ht(e,t){if(!e.imageCoordinateSystem)return(0,P.YX)(e);let i=Qt(e),{icsid:r,icsns:s}=i;return null==r||null!=s&&!t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?JSON.stringify(i):`0:${r}`}(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"Shape",read:ve.rS,write:!0}})],Jt.prototype,"geometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Length",write:!0}})],Jt.prototype,"length",void 0),Jt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureLengthFromImageResult")],Jt);var Wt=i(82371),Xt=i(20223),Yt=i(20615),ei=i(74910),ti=i(78286),ii=i(99199),ri=i(97552);const si=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),ni=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this._functionRasterInfos={},this._serviceSupportsMosaicRule=null,this._exportTileQueue=new S.QueueProcessor({concurrency:4,process:(e,t)=>this._fetchPixels(e.extent,e.width,e.height,{...e.options,signal:t})}),this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new oe({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){let e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replaceAll(/ /gi,"_"),t.name)}),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every(e=>"number"==typeof e))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,i){null!=e&&"lerc"!==this.format&&(t[i]=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?(0,F.F_)(()=>se.A.fromJSON(t)):null}get fieldsIndex(){return this.fields?new pe.A(this.fields):null}set format(e){e&&si.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter||!1===t.allowRasterFunction?"lerc":"jpgpng"}get isRenderedFormat(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=se.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){let i=e||t.mosaicRule;return i?se.A.fromJSON(i):this._isMosaicRuleSupported(t)?se.A.fromJSON(t):null}writeMosaicRule(e,t,i){let{mosaicRule:r}=this;this._isValidCustomizedMosaicRule(r)&&(t[i]=r.toJSON())}readObjectIdField(e,t){return e||=t.fields.find(e=>"esriFieldTypeOID"===e.type||"oid"===e.type)?.name,e}get parsedUrl(){return(0,I.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){let{activePresetRendererName:e,presetRenderers:t}=this;return e?(t?.find(({name:t})=>t===e))?.renderer.clone():this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,i){let r=t?.layerDefinition?.drawingInfo?.renderer,s=(0,we.LF)(r,i);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!r.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),k(s)||o.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,i){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON()}get rasterFields(){let e=this.fields?.map(e=>e.clone())??[];e.push((0,ye.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,ye.Nd)()),this.version>=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some(({name:e})=>"none"===e.toLowerCase())&&e.push((0,ye.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter(({name:e})=>"none"!==e.toLowerCase()).forEach(({name:t})=>e.push((0,ye.nq)(t)));let{rasterInfo:t}=this;if(this._isVectorDataSet()){let i=t?.multidimensionalInfo?.variables[0].unit?.trim(),r=(0,ye.DV)(i),s=(0,ye.y6)();e.push(r,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){let i=(0,ye.AL)(t.multidimensionalInfo);e.push(...i)}let i=t?.attributeTable;if(null!=i){let t=(0,ye.jC)(i);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=G.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){let i=t.rasterFunctionInfos,r=t.renderingRule,s=null!=r&&Object.keys(r).length>0;return s||i?.length&&"None"!==i[0].name?this._isRFTJson(r)?G.A.fromJSON({rasterFunctionDefinition:r}):G.A.fromJSON(s?r:{rasterFunctionInfos:i}):null}readSpatialReference(e,t){let i=e||t.extent.spatialReference;return i?T.A.fromJSON(i):null}writePixelType(e,t,i){(null==this.serviceRasterInfo||this.pixelType!==this.serviceRasterInfo.pixelType)&&(t[i]=ne.e8.toJSON(e))}readVersion(e,t){let i=t.currentVersion;return i||=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3,i}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let i=e,{renderer:r,symbolizer:s,pixelFilter:n}=this,{isRawData:a}=e;if(a&&"lerc"!==this.format&&(r??=(0,ge.PD)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.rasterFunction?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}),s||=(this.symbolizer=new fe.A({rendererJSON:r.toJSON(),rasterInfo:this.rasterInfo}),this.symbolizer)),(a||!this.isRenderedFormat)&&r&&s&&!n){await this._updateSymbolizer(s,r);let n=this.bandIds?.length?this.bandIds:(0,ge.ci)(this.rasterInfo);i=await this._symbolize({pixelData:e,bandIds:n,symbolizer:s},t)}return i}destroy(){this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new C.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,b.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),async function(e,t,i){let r=(0,M.PZ)(jt,t).toJSON();r.geometries=JSON.stringify(r.geometries);let s=(0,Ce.Dl)(e),n=(0,Ce.lF)({...s.query,f:"json",...r}),a=(0,Ce.jV)(n,i),{data:o}=await(0,R.A)(`${s.path}/calculateVolume`,a);return Zt.fromJSON({volumes:o.results})}(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new C.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return zt(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new C.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return Lt(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new C.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){let r=await $t(e,t,i),s=(0,Ce.Dl)(e),{data:n}=await(0,R.A)(`${s.path}/computeHistograms`,r);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new C.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){let r=await $t(e,t,i),s=(0,Ce.Dl)(e),{data:n}=await(0,R.A)(`${s.path}/computeStatisticsHistograms`,r),{statistics:a}=n;return a?.length&&a.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation;let t=e.covariances?.trim();t&&(e.covariances=t.split(",").map(Number))}),{statistics:a,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){let i=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?i.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?i.mensuration.supportsHeightFromBaseAndTopShadow:i.mensuration.supportsHeightFromTopAndTopShadow))throw new C.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(ct,t),s=await Bt(e,r,[r.fromGeometry,r.toGeometry],i);return dt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){let i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsAreaAndPerimeter||e.is3D&&!i.mensuration.supports3D)throw new C.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(qe,t),s=await Bt(e,r,[r.geometry],i);return Ke.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){let i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsDistanceAndAngle||e.is3D&&!i.mensuration.supports3D)throw new C.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(Xe,t),s=await Bt(e,r,[r.fromGeometry,r.toGeometry],i);return tt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){let i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsPointOrCentroid||e.is3D&&!i.mensuration.supports3D)throw new C.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(St,t),s=await Bt(e,r,[r.geometry],i);return xt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new C.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new C.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return async function(e,t,i){let r=await Kt(e,(0,M.PZ)(Et,t),i);return Jt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new C.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new C.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return async function(e,t,i){let r=await Kt(e,(0,M.PZ)(Et,t),i);return Vt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}getField(e){let{fieldsIndex:t}=this;return t?.get(e)}getFieldDomain(e,t){let i=this.getField(e);return i?i.domain:null}async internalFetchImage(e,t,i,r={}){await this._updateCurrentRasterInfo();let{exportImageServiceParameters:s}=this,a=!1;if(r.requestRawData&&(await this._initJobHandler(),!s.requestRawData&&"lerc"!==this.format)){a=!0,s.requestRawData=!0;let e=this.bandIds;if(!e?.length){let t=(0,ge.ci)(this.rasterInfo);Array.from({length:this.rasterInfo.bandCount},(e,t)=>t)?.join(",")!==t?.join(",")&&(e=t)}s.rawDataRequestBandIds=e}let o=this.getExportImageServiceParameters(e,t,i,r.timeExtent);if(a&&(s.requestRawData=!1,s.rawDataRequestBandIds=null),null==o){if(r.requestAsImageElement&&this._canRequestImageElement(this.format)){let e=document.createElement("canvas");if(e.width=t,e.height=i,r.returnImageBitmap){let{bitmap:t}=await(0,me.mn)(e,`${n(this.parsedUrl)}/exportImage`,r);return{imageBitmap:t}}return{imageOrCanvasElement:e}}let{bandIds:s,rasterInfo:a}=this,o=(s?.length||a.bandCount)??0,l=t*i,u=a.pixelType,p=[];for(let e=0;e<o;e++)p.push(de.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new de.A({width:t,height:i,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}let l=!!r.requestAsImageElement&&!this.pixelFilter,u=l&&!!r.returnImageBitmap,p={imageServiceParameters:o,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:l,returnImageBitmap:u,signal:r.signal};return this._requestArrayBuffer(p)}async fetchPixels(e,t,r,s={}){await this._initJobHandler(),s.applyRendering&&await this._updateCurrentRasterInfo();let{imageMaxWidth:n,imageMaxHeight:a}=this;if(t<=n&&r<=a)return this._exportTileQueue.push({extent:e,width:t,height:r,options:s},{signal:s.signal});if(t>4096||r>4096||n<512||a<512)throw new C.A("imagery-layer:fetch-pixels",`The image service has a maximum export size of ${n}x${a}. The requested size of ${t}x${r} exceeds this limit.`);let{xmin:o,ymax:l,spatialReference:u}=this._projectedFullExtent??this.fullExtent;if(!u?.equals(e.spatialReference)){let{projectLoad:t,projectExecute:r}=await i.e(895).then(()=>i(83276));await t();let s=r(this.fullExtent,e.spatialReference);o=s.xmin,l=s.ymax,this._projectedFullExtent=s}let p=e.width/t,m=e.height/r,c=Math.floor((e.xmin-o)/p),d=Math.floor((l-e.ymax)/m),y=c+t,h=d+r,g=Math.floor(c/512),f=Math.floor(d/512),w=Math.ceil(y/512)-1,v=Math.ceil(h/512)-1,R=512*p,b=512*m,S=[];for(let t=f;t<=v;t++){let i=l-t*b,r=i-b;for(let t=g;t<=w;t++){let n=o+t*R,a=new A.A({xmin:n,ymin:r,xmax:n+R,ymax:i,spatialReference:e.spatialReference});S.push(this._exportTileQueue.push({extent:a,width:512,height:512,options:s},{signal:s.signal}))}}let x=await Promise.all(S);return x.some(e=>null==e.pixelBlock)?{extent:e,pixelBlock:null}:{extent:e,pixelBlock:this._rasterJobHandler?await this._rasterJobHandler.mosaicPixelData({pixelBlocks:x,destExtent:e},{signal:s.signal,transferPixelsToWorker:!0}):(0,O.LY)(x,e)?.pixelBlock}}async _fetchPixels(e,t,i,r={}){let s=r.applyRendering?void 0:new oe({layer:this,requestRawData:!0,interpolation:r.interpolation??"nearest",bandIds:r.bandIds??[]}),n=this.getExportImageServiceParameters(e,t,i,r.timeExtent,s);if(null==n)return{extent:e,pixelBlock:null};delete n.pixelType,r.bandIds||delete n.bandIds,delete n.compressionQuality;let a={imageServiceParameters:n,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:!1,returnImageBitmap:!1,signal:r.signal},{pixelData:o}=await this._requestArrayBuffer(a);return o??{extent:e,pixelBlock:null}}fetchKeyProperties(e){return(0,R.A)(n(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>e.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new C.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,R.A)(n(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>ft.A.fromJSON(e.data))}getCatalogItemRasterInfo(e,t){let i={...t,query:this._getQueryParams()};return async function(e,t,i){let r=(0,Ce.Dl)(e),s=(0,Ce.lF)({...r?.query,f:"json"}),n=(0,Ce.jV)(s,i),a=`${r?.path}/${t}/info`,o=(0,R.A)(`${a}`,n),l=(0,R.A)(`${a}/keyProperties`,n),u=await Promise.allSettled([o,l]),p="fulfilled"===u[0].status?u[0].value.data:null,m="fulfilled"===u[1].status?u[1].value.data:null,c=null;p.statistics?.length&&(c=p.statistics.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})));let d=A.A.fromJSON(p.extent),y=Math.ceil(d.width/p.pixelSizeX-.1),h=Math.ceil(d.height/p.pixelSizeY-.1),g=d.spatialReference,f=new be.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:g}),w=p.histograms?.length?p.histograms:null,v=new Xt.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new he.A({width:y,height:h,bandCount:p.bandCount,extent:d,spatialReference:g,pixelSize:f,pixelType:p.pixelType.toLowerCase(),statistics:c,histograms:w,keyProperties:m,storageInfo:v})}(n(this.parsedUrl),e,i)}async getCatalogItemICSInfo(e,t){let{data:i}=await(0,R.A)(n(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),r=i?.ics;if(!r)return;let s=null;try{s=(await(0,R.A)(n(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!s?.spatialReference)return{ics:r,icsToPixelTransform:null,icsExtent:null,northDirection:null};let a=this.version>=10.7?(0,R.A)(n(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then(e=>e.data).catch(()=>({})):{},o=s.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[s]}),inSR:(0,P.YX)(o),outSR:"0:"+e},u=(0,R.A)(n(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then(e=>e.data).catch(()=>({})),p=(s.xmin+s.xmax)/2,m=(s.ymax-s.ymin)/6,c=s.ymin+m,d=[];for(let e=0;e<5;e++)d.push({x:p,y:c+m*e});let y={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,P.YX)(o),outSR:"0:"+e},h=(0,R.A)(n(this.parsedUrl)+"/project",{query:this._getQueryParams(y),...t}).then(e=>e.data).catch(()=>({})),g=await Promise.all([a,u,h]),f=g[0].ipxf;if(null==f){let e=r.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}let w=A.A.fromJSON(g[1]?.geometries?.[0]);w&&(w.spatialReference=new T.A({wkid:0,imageCoordinateSystem:r}));let v=g[2].geometries?g[2].geometries.filter(e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y):[],C=v.length;if(C<3)return{ics:r,icsToPixelTransform:f,icsExtent:w,northDirection:null};let b=0,S=0,x=0,I=0;for(let e=0;e<C;e++)b+=v[e].x,S+=v[e].y,x+=v[e].x*v[e].x,I+=v[e].x*v[e].y;let M=(C*I-b*S)/(C*x-b*b),F=0,D=v[4].x>v[0].x,j=v[4].y>v[0].y;return M===1/0?F=j?90:270:0===M?F=D?0:180:M>0?F=D?180*Math.atan(M)/Math.PI:180*Math.atan(M)/Math.PI+180:M<0&&(F=j?180+180*Math.atan(M)/Math.PI:360+180*Math.atan(M)/Math.PI),{ics:r,icsToPixelTransform:f,icsExtent:w,northDirection:F}}async generateRasterInfo(e,t){let i=(0,M.PZ)(G.A,e),r={...t,query:this._getQueryParams()};if(!i||"none"===i.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(i))return this.serviceRasterInfo??(0,Wt.Tw)(n(this.parsedUrl),this.sourceJSON,r);let s=function(e){let t=JSON.stringify(e),i=t.includes('"rasterFunctionDefinition":{'),r=(i?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi))?.map(e=>i?e.slice(8,-18):e.slice(18,-1));return r?r.join("/"):null}(i);if(!s)throw new C.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[s])return this._functionRasterInfos[s];let a=(0,Wt.X6)(n(this.parsedUrl),i,r);this._functionRasterInfos[s]=a;try{let t=await a,{rasterFunction:i}=this;return(i===e||JSON.stringify(i)===JSON.stringify(e))&&JSON.stringify(this.rasterInfo)!==JSON.stringify(t)&&(this.rasterInfo=t),t}catch(e){throw this._functionRasterInfos[s]=null,e}}getExportImageServiceParameters(e,t,i,r,s){let a=Ht((e=e.clone().shiftCentralMeridian()).spatialReference,n(this.parsedUrl));s??=this.exportImageServiceParameters;let o=s.toJSON(),{bandIds:l,noData:u}=o,{renderingRule:p}=o,m=this.rasterFunction?.rasterFunctionDefinition,c=this.renderer?.type,d=!c||"raster-stretch"===c||"raster-colormap"===c||"unique-value"===c||"class-breaks"===c||"raster-shaded-relief"===c;if(l?.length&&this._hasRasterFunction(this.rasterFunction)&&!m&&d){let e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===p.rasterFunction)e.rasterFunctionArguments.Raster=p.rasterFunctionArguments.Raster,p.rasterFunctionArguments.Raster=e;else if("Colormap"===p.rasterFunction){let t=p.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,p.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=p,p=e;o.bandIds=void 0}else o.bandIds=l?.join(",");Array.isArray(u)&&u.length>0&&(o.noData=u.join(","));let y=this._processMultidimensionalIntersection(null,r,s.mosaicRule);if(y.isOutSide)return null;o.mosaicRule=null==y.mosaicRule?null:JSON.stringify(y.mosaicRule),r=y.timeExtent,o.renderingRule=this._getRenderingRuleString(G.A.fromJSON(p));let h={};if(null!=r){let{start:e,end:t}=r.toJSON();e&&t&&e===t?h.time=""+e:(null!=e||null!=t)&&(h.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:a,imageSR:a,size:t+","+i,...o,...h}}async getSamples(e,t){if(!(await this._fetchCapabilities(t?.signal))?.operations.supportsGetSamples)throw new C.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,b.o8)(e);let{raster:i}=this;return i&&null==e.raster&&(e.raster=i),async function(e,t,i){let r=(0,M.PZ)(It.A,t),s=r.toJSON();Gt(s),s.outFields?.length&&(s.outFields=s.outFields.join(","));let n=(await(0,Re.el)(r.geometry))?.[0];null!=n&&(s.geometry=kt(n));let a=(0,Ce.Dl)(e),o=(0,Ce.lF)({...a.query,f:"json",...s}),l=(0,Ce.jV)(o,i),{data:u}=await(0,R.A)(`${a.path}/getSamples`,l),p=u.samples.map(e=>{let t="NaN"===e.value||""===e.value?null:e.value.split(" ").map(e=>Number(e));return{...e,pixelValue:t}});return Mt.A.fromJSON({samples:p})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new C.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,b.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=D.A.fromExtent(e.geometry));let i=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(i.isOutSide)throw new C.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=i.timeExtent,e.mosaicRule=i.mosaicRule;let{raster:r,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),r&&null==e.raster&&(e.raster=r),Ut(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new C.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(At,t),s=r.toJSON();r.geometry.spatialReference.imageCoordinateSystem&&(s.geometry=kt(r.geometry)),r.depthOffset&&r.adjust||delete s.options;let n=(0,Ce.Dl)(e),a=(0,Ce.lF)({...n.query,f:"json",...s}),o=(0,Ce.jV)(a,i),{data:l}=await(0,R.A)(`${n.path}/imageToMap`,o);return(0,ve.rS)(l)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new C.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Ft,t),s=r.toJSON();r.rasterIds?.length&&(s.rasterIds=r.rasterIds.join(","));let n=(0,Ce.Dl)(e),a=(0,Ce.lF)({...n.query,f:"json",...s}),o=(0,Ce.jV)(a,i),{data:l}=await(0,R.A)(`${n.path}/imageToMapMultiray`,o);return(0,ve.rS)(l)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new C.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(_t,t),s=r.toJSON(),n=(await(0,Re.el)(r.geometry))?.[0];null!=n&&(s.geometry=kt(n)),r.visibleOnly||delete s.options;let a=n?.spatialReference??r.geometry?.spatialReference;a&&(s.inSR=Ht(a));let o=(0,Ce.Dl)(e),l=(0,Ce.lF)({...o.query,f:"json",...s}),u=(0,Ce.jV)(l,i),{data:p}=await(0,R.A)(`${o.path}/mapToImage`,u);return(0,ve.rS)(p)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new C.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Se,t),s=r.toJSON(),n=await(0,Re.el)([r.fromGeometry,r.toGeometry]);null!=n[0]&&(s.fromGeometry=kt(n[0]),n[0].spatialReference&&(s.inSR=Ht(n[0].spatialReference))),null!=n[1]&&(s.toGeometry=kt(n[1])),r.objectIds?.length&&(s.objectIds=s.objectIds.join(","));let a=(0,Ce.Dl)(e),o=(0,Ce.lF)({...a.query,f:"json",...s}),l=(0,Ce.jV)(o,i),{data:u}=await(0,R.A)(`${a.path}/find`,l);return Fe.fromJSON(u)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new C.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Dt,t).toJSON(),s=(0,Ce.Dl)(e),n=(0,Ce.lF)({...s.query,f:"json",...r}),a=(0,Ce.jV)(n,i),{data:o}=await(0,R.A)(`${s.path}/getImageUrl`,a);return Tt.fromJSON(o)}(n(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new ri.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new C.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e??={outSpatialReference:this.spatialReference},async function(e,t,i){let r=(0,M.PZ)(ke,t),s=(0,Ce.Dl)(e),n=r.toJSON();r.outSpatialReference&&(n.outSR=Ht(r.outSpatialReference));let a=(0,Ce.lF)({...s.query,f:"json",...n}),o=(0,Ce.jV)(a,i),{data:l}=await(0,R.A)(s.path+"/queryBoundary",o);return He.fromJSON(l)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async queryExtent(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));let{where:r,objectIds:s,geometry:n,timeExtent:a,start:o,num:l,pixelSize:u}=e,p=null!=r&&"1=1"!==r,m=null!=s&&s.length>0,c=null!=n&&("extent"!==n.type||!n.equals(this.fullExtent)),d=null!=u,y=null!=o||null!=l,{timeInfo:h}=this,g=null!=a&&null!=h&&!a.equals(h.fullTimeExtent);if(!(p||m||c||d||g||y)){let r=await(0,Yt.I)(this.url,e,t),{outSpatialReference:s}=e;if(!s||s.equals(this.spatialReference))return{count:r,extent:this.fullExtent.clone()};let{projectLoad:n,projectExecute:a}=await i.e(895).then(()=>i(83276));return await n(),{count:r,extent:a(this.fullExtent,s)}}return(0,ei.L)(this.url,e,t)}async queryRasters(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));let i=await(0,ii.s)(this.url,e,t),r=this.graphicOrigin;return i.features.forEach(e=>{e.layer=this,e.origin=r}),i}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,ti.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new C.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e??={where:"1=1"},async function(e,t,i){let r=(0,M.PZ)(nt,t),s=r.toJSON();Gt(s),s.objectIds?.length&&(s.objectIds=s.objectIds.join(",")),s.geometry||s.objectIds||s.time||s.where||(s.where="1=1");let n=(await(0,Re.el)(r.geometry))?.[0];null!=n&&(s.geometry=kt(n));let a=n?.spatialReference??r.geometry?.spatialReference;a&&(s.inSR=Ht(a));let o=(0,Ce.Dl)(e),l=(0,Ce.lF)({...o.query,f:"json",...s}),u=(0,Ce.jV)(l,i),{data:p}=await(0,R.A)(`${o.path}/queryGPSInfo`,u);return pt.fromJSON(p)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Yt.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new C.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();let{pixelSize:i,returnDomainValues:r,returnTopmostRaster:s,showNoDataRecords:n}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1},a=!1,o=null,l=null,u=ye.F_.servicePixelValue.toLowerCase(),p=this._rasterFunctionNamesIndex;if(null!=e.outFields&&(a=e.outFields.some(e=>!e.toLowerCase().startsWith(u)),this.version>=10.4)){let t=e.outFields.filter(e=>e.toLowerCase().startsWith(u)&&e.length>u.length).map(e=>{let t=e.slice(u.length+1);return[this._updateRenderingRulesFunctionName(t,p),t]});o=t.map(e=>new G.A({functionName:e[0]})),l=t.map(e=>e[1]);let{rasterFunction:i}=this;0===o.length?i?.functionName?(o.push(i),l.push(i.functionName)):o=null:i?.functionName&&!o.some(e=>e.functionName===i.functionName)&&(o.push(i),l.push(i.functionName))}let m=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:c}=this,d=e.timeExtent||this.timeExtent;if(c){let{isOutside:t,intersection:i}=(0,j.Rp)(c,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new C.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=i?.timeExtent&&(d=i.timeExtent)}let y=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,d),h=e.geometry;this.version<10.91&&"extent"===h?.type&&(h=D.A.fromExtent(h));let g=this._getQueryParams({geometry:h,timeExtent:d,mosaicRule:y,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:o,pixelSize:i,returnCatalogItems:a,returnGeometry:m,raster:this.raster,maxItemCount:s?1:null});delete g.f;let f=new gt(g);try{await this._generateRasterInfo(this.rasterFunction);let i=await Ut(this.url,f,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,o=null!=i.value&&i.value.toLowerCase().includes("nodata"),u=a&&!m&&i?.catalogItems?.features.length&&(n||!o),p=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,j.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:y?.multidimensionalDefinition,timeExtent:d,multidimensionalSubset:this.multidimensionalSubset}):null;if(!u)return this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:l,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p});let c=this.objectIdField||"ObjectId",h=i.catalogItems?.features??[],g=h.map(e=>e.attributes?.[c]),w=new ri.A({objectIds:g,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),v=await this.queryRasters(w);return v?.features?.length&&v.features.forEach(t=>{h.forEach(i=>{i.attributes[c]===t.attributes[c]&&t.geometry&&(i.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(i.geometry.spatialReference=e.outSpatialReference))})}),this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:l,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p})}catch{throw new C.A("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){let i=(0,R.A)(n(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.statistics),r=(0,R.A)(n(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.histograms),s=await Promise.all([i,r]);return s[0]&&s[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:s[0]||null,histograms:s[1]||null}}getMultidimensionalSubsetVariables(e){let t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,j.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e);let t=this.sourceJSON,i=null==this.serviceRasterInfo?(0,Wt.Tw)(n(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then(e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,Wt.E9)(e,t),e)):Promise.resolve(this.serviceRasterInfo),r=!this.rasterInfo&&this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):Promise.resolve(this.rasterInfo),s=this.rasterFunctionInfos?.every(e=>null!=e.functionType)?null:this._getRasterFunctionInfos();return Promise.all([i,r,s]).then(e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&(t.rasterFunctionInfos=e[2],this.setAtOrigin("rasterFunctionInfos",e[2],"service")),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),o.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,x.wB)(()=>this.rasterFunction,e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then(e=>{e&&(this.rasterInfo=e)})})]);let{serviceRasterInfo:i}=this;null!=i.multidimensionalInfo&&this._updateMultidimensionalDefinition(i)})}_combineMosaicRuleWithTimeExtent(e,t){let i=this.timeInfo,{multidimensionalInfo:r}=this.serviceRasterInfo;if(null==e||null==r||null==t||null==i?.startField)return e;let{startField:s}=i,n=r.variables.some(e=>e.dimensions.some(e=>e.name===s))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(e=>e.dimensionName!==n),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];let a=e.multidimensionalDefinition.filter(e=>e.dimensionName===n),o=null==t.start?null:t.start.getTime(),l=null==t.end?null:t.end.getTime(),u=null==o||null==l||o===l,p=u?[o||l]:[[o,l]],m=this.version>=10.8;if(a.length)a.forEach(e=>{e.dimensionName===n&&(m?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))});else if(!m){let t=e.multidimensionalDefinition.filter(e=>null!=e.variableName&&null==e.dimensionName);t.length?t.forEach(e=>{e.dimensionName=n,e.isSlice=u,e.values=p}):e.multidimensionalDefinition.push(new V.A({variableName:"",dimensionName:n,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(e=>!(!e.variableName&&!e.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new C.A("imagery-layer:query-rasters","query operation is not supported on the input image service");let i=null==e?this.createQuery():(0,M.PZ)(ri.A,e);return t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:i,requestOptions:t}}_isSupportedRenderer(e){let{rasterInfo:t,rasterFunction:i}=this;return"unique-value"===e.type&&this._hasRasterFunction(i)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,ge.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){let{data:i,ssl:r}=await(0,R.A)(n(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=i,this.sourceJSON=t,r&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map(e=>e.trim()).indexOf("tilesonly")>-1)throw new C.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;let t=this._isMosaicDataset(e),i=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||i}_isVectorFieldResampleFunction(e){if(null==e)return!1;let{functionName:t,functionArguments:i}=e,r="resample"===t?.toLowerCase(),s=i?.ResampleType||i?.resampleType;return r&&(7===s||10===s)}_configRenderer(e){let{rasterInfo:t}=this,i=t.attributeTable,r=null!=(0,ge.VI)(i,"red")&&null!=(0,ge.VI)(i,"green")&&null!=(0,ge.VI)(i,"blue"),s=!e&&null==t.colormap&&!r&&(0,ge.fp)(t).includes("unique-value");if(!this.isRenderedFormat&&!this.pixelFilter||this._isVectorDataSet()||s){let i=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,r=(0,ge.I8)({variableName:i,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&t.bandCount>=3){let e=r?.bandIds??(0,ge.ci)(t);e&&(3!==t.bandCount||0!==e[0]||1!==e[1]||2!==e[2])&&(this.bandIds=e)}e||=r?.renderer??(0,ge.PD)(t,{bandIds:this.bandIds,variableName:this.rasterFunction?null:i});let s=(0,ge.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=t):this.symbolizer=new fe.A({rendererJSON:s,rasterInfo:t}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null==e.pixelBlock?null:e.pixelBlock.clone()}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));let{raster:t,viewId:i}=this;return{raster:t,viewId:i,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,i){return this._rasterJobHandler?this._rasterJobHandler.decode({data:e,options:t}):(0,N.D)(e,t,i)}async _getRasterFunctionInfos(e){let t=this.sourceJSON.rasterFunctionInfos;return this.loaded||!t?.length?t:t&&this.version>=10.3?1===t.length&&"none"===t[0].name.toLowerCase()?[{thumbnail:"",functionType:0,...t[0]}]:(await(0,R.A)(n(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e})).data?.rasterFunctionInfos:null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){let{imageProps:t,requestAsImageElement:i,returnImageBitmap:r,signal:s}=e;if(i&&this._canRequestImageElement(t.format)){let i=`${n(this.parsedUrl)}/exportImage`,{data:a}=await(0,R.A)(i,{responseType:r?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:s});if(a instanceof Blob){let{bitmap:e}=await(0,me.mn)(a,i,{signal:s});return{imageBitmap:e,params:t}}return{imageOrCanvasElement:a,params:t}}let a=this._initJobHandler(),o=(0,R.A)(n(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:s}),l=(await Promise.all([o,a]))[0].data,u=t.format||"jpgpng",p=u;if("bsq"!==p&&"bip"!==p&&(p=(0,N.g)(l)),!p)throw new C.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(l)));let m={signal:s};return{pixelData:{pixelBlock:await this._decodePixelBlock(l,{width:t.width,height:t.height,format:u,applyJpegMask:!0},m),extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch(()=>null)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,j.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new se.A;let e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach(e=>e.variableName=""),t=t.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t||={};let i=e.value,{templateRRFunctionNames:r,showNoDataRecords:s,returnDomainValues:n,templateFields:a}=t,o=e.processedValues,l=e.catalogItems?.features,u=e.properties?.Values?.map(e=>e.replaceAll(/ /gi,", "))||[],p=this.objectIdField||"ObjectId",m="string"==typeof i&&i.toLowerCase().includes("nodata"),c=[];if(i&&!l&&(!m||s)){let e={};e[p]=0,u=[i],l=[new v.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,ye.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,a),m&&!s&&(l=[]);let{itemPixelValue:d,servicePixelValue:y}=ye.F_,h=this.rasterFields.some(e=>e.name===d),g=this.graphicOrigin;for(let e=0;e<l.length;e++){let t=l[e];if(null!=i){let n=u[e],a=this.rasterFunction&&o&&o.length>0&&r&&r.length>0&&r.includes(this.rasterFunction.functionName)?o[r.indexOf(this.rasterFunction.functionName)]:i;if("nodata"===n.toLowerCase()&&!s)continue;h&&(t.attributes[d]=n),t.attributes[y]=a,this._updateFeatureWithMagDirValues(t,n);let l=this.fields&&this.fields.length>0,p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?n:i:a;this.rasterFunction||(p=l?n:i),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,t.origin=g,n&&this._updateFeatureWithDomainValues(t),r&&o&&r.length===o.length)for(let e=0;e<r.length;e++){let i=`${ye.F_.servicePixelValue}.${r[e]}`;t.attributes[i]=o[e]}c.push(l[e])}return c}_processMultidimensionalIntersection(e,t,i){let{multidimensionalSubset:r}=this;if(!r)return{isOutSide:!1,timeExtent:t,mosaicRule:i=this._combineMosaicRuleWithTimeExtent(i,t)};if(r){let{isOutside:i,intersection:s}=(0,j.Rp)(r,{geometry:e,timeExtent:t});if(i)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(i=this._combineMosaicRuleWithTimeExtent(i,t),i?.multidimensionalDefinition){let{isOutside:e}=(0,j.Rp)(r,{multidimensionalDefinition:i.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:i}}_updateFeatureWithRasterAttributeTableValues(e,t){let i=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==i)return;let{features:r,fields:s}=i,n=s.map(e=>e.name).find(e=>"value"===e.toLowerCase());if(!n)return;let a=r.filter(e=>e.attributes[n]===(null==t?null:parseInt(t,10)));a&&a[0]&&s.forEach(t=>{let i=ye.ER+t.name;e.attributes[i]=a[0].attributes[t.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;let i=t.split(/,\s*/).map(e=>parseFloat(e)),r=i.map(e=>[e]),s=i.map(e=>({minValue:e,maxValue:e,noDataValue:null})),n=new de.A({height:1,width:1,pixelType:"f32",pixels:r,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new A.A(0,0,0,0,this.spatialReference)});let a="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,Z.Lu)([n.pixels[0][0],n.pixels[1][0]]);e.attributes[ye.F_.magnitude]=a[0],e.attributes[ye.F_.direction]=a[1]}_updateFeatureWithDomainValues(e){(this.fields&&this.fields.filter(e=>"coded-value"===e.domain?.type))?.forEach(t=>{let i=e.attributes[t.name];if(null!=i){let r=t.domain.codedValues.find(e=>e.code===i);r&&(e.attributes[t.name]=r.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;let i=this.fieldsIndex;null!=i&&e.forEach(e=>{if(e?.attributes)for(let r of t){let t=i.get(r)?.name;t&&t!==r&&(e.attributes[r]=e.attributes[t],delete e.attributes[t])}})}_getRenderingRuleString(e){if(e){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");let i=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(i)?t.get(i):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){let{raster:t,mosaicRule:i,rasterFunction:r}=this;r&&null==e.rasterFunction&&(e.rasterFunction=r),i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}async _updateCurrentRasterInfo(e){if(this.renderer||this.symbolizer){let t=await this._generateRasterInfo(this.rasterFunction,{signal:e});t&&(this.rasterInfo=t)}}_applyMosaicRule(e){let{raster:t,mosaicRule:i}=this;i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){let t=e.capabilities?e.capabilities.toLowerCase().split(",").map(e=>e.trim()):["image","catalog"],{currentVersion:i,maxRecordCount:r}=e,s=t.includes("image"),n="esriImageServiceDataTypeElevation"===e.serviceDataType,a=!(!e.spatialReference&&!e.extent?.spatialReference),o=t.includes("edit"),l=t.includes("mensuration")&&a,u=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map(e=>e.trim()),p=l&&u.includes("basic"),m=this._isMosaicDataset(e)&&t.includes("catalog"),c=t.includes("download"),d=i>=10.7&&n||i>=11.4&&(n||l&&u.includes("3d")),y=m&&e.fields&&e.fields.length>0,h=y&&e.supportsAdvancedQueries?e.advancedQueryCapabilities:void 0;return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsImageToMap:i>=11.2&&m,supportsImageToMapMultiray:i>=11.2&&m,supportsMapToImage:i>=11.2&&m,supportsFindImages:i>=11.2&&m,supportsGetImageUrl:i>=11.3&&c,supportsMeasure:l,supportsMeasureFromImage:i>=11.2,supportsDownload:c,supportsQuery:y,supportsGetSamples:i>=10.2&&s,supportsProject:i>=10.3&&s,supportsComputeStatisticsHistograms:i>=10.4&&s,supportsQueryBoundary:i>=10.6&&s,supportsCalculateVolume:d,supportsComputePixelLocation:i>=10.7&&m,supportsComputeAngles:i>=10.91,supportsQueryGPSInfo:i>=11.2&&m,supportsAdd:o,supportsDelete:o,supportsEditing:o,supportsUpdate:o,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:r,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:void 0,supportsStatisticsAggregatedIds:!!h?.supportsAggregateIds,supportsStatistics:!!h?.supportsStatistics,supportsOrderBy:!!h?.supportsOrderBy,supportsDistinct:!!h?.supportsDistinct,supportsPagination:!!h?.supportsPagination,supportsPaginationOnAggregatedQueries:!!h?.supportsPaginationOnAggregatedQueries,supportsStandardizedQueriesOnly:!!h?.useStandardizedQueries,supportsPercentileStatistics:!!h?.supportsPercentileStatistics,supportsCentroid:!!h?.supportsReturningGeometryCentroid,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!!h?.supportsQueryWithDistance,supportsOutDistance:!!h?.supportsOutDistance,supportsExtent:!!h?.supportsReturningQueryExtent,supportsGeometryProperties:!!h?.supportsReturningGeometryProperties,supportsHavingClause:!!h?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:h?.supportsSqlExpression??!!h,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!h?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:p,supportsAreaAndPerimeter:p,supportsPointOrCentroid:p,supportsHeightFromBaseAndTop:l&&u.includes("base-top height"),supportsHeightFromBaseAndTopShadow:l&&u.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:l&&u.includes("top-top shadow height"),supports3D:l&&u.includes("3d")}}}};function n(e){return e?.path??""}return(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"_functionRasterInfos",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"_serviceSupportsMosaicRule",void 0),(0,s.Cg)([(0,Qe.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],r.prototype,"readServiceSupportsMosaicRule",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"_rasterFunctionNamesIndex",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"_projectedFullExtent",void 0),(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"_exportTileQueue",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"adjustAspectRatio",void 0),(0,s.Cg)([(0,p.MZ)({type:[M.jz],json:{write:!0}})],r.prototype,"bandIds",void 0),(0,s.Cg)([(0,Qe.w)("bandIds")],r.prototype,"readBandIds",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],r.prototype,"capabilities",void 0),(0,s.Cg)([(0,Qe.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],r.prototype,"readCapabilities",null),(0,s.Cg)([(0,p.MZ)({type:Number})],r.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,ae.K)("compressionQuality")],r.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,p.MZ)({type:Number})],r.prototype,"compressionTolerance",void 0),(0,s.Cg)([(0,ae.K)("compressionTolerance")],r.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"defaultMosaicRule",void 0),(0,s.Cg)([(0,Qe.w)("defaultMosaicRule",["defaultMosaicMethod"])],r.prototype,"readDefaultMosaicRule",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],r.prototype,"definitionExpression",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,constructOnly:!0})],r.prototype,"exportImageServiceParameters",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"rasterInfo",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:[ue.A]})],r.prototype,"fields",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"fieldsIndex",null),(0,s.Cg)([(0,p.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],r.prototype,"format",null),(0,s.Cg)([(0,Qe.w)("service","format",["serviceDataType","allowRasterFunction"])],r.prototype,"readFormat",null),(0,s.Cg)([(0,p.MZ)({type:A.A})],r.prototype,"fullExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"hasMultidimensions",void 0),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"maxImageHeight"}}})],r.prototype,"imageMaxHeight",void 0),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"maxImageWidth"}}})],r.prototype,"imageMaxWidth",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{type:ne.SZ.jsonValues,read:ne.SZ.read,write:ne.SZ.write}})],r.prototype,"interpolation",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"minScale",void 0),(0,s.Cg)([(0,Qe.w)("service","minScale")],r.prototype,"readMinScale",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"maxScale",void 0),(0,s.Cg)([(0,Qe.w)("service","maxScale")],r.prototype,"readMaxScale",null),(0,s.Cg)([(0,p.MZ)({type:se.A})],r.prototype,"mosaicRule",null),(0,s.Cg)([(0,Qe.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],r.prototype,"readMosaicRule",null),(0,s.Cg)([(0,ae.K)("mosaicRule")],r.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"multidimensionalInfo",void 0),(0,s.Cg)([(0,p.MZ)({type:ce.A,json:{write:!0}})],r.prototype,"multidimensionalSubset",void 0),(0,s.Cg)([(0,p.MZ)({json:{type:[Number,[Number]],write:!0}})],r.prototype,"noData",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{type:ne.hm.jsonValues,read:ne.hm.read,write:ne.hm.write}})],r.prototype,"noDataInterpretation",void 0),(0,s.Cg)([(0,p.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],r.prototype,"objectIdField",void 0),(0,s.Cg)([(0,Qe.w)("objectIdField")],r.prototype,"readObjectIdField",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"geometryType",void 0),(0,s.Cg)([(0,p.MZ)({})],r.prototype,"typeIdField",void 0),(0,s.Cg)([(0,p.MZ)({})],r.prototype,"types",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,s.Cg)([(0,p.MZ)({type:Function})],r.prototype,"pixelFilter",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"raster",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"sourceType",void 0),(0,s.Cg)([(0,Qe.w)("sourceType",["serviceSourceType","fields"])],r.prototype,"readSourceType",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"viewId",void 0),(0,s.Cg)([(0,p.MZ)({types:we.uy})],r.prototype,"renderer",null),(0,s.Cg)([(0,p.MZ)({types:we.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:we.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],r.prototype,"internalRenderer",null),(0,s.Cg)([(0,Qe.w)("internalRenderer")],r.prototype,"readRenderer",null),(0,s.Cg)([(0,ae.K)("internalRenderer")],r.prototype,"writeRenderer",null),(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"symbolizer",void 0),(0,s.Cg)([(0,p.MZ)(_.ke)],r.prototype,"opacity",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"rasterFields",null),(0,s.Cg)([(0,p.MZ)({constructOnly:!0})],r.prototype,"rasterFunctionInfos",void 0),(0,s.Cg)([(0,p.MZ)({type:G.A,json:{name:"renderingRule"}})],r.prototype,"rasterFunction",null),(0,s.Cg)([(0,Qe.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],r.prototype,"readRasterFunction",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"serviceDataType",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:T.A})],r.prototype,"spatialReference",void 0),(0,s.Cg)([(0,Qe.w)("spatialReference",["spatialReference","extent"])],r.prototype,"readSpatialReference",null),(0,s.Cg)([(0,p.MZ)({type:ne.e8.apiValues,json:{read:ne.e8.read,type:ne.e8.jsonValues}})],r.prototype,"pixelType",void 0),(0,s.Cg)([(0,ae.K)("pixelType")],r.prototype,"writePixelType",null),(0,s.Cg)([(0,p.MZ)({constructOnly:!0,type:he.A})],r.prototype,"serviceRasterInfo",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,p.MZ)(_.OZ)],r.prototype,"url",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,s.Cg)([(0,Qe.w)("version",["currentVersion","fields","timeInfo"])],r.prototype,"readVersion",null),r=(0,s.Cg)([(0,p.$K)("esri.layers.mixins.ArcGISImageService")],r),r};var ai=i(18768),oi=i(63074),li=i(69208),ui=i(34287),pi=i(8303),mi=i(72545),ci=i(56551),di=i(54310),yi=i(25036),hi=i(82935),gi=i(91908),fi=i(24212),wi=i(30291),vi=i(88625),Ri=i(59923);let Ci=class extends((0,oi.dM)((0,hi.e)((0,yi.j)((0,ui.q)((0,pi.A)((0,ci.H)(ni((0,mi.G)((0,di.J)((0,li.d)((0,ai.b)((0,l.M)((0,a.OU)(w.A)))))))))))))){constructor(...e){super(...e),this.charts=null,this.graphicOrigin=new f(this),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.type="imagery",this._debouncedSaveOperations=(0,u.sg)(async(e,t,r)=>{let{save:s,saveAs:n}=await i.e(9838).then(()=>i(59838));switch(e){case 0:return s(this,t);case 1:return n(this,r,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){let{rasterFields:t}=this,i=new Set,r=ye.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,n=ye.Oo.toLowerCase(),a=`${ye.F_.servicePixelValue.toLowerCase()}.`;for(let e of t){let t=e.name.toLowerCase();t===r||t.startsWith(a)||s&&t.startsWith(n)||i.add(e.name)}let o=(0,wi.tn)({fields:t,title:this.title},{...e,visibleFieldNames:i}),{rasterInfo:l}=this;return o?.fieldInfos&&l&&(0,ye.h4)(o.fieldInfos,l),o}queryFeatures(e,t){return this.queryRasters(e,t).then(e=>{if(e?.features)for(let t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,gi.D)(this,e)}write(e,t){return this._isPreviewLayer?((0,Ri.U4)(t,this,"preview layer cannot be saved"),null):super.write(e,t)}_validateElevationInfo(e){(0,fi.XF)(o.A.getLogger(this),(0,fi.$7)("Imagery layers","relative-to-scene",e)),(0,fi.XF)(o.A.getLogger(this),(0,fi.tW)("Imagery layers",e))}};(0,s.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],Ci.prototype,"charts",void 0),(0,s.Cg)([(0,p.MZ)({type:vi.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],Ci.prototype,"elevationInfo",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],Ci.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,p.MZ)(_.fV)],Ci.prototype,"legendEnabled",null),(0,s.Cg)([(0,p.MZ)({type:["show","hide"]})],Ci.prototype,"listMode",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Ci.prototype,"isReference",void 0),(0,s.Cg)([(0,p.MZ)({type:["ArcGISImageServiceLayer"]})],Ci.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,p.MZ)(_.M6)],Ci.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,p.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],Ci.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Ci.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,p.MZ)(_.PY)],Ci.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],Ci.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Ci.prototype,"_isPreviewLayer",null),Ci=(0,s.Cg)([(0,p.$K)("esri.layers.ImageryLayer")],Ci);const bi=Ci},18768(e,t,i){var r=i(32198),s=i(53966),n=i(91429),a=i(60694);i.d(t,["b",0,e=>{let t=e,i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}])},56551(e,t,i){i.d(t,{H:()=>m});var r=i(32198),s=i(91429),n=i(69540),a=i(25482),o=i(78888),l=i(94359),u=i(93223);let p=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],p.prototype,"method",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"value",void 0),(0,r.Cg)([(0,s.MZ)({type:[o.jz],json:{write:{isRequired:!0}}})],p.prototype,"bandIds",void 0),(0,r.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],p.prototype,"renderer",void 0),p=(0,r.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],p);const m=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],i.prototype,"activePresetRendererName",void 0),(0,r.Cg)([(0,s.MZ)({type:[p],json:{name:"layerDefinition.presetRenderers",write:!0}})],i.prototype,"presetRenderers",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],i),i}},91908(e,t,i){i.d(t,{D:()=>n});var r=i(60694);const s=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;let{wkid:i}=t;for(let t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}s.push([10.91,()=>{let e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{let e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{let e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{let e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{let e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},82371(e,t,i){i.d(t,{E9:()=>y,Tw:()=>c,X6:()=>d});var r=i(56507),s=i(5443),n=i(86738),a=i(16930),o=i(87186),l=i(20223),u=i(2272),p=i(22671);async function m(e,t,i){let m=(0,u.Dl)(e),{rasterFunction:c,sourceJSON:d}=t||{},y=c?JSON.stringify(c.rasterFunctionDefinition||c):null,h=(0,u.lF)({...m.query,renderingRule:y,f:"json"}),g=(0,u.jV)(h,i);e=m.path;let f=d||await(0,r.A)(e,g).then(e=>e.data),{currentVersion:w}=f,v=f.hasRasterAttributeTable?(0,r.A)(`${e}/rasterAttributeTable`,g):null,R=f.hasColormap?(0,r.A)(`${e}/colormap`,g):null,C=f.hasHistograms?(0,r.A)(`${e}/histograms`,g):null,b=w>=10.3?(0,r.A)(`${e}/keyProperties`,g):null,S=f.hasMultidimensions?(0,r.A)(`${e}/multidimensionalInfo`,g):null,x=(c?w>=10.91:w>=10.81)?(0,r.A)(`${e}/statistics`,g):null,I=await Promise.allSettled([v,R,C,b,S,x]),M=s.A.fromJSON(f.extent),F=Math.ceil(M.width/f.pixelSizeX-.1),A=Math.ceil(M.height/f.pixelSizeY-.1),D=a.A.fromJSON(f.spatialReference||f.extent.spatialReference),T="fulfilled"===I[0].status?I[0].value?.data:null,P=T?.features?.length?p.A.fromJSON(T):null,j="fulfilled"===I[1].status?I[1].value?.data.colormap:null,N=j?.length?j:null,O="fulfilled"===I[2].status?I[2].value?.data.histograms:null,Z=O?.[0]?.counts?.length?O:null,_="fulfilled"===I[3].status?I[3].value?.data??{}:{},V="fulfilled"===I[4].status?I[4].value?.data.multidimensionalInfo:null,q=V?.variables?.length?V:null;var E;(E=q)&&E.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"===e.name&&!e.recurring&&!e.unit&&(e.unit="ISO8601")})});let J=function(e,t){let i=null;t&&t.length===e.bandCount&&(i=t.map(e=>{let t=e.covariances?.trim(),i=t?t.split(",").map(Number):void 0;return{avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum,covariances:i}}));let r=e.minValues?.length===e.bandCount?e.minValues.map((t,i)=>({min:t,max:e.maxValues[i],avg:e.meanValues[i],stddev:e.stdvValues[i]})):null;return null==r||null==i||i.some((e,t)=>e.min!==r[t]?.min||e.max!==r[t]?.max||e.avg!==r[t]?.avg||e.stddev!==r[t]?.stddev)?r:i}(f,"fulfilled"===I[5].status?I[5].value?.data.statistics:null),{defaultVariable:G,serviceDataType:$}=f;G&&G!==_.DefaultVariable&&(_.DefaultVariable=G),$?.includes("esriImageServiceDataTypeVector")&&!$.includes(_.DataType)&&(_.DataType=$.replace("esriImageServiceDataType",""));let z=f.noDataValue;f.noDataValues?.length&&f.noDataValues.some(e=>e!==z)&&(z=f.noDataValues);let L=f.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:f.extent.xmin,y:f.extent.ymax,spatialReference:D}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(F,A))/Math.LN2-8)),transposeInfo:f.transposeInfo}):void 0;return new o.A({width:F,height:A,bandCount:f.bandCount,extent:s.A.fromJSON(f.extent),spatialReference:D,pixelSize:new n.A({x:f.pixelSizeX,y:f.pixelSizeY,spatialReference:D}),pixelType:f.pixelType.toLowerCase(),statistics:J,attributeTable:P,colormap:N,histograms:Z,keyProperties:_,noDataValue:z,multidimensionalInfo:q,storageInfo:L})}function c(e,t,i){return m(e,{sourceJSON:t},i)}function d(e,t,i){return m(e,{rasterFunction:t},i)}function y(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},20615(e,t,i){i.d(t,{I:()=>a});var r=i(2272),s=i(80893),n=i(97552);function a(e,t,i,a){return(0,s.gW)((0,r.Dl)(e),n.A.from(t),i,a)}},74910(e,t,i){i.d(t,{L:()=>o});var r=i(5443),s=i(2272),n=i(80893),a=i(97552);async function o(e,t,i){let o=(0,s.Dl)(e),l=await(0,n.Jf)(o,a.A.from(t),{...i}),u=l.extent;return!u||isNaN(u.xmin)||isNaN(u.ymin)||isNaN(u.xmax)||isNaN(u.ymax)?{count:l.count,extent:null}:{count:l.count,extent:r.A.fromJSON(u)}}},78286(e,t,i){i.d(t,{V:()=>a});var r=i(2272),s=i(80893),n=i(97552);async function a(e,t,i,a){let o=(0,r.Dl)(e),l=await(0,s.Pk)(o,n.A.from(t),i,a);return l.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(l.uniqueIds)??[]}},99199(e,t,i){i.d(t,{e:()=>l,s:()=>o});var r=i(2272),s=i(80893),n=i(22671),a=i(97552);async function o(e,t,i,r){let s=await l(e,t,i,r);return n.A.fromJSON(s)}function l(e,t,i,n){let o=(0,r.Dl)(e),l={...i},u=a.A.from(t);return(0,s.eW)(o,u,u.sourceSpatialReference,l,n)}},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>m,jV:()=>l,lF:()=>p});var r=i(92602),s=i(70333),n=i(4718),a=i(84952),o=i(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,a.An)(e):(0,n.o8)(e)}function p(e,t,i){let r={};for(let s in e){if("declaredClass"===s)continue;let n=e[s];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))r[s]=n.map(e=>p(e));else if("object"==typeof n)if(n.toJSON){let e=n.toJSON(i?.[s]);r[s]=t?e:JSON.stringify(e)}else r[s]=t?n:JSON.stringify(n);else r[s]=n}return r}async function m(e,t,n){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??s.id?.findCredential(e)?.token:null}(e,t)||(!s.id&&r.A.request.useIdentity&&await Promise.all([i.e(6361),i.e(8971),i.e(7715)]).then(()=>i(50148)),(await s.id.getCredential(e,n))?.token)}},24212(e,t,i){i.d(t,{$7:()=>l,B:()=>o,M7:()=>m,XF:()=>p,tW:()=>u,w7:()=>a});var r=i(56512),s=i(86211),n=i(16271);function a(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?c:d}(e).mode}(null==e||(e.hasZ??!1),t)}function o(e,t,i){return i&&i.mode!==t?`${e} only support ${t} elevation mode`:null}function l(e,t,i){return i?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function p(e,t){t&&e.warn(".elevationInfo=",t)}function m(e){return(e?.offset??0)*(0,n.Ao)(e?.unit)}(0,r.B)((e,t,i)=>{if(!e||"decimal-degrees"===t)return 0;let r="unknown"!==t&&t?t:"meters",n=(0,s.mq)(i);return n?(0,s.oU)(e,r,n):0});const c={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7772],{56512(e,t,i){function r(e){let t,i,r=[],s=!1;return function(...n){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0}(n,r)||(i=e.apply(this,n),t=this,r=n,s=!0),i}}i.d(t,{B:()=>r})},74379(e,t,i){i.d(t,{t:()=>s});const r=Symbol("isImageryGraphicOrigin");function s(e){return!!e&&r in e}i.d(t,["V",0,r])},87772(e,t,i){i.r(t),i.d(t,{default:()=>bi});var r,s=i(32198),n=i(37838),a=i(69540),o=i(53966),l=i(25728),u=i(17676),p=i(91429),m=i(41910),c=i(55156),d=i(60950),y=i(89808),h=i(99959),g=i(74379);class f extends h.A{get[(r=g.V,d.ym)](){return this.layer}get[c.e](){return this.layer}get[y.Q](){return this.layer}get[m.e7](){return this.layer}constructor(e){super(),this[r]=!0,this.type="imagery",this.layer=e}get id(){return this.layer.id}}var w=i(4146),v=i(52106),R=i(56507),C=i(49186),b=i(4718),S=i(563),x=i(36708),I=i(84952),M=i(78888),F=i(62788),A=i(5443),D=i(39829),T=i(16930),P=i(21325),j=i(4366),N=i(96381),O=i(47520),Z=i(34251),_=i(10873),V=i(45617),q=i(25482),E=i(94778);const J={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var G=i(22796),$=i(67369),z=i(70274),L=i(48940);const U=new Set(["u1","u2","u4","u8","s8","u16","s16"]),B={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},K=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function k(e){return K.has(e.type)}function Q(e,t){if(!e||!t)return(0,b.o8)(e||t);let i=(0,b.o8)(e);if(i.functionDefinition&&t.rasterFunctionDefinition){let e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),H(i.functionDefinition.arguments,t),i.rasterFunctionDefinition=i.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&(X(i.functionArguments).Raster=t);return i}function H(e,t){for(let i in e)"raster"===i.toLowerCase()&&("RasterFunctionVariable"===e[i].type?(e[i]=t.rasterFunctionDefinition,e[i].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[i].type&&H(e[i].arguments,t))}function W(e){let t=(0,b.o8)(J[e.functionName+"Function"]),i=e.functionArguments;for(let e in i)"raster"===e.toLowerCase()?(t.arguments[e]=W(i[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=re(i[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=i[e];return e.outputPixelType&&t.function&&(t.function.pixelType=e.outputPixelType.toUpperCase()),t}function X(e){let t=e?.Raster??e?.raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?X(t.functionArguments):e}const Y={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function ee(e,t){let i=U.has(t)?(0,E.hP)(t):null;return i&&e.push([Math.floor(i[0]-1),0,0,0],[Math.ceil(i[1]+1),0,0,0]),e}function te(e){if(null==e)return;let{fields:t}=e;return t?.find(e=>e?.name&&"value"===e.name.toLowerCase())?.name}function ie(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find(e=>"fill"===e.type)?.material?.color:e.symbol?.color}function re(e){let t=[],i=[];return e.forEach(e=>{t.push(e[0]),i.push((0,$.vL)([...e.slice(1),255]))}),{type:"RasterColormap",values:t,colors:i}}var se=i(85675),ne=i(13868),ae=i(43937);let oe=class extends q.o{constructor(){super(...arguments),this.layer=null,this.requestRawData=!1,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,i){this.layer.version<10.3||(t[i]=e)}get bandIds(){return this.requestRawData?this.rawDataRequestBandIds:this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,i){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[i]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}get format(){let e=this.layer.renderer?.type;return this.requestRawData||"vector-field"===e||"flow"===e?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){let{layer:e}=this;return e.pixelType===e.serviceRasterInfo.pixelType?void 0:e.pixelType}writeLercVersion(e,t,i){"lerc"===this.format&&this.layer.version>=10.5&&(t[i]=e)}get version(){let e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){let e=this.layer,t=e.mosaicRule,i=e.definitionExpression;if(t?i&&i!==t.where&&(t=t.clone(),t.where=i):i&&(t=new se.A({where:i})),!t?.itemRasterFunction){let i=e.rasterFunction,r=le(i,e.rasterFunctionInfos)?i:null;r&&(t=t?t.clone():new se.A,t.itemRasterFunction=r)}return t}get rasterFunction(){let e=this.layer,{rasterFunction:t,rasterInfo:i}=e;t=le(t,e.rasterFunctionInfos)?null:t?.clone(),t&&"lerc"===this.format&&1===i?.bandCount&&i.colormap&&(t=function(e,t){let[i,r]=(0,E.hP)(t);return Q(new G.A({functionName:"Stretch",functionArguments:{StretchType:5,UseGamma:!1,Min:i,Max:r,Statistics:[[i,r,1,1]]}}),e)}(t,i.pixelType));let r=e.multidimensionalSubset?.areaOfInterest;return r&&(t=function(e,t){return Q(new G.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)}(t,r)),!this.requestRawData&&e.isRenderedFormat&&!e.pixelFilter&&"vector-field"!==e.renderer?.type&&(t=this.combineRendererWithRenderingRule(t)),t}combineRendererWithRenderingRule(e){let t=this.layer,{rasterInfo:i,renderer:r}=t;return r&&k(r)?Q(function(e,t){switch(t||={},e.type){case"raster-stretch":return function(e,t){let i=t.convertToRFT,r=new G.A;r.functionName="Stretch";let s=Y[z.u.toJSON(e.stretchType)],n={StretchType:s,Statistics:e.customStatistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]),DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(n.Min=e.outputMin),null!=e.outputMax&&(n.Max=e.outputMax),s===Y.standardDeviation?(n.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType="u8"):s===Y.percentClip?(n.MinPercent=e.minPercent,n.MaxPercent=e.maxPercent,r.outputPixelType="u8"):s===Y.minMax?r.outputPixelType="u8":s===Y.sigmoid&&(n.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=n,r.variableName="Raster",e.colorRamp){let s=e.colorRamp,n=new G.A;if(i)n.functionArguments={ColorRamp:(0,$.hf)(s)};else{let i=(0,$.hs)(s,!0);if(i)n.functionArguments={colorRampName:i};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){let t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach(e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm"),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,$.R8)(s)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=r,i?new G.A({rasterFunctionDefinition:W(n)}):n}return i?new G.A({rasterFunctionDefinition:W(r)}):r}(e,t);case"class-breaks":return function(e,t){let i=[],r=[],s=[],n=[],a=1e-4,{pixelType:o,rasterAttributeTable:l}=t,u=null==l?null:l.features,p=te(l);if(p&&u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach((t,i)=>{let r,s=t.symbol?.color;s?.a&&null!=t.minValue&&null!=t.maxValue&&u.forEach(a=>{null!=t.minValue&&null!=t.maxValue&&(r=a.attributes[e.field],(r>=t.minValue&&r<t.maxValue||i===e.classBreakInfos.length-1&&r>=t.minValue)&&n.push([a.attributes[p],s.r,s.g,s.b]))})});let i=o?ee(n,o):n,r=new G.A;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=i,r.variableName="Raster",t.convertToRFT?new G.A({rasterFunctionDefinition:W(r)}):r}e.classBreakInfos.forEach((e,t)=>{if(null==e.minValue||null==e.maxValue)return;let o=e.symbol&&e.symbol.color;o?.a?(0===t?i.push(e.minValue,e.maxValue+a):i.push(e.minValue+a,e.maxValue+a),r.push(t),n.push([t,o.r,o.g,o.b])):s.push(e.minValue,e.maxValue)});let m=o?ee(n,o):n,c=new G.A;c.functionName="Remap",c.functionArguments={InputRanges:i,OutputValues:r,NoDataRanges:s},c.variableName="Raster";let d=new G.A;return d.functionName="Colormap",d.functionArguments={Colormap:m,Raster:c},t.convertToRFT?new G.A({rasterFunctionDefinition:W(d)}):d}(e,t);case"unique-value":return function(e,t){let i=[],{pixelType:r,rasterAttributeTable:s}=t,n=null==s?null:s.features,a=te(s),o=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(n){if(a){let t=new Map;l.forEach(e=>{let i=e.value,r=ie(e);null!=i&&r?.a&&t.set(String(i),r.toRgb())});let r=e.field;r&&n.forEach(({attributes:e})=>{let s=String(e[r]),n=e[a],l=t.get(s);l?i.push([n,...l]):o&&i.push([n,...o])})}}else for(let e=0;e<l.length;e++){let t=l[e],r=ie(t),s=+t.value;if(r?.a){if(isNaN(s))return null;i.push([s,r.r,r.g,r.b])}}let u=r?ee(i,r):i,p=new G.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new G.A({rasterFunctionDefinition:W(p)}):p}(e,t);case"raster-colormap":return function(e,t){let i=e.extractColormap();if(!i||0===i.length)return null;let{pixelType:r}=t,s=r?ee(i,r):i,n=new G.A;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new G.A({rasterFunctionDefinition:W(n)}):n}(e,t);case"vector-field":return function(e,t){let i=new G.A;i.functionName="VectorFieldRenderer";let r,s,{dataType:n,bandNames:a}=t,o="vector-uv"===n;if(2===a?.length){let e=a.map(e=>e.toLowerCase());r=e.indexOf("magnitude"),s=e.indexOf("direction")}(-1===r||null===r)&&(r=0,s=1);let l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find(e=>"Magnitude"===e.field):new L.A;i.functionArguments={magnitudeBandID:r,directionBandID:s,isUVComponents:o,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:B[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};let m=W(i);return t.convertToRFT?G.A.fromJSON({rasterFunctionDefinition:m}):i}(e,t);case"raster-shaded-relief":return function(e,t){let i=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new G.A;let r=new G.A;r.functionName="Hillshade";let s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,a={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(a.Azimuth=e.azimuth,a.Altitude=e.altitude),3===n&&(a.PSPower=e.pixelSizePower,a.PSZFactor=e.pixelSizeFactor),r.functionArguments=a,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",i?a.ColorRamp=(0,$.hf)(e.colorRamp):a.Colormap=(0,$.R8)(e.colorRamp)),i?new G.A({rasterFunctionDefinition:W(r)}):r}(e,t);case"flow":throw Error("Unsupported rendering rule.")}}(r,{rasterAttributeTable:i.attributeTable,pixelType:i.pixelType,dataType:i.dataType,bandNames:i.bandInfos.map(({name:e})=>e),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:i.bandCount}),e):e}};function le(e,t){if(!e)return!1;let i=e.functionDefinition;if(i)return"item"===i.functionType||"item-group"===i.functionType;let r=e?.functionName?.toLowerCase(),s=r?t?.find(({name:e})=>e.toLowerCase()===r):null;return 1===s?.functionType||2===s?.functionType}(0,s.Cg)([(0,p.MZ)()],oe.prototype,"layer",void 0),(0,s.Cg)([(0,p.MZ)()],oe.prototype,"requestRawData",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"adjustAspectRatio",null),(0,s.Cg)([(0,ae.K)("adjustAspectRatio")],oe.prototype,"writeAdjustAspectRatio",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"bandIds",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"rawDataRequestBandIds",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"compression",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"compressionQuality",null),(0,s.Cg)([(0,ae.K)("compressionQuality")],oe.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"compressionTolerance",null),(0,s.Cg)([(0,ae.K)("compressionTolerance")],oe.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"format",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:{reader:ne.SZ.read},write:{writer:ne.SZ.write}}})],oe.prototype,"interpolation",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"noData",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:{reader:ne.hm.read},write:{writer:ne.hm.write}}})],oe.prototype,"noDataInterpretation",null),(0,s.Cg)([(0,p.MZ)({type:ne.e8.apiValues,json:{read:ne.e8.read,write:ne.e8.write}})],oe.prototype,"pixelType",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"lercVersion",void 0),(0,s.Cg)([(0,ae.K)("lercVersion")],oe.prototype,"writeLercVersion",null),(0,s.Cg)([(0,p.MZ)({type:Number})],oe.prototype,"version",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],oe.prototype,"mosaicRule",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0,name:"renderingRule"}})],oe.prototype,"rasterFunction",null),oe=(0,s.Cg)([(0,p.$K)("esri.layers.support.ExportImageServiceParameters")],oe);var ue=i(20437),pe=i(95466),me=i(33446),ce=i(43577),de=i(14140),ye=i(74797),he=i(87186),ge=i(12711),fe=i(85676),we=i(94359),ve=i(65864),Re=i(52039),Ce=i(2272),be=i(86738);let Se=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0}})],Se.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0,write:!0}})],Se.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Se.prototype,"objectIds",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Se.prototype,"where",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Se.prototype,"maxCount",void 0),Se=(0,s.Cg)([(0,p.$K)("esri.rest.support.FindImagesParameters")],Se);const xe=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"make",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"model",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"focalLength",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"rows",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"cols",void 0),i=(0,s.Cg)([(0,p.$K)("esri.rest.support.CameraInfoMixin")],i),i};let Ie=class extends(xe(q.o)){constructor(e){super(e),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ie.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"uri",write:!0}})],Ie.prototype,"referenceUri",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:!0}})],Ie.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,ae.K)("acquisitionDate")],Ie.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ie.prototype,"cameraID",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],Ie.prototype,"center",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],Ie.prototype,"perspectiveCenter",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ie.prototype,"orientation",void 0),Ie=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageInspectionInfo")],Ie);const Me=Ie;let Fe=class extends q.o{constructor(e){super(e),this.images=null}};var Ae;(0,s.Cg)([(0,p.MZ)({type:[Me],json:{write:!0}})],Fe.prototype,"images",void 0),Fe=(0,s.Cg)([(0,p.$K)("esri.rest.support.FindImagesResult")],Fe);let De=Ae=class extends q.o{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new Ae((0,b.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,s.Cg)([(0,p.MZ)({type:[String],json:{name:"angleName",write:!0}})],De.prototype,"angleNames",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],De.prototype,"point",void 0),(0,s.Cg)([(0,p.MZ)({type:T.A,json:{write:!0}})],De.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.MZ)({type:M.jz,json:{write:!0}})],De.prototype,"rasterId",void 0),De=Ae=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAngleParameters")],De);let Te=class extends q.o{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Te.prototype,"north",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Te.prototype,"up",void 0),(0,s.Cg)([(0,p.MZ)({type:T.A,json:{write:!0}})],Te.prototype,"spatialReference",void 0),Te=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAngleResult")],Te);var Pe=i(86211),je=i(60408),Ne=i(50498),Oe=i(66552);const Ze=new Oe.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let _e=class extends q.o{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};var Ve;(0,s.Cg)([(0,p.MZ)()],_e.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({type:Ze.apiValues,json:{read:Ze.read,write:Ze.write}})],_e.prototype,"measureOperation",void 0),(0,s.Cg)([(0,p.MZ)({type:se.A,json:{write:!0}})],_e.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],_e.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],_e.prototype,"raster",void 0),_e=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureParameters")],_e);let qe=Ve=class extends _e{constructor(e){super(e),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new Ve((0,b.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"fromGeometry",read:!0,write:!0}})],qe.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],qe.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:Ze.apiValues,json:{write:Ze.write}})],qe.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],qe.prototype,"is3D",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:Pe.Sk.read,write:Pe.Sk.write}})],qe.prototype,"linearUnit",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:Pe.dk.read,write:Pe.dk.write}})],qe.prototype,"areaUnit",void 0),qe=Ve=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAreaParameters")],qe);let Ee=class extends q.o{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Ee.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Ee.prototype,"sensorName",void 0),Ee=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureResult")],Ee);var Je=i(64108);let Ge=class extends q.o{constructor(e){super(e),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,s.Cg)([(0,p.MZ)({type:String})],Ge.prototype,"unit",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],Ge.prototype,"value",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Ge.prototype,"displayValue",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],Ge.prototype,"uncertainty",void 0),Ge=(0,s.Cg)([(0,p.$K)("esri.rest.support.BaseImageMeasureResultValue")],Ge);const $e=Ge;let ze=class extends $e{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:Pe.dk.read,write:Pe.dk.write}})],ze.prototype,"unit",void 0),ze=(0,s.Cg)([(0,Je.$)("esri.rest.support.ImageMeasureResultAreaValue")],ze);const Le=ze;let Ue=class extends $e{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:Pe.Sk.read,write:Pe.Sk.write}})],Ue.prototype,"unit",void 0),Ue=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageMeasureResultLengthValue")],Ue);const Be=Ue;let Ke=class extends Ee{constructor(e){super(e),this.area=null,this.perimeter=null}};(0,s.Cg)([(0,p.MZ)({type:Le,json:{read:!0,write:!0}})],Ke.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({type:Be,json:{read:!0,write:!0}})],Ke.prototype,"perimeter",void 0),Ke=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageAreaResult")],Ke);let ke=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.outSpatialReference=null}};(0,s.Cg)([(0,p.MZ)({type:T.A,json:{name:"outSR",write:!0}})],ke.prototype,"outSpatialReference",void 0),ke=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageBoundaryParameters")],ke);var Qe=i(36005);let He=class extends q.o{constructor(e){super(e),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?D.A.fromJSON(e):A.A.fromJSON(e)}};var We;(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],He.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"shape",write:!0}})],He.prototype,"geometry",void 0),(0,s.Cg)([(0,Qe.w)("geometry")],He.prototype,"readGeometry",null),He=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageBoundaryResult")],He);let Xe=We=class extends _e{constructor(e){super(e),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new We((0,b.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0,write:!0}})],Xe.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,ae.K)("fromGeometry")],Xe.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0,write:!0}})],Xe.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:Ze.apiValues,json:{write:Ze.write}})],Xe.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],Xe.prototype,"is3D",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:Pe.Sk.read,write:Pe.Sk.write}})],Xe.prototype,"linearUnit",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:Pe.b$.read,write:Pe.b$.write}})],Xe.prototype,"angularUnit",void 0),Xe=We=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageDistanceParameters")],Xe);let Ye=class extends $e{constructor(e){super(e),this.unit=null}};(0,s.Cg)([(0,p.MZ)({json:{read:Pe.b$.read,write:Pe.b$.write}})],Ye.prototype,"unit",void 0),Ye=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageMeasureResultAngleValue")],Ye);const et=Ye;let tt=class extends Ee{constructor(e){super(e),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,s.Cg)([(0,p.MZ)({type:Be,json:{read:!0,write:!0}})],tt.prototype,"distance",void 0),(0,s.Cg)([(0,p.MZ)({type:et,json:{read:!0,write:!0}})],tt.prototype,"azimuthAngle",void 0),(0,s.Cg)([(0,p.MZ)({type:et,json:{read:!0,write:!0}})],tt.prototype,"elevationAngle",void 0),tt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageDistanceResult")],tt);var it=i(58174),rt=i(79677),st=i(93223);let nt=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=JSON.stringify(e.toJSON()))}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{read:ve.rS,write:!0}})],nt.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],nt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],nt.prototype,"objectIds",void 0),(0,s.Cg)([(0,st.e)(it.x,{ignoreUnknown:!1,name:"spatialRel"})],nt.prototype,"spatialRelationship",void 0),(0,s.Cg)([(0,p.MZ)({type:rt.A,json:{name:"time",write:!0}})],nt.prototype,"timeExtent",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],nt.prototype,"where",void 0),nt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfoParameters")],nt);let at=class extends(xe(q.o)){constructor(e){super(e),this.id=null}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],at.prototype,"id",void 0),at=(0,s.Cg)([(0,p.$K)("esri.rest.support.CameraInfo")],at);const ot=at;let lt=class extends q.o{constructor(e){super(e),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],lt.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],lt.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:!0}})],lt.prototype,"acquisitionDate",void 0),(0,s.Cg)([(0,ae.K)("acquisitionDate")],lt.prototype,"writeAcquisitionDate",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],lt.prototype,"cameraID",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],lt.prototype,"center",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],lt.prototype,"gps",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],lt.prototype,"orientation",void 0),lt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfo")],lt);const ut=lt;let pt=class extends q.o{constructor(e){super(e),this.images=null,this.cameras=null}};var mt;(0,s.Cg)([(0,p.MZ)({type:[ut],json:{write:!0}})],pt.prototype,"images",void 0),(0,s.Cg)([(0,p.MZ)({type:[ot],json:{write:!0}})],pt.prototype,"cameras",void 0),pt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageGPSInfoResult")],pt);let ct=mt=class extends _e{constructor(e){super(e),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new mt((0,b.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0}})],ct.prototype,"fromGeometry",void 0),(0,s.Cg)([(0,ae.K)("fromGeometry")],ct.prototype,"writeFromGeometry",null),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{read:!0,write:!0}})],ct.prototype,"toGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:Ze.apiValues,json:{write:Ze.write}})],ct.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],ct.prototype,"operationType",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{read:Pe.Sk.read,write:Pe.Sk.write}})],ct.prototype,"linearUnit",void 0),ct=mt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageHeightParameters")],ct);let dt=class extends Ee{constructor(e){super(e),this.height=null}};(0,s.Cg)([(0,p.MZ)({type:Be,json:{read:!0,write:!0}})],dt.prototype,"height",void 0),dt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageHeightResult")],dt);var yt,ht=i(22048);let gt=yt=class extends q.o{constructor(e){super(e),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=se.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=G.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[i]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,i){null!=e&&(t[i]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,i){null!=e&&(t[i]=JSON.stringify(e))}writeTimeExtent(e,t,i){if(null!=e){let r=null==e.start?null:e.start.getTime(),s=null==e.end?null:e.end.getTime();t[i]=null==r?null:null==s?`${r}`:`${r},${s}`}}clone(){return new yt((0,b.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{write:!0}})],gt.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],gt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:se.A,json:{write:!0}})],gt.prototype,"mosaicRule",null),(0,s.Cg)([(0,ae.K)("mosaicRule")],gt.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,p.MZ)({type:G.A,json:{write:!0,name:"renderingRule"}})],gt.prototype,"rasterFunction",null),(0,s.Cg)([(0,ae.K)("rasterFunction")],gt.prototype,"writeRasterFunction",null),(0,s.Cg)([(0,p.MZ)({type:[G.A],json:{write:!0,name:"renderingRules"}})],gt.prototype,"rasterFunctions",void 0),(0,s.Cg)([(0,ae.K)("rasterFunctions")],gt.prototype,"writeRasterFunctions",null),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],gt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,ae.K)("pixelSize")],gt.prototype,"writePixelSize",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"returnCatalogItems",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"returnPixelValues",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],gt.prototype,"maxItemCount",void 0),(0,s.Cg)([(0,p.MZ)({type:rt.A,json:{write:{target:"time"}}})],gt.prototype,"timeExtent",void 0),(0,s.Cg)([(0,ae.K)("timeExtent")],gt.prototype,"writeTimeExtent",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],gt.prototype,"raster",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],gt.prototype,"viewId",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"processAsMultidimensional",void 0),gt=yt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageIdentifyParameters")],gt);var ft=i(22671);let wt=class extends q.o{constructor(e){super(e),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};var vt;(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"catalogItemVisibilities",void 0),(0,s.Cg)([(0,p.MZ)({type:ft.A,json:{write:!0}})],wt.prototype,"catalogItems",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],wt.prototype,"location",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"name",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"objectId",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"processedValues",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"properties",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"value",void 0),wt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageIdentifyResult")],wt);let Rt=vt=class extends q.o{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,i){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new vt({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};(0,s.Cg)([(0,p.MZ)({type:[be.A],json:{write:!0}})],Rt.prototype,"geometries",void 0),(0,s.Cg)([(0,ae.K)("geometries")],Rt.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:M.jz,json:{write:!0}})],Rt.prototype,"rasterId",void 0),Rt=vt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePixelLocationParameters")],Rt);let Ct=class extends q.o{constructor(e){super(e),this.geometries=null}};var bt;(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Ct.prototype,"geometries",void 0),Ct=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePixelLocationResult")],Ct);let St=bt=class extends _e{constructor(e){super(e),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=e.toJSON())}get measureOperation(){let{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new bt((0,b.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"fromGeometry",read:ve.rS}})],St.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],St.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({type:Ze.apiValues,json:{read:Ze.read,write:Ze.write}})],St.prototype,"measureOperation",null),(0,s.Cg)([(0,p.MZ)({json:{read:!0}})],St.prototype,"is3D",void 0),St=bt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePointParameters")],St);let xt=class extends Ee{constructor(e){super(e),this.point=null}};(0,s.Cg)([(0,p.MZ)({type:be.A,json:{name:"point.value",read:!0,write:!0}})],xt.prototype,"point",void 0),xt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImagePointResult")],xt);var It=i(34606),Mt=i(29127);let Ft=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,i){t.geometries=e?.length?{geometryType:(0,je.$B)(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};(0,s.Cg)([(0,p.MZ)({types:[Ne.yR]})],Ft.prototype,"geometries",void 0),(0,s.Cg)([(0,ae.K)("geometries")],Ft.prototype,"writeGeometries",null),(0,s.Cg)([(0,p.MZ)({type:[M.jz],json:{write:!0}})],Ft.prototype,"rasterIds",void 0),(0,s.Cg)([(0,p.MZ)({type:T.A,json:{name:"outSR",write:!0}})],Ft.prototype,"outSpatialReference",void 0),Ft=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageToMapMultirayParameters")],Ft);let At=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{read:ve.rS,write:!0}})],At.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],At.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],At.prototype,"rasterId",void 0),(0,s.Cg)([(0,p.MZ)({type:T.A,json:{name:"outSR",write:!0}})],At.prototype,"outSpatialReference",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.DOff",write:!0}})],At.prototype,"depthOffset",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.Adjust",write:!0}})],At.prototype,"adjust",void 0),At=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageToMapParameters")],At);let Dt=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};(0,s.Cg)([(0,p.MZ)({type:String,json:{name:"uri",write:!0}})],Dt.prototype,"referenceUri",void 0),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Dt.prototype,"rasterId",void 0),Dt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageUrlParameters")],Dt);let Tt=class extends q.o{constructor(e){super(e),this.url=null}};(0,s.Cg)([(0,p.MZ)({json:{name:"imageURL",write:!0}})],Tt.prototype,"url",void 0),Tt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageUrlResult")],Tt);const Pt=new Oe.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0});let jt=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,i){e?.length&&(t.geometryType=(0,je.$B)(e[0]),t.geometries=e.map(e=>e.toJSON()))}};(0,s.Cg)([(0,p.MZ)({types:[Ne.yR]})],jt.prototype,"geometries",void 0),(0,s.Cg)([(0,ae.K)("geometries")],jt.prototype,"writeGeometries",null),(0,s.Cg)([(0,p.MZ)({type:se.A,json:{write:!0}})],jt.prototype,"mosaicRule",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{write:!0}})],jt.prototype,"pixelSize",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],jt.prototype,"constantZ",void 0),(0,s.Cg)([(0,p.MZ)({type:Pt.apiValues,json:{read:Pt.read,write:Pt.write}})],jt.prototype,"baseType",void 0),jt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolumeParameters")],jt);let Nt=class extends q.o{constructor(e){super(e),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"cut",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"fill",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"maxz",write:!0}})],Nt.prototype,"maxZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"minz",write:!0}})],Nt.prototype,"minZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"meanz",write:!0}})],Nt.prototype,"meanZ",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"cutCellCount",void 0),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Nt.prototype,"fillCellCount",void 0),Nt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolume")],Nt);const Ot=Nt;let Zt=class extends q.o{constructor(e){super(e),this.volumes=[]}};(0,s.Cg)([(0,p.MZ)({type:[Ot],json:{write:!0}})],Zt.prototype,"volumes",void 0),Zt=(0,s.Cg)([(0,p.$K)("esri.rest.support.ImageVolumeResult")],Zt);let _t=class extends((0,a.OU)(q.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]=JSON.stringify(e))}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{read:ve.rS,write:!0}})],_t.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],_t.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],_t.prototype,"rasterId",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"options.VisibleOnly",write:!0}})],_t.prototype,"visibleOnly",void 0),_t=(0,s.Cg)([(0,p.$K)("esri.rest.support.MapToImageParameters")],_t);let Vt=class extends q.o{constructor(e){super(e),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),be.A.fromJSON(e)}};var qt;(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"Shape",read:ve.rS,write:!0}})],Vt.prototype,"geometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Length",write:!0}})],Vt.prototype,"length",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Area",write:!0}})],Vt.prototype,"area",void 0),(0,s.Cg)([(0,p.MZ)({type:be.A,json:{name:"Center",write:!0}})],Vt.prototype,"center",void 0),(0,s.Cg)([(0,Qe.w)("center")],Vt.prototype,"readCenter",null),Vt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureAreaFromImageResult")],Vt);let Et=qt=class extends q.o{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,je.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}clone(){let e=(0,b.o8)({geometry:this.geometry,rasterId:this.rasterId});return new qt(e)}};(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"fromGeometry",read:ve.rS,write:!0}})],Et.prototype,"geometry",void 0),(0,s.Cg)([(0,ae.K)("geometry")],Et.prototype,"writeGeometry",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],Et.prototype,"rasterId",void 0),Et=qt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureFromImageParameters")],Et);let Jt=class extends q.o{constructor(e){super(e),this.geometry=null,this.length=null}};function Gt(e){let t=e?.time;if(t&&(null!=t.start||null!=t.end)){let i=[];null!=t.start&&i.push(t.start),null!=t.end&&!i.includes(t.end)&&i.push(t.end),e.time=i.join(",")}}async function $t(e,t,i){let r=(0,M.PZ)(ht.A,t),s=(0,Ce.Dl)(e),n=r.geometry?[r.geometry]:[],a=await(0,Re.el)(n),o=r.toJSON();Gt(o);let l=a?.[0];null!=l&&(o.geometry=kt(l));let u=(0,Ce.lF)({...s.query,f:"json",...o});return(0,Ce.jV)(u,i)}async function zt(e,t,i){let r=(0,M.PZ)(De,t),s=r.toJSON();null!=s.angleName&&(s.angleName=s.angleName.join(",")),r?.point?.spatialReference?.imageCoordinateSystem&&(s.point.spatialReference=Qt(r.point.spatialReference)),r?.spatialReference?.imageCoordinateSystem&&(s.spatialReference=Ht(r.spatialReference));let n=(0,Ce.Dl)(e),a=(0,Ce.lF)({...n.query,f:"json",...s}),o=(0,Ce.jV)(a,i),{data:l}=await(0,R.A)(`${n.path}/computeAngles`,o);return l.spatialReference=l.spatialReference?null==l.spatialReference.geodataXform?T.A.fromJSON(l.spatialReference):new T.A({wkid:0,imageCoordinateSystem:l.spatialReference}):null,"NaN"===l.north&&(l.north=null),"NaN"===l.up&&(l.up=null),new Te(l)}async function Lt(e,t,i){let r=(0,M.PZ)(Rt,t),s=r.toJSON(),{geometries:n}=r;if(n)for(let e=0;e<n.length;e++)n[e].spatialReference?.imageCoordinateSystem&&(s.geometries.geometries[e].spatialReference=Qt(n[e].spatialReference));let a=(0,Ce.Dl)(e),o=(0,Ce.lF)({...a.query,f:"json",...s}),l=(0,Ce.jV)(o,i),{data:u}=await(0,R.A)(`${a.path}/computePixelLocation`,l);return Ct.fromJSON(u)}async function Ut(e,t,i){let r=(0,M.PZ)(gt,t),s=(0,Ce.Dl)(e),n=r.geometry?[r.geometry]:[],a=await(0,Re.el)(n),o=r.toJSON(),l=a?.[0];null!=l&&(o.geometry=JSON.stringify(kt(l)));let u=(0,Ce.lF)({...s.query,f:"json",...o}),p=(0,Ce.jV)(u,i),m=await(0,R.A)(s.path+"/identify",p);return wt.fromJSON(m.data)}async function Bt(e,t,i,r){let s=(0,Ce.Dl)(e),n=await(0,Re.el)(i),a=t.toJSON();null!=n[0]&&(a.fromGeometry=JSON.stringify(kt(n[0]))),null!=n[1]&&(a.toGeometry=JSON.stringify(kt(n[1])));let o=(0,Ce.lF)({...s.query,f:"json",...a}),l=(0,Ce.jV)(o,r),{data:u}=await(0,R.A)(s.path+"/measure",l);return u}async function Kt(e,t,i){t=(0,M.PZ)(Et,t);let r=(0,Ce.Dl)(e),s=t.toJSON(),n=(0,Ce.lF)({...r.query,f:"json",...s}),a=(0,Ce.jV)(n,i),{data:o}=await(0,R.A)(r.path+"/measureFromImage",a);return o}function kt(e){let t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=Qt(e.spatialReference)),t}function Qt(e){let{imageCoordinateSystem:t}=e;if(t){let{id:e,referenceServiceName:i}=t;return null==e?{ics:t}:i?{icsid:e,icsns:i}:{icsid:e}}return e.toJSON()}function Ht(e,t){if(!e.imageCoordinateSystem)return(0,P.YX)(e);let i=Qt(e),{icsid:r,icsns:s}=i;return null==r||null!=s&&!t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?JSON.stringify(i):`0:${r}`}(0,s.Cg)([(0,p.MZ)({types:Ne.yR,json:{name:"Shape",read:ve.rS,write:!0}})],Jt.prototype,"geometry",void 0),(0,s.Cg)([(0,p.MZ)({json:{name:"Length",write:!0}})],Jt.prototype,"length",void 0),Jt=(0,s.Cg)([(0,p.$K)("esri.rest.support.MeasureLengthFromImageResult")],Jt);var Wt=i(82371),Xt=i(20223),Yt=i(20615),ei=i(74910),ti=i(78286),ii=i(99199),ri=i(97552);const si=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),ni=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this._functionRasterInfos={},this._serviceSupportsMosaicRule=null,this._exportTileQueue=new S.QueueProcessor({concurrency:4,process:(e,t)=>this._fetchPixels(e.extent,e.width,e.height,{...e.options,signal:t})}),this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new oe({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){let e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replaceAll(/ /gi,"_"),t.name)}),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every(e=>"number"==typeof e))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,i){null!=e&&"lerc"!==this.format&&(t[i]=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?(0,F.F_)(()=>se.A.fromJSON(t)):null}get fieldsIndex(){return this.fields?new pe.A(this.fields):null}set format(e){e&&si.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter||!1===t.allowRasterFunction?"lerc":"jpgpng"}get isRenderedFormat(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=se.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){let i=e||t.mosaicRule;return i?se.A.fromJSON(i):this._isMosaicRuleSupported(t)?se.A.fromJSON(t):null}writeMosaicRule(e,t,i){let{mosaicRule:r}=this;this._isValidCustomizedMosaicRule(r)&&(t[i]=r.toJSON())}readObjectIdField(e,t){return e||=t.fields.find(e=>"esriFieldTypeOID"===e.type||"oid"===e.type)?.name,e}get parsedUrl(){return(0,I.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){let{activePresetRendererName:e,presetRenderers:t}=this;return e?(t?.find(({name:t})=>t===e))?.renderer.clone():this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,i){let r=t?.layerDefinition?.drawingInfo?.renderer,s=(0,we.LF)(r,i);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!r.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),k(s)||o.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,i){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON()}get rasterFields(){let e=this.fields?.map(e=>e.clone())??[];e.push((0,ye.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,ye.Nd)()),this.version>=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some(({name:e})=>"none"===e.toLowerCase())&&e.push((0,ye.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter(({name:e})=>"none"!==e.toLowerCase()).forEach(({name:t})=>e.push((0,ye.nq)(t)));let{rasterInfo:t}=this;if(this._isVectorDataSet()){let i=t?.multidimensionalInfo?.variables[0].unit?.trim(),r=(0,ye.DV)(i),s=(0,ye.y6)();e.push(r,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){let i=(0,ye.AL)(t.multidimensionalInfo);e.push(...i)}let i=t?.attributeTable;if(null!=i){let t=(0,ye.jC)(i);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=G.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){let i=t.rasterFunctionInfos,r=t.renderingRule,s=null!=r&&Object.keys(r).length>0;return s||i?.length&&"None"!==i[0].name?this._isRFTJson(r)?G.A.fromJSON({rasterFunctionDefinition:r}):G.A.fromJSON(s?r:{rasterFunctionInfos:i}):null}readSpatialReference(e,t){let i=e||t.extent.spatialReference;return i?T.A.fromJSON(i):null}writePixelType(e,t,i){(null==this.serviceRasterInfo||this.pixelType!==this.serviceRasterInfo.pixelType)&&(t[i]=ne.e8.toJSON(e))}readVersion(e,t){let i=t.currentVersion;return i||=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3,i}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let i=e,{renderer:r,symbolizer:s,pixelFilter:n}=this,{isRawData:a}=e;if(a&&"lerc"!==this.format&&(r??=(0,ge.PD)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.rasterFunction?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}),s||=(this.symbolizer=new fe.A({rendererJSON:r.toJSON(),rasterInfo:this.rasterInfo}),this.symbolizer)),(a||!this.isRenderedFormat)&&r&&s&&!n){await this._updateSymbolizer(s,r);let n=this.bandIds?.length?this.bandIds:(0,ge.ci)(this.rasterInfo);i=await this._symbolize({pixelData:e,bandIds:n,symbolizer:s},t)}return i}destroy(){this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new C.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,b.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),async function(e,t,i){let r=(0,M.PZ)(jt,t).toJSON();r.geometries=JSON.stringify(r.geometries);let s=(0,Ce.Dl)(e),n=(0,Ce.lF)({...s.query,f:"json",...r}),a=(0,Ce.jV)(n,i),{data:o}=await(0,R.A)(`${s.path}/calculateVolume`,a);return Zt.fromJSON({volumes:o.results})}(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new C.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return zt(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new C.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return Lt(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new C.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){let r=await $t(e,t,i),s=(0,Ce.Dl)(e),{data:n}=await(0,R.A)(`${s.path}/computeHistograms`,r);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new C.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){let r=await $t(e,t,i),s=(0,Ce.Dl)(e),{data:n}=await(0,R.A)(`${s.path}/computeStatisticsHistograms`,r),{statistics:a}=n;return a?.length&&a.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation;let t=e.covariances?.trim();t&&(e.covariances=t.split(",").map(Number))}),{statistics:a,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){let i=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?i.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?i.mensuration.supportsHeightFromBaseAndTopShadow:i.mensuration.supportsHeightFromTopAndTopShadow))throw new C.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(ct,t),s=await Bt(e,r,[r.fromGeometry,r.toGeometry],i);return dt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){let i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsAreaAndPerimeter||e.is3D&&!i.mensuration.supports3D)throw new C.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(qe,t),s=await Bt(e,r,[r.geometry],i);return Ke.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){let i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsDistanceAndAngle||e.is3D&&!i.mensuration.supports3D)throw new C.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(Xe,t),s=await Bt(e,r,[r.fromGeometry,r.toGeometry],i);return tt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){let i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsPointOrCentroid||e.is3D&&!i.mensuration.supports3D)throw new C.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,b.o8)(e),this._applyMosaicRule(e),async function(e,t,i){let r=(0,M.PZ)(St,t),s=await Bt(e,r,[r.geometry],i);return xt.fromJSON(s)}(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new C.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new C.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return async function(e,t,i){let r=await Kt(e,(0,M.PZ)(Et,t),i);return Jt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new C.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new C.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return async function(e,t,i){let r=await Kt(e,(0,M.PZ)(Et,t),i);return Vt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}getField(e){let{fieldsIndex:t}=this;return t?.get(e)}getFieldDomain(e,t){let i=this.getField(e);return i?i.domain:null}async internalFetchImage(e,t,i,r={}){await this._updateCurrentRasterInfo();let{exportImageServiceParameters:s}=this,a=!1;if(r.requestRawData&&(await this._initJobHandler(),!s.requestRawData&&"lerc"!==this.format)){a=!0,s.requestRawData=!0;let e=this.bandIds;if(!e?.length){let t=(0,ge.ci)(this.rasterInfo);Array.from({length:this.rasterInfo.bandCount},(e,t)=>t)?.join(",")!==t?.join(",")&&(e=t)}s.rawDataRequestBandIds=e}let o=this.getExportImageServiceParameters(e,t,i,r.timeExtent);if(a&&(s.requestRawData=!1,s.rawDataRequestBandIds=null),null==o){if(r.requestAsImageElement&&this._canRequestImageElement(this.format)){let e=document.createElement("canvas");if(e.width=t,e.height=i,r.returnImageBitmap){let{bitmap:t}=await(0,me.mn)(e,`${n(this.parsedUrl)}/exportImage`,r);return{imageBitmap:t}}return{imageOrCanvasElement:e}}let{bandIds:s,rasterInfo:a}=this,o=(s?.length||a.bandCount)??0,l=t*i,u=a.pixelType,p=[];for(let e=0;e<o;e++)p.push(de.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new de.A({width:t,height:i,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}let l=!!r.requestAsImageElement&&!this.pixelFilter,u=l&&!!r.returnImageBitmap,p={imageServiceParameters:o,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:l,returnImageBitmap:u,signal:r.signal};return this._requestArrayBuffer(p)}async fetchPixels(e,t,r,s={}){await this._initJobHandler(),s.applyRendering&&await this._updateCurrentRasterInfo();let{imageMaxWidth:n,imageMaxHeight:a}=this;if(t<=n&&r<=a)return this._exportTileQueue.push({extent:e,width:t,height:r,options:s},{signal:s.signal});if(t>4096||r>4096||n<512||a<512)throw new C.A("imagery-layer:fetch-pixels",`The image service has a maximum export size of ${n}x${a}. The requested size of ${t}x${r} exceeds this limit.`);let{xmin:o,ymax:l,spatialReference:u}=this._projectedFullExtent??this.fullExtent;if(!u?.equals(e.spatialReference)){let{projectLoad:t,projectExecute:r}=await i.e(895).then(()=>i(83276));await t();let s=r(this.fullExtent,e.spatialReference);o=s.xmin,l=s.ymax,this._projectedFullExtent=s}let p=e.width/t,m=e.height/r,c=Math.floor((e.xmin-o)/p),d=Math.floor((l-e.ymax)/m),y=c+t,h=d+r,g=Math.floor(c/512),f=Math.floor(d/512),w=Math.ceil(y/512)-1,v=Math.ceil(h/512)-1,R=512*p,b=512*m,S=[];for(let t=f;t<=v;t++){let i=l-t*b,r=i-b;for(let t=g;t<=w;t++){let n=o+t*R,a=new A.A({xmin:n,ymin:r,xmax:n+R,ymax:i,spatialReference:e.spatialReference});S.push(this._exportTileQueue.push({extent:a,width:512,height:512,options:s},{signal:s.signal}))}}let x=await Promise.all(S);return x.some(e=>null==e.pixelBlock)?{extent:e,pixelBlock:null}:{extent:e,pixelBlock:this._rasterJobHandler?await this._rasterJobHandler.mosaicPixelData({pixelBlocks:x,destExtent:e},{signal:s.signal,transferPixelsToWorker:!0}):(0,O.LY)(x,e)?.pixelBlock}}async _fetchPixels(e,t,i,r={}){let s=r.applyRendering?void 0:new oe({layer:this,requestRawData:!0,interpolation:r.interpolation??"nearest",bandIds:r.bandIds??[]}),n=this.getExportImageServiceParameters(e,t,i,r.timeExtent,s);if(null==n)return{extent:e,pixelBlock:null};delete n.pixelType,r.bandIds||delete n.bandIds,delete n.compressionQuality;let a={imageServiceParameters:n,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:!1,returnImageBitmap:!1,signal:r.signal},{pixelData:o}=await this._requestArrayBuffer(a);return o??{extent:e,pixelBlock:null}}fetchKeyProperties(e){return(0,R.A)(n(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>e.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new C.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,R.A)(n(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>ft.A.fromJSON(e.data))}getCatalogItemRasterInfo(e,t){let i={...t,query:this._getQueryParams()};return async function(e,t,i){let r=(0,Ce.Dl)(e),s=(0,Ce.lF)({...r?.query,f:"json"}),n=(0,Ce.jV)(s,i),a=`${r?.path}/${t}/info`,o=(0,R.A)(`${a}`,n),l=(0,R.A)(`${a}/keyProperties`,n),u=await Promise.allSettled([o,l]),p="fulfilled"===u[0].status?u[0].value.data:null,m="fulfilled"===u[1].status?u[1].value.data:null,c=null;p.statistics?.length&&(c=p.statistics.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})));let d=A.A.fromJSON(p.extent),y=Math.ceil(d.width/p.pixelSizeX-.1),h=Math.ceil(d.height/p.pixelSizeY-.1),g=d.spatialReference,f=new be.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:g}),w=p.histograms?.length?p.histograms:null,v=new Xt.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new he.A({width:y,height:h,bandCount:p.bandCount,extent:d,spatialReference:g,pixelSize:f,pixelType:p.pixelType.toLowerCase(),statistics:c,histograms:w,keyProperties:m,storageInfo:v})}(n(this.parsedUrl),e,i)}async getCatalogItemICSInfo(e,t){let{data:i}=await(0,R.A)(n(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),r=i?.ics;if(!r)return;let s=null;try{s=(await(0,R.A)(n(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!s?.spatialReference)return{ics:r,icsToPixelTransform:null,icsExtent:null,northDirection:null};let a=this.version>=10.7?(0,R.A)(n(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then(e=>e.data).catch(()=>({})):{},o=s.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[s]}),inSR:(0,P.YX)(o),outSR:"0:"+e},u=(0,R.A)(n(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then(e=>e.data).catch(()=>({})),p=(s.xmin+s.xmax)/2,m=(s.ymax-s.ymin)/6,c=s.ymin+m,d=[];for(let e=0;e<5;e++)d.push({x:p,y:c+m*e});let y={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,P.YX)(o),outSR:"0:"+e},h=(0,R.A)(n(this.parsedUrl)+"/project",{query:this._getQueryParams(y),...t}).then(e=>e.data).catch(()=>({})),g=await Promise.all([a,u,h]),f=g[0].ipxf;if(null==f){let e=r.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(f={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}let w=A.A.fromJSON(g[1]?.geometries?.[0]);w&&(w.spatialReference=new T.A({wkid:0,imageCoordinateSystem:r}));let v=g[2].geometries?g[2].geometries.filter(e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y):[],C=v.length;if(C<3)return{ics:r,icsToPixelTransform:f,icsExtent:w,northDirection:null};let b=0,S=0,x=0,I=0;for(let e=0;e<C;e++)b+=v[e].x,S+=v[e].y,x+=v[e].x*v[e].x,I+=v[e].x*v[e].y;let M=(C*I-b*S)/(C*x-b*b),F=0,D=v[4].x>v[0].x,j=v[4].y>v[0].y;return M===1/0?F=j?90:270:0===M?F=D?0:180:M>0?F=D?180*Math.atan(M)/Math.PI:180*Math.atan(M)/Math.PI+180:M<0&&(F=j?180+180*Math.atan(M)/Math.PI:360+180*Math.atan(M)/Math.PI),{ics:r,icsToPixelTransform:f,icsExtent:w,northDirection:F}}async generateRasterInfo(e,t){let i=(0,M.PZ)(G.A,e),r={...t,query:this._getQueryParams()};if(!i||"none"===i.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(i))return this.serviceRasterInfo??(0,Wt.Tw)(n(this.parsedUrl),this.sourceJSON,r);let s=function(e){let t=JSON.stringify(e),i=t.includes('"rasterFunctionDefinition":{'),r=(i?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi))?.map(e=>i?e.slice(8,-18):e.slice(18,-1));return r?r.join("/"):null}(i);if(!s)throw new C.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[s])return this._functionRasterInfos[s];let a=(0,Wt.X6)(n(this.parsedUrl),i,r);this._functionRasterInfos[s]=a;try{let t=await a,{rasterFunction:i}=this;return(i===e||JSON.stringify(i)===JSON.stringify(e))&&JSON.stringify(this.rasterInfo)!==JSON.stringify(t)&&(this.rasterInfo=t),t}catch(e){throw this._functionRasterInfos[s]=null,e}}getExportImageServiceParameters(e,t,i,r,s){let a=Ht((e=e.clone().shiftCentralMeridian()).spatialReference,n(this.parsedUrl));s??=this.exportImageServiceParameters;let o=s.toJSON(),{bandIds:l,noData:u}=o,{renderingRule:p}=o,m=this.rasterFunction?.rasterFunctionDefinition,c=this.renderer?.type,d=!c||"raster-stretch"===c||"raster-colormap"===c||"unique-value"===c||"class-breaks"===c||"raster-shaded-relief"===c;if(l?.length&&this._hasRasterFunction(this.rasterFunction)&&!m&&d){let e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===p.rasterFunction)e.rasterFunctionArguments.Raster=p.rasterFunctionArguments.Raster,p.rasterFunctionArguments.Raster=e;else if("Colormap"===p.rasterFunction){let t=p.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,p.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=p,p=e;o.bandIds=void 0}else o.bandIds=l?.join(",");Array.isArray(u)&&u.length>0&&(o.noData=u.join(","));let y=this._processMultidimensionalIntersection(null,r,s.mosaicRule);if(y.isOutSide)return null;o.mosaicRule=null==y.mosaicRule?null:JSON.stringify(y.mosaicRule),r=y.timeExtent,o.renderingRule=this._getRenderingRuleString(G.A.fromJSON(p));let h={};if(null!=r){let{start:e,end:t}=r.toJSON();e&&t&&e===t?h.time=""+e:(null!=e||null!=t)&&(h.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:a,imageSR:a,size:t+","+i,...o,...h}}async getSamples(e,t){if(!(await this._fetchCapabilities(t?.signal))?.operations.supportsGetSamples)throw new C.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,b.o8)(e);let{raster:i}=this;return i&&null==e.raster&&(e.raster=i),async function(e,t,i){let r=(0,M.PZ)(It.A,t),s=r.toJSON();Gt(s),s.outFields?.length&&(s.outFields=s.outFields.join(","));let n=(await(0,Re.el)(r.geometry))?.[0];null!=n&&(s.geometry=kt(n));let a=(0,Ce.Dl)(e),o=(0,Ce.lF)({...a.query,f:"json",...s}),l=(0,Ce.jV)(o,i),{data:u}=await(0,R.A)(`${a.path}/getSamples`,l),p=u.samples.map(e=>{let t="NaN"===e.value||""===e.value?null:e.value.split(" ").map(e=>Number(e));return{...e,pixelValue:t}});return Mt.A.fromJSON({samples:p})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new C.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,b.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=D.A.fromExtent(e.geometry));let i=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(i.isOutSide)throw new C.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=i.timeExtent,e.mosaicRule=i.mosaicRule;let{raster:r,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),r&&null==e.raster&&(e.raster=r),Ut(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new C.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(At,t),s=r.toJSON();r.geometry.spatialReference.imageCoordinateSystem&&(s.geometry=kt(r.geometry)),r.depthOffset&&r.adjust||delete s.options;let n=(0,Ce.Dl)(e),a=(0,Ce.lF)({...n.query,f:"json",...s}),o=(0,Ce.jV)(a,i),{data:l}=await(0,R.A)(`${n.path}/imageToMap`,o);return(0,ve.rS)(l)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new C.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Ft,t),s=r.toJSON();r.rasterIds?.length&&(s.rasterIds=r.rasterIds.join(","));let n=(0,Ce.Dl)(e),a=(0,Ce.lF)({...n.query,f:"json",...s}),o=(0,Ce.jV)(a,i),{data:l}=await(0,R.A)(`${n.path}/imageToMapMultiray`,o);return(0,ve.rS)(l)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new C.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(_t,t),s=r.toJSON(),n=(await(0,Re.el)(r.geometry))?.[0];null!=n&&(s.geometry=kt(n)),r.visibleOnly||delete s.options;let a=n?.spatialReference??r.geometry?.spatialReference;a&&(s.inSR=Ht(a));let o=(0,Ce.Dl)(e),l=(0,Ce.lF)({...o.query,f:"json",...s}),u=(0,Ce.jV)(l,i),{data:p}=await(0,R.A)(`${o.path}/mapToImage`,u);return(0,ve.rS)(p)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new C.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Se,t),s=r.toJSON(),n=await(0,Re.el)([r.fromGeometry,r.toGeometry]);null!=n[0]&&(s.fromGeometry=kt(n[0]),n[0].spatialReference&&(s.inSR=Ht(n[0].spatialReference))),null!=n[1]&&(s.toGeometry=kt(n[1])),r.objectIds?.length&&(s.objectIds=s.objectIds.join(","));let a=(0,Ce.Dl)(e),o=(0,Ce.lF)({...a.query,f:"json",...s}),l=(0,Ce.jV)(o,i),{data:u}=await(0,R.A)(`${a.path}/find`,l);return Fe.fromJSON(u)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new C.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return async function(e,t,i){let r=(0,M.PZ)(Dt,t).toJSON(),s=(0,Ce.Dl)(e),n=(0,Ce.lF)({...s.query,f:"json",...r}),a=(0,Ce.jV)(n,i),{data:o}=await(0,R.A)(`${s.path}/getImageUrl`,a);return Tt.fromJSON(o)}(n(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new ri.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new C.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e??={outSpatialReference:this.spatialReference},async function(e,t,i){let r=(0,M.PZ)(ke,t),s=(0,Ce.Dl)(e),n=r.toJSON();r.outSpatialReference&&(n.outSR=Ht(r.outSpatialReference));let a=(0,Ce.lF)({...s.query,f:"json",...n}),o=(0,Ce.jV)(a,i),{data:l}=await(0,R.A)(s.path+"/queryBoundary",o);return He.fromJSON(l)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async queryExtent(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));let{where:r,objectIds:s,geometry:n,timeExtent:a,start:o,num:l,pixelSize:u}=e,p=null!=r&&"1=1"!==r,m=null!=s&&s.length>0,c=null!=n&&("extent"!==n.type||!n.equals(this.fullExtent)),d=null!=u,y=null!=o||null!=l,{timeInfo:h}=this,g=null!=a&&null!=h&&!a.equals(h.fullTimeExtent);if(!(p||m||c||d||g||y)){let r=await(0,Yt.I)(this.url,e,t),{outSpatialReference:s}=e;if(!s||s.equals(this.spatialReference))return{count:r,extent:this.fullExtent.clone()};let{projectLoad:n,projectExecute:a}=await i.e(895).then(()=>i(83276));return await n(),{count:r,extent:a(this.fullExtent,s)}}return(0,ei.L)(this.url,e,t)}async queryRasters(e,t){({query:e,requestOptions:t}=await this._prepareForQuery(e,t));let i=await(0,ii.s)(this.url,e,t),r=this.graphicOrigin;return i.features.forEach(e=>{e.layer=this,e.origin=r}),i}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,ti.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new C.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e??={where:"1=1"},async function(e,t,i){let r=(0,M.PZ)(nt,t),s=r.toJSON();Gt(s),s.objectIds?.length&&(s.objectIds=s.objectIds.join(",")),s.geometry||s.objectIds||s.time||s.where||(s.where="1=1");let n=(await(0,Re.el)(r.geometry))?.[0];null!=n&&(s.geometry=kt(n));let a=n?.spatialReference??r.geometry?.spatialReference;a&&(s.inSR=Ht(a));let o=(0,Ce.Dl)(e),l=(0,Ce.lF)({...o.query,f:"json",...s}),u=(0,Ce.jV)(l,i),{data:p}=await(0,R.A)(`${o.path}/queryGPSInfo`,u);return pt.fromJSON(p)}(n(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Yt.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new C.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();let{pixelSize:i,returnDomainValues:r,returnTopmostRaster:s,showNoDataRecords:n}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1},a=!1,o=null,l=null,u=ye.F_.servicePixelValue.toLowerCase(),p=this._rasterFunctionNamesIndex;if(null!=e.outFields&&(a=e.outFields.some(e=>!e.toLowerCase().startsWith(u)),this.version>=10.4)){let t=e.outFields.filter(e=>e.toLowerCase().startsWith(u)&&e.length>u.length).map(e=>{let t=e.slice(u.length+1);return[this._updateRenderingRulesFunctionName(t,p),t]});o=t.map(e=>new G.A({functionName:e[0]})),l=t.map(e=>e[1]);let{rasterFunction:i}=this;0===o.length?i?.functionName?(o.push(i),l.push(i.functionName)):o=null:i?.functionName&&!o.some(e=>e.functionName===i.functionName)&&(o.push(i),l.push(i.functionName))}let m=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:c}=this,d=e.timeExtent||this.timeExtent;if(c){let{isOutside:t,intersection:i}=(0,j.Rp)(c,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new C.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=i?.timeExtent&&(d=i.timeExtent)}let y=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,d),h=e.geometry;this.version<10.91&&"extent"===h?.type&&(h=D.A.fromExtent(h));let g=this._getQueryParams({geometry:h,timeExtent:d,mosaicRule:y,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:o,pixelSize:i,returnCatalogItems:a,returnGeometry:m,raster:this.raster,maxItemCount:s?1:null});delete g.f;let f=new gt(g);try{await this._generateRasterInfo(this.rasterFunction);let i=await Ut(this.url,f,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,o=null!=i.value&&i.value.toLowerCase().includes("nodata"),u=a&&!m&&i?.catalogItems?.features.length&&(n||!o),p=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,j.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:y?.multidimensionalDefinition,timeExtent:d,multidimensionalSubset:this.multidimensionalSubset}):null;if(!u)return this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:l,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p});let c=this.objectIdField||"ObjectId",h=i.catalogItems?.features??[],g=h.map(e=>e.attributes?.[c]),w=new ri.A({objectIds:g,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),v=await this.queryRasters(w);return v?.features?.length&&v.features.forEach(t=>{h.forEach(i=>{i.attributes[c]===t.attributes[c]&&t.geometry&&(i.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(i.geometry.spatialReference=e.outSpatialReference))})}),this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:l,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p})}catch{throw new C.A("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){let i=(0,R.A)(n(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.statistics),r=(0,R.A)(n(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.histograms),s=await Promise.all([i,r]);return s[0]&&s[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:s[0]||null,histograms:s[1]||null}}getMultidimensionalSubsetVariables(e){let t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,j.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e);let t=this.sourceJSON,i=null==this.serviceRasterInfo?(0,Wt.Tw)(n(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then(e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,Wt.E9)(e,t),e)):Promise.resolve(this.serviceRasterInfo),r=!this.rasterInfo&&this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):Promise.resolve(this.rasterInfo),s=this.rasterFunctionInfos?.every(e=>null!=e.functionType)?null:this._getRasterFunctionInfos();return Promise.all([i,r,s]).then(e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&(t.rasterFunctionInfos=e[2],this.setAtOrigin("rasterFunctionInfos",e[2],"service")),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),o.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,x.wB)(()=>this.rasterFunction,e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then(e=>{e&&(this.rasterInfo=e)})})]);let{serviceRasterInfo:i}=this;null!=i.multidimensionalInfo&&this._updateMultidimensionalDefinition(i)})}_combineMosaicRuleWithTimeExtent(e,t){let i=this.timeInfo,{multidimensionalInfo:r}=this.serviceRasterInfo;if(null==e||null==r||null==t||null==i?.startField)return e;let{startField:s}=i,n=r.variables.some(e=>e.dimensions.some(e=>e.name===s))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(e=>e.dimensionName!==n),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];let a=e.multidimensionalDefinition.filter(e=>e.dimensionName===n),o=null==t.start?null:t.start.getTime(),l=null==t.end?null:t.end.getTime(),u=null==o||null==l||o===l,p=u?[o||l]:[[o,l]],m=this.version>=10.8;if(a.length)a.forEach(e=>{e.dimensionName===n&&(m?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))});else if(!m){let t=e.multidimensionalDefinition.filter(e=>null!=e.variableName&&null==e.dimensionName);t.length?t.forEach(e=>{e.dimensionName=n,e.isSlice=u,e.values=p}):e.multidimensionalDefinition.push(new V.A({variableName:"",dimensionName:n,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(e=>!(!e.variableName&&!e.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new C.A("imagery-layer:query-rasters","query operation is not supported on the input image service");let i=null==e?this.createQuery():(0,M.PZ)(ri.A,e);return t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:i,requestOptions:t}}_isSupportedRenderer(e){let{rasterInfo:t,rasterFunction:i}=this;return"unique-value"===e.type&&this._hasRasterFunction(i)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,ge.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){let{data:i,ssl:r}=await(0,R.A)(n(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=i,this.sourceJSON=t,r&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map(e=>e.trim()).indexOf("tilesonly")>-1)throw new C.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;let t=this._isMosaicDataset(e),i=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||i}_isVectorFieldResampleFunction(e){if(null==e)return!1;let{functionName:t,functionArguments:i}=e,r="resample"===t?.toLowerCase(),s=i?.ResampleType||i?.resampleType;return r&&(7===s||10===s)}_configRenderer(e){let{rasterInfo:t}=this,i=t.attributeTable,r=null!=(0,ge.VI)(i,"red")&&null!=(0,ge.VI)(i,"green")&&null!=(0,ge.VI)(i,"blue"),s=!e&&null==t.colormap&&!r&&(0,ge.fp)(t).includes("unique-value");if(!this.isRenderedFormat&&!this.pixelFilter||this._isVectorDataSet()||s){let i=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,r=(0,ge.I8)({variableName:i,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&t.bandCount>=3){let e=r?.bandIds??(0,ge.ci)(t);e&&(3!==t.bandCount||0!==e[0]||1!==e[1]||2!==e[2])&&(this.bandIds=e)}e||=r?.renderer??(0,ge.PD)(t,{bandIds:this.bandIds,variableName:this.rasterFunction?null:i});let s=(0,ge.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=t):this.symbolizer=new fe.A({rendererJSON:s,rasterInfo:t}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null==e.pixelBlock?null:e.pixelBlock.clone()}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));let{raster:t,viewId:i}=this;return{raster:t,viewId:i,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,i){return this._rasterJobHandler?this._rasterJobHandler.decode({data:e,options:t}):(0,N.D)(e,t,i)}async _getRasterFunctionInfos(e){let t=this.sourceJSON.rasterFunctionInfos;return this.loaded||!t?.length?t:t&&this.version>=10.3?1===t.length&&"none"===t[0].name.toLowerCase()?[{thumbnail:"",functionType:0,...t[0]}]:(await(0,R.A)(n(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e})).data?.rasterFunctionInfos:null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){let{imageProps:t,requestAsImageElement:i,returnImageBitmap:r,signal:s}=e;if(i&&this._canRequestImageElement(t.format)){let i=`${n(this.parsedUrl)}/exportImage`,{data:a}=await(0,R.A)(i,{responseType:r?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:s});if(a instanceof Blob){let{bitmap:e}=await(0,me.mn)(a,i,{signal:s});return{imageBitmap:e,params:t}}return{imageOrCanvasElement:a,params:t}}let a=this._initJobHandler(),o=(0,R.A)(n(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:s}),l=(await Promise.all([o,a]))[0].data,u=t.format||"jpgpng",p=u;if("bsq"!==p&&"bip"!==p&&(p=(0,N.g)(l)),!p)throw new C.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(l)));let m={signal:s};return{pixelData:{pixelBlock:await this._decodePixelBlock(l,{width:t.width,height:t.height,format:u,applyJpegMask:!0},m),extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch(()=>null)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,j.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new se.A;let e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach(e=>e.variableName=""),t=t.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t||={};let i=e.value,{templateRRFunctionNames:r,showNoDataRecords:s,returnDomainValues:n,templateFields:a}=t,o=e.processedValues,l=e.catalogItems?.features,u=e.properties?.Values?.map(e=>e.replaceAll(/ /gi,", "))||[],p=this.objectIdField||"ObjectId",m="string"==typeof i&&i.toLowerCase().includes("nodata"),c=[];if(i&&!l&&(!m||s)){let e={};e[p]=0,u=[i],l=[new v.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,ye.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,a),m&&!s&&(l=[]);let{itemPixelValue:d,servicePixelValue:y}=ye.F_,h=this.rasterFields.some(e=>e.name===d),g=this.graphicOrigin;for(let e=0;e<l.length;e++){let t=l[e];if(null!=i){let n=u[e],a=this.rasterFunction&&o&&o.length>0&&r&&r.length>0&&r.includes(this.rasterFunction.functionName)?o[r.indexOf(this.rasterFunction.functionName)]:i;if("nodata"===n.toLowerCase()&&!s)continue;h&&(t.attributes[d]=n),t.attributes[y]=a,this._updateFeatureWithMagDirValues(t,n);let l=this.fields&&this.fields.length>0,p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?n:i:a;this.rasterFunction||(p=l?n:i),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,t.origin=g,n&&this._updateFeatureWithDomainValues(t),r&&o&&r.length===o.length)for(let e=0;e<r.length;e++){let i=`${ye.F_.servicePixelValue}.${r[e]}`;t.attributes[i]=o[e]}c.push(l[e])}return c}_processMultidimensionalIntersection(e,t,i){let{multidimensionalSubset:r}=this;if(!r)return{isOutSide:!1,timeExtent:t,mosaicRule:i=this._combineMosaicRuleWithTimeExtent(i,t)};if(r){let{isOutside:i,intersection:s}=(0,j.Rp)(r,{geometry:e,timeExtent:t});if(i)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(i=this._combineMosaicRuleWithTimeExtent(i,t),i?.multidimensionalDefinition){let{isOutside:e}=(0,j.Rp)(r,{multidimensionalDefinition:i.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:i}}_updateFeatureWithRasterAttributeTableValues(e,t){let i=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==i)return;let{features:r,fields:s}=i,n=s.map(e=>e.name).find(e=>"value"===e.toLowerCase());if(!n)return;let a=r.filter(e=>e.attributes[n]===(null==t?null:parseInt(t,10)));a&&a[0]&&s.forEach(t=>{let i=ye.ER+t.name;e.attributes[i]=a[0].attributes[t.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;let i=t.split(/,\s*/).map(e=>parseFloat(e)),r=i.map(e=>[e]),s=i.map(e=>({minValue:e,maxValue:e,noDataValue:null})),n=new de.A({height:1,width:1,pixelType:"f32",pixels:r,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new A.A(0,0,0,0,this.spatialReference)});let a="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,Z.Lu)([n.pixels[0][0],n.pixels[1][0]]);e.attributes[ye.F_.magnitude]=a[0],e.attributes[ye.F_.direction]=a[1]}_updateFeatureWithDomainValues(e){(this.fields&&this.fields.filter(e=>"coded-value"===e.domain?.type))?.forEach(t=>{let i=e.attributes[t.name];if(null!=i){let r=t.domain.codedValues.find(e=>e.code===i);r&&(e.attributes[t.name]=r.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;let i=this.fieldsIndex;null!=i&&e.forEach(e=>{if(e?.attributes)for(let r of t){let t=i.get(r)?.name;t&&t!==r&&(e.attributes[r]=e.attributes[t],delete e.attributes[t])}})}_getRenderingRuleString(e){if(e){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");let i=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(i)?t.get(i):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){let{raster:t,mosaicRule:i,rasterFunction:r}=this;r&&null==e.rasterFunction&&(e.rasterFunction=r),i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}async _updateCurrentRasterInfo(e){if(this.renderer||this.symbolizer){let t=await this._generateRasterInfo(this.rasterFunction,{signal:e});t&&(this.rasterInfo=t)}}_applyMosaicRule(e){let{raster:t,mosaicRule:i}=this;i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){let t=e.capabilities?e.capabilities.toLowerCase().split(",").map(e=>e.trim()):["image","catalog"],{currentVersion:i,maxRecordCount:r}=e,s=t.includes("image"),n="esriImageServiceDataTypeElevation"===e.serviceDataType,a=!(!e.spatialReference&&!e.extent?.spatialReference),o=t.includes("edit"),l=t.includes("mensuration")&&a,u=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map(e=>e.trim()),p=l&&u.includes("basic"),m=this._isMosaicDataset(e)&&t.includes("catalog"),c=t.includes("download"),d=i>=10.7&&n||i>=11.4&&(n||l&&u.includes("3d")),y=m&&e.fields&&e.fields.length>0,h=y&&e.supportsAdvancedQueries?e.advancedQueryCapabilities:void 0;return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsImageToMap:i>=11.2&&m,supportsImageToMapMultiray:i>=11.2&&m,supportsMapToImage:i>=11.2&&m,supportsFindImages:i>=11.2&&m,supportsGetImageUrl:i>=11.3&&c,supportsMeasure:l,supportsMeasureFromImage:i>=11.2,supportsDownload:c,supportsQuery:y,supportsGetSamples:i>=10.2&&s,supportsProject:i>=10.3&&s,supportsComputeStatisticsHistograms:i>=10.4&&s,supportsQueryBoundary:i>=10.6&&s,supportsCalculateVolume:d,supportsComputePixelLocation:i>=10.7&&m,supportsComputeAngles:i>=10.91,supportsQueryGPSInfo:i>=11.2&&m,supportsAdd:o,supportsDelete:o,supportsEditing:o,supportsUpdate:o,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:r,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:void 0,supportsStatisticsAggregatedIds:!!h?.supportsAggregateIds,supportsStatistics:!!h?.supportsStatistics,supportsOrderBy:!!h?.supportsOrderBy,supportsDistinct:!!h?.supportsDistinct,supportsPagination:!!h?.supportsPagination,supportsPaginationOnAggregatedQueries:!!h?.supportsPaginationOnAggregatedQueries,supportsStandardizedQueriesOnly:!!h?.useStandardizedQueries,supportsPercentileStatistics:!!h?.supportsPercentileStatistics,supportsCentroid:!!h?.supportsReturningGeometryCentroid,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!!h?.supportsQueryWithDistance,supportsOutDistance:!!h?.supportsOutDistance,supportsExtent:!!h?.supportsReturningQueryExtent,supportsGeometryProperties:!!h?.supportsReturningGeometryProperties,supportsHavingClause:!!h?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:h?.supportsSqlExpression??!!h,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!h?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:p,supportsAreaAndPerimeter:p,supportsPointOrCentroid:p,supportsHeightFromBaseAndTop:l&&u.includes("base-top height"),supportsHeightFromBaseAndTopShadow:l&&u.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:l&&u.includes("top-top shadow height"),supports3D:l&&u.includes("3d")}}}};function n(e){return e?.path??""}return(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"_functionRasterInfos",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"_serviceSupportsMosaicRule",void 0),(0,s.Cg)([(0,Qe.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],r.prototype,"readServiceSupportsMosaicRule",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"_rasterFunctionNamesIndex",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"_projectedFullExtent",void 0),(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"_exportTileQueue",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"adjustAspectRatio",void 0),(0,s.Cg)([(0,p.MZ)({type:[M.jz],json:{write:!0}})],r.prototype,"bandIds",void 0),(0,s.Cg)([(0,Qe.w)("bandIds")],r.prototype,"readBandIds",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],r.prototype,"capabilities",void 0),(0,s.Cg)([(0,Qe.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],r.prototype,"readCapabilities",null),(0,s.Cg)([(0,p.MZ)({type:Number})],r.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,ae.K)("compressionQuality")],r.prototype,"writeCompressionQuality",null),(0,s.Cg)([(0,p.MZ)({type:Number})],r.prototype,"compressionTolerance",void 0),(0,s.Cg)([(0,ae.K)("compressionTolerance")],r.prototype,"writeCompressionTolerance",null),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"defaultMosaicRule",void 0),(0,s.Cg)([(0,Qe.w)("defaultMosaicRule",["defaultMosaicMethod"])],r.prototype,"readDefaultMosaicRule",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],r.prototype,"definitionExpression",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,constructOnly:!0})],r.prototype,"exportImageServiceParameters",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"rasterInfo",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:[ue.A]})],r.prototype,"fields",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"fieldsIndex",null),(0,s.Cg)([(0,p.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],r.prototype,"format",null),(0,s.Cg)([(0,Qe.w)("service","format",["serviceDataType","allowRasterFunction"])],r.prototype,"readFormat",null),(0,s.Cg)([(0,p.MZ)({type:A.A})],r.prototype,"fullExtent",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"hasMultidimensions",void 0),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"maxImageHeight"}}})],r.prototype,"imageMaxHeight",void 0),(0,s.Cg)([(0,p.MZ)({json:{read:{source:"maxImageWidth"}}})],r.prototype,"imageMaxWidth",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{type:ne.SZ.jsonValues,read:ne.SZ.read,write:ne.SZ.write}})],r.prototype,"interpolation",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"minScale",void 0),(0,s.Cg)([(0,Qe.w)("service","minScale")],r.prototype,"readMinScale",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"maxScale",void 0),(0,s.Cg)([(0,Qe.w)("service","maxScale")],r.prototype,"readMaxScale",null),(0,s.Cg)([(0,p.MZ)({type:se.A})],r.prototype,"mosaicRule",null),(0,s.Cg)([(0,Qe.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],r.prototype,"readMosaicRule",null),(0,s.Cg)([(0,ae.K)("mosaicRule")],r.prototype,"writeMosaicRule",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"multidimensionalInfo",void 0),(0,s.Cg)([(0,p.MZ)({type:ce.A,json:{write:!0}})],r.prototype,"multidimensionalSubset",void 0),(0,s.Cg)([(0,p.MZ)({json:{type:[Number,[Number]],write:!0}})],r.prototype,"noData",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{type:ne.hm.jsonValues,read:ne.hm.read,write:ne.hm.write}})],r.prototype,"noDataInterpretation",void 0),(0,s.Cg)([(0,p.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],r.prototype,"objectIdField",void 0),(0,s.Cg)([(0,Qe.w)("objectIdField")],r.prototype,"readObjectIdField",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"geometryType",void 0),(0,s.Cg)([(0,p.MZ)({})],r.prototype,"typeIdField",void 0),(0,s.Cg)([(0,p.MZ)({})],r.prototype,"types",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,s.Cg)([(0,p.MZ)({type:Function})],r.prototype,"pixelFilter",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"raster",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"sourceType",void 0),(0,s.Cg)([(0,Qe.w)("sourceType",["serviceSourceType","fields"])],r.prototype,"readSourceType",null),(0,s.Cg)([(0,p.MZ)()],r.prototype,"viewId",void 0),(0,s.Cg)([(0,p.MZ)({types:we.uy})],r.prototype,"renderer",null),(0,s.Cg)([(0,p.MZ)({types:we.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:we.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],r.prototype,"internalRenderer",null),(0,s.Cg)([(0,Qe.w)("internalRenderer")],r.prototype,"readRenderer",null),(0,s.Cg)([(0,ae.K)("internalRenderer")],r.prototype,"writeRenderer",null),(0,s.Cg)([(0,p.MZ)({clonable:!1})],r.prototype,"symbolizer",void 0),(0,s.Cg)([(0,p.MZ)(_.ke)],r.prototype,"opacity",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"rasterFields",null),(0,s.Cg)([(0,p.MZ)({constructOnly:!0})],r.prototype,"rasterFunctionInfos",void 0),(0,s.Cg)([(0,p.MZ)({type:G.A,json:{name:"renderingRule"}})],r.prototype,"rasterFunction",null),(0,s.Cg)([(0,Qe.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],r.prototype,"readRasterFunction",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"serviceDataType",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,type:T.A})],r.prototype,"spatialReference",void 0),(0,s.Cg)([(0,Qe.w)("spatialReference",["spatialReference","extent"])],r.prototype,"readSpatialReference",null),(0,s.Cg)([(0,p.MZ)({type:ne.e8.apiValues,json:{read:ne.e8.read,type:ne.e8.jsonValues}})],r.prototype,"pixelType",void 0),(0,s.Cg)([(0,ae.K)("pixelType")],r.prototype,"writePixelType",null),(0,s.Cg)([(0,p.MZ)({constructOnly:!0,type:he.A})],r.prototype,"serviceRasterInfo",void 0),(0,s.Cg)([(0,p.MZ)()],r.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,p.MZ)(_.OZ)],r.prototype,"url",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,s.Cg)([(0,Qe.w)("version",["currentVersion","fields","timeInfo"])],r.prototype,"readVersion",null),r=(0,s.Cg)([(0,p.$K)("esri.layers.mixins.ArcGISImageService")],r),r};var ai=i(18768),oi=i(63074),li=i(69208),ui=i(34287),pi=i(8303),mi=i(72545),ci=i(56551),di=i(54310),yi=i(25036),hi=i(82935),gi=i(91908),fi=i(24212),wi=i(30291),vi=i(88625),Ri=i(59923);let Ci=class extends((0,oi.dM)((0,hi.e)((0,yi.j)((0,ui.q)((0,pi.A)((0,ci.H)(ni((0,mi.G)((0,di.J)((0,li.d)((0,ai.b)((0,l.M)((0,a.OU)(w.A)))))))))))))){constructor(...e){super(...e),this.charts=null,this.graphicOrigin=new f(this),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.type="imagery",this._debouncedSaveOperations=(0,u.sg)(async(e,t,r)=>{let{save:s,saveAs:n}=await i.e(9838).then(()=>i(59838));switch(e){case 0:return s(this,t);case 1:return n(this,r,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}set elevationInfo(e){"relative-to-scene"!==e?.mode&&this._set("elevationInfo",e),this._validateElevationInfo(e)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){let{rasterFields:t}=this,i=new Set,r=ye.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,n=ye.Oo.toLowerCase(),a=`${ye.F_.servicePixelValue.toLowerCase()}.`;for(let e of t){let t=e.name.toLowerCase();t===r||t.startsWith(a)||s&&t.startsWith(n)||i.add(e.name)}let o=(0,wi.tn)({fields:t,title:this.title},{...e,visibleFieldNames:i}),{rasterInfo:l}=this;return o?.fieldInfos&&l&&(0,ye.h4)(o.fieldInfos,l),o}queryFeatures(e,t){return this.queryRasters(e,t).then(e=>{if(e?.features)for(let t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,gi.D)(this,e)}write(e,t){return this._isPreviewLayer?((0,Ri.U4)(t,this,"preview layer cannot be saved"),null):super.write(e,t)}_validateElevationInfo(e){(0,fi.XF)(o.A.getLogger(this),(0,fi.$7)("Imagery layers","relative-to-scene",e)),(0,fi.XF)(o.A.getLogger(this),(0,fi.tW)("Imagery layers",e))}};(0,s.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],Ci.prototype,"charts",void 0),(0,s.Cg)([(0,p.MZ)({type:vi.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],Ci.prototype,"elevationInfo",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],Ci.prototype,"graphicOrigin",void 0),(0,s.Cg)([(0,p.MZ)(_.fV)],Ci.prototype,"legendEnabled",null),(0,s.Cg)([(0,p.MZ)({type:["show","hide"]})],Ci.prototype,"listMode",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Ci.prototype,"isReference",void 0),(0,s.Cg)([(0,p.MZ)({type:["ArcGISImageServiceLayer"]})],Ci.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,p.MZ)(_.M6)],Ci.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,p.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],Ci.prototype,"popupTemplate",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Ci.prototype,"defaultPopupTemplate",null),(0,s.Cg)([(0,p.MZ)(_.PY)],Ci.prototype,"screenSizePerspectiveEnabled",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],Ci.prototype,"type",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],Ci.prototype,"_isPreviewLayer",null),Ci=(0,s.Cg)([(0,p.$K)("esri.layers.ImageryLayer")],Ci);const bi=Ci},18768(e,t,i){var r=i(32198),s=i(53966),n=i(91429),a=i(60694);i.d(t,["b",0,e=>{let t=e,i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}])},56551(e,t,i){i.d(t,{H:()=>m});var r=i(32198),s=i(91429),n=i(69540),a=i(25482),o=i(78888),l=i(94359),u=i(93223);let p=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],p.prototype,"method",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],p.prototype,"value",void 0),(0,r.Cg)([(0,s.MZ)({type:[o.jz],json:{write:{isRequired:!0}}})],p.prototype,"bandIds",void 0),(0,r.Cg)([(0,s.MZ)({types:l.uy,json:{write:!0,origins:{"web-scene":{types:l.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],p.prototype,"renderer",void 0),p=(0,r.Cg)([(0,s.$K)("esri.renderers.support.RasterPresetRenderer")],p);const m=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],i.prototype,"activePresetRendererName",void 0),(0,r.Cg)([(0,s.MZ)({type:[p],json:{name:"layerDefinition.presetRenderers",write:!0}})],i.prototype,"presetRenderers",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.RasterPresetRendererMixin")],i),i}},91908(e,t,i){i.d(t,{D:()=>n});var r=i(60694);const s=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;let{wkid:i}=t;for(let t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}s.push([10.91,()=>{let e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{let e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{let e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{let e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{let e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},82371(e,t,i){i.d(t,{E9:()=>y,Tw:()=>c,X6:()=>d});var r=i(56507),s=i(5443),n=i(86738),a=i(16930),o=i(87186),l=i(20223),u=i(2272),p=i(22671);async function m(e,t,i){let m=(0,u.Dl)(e),{rasterFunction:c,sourceJSON:d}=t||{},y=c?JSON.stringify(c.rasterFunctionDefinition||c):null,h=(0,u.lF)({...m.query,renderingRule:y,f:"json"}),g=(0,u.jV)(h,i);e=m.path;let f=d||await(0,r.A)(e,g).then(e=>e.data),{currentVersion:w}=f,v=f.hasRasterAttributeTable?(0,r.A)(`${e}/rasterAttributeTable`,g):null,R=f.hasColormap?(0,r.A)(`${e}/colormap`,g):null,C=f.hasHistograms?(0,r.A)(`${e}/histograms`,g):null,b=w>=10.3?(0,r.A)(`${e}/keyProperties`,g):null,S=f.hasMultidimensions?(0,r.A)(`${e}/multidimensionalInfo`,g):null,x=(c?w>=10.91:w>=10.81)?(0,r.A)(`${e}/statistics`,g):null,I=await Promise.allSettled([v,R,C,b,S,x]),M=s.A.fromJSON(f.extent),F=Math.ceil(M.width/f.pixelSizeX-.1),A=Math.ceil(M.height/f.pixelSizeY-.1),D=a.A.fromJSON(f.spatialReference||f.extent.spatialReference),T="fulfilled"===I[0].status?I[0].value?.data:null,P=T?.features?.length?p.A.fromJSON(T):null,j="fulfilled"===I[1].status?I[1].value?.data.colormap:null,N=j?.length?j:null,O="fulfilled"===I[2].status?I[2].value?.data.histograms:null,Z=O?.[0]?.counts?.length?O:null,_="fulfilled"===I[3].status?I[3].value?.data??{}:{},V="fulfilled"===I[4].status?I[4].value?.data.multidimensionalInfo:null,q=V?.variables?.length?V:null;var E;(E=q)&&E.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"===e.name&&!e.recurring&&!e.unit&&(e.unit="ISO8601")})});let J=function(e,t){let i=null;t&&t.length===e.bandCount&&(i=t.map(e=>{let t=e.covariances?.trim(),i=t?t.split(",").map(Number):void 0;return{avg:e.mean,count:e.count,max:e.max,median:e.median,min:e.min,mode:e.mode,stddev:e.standardDeviation,sum:e.sum,covariances:i}}));let r=e.minValues?.length===e.bandCount?e.minValues.map((t,i)=>({min:t,max:e.maxValues[i],avg:e.meanValues[i],stddev:e.stdvValues[i]})):null;return null==r||null==i||i.some((e,t)=>e.min!==r[t]?.min||e.max!==r[t]?.max||e.avg!==r[t]?.avg||e.stddev!==r[t]?.stddev)?r:i}(f,"fulfilled"===I[5].status?I[5].value?.data.statistics:null),{defaultVariable:G,serviceDataType:$}=f;G&&G!==_.DefaultVariable&&(_.DefaultVariable=G),$?.includes("esriImageServiceDataTypeVector")&&!$.includes(_.DataType)&&(_.DataType=$.replace("esriImageServiceDataType",""));let z=f.noDataValue;f.noDataValues?.length&&f.noDataValues.some(e=>e!==z)&&(z=f.noDataValues);let L=f.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:f.extent.xmin,y:f.extent.ymax,spatialReference:D}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(F,A))/Math.LN2-8)),transposeInfo:f.transposeInfo}):void 0;return new o.A({width:F,height:A,bandCount:f.bandCount,extent:s.A.fromJSON(f.extent),spatialReference:D,pixelSize:new n.A({x:f.pixelSizeX,y:f.pixelSizeY,spatialReference:D}),pixelType:f.pixelType.toLowerCase(),statistics:J,attributeTable:P,colormap:N,histograms:Z,keyProperties:_,noDataValue:z,multidimensionalInfo:q,storageInfo:L})}function c(e,t,i){return m(e,{sourceJSON:t},i)}function d(e,t,i){return m(e,{rasterFunction:t},i)}function y(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},20615(e,t,i){i.d(t,{I:()=>a});var r=i(2272),s=i(80893),n=i(97552);function a(e,t,i,a){return(0,s.gW)((0,r.Dl)(e),n.A.from(t),i,a)}},74910(e,t,i){i.d(t,{L:()=>o});var r=i(5443),s=i(2272),n=i(80893),a=i(97552);async function o(e,t,i){let o=(0,s.Dl)(e),l=await(0,n.Jf)(o,a.A.from(t),{...i}),u=l.extent;return!u||isNaN(u.xmin)||isNaN(u.ymin)||isNaN(u.xmax)||isNaN(u.ymax)?{count:l.count,extent:null}:{count:l.count,extent:r.A.fromJSON(u)}}},78286(e,t,i){i.d(t,{V:()=>a});var r=i(2272),s=i(80893),n=i(97552);async function a(e,t,i,a){let o=(0,r.Dl)(e),l=await(0,s.Pk)(o,n.A.from(t),i,a);return l.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(l.uniqueIds)??[]}},99199(e,t,i){i.d(t,{e:()=>l,s:()=>o});var r=i(2272),s=i(80893),n=i(22671),a=i(97552);async function o(e,t,i,r){let s=await l(e,t,i,r);return n.A.fromJSON(s)}function l(e,t,i,n){let o=(0,r.Dl)(e),l={...i},u=a.A.from(t);return(0,s.eW)(o,u,u.sourceSpatialReference,l,n)}},2272(e,t,i){i.d(t,{Dl:()=>u,gf:()=>m,jV:()=>l,lF:()=>p});var r=i(92602),s=i(70333),n=i(4718),a=i(84952),o=i(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,a.An)(e):(0,n.o8)(e)}function p(e,t,i){let r={};for(let s in e){if("declaredClass"===s)continue;let n=e[s];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))r[s]=n.map(e=>p(e));else if("object"==typeof n)if(n.toJSON){let e=n.toJSON(i?.[s]);r[s]=t?e:JSON.stringify(e)}else r[s]=t?n:JSON.stringify(n);else r[s]=n}return r}async function m(e,t,n){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??s.id?.findCredential(e)?.token:null}(e,t)||(!s.id&&r.A.request.useIdentity&&await Promise.all([i.e(6361),i.e(7644),i.e(7715)]).then(()=>i(50148)),(await s.id.getCredential(e,n))?.token)}},24212(e,t,i){i.d(t,{$7:()=>l,B:()=>o,M7:()=>m,XF:()=>p,tW:()=>u,w7:()=>a});var r=i(56512),s=i(86211),n=i(16271);function a(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?c:d}(e).mode}(null==e||(e.hasZ??!1),t)}function o(e,t,i){return i&&i.mode!==t?`${e} only support ${t} elevation mode`:null}function l(e,t,i){return i?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function p(e,t){t&&e.warn(".elevationInfo=",t)}function m(e){return(e?.offset??0)*(0,n.Ao)(e?.unit)}(0,r.B)((e,t,i)=>{if(!e||"decimal-degrees"===t)return 0;let r="unknown"!==t&&t?t:"meters",n=(0,s.mq)(i);return n?(0,s.oU)(e,r,n):0});const c={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}}}]);