@arcgis/core 4.28.0-next.20231002 → 4.28.0-rc.0

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 (257) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/02120d192eafd7612475.js +1 -0
  3. package/assets/esri/core/workers/chunks/{4d967e98d229f18d61f5.js → 09e8babe75407c2e64c4.js} +1 -1
  4. package/assets/esri/core/workers/chunks/0beebbb0c6dad0e742d7.js +1 -0
  5. package/assets/esri/core/workers/chunks/0d8ca51043c7784aed96.js +1 -0
  6. package/assets/esri/core/workers/chunks/112e89da628bdea5355c.js +1 -0
  7. package/assets/esri/core/workers/chunks/{5e9edd06e624f385fa4b.js → 121a9e148509f2fe2210.js} +1 -1
  8. package/assets/esri/core/workers/chunks/1856d16d738f44f58084.js +1 -0
  9. package/assets/esri/core/workers/chunks/{0526d623d0b4c12929bd.js → 18ab9cc85a1a7988fdfd.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{7c960a2694c4c3123acf.js → 1a36703ebe934749646e.js} +1 -1
  11. package/assets/esri/core/workers/chunks/24a0cf405195421c0d06.js +1 -0
  12. package/assets/esri/core/workers/chunks/24ff267cf253feac22de.js +1 -0
  13. package/assets/esri/core/workers/chunks/{3c8613596659801fd6ab.js → 29cab345819ec02ed60a.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{169a61c6e128b8a16021.js → 2c560a075d9ef2069ed1.js} +1 -1
  15. package/assets/esri/core/workers/chunks/2f8e71dac98135bbc3e6.js +1 -0
  16. package/assets/esri/core/workers/chunks/341fb51b2165522963b3.js +1 -0
  17. package/assets/esri/core/workers/chunks/{ad8e0f82cb1feafa9e2f.js → 36ab90fb34b9716a9983.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{2688213bbff536da7917.js → 3ea0b872436fce84b927.js} +1 -1
  19. package/assets/esri/core/workers/chunks/40633064c290dc2af9ea.js +1 -0
  20. package/assets/esri/core/workers/chunks/42ec4c80b0c2944cd65c.js +1 -0
  21. package/assets/esri/core/workers/chunks/44b870cb53ba68b17c32.js +1 -0
  22. package/assets/esri/core/workers/chunks/{8a7fa4e8b0d14da7c9eb.js → 4cc680fe4c9c39d2f853.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{6730c9f0890191a95fdb.js → 4d81aa50d90f5701a343.js} +1 -1
  24. package/assets/esri/core/workers/chunks/4e0bf30da4281070e453.js +1 -0
  25. package/assets/esri/core/workers/chunks/4e6bf1efe3b0b474cbb4.js +1 -0
  26. package/assets/esri/core/workers/chunks/52cef7cd3aaaa4f45c94.js +1 -0
  27. package/assets/esri/core/workers/chunks/{4e04242e707c0eb3aa4a.js → 5a3ccc0a19ac8fa9e524.js} +1 -1
  28. package/assets/esri/core/workers/chunks/5e907ec0ee1565b5fbbc.js +1 -0
  29. package/assets/esri/core/workers/chunks/66ba749ab0a631bbfdec.js +1 -0
  30. package/assets/esri/core/workers/chunks/6b14d89d689a21014aec.js +1 -0
  31. package/assets/esri/core/workers/chunks/6b1856303d1562f05100.js +1 -0
  32. package/assets/esri/core/workers/chunks/{576269fd1f9049876aa1.js → 6b7b5544ed1f9a84623f.js} +1 -1
  33. package/assets/esri/core/workers/chunks/710a6268de62003af825.js +1 -0
  34. package/assets/esri/core/workers/chunks/77923afde29ae1ff10ca.js +1 -0
  35. package/assets/esri/core/workers/chunks/784ffd52315a4d55d683.js +1 -0
  36. package/assets/esri/core/workers/chunks/7cf7f2b991a7cbdad2ce.js +1 -0
  37. package/assets/esri/core/workers/chunks/{70dffbf49b0633b1a5f1.js → 8f3680fee85a05839489.js} +1 -1
  38. package/assets/esri/core/workers/chunks/97aecf210938015cc7a3.js +1 -0
  39. package/assets/esri/core/workers/chunks/{c7ebd5d431fb996bfcee.js → 9f8207c82a17508a87a8.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{557305b91f77569ce664.js → a01ffe03b1465c21b9e6.js} +1 -1
  41. package/assets/esri/core/workers/chunks/a298c9031962951e55a9.js +1 -0
  42. package/assets/esri/core/workers/chunks/{329669a9beda89b028dd.js → a5a7bbdd8298016535bc.js} +1 -1
  43. package/assets/esri/core/workers/chunks/a877a4826cd6a46ec99b.js +1 -0
  44. package/assets/esri/core/workers/chunks/ad38e456a7cee940a165.js +1 -0
  45. package/assets/esri/core/workers/chunks/adfbc168be8c49b51e1b.js +1 -0
  46. package/assets/esri/core/workers/chunks/b0526633a93ef69ec47b.js +1 -0
  47. package/assets/esri/core/workers/chunks/b99bc08a01e9250b0a31.js +1 -0
  48. package/assets/esri/core/workers/chunks/{36c4b4c3eca57417da2c.js → c260ad3434bb00ba64a7.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{39922ce232338de076ae.js → c459c8d8630eb4b955b1.js} +1 -1
  50. package/assets/esri/core/workers/chunks/c92e75b79aff7b505b31.js +1 -0
  51. package/assets/esri/core/workers/chunks/ca85e88dad30b5f2956b.js +1 -0
  52. package/assets/esri/core/workers/chunks/{8e56d40691b6bf75d7cc.js → ce409944221a784ddb61.js} +1 -1
  53. package/assets/esri/core/workers/chunks/d13f75f233cf313e5a1d.js +1 -0
  54. package/assets/esri/core/workers/chunks/d60d5f006375f7fcc88c.js +1 -0
  55. package/assets/esri/core/workers/chunks/{77958089748dc31757cf.js → d6ded127949160103f69.js} +1 -1
  56. package/assets/esri/core/workers/chunks/d8c696da42f8f8919b83.js +1 -0
  57. package/assets/esri/core/workers/chunks/{304c81f6297ecba3a324.js → d95eed98316e59f8f35d.js} +1 -1
  58. package/assets/esri/core/workers/chunks/df7267892b6e0493e1d7.js +1 -0
  59. package/assets/esri/core/workers/chunks/{52dca349e1a45555954d.js → e52d5a48e83d8df36f92.js} +1 -1
  60. package/assets/esri/core/workers/chunks/e8688b6cc3b3c1010b43.js +1 -0
  61. package/assets/esri/core/workers/chunks/e8c7cc974420c0b92d0e.js +1 -0
  62. package/assets/esri/core/workers/chunks/{b7ef554b1213307499fc.js → e93442c6d92229f3a4b0.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{ef5772ca1848d6d01b88.js → eda86faa708cfe4c9f9a.js} +1 -1
  64. package/assets/esri/core/workers/chunks/f2718e260f594537f7fd.js +1 -0
  65. package/assets/esri/core/workers/chunks/f6b7036114b1d754fdd9.js +1 -0
  66. package/assets/esri/core/workers/chunks/{c4631241dc777ca77aaa.js → f6c0680c535c5a3c73ee.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{a0ea1d3e22d52b8a59a8.js → fa6103e3d4e857b0035b.js} +9 -9
  68. package/assets/esri/core/workers/chunks/fac3e57784d7f37053af.js +1 -0
  69. package/assets/esri/geometry/support/pe-wasm.wasm +0 -0
  70. package/assets/esri/t9n/common.json +1 -1
  71. package/assets/esri/t9n/common_ar.json +1 -1
  72. package/assets/esri/t9n/common_bg.json +1 -1
  73. package/assets/esri/t9n/common_bs.json +1 -1
  74. package/assets/esri/t9n/common_ca.json +1 -1
  75. package/assets/esri/t9n/common_cs.json +1 -1
  76. package/assets/esri/t9n/common_da.json +1 -1
  77. package/assets/esri/t9n/common_de.json +1 -1
  78. package/assets/esri/t9n/common_el.json +1 -1
  79. package/assets/esri/t9n/common_en.json +1 -1
  80. package/assets/esri/t9n/common_es.json +1 -1
  81. package/assets/esri/t9n/common_et.json +1 -1
  82. package/assets/esri/t9n/common_fi.json +1 -1
  83. package/assets/esri/t9n/common_fr.json +1 -1
  84. package/assets/esri/t9n/common_he.json +1 -1
  85. package/assets/esri/t9n/common_hr.json +1 -1
  86. package/assets/esri/t9n/common_hu.json +1 -1
  87. package/assets/esri/t9n/common_id.json +1 -1
  88. package/assets/esri/t9n/common_it.json +1 -1
  89. package/assets/esri/t9n/common_ja.json +1 -1
  90. package/assets/esri/t9n/common_ko.json +1 -1
  91. package/assets/esri/t9n/common_lt.json +1 -1
  92. package/assets/esri/t9n/common_lv.json +1 -1
  93. package/assets/esri/t9n/common_nb.json +1 -1
  94. package/assets/esri/t9n/common_nl.json +1 -1
  95. package/assets/esri/t9n/common_pl.json +1 -1
  96. package/assets/esri/t9n/common_pt-BR.json +1 -1
  97. package/assets/esri/t9n/common_pt-PT.json +1 -1
  98. package/assets/esri/t9n/common_ro.json +1 -1
  99. package/assets/esri/t9n/common_ru.json +1 -1
  100. package/assets/esri/t9n/common_sk.json +1 -1
  101. package/assets/esri/t9n/common_sl.json +1 -1
  102. package/assets/esri/t9n/common_sr.json +1 -1
  103. package/assets/esri/t9n/common_sv.json +1 -1
  104. package/assets/esri/t9n/common_th.json +1 -1
  105. package/assets/esri/t9n/common_tr.json +1 -1
  106. package/assets/esri/t9n/common_uk.json +1 -1
  107. package/assets/esri/t9n/common_vi.json +1 -1
  108. package/assets/esri/t9n/common_zh-CN.json +1 -1
  109. package/assets/esri/t9n/common_zh-HK.json +1 -1
  110. package/assets/esri/t9n/common_zh-TW.json +1 -1
  111. package/assets/esri/themes/base/widgets/_DirectionalPad.scss +2 -1
  112. package/assets/esri/themes/base/widgets/_FeatureForm.scss +0 -1
  113. package/assets/esri/themes/dark/main.css +1 -1
  114. package/assets/esri/themes/light/main.css +1 -1
  115. package/assets/esri/themes/light/view.css +1 -1
  116. package/chunks/pe-wasm.js +1 -1
  117. package/config.js +1 -1
  118. package/core/pbf.js +1 -1
  119. package/geometry/support/WKIDUnitConversion.js +1 -1
  120. package/geometry/support/plane.js +1 -1
  121. package/interfaces.d.ts +37 -39
  122. package/kernel.js +1 -1
  123. package/layers/GroupLayer.js +1 -1
  124. package/layers/SceneLayer.js +1 -1
  125. package/layers/graphics/data/QueryEngine.js +1 -1
  126. package/layers/graphics/data/QueryEngineResult.js +1 -1
  127. package/layers/graphics/editingSupport.js +1 -1
  128. package/layers/graphics/sources/WFSSourceWorker.js +1 -1
  129. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  130. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  131. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  132. package/layers/mixins/OperationalLayer.js +1 -1
  133. package/layers/save/featureLayerUtils.js +1 -1
  134. package/layers/save/groupLayerUtils.js +5 -0
  135. package/layers/save/utils.js +1 -1
  136. package/layers/support/LayerLoadContext.js +5 -0
  137. package/layers/support/featureLayerUtils.js +1 -1
  138. package/layers/support/labelFormatUtils.js +1 -1
  139. package/layers/support/layersCreator.js +1 -1
  140. package/layers/support/versionUtils.js +1 -1
  141. package/networks/UtilityNetwork.js +1 -1
  142. package/package.json +1 -1
  143. package/portal/schemas/definitions.js +1 -1
  144. package/portal/support/jsonContext.js +1 -1
  145. package/portal/support/layersLoader.js +1 -1
  146. package/portal/support/loadUtils.js +5 -0
  147. package/portal/support/portalItemUtils.js +1 -1
  148. package/portal/support/portalLayers.js +1 -1
  149. package/renderers/support/RasterSymbolizer.js +1 -1
  150. package/rest/print.js +1 -1
  151. package/support/basemapUtils.js +1 -1
  152. package/support/revision.js +1 -1
  153. package/symbols/PolygonSymbol3D.js +1 -1
  154. package/views/2d/engine/imagery/RasterBitmap.js +1 -1
  155. package/views/2d/engine/imagery/colorizer/shadedrelief.js +1 -1
  156. package/views/2d/engine/imagery/colorizer/stretch.js +1 -1
  157. package/views/2d/input/handlers/KeyPan.js +1 -1
  158. package/views/2d/input/handlers/KeyRotate.js +1 -1
  159. package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
  160. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  161. package/views/2d/layers/features/support/FeatureSetReaderPBFIndirect.js +1 -1
  162. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  163. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  164. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  165. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  166. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  167. package/views/3d/layers/i3s/featureEditing.js +1 -1
  168. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  169. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  170. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  171. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  172. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  173. package/views/DOMContainer.js +1 -1
  174. package/views/draw/DrawGraphicTool.js +1 -1
  175. package/views/draw/DrawOperation.js +1 -1
  176. package/views/draw/support/Box.js +1 -1
  177. package/views/draw/support/Reshape.js +1 -1
  178. package/views/input/VisibilityChange.js +5 -0
  179. package/views/interactive/sketch/constraints.js +1 -1
  180. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  181. package/views/interactive/snapping/FeatureSnappingSourceInfo.js +5 -0
  182. package/views/interactive/snapping/SnappingContext.js +1 -1
  183. package/views/interactive/snapping/SnappingDragPipelineStep.js +1 -1
  184. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  185. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  186. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorkerHandle.js +1 -1
  187. package/views/interactive/snapping/snappingUtils.js +1 -1
  188. package/webdoc/support/saveUtils.js +1 -1
  189. package/webdoc/webdocSaveUtils.js +1 -1
  190. package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
  191. package/widgets/DirectionalPad/constants.js +1 -1
  192. package/widgets/DirectionalPad.js +1 -1
  193. package/widgets/Editor/Upload.js +1 -1
  194. package/widgets/Editor/workflowUtils.js +1 -1
  195. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  196. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  197. package/widgets/FeatureForm/FieldInput.js +1 -1
  198. package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
  199. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  200. package/widgets/FeatureForm.js +1 -1
  201. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  202. package/widgets/FeatureTable/FieldColumn.js +1 -1
  203. package/widgets/FeatureTable/Grid/Column.js +1 -1
  204. package/widgets/FeatureTable.js +1 -1
  205. package/widgets/ScaleRangeSlider.js +1 -1
  206. package/widgets/support/DatePicker.js +1 -1
  207. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  208. package/widgets/support/Selector2D/SelectionOperation2D.js +1 -1
  209. package/widgets/support/Selector2D.js +1 -1
  210. package/widgets/support/TimePicker.js +1 -1
  211. package/widgets/support/dateUtils.js +1 -1
  212. package/assets/esri/core/workers/chunks/027f8b57565c65fbccda.js +0 -1
  213. package/assets/esri/core/workers/chunks/048265fb5953350e3e33.js +0 -1
  214. package/assets/esri/core/workers/chunks/0b9cf14f8aafb76c578b.js +0 -1
  215. package/assets/esri/core/workers/chunks/0ebf58c927bfc4c9d4fe.js +0 -1
  216. package/assets/esri/core/workers/chunks/10fd951bd296b2beeeba.js +0 -1
  217. package/assets/esri/core/workers/chunks/1224475f3eefdfd59c76.js +0 -1
  218. package/assets/esri/core/workers/chunks/162b0220e24e9ba72655.js +0 -1
  219. package/assets/esri/core/workers/chunks/1e611cad53b745ee146f.js +0 -1
  220. package/assets/esri/core/workers/chunks/24b1bf1a5d80f43a6c9a.js +0 -1
  221. package/assets/esri/core/workers/chunks/29ed31fd4f9d5cf53686.js +0 -1
  222. package/assets/esri/core/workers/chunks/2b6d1c8e4ed759767827.js +0 -1
  223. package/assets/esri/core/workers/chunks/34b44b0fab88f838885c.js +0 -1
  224. package/assets/esri/core/workers/chunks/364f55294a1d7bf163d7.js +0 -1
  225. package/assets/esri/core/workers/chunks/3714ab435dd5ccf9e694.js +0 -1
  226. package/assets/esri/core/workers/chunks/3788009a5ece453011f3.js +0 -1
  227. package/assets/esri/core/workers/chunks/3aafe8160b3bfbaa6935.js +0 -1
  228. package/assets/esri/core/workers/chunks/41c002e4c42c581cda8d.js +0 -1
  229. package/assets/esri/core/workers/chunks/47be4c75dd6372b96fe4.js +0 -1
  230. package/assets/esri/core/workers/chunks/4e8d1e6051f6654a5e83.js +0 -1
  231. package/assets/esri/core/workers/chunks/53746e9976758630159b.js +0 -1
  232. package/assets/esri/core/workers/chunks/5449fdd69e12e5cbd12a.js +0 -1
  233. package/assets/esri/core/workers/chunks/57ce4ece0147afb0d43c.js +0 -1
  234. package/assets/esri/core/workers/chunks/5e83d21400a5dec05c81.js +0 -1
  235. package/assets/esri/core/workers/chunks/6047f4487dcd37cca98e.js +0 -1
  236. package/assets/esri/core/workers/chunks/6967d2b3721678b38774.js +0 -1
  237. package/assets/esri/core/workers/chunks/6ac5ca7de651e3d672a1.js +0 -1
  238. package/assets/esri/core/workers/chunks/6b7ee9164149428edb9e.js +0 -1
  239. package/assets/esri/core/workers/chunks/6c495077cc79e1898927.js +0 -1
  240. package/assets/esri/core/workers/chunks/6d43648d5326e01b4474.js +0 -1
  241. package/assets/esri/core/workers/chunks/74fb07de0f990d45af89.js +0 -1
  242. package/assets/esri/core/workers/chunks/8e9a52062ce059153a89.js +0 -1
  243. package/assets/esri/core/workers/chunks/919a57d372419785cd5e.js +0 -1
  244. package/assets/esri/core/workers/chunks/939f0a1a7d605e389e45.js +0 -1
  245. package/assets/esri/core/workers/chunks/9932f23ba6589df14a3d.js +0 -1
  246. package/assets/esri/core/workers/chunks/a25a38c9f338e0beffef.js +0 -1
  247. package/assets/esri/core/workers/chunks/a97581e584336b46ede7.js +0 -1
  248. package/assets/esri/core/workers/chunks/b1cb932cfadc4dc3f1e4.js +0 -1
  249. package/assets/esri/core/workers/chunks/be3fb6113b0b27b94537.js +0 -1
  250. package/assets/esri/core/workers/chunks/c37119f5692e19aa1ce2.js +0 -1
  251. package/assets/esri/core/workers/chunks/c685f16435d9861bbbd0.js +0 -1
  252. package/assets/esri/core/workers/chunks/d5dfc03673aec8aa57e2.js +0 -1
  253. package/assets/esri/core/workers/chunks/e6416a2684866d677b3e.js +0 -1
  254. package/assets/esri/core/workers/chunks/eb01f4cdb9b918cc61e7.js +0 -1
  255. package/assets/esri/core/workers/chunks/eb4aed4fdb44495a4fe6.js +0 -1
  256. package/assets/esri/core/workers/chunks/ec8258c9dc1491e97fc8.js +0 -1
  257. package/assets/esri/core/workers/chunks/eeac53da496de4cd4182.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7485,5732,5935,2596],{84552:(e,t,r)=>{r.d(t,{Z:()=>c});var i=r(43697),o=r(2368),s=r(96674),n=r(35463),l=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),p=r(78981);let d=class extends((0,o.J)(s.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,n.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,a.J)(p.v,{nonNullable:!0})],d.prototype,"unit",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,i._)([(0,u.j)("esri.TimeInterval")],d);const c=d},5732:(e,t,r)=>{r.d(t,{c:()=>i,g:()=>o});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},23477:(e,t,r)=>{r.r(t),r.d(t,{default:()=>V});var i=r(43697),o=(r(66577),r(51773)),s=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382),r(81571),r(91423),r(32400)),n=r(16453),l=r(95330),a=r(17452),u=r(5600),p=(r(75215),r(67676),r(80442)),d=r(52011),c=r(86973),y=r(87085),h=r(20102),f=r(83379),m=r(92604),b=r(56569),w=r(25278),g=r(74889),v=r(6570),_=r(38913);let S=class extends f.Z{constructor(){super(...arguments),this.type="geojson",this.refresh=(0,l.Ds)((async e=>{await this.load();const{extent:t,timeExtent:r}=await this._connection.invoke("refresh",e);return this.sourceJSON.extent=t,r&&(this.sourceJSON.timeInfo.timeExtent=[r.start,r.end]),{dataChanged:!0,updates:{extent:this.sourceJSON.extent,timeInfo:this.sourceJSON.timeInfo}}}))}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}applyEdits(e){return this.load().then((()=>this._applyEdits(e)))}openPorts(){return this.load().then((()=>this._connection.openPorts()))}queryFeatures(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatures",e?e.toJSON():null,t))).then((e=>g.Z.fromJSON(e)))}queryFeaturesJSON(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatures",e?e.toJSON():null,t)))}queryFeatureCount(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)))}queryObjectIds(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)))}queryExtent(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t))).then((e=>({count:e.count,extent:v.Z.fromJSON(e.extent)})))}querySnapping(e,t={}){return this.load(t).then((()=>this._connection.invoke("querySnapping",e,t)))}_applyEdits(e){if(!this._connection)throw new h.Z("geojson-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField,r=[],i=[],o=[];if(e.addFeatures)for(const t of e.addFeatures)r.push(this._serializeFeature(t));if(e.deleteFeatures)for(const r of e.deleteFeatures)"objectId"in r&&null!=r.objectId?i.push(r.objectId):"attributes"in r&&null!=r.attributes[t]&&i.push(r.attributes[t]);if(e.updateFeatures)for(const t of e.updateFeatures)o.push(this._serializeFeature(t));return this._connection.invoke("applyEdits",{adds:r,updates:o,deletes:i}).then((({extent:e,timeExtent:t,featureEditResults:r})=>(this.sourceJSON.extent=e,t&&(this.sourceJSON.timeInfo.timeExtent=[t.start,t.end]),this._createEditsResult(r))))}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new h.Z("geojson-layer-source:edit-failure",t.description,{code:t.code}):null}}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e);return r?{geometry:r.toJSON(),attributes:t}:{attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return null==t?null:"mesh"===t.type||"extent"===t.type?_.Z.fromExtent(t.extent):t}async _startWorker(e){this._connection=await(0,b.bA)("GeoJSONSourceWorker",{strategy:(0,p.Z)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});const{fields:t,spatialReference:r,hasZ:i,geometryType:o,objectIdField:s,url:n,timeInfo:l,customParameters:a}=this.layer,u="defaults"===this.layer.originOf("spatialReference"),d={url:n,customParameters:a,fields:t&&t.map((e=>e.toJSON())),geometryType:c.M.toJSON(o),hasZ:i,objectIdField:s,timeInfo:l?l.toJSON():null,spatialReference:u?null:r&&r.toJSON()},y=await this._connection.invoke("load",d,{signal:e});for(const e of y.warnings)m.Z.getLogger(this.layer).warn("#load()",`$${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});y.featureErrors.length&&m.Z.getLogger(this.layer).warn("#load()",`Encountered ${y.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{errors:y.featureErrors}),this.sourceJSON=y.layerDefinition,this.capabilities=(0,w.MS)(this.sourceJSON.hasZ,!0)}};(0,i._)([(0,u.Cb)()],S.prototype,"capabilities",void 0),(0,i._)([(0,u.Cb)()],S.prototype,"type",void 0),(0,i._)([(0,u.Cb)({constructOnly:!0})],S.prototype,"layer",void 0),(0,i._)([(0,u.Cb)()],S.prototype,"sourceJSON",void 0),S=(0,i._)([(0,d.j)("esri.layers.graphics.sources.GeoJSONSource")],S);var C=r(71612),x=r(17017),F=r(69637),I=r(6404),j=r(38009),E=r(68825),O=r(16859),R=r(34760),T=r(72965),Z=r(28294),N=r(21506),P=r(70082),q=r(16451),M=r(1231),A=r(53518),D=r(35671),J=r(54306),L=r(30707),G=r(14165),U=r(32163),k=r(25031),Q=r(82971);const z=(0,A.v)();let B=class extends((0,E.c)((0,x.N)((0,I.M)((0,F.b)((0,C.h)((0,Z.n)((0,T.M)((0,R.Q)((0,j.q)((0,O.I)((0,n.R)(y.Z)))))))))))){constructor(e){super(e),this.copyright=null,this.dateFieldsTimeZone=null,this.definitionExpression=null,this.displayField=null,this.editingEnabled=!1,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.hasZ=void 0,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="GeoJSON",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new S({layer:this}),this.spatialReference=Q.Z.WGS84,this.templates=null,this.title="GeoJSON",this.type="geojson",this.typeIdField=null,this.types=null}destroy(){this.source?.destroy()}load(e){const t=this.loadFromPortal({supportedTypes:["GeoJson"],supportsData:!1},e).catch(l.r9).then((()=>this.source.load(e))).then((()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo"],"service"),(0,D.YN)(this.renderer,this.fieldsIndex),(0,D.UF)(this.timeInfo,this.fieldsIndex)}));return this.addResolvingPromise(t),Promise.resolve(this)}get capabilities(){return this.source?this.source.capabilities:null}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}get parsedUrl(){return this.url?(0,a.mN)(this.url):null}set renderer(e){(0,D.YN)(e,this.fieldsIndex),this._set("renderer",e)}set url(e){if(!e)return void this._set("url",e);const t=(0,a.mN)(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}async applyEdits(e,t){const{applyEdits:i}=await r.e(4720).then(r.bind(r,14720));await this.load();const o=await i(this,this.source,e,t);return this.read({extent:this.source.sourceJSON.extent,timeInfo:this.source.sourceJSON.timeInfo},{origin:"service",ignoreDefaults:!0}),o}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,U.eZ)(this,e)}createQuery(){const e=new G.Z,t=this.capabilities?.data;e.returnGeometry=!0,t&&t.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e}getFieldDomain(e,t){let r,i=!1;const o=t?.feature,s=o?.attributes,n=this.typeIdField&&s?.[this.typeIdField];return null!=n&&this.types&&(i=this.types.some((t=>t.id==n&&(r=t.domains&&t.domains[e],r&&"inherited"===r.type&&(r=this._getLayerDomain(e)),!0)))),i||r||(r=this._getLayerDomain(e)),r}getField(e){return this.fieldsIndex.get(e)}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(G.Z.from(e)||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>this.source.queryObjectIds(G.Z.from(e)||this.createQuery(),t)))}queryFeatureCount(e,t){return this.load().then((()=>this.source.queryFeatureCount(G.Z.from(e)||this.createQuery(),t)))}queryExtent(e,t){return this.load().then((()=>this.source.queryExtent(G.Z.from(e)||this.createQuery(),t)))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}_getLayerDomain(e){if(!this.fields)return null;let t=null;return this.fields.some((r=>(r.name===e&&(t=r.domain),!!t))),t}};(0,i._)([(0,u.Cb)({readOnly:!0,json:{read:!1,write:!1}})],B.prototype,"capabilities",null),(0,i._)([(0,u.Cb)({type:String})],B.prototype,"copyright",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"createQueryVersion",null),(0,i._)([(0,u.Cb)((0,k.mi)("dateFieldsTimeReference"))],B.prototype,"dateFieldsTimeZone",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"defaultPopupTemplate",null),(0,i._)([(0,u.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],B.prototype,"definitionExpression",void 0),(0,i._)([(0,u.Cb)({type:String})],B.prototype,"displayField",void 0),(0,i._)([(0,u.Cb)({type:Boolean})],B.prototype,"editingEnabled",void 0),(0,i._)([(0,u.Cb)(N.PV)],B.prototype,"elevationInfo",void 0),(0,i._)([(0,u.Cb)({type:[M.Z],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],B.prototype,"fields",void 0),(0,i._)([(0,u.Cb)(z.fieldsIndex)],B.prototype,"fieldsIndex",void 0),(0,i._)([(0,u.Cb)({type:v.Z,json:{name:"extent"}})],B.prototype,"fullExtent",void 0),(0,i._)([(0,u.Cb)({type:["point","polygon","polyline","multipoint"],json:{read:{reader:c.M.read}}})],B.prototype,"geometryType",void 0),(0,i._)([(0,u.Cb)({type:Boolean})],B.prototype,"hasZ",void 0),(0,i._)([(0,u.Cb)(N.id)],B.prototype,"id",void 0),(0,i._)([(0,u.Cb)({type:Boolean,readOnly:!0})],B.prototype,"isTable",null),(0,i._)([(0,u.Cb)(N.iR)],B.prototype,"labelsVisible",void 0),(0,i._)([(0,u.Cb)({type:[J.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:L.r},write:!0}})],B.prototype,"labelingInfo",void 0),(0,i._)([(0,u.Cb)(N.rn)],B.prototype,"legendEnabled",void 0),(0,i._)([(0,u.Cb)({type:["show","hide"]})],B.prototype,"listMode",void 0),(0,i._)([(0,u.Cb)({type:String,json:{name:"layerDefinition.objectIdField",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"objectIdField"}}}})],B.prototype,"objectIdField",void 0),(0,i._)([(0,u.Cb)(N.Oh)],B.prototype,"opacity",void 0),(0,i._)([(0,u.Cb)({type:["GeoJSON"]})],B.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"parsedUrl",null),(0,i._)([(0,u.Cb)(N.C_)],B.prototype,"popupEnabled",void 0),(0,i._)([(0,u.Cb)({type:o.Z,json:{name:"popupInfo",write:!0}})],B.prototype,"popupTemplate",void 0),(0,i._)([(0,u.Cb)({types:s.A,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:s.o}}}})],B.prototype,"renderer",null),(0,i._)([(0,u.Cb)(N.YI)],B.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"source",void 0),(0,i._)([(0,u.Cb)({type:Q.Z})],B.prototype,"spatialReference",void 0),(0,i._)([(0,u.Cb)({type:[P.Z]})],B.prototype,"templates",void 0),(0,i._)([(0,u.Cb)()],B.prototype,"title",void 0),(0,i._)([(0,u.Cb)({json:{read:!1},readOnly:!0})],B.prototype,"type",void 0),(0,i._)([(0,u.Cb)({type:String,readOnly:!0})],B.prototype,"typeIdField",void 0),(0,i._)([(0,u.Cb)({type:[q.Z]})],B.prototype,"types",void 0),(0,i._)([(0,u.Cb)(N.HQ)],B.prototype,"url",null),B=(0,i._)([(0,d.j)("esri.layers.GeoJSONLayer")],B);const V=B},61159:(e,t,r)=>{r.d(t,{g:()=>i});const i={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},25278:(e,t,r)=>{r.d(t,{Dm:()=>p,Hq:()=>d,MS:()=>c,bU:()=>l});var i=r(80442),o=r(22974),s=r(61159),n=r(58333);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?n.I4:"esriGeometryPolyline"===e?n.ET:n.lF}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${a.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch(r){return()=>({[t]:null,...e})}}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,o.d9)(e)}}]}function c(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},17017:(e,t,r)=>{r.d(t,{N:()=>n});var i=r(43697),o=r(5600),s=(r(75215),r(67676),r(80442),r(52011));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,o.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},69637:(e,t,r)=>{r.d(t,{b:()=>j});var i,o=r(43697),s=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),l=r(20102),a=r(96674),u=r(78286),p=r(67760),d=r(66577),c=r(92835),y=r(35454),h=r(22974),f=r(14165);const m=new y.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),b=new y.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=i=class extends a.wq{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:o,objectIds:s,units:n,distance:l}=this;return new f.Z({geometry:(0,h.d9)(r),objectIds:(0,h.d9)(s),spatialRelationship:i,timeExtent:(0,h.d9)(o),where:t,units:n,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:o,objectIds:s,units:n,distance:l}=this;return new i({geometry:(0,h.d9)(t),objectIds:(0,h.d9)(s),spatialRelationship:r,timeExtent:(0,h.d9)(o),where:e,units:n,distance:l})}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,o._)([(0,s.Cb)({types:d.qM,json:{write:!0}})],w.prototype,"geometry",void 0),(0,o._)([(0,s.Cb)({type:m.apiValues,json:{name:"spatialRel",read:{reader:m.read},write:{allowNull:!1,writer:m.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,o._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,o._)([(0,s.Cb)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,o._)([(0,s.Cb)({type:b.apiValues,json:{read:b.read,write:{writer:b.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,o._)([(0,s.Cb)({type:c.Z,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=i=(0,o._)([(0,n.j)("esri.layers.support.FeatureFilter")],w);const g=w;var v;const _={read:{reader:p.ij},write:{writer:p.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},S={read:{reader:p.ij},write:{writer:p.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},C={name:"showExcludedLabels",default:!0};let x=v=class extends a.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new l.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new l.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new v({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,o._)([(0,s.Cb)({type:g,json:{write:{allowNull:!0,writer(e,t,r,i){const o=e?.write({},i);o&&0!==Object.keys(o).length?(0,u.RB)(r,o,t):(0,u.RB)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,o._)([(0,s.Cb)({json:{write:!0,origins:{"web-map":_,"portal-item":_}}})],x.prototype,"includedEffect",void 0),(0,o._)([(0,s.Cb)({json:{write:!0,origins:{"web-map":S,"portal-item":S}}})],x.prototype,"excludedEffect",void 0),(0,o._)([(0,s.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,o._)([(0,n.j)("esri.layers.support.FeatureEffect")],x);const F=x,I={write:{allowNull:!0}},j=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,o._)([(0,s.Cb)({type:F,json:{origins:{"web-map":I,"portal-item":I}}})],t.prototype,"featureEffect",void 0),t=(0,o._)([(0,n.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},68825:(e,t,r)=>{r.d(t,{c:()=>f});var i,o=r(43697),s=r(78286),n=r(5600),l=(r(75215),r(67676),r(80442),r(52011)),a=r(35454),u=r(96674);const p=new a.X({asc:"ascending",desc:"descending"});let d=i=class extends u.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,o._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,o._)([(0,n.Cb)({type:p.apiValues,json:{read:p.read,write:p.write}})],d.prototype,"order",void 0),d=i=(0,o._)([(0,l.j)("esri.layers.support.OrderByInfo")],d);const c=d;function y(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const o=new c;return o.read(i,r),[o]}function h(e,t,r,i){const o=e.find((e=>!!e.field));o&&(0,s.RB)(r,[o.toJSON()],t)}const f=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,o._)([(0,n.Cb)({type:[c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:y},write:{target:"layerDefinition.orderBy",writer:h}}})],t.prototype,"orderBy",void 0),t=(0,o._)([(0,l.j)("esri.layers.mixins.OrderedLayer")],t),t}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var i=r(43697),o=r(92604),s=r(95330),n=r(5600),l=r(90578),a=(r(67676),r(80442),r(52011)),u=r(82960),p=r(46791),d=(r(66643),r(20102),r(26258),r(87538));const c=new p.Z,y=new WeakMap;function h(e){(function(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e})(e)&&c.push(new WeakRef(e))}function f(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:f(t,e%t):0}let m=0,b=0;function w(){const e=Date.now();let t=!1;for(const r of c){const i=r.deref();i?i.refreshInterval&&e-(y.get(i)??0)+5>=6e4*i.refreshInterval&&(y.set(i,e),i.refresh(e)):t=!0}if(t)for(let e=c.length-1;e>=0;e--)c.at(e).deref()||c.removeAt(e)}(0,d.EH)((()=>{const e=Date.now();let t=0;for(const r of c){const i=r.deref();i&&(t=f(Math.round(6e4*i.refreshInterval),t),i.refreshInterval?y.get(i)||y.set(i,e):y.delete(i))}if(t!==b){if(b=t,clearInterval(m),0===b)return void(m=0);m=setInterval(w,b)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||h(this)}),(()=>{}))}destroy(){!function(e){const t=c.find((t=>t.deref()===e));t&&c.remove(t)}(this)}castRefreshInterval(e){return e>=.1?e:e<=0?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,s.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{o.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}get test(){const e=this;return{set refreshInterval(t){e._set("refreshInterval",t)}}}};return(0,i._)([(0,n.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:{enabled:!0,layerContainerTypes:u.C}}}}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,l.p)("refreshInterval")],t.prototype,"castRefreshInterval",null),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"refreshParameters",null),t=(0,i._)([(0,a.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>c});var i=r(43697),o=r(92835),s=r(84552),n=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),a=r(52011),u=r(35671),p=r(76259),d=r(78981);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,o=d.v.fromJSON(r.timeOffsetUnits);return i&&o?new s.Z({value:i,unit:o}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,n.Cb)({type:o.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,n.Cb)({type:s.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,l.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,n.Cb)({value:null,type:p.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,n.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},70082:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),o=r(2368),s=r(35454),n=r(96674),l=r(5600),a=(r(75215),r(67676),r(80442),r(52011));const u=new s.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.J)(n.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"description",void 0),(0,i._)([(0,l.Cb)({json:{read:u.read,write:u.write}})],p.prototype,"drawingTool",void 0),(0,i._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i._)([(0,l.Cb)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i._)([(0,a.j)("esri.layers.support.FeatureTemplate")],p);const d=p},16451:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),o=r(2368),s=r(96674),n=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),a=r(52011),u=r(30556),p=r(72729),d=r(70082);let c=class extends((0,o.J)(s.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,p.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"id",void 0),(0,i._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,n.Cb)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i._)([(0,l.r)("domains")],c.prototype,"readDomains",null),(0,i._)([(0,u.c)("domains")],c.prototype,"writeDomains",null),(0,i._)([(0,n.Cb)({type:[d.Z],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i._)([(0,a.j)("esri.layers.support.FeatureType")],c);const y=c},76259:(e,t,r)=>{r.d(t,{Z:()=>f});var i=r(43697),o=r(92835),s=r(84552),n=r(2368),l=r(96674),a=r(5600),u=(r(75215),r(67676),r(80442),r(71715)),p=r(52011),d=r(30556),c=r(25031);function y(e,t){return s.Z.fromJSON({value:e,unit:t})}let h=class extends((0,n.J)(l.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new o.Z({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,a.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,a.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.r)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,d.c)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,a.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,d.c)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,a.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,a.Cb)((0,c.mi)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,p.j)("esri.layers.support.TimeInfo")],h);const f=h},45574:(e,t,r)=>{r.d(t,{JD:()=>g,Jj:()=>S,sX:()=>J,Ob:()=>G,rP:()=>N,FV:()=>x,nU:()=>D,Ci:()=>F,Fr:()=>w,HW:()=>k,gG:()=>Z,uA:()=>U,SU:()=>I,KE:()=>O,VG:()=>E,tD:()=>j,kp:()=>R,C9:()=>T,rk:()=>P,kZ:()=>q,JY:()=>M,Y5:()=>_,uj:()=>C});var i=r(40330),o=r(9790),s=r(66643),n=r(20102),l=r(35454),a=r(42033),u=r(63213),p=r(14165);async function d(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=c(e));const i=function(e){return c(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),o=e.capabilities.query.supportsPagination;t.start=0,t.num=i;let s=null;for(;;){const n=await e.source.queryFeaturesJSON(t,r);if(null==s?s=n:s.features=s.features.concat(n.features),s.exceededTransferLimit=n.exceededTransferLimit,!o||!n.exceededTransferLimit)break;t.start+=i}return s}function c(e){return e.capabilities.query.supportsMaxRecordCountFactor?p.Z.MAX_MAX_RECORD_COUNT_FACTOR:1}var y=r(84230),h=r(84382),f=r(81571),m=r(56545),b=r(75935);const w=new l.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function g(e,t,r,i){const o=await A(e);if(await v(e,t,i),!o.addAttachment)throw new n.Z(i,"Layer source does not support addAttachment capability");return o.addAttachment(t,r)}function v(e,t,r){const{attributes:i}=t,{objectIdField:o}=e;return e.capabilities?.data?.supportsAttachment?t?i?o&&i[o]?Promise.resolve():Promise.reject(new n.Z(r,`feature is missing the identifying attribute ${o}`)):Promise.reject(new n.Z(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new n.Z(r,"A feature is required to add/delete/update attachments")):Promise.reject(new n.Z(r,"this layer doesn't support attachments"))}async function _(e,t,r,i,o){const s=await A(e);if(await v(e,t,o),!s.updateAttachment)throw new n.Z(o,"Layer source does not support updateAttachment capability");return s.updateAttachment(t,r,i)}async function S(e,t,i){const{applyEdits:o}=await r.e(4720).then(r.bind(r,14720)),s=await e.load(),{source:n,globalIdField:l}=s;let a=i;return("feature"===s.type?s.infoFor3D:null)&&null!=t.deleteFeatures&&null!=l&&(a={...a,globalIdToObjectId:await k(e,t.deleteFeatures,l)}),o(s,n,t,i)}async function C(e,t,i){const{uploadAssets:o}=await r.e(4720).then(r.bind(r,14720)),s=await e.load();return o(s,s.source,t,i)}async function x(e,t,r,i){const o=await A(e);if(await v(e,t,i),!o.deleteAttachments)throw new n.Z(i,"Layer source does not support deleteAttachments capability");return o.deleteAttachments(t,r)}async function F(e,t,r){const i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new n.Z(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function I(e,t,r,i){t=m.Z.from(t),await e.load();const o=e.source,s=e.capabilities;if(!s?.data?.supportsAttachment)throw new n.Z(i,"this layer doesn't support attachments");const{attachmentTypes:l,objectIds:a,globalIds:u,num:p,size:d,start:c,where:y}=t;if(!s?.operations?.supportsQueryAttachments&&(l?.length>0||u?.length>0||d?.length>0||p||c||y))throw new n.Z(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(a?.length||u?.length||y))throw new n.Z(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!o.queryAttachments)throw new n.Z(i,"Layer source does not support queryAttachments capability",t);return o.queryAttachments(t)}async function j(e,t,r,i){const o=await A(e);if(!o.queryObjectIds)throw new n.Z(i,"Layer source does not support queryObjectIds capability");return o.queryObjectIds(p.Z.from(t)??e.createQuery(),r)}async function E(e,t,r,i){const o=await A(e);if(!o.queryFeatureCount)throw new n.Z(i,"Layer source does not support queryFeatureCount capability");return o.queryFeatureCount(p.Z.from(t)??e.createQuery(),r)}async function O(e,t,r,i){const o=await A(e);if(!o.queryExtent)throw new n.Z(i,"Layer source does not support queryExtent capability");return o.queryExtent(p.Z.from(t)??e.createQuery(),r)}async function R(e,t,r,i){const o=await A(e);if(!o.queryRelatedFeatures)throw new n.Z(i,"Layer source does not support queryRelatedFeatures capability");return o.queryRelatedFeatures(b.default.from(t),r)}async function T(e,t,r,i){const o=await A(e);if(!o.queryRelatedFeaturesCount)throw new n.Z(i,"Layer source does not support queryRelatedFeaturesCount capability");return o.queryRelatedFeaturesCount(b.default.from(t),r)}async function Z(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:i}=await t.refresh();if(null!=i&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,a.E)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function N(e){const t=new p.Z,r=e.capabilities?.data,i=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,i&&(t.compactGeometryEnabled=i.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=i.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),r.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:o,timeExtent:s}=e;return t.timeExtent=null!=o&&null!=s?s.offset(-o.value,o.unit):s||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function P(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function q(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function M(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}async function A(e){return(await e.load()).source}async function D(e,t,r){const o=e.parsedUrl?.path;o&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const o=await(0,y.oP)(e,t);o&&(r=await i.id.checkSignInStatus(`${o}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(o,r)}function J(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const L=(0,u.d)({types:o.QT});function G(e,t){if(e.defaultSymbol)return e.types?.length?new f.Z({defaultSymbol:L(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:L(e.symbol,e,t)})))}):new h.Z({symbol:L(e.defaultSymbol,e,t)})}function U(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function k(e,t,r){if(null==t)return null;const i=[],{objectIdField:o}=e;if(t.forEach((e=>{let t=null;if("attributes"in e){const{attributes:i}=e;t={globalId:i[r],objectId:null!=i[o]&&-1!==i[o]?i[o]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null!=t.objectId&&-1!==t.objectId||i.push(t.globalId))})),0===i.length)return null;const n=e.createQuery();n.where=i.map((e=>`${r}='${e}'`)).join(" OR "),n.returnGeometry=!1,n.outFields=[o,r],n.cacheHint=!1;const l=await(0,s.mt)(d(e,n));if(!l.ok)return null;const a=new Map,u=l.value.features;for(const e of u){const t=e.attributes[r],i=e.attributes[o];null!=t&&null!=i&&-1!==i&&a.set(t,i)}return a}},53518:(e,t,r)=>{r.d(t,{v:()=>a});var i=r(80442),o=r(92604),s=r(1231),n=r(99514),l=r(35671);function a(){return{fields:{type:[s.Z],value:null,set:function(e){if((0,i.Z)("big-integer-warning-enabled"))for(const t of e??[])("big-integer"===t.type||"oid"===t.type&&t.length>=8)&&o.Z.getLogger("esri.layers.support.fieldProperties").warnOnce("field-attributes-layer:big-integer-field",`Layer references a big-integer field '${t.name}', support for which is currently experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} are supported. Integers larger than this value may result in degraded performance or broken functionality. Disable this warning message by setting the esriConfig flag big-integer-warning-enabled to false.`,{layer:this,field:t});this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return n.Z.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||o.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.Q0)(this.fieldsIndex,e)}}}}},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},74889:(e,t,r)=>{r.d(t,{Z:()=>g});var i,o=r(43697),s=r(66577),n=r(38171),l=r(35454),a=r(96674),u=r(22974),p=r(5600),d=(r(75215),r(71715)),c=r(52011),y=r(30556),h=r(82971),f=r(33955),m=r(1231);const b=new l.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends a.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const o=e[t],s=n.Z.fromJSON(o),l=o.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=r);const a=o.aggregateGeometries,u=s.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],i=a[e],o=i?.spatialReference;null==t||o||(t.spatialReference=r)}i.push(s)}return i}writeGeometryType(e,t,r,i){if(e)return void b.write(e,t,r,i);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void b.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,f.im)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,o]}=e,s=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((o-e)/r)));for(let e=0,t=s.length;e<t;e++)n?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,o],scale:[s,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*s+i),(e=>o-e*n),l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,o;const s=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===i&&n===o||(s.push([e-i,n-o]),i=e,o=n)}else i=t(l[0]),o=r(l[1]),s.push([i,o])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,f.oU)(e)?e.rings:e.paths,o=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],n=this._quantizePoints(s,t,r);n&&o.push(n)}return o.length>0?((0,f.oU)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,f.oU)(e)?e.rings:e.paths;let n,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(n+=o[0],l+=o[1]):(n=o[0],l=o[1]),o[0]=t(n),o[1]=r(l)}}if(i&&o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let n,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,p.Cb)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,o._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,p.Cb)({type:[n.Z],json:{write:!0}})],w.prototype,"features",void 0),(0,o._)([(0,d.r)("features")],w.prototype,"readFeatures",null),(0,o._)([(0,p.Cb)({type:[m.Z],json:{write:!0}})],w.prototype,"fields",void 0),(0,o._)([(0,p.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:b.read}}})],w.prototype,"geometryType",void 0),(0,o._)([(0,y.c)("geometryType")],w.prototype,"writeGeometryType",null),(0,o._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,o._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,o._)([(0,p.Cb)({types:s.qM,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,o._)([(0,d.r)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,o._)([(0,p.Cb)({type:h.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,o._)([(0,y.c)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,o._)([(0,p.Cb)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,o._)([(0,c.j)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const g=w},75935:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var i,o=r(43697),s=(r(66577),r(96674)),n=r(22974),l=r(5600),a=r(75215),u=r(52011),p=r(30556),d=r(10158),c=r(82971);let y=i=class extends s.wq{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new i((0,n.d9)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,o._)([(0,l.Cb)({type:d.n,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,o._)([(0,l.Cb)({type:Date})],y.prototype,"historicMoment",void 0),(0,o._)([(0,p.c)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,o._)([(0,l.Cb)({type:[Number],json:{write:!0}})],y.prototype,"objectIds",void 0),(0,o._)([(0,l.Cb)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,o._)([(0,l.Cb)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,o._)([(0,l.Cb)({type:c.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,o._)([(0,l.Cb)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,o._)([(0,p.c)("start"),(0,p.c)("num")],y.prototype,"writeStart",null),(0,o._)([(0,l.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,o._)([(0,l.Cb)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,o._)([(0,l.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=i=(0,o._)([(0,u.j)("esri.rest.support.RelationshipQuery")],y),y.from=(0,a.se)(y);const h=y},58333:(e,t,r)=>{r.d(t,{ET:()=>s,I4:()=>o,eG:()=>a,lF:()=>n,lj:()=>p,qP:()=>l,wW:()=>u});const i=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},n={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7865,5732,7873,2596],{92835:(e,t,r)=>{r.d(t,{Z:()=>m});var s,n=r(43697),i=r(96674),o=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),d=r(30556),h=r(25031);let c=s=class extends i.wq{static get allTime(){return y}static get empty(){return p}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new s({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,s=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===s&&r===n}expandTo(e,t=h.By){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.JE)(r,e,t));let n=this.end;if(n){const r=(0,o.JE)(n,e,t);n=n.getTime()===r.getTime()?r:(0,o.Nm)(r,1,e,t)}return new s({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return s.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let o,a;if(n>=t&&n<=r?o=n:t>=n&&t<=i&&(o=t),r>=n&&r<=i?a=r:i>=t&&i<=r&&(a=i),null!=o&&null!=a&&!isNaN(o)&&!isNaN(a)){const e=new s;return e.start=o===-1/0?null:new Date(o),e.end=a===1/0?null:new Date(a),e}return s.empty}offset(e,t,r=h.By){if(this.isEmpty||this.isAllTime)return this.clone();const n=new s,{start:i,end:a}=this;return null!=i&&(n.start=(0,o.Nm)(i,e,t,r)),null!=a&&(n.end=(0,o.Nm)(a,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new s({start:t,end:r})}};(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n._)([(0,l.r)("end")],c.prototype,"readEnd",null),(0,n._)([(0,d.c)("end")],c.prototype,"writeEnd",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n._)([(0,l.r)("start")],c.prototype,"readStart",null),(0,n._)([(0,d.c)("start")],c.prototype,"writeStart",null),c=s=(0,n._)([(0,u.j)("esri.TimeExtent")],c);const y=new c,p=new c({start:void 0,end:void 0}),m=c},5732:(e,t,r)=>{r.d(t,{c:()=>s,g:()=>n});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},57435:(e,t,r)=>{r.d(t,{Z:()=>u});var s=r(43697),n=r(46791),i=(r(66643),r(20102),r(92604),r(26258),r(87538)),o=r(5600),a=r(52011);let l=class extends n.Z{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,i.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new n.Z(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const s of t)if(s){if(r(s)){const t=this.indexOf(s,e);t>=0?t!==e&&this.reorder(s,e):this.add(s,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(s);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,s._)([(0,o.Cb)()],l.prototype,"getCollections",void 0),(0,s._)([(0,o.Cb)()],l.prototype,"getChildrenFunction",void 0),(0,s._)([(0,o.Cb)()],l.prototype,"itemFilterFunction",void 0),l=(0,s._)([(0,a.j)("esri.core.CollectionFlattener")],l);const u=l},70921:(e,t,r)=>{r.d(t,{R:()=>i,Z:()=>n});var s=r(46791);function n(e,t,r=s.Z){return t||(t=new r),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function i(e){return e}},68668:(e,t,r)=>{r.d(t,{G:()=>o,w:()=>a});var s=r(66643),n=r(46791),i=r(83379);async function o(e,t){return await e.load(),a(e,t)}async function a(e,t){const r=[],o=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?o(...t):n.Z.isCollection(t)?t.forEach((e=>o(e))):i.Z.isLoadable(t)&&r.push(t))};t(o);let a=null;if(await(0,s.UI)(r,(async e=>{const t=await(0,s.q6)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||a||(a=t)})),a)throw a.error;return e}},17445:(e,t,r)=>{r.d(t,{N1:()=>c,YP:()=>l,Z_:()=>m,gx:()=>u,nn:()=>f,on:()=>h,tX:()=>g}),r(66643),r(46791);var s=r(91460),n=r(50758),i=r(70586),o=r(95330),a=r(26258);function l(e,t,r={}){return d(e,t,r,y)}function u(e,t,r={}){return d(e,t,r,p)}function d(e,t,r={},s){let n=null;const o=r.once?(e,r)=>{s(e)&&((0,i.hw)(n),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(n=(0,a.aQ)(e,o,r.sync,r.equals),r.initial){const t=e();o(t,t)}return n}function h(e,t,r,o={}){let a=null,u=null,d=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(e){o.once&&o.once&&(0,i.hw)(d),r(e)}const y=l(e,((e,r)=>{h(),(0,s.vT)(e)&&(a=e,u=(0,s.on)(e,t,c),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return d=(0,n.kB)((()=>{y.remove(),h()})),d}function c(e,t){return function(e,t,r){if((0,o.Hc)(r))return Promise.reject((0,o.zE)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,i.hw)(a)}return new Promise(((s,i)=>{a=(0,n.AL)([(0,o.fu)(r,(()=>{l(),i((0,o.zE)())})),d(e,(e=>{l(),s(e)}),{sync:!1,once:!0},t??y)])}))}(e,p,t)}function y(e){return!0}function p(e){return!!e}r(87538);const m={sync:!0},f={initial:!0},g={sync:!0,initial:!0}},35463:(e,t,r)=>{r.d(t,{JE:()=>l,Nm:()=>a,rJ:()=>u});var s=r(90344),n=r(25031),i=r(17126);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function a(e,t,r,o=n.By){const a=new i.vF((0,s.f1)(o)),l=i.ou.fromJSDate(e,{zone:a}),u="decades"===r||"centuries"===r?"year":d(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[u]:t}).toJSDate()}function l(e,t,r=n.By){const o=new i.vF((0,s.f1)(r)),a=i.ou.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=a.startOf("year"),{year:r}=e,s=r-r%("decades"===t?10:100);return e.set({year:s}).toJSDate()}const l=d(t);return a.startOf(l).toJSDate()}function u(e,t,r){return 0===e?0:e*o[t]/o[r]}function d(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},41123:(e,t,r)=>{r.d(t,{D:()=>n,z:()=>i});const s="randomUUID"in crypto;function n(){if(s)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function i(){return`{${n()}}`}},90344:(e,t,r)=>{r.d(t,{Xr:()=>p,Ze:()=>v,f1:()=>w,p6:()=>b});var s=r(35454),n=r(70171),i=r(25031);r(17126);const o=Intl.DateTimeFormat().resolvedOptions().timeZone,a=(i.pt,{year:"numeric",month:"numeric",day:"numeric"}),l={year:"numeric",month:"long",day:"numeric"},u={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},c={...h,second:"numeric"},y={"short-date":a,"short-date-short-time":{...a,...h},"short-date-short-time-24":{...a,...h,hour12:!1},"short-date-long-time":{...a,...c},"short-date-long-time-24":{...a,...c,hour12:!1},"short-date-le":a,"short-date-le-short-time":{...a,...h},"short-date-le-short-time-24":{...a,...h,hour12:!1},"short-date-le-long-time":{...a,...c},"short-date-le-long-time-24":{...a,...c,hour12:!1},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...h},"long-month-day-year-short-time-24":{...l,...h,hour12:!1},"long-month-day-year-long-time":{...l,...c},"long-month-day-year-long-time-24":{...l,...c,hour12:!1},"day-short-month-year":u,"day-short-month-year-short-time":{...u,...h},"day-short-month-year-short-time-24":{...u,...h,hour12:!1},"day-short-month-year-long-time":{...u,...c},"day-short-month-year-long-time-24":{...u,...c,hour12:!1},"long-date":d,"long-date-short-time":{...d,...h},"long-date-short-time-24":{...d,...h,hour12:!1},"long-date-long-time":{...d,...c},"long-date-long-time-24":{...d,...c,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":c},p=(0,s.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),m={ar:"ar-u-nu-latn-ca-gregory"};let f=new WeakMap;const g=y["short-date-short-time"];function v(e){return y[e]}function b(e,t=g){return function(e){let t=f.get(e);if(!t){const r=(0,n.Kd)(),s=m[r]||r,o=w(e.timeZone??i.By),a={...e,timeZone:o};t=new Intl.DateTimeFormat(s,a),f.set(e,t)}return t}(t).format(e)}function w(e){switch(e){case i.By:return o;case i._4:return i.pt;default:return e}}(0,n.Ze)((()=>{f=new WeakMap}))},40504:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var s=r(43697),n=r(57435),i=r(68668),o=r(92604),a=r(16453),l=r(95330),u=r(17445),d=r(5600),h=(r(75215),r(67676),r(80442),r(1153)),c=r(71715),y=r(52011),p=r(30556),m=r(31263),f=r(87085),g=r(71612),v=r(38009),b=r(16859),w=r(72965),_=r(87344),I=r(15235),S=r(46791),T=r(70921);function E(e,t,r){let s,n;if(e)for(let i=0,o=e.length;i<o;i++){if(s=e.at(i),s?.[t]===r)return s;if("group"===s?.type&&(n=E(s.layers,t,r),n))return n}}const L=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new S.Z;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||o.Z.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",(e=>(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item))),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>r(e.item)))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,T.Z)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof f.Z){const s=e;s.parent===this?this.reorder(s,t):r.add(s,t)}else(0,l.y8)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):o.Z.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let s=r.getNextIndex(t);e.slice().forEach((e=>{e.parent!==this?(r.add(e,s),s+=1):this.reorder(e,s)}))}findLayerById(e){return E(this.layers,"id",e)}findLayerByUid(e){return E(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,s._)([(0,d.Cb)()],t.prototype,"layers",null),t=(0,s._)([(0,y.j)("esri.support.LayersMixin")],t),t};function C(e,t,r){if(e)for(let s=0,n=e.length;s<n;s++){const n=e.at(s);if(n[t]===r)return n;if("group"===n?.type){const e=C(n.tables,t,r);if(e)return e}}}const P=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new S.Z,this.addHandles([this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,"feature"!==t.type&&o.Z.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,T.Z)(e,this._get("tables")))}findTableById(e){return C(this.tables,"id",e)}findTableByUid(e){return C(this.tables,"uid",e)}};return(0,s._)([(0,d.Cb)()],t.prototype,"tables",null),t=(0,s._)([(0,y.j)("esri.support.TablesMixin")],t),t},A=Symbol("WebScene");var D=r(12259),M=r(35755),F=r(15650);let O=class extends((0,g.h)((0,w.M)((0,v.q)((0,b.I)(P(L((0,a.R)(f.Z)))))))){constructor(e){var t;super(e),this.allLayers=new n.Z({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new n.Z({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group",this._debouncedSaveOperations=(0,l.Ds)((async(e,t,s)=>{const{save:n,saveAs:i}=await r.e(821).then(r.bind(r,30821));switch(e){case D.x.SAVE:return n(this,t);case D.x.SAVE_AS:return i(this,s,t)}}))}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,u.YP)((()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&A in e}),(e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,u.on)((()=>this.tables),"before-add",(e=>{e.preventDefault(),o.Z.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")})),t))}),u.tX),(0,u.YP)((()=>this.visible),this._onVisibilityChange.bind(this),u.Z_)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}_writeLayers(e,t,r,s){const n=[];if(!e)return n;e.forEach((e=>{const t=(0,F.Nw)(e,s.webmap?s.webmap.getLayerJSONFromResourceInfo(e):null,s);t?.layerType&&n.push(t)})),t.layers=n}set portalItem(e){this._set("portalItem",e)}readPortalItem(e,t,r){const{itemId:s,layerType:n}=t;if("GroupLayer"===n&&s)return new I.default({id:s,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}async beforeSave(){return(0,M.Pl)(this)}load(e){const t=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Group Layer","Scene Service"],layerModuleTypeMap:_.T},e).catch((e=>{if((0,l.r9)(e),this.originIdOf("portalItem")===m.s3.USER)throw e}));return this.addResolvingPromise(t),Promise.resolve(this)}async loadAll(){return(0,i.G)(this,(e=>{e(this.layers,this.tables)}))}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer readded to Grouplayer: uid=${e.uid}`):this.addHandles((0,u.YP)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),u.Z_),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}async save(e){return this._debouncedSaveOperations(D.x.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(D.x.SAVE_AS,t,e)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,h.vw)(this).initialized)return;const r=this.layers;let s=r.find((e=>e.visible));switch(e){case"exclusive":r.length&&!s&&(s=r.at(0),s.visible=!0),this._turnOffOtherLayers(s);break;case"inherited":r.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,s._)([(0,d.Cb)({readOnly:!0,dependsOn:[]})],O.prototype,"allLayers",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],O.prototype,"allTables",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"fullExtent",void 0),(0,s._)([(0,d.Cb)({json:{read:!0,write:!0}})],O.prototype,"blendMode",void 0),(0,s._)([(0,d.Cb)({json:{read:!1,write:{ignoreOrigin:!0}}})],O.prototype,"layers",void 0),(0,s._)([(0,p.c)("layers")],O.prototype,"_writeLayers",null),(0,s._)([(0,d.Cb)({type:["GroupLayer"]})],O.prototype,"operationalLayerType",void 0),(0,s._)([(0,d.Cb)({json:{origins:{"web-map":{read:!1,write:{overridePolicy:e=>({enabled:"Group Layer"===e?.type})}},"web-scene":{read:!1,write:!1}}}})],O.prototype,"portalItem",null),(0,s._)([(0,c.r)("web-map","portalItem",["itemId"])],O.prototype,"readPortalItem",null),(0,s._)([(0,p.c)("web-map","portalItem",{itemId:{type:String}})],O.prototype,"writePortalItem",null),(0,s._)([(0,d.Cb)()],O.prototype,"spatialReference",void 0),(0,s._)([(0,d.Cb)({json:{read:!1},readOnly:!0,value:"group"})],O.prototype,"type",void 0),(0,s._)([(0,d.Cb)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],O.prototype,"visibilityMode",null),O=(0,s._)([(0,y.j)("esri.layers.GroupLayer")],O);const Z=O},16859:(e,t,r)=>{r.d(t,{I:()=>I});var s=r(43697),n=r(68773),i=r(40330),o=r(3172),a=r(66643),l=r(20102),u=r(92604),d=r(70586),h=r(95330),c=r(17452),y=r(5600),p=(r(75215),r(67676),r(80442),r(71715)),m=r(52011),f=r(30556),g=r(84230),v=r(48522),b=r(15235),w=r(86082),_=r(14661);const I=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,d.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:s}=await r.e(8062).then(r.bind(r,18062));return(0,h.k_)(t),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,h.D_)(e)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,h.r9)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,h.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const s=e===r.id;if(s&&r.portal.user)return(0,_.Ss)(r);let n,o;if(s)n=r.portal.url;else try{n=await(0,g.oP)(this.url,t)}catch(e){(0,h.r9)(e)}if(!n||!(0,c.Zo)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(i.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.r9)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(s?await r.reload():(r=new b.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,_.Ss)(r)}catch(e){(0,h.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?i.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=i.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,n=v.Z.getDefault();if(n&&n.loaded&&(0,c.Fv)(n.restUrl)===(0,c.Fv)(s))return n.user;const l=`${s}/community/self`,u=null!=e?e.signal:null,d=await(0,a.q6)((0,o.Z)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return d.ok?w.Z.fromJSON(d.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,s=this.portalItem?.id&&(this.portalItem.portal||v.Z.getDefault());return r&&s&&!(0,c.tm)(s.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s._)([(0,y.Cb)({type:b.default})],t.prototype,"portalItem",null),(0,s._)([(0,p.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,s._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,s._)([(0,y.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,s._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,s._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,s._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,s._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},97873:(e,t,r)=>{r.d(t,{FO:()=>h,W7:()=>c,addOrUpdateResource:()=>a,fetchResources:()=>o,removeAllResources:()=>u,removeResource:()=>l});var s=r(3172),n=r(20102),i=r(17452);async function o(e,t={},r){await e.load(r);const s=(0,i.v_)(e.itemUrl,"resources"),{start:n=1,num:o=10,sortOrder:a="asc",sortField:l="created"}=t,u={query:{start:n,num:o,sortOrder:a,sortField:l,token:e.apiKey},signal:r?.signal},d=await e.portal.request(s,u);return{total:d.total,nextStart:d.nextStart,resources:d.resources.map((({created:t,size:r,resource:s})=>({created:new Date(t),size:r,resource:e.resourceFromPath(s)})))}}async function a(e,t,r,s){if(!e.hasPath())throw new n.Z(`portal-item-resource-${t}:invalid-path`,"Resource does not have a valid path");const o=e.portalItem;await o.load(s);const a=(0,i.v_)(o.userItemUrl,"add"===t?"addResources":"updateResources"),[l,u]=d(e.path),h=new FormData;return l&&"."!==l&&h.append("resourcesPrefix",l),null!=s&&s.compress&&h.append("compress","true"),h.append("fileName",u),h.append("file",r,u),h.append("f","json"),s?.access&&h.append("access",s.access),await o.portal.request(a,{method:"post",body:h,signal:s?.signal}),e}async function l(e,t,r){if(!t.hasPath())throw new n.Z("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const s=(0,i.v_)(e.userItemUrl,"removeResources");await e.portal.request(s,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function u(e,t){await e.load(t);const r=(0,i.v_)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function d(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function h(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,s.Z)(e.url,{responseType:"blob"})).data}function c(e,t){if(!e.hasPath())return null;const[r,,s]=function(e){const[t,r]=function(e){const t=(0,i.Ml)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[s,n]=d(t);return[s,n,r]}(e.path);return e.portalItem.resourceFromPath((0,i.v_)(r,t+s))}},12259:(e,t,r)=>{var s;r.d(t,{x:()=>s}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(s||(s={}))},35755:(e,t,r)=>{r.d(t,{Hn:()=>l,Pl:()=>p,bx:()=>u});var s=r(66643),n=r(20102),i=r(95330),o=r(41123),a=r(97873);async function l(e,t,r=null){const s=await d(e,t,r);await h(s,t,r)}async function u(e,t,r,s,n=null){const i=await d(r,s,n);await e.update({data:t}),await h(i,s,n)}async function d(e,t,r=null){if(!t?.resources)return;const s=t.portalItem===e.portalItem?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem;const l=new Set(t.resources.toKeep.map((e=>e.resource.path))),u=new Set,d=[];l.forEach((t=>{s.delete(t),e.paths.push(t)}));for(const n of t.resources.toUpdate)if(s.delete(n.resource.path),l.has(n.resource.path)||u.has(n.resource.path)){const{resource:t,content:s,finish:i,error:l}=n,u=(0,a.W7)(t,(0,o.D)());e.paths.push(u.path),d.push(c({resource:u,content:s,compress:n.compress,finish:i,error:l},r))}else e.paths.push(n.resource.path),d.push(y(n,r)),u.add(n.resource.path);for(const n of t.resources.toAdd)e.paths.push(n.resource.path),s.has(n.resource.path)?s.delete(n.resource.path):d.push(c(n,r));if(0===d.length)return s;const h=await(0,i.UO)(d);if((0,i.k_)(r),h.length>0)throw new n.Z("save:resources","Failed to save one or more resources",{errors:h});return s}async function h(e,t,r=null){if(!e||!t.portalItem)return;const s=[];for(const n of e){const e=t.portalItem.resourceFromPath(n);s.push(e.portalItem.removeResource(e,r))}await(0,i.as)(s)}async function c(e,t){const r={...null!=t?t:{},compress:e.compress},n=await(0,s.q6)(e.resource.portalItem.addResource(e.resource,await(0,a.FO)(e.content),r));if(!0!==n.ok)throw e.error?.(n.error),n.error;e.finish?.(e.resource)}async function y(e,t){const r=await(0,s.q6)(e.resource.update(await(0,a.FO)(e.content),t));if(!0!==r.ok)throw e.error?.(r.error),r.error;e.finish?.(e.resource)}async function p(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}},15650:(e,t,r)=>{r.d(t,{Nw:()=>h});var s=r(20102),n=r(22974),i=r(78286),o=r(827),a=r(84230);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wms","wmts"]),u=new Set(["csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wfs","wms","wmts"]);function d(e,t){"maxScale"in e&&(t.maxScale=(0,o.k)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,o.k)(e.minScale)??void 0)}function h(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return r?.messages&&r.messages.push(new s.Z("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if(function(e,t){if(t.restrictedWebMapWriting){const r=function(e){return"basemap"===e.layerContainerType?l:"operational-layers"===e.layerContainerType?u:null}(t);return null==r||r.has(e.type)&&!(0,a.rQ)(e)}return!0}(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,a.rQ)(e)){const r=(0,i.hS)("featureCollection.layers",t),s=r?.[0]?.layerDefinition;s&&d(e,s)}else"group"!==e.type&&d(e,t)}(e,t),t&&("blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,o.k)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,a.rQ)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,n.d9)(t)),t}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6404],{44543:(e,t,r)=>{r.d(t,{F:()=>b,M:()=>i});const i={Base64:0,Hex:1,String:2,Raw:3},n=8,s=(1<<n)-1;function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function l(e){const t=[];for(let r=0,i=e.length*n;r<i;r+=n)t[r>>5]|=(e.charCodeAt(r/n)&s)<<r%32;return t}function a(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=n)t.push(String.fromCharCode(e[r>>5]>>>r%32&s));return t.join("")}function u(e,t,r,i,n,s){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(i,s)),n),r)}function p(e,t,r,i,n,s,o){return u(t&r|~t&i,e,t,n,s,o)}function d(e,t,r,i,n,s,o){return u(t&i|r&~i,e,t,n,s,o)}function c(e,t,r,i,n,s,o){return u(t^r^i,e,t,n,s,o)}function f(e,t,r,i,n,s,o){return u(r^(t|~i),e,t,n,s,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const l=r,a=i,u=n,y=s;r=p(r,i,n,s,e[t],7,-680876936),s=p(s,r,i,n,e[t+1],12,-389564586),n=p(n,s,r,i,e[t+2],17,606105819),i=p(i,n,s,r,e[t+3],22,-1044525330),r=p(r,i,n,s,e[t+4],7,-176418897),s=p(s,r,i,n,e[t+5],12,1200080426),n=p(n,s,r,i,e[t+6],17,-1473231341),i=p(i,n,s,r,e[t+7],22,-45705983),r=p(r,i,n,s,e[t+8],7,1770035416),s=p(s,r,i,n,e[t+9],12,-1958414417),n=p(n,s,r,i,e[t+10],17,-42063),i=p(i,n,s,r,e[t+11],22,-1990404162),r=p(r,i,n,s,e[t+12],7,1804603682),s=p(s,r,i,n,e[t+13],12,-40341101),n=p(n,s,r,i,e[t+14],17,-1502002290),i=p(i,n,s,r,e[t+15],22,1236535329),r=d(r,i,n,s,e[t+1],5,-165796510),s=d(s,r,i,n,e[t+6],9,-1069501632),n=d(n,s,r,i,e[t+11],14,643717713),i=d(i,n,s,r,e[t],20,-373897302),r=d(r,i,n,s,e[t+5],5,-701558691),s=d(s,r,i,n,e[t+10],9,38016083),n=d(n,s,r,i,e[t+15],14,-660478335),i=d(i,n,s,r,e[t+4],20,-405537848),r=d(r,i,n,s,e[t+9],5,568446438),s=d(s,r,i,n,e[t+14],9,-1019803690),n=d(n,s,r,i,e[t+3],14,-187363961),i=d(i,n,s,r,e[t+8],20,1163531501),r=d(r,i,n,s,e[t+13],5,-1444681467),s=d(s,r,i,n,e[t+2],9,-51403784),n=d(n,s,r,i,e[t+7],14,1735328473),i=d(i,n,s,r,e[t+12],20,-1926607734),r=c(r,i,n,s,e[t+5],4,-378558),s=c(s,r,i,n,e[t+8],11,-2022574463),n=c(n,s,r,i,e[t+11],16,1839030562),i=c(i,n,s,r,e[t+14],23,-35309556),r=c(r,i,n,s,e[t+1],4,-1530992060),s=c(s,r,i,n,e[t+4],11,1272893353),n=c(n,s,r,i,e[t+7],16,-155497632),i=c(i,n,s,r,e[t+10],23,-1094730640),r=c(r,i,n,s,e[t+13],4,681279174),s=c(s,r,i,n,e[t],11,-358537222),n=c(n,s,r,i,e[t+3],16,-722521979),i=c(i,n,s,r,e[t+6],23,76029189),r=c(r,i,n,s,e[t+9],4,-640364487),s=c(s,r,i,n,e[t+12],11,-421815835),n=c(n,s,r,i,e[t+15],16,530742520),i=c(i,n,s,r,e[t+2],23,-995338651),r=f(r,i,n,s,e[t],6,-198630844),s=f(s,r,i,n,e[t+7],10,1126891415),n=f(n,s,r,i,e[t+14],15,-1416354905),i=f(i,n,s,r,e[t+5],21,-57434055),r=f(r,i,n,s,e[t+12],6,1700485571),s=f(s,r,i,n,e[t+3],10,-1894986606),n=f(n,s,r,i,e[t+10],15,-1051523),i=f(i,n,s,r,e[t+1],21,-2054922799),r=f(r,i,n,s,e[t+8],6,1873313359),s=f(s,r,i,n,e[t+15],10,-30611744),n=f(n,s,r,i,e[t+6],15,-1560198380),i=f(i,n,s,r,e[t+13],21,1309151649),r=f(r,i,n,s,e[t+4],6,-145523070),s=f(s,r,i,n,e[t+11],10,-1120210379),n=f(n,s,r,i,e[t+2],15,718787259),i=f(i,n,s,r,e[t+9],21,-343485551),r=o(r,l),i=o(i,a),n=o(n,u),s=o(s,y)}return[r,i,n,s]}function b(e,t=i.Hex){const r=t||i.Base64,s=y(l(e),e.length*n);switch(r){case i.Raw:return s;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,n=4*e.length;i<n;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(s);case i.String:return a(s);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let n=0;n<4;n++)8*r+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-n)&63))}return t.join("")}(s)}}},6404:(e,t,r)=>{r.d(t,{M:()=>X});var i=r(43697),n=r(17445),s=r(5600),o=(r(75215),r(67676),r(80442)),l=r(52011),a=r(96674),u=r(22974),p=r(2368);let d=class extends((0,p.J)(a.wq)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"expression",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"returnType",void 0),d=(0,i._)([(0,l.j)("esri.layers.support.ExpressionInfo")],d);const c=d;var f;let y=f=class extends a.wq{constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}clone(){return new f({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,u.d9)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,i._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"isAutoGenerated",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"onStatisticField",void 0),(0,i._)([(0,s.Cb)({type:c,json:{write:!0}})],y.prototype,"onStatisticExpression",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"statisticType",void 0),y=f=(0,i._)([(0,l.j)("esri.layers.support.AggregateField")],y);const b=y;var h,m=r(82960),v=r(61960),g=r(51773),_=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382)),w=(r(81571),r(91423)),x=r(32400),S=r(78286),C=r(36030),E=r(71715),R=r(30556),I=r(21506),j=r(50957),F=r(54306);let z=h=class extends v.B{constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=3,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.fields=[],this.renderer=null}writeFields(e,t,r){const i=e.filter((e=>"avg_angle"!==e.statisticType)).map((e=>e.toJSON()));(0,S.RB)(r,i,t)}readRenderer(e,t,r){const i=t.drawingInfo?.renderer;return i?(0,w.a)(i,t,r)??void 0:(0,j.Ob)(t,r)}clone(){return new h({fields:(0,u.d9)(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:(0,u.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,maxScale:this.maxScale,popupEnabled:this.popupEnabled,popupTemplate:(0,u.d9)(this.popupTemplate),renderer:(0,u.d9)(this.renderer)})}};(0,i._)([(0,C.J)({binning:"binning"})],z.prototype,"type",void 0),(0,i._)([(0,C.J)({geohash:"geohash"})],z.prototype,"binType",void 0),(0,i._)([(0,s.Cb)({type:Number,range:{min:1,max:9},json:{write:!0}})],z.prototype,"fixedBinLevel",void 0),(0,i._)([(0,s.Cb)({type:[F.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],z.prototype,"labelingInfo",void 0),(0,i._)([(0,s.Cb)(I.iR)],z.prototype,"labelsVisible",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],z.prototype,"maxScale",void 0),(0,i._)([(0,s.Cb)(I.C_)],z.prototype,"popupEnabled",void 0),(0,i._)([(0,s.Cb)({type:g.Z,json:{name:"popupInfo",write:!0}})],z.prototype,"popupTemplate",void 0),(0,i._)([(0,s.Cb)({type:[b],json:{write:!0}})],z.prototype,"fields",void 0),(0,i._)([(0,R.c)("fields")],z.prototype,"writeFields",null),(0,i._)([(0,s.Cb)({types:x.A,json:{write:{target:"drawingInfo.renderer"}}})],z.prototype,"renderer",void 0),(0,i._)([(0,E.r)("renderer",["drawingInfo.renderer"])],z.prototype,"readRenderer",null),z=h=(0,i._)([(0,l.j)("esri.layers.support.FeatureReductionBinning")],z);const T=z;var A,V=r(9790),B=r(62357);function k(e){return"simple"===e.type&&!e.visualVariables?.length}let G=A=class extends a.wq{constructor(e){super(e),this.type="cluster",this.clusterRadius=(0,B.t_)("80px"),this.clusterMinSize=(0,B.t_)("12px"),this.clusterMaxSize=(0,B.t_)("50px"),this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=null}readRenderer(e,t,r){const i=t.drawingInfo?.renderer;return i?.authoringInfo?.isAutoGenerated?null:i?k(i)?null:(0,w.a)(i,t,r)??void 0:(0,j.Ob)(t,r)}readSymbol(e,t,r){const i=t.drawingInfo?.renderer;if(i?.authoringInfo?.isAutoGenerated)return null;if(i&&k(i)){const e=(0,w.a)(i,t,r);return e?.symbol}return null}writeSymbol(e,t,r,i){const n=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||n){const r=new _.Z({symbol:e});t.drawingInfo={renderer:r.write({},i)}}}writeFields(e,t,r){const i=e.filter((e=>"avg_angle"!==e.statisticType)).map((e=>e.toJSON()));(0,S.RB)(r,i,t)}readFields(e,t,r){return e.filter((e=>!e.isAutoGenerated)).map((e=>b.fromJSON(e)))}clone(){return new A({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:(0,u.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,fields:(0,u.d9)(this.fields),maxScale:this.maxScale,renderer:(0,u.d9)(this.renderer),symbol:(0,u.d9)(this.symbol),popupEnabled:this.popupEnabled,popupTemplate:(0,u.d9)(this.popupTemplate)})}};(0,i._)([(0,s.Cb)({type:["cluster"],readOnly:!0,json:{write:!0}})],G.prototype,"type",void 0),(0,i._)([(0,s.Cb)({type:Number,cast:e=>"auto"===e?e:(0,B.t_)(e),json:{write:!0}})],G.prototype,"clusterRadius",void 0),(0,i._)([(0,s.Cb)({type:Number,cast:B.t_,json:{write:!0}})],G.prototype,"clusterMinSize",void 0),(0,i._)([(0,s.Cb)({type:Number,cast:B.t_,json:{write:!0}})],G.prototype,"clusterMaxSize",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],G.prototype,"maxScale",void 0),(0,i._)([(0,s.Cb)(I.C_)],G.prototype,"popupEnabled",void 0),(0,i._)([(0,s.Cb)({type:g.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],G.prototype,"popupTemplate",void 0),(0,i._)([(0,s.Cb)({types:x.A,json:{write:{target:"drawingInfo.renderer"}}})],G.prototype,"renderer",void 0),(0,i._)([(0,E.r)("renderer",["drawingInfo.renderer"])],G.prototype,"readRenderer",null),(0,i._)([(0,s.Cb)({types:V.AH})],G.prototype,"symbol",void 0),(0,i._)([(0,E.r)("symbol",["drawingInfo.renderer"])],G.prototype,"readSymbol",null),(0,i._)([(0,R.c)("symbol")],G.prototype,"writeSymbol",null),(0,i._)([(0,s.Cb)({type:[F.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],G.prototype,"labelingInfo",void 0),(0,i._)([(0,s.Cb)(I.iR)],G.prototype,"labelsVisible",void 0),(0,i._)([(0,s.Cb)({type:[b],json:{write:!0}})],G.prototype,"fields",void 0),(0,i._)([(0,R.c)("fields")],G.prototype,"writeFields",null),(0,i._)([(0,E.r)("fields")],G.prototype,"readFields",null),G=A=(0,i._)([(0,l.j)("esri.layers.support.FeatureReductionCluster")],G);const Z=G;var M=r(85857);const $={key:"type",base:v.B,typeMap:{cluster:Z,binning:T}},L={types:{key:"type",base:v.B,typeMap:{selection:M.Z,cluster:Z,binning:T}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:$},"portal-item":{types:$},"web-scene":{types:{key:"type",base:v.B,typeMap:{selection:M.Z}},name:"layerDefinition.featureReduction",write:{layerContainerTypes:m.C}}}}};var N,O=r(20102),q=r(92604),D=r(44543),J=r(69237),H=r(23847),U=(r(30856),r(51706));let Y=N=class extends H.Z{writeLevels(e,t,r){for(const r in e){const e=this.levels[r];return void(t.stops=e)}}clone(){return new N({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,U.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,U.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone(),levels:(0,u.d9)(this.levels)})}};(0,i._)([(0,s.Cb)()],Y.prototype,"levels",void 0),(0,i._)([(0,R.c)("levels")],Y.prototype,"writeLevels",null),Y=N=(0,i._)([(0,l.j)("esri.views.2d.engine.LevelDependentSizeVariable")],Y);const P=q.Z.getLogger("esri.views.2d.layers.support.clusterUtils");o.Z.add("esri-cluster-arcade-enabled",!0);const K=(0,o.Z)("esri-cluster-arcade-enabled");function Q(e,t,r,i){const n=(0,D.F)(t),s="mode"===r?`cluster_type_${n}`:"sum"===r?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some((e=>e.name===s))||e.push(new b({name:s,isAutoGenerated:!0,onStatisticExpression:new c({expression:t,returnType:i}),statisticType:r})),s}function W(e,t,r,i,n){if("cluster_count"===t||e.some((e=>e.name===t)))return t;const s=function(e,t,r){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{const e=r,i="field",n=t.toLowerCase()+",norm:"+i+","+e.toLowerCase();return"cluster_avg_"+(0,D.F)(n)}}}(r,t,n);return e.some((e=>e.name===s))||("avg_norm"===r?e.push(new b({name:s,isAutoGenerated:!0,onStatisticExpression:new c({expression:`$feature.${t} / $feature.${n}`,returnType:i}),statisticType:"avg"})):e.push(new b({name:s,isAutoGenerated:!0,onStatisticField:t,statisticType:r}))),s}const X=e=>{let t=class extends e{constructor(...e){super(...e),this.addHandles((0,n.YP)((()=>this.renderer),(()=>{if(this.featureReduction){const e=this._normalizeFeatureReduction(this.featureReduction);this._set("featureReduction",e)}}),n.Z_))}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;const t=e.clone(),r=[new b({name:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],i=(t.fields??[]).filter((e=>!e.isAutoGenerated));if(e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated)return t.fields=[...r,...i],t;if(e.symbol)return t.fields=[...r,...i],t.renderer=null,t;if(!this.renderer)return e;const n=((e,t,r,i,n)=>{const s=t.clone();if(!(e=>{const t=t=>P.error(new O.Z("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){const r=e.normalizationType;if("field"!==r)return t(`FeatureReductionCluster does not support a normalizationType of ${r}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!K){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some((e=>!(!("valueExpression"in e)||!e.valueExpression))))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0})(s))return s;if(s.authoringInfo||(s.authoringInfo=new J.Z),s.authoringInfo.isAutoGenerated=!0,"visualVariables"in s){const t=(s.visualVariables||[]).filter((e=>"$view.scale"!==e.valueExpression)),r=(e=>{for(const t of e)if("size"===t.type)return t;return null})(t);t.forEach((t=>{"rotation"===t.type?t.field?t.field=W(e,t.field,"avg_angle","number"):t.valueExpression&&(t.field=Q(e,t.valueExpression,"avg_angle","number"),t.valueExpression=null):t.normalizationField?(t.field=W(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=W(e,t.field,"avg","number"):t.valueExpression&&(t.field=Q(e,t.valueExpression,"avg","number"),t.valueExpression=null)})),null==r&&(e=>{for(const t of e)if("cluster_count"===t.field)return!0})(t),s.visualVariables=t}switch(s.type){case"simple":break;case"pie-chart":for(const t of s.attributes)t.field?t.field=W(e,t.field,"sum","number"):t.valueExpression&&(t.field=Q(e,t.valueExpression,"sum","number"),t.valueExpression=null);break;case"unique-value":s.field?s.field=W(e,s.field,"mode","string"):s.valueExpression&&(s.field=Q(e,s.valueExpression,"mode","string"),s.valueExpression=null);break;case"class-breaks":s.normalizationField?(s.field=W(e,s.field,"avg_norm","number",s.normalizationField),s.normalizationField=null):s.field?s.field=W(e,s.field,"avg","number"):s.valueExpression&&(s.field=Q(e,s.valueExpression,"avg","number"),s.valueExpression=null)}return s})(r,this.renderer);return t.fields=[...r,...i],t.renderer=n,t}};return(0,i._)([(0,s.Cb)(L)],t.prototype,"featureReduction",null),t=(0,i._)([(0,l.j)("esri.layers.mixins.FeatureReductionLayer")],t),t}},61960:(e,t,r)=>{r.d(t,{B:()=>l});var i=r(43697),n=r(96674),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011));let l=class extends n.wq{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,s.Cb)({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,i._)([(0,o.j)("esri.layers.support.FeatureReduction")],l)},85857:(e,t,r)=>{r.d(t,{Z:()=>u});var i,n=r(43697),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),l=r(61960);let a=i=class extends l.B{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,n._)([(0,s.Cb)({type:["selection"]})],a.prototype,"type",void 0),a=i=(0,n._)([(0,o.j)("esri.layers.support.FeatureReductionSelection")],a);const u=a}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6404],{44543:(e,t,r)=>{r.d(t,{F:()=>b,M:()=>i});const i={Base64:0,Hex:1,String:2,Raw:3},n=8,s=(1<<n)-1;function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function l(e){const t=[];for(let r=0,i=e.length*n;r<i;r+=n)t[r>>5]|=(e.charCodeAt(r/n)&s)<<r%32;return t}function a(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=n)t.push(String.fromCharCode(e[r>>5]>>>r%32&s));return t.join("")}function u(e,t,r,i,n,s){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(i,s)),n),r)}function p(e,t,r,i,n,s,o){return u(t&r|~t&i,e,t,n,s,o)}function d(e,t,r,i,n,s,o){return u(t&i|r&~i,e,t,n,s,o)}function c(e,t,r,i,n,s,o){return u(t^r^i,e,t,n,s,o)}function f(e,t,r,i,n,s,o){return u(r^(t|~i),e,t,n,s,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,n=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const l=r,a=i,u=n,y=s;r=p(r,i,n,s,e[t],7,-680876936),s=p(s,r,i,n,e[t+1],12,-389564586),n=p(n,s,r,i,e[t+2],17,606105819),i=p(i,n,s,r,e[t+3],22,-1044525330),r=p(r,i,n,s,e[t+4],7,-176418897),s=p(s,r,i,n,e[t+5],12,1200080426),n=p(n,s,r,i,e[t+6],17,-1473231341),i=p(i,n,s,r,e[t+7],22,-45705983),r=p(r,i,n,s,e[t+8],7,1770035416),s=p(s,r,i,n,e[t+9],12,-1958414417),n=p(n,s,r,i,e[t+10],17,-42063),i=p(i,n,s,r,e[t+11],22,-1990404162),r=p(r,i,n,s,e[t+12],7,1804603682),s=p(s,r,i,n,e[t+13],12,-40341101),n=p(n,s,r,i,e[t+14],17,-1502002290),i=p(i,n,s,r,e[t+15],22,1236535329),r=d(r,i,n,s,e[t+1],5,-165796510),s=d(s,r,i,n,e[t+6],9,-1069501632),n=d(n,s,r,i,e[t+11],14,643717713),i=d(i,n,s,r,e[t],20,-373897302),r=d(r,i,n,s,e[t+5],5,-701558691),s=d(s,r,i,n,e[t+10],9,38016083),n=d(n,s,r,i,e[t+15],14,-660478335),i=d(i,n,s,r,e[t+4],20,-405537848),r=d(r,i,n,s,e[t+9],5,568446438),s=d(s,r,i,n,e[t+14],9,-1019803690),n=d(n,s,r,i,e[t+3],14,-187363961),i=d(i,n,s,r,e[t+8],20,1163531501),r=d(r,i,n,s,e[t+13],5,-1444681467),s=d(s,r,i,n,e[t+2],9,-51403784),n=d(n,s,r,i,e[t+7],14,1735328473),i=d(i,n,s,r,e[t+12],20,-1926607734),r=c(r,i,n,s,e[t+5],4,-378558),s=c(s,r,i,n,e[t+8],11,-2022574463),n=c(n,s,r,i,e[t+11],16,1839030562),i=c(i,n,s,r,e[t+14],23,-35309556),r=c(r,i,n,s,e[t+1],4,-1530992060),s=c(s,r,i,n,e[t+4],11,1272893353),n=c(n,s,r,i,e[t+7],16,-155497632),i=c(i,n,s,r,e[t+10],23,-1094730640),r=c(r,i,n,s,e[t+13],4,681279174),s=c(s,r,i,n,e[t],11,-358537222),n=c(n,s,r,i,e[t+3],16,-722521979),i=c(i,n,s,r,e[t+6],23,76029189),r=c(r,i,n,s,e[t+9],4,-640364487),s=c(s,r,i,n,e[t+12],11,-421815835),n=c(n,s,r,i,e[t+15],16,530742520),i=c(i,n,s,r,e[t+2],23,-995338651),r=f(r,i,n,s,e[t],6,-198630844),s=f(s,r,i,n,e[t+7],10,1126891415),n=f(n,s,r,i,e[t+14],15,-1416354905),i=f(i,n,s,r,e[t+5],21,-57434055),r=f(r,i,n,s,e[t+12],6,1700485571),s=f(s,r,i,n,e[t+3],10,-1894986606),n=f(n,s,r,i,e[t+10],15,-1051523),i=f(i,n,s,r,e[t+1],21,-2054922799),r=f(r,i,n,s,e[t+8],6,1873313359),s=f(s,r,i,n,e[t+15],10,-30611744),n=f(n,s,r,i,e[t+6],15,-1560198380),i=f(i,n,s,r,e[t+13],21,1309151649),r=f(r,i,n,s,e[t+4],6,-145523070),s=f(s,r,i,n,e[t+11],10,-1120210379),n=f(n,s,r,i,e[t+2],15,718787259),i=f(i,n,s,r,e[t+9],21,-343485551),r=o(r,l),i=o(i,a),n=o(n,u),s=o(s,y)}return[r,i,n,s]}function b(e,t=i.Hex){const r=t||i.Base64,s=y(l(e),e.length*n);switch(r){case i.Raw:return s;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,n=4*e.length;i<n;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(s);case i.String:return a(s);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let n=0;n<4;n++)8*r+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-n)&63))}return t.join("")}(s)}}},6404:(e,t,r)=>{r.d(t,{M:()=>X});var i=r(43697),n=r(17445),s=r(5600),o=(r(75215),r(67676),r(80442)),l=r(52011),a=r(96674),u=r(22974),p=r(2368);let d=class extends((0,p.J)(a.wq)){constructor(e){super(e),this.expression=null,this.title=null,this.returnType=null}};(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"expression",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"returnType",void 0),d=(0,i._)([(0,l.j)("esri.layers.support.ExpressionInfo")],d);const c=d;var f;let y=f=class extends a.wq{constructor(e){super(e),this.isAutoGenerated=!1,this.name=null,this.alias=null,this.onStatisticField=null,this.onStatisticExpression=null,this.statisticType=null}clone(){return new f({name:this.name,alias:this.alias,isAutoGenerated:this.isAutoGenerated,onStatisticExpression:(0,u.d9)(this.onStatisticExpression),onStatisticField:this.onStatisticField,statisticType:this.statisticType})}};(0,i._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"isAutoGenerated",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"onStatisticField",void 0),(0,i._)([(0,s.Cb)({type:c,json:{write:!0}})],y.prototype,"onStatisticExpression",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"statisticType",void 0),y=f=(0,i._)([(0,l.j)("esri.layers.support.AggregateField")],y);const b=y;var h,m=r(82960),v=r(61960),g=r(51773),_=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382)),w=(r(81571),r(91423)),x=r(32400),S=r(78286),C=r(36030),E=r(71715),R=r(30556),I=r(21506),j=r(45574),F=r(54306);let z=h=class extends v.B{constructor(e){super(e),this.type="binning",this.binType="geohash",this.fixedBinLevel=3,this.labelingInfo=null,this.labelsVisible=!0,this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.fields=[],this.renderer=null}writeFields(e,t,r){const i=e.filter((e=>"avg_angle"!==e.statisticType)).map((e=>e.toJSON()));(0,S.RB)(r,i,t)}readRenderer(e,t,r){const i=t.drawingInfo?.renderer;return i?(0,w.a)(i,t,r)??void 0:(0,j.Ob)(t,r)}clone(){return new h({fields:(0,u.d9)(this.fields),fixedBinLevel:this.fixedBinLevel,labelingInfo:(0,u.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,maxScale:this.maxScale,popupEnabled:this.popupEnabled,popupTemplate:(0,u.d9)(this.popupTemplate),renderer:(0,u.d9)(this.renderer)})}};(0,i._)([(0,C.J)({binning:"binning"})],z.prototype,"type",void 0),(0,i._)([(0,C.J)({geohash:"geohash"})],z.prototype,"binType",void 0),(0,i._)([(0,s.Cb)({type:Number,range:{min:1,max:9},json:{write:!0}})],z.prototype,"fixedBinLevel",void 0),(0,i._)([(0,s.Cb)({type:[F.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],z.prototype,"labelingInfo",void 0),(0,i._)([(0,s.Cb)(I.iR)],z.prototype,"labelsVisible",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],z.prototype,"maxScale",void 0),(0,i._)([(0,s.Cb)(I.C_)],z.prototype,"popupEnabled",void 0),(0,i._)([(0,s.Cb)({type:g.Z,json:{name:"popupInfo",write:!0}})],z.prototype,"popupTemplate",void 0),(0,i._)([(0,s.Cb)({type:[b],json:{write:!0}})],z.prototype,"fields",void 0),(0,i._)([(0,R.c)("fields")],z.prototype,"writeFields",null),(0,i._)([(0,s.Cb)({types:x.A,json:{write:{target:"drawingInfo.renderer"}}})],z.prototype,"renderer",void 0),(0,i._)([(0,E.r)("renderer",["drawingInfo.renderer"])],z.prototype,"readRenderer",null),z=h=(0,i._)([(0,l.j)("esri.layers.support.FeatureReductionBinning")],z);const T=z;var A,V=r(9790),B=r(62357);function k(e){return"simple"===e.type&&!e.visualVariables?.length}let G=A=class extends a.wq{constructor(e){super(e),this.type="cluster",this.clusterRadius=(0,B.t_)("80px"),this.clusterMinSize=(0,B.t_)("12px"),this.clusterMaxSize=(0,B.t_)("50px"),this.maxScale=0,this.popupEnabled=!0,this.popupTemplate=null,this.renderer=null,this.symbol=null,this.labelingInfo=null,this.labelsVisible=!0,this.fields=null}readRenderer(e,t,r){const i=t.drawingInfo?.renderer;return i?.authoringInfo?.isAutoGenerated?null:i?k(i)?null:(0,w.a)(i,t,r)??void 0:(0,j.Ob)(t,r)}readSymbol(e,t,r){const i=t.drawingInfo?.renderer;if(i?.authoringInfo?.isAutoGenerated)return null;if(i&&k(i)){const e=(0,w.a)(i,t,r);return e?.symbol}return null}writeSymbol(e,t,r,i){const n=this.renderer?.authoringInfo?.isAutoGenerated;if(!this.renderer||n){const r=new _.Z({symbol:e});t.drawingInfo={renderer:r.write({},i)}}}writeFields(e,t,r){const i=e.filter((e=>"avg_angle"!==e.statisticType)).map((e=>e.toJSON()));(0,S.RB)(r,i,t)}readFields(e,t,r){return e.filter((e=>!e.isAutoGenerated)).map((e=>b.fromJSON(e)))}clone(){return new A({clusterRadius:this.clusterRadius,clusterMinSize:this.clusterMinSize,clusterMaxSize:this.clusterMaxSize,labelingInfo:(0,u.d9)(this.labelingInfo),labelsVisible:this.labelsVisible,fields:(0,u.d9)(this.fields),maxScale:this.maxScale,renderer:(0,u.d9)(this.renderer),symbol:(0,u.d9)(this.symbol),popupEnabled:this.popupEnabled,popupTemplate:(0,u.d9)(this.popupTemplate)})}};(0,i._)([(0,s.Cb)({type:["cluster"],readOnly:!0,json:{write:!0}})],G.prototype,"type",void 0),(0,i._)([(0,s.Cb)({type:Number,cast:e=>"auto"===e?e:(0,B.t_)(e),json:{write:!0}})],G.prototype,"clusterRadius",void 0),(0,i._)([(0,s.Cb)({type:Number,cast:B.t_,json:{write:!0}})],G.prototype,"clusterMinSize",void 0),(0,i._)([(0,s.Cb)({type:Number,cast:B.t_,json:{write:!0}})],G.prototype,"clusterMaxSize",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{default:0,name:"visibilityInfo.maxScale"}})],G.prototype,"maxScale",void 0),(0,i._)([(0,s.Cb)(I.C_)],G.prototype,"popupEnabled",void 0),(0,i._)([(0,s.Cb)({type:g.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],G.prototype,"popupTemplate",void 0),(0,i._)([(0,s.Cb)({types:x.A,json:{write:{target:"drawingInfo.renderer"}}})],G.prototype,"renderer",void 0),(0,i._)([(0,E.r)("renderer",["drawingInfo.renderer"])],G.prototype,"readRenderer",null),(0,i._)([(0,s.Cb)({types:V.AH})],G.prototype,"symbol",void 0),(0,i._)([(0,E.r)("symbol",["drawingInfo.renderer"])],G.prototype,"readSymbol",null),(0,i._)([(0,R.c)("symbol")],G.prototype,"writeSymbol",null),(0,i._)([(0,s.Cb)({type:[F.Z],json:{read:{source:"drawingInfo.labelingInfo"},write:{target:"drawingInfo.labelingInfo"}}})],G.prototype,"labelingInfo",void 0),(0,i._)([(0,s.Cb)(I.iR)],G.prototype,"labelsVisible",void 0),(0,i._)([(0,s.Cb)({type:[b],json:{write:!0}})],G.prototype,"fields",void 0),(0,i._)([(0,R.c)("fields")],G.prototype,"writeFields",null),(0,i._)([(0,E.r)("fields")],G.prototype,"readFields",null),G=A=(0,i._)([(0,l.j)("esri.layers.support.FeatureReductionCluster")],G);const Z=G;var M=r(85857);const $={key:"type",base:v.B,typeMap:{cluster:Z,binning:T}},L={types:{key:"type",base:v.B,typeMap:{selection:M.Z,cluster:Z,binning:T}},json:{name:"layerDefinition.featureReduction",write:{allowNull:!0},origins:{"web-map":{types:$},"portal-item":{types:$},"web-scene":{types:{key:"type",base:v.B,typeMap:{selection:M.Z}},name:"layerDefinition.featureReduction",write:{layerContainerTypes:m.C}}}}};var N,O=r(20102),q=r(92604),D=r(44543),J=r(69237),H=r(23847),U=(r(30856),r(51706));let Y=N=class extends H.Z{writeLevels(e,t,r){for(const r in e){const e=this.levels[r];return void(t.stops=e)}}clone(){return new N({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,U.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,U.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone(),levels:(0,u.d9)(this.levels)})}};(0,i._)([(0,s.Cb)()],Y.prototype,"levels",void 0),(0,i._)([(0,R.c)("levels")],Y.prototype,"writeLevels",null),Y=N=(0,i._)([(0,l.j)("esri.views.2d.engine.LevelDependentSizeVariable")],Y);const P=q.Z.getLogger("esri.views.2d.layers.support.clusterUtils");o.Z.add("esri-cluster-arcade-enabled",!0);const K=(0,o.Z)("esri-cluster-arcade-enabled");function Q(e,t,r,i){const n=(0,D.F)(t),s="mode"===r?`cluster_type_${n}`:"sum"===r?`cluster_sum_${n}`:`cluster_avg_${n}`;return e.some((e=>e.name===s))||e.push(new b({name:s,isAutoGenerated:!0,onStatisticExpression:new c({expression:t,returnType:i}),statisticType:r})),s}function W(e,t,r,i,n){if("cluster_count"===t||e.some((e=>e.name===t)))return t;const s=function(e,t,r){switch(e){case"sum":return`cluster_sum_${t}`;case"avg":case"avg_angle":return`cluster_avg_${t}`;case"mode":return`cluster_type_${t}`;case"avg_norm":{const e=r,i="field",n=t.toLowerCase()+",norm:"+i+","+e.toLowerCase();return"cluster_avg_"+(0,D.F)(n)}}}(r,t,n);return e.some((e=>e.name===s))||("avg_norm"===r?e.push(new b({name:s,isAutoGenerated:!0,onStatisticExpression:new c({expression:`$feature.${t} / $feature.${n}`,returnType:i}),statisticType:"avg"})):e.push(new b({name:s,isAutoGenerated:!0,onStatisticField:t,statisticType:r}))),s}const X=e=>{let t=class extends e{constructor(...e){super(...e),this.addHandles((0,n.YP)((()=>this.renderer),(()=>{if(this.featureReduction){const e=this._normalizeFeatureReduction(this.featureReduction);this._set("featureReduction",e)}}),n.Z_))}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){}_normalizeFeatureReduction(e){if("cluster"!==e?.type)return e;const t=e.clone(),r=[new b({name:"cluster_count",isAutoGenerated:!0,statisticType:"count"})],i=(t.fields??[]).filter((e=>!e.isAutoGenerated));if(e.renderer&&!e.renderer.authoringInfo?.isAutoGenerated)return t.fields=[...r,...i],t;if(e.symbol)return t.fields=[...r,...i],t.renderer=null,t;if(!this.renderer)return e;const n=((e,t,r,i,n)=>{const s=t.clone();if(!(e=>{const t=t=>P.error(new O.Z("Unsupported-renderer",t,{renderer:e}));if(!e)return!1;switch(e.type){case"unique-value":if(e.field2||e.field3)return t("FeatureReductionCluster does not support multi-field UniqueValueRenderers"),!1;break;case"class-breaks":if(e.normalizationField){const r=e.normalizationType;if("field"!==r)return t(`FeatureReductionCluster does not support a normalizationType of ${r}`),!1}break;case"simple":case"pie-chart":break;default:return t(`FeatureReductionCluster does not support renderers of type ${e.type}`),!1}if(!K){if("valueExpression"in e&&e.valueExpression)return t("FeatureReductionCluster does not currently support renderer.valueExpression. Support will be added in a future release"),!1;if(("visualVariables"in e&&e.visualVariables||[]).some((e=>!(!("valueExpression"in e)||!e.valueExpression))))return t("FeatureReductionCluster does not currently support visualVariables with a valueExpression. Support will be added in a future release"),!1}return!0})(s))return s;if(s.authoringInfo||(s.authoringInfo=new J.Z),s.authoringInfo.isAutoGenerated=!0,"visualVariables"in s){const t=(s.visualVariables||[]).filter((e=>"$view.scale"!==e.valueExpression)),r=(e=>{for(const t of e)if("size"===t.type)return t;return null})(t);t.forEach((t=>{"rotation"===t.type?t.field?t.field=W(e,t.field,"avg_angle","number"):t.valueExpression&&(t.field=Q(e,t.valueExpression,"avg_angle","number"),t.valueExpression=null):t.normalizationField?(t.field=W(e,t.field,"avg_norm","number",t.normalizationField),t.normalizationField=null):t.field?t.field=W(e,t.field,"avg","number"):t.valueExpression&&(t.field=Q(e,t.valueExpression,"avg","number"),t.valueExpression=null)})),null==r&&(e=>{for(const t of e)if("cluster_count"===t.field)return!0})(t),s.visualVariables=t}switch(s.type){case"simple":break;case"pie-chart":for(const t of s.attributes)t.field?t.field=W(e,t.field,"sum","number"):t.valueExpression&&(t.field=Q(e,t.valueExpression,"sum","number"),t.valueExpression=null);break;case"unique-value":s.field?s.field=W(e,s.field,"mode","string"):s.valueExpression&&(s.field=Q(e,s.valueExpression,"mode","string"),s.valueExpression=null);break;case"class-breaks":s.normalizationField?(s.field=W(e,s.field,"avg_norm","number",s.normalizationField),s.normalizationField=null):s.field?s.field=W(e,s.field,"avg","number"):s.valueExpression&&(s.field=Q(e,s.valueExpression,"avg","number"),s.valueExpression=null)}return s})(r,this.renderer);return t.fields=[...r,...i],t.renderer=n,t}};return(0,i._)([(0,s.Cb)(L)],t.prototype,"featureReduction",null),t=(0,i._)([(0,l.j)("esri.layers.mixins.FeatureReductionLayer")],t),t}},61960:(e,t,r)=>{r.d(t,{B:()=>l});var i=r(43697),n=r(96674),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011));let l=class extends n.wq{constructor(){super(...arguments),this.type=null}};(0,i._)([(0,s.Cb)({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,i._)([(0,o.j)("esri.layers.support.FeatureReduction")],l)},85857:(e,t,r)=>{r.d(t,{Z:()=>u});var i,n=r(43697),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),l=r(61960);let a=i=class extends l.B{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,n._)([(0,s.Cb)({type:["selection"]})],a.prototype,"type",void 0),a=i=(0,n._)([(0,o.j)("esri.layers.support.FeatureReductionSelection")],a);const u=a}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8737],{83305:(e,r,t)=>{t.d(r,{P:()=>l,a:()=>u,g:()=>_,h:()=>p,i:()=>f,j:()=>O,l:()=>a,p:()=>N});var o=t(99880),n=t(80442);let i,s=null;function f(){return!!s}function a(){return i||(i=t.e(6774).then(t.bind(t,66774)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,o.V)(`esri/geometry/support/${e}`)}))).then((e=>{y(e)})),i)}var _,u,l,c;!function(e){function r(e,r,t){s.ensureCache.prepare();const o=A(t),n=t===o,i=s.ensureFloat64(o),f=s._pe_geog_to_proj(s.getPointer(e),r,i);return f&&G(t,r,i,n),f}function t(e,r,t){return o(e,r,t,0)}function o(e,r,t,o){s.ensureCache.prepare();const n=A(t),i=t===n,f=s.ensureFloat64(n),a=s._pe_proj_to_geog_center(s.getPointer(e),r,f,o);return a&&G(t,r,f,i),a}e.geogToProj=r,e.projGeog=function(e,o,n,i){switch(i){case u.PE_TRANSFORM_P_TO_G:return t(e,o,n);case u.PE_TRANSFORM_G_TO_P:return r(e,o,n)}return 0},e.projToGeog=t,e.projToGeogCenter=o}(_||(_={})),(c=u||(u={})).init=function(){c.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,c.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,c.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,c.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,c.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,c.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,c.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,c.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,c.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,c.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,c.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,c.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,c.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,c.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,c.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,c.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,c.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,c.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,c.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,c.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,c.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,c.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,c.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,c.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,c.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,c.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,c.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,c.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,c.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,c.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,c.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,c.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const r={},t={},o=e=>{if(e){const r=e.getType();switch(r){case u.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case u.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case u.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:r&u.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}}return e};function n(e,t){let n=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(String(t)))n=i[t];else{const r=s.PeFactory.prototype.factoryByType(e,t);s.compare(r,s.NULL)||(n=r,i[t]=n)}return n=o(n),n}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return n(u.PE_TYPE_COORDSYS,e)},e.factoryByType=n,e.fromString=function(e,r){let n=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(r))n=i[r];else{const t=s.PeFactory.prototype.fromString(e,r);s.compare(t,s.NULL)||(n=t,i[r]=n)}return n=o(n),n},e.geogcs=function(e){return n(u.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return n(u.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return n(u.PE_TYPE_PROJCS,e)},e.unit=function(e){return n(u.PE_TYPE_UNIT,e)}}(l||(l={}));let P=null;var E,S,p,d,T,g,M,O,h;function y(e){function r(e,r,t){e[r]=t(e[r])}s=e,u.init(),E.init(),T.init(),M.init(),O.init(),P=class extends s.PeGCSExtent{destroy(){s.destroy(this)}};const t=[s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of t)r(e.prototype,"getName",(e=>function(){return e.call(this,new Array(u.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])r(e.prototype,"getParameters",(e=>function(){const r=new Array(u.PE_PARM_MAX);let t=e.call(this);for(let e=0;e<r.length;e++){const o=s.getValue(t,"*");r[e]=o?s.wrapPointer(o,s.PeParameter):null,t+=Int32Array.BYTES_PER_ELEMENT}return r}));r(s.PeHorizon.prototype,"getCoord",(e=>function(){const r=this.getSize();if(!r)return null;const t=[];return G(t,r,e.call(this)),t})),r(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const r=s._pe_getPeGTlistExtendedGTsSize();return function(){let t=null;const o=e.call(this);if(!s.compare(o,s.NULL)){t=[o];const e=this.getSteps();if(e>1){const n=s.getPointer(o);for(let o=1;o<e;o++)t.push(s.wrapPointer(n+r*o,s.PeGTlistExtendedGTs))}}return t}}));const o=s._pe_getPeHorizonSize(),n=e=>function(){let r=this._cache;if(r||(r=new Map,this._cache=r),r.has(e))return r.get(e);let t=null;const n=e.call(this);if(!s.compare(n,s.NULL)){t=[n];const e=n.getNump();if(e>1){const r=s.getPointer(n);for(let n=1;n<e;n++)t.push(s.wrapPointer(r+o*n,s.PeHorizon))}}return r.set(e,t),t};r(s.PeProjcs.prototype,"horizonGcsGenerate",n),r(s.PeProjcs.prototype,"horizonPcsGenerate",n),s.PeObject.prototype.toString=function(e=u.PE_STR_OPTS_NONE){s.ensureCache.prepare();const r=s.getPointer(this),t=s.ensureInt8(new Array(u.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(r,e,t))}}function R(e){if(!e)return;const r=s.getClass(e);if(!r)return;const t=s.getCache(r);if(!t)return;const o=s.getPointer(e);o&&delete t[o]}function m(e,r){const t=[],o=new Array(r);for(let r=0;r<e;r++)t.push(s.ensureInt8(o));return t}function A(e){let r;return Array.isArray(e[0])?(r=[],e.forEach((e=>{r.push(e[0],e[1])}))):r=e,r}function G(e,r,t,o=!1){if(o)for(let o=0;o<2*r;o++)e[o]=s.getValue(t+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<r;n++)o&&(e[n]=new Array(2)),e[n][0]=s.getValue(t,"double"),e[n][1]=s.getValue(t+Float64Array.BYTES_PER_ELEMENT,"double"),t+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let r;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,r=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,t,o,n,i,f){let a=null;const _=new s.PeInteger(f);try{const u=s.PeGTlistExtended.prototype.getGTlist(e,t,o,n,i,_);if((f=_.val)&&(a=[u],f>1)){const e=s.getPointer(u);for(let t=1;t<f;t++)a.push(s.wrapPointer(e+r*t,s.PeGTlistExtendedEntry))}}finally{s.destroy(_)}return a}}(E||(E={})),function(e){e.destroy=function(e){if(e?.length){for(const r of e)R(r),r.getEntries().forEach((e=>{R(e);const r=e.getGeogtran();R(r),r.getParameters().forEach(R),[r.getGeogcs1(),r.getGeogcs2()].forEach((e=>{R(e);const r=e.getDatum();R(r),R(r.getSpheroid()),R(e.getPrimem()),R(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(S||(S={})),function(e){e.geogToGeog=function(e,r,t,o,n){s.ensureCache.prepare();const i=A(t),f=t===i,a=s.ensureFloat64(i);let _=0;o&&(_=s.ensureFloat64(o));const u=s._pe_geog_to_geog(s.getPointer(e),r,a,_,n);return u&&G(t,r,a,f),u}}(p||(p={})),function(e){const r=(e,r,t,o,n,i)=>{let f,a;switch(s.ensureCache.prepare(),e){case"dd":f=s._pe_geog_to_dd,a=u.PE_DD_MAX;break;case"ddm":f=s._pe_geog_to_ddm,a=u.PE_DDM_MAX;break;case"dms":f=s._pe_geog_to_dms,a=u.PE_DMS_MAX}let _=0;r&&(_=s.getPointer(r));const l=A(o),c=s.ensureFloat64(l),P=m(t,a),E=f(_,t,c,n,s.ensureInt32(P));if(E)for(let e=0;e<t;e++)i[e]=s.UTF8ToString(P[e]);return E},t=(e,r,t,o,n)=>{let i;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_dd_to_geog;break;case"ddm":i=s._pe_ddm_to_geog;break;case"dms":i=s._pe_dms_to_geog}let f=0;r&&(f=s.getPointer(r));const a=o.map((e=>s.ensureString(e))),_=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),l=i(f,t,_,u);return l&&G(n,t,u),l};e.geogToDms=function(e,t,o,n,i){return r("dms",e,t,o,n,i)},e.dmsToGeog=function(e,r,o,n){return t("dms",e,r,o,n)},e.geogToDdm=function(e,t,o,n,i){return r("ddm",e,t,o,n,i)},e.ddmToGeog=function(e,r,o,n){return t("ddm",e,r,o,n)},e.geogToDd=function(e,t,o,n,i){return r("dd",e,t,o,n,i)},e.ddToGeog=function(e,r,o,n){return t("dd",e,r,o,n)}}(d||(d={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,r,t,o,n,i,f){s.ensureCache.prepare();let a=0;e&&(a=s.getPointer(e));const _=A(t),l=s.ensureFloat64(_),c=m(r,u.PE_MGRS_MAX),P=s.ensureInt32(c),E=s._pe_geog_to_mgrs_extended(a,r,l,o,n,i,P);if(E)for(let e=0;e<r;e++)f[e]=s.UTF8ToString(c[e]);return E},e.mgrsToGeogExtended=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const f=t.map((e=>s.ensureString(e))),a=s.ensureInt32(f),_=s.ensureFloat64(new Array(2*r)),u=s._pe_mgrs_to_geog_extended(i,r,a,o,_);return u&&G(n,r,_),u}}(T||(T={})),function(e){e.geogToUsng=function(e,r,t,o,n,i,f){s.ensureCache.prepare();let a=0;e&&(a=s.getPointer(e));const _=A(t),l=s.ensureFloat64(_),c=m(r,u.PE_MGRS_MAX),P=s.ensureInt32(c),E=s._pe_geog_to_usng(a,r,l,o,n,i,P);if(E)for(let e=0;e<r;e++)f[e]=s.UTF8ToString(c[e]);return E},e.usngToGeog=function(e,r,t,o){s.ensureCache.prepare();let n=0;e&&(n=s.getPointer(e));const i=t.map((e=>s.ensureString(e))),f=s.ensureInt32(i),a=s.ensureFloat64(new Array(2*r)),_=s._pe_usng_to_geog(n,r,f,a);return _&&G(o,r,a),_}}(g||(g={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const f=A(t),a=s.ensureFloat64(f),_=m(r,u.PE_UTM_MAX),l=s.ensureInt32(_),c=s._pe_geog_to_utm(i,r,a,o,l);if(c)for(let e=0;e<r;e++)n[e]=s.UTF8ToString(_[e]);return c},e.utmToGeog=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const f=t.map((e=>s.ensureString(e))),a=s.ensureInt32(f),_=s.ensureFloat64(new Array(2*r)),u=s._pe_utm_to_geog(i,r,a,o,_);return u&&G(n,r,_),u}}(M||(M={})),function(e){const r=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(t,o=e.PE_PCSINFO_OPTION_DOMAIN){let n=null,i=null;return r.has(t)&&(i=r.get(t),i[o]&&(n=i[o])),n||(n=s.PePCSInfo.prototype.generate(t,o),i||(i=[],r.set(t,i)),i[o]=n),n}}(O||(O={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(h||(h={}));const N=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return _},get PeDefs(){return u},get PeFactory(){return l},get PeGCSExtent(){return P},get PeGTTransformations(){return p},get PeGTlistExtended(){return E},get PeGTlistExtendedEntry(){return S},get PeNotationDms(){return d},get PeNotationMgrs(){return T},get PeNotationUsng(){return g},get PeNotationUtm(){return M},get PePCSInfo(){return O},get PeVersion(){return h},_init:y,get _pe(){return s},isLoaded:f,isSupported:function(){return!!(0,n.Z)("esri-wasm")},load:a},Symbol.toStringTag,{value:"Module"}))},36030:(e,r,t)=>{t.d(r,{J:()=>i});var o=t(35454),n=t(5600);function i(e,r={}){const t=e instanceof o.X?e:new o.X(e,r),i={type:r?.ignoreUnknown??1?t.apiValues:String,json:{type:t.jsonValues,read:!r?.readOnly&&{reader:t.read},write:{writer:t.write}}};return void 0!==r?.readOnly&&(i.readOnly=!!r.readOnly),void 0!==r?.default&&(i.json.default=r.default),void 0!==r?.name&&(i.json.name=r.name),void 0!==r?.nonNullable&&(i.nonNullable=r.nonNullable),(0,n.Cb)(i)}},30556:(e,r,t)=>{t.d(r,{c:()=>n});var o=t(5600);function n(e,r,t){let n,i;return void 0===r?(i=e,n=[void 0]):"string"!=typeof r?(i=e,n=[void 0],t=r):(i=r,n=Array.isArray(e)?e:[e]),(e,r)=>{const s=e.constructor.prototype;for(const f of n){const n=(0,o.CJ)(e,f,i);n.write&&"object"==typeof n.write||(n.write={}),t&&(n.write.target=t),n.write.writer=s[r]}}}},35454:(e,r,t)=>{t.d(r,{X:()=>n,w:()=>i});var o=t(78286);class n{constructor(e,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,r,t)=>{const n=this.toJSON(e);void 0!==n&&(0,o.RB)(t,n,r)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const r=this._apiToJSON[e];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}_invertMap(e){const r={};for(const t in e)r[e[t]]=t;return r}_getKeysSorted(e){const r=[];for(const t in e)r.push(t);return r.sort(),r}}function i(){return function(e,r){return new n(e,{ignoreUnknown:!0,...r})}}},67900:(e,r,t)=>{t.d(r,{$C:()=>y,CN:()=>W,En:()=>O,Jo:()=>b,_R:()=>R,c9:()=>A,cM:()=>m,gV:()=>I,hd:()=>a,qE:()=>w,r6:()=>G,ty:()=>h}),t(80442);var o=t(35454),n=t(2109),i=t(68441),s=t(8744),f=t(58116);const a=39.37,_=i.sv.radius*Math.PI/200,u=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,l=f.Z,c=/UNIT\[([^\]]+)]/i,P=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),E=(0,o.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),S=e=>e*e,p=e=>e*e*e,d={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:S(.001)},"square-centimeters":{inBaseUnits:S(.01)},"square-decimeters":{inBaseUnits:S(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:S(1e3)},"square-inches":{inBaseUnits:S(.0254)},"square-feet":{inBaseUnits:S(.3048)},"square-yards":{inBaseUnits:S(.9144)},"square-miles":{inBaseUnits:S(1609.344)},"square-us-feet":{inBaseUnits:S(1200/3937)},acres:{inBaseUnits:.0015625*S(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*p(.001)},"cubic-centimeters":{inBaseUnits:1e3*p(.01)},"cubic-decimeters":{inBaseUnits:1e3*p(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*p(1e3)},"cubic-inches":{inBaseUnits:1e3*p(.0254)},"cubic-feet":{inBaseUnits:1e3*p(.3048)},"cubic-yards":{inBaseUnits:1e3*p(.9144)},"cubic-miles":{inBaseUnits:1e3*p(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},T=(()=>{const e={};for(const r in d)for(const t in d[r].units)e[t]=r;return e})();function g(e){const r=T[e];if(!r)throw new Error("unknown type");return r}function M(e,r=null){return r=r||g(e),d[r].baseUnit===e}function O(e,r,t){if(r===t)return e;const o=g(r);if(o!==g(t))throw new Error("incompatible units");const n=M(r,o)?e:function(e,r,t){return e*d[t].units[r].inBaseUnits}(e,r,o);return M(t,o)?n:function(e,r,t){return e/d[t].units[r].inBaseUnits}(n,t,o)}function h(e,r,t){return O(e,r,"meters")/(t*Math.PI/180)}function y(e){return E.fromJSON(e.toLowerCase())||null}function R(e){if(null!=e&&!(0,s.N$)(e))return 1;const r=A(e);return r>1e5?1:r}function m(e){return A(e)>=(0,n.Iu)(e).metersPerDegree?"meters":w(e)}function A(e,r=i.sv.metersPerDegree){return function(e,r=!1){const t=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(t){if((0,s.o$)(t))return i.yr.metersPerDegree;if((0,s.ME)(t))return i.Z1.metersPerDegree;n=l.values[l[t]],!n&&r&&P.has(t)&&(n=_)}else o&&(U(o)?n=N(u.exec(o),n):k(o)&&(n=N(c.exec(o),n)));return n}(e,!0)??r}function G(e){return(0,s.sT)(e)?1:A(e)}function N(e,r){return e?.[1]?C(e[1]):r}function C(e){return parseFloat(e.split(",")[1])}function w(e){const r=e?.wkid??null,t=e?.wkt2??e?.wkt??null;let o=null;if(r)o=l.units[l[r]];else if(t){const e=U(t)?u:k(t)?c:null;if(e){const r=e.exec(t);r?.[1]&&(o=function(e){const r=/[\\"']{1}([^\\"']+)/.exec(e);let t=r?.[1];if(!t||!l.units.includes(t)){const r=C(e);t=null;const o=l.values;for(let e=0;e<o.length;++e)if(Math.abs(r-o[e])<D){t=l.units[e];break}}return t}(r[1]))}}return null!=o?y(o):null}function k(e){return/^GEOCCS/i.test(e)}function U(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const D=1e-7,I=(0,o.w)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),b=(0,o.w)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),W=(0,o.w)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},82971:(e,r,t)=>{t.d(r,{Z:()=>E});var o,n=t(43697),i=t(96674),s=t(22974),f=t(67900),a=t(75215),_=t(5600),u=t(52011),l=t(30556),c=t(8744);let P=o=class extends i.wq{static fromJSON(e){if(!e)return null;if(e.wkid){if(102100===e.wkid)return o.WebMercator;if(4326===e.wkid)return o.WGS84}const r=new o;return r.read(e),r}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&"object"==typeof e?e:{["string"==typeof e?"wkt":"wkid"]:e}}get isWGS84(){return(0,c.oR)(this)}get isWebMercator(){return(0,c.sS)(this)}get isGeographic(){return(0,c.sT)(this)}get isWrappable(){return(0,c.MP)(this)}get metersPerUnit(){return(0,f.c9)(this)}get unit(){return(0,f.qE)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,r){this.wkid||(r.wkt=e)}clone(){if(this===o.WGS84)return o.WGS84;if(this===o.WebMercator)return o.WebMercator;const e=new o;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,s.d9)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:r,referenceServiceName:t}=e.imageCoordinateSystem,{geodataXform:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==r||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):t?n.id===r&&n.referenceServiceName===t:n.id===r}return(0,c.fS)(this,e)}toJSON(e){return this.write(void 0,e)}};P.GCS_NAD_1927=null,P.WGS84=null,P.WebMercator=null,P.PlateCarree=null,(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isWGS84",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isWebMercator",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isGeographic",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isWrappable",null),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0}})],P.prototype,"latestWkid",void 0),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"metersPerUnit",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"unit",null),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],P.prototype,"wkid",void 0),(0,n._)([(0,_.Cb)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],P.prototype,"wkt",void 0),(0,n._)([(0,l.c)("wkt"),(0,l.c)("web-scene","wkt")],P.prototype,"writeWkt",null),(0,n._)([(0,_.Cb)({type:String,json:{write:!1}})],P.prototype,"wkt2",void 0),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0}})],P.prototype,"vcsWkid",void 0),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0}})],P.prototype,"latestVcsWkid",void 0),(0,n._)([(0,_.Cb)()],P.prototype,"imageCoordinateSystem",void 0),P=o=(0,n._)([(0,u.j)("esri.geometry.SpatialReference")],P),P.prototype.toJSON.isDefaultToJSON=!0,P.GCS_NAD_1927=new P({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'}),P.WGS84=new P(c.Zn),P.WebMercator=new P(c.R_),P.PlateCarree=new P(c.WR),Object.freeze&&(Object.freeze(P.GCS_NAD_1927),Object.freeze(P.WGS84),Object.freeze(P.WebMercator));const E=P},2109:(e,r,t)=>{t.d(r,{Iu:()=>u,JL:()=>f,e8:()=>l,fY:()=>c,kU:()=>s,mM:()=>a,oe:()=>P,pn:()=>_});var o=t(68441),n=t(8744);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(o.sv),f=i(o.yr),a=i(o.Z1),_={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`};function u(e){return null!=e&&((0,n.BZ)(e)||(0,n.fS)(e,f))?o.yr:null!=e&&((0,n.V2)(e)||(0,n.fS)(e,a))?o.Z1:o.sv}function l(e){return(0,n.o$)(e)?o.yr:(0,n.ME)(e)?o.Z1:o.sv}function c(e){return(0,n.fS)(e,s)}function P(e){return c(e)||(0,n.fS)(e,f)||(0,n.fS)(e,a)}},68441:(e,r,t)=>{t.d(r,{Z1:()=>s,sv:()=>n,yr:()=>i});class o{constructor(e,r,t,o){this.semiMajorAxis=e,this.flattening=r,this.outerAtmosphereRimWidth=t;const n=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*n,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=o||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,.006694379990137799),i=new o(3396190,1/169.8944472236118,23e4),s=new o(1737400,0,0)},56726:(e,r,t)=>{var o;t.d(r,{W:()=>o}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(o||(o={}))},58116:(e,r,t)=>{let o;t.d(r,{Z:()=>n});const n={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5167;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=10285;o<=10291;o++)n[o]=0;for(o=10314;o<=10317;o++)n[o]=0;for(o=10448;o<=10465;o++)n[o]=0;for(o=11114;o<=11118;o++)n[o]=0;for(o=20004;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22229;o<=22232;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22807;o<=22822;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23301;o<=23333;o++)n[o]=2;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32401;o<=32460;o++)n[o]=0;for(o=32501;o<=32560;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102955;o++)n[o]=0;for(o=102961;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},8744:(e,r,t)=>{t.d(r,{B9:()=>E,BZ:()=>y,C5:()=>P,JY:()=>G,ME:()=>R,MP:()=>A,N$:()=>p,QM:()=>O,R_:()=>C,V2:()=>m,WR:()=>w,Zn:()=>N,fS:()=>c,o$:()=>h,oR:()=>d,sS:()=>M,sT:()=>S,xl:()=>T,yW:()=>g});var o=t(19153),n=(t(83305),t(56726)),i=t(58116);const s={102113:!0,102100:!0,3857:!0,3785:!0},f={4326:!0,3785:!0,3857:!0,102113:!0,102100:!0,104905:!0,104971:!0},a='PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',_=[-20037508.342788905,20037508.342788905],u=[-20037508.342787,20037508.342787],l={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:_,origin:u,dx:1e-5},102100:{wkTemplate:a,valid:_,origin:u,dx:1e-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:_,origin:u,dx:1e-5},3857:{wkTemplate:a,valid:_,origin:u,dx:1e-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function c(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(null!=e.wkid||null!=r.wkid)return e.wkid===r.wkid||M(e)&&M(r)||null!=r.latestWkid&&e.wkid===r.latestWkid||null!=e.latestWkid&&r.wkid===e.latestWkid;const t=e.wkt2??e.wkt,o=r.wkt2??r.wkt;return!(!t||!o)&&t.toUpperCase()===o.toUpperCase()}function P(e){return G(e)&&e.wkid&&l[e.wkid]||null}function E(e){if(!e)return;if(e.wkid)return String(e.wkid);const r=e.wkt||e.wkt2;return JSON.stringify(r?{wkt:r}:{})}function S(e){if(!G(e))return!1;if(e.wkid)return null==i.Z[e.wkid];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function p(e){return!(y(e)||m(e))}function d(e){return G(e)&&4326===e.wkid}function T(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function g(e){return G(e)&&e.wkid===n.W.CGCS2000}function M(e){return G(e)&&null!=e.wkid&&!0===s[e.wkid]}function O(e){return G(e)&&32662===e.wkid}function h(e){return e===n.W.GCSMARS2000||e===n.W.GCSMARS2000_SPHERE}function y(e){return G(e)&&null!=e.wkid&&h(e.wkid)}function R(e){return e===n.W.GCSMOON2000}function m(e){return G(e)&&null!=e.wkid&&R(e.wkid)}function A(e){return G(e)&&null!=e.wkid&&!0===f[e.wkid]}function G(e){return null!=e&&(null!=e.wkid&&e.wkid>=2e3||null!=e.wkt2||null!=e.wkt)}const N={wkid:4326,wkt:(0,o.gx)(l[4326].wkTemplate,{Central_Meridian:"0.0"})},C={wkid:102100,latestWkid:3857},w={wkid:32662}}}]);