@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([[6456],{45091:(e,t,s)=>{s.d(t,{Z:()=>c});var i,n,r=s(80442),a=s(71143);(n=i||(i={}))[n.varint=0]="varint",n[n.fixed64=1]="fixed64",n[n.delimited=2]="delimited",n[n.fixed32=5]="fixed32",n[n.unknown=99]="unknown";const o=4294967296,l=new TextDecoder("utf-8"),h=(0,r.Z)("safari")||(0,r.Z)("ios")?6:(0,r.Z)("ff")?12:32;class c{constructor(e,t,s=0,n=(e?e.byteLength:0)){this._tag=0,this._dataType=i.unknown,this._init(e,t,s,n)}_init(e,t,s,i){this._data=e,this._dataView=t,this._pos=s,this._end=i}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();if(void 0!==e)return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),s}getSFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),s}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,s=this._toString(this._data,t,t+e);return this._skip(e),s}getBytes(){const e=this._getLength(),t=this._pos,s=this._toBytes(this._data,t,t+e);return this._skip(e),s}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,s,i){const n=this.getMessage(),r=e(n,t,s,i);return n.release(),r}processMessage(e){const t=this.getMessage(),s=e(t);return t.release(),s}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case i.varint:this._decodeVarint();break;case i.fixed64:this._skip(8);break;case i.delimited:this._skip(this._getLength());break;case i.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,s=0,i=0;if(this._end-t>=10)do{if(i=e[t++],s|=127&i,0==(128&i))break;if(i=e[t++],s|=(127&i)<<7,0==(128&i))break;if(i=e[t++],s|=(127&i)<<14,0==(128&i))break;if(i=e[t++],s|=(127&i)<<21,0==(128&i))break;if(i=e[t++],s+=268435456*(127&i),0==(128&i))break;if(i=e[t++],s+=34359738368*(127&i),0==(128&i))break;if(i=e[t++],s+=4398046511104*(127&i),0==(128&i))break;if(i=e[t++],s+=562949953421312*(127&i),0==(128&i))break;if(i=e[t++],s+=72057594037927940*(127&i),0==(128&i))break;if(i=e[t++],s+=0x8000000000000000*(127&i),0==(128&i))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(i=e[t],0!=(128&i));)++t,s+=(127&i)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,s+=i*n}return this._pos=t,s}_decodeSVarint(){const e=this._data;let t,s=0,i=0;const n=1&e[this._pos];if(i=e[this._pos++],s|=127&i,0==(128&i))return n?-(s+1)/2:s/2;if(i=e[this._pos++],s|=(127&i)<<7,0==(128&i))return n?-(s+1)/2:s/2;if(i=e[this._pos++],s|=(127&i)<<14,0==(128&i))return n?-(s+1)/2:s/2;if(i=e[this._pos++],s|=(127&i)<<21,0==(128&i))return n?-(s+1)/2:s/2;if(i=e[this._pos++],s+=268435456*(127&i),0==(128&i))return n?-(s+1)/2:s/2;if(i=e[this._pos++],s+=34359738368*(127&i),0==(128&i))return n?-(s+1)/2:s/2;if(i=e[this._pos++],s+=4398046511104*(127&i),0==(128&i))return n?-(s+1)/2:s/2;if(t=BigInt(s),i=e[this._pos++],t+=0x2000000000000n*BigInt(127&i),0==(128&i))return Number(n?-(t+1n)/2n:t/2n);if(i=e[this._pos++],t+=0x100000000000000n*BigInt(127&i),0==(128&i))return Number(n?-(t+1n)/2n:t/2n);if(i=e[this._pos++],t+=0x8000000000000000n*BigInt(127&i),0==(128&i))return Number(n?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(this._dataType!==i.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,s){if((s=Math.min(this._end,s))-t>h){const i=e.subarray(t,s);return l.decode(i)}let i="",n="";for(let r=t;r<s;++r){const t=e[r];128&t?n+="%"+t.toString(16):(i+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(i+=decodeURIComponent(n)),i}_toBytes(e,t,s){return s=Math.min(this._end,s),new Uint8Array(e.buffer,t,s-t)}}c.pool=new a.Z(c,void 0,(e=>{e._data=null,e._dataView=null}))},56456:(e,t,s)=>{s.r(t),s.d(t,{default:()=>$});var i=s(95330),n=s(4215),r=s(59255),a=s(31363);function o(e){return 746===e||747===e||!(e<4352)&&(e>=12704&&e<=12735||e>=12544&&e<=12591||e>=65072&&e<=65103&&!(e>=65097&&e<=65103)||e>=63744&&e<=64255||e>=13056&&e<=13311||e>=11904&&e<=12031||e>=12736&&e<=12783||e>=12288&&e<=12351&&!(e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||e>=13312&&e<=19903||e>=19968&&e<=40959||e>=12800&&e<=13055||e>=12592&&e<=12687||e>=43360&&e<=43391||e>=55216&&e<=55295||e>=4352&&e<=4607||e>=44032&&e<=55215||e>=12352&&e<=12447||e>=12272&&e<=12287||e>=12688&&e<=12703||e>=12032&&e<=12255||e>=12784&&e<=12799||e>=12448&&e<=12543&&12540!==e||e>=65280&&e<=65519&&!(65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||e>=65104&&e<=65135&&!(e>=65112&&e<=65118||e>=65123&&e<=65126)||e>=5120&&e<=5759||e>=6320&&e<=6399||e>=65040&&e<=65055||e>=19904&&e<=19967||e>=40960&&e<=42127||e>=42128&&e<=42191)}function l(e){return!(e<11904)&&(e>=12704&&e<=12735||e>=12544&&e<=12591||e>=65072&&e<=65103||e>=63744&&e<=64255||e>=13056&&e<=13311||e>=11904&&e<=12031||e>=12736&&e<=12783||e>=12288&&e<=12351||e>=13312&&e<=19903||e>=19968&&e<=40959||e>=12800&&e<=13055||e>=65280&&e<=65519||e>=12352&&e<=12447||e>=12272&&e<=12287||e>=12032&&e<=12255||e>=12784&&e<=12799||e>=12448&&e<=12543||e>=65040&&e<=65055||e>=42128&&e<=42191||e>=40960&&e<=42127)}function h(e){switch(e){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function c(e){switch(e){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var u=s(87893);const f=24;class d{constructor(e,t,s,i,n,r,a){this._glyphItems=e,this._maxWidth=t,this._lineHeight=s,this._letterSpacing=i,this._hAnchor=n,this._vAnchor=r,this._justify=a}getShaping(e,t,s){const i=this._letterSpacing,n=this._lineHeight,r=this._justify,a=this._maxWidth,u=[];let f=0,d=0;for(const t of e){const e=t.codePointAt(0);if(null==e)continue;const n=s&&o(e);let r;for(const t of this._glyphItems)if(r=t[e],r)break;u.push({codePoint:e,x:f,y:d,vertical:n,glyphMosaicItem:r}),r&&(f+=r.metrics.advance+i)}let g=f;a>0&&(g=f/Math.max(1,Math.ceil(f/a)));const y=e.includes("​"),x=[],p=u.length;for(let e=0;e<p-1;e++){const t=u[e].codePoint,s=l(t);if(h(t)||s){let i=0;if(10===t)i-=1e4;else if(s&&y)i+=150;else{40!==t&&65288!==t||(i+=50);const s=u[e+1].codePoint;41!==s&&65289!==s||(i+=50)}x.push(this._buildBreak(e+1,u[e].x,g,x,i,!1))}}const _=this._optimalBreaks(this._buildBreak(p,f,g,x,0,!0));let m=0;const I=t?-n:n;let w=0;for(let e=0;e<_.length;e++){const t=_[e];let s=w;for(;s<t&&c(u[s].codePoint);)u[s].glyphMosaicItem=null,++s;let i=t-1;for(;i>s&&c(u[i].codePoint);)u[i].glyphMosaicItem=null,--i;if(s<=i){const e=u[s].x;for(let t=s;t<=i;t++)u[t].x-=e,u[t].y=d;let t=u[i].x;u[i].glyphMosaicItem&&(t+=u[i].glyphMosaicItem.metrics.advance),m=Math.max(t,m),r&&this._applyJustification(u,s,i)}w=t,d+=I}if(u.length>0){const e=_.length-1,s=(r-this._hAnchor)*m;let i=(-this._vAnchor*(e+1)+.5)*n;t&&e&&(i+=e*n);for(const e of u)e.x+=s,e.y+=i}return u.filter((e=>e.glyphMosaicItem))}static getTextBox(e,t){if(!e.length)return null;let s=1/0,i=1/0,n=0,r=0;for(const a of e){const e=a.glyphMosaicItem.metrics.advance,o=a.x,l=a.y-17,h=o+e,c=l+t;s=Math.min(s,o),n=Math.max(n,h),i=Math.min(i,l),r=Math.max(r,c)}return{x:s,y:i,width:n-s,height:r-i}}static getBox(e){if(!e.length)return null;let t=1/0,s=1/0,i=0,n=0;for(const r of e){const{height:e,left:a,top:o,width:l}=r.glyphMosaicItem.metrics,h=r.x,c=r.y-(e-Math.abs(o)),u=h+l+a,f=c+e;t=Math.min(t,h),i=Math.max(i,u),s=Math.min(s,c),n=Math.max(n,f)}return{x:t,y:s,width:i-t,height:n-s}}static addDecoration(e,t){const s=e.length;if(0===s)return;let i=e[0].x+e[0].glyphMosaicItem.metrics.left,n=e[0].y;for(let r=1;r<s;r++){const s=e[r];if(s.y!==n){const a=e[r-1].x+e[r-1].glyphMosaicItem.metrics.left+e[r-1].glyphMosaicItem.metrics.width;e.push({codePoint:0,x:i,y:n+t-3,vertical:!1,glyphMosaicItem:{sdf:!0,rect:new u.Z(4,0,4,8),metrics:{width:a-i,height:8,left:0,top:0,advance:0},page:0,code:0}}),n=s.y,i=s.x+s.glyphMosaicItem.metrics.left}}const r=e[s-1].x+e[s-1].glyphMosaicItem.metrics.left+e[s-1].glyphMosaicItem.metrics.width;e.push({codePoint:0,x:i,y:n+t-3,vertical:!1,glyphMosaicItem:{sdf:!0,rect:new u.Z(4,0,4,8),metrics:{width:r-i,height:8,left:0,top:0,advance:0},page:0,code:0}})}_breakScore(e,t,s,i){const n=(e-t)*(e-t);return i?e<t?n/2:2*n:n+Math.abs(s)*s}_buildBreak(e,t,s,i,n,r){let a=null,o=this._breakScore(t,s,n,r);for(const e of i){const i=t-e.x,l=this._breakScore(i,s,n,r)+e.score;l<=o&&(a=e,o=l)}return{index:e,x:t,score:o,previousBreak:a}}_optimalBreaks(e){return e?this._optimalBreaks(e.previousBreak).concat(e.index):[]}_applyJustification(e,t,s){const i=e[s],n=i.vertical?f:i.glyphMosaicItem?i.glyphMosaicItem.metrics.advance:0,r=(i.x+n)*this._justify;for(let i=t;i<=s;i++)e[i].x-=r}}var g=s(21315);const y=.5;class x{constructor(e,t,s=0,i=-1,n=y){this.x=e,this.y=t,this.angle=s,this.segment=i,this.minzoom=n}}class p{constructor(e,t,s,i,n,r=y,o=a.FM){this.anchor=e,this.labelAngle=t,this.glyphAngle=s,this.page=i,this.alternateVerticalGlyph=n,this.minzoom=r,this.maxzoom=o}}class _{constructor(e,t,s,i,n,r,a,o,l,h,c,u){this.tl=e,this.tr=t,this.bl=s,this.br=i,this.mosaicRect=n,this.labelAngle=r,this.minAngle=a,this.maxAngle=o,this.anchor=l,this.minzoom=h,this.maxzoom=c,this.page=u}}class m{constructor(e){this.shapes=e}}class I{getIconPlacement(e,t,s){const i=new r.E9(e.x,e.y),n=s.rotationAlignment===g.aF.MAP,o=s.keepUpright;let l=s.rotate*a.nF;n&&(l+=e.angle);const h=new m([]);return s.allowOverlap&&s.ignorePlacement||(h.iconColliders=[]),this._addIconPlacement(h,i,t,s,l),n&&o&&this._addIconPlacement(h,i,t,s,l+a.RD),h}_addIconPlacement(e,t,s,i,n){const o=s.pixelRatio,l=s.width/o,h=s.height/o,c=i.offset;let u=c[0],f=c[1];switch(i.anchor){case g.nR.CENTER:u-=l/2,f-=h/2;break;case g.nR.LEFT:f-=h/2;break;case g.nR.RIGHT:u-=l,f-=h/2;break;case g.nR.TOP:u-=l/2;break;case g.nR.BOTTOM:u-=l/2,f-=h;break;case g.nR.TOP_LEFT:break;case g.nR.BOTTOM_LEFT:f-=h;break;case g.nR.TOP_RIGHT:u-=l;break;case g.nR.BOTTOM_RIGHT:u-=l,f-=h}const d=s.rect,x=2/o,p=u-x,m=f-x,I=p+d.width/o,w=m+d.height/o,b=new r.E9(p,m),M=new r.E9(I,w),T=new r.E9(p,w),P=new r.E9(I,m);if(0!==n){const e=Math.cos(n),t=Math.sin(n);b.rotate(e,t),M.rotate(e,t),T.rotate(e,t),P.rotate(e,t)}const k=new _(b,P,T,M,d,n,0,256,t,y,a.FM,0);if(e.shapes.push(k),!i.allowOverlap||!i.ignorePlacement){const s=i.size,r=i.padding,o={xTile:t.x,yTile:t.y,dxPixels:u*s-r,dyPixels:f*s-r,hard:!i.optional,partIndex:0,width:l*s+2*r,height:h*s+2*r,angle:n,minLod:y,maxLod:a.FM};e.iconColliders.push(o)}}getTextPlacement(e,t,s,i){const n=new r.E9(e.x,e.y),o=i.rotate*a.nF,l=i.rotationAlignment===g.aF.MAP,h=i.keepUpright,c=i.padding;let u=y;const x=l?e.angle:0,I=e.segment>=0&&l,w=i.allowOverlap&&i.ignorePlacement?null:[],b=[],M=!I;let T=Number.POSITIVE_INFINITY,P=Number.NEGATIVE_INFINITY,k=T,V=P;const L=(I||l)&&h,B=i.size/f;let D=!1;for(const e of t)if(e.vertical){D=!0;break}let A,E=0,R=0;if(!I&&D){const e=d.getTextBox(t,i.lineHeight*f);switch(i.anchor){case g.nR.LEFT:E=e.height/2,R=-e.width/2;break;case g.nR.RIGHT:E=-e.height/2,R=e.width/2;break;case g.nR.TOP:E=e.height/2,R=e.width/2;break;case g.nR.BOTTOM:E=-e.height/2,R=-e.width/2;break;case g.nR.TOP_LEFT:E=e.height;break;case g.nR.BOTTOM_LEFT:R=-e.width;break;case g.nR.TOP_RIGHT:R=e.width;break;case g.nR.BOTTOM_RIGHT:E=-e.height}}E+=i.offset[0]*f,R+=i.offset[1]*f;for(const f of t){const t=f.glyphMosaicItem;if(!t||t.rect.isEmpty)continue;const d=t.rect,g=t.metrics,m=t.page;if(w&&M){if(void 0!==A&&A!==f.y){let t,s,n,r;D?(t=-V+E,s=T+R,n=V-k,r=P-T):(t=T+E,s=k+R,n=P-T,r=V-k);const l={xTile:e.x,yTile:e.y,dxPixels:t*B-c,dyPixels:s*B-c,hard:!i.optional,partIndex:1,width:n*B+2*c,height:r*B+2*c,angle:o,minLod:y,maxLod:a.FM};w.push(l),T=Number.POSITIVE_INFINITY,P=Number.NEGATIVE_INFINITY,k=T,V=P}A=f.y}const v=[];if(I){const i=.5*t.metrics.width,n=(f.x+g.left-4+i)*B*8;if(u=this._placeGlyph(e,u,n,s,e.segment,1,f.vertical,m,v),h&&(u=this._placeGlyph(e,u,n,s,e.segment,-1,f.vertical,m,v)),u>=2)break}else v.push(new p(n,x,x,m,!1)),l&&h&&v.push(new p(n,x+a.RD,x+a.RD,m,!1));const S=f.x+g.left,C=f.y-17-g.top,F=S+g.width,U=C+g.height;let O,N,z,G,Z,H,K,W;if(!I&&D)if(f.vertical){const e=(S+F)/2-g.height/2,t=(C+U)/2+g.width/2;O=new r.E9(-t-4+E,e-4+R),N=new r.E9(O.x+d.width,O.y+d.height),z=new r.E9(O.x,N.y),G=new r.E9(N.x,O.y)}else O=new r.E9(4-C+E,S-4+R),N=new r.E9(O.x-d.height,O.y+d.width),z=new r.E9(N.x,O.y),G=new r.E9(O.x,N.y);else O=new r.E9(S-4+E,C-4+R),N=new r.E9(O.x+d.width,O.y+d.height),z=new r.E9(O.x,N.y),G=new r.E9(N.x,O.y);for(const t of v){let s,n,a,l;if(t.alternateVerticalGlyph){if(!Z){const e=(C+U)/2+R;Z=new r.E9((S+F)/2+E-g.height/2-4,e+g.width/2+4),H=new r.E9(Z.x+d.height,Z.y-d.width),K=new r.E9(H.x,Z.y),W=new r.E9(Z.x,H.y)}s=Z,n=K,a=W,l=H}else s=O,n=z,a=G,l=N;const h=C,u=U,y=t.glyphAngle+o;if(0!==y){const e=Math.cos(y),t=Math.sin(y);s=s.clone(),n=n?.clone(),a=a?.clone(),l=l?.clone(),s.rotate(e,t),l?.rotate(e,t),n?.rotate(e,t),a?.rotate(e,t)}let x=0,p=256;if(I&&D?f.vertical?t.alternateVerticalGlyph?(x=32,p=96):(x=224,p=32):(x=224,p=96):(x=192,p=64),b.push(new _(s,a,n,l,d,t.labelAngle,x,p,t.anchor,t.minzoom,t.maxzoom,t.page)),w&&(!L||this._legible(t.labelAngle)))if(M)S<T&&(T=S),h<k&&(k=h),F>P&&(P=F),u>V&&(V=u);else if(t.minzoom<2){const s={xTile:e.x,yTile:e.y,dxPixels:(S+E)*B-c,dyPixels:(h+E)*B-c,hard:!i.optional,partIndex:1,width:(F-S)*B+2*c,height:(u-h)*B+2*c,angle:y,minLod:t.minzoom,maxLod:t.maxzoom};w.push(s)}}}if(u>=2)return null;if(w&&M){let t,s,n,r;D?(t=-V+E,s=T+R,n=V-k,r=P-T):(t=T+E,s=k+R,n=P-T,r=V-k);const l={xTile:e.x,yTile:e.y,dxPixels:t*B-c,dyPixels:s*B-c,hard:!i.optional,partIndex:1,width:n*B+2*c,height:r*B+2*c,angle:o,minLod:y,maxLod:a.FM};w.push(l)}const v=new m(b);return w&&w.length>0&&(v.textColliders=w),v}_legible(e){const t=(0,a.Or)(e);return t<65||t>=193}_placeGlyph(e,t,s,i,n,o,l,h,c){let u=o;const f=u<0?(0,a.DQ)(e.angle+a.RD,a.yF):e.angle;let d=0;s<0&&(u*=-1,s*=-1,d=a.RD),u>0&&++n;let g=new r.E9(e.x,e.y),y=i[n],x=a.FM;if(i.length<=n)return x;for(;;){const e=y.x-g.x,r=y.y-g.y,o=Math.sqrt(e*e+r*r),_=Math.max(s/o,t),m=e/o,I=r/o,w=(0,a.DQ)(Math.atan2(I,m)+d,a.yF);if(c.push(new p(g,f,w,h,!1,_,x)),l&&c.push(new p(g,f,w,h,!0,_,x)),_<=t)return _;g=y.clone();do{if(n+=u,i.length<=n||n<0)return _;y=i[n]}while(g.isEqual(y));let b=y.x-g.x,M=y.y-g.y;const T=Math.sqrt(b*b+M*M);b*=o/T,M*=o/T,g.x-=b,g.y-=M,x=_}}}var w,b,M=s(45091),T=s(65390);(b=w||(w={}))[b.moveTo=1]="moveTo",b[b.lineTo=2]="lineTo",b[b.close=7]="close";class P{constructor(e,t){this.values={},this._geometry=void 0,this._pbfGeometry=null;const s=t.keys,i=t.values,n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:this.id=n.getUInt64();break;case 2:{const e=n.getMessage().asUnsafe(),t=this.values;for(;!e.empty();){const n=e.getUInt32(),r=e.getUInt32();t[s[n]]=i[r]}e.release();break}case 3:this.type=n.getUInt32();break;case 4:this._pbfGeometry=n.getMessage();break;default:n.skip()}}getGeometry(e){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const t=this._pbfGeometry.asUnsafe();let s,i;this._pbfGeometry=null,e?e.reset(this.type):s=[];let n,a=w.moveTo,o=0,l=0,h=0;for(;!t.empty();){if(0===o){const e=t.getUInt32();a=7&e,o=e>>3}switch(o--,a){case w.moveTo:l+=t.getSInt32(),h+=t.getSInt32(),e?e.moveTo(l,h):s&&(i&&s.push(i),i=[],i.push(new r.E9(l,h)));break;case w.lineTo:l+=t.getSInt32(),h+=t.getSInt32(),e?e.lineTo(l,h):i&&i.push(new r.E9(l,h));break;case w.close:e?e.close():i&&!i[0].equals(l,h)&&i.push(i[0].clone());break;default:throw t.release(),new Error("Invalid path operation")}}return e?n=e.result():s&&(i&&s.push(i),n=s),t.release(),this._geometry=n,n}}var k=s(26084);class V extends k.Z{constructor(){super(12)}add(e,t,s){const i=this.array;i.push(e),i.push(t),i.push(s)}}class L{constructor(e){this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=e.clone();const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:this.name=t.getString();break;case 3:this.keys.push(t.getString());break;case 4:this.values.push(t.processMessage(L._parseValue));break;case 5:this.extent=t.getUInt32();break;default:t.skip()}}getData(){return this._pbfLayer}static _parseValue(e){for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getInt64();case 5:return e.getUInt64();case 6:return e.getSInt64();case 7:return e.getBool();default:e.skip()}return null}}class B extends k.Z{constructor(e){super(e)}add(e,t,s,i,n,r,a,o,l,h,c,u){const f=this.array;let d=k.Z.i1616to32(e,t);f.push(d);const g=31;d=k.Z.i8888to32(Math.round(g*s),Math.round(g*i),Math.round(g*n),Math.round(g*r)),f.push(d),d=k.Z.i8888to32(Math.round(g*a),Math.round(g*o),Math.round(g*l),Math.round(g*h)),f.push(d),d=k.Z.i1616to32(c,0),f.push(d),u&&f.push(...u)}}class D extends k.Z{constructor(e){super(e)}add(e,t,s){const i=this.array;i.push(k.Z.i1616to32(e,t)),s&&i.push(...s)}}class A extends k.Z{constructor(e){super(e)}add(e,t,s,i,n,r,a){const o=this.array,l=this.index;let h=k.Z.i1616to32(e,t);return o.push(h),h=k.Z.i8888to32(Math.round(15*s),Math.round(15*i),n,r),o.push(h),a&&o.push(...a),l}}class E extends k.Z{constructor(e){super(e)}add(e,t,s,i,n,r,o,l,h,c,u,f){const d=this.array;let g=k.Z.i1616to32(e,t);d.push(g),g=k.Z.i1616to32(Math.round(8*s),Math.round(8*i)),d.push(g),g=k.Z.i8888to32(n/4,r/4,l,h),d.push(g),g=k.Z.i8888to32(0,(0,a.Or)(o),10*c,Math.min(10*u,255)),d.push(g),f&&d.push(...f)}}class R extends k.Z{constructor(e){super(e)}add(e,t,s,i,n){const r=this.array,a=k.Z.i1616to32(2*e+s,2*t+i);r.push(a),n&&r.push(...n)}}class v{constructor(e,t,s){this.layerExtent=4096,this._features=[],this.layer=e,this.zoom=t,this._spriteInfo=s,this._filter=e.getFeatureFilter()}pushFeature(e){this._filter&&!this._filter.filter(e,this.zoom)||this._features.push(e)}hasFeatures(){return this._features.length>0}getResources(e,t,s){}}class S extends v{constructor(e,t,s,i,r){super(e,t,s),this.type=n.al.CIRCLE,this._circleVertexBuffer=i,this._circleIndexBuffer=r}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(e){const t=this._circleVertexBuffer,s=this._circleIndexBuffer;this._circleIndexStart=3*s.index,this._circleIndexCount=0;const i=this.layer,n=this.zoom;e&&e.setExtent(this.layerExtent);for(const r of this._features){const a=r.getGeometry(e);if(!a)continue;const o=i.circleMaterial.encodeAttributes(r,n,i);for(const e of a)if(e)for(const i of e){const e=t.index;t.add(i.x,i.y,0,0,o),t.add(i.x,i.y,0,1,o),t.add(i.x,i.y,1,0,o),t.add(i.x,i.y,1,1,o),s.add(e,e+1,e+2),s.add(e+1,e+2,e+3),this._circleIndexCount+=6}}}serialize(){let e=6;e+=this.layerUIDs.length,e+=this._circleVertexBuffer.array.length,e+=this._circleIndexBuffer.array.length;const t=new Uint32Array(e),s=new Int32Array(t.buffer);let i=0;t[i++]=this.type,t[i++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[i++]=this.layerUIDs[e];t[i++]=this._circleIndexStart,t[i++]=this._circleIndexCount,t[i++]=this._circleVertexBuffer.array.length;for(let e=0;e<this._circleVertexBuffer.array.length;e++)s[i++]=this._circleVertexBuffer.array[e];t[i++]=this._circleIndexBuffer.array.length;for(let e=0;e<this._circleIndexBuffer.array.length;e++)t[i++]=this._circleIndexBuffer.array[e];return t.buffer}}var C=s(3894),F=s(95401);class U extends v{constructor(e,t,s,i,r,a,o){super(e,t,s),this.type=n.al.FILL,this._patternMap=new Map,this._fillVertexBuffer=i,this._fillIndexBuffer=r,this._outlineVertexBuffer=a,this._outlineIndexBuffer=o}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(e,t,s){const i=this.layer,n=this.zoom,r=i.getPaintProperty("fill-pattern");if(r)if(r.isDataDriven)for(const e of this._features)t(r.getValue(n,e),!0);else t(r.getValue(n),!0)}processFeatures(e){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const t=this.layer,s=this.zoom,{fillMaterial:i,outlineMaterial:n,hasDataDrivenFill:r,hasDataDrivenOutline:a}=t;e&&e.setExtent(this.layerExtent);const o=t.getPaintProperty("fill-pattern"),l=o?.isDataDriven;let h=!o&&t.getPaintValue("fill-antialias",s);if(t.outlineUsesFillColor){if(h&&!t.hasDataDrivenOpacity){const e=t.getPaintValue("fill-opacity",s),i=t.getPaintValue("fill-opacity",s+1);e<1&&i<1&&(h=!1)}if(h&&!t.hasDataDrivenColor){const e=t.getPaintValue("fill-color",s),i=t.getPaintValue("fill-color",s+1);e[3]<1&&i[3]<1&&(h=!1)}}const c=this._features,u=e?.validateTessellation;if(l){const r=[];for(const l of c){const c=o.getValue(s,l),f=this._spriteInfo[c];if(!f?.rect)continue;const d=i.encodeAttributes(l,s,t,f),g=h&&a?n.encodeAttributes(l,s,t):[],y=l.getGeometry(e);r.push({ddFillAttributes:d,ddOutlineAttributes:g,page:f.page,geometry:y}),r.sort(((e,t)=>e.page-t.page));for(const{ddFillAttributes:e,ddOutlineAttributes:s,page:i,geometry:n}of r)this._processFeature(n,h,t.outlineUsesFillColor,e,s,u,i)}}else for(const o of c){const l=r?i.encodeAttributes(o,s,t):null,c=h&&a?n.encodeAttributes(o,s,t):null,f=o.getGeometry(e);this._processFeature(f,h,t.outlineUsesFillColor,l,c,u)}}serialize(){let e=10;e+=this.layerUIDs.length,e+=this._fillVertexBuffer.array.length,e+=this._fillIndexBuffer.array.length,e+=this._outlineVertexBuffer.array.length,e+=this._outlineIndexBuffer.array.length,e+=3*this._patternMap.size+1;const t=new Uint32Array(e),s=new Int32Array(t.buffer);let i=0;t[i++]=this.type,t[i++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[i++]=this.layerUIDs[e];t[i++]=this._fillIndexStart,t[i++]=this._fillIndexCount,t[i++]=this._outlineIndexStart,t[i++]=this._outlineIndexCount;const n=this._patternMap,r=n.size;if(t[i++]=r,r>0)for(const[e,[s,r]]of n)t[i++]=e,t[i++]=s,t[i++]=r;t[i++]=this._fillVertexBuffer.array.length;for(let e=0;e<this._fillVertexBuffer.array.length;e++)s[i++]=this._fillVertexBuffer.array[e];t[i++]=this._fillIndexBuffer.array.length;for(let e=0;e<this._fillIndexBuffer.array.length;e++)t[i++]=this._fillIndexBuffer.array[e];t[i++]=this._outlineVertexBuffer.array.length;for(let e=0;e<this._outlineVertexBuffer.array.length;e++)s[i++]=this._outlineVertexBuffer.array[e];t[i++]=this._outlineIndexBuffer.array.length;for(let e=0;e<this._outlineIndexBuffer.array.length;e++)t[i++]=this._outlineIndexBuffer.array[e];return t.buffer}_processFeature(e,t,s,i,n,r,a){if(!e)return;const o=e.length,l=!n||0===n.length;if(t&&(!s||l))for(let t=0;t<o;t++)this._processOutline(e[t],n);let h;for(let t=0;t<o;t++){const s=U._area(e[t]);s>32?(void 0!==h&&this._processFill(e,h,i,r,a),h=[t]):s<-32&&void 0!==h&&h.push(t)}void 0!==h&&this._processFill(e,h,i,r,a)}_processOutline(e,t){const s=this._outlineVertexBuffer,i=this._outlineIndexBuffer,n=i.index;let a,o,l;const h=new r.E9(0,0),c=new r.E9(0,0),u=new r.E9(0,0);let f=-1,d=-1,g=-1,y=-1,x=-1,p=!1,_=e.length;if(_<2)return;const m=e[0];let I=e[_-1];for(;_&&I.isEqual(m);)--_,I=e[_-1];if(!(_-0<2)){for(let n=0;n<_;++n){0===n?(a=e[_-1],o=e[0],l=e[1],h.assignSub(o,a),h.normalize(),h.rightPerpendicular()):(a=o,o=l,l=n!==_-1?e[n+1]:e[0],h.assign(c));const r=this._isClipEdge(a,o);-1===y&&(p=r),c.assignSub(l,o),c.normalize(),c.rightPerpendicular();const m=h.x*c.y-h.y*c.x;u.assignAdd(h,c),u.normalize();const I=-u.x*-h.x+-u.y*-h.y;let w=Math.abs(0!==I?1/I:1);w>8&&(w=8),m>=0?(g=s.add(o.x,o.y,h.x,h.y,0,1,t),-1===y&&(y=g),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),d=s.add(o.x,o.y,w*-u.x,w*-u.y,0,-1,t),-1===x&&(x=d),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),f=d,d=g,g=s.add(o.x,o.y,u.x,u.y,0,1,t),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),d=s.add(o.x,o.y,c.x,c.y,0,1,t),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g)):(g=s.add(o.x,o.y,w*u.x,w*u.y,0,1,t),-1===y&&(y=g),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),d=s.add(o.x,o.y,-h.x,-h.y,0,-1,t),-1===x&&(x=d),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),f=d,d=g,g=s.add(o.x,o.y,-u.x,-u.y,0,-1,t),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),f=s.add(o.x,o.y,-c.x,-c.y,0,-1,t),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g))}f>=0&&d>=0&&y>=0&&!p&&i.add(f,d,y),f>=0&&y>=0&&x>=0&&!p&&i.add(f,x,y),this._outlineIndexCount+=3*(i.index-n)}}_processFill(e,t,s,i,n){let r;t.length>1&&(r=[]);let a=0;for(const s of t)0!==a&&r.push(a),a+=e[s].length;const o=2*a,l=C.Z.acquire();for(const s of t){const t=e[s],i=t.length;for(let e=0;e<i;++e)l.push(t[e].x,t[e].y)}const h=(0,F.e)(l,r,2);if(F.e.deviation(l,r,2,h)>0){const i=t.map((t=>e[t].length)),{buffer:r,vertexCount:a}=(0,T.b)(l,i);if(a>0){const e=this._fillVertexBuffer.index;for(let e=0;e<a;e++)this._fillVertexBuffer.add(r[2*e],r[2*e+1],s);for(let t=0;t<a;t+=3){const s=e+t;this._fillIndexBuffer.add(s,s+1,s+2)}if(void 0!==n){const e=this._patternMap,t=e.get(n);t?t[1]+=a:e.set(n,[this._fillIndexStart+this._fillIndexCount,a])}this._fillIndexCount+=a}}else{const e=h.length;if(e>0){const t=this._fillVertexBuffer.index;let i=0;for(;i<o;)this._fillVertexBuffer.add(l[i++],l[i++],s);let r=0;for(;r<e;)this._fillIndexBuffer.add(t+h[r++],t+h[r++],t+h[r++]);if(void 0!==n){const t=this._patternMap,s=t.get(n);s?s[1]+=e:t.set(n,[this._fillIndexStart+this._fillIndexCount,e])}this._fillIndexCount+=e}}C.Z.release(l)}_isClipEdge(e,t){return e.x===t.x?e.x<=-64||e.x>=4160:e.y===t.y&&(e.y<=-64||e.y>=4160)}static _area(e){let t=0;const s=e.length-1;for(let i=0;i<s;i++)t+=(e[i].x-e[i+1].x)*(e[i].y+e[i+1].y);return t+=(e[s].x-e[0].x)*(e[s].y+e[0].y),.5*t}}var O=s(67327);class N extends v{constructor(e,t,s,i,r){super(e,t,s),this.type=n.al.LINE,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=i,this.tessellationProperties._lineIndexBuffer=r,this._lineTessellator=new O.z(z(this.tessellationProperties),G(this.tessellationProperties),e.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(e,t,s){const i=this.layer,n=this.zoom,r=i.getPaintProperty("line-pattern"),a=i.getPaintProperty("line-dasharray"),o=i.getLayoutProperty("line-cap");if(!r&&!a)return;const l=o?.getValue(n)||0,h=o?.isDataDriven,c=r?.isDataDriven,u=a?.isDataDriven;if(c||u)for(const e of this._features)t(c?r.getValue(n,e):this._getDashArrayKey(e,n,i,a,h,o,l));else if(r)t(r.getValue(n));else if(a){const e=a.getValue(n);t(i.getDashKey(e,l))}}processFeatures(e){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const t=this.layer,s=this.zoom,i=this._features,n=this._tessellationOptions,{hasDataDrivenLine:r,lineMaterial:a}=t;e&&e.setExtent(this.layerExtent);const o=t.getPaintProperty("line-pattern"),l=t.getPaintProperty("line-dasharray"),h=o?.isDataDriven,c=l?.isDataDriven;let u;u=t.getLayoutProperty("line-cap");const f=u?.isDataDriven?u:null,d=f?null:t.getLayoutValue("line-cap",s),g=d||0,y=!!f;u=t.getLayoutProperty("line-join");const x=u?.isDataDriven?u:null,p=x?null:t.getLayoutValue("line-join",s);u=t.getLayoutProperty("line-miter-limit");const _=u?.isDataDriven?u:null,m=_?null:t.getLayoutValue("line-miter-limit",s);u=t.getLayoutProperty("line-round-limit");const I=u?.isDataDriven?u:null,w=I?null:t.getLayoutValue("line-round-limit",s);u=t.getPaintProperty("line-width");const b=u?.isDataDriven?u:null,M=b?null:t.getPaintValue("line-width",s);u=t.getPaintProperty("line-offset");const T=u?.isDataDriven?u:null,P=T?null:t.getPaintValue("line-offset",s);if(h||c){const r=[];for(const n of i){const i=h?o.getValue(s,n):this._getDashArrayKey(n,s,t,l,y,f,g),c=this._spriteInfo[i];if(!c?.rect)continue;const u=a.encodeAttributes(n,s,t,c),k=n.getGeometry(e);r.push({ddAttributes:u,page:c.page,cap:f?f.getValue(s,n):d,join:x?x.getValue(s,n):p,miterLimit:_?_.getValue(s,n):m,roundLimit:I?I.getValue(s,n):w,halfWidth:.5*(b?b.getValue(s,n):M),offset:T?T.getValue(s,n):P,geometry:k})}r.sort(((e,t)=>e.page-t.page)),n.textured=!0;for(const{ddAttributes:e,page:t,cap:s,join:i,miterLimit:a,roundLimit:o,halfWidth:l,offset:h,geometry:c}of r)n.capType=s,n.joinType=i,n.miterLimit=a,n.roundLimit=o,n.halfWidth=l,n.offset=h,this._processFeature(c,e,t)}else{if(o){const e=o.getValue(s),t=this._spriteInfo[e];if(!t?.rect)return}n.textured=!(!o&&!l),n.capType=d,n.joinType=p,n.miterLimit=m,n.roundLimit=w,n.halfWidth=.5*M,n.offset=P;for(const o of i){const i=r?a.encodeAttributes(o,s,t):null;f&&(n.capType=f.getValue(s,o)),x&&(n.joinType=x.getValue(s,o)),_&&(n.miterLimit=_.getValue(s,o)),I&&(n.roundLimit=I.getValue(s,o)),b&&(n.halfWidth=.5*b.getValue(s,o)),T&&(n.offset=T.getValue(s,o));const l=o.getGeometry(e);this._processFeature(l,i)}}}serialize(){let e=6;e+=this.layerUIDs.length,e+=this.tessellationProperties._lineVertexBuffer.array.length,e+=this.tessellationProperties._lineIndexBuffer.array.length,e+=3*this._patternMap.size+1;const t=new Uint32Array(e),s=new Int32Array(t.buffer);let i=0;t[i++]=this.type,t[i++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[i++]=this.layerUIDs[e];t[i++]=this._lineIndexStart,t[i++]=this._lineIndexCount;const n=this._patternMap,r=n.size;if(t[i++]=r,r>0)for(const[e,[s,r]]of n)t[i++]=e,t[i++]=s,t[i++]=r;t[i++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let e=0;e<this.tessellationProperties._lineVertexBuffer.array.length;e++)s[i++]=this.tessellationProperties._lineVertexBuffer.array[e];t[i++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let e=0;e<this.tessellationProperties._lineIndexBuffer.array.length;e++)t[i++]=this.tessellationProperties._lineIndexBuffer.array[e];return t.buffer}_processFeature(e,t,s){if(!e)return;const i=e.length;for(let n=0;n<i;n++)this._processGeometry(e[n],t,s)}_processGeometry(e,t,s){if(e.length<2)return;let i,n,r=e[0],a=1;for(;a<e.length;)i=e[a].x-r.x,n=e[a].y-r.y,i*i+n*n<1e-6?e.splice(a,1):(r=e[a],++a);if(e.length<2)return;const o=this.tessellationProperties._lineIndexBuffer,l=3*o.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=t,this._lineTessellator.tessellate(e,this._tessellationOptions);const h=3*o.index-l;if(void 0!==s){const e=this._patternMap,t=e.get(s);t?t[1]+=h:e.set(s,[l+this._lineIndexCount,h])}this._lineIndexCount+=h}_getDashArrayKey(e,t,s,i,n,r,a){const o=n?r.getValue(t,e):a,l=i.getValue(t,e);return s.getDashKey(l,o)}}const z=e=>(t,s,i,n,r,a,o,l,h,c,u)=>(e._lineVertexBuffer.add(t,s,o,l,i,n,r,a,h,c,u,e._ddValues),e._lineVertexBuffer.index-1),G=e=>(t,s,i)=>{e._lineIndexBuffer.add(t,s,i)};var Z,H=s(79087),K=s(70586),W=s(19153),j=s(7333);function q(e,t){return e.iconMosaicItem&&t.iconMosaicItem?e.iconMosaicItem.page===t.iconMosaicItem.page?0:e.iconMosaicItem.page-t.iconMosaicItem.page:e.iconMosaicItem&&!t.iconMosaicItem?1:!e.iconMosaicItem&&t.iconMosaicItem?-1:0}class Y extends v{constructor(e,t,s,i,r,a,o,l){super(e,t,l.getSpriteItems()),this.type=n.al.SYMBOL,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._iconVertexBuffer=s,this._iconIndexBuffer=i,this._textVertexBuffer=r,this._textIndexBuffer=a,this._placementEngine=o,this._workerTileHandler=l}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}getResources(e,t,s){const i=this.layer,n=this.zoom;e&&e.setExtent(this.layerExtent);const r=i.getLayoutProperty("icon-image"),a=i.getLayoutProperty("text-field");let o=i.getLayoutProperty("text-transform"),l=i.getLayoutProperty("text-font");const h=[];let c,u,f,d;r&&!r.isDataDriven&&(c=r.getValue(n)),a&&!a.isDataDriven&&(u=a.getValue(n)),o&&o.isDataDriven||(f=i.getLayoutValue("text-transform",n),o=null),l&&l.isDataDriven||(d=i.getLayoutValue("text-font",n),l=null);for(const y of this._features){const x=y.getGeometry(e);if(!x||0===x.length)continue;let p,_;r&&(p=r.isDataDriven?r.getValue(n,y):this._replaceKeys(c,y.values),p&&t(p));let m=!1;if(a&&(_=a.isDataDriven?a.getValue(n,y):this._replaceKeys(u,y.values),_)){switch(_=_.replaceAll("\\n","\n"),o&&(f=o.getValue(n,y)),f){case g._5.LOWERCASE:_=_.toLowerCase();break;case g._5.UPPERCASE:_=_.toUpperCase()}if(Y._bidiEngine.hasBidiChar(_)){let e;e="rtl"===Y._bidiEngine.checkContextual(_)?"IDNNN":"ICNNN",_=Y._bidiEngine.bidiTransform(_,e,"VLYSN"),m=!0}if(_.length>0){l&&(d=l.getValue(n,y));for(const e of d){let t=s[e];t||(t=s[e]=new Set);for(const e of _){const s=e.codePointAt(0);null!=s&&t.add(s)}}}}if(!p&&!_)continue;const I=i.getLayoutValue("symbol-sort-key",n,y),w={feature:y,sprite:p,label:_,rtl:m,geometry:x,hash:(_?(0,W.hP)(_):0)^(p?(0,W.hP)(p):0),priority:I,textFont:d};h.push(w)}this._symbolFeatures=h}processFeatures(e){e&&e.setExtent(this.layerExtent);const t=this.layer,s=this.zoom,i=t.getLayoutValue("symbol-placement",s),n=i!==g.R.POINT,o=8*t.getLayoutValue("symbol-spacing",s),l=t.getLayoutProperty("icon-image"),h=t.getLayoutProperty("text-field"),c=l?new j._L(t,s,n):null,u=h?new j.nj(t,s,n):null,y=this._workerTileHandler;let p;l&&(p=y.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const _=[];let m=1;u&&u.size&&(m=u.size/f);const I=u?u.maxAngle*a.nF:0,w=u?8*u.size:0;for(const e of this._symbolFeatures){let t,a;c&&p&&e.sprite&&(t=p[e.sprite],t&&t.sdf&&(this._isIconSDF=!0)),t&&c.update(s,e.feature);let l=0;const h=e.label;if(h){(0,K.O3)(u),u.update(s,e.feature);const t=n&&u.rotationAlignment===g.aF.MAP?u.keepUpright:u.writingMode&&u.writingMode.includes(g.r1.VERTICAL);let i=.5;switch(u.anchor){case g.nR.TOP_LEFT:case g.nR.LEFT:case g.nR.BOTTOM_LEFT:i=0;break;case g.nR.TOP_RIGHT:case g.nR.RIGHT:case g.nR.BOTTOM_RIGHT:i=1}let r=.5;switch(u.anchor){case g.nR.TOP_LEFT:case g.nR.TOP:case g.nR.TOP_RIGHT:r=0;break;case g.nR.BOTTOM_LEFT:case g.nR.BOTTOM:case g.nR.BOTTOM_RIGHT:r=1}let o=.5;switch(u.justify){case g.vL.AUTO:o=i;break;case g.vL.LEFT:o=0;break;case g.vL.RIGHT:o=1}const c=u.letterSpacing*f,x=n?0:u.maxWidth*f,p=u.lineHeight*f,_=e.textFont.map((e=>y.getGlyphItems(e)));if(a=new d(_,x,p,c,i,r,o).getShaping(h,e.rtl,t),a&&a.length>0){let e=1e30,t=-1e30;for(const s of a)e=Math.min(e,s.x),t=Math.max(t,s.x);l=(t-e+48)*m*8}}for(let s of e.geometry){const h=[];if(i===g.R.LINE){if(a?.length&&u?.size){const e=8*u.size*(2+Math.min(2,4*Math.abs(u.offset[1])));s=Y._smoothVertices(s,e)}Y._pushAnchors(h,s,o,l)}else i===g.R.LINE_CENTER?Y._pushCenterAnchor(h,s):e.feature.type===r.Vl.Polygon?Y._pushCentroid(h,s):h.push(new x(s[0].x,s[0].y));for(const i of h){if(i.x<0||i.x>4096||i.y<0||i.y>4096)continue;if(n&&l>0&&u?.rotationAlignment===g.aF.MAP&&!Y._honorsTextMaxAngle(s,i,l,I,w))continue;const r={shaping:a,line:s,iconMosaicItem:t,anchor:i,symbolFeature:e,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};_.push(r),this._processFeature(r,c,u)}}}_.sort(q),this._addPlacedGlyphs(),this._symbolInstances=_}serialize(){let e=11;e+=this.layerUIDs.length,e+=3*this.markerPageMap.size,e+=3*this.glyphsPageMap.size,e+=Y._symbolsSerializationLength(this._symbolInstances),e+=this._iconVertexBuffer.array.length,e+=this._iconIndexBuffer.array.length,e+=this._textVertexBuffer.array.length,e+=this._textIndexBuffer.array.length;const t=new Uint32Array(e),s=new Int32Array(t.buffer),i=new Float32Array(t.buffer);let n=0;t[n++]=this.type,t[n++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[n++]=this.layerUIDs[e];t[n++]=this._isIconSDF?1:0,t[n++]=this.markerPageMap.size;for(const[e,[s,i]]of this.markerPageMap)t[n++]=e,t[n++]=s,t[n++]=i;t[n++]=this.glyphsPageMap.size;for(const[e,[s,i]]of this.glyphsPageMap)t[n++]=e,t[n++]=s,t[n++]=i;t[n++]=this._iconVertexBuffer.index/4,t[n++]=this._textVertexBuffer.index/4,n=Y.serializeSymbols(t,s,i,n,this._symbolInstances),t[n++]=this._iconVertexBuffer.array.length;for(let e=0;e<this._iconVertexBuffer.array.length;e++)s[n++]=this._iconVertexBuffer.array[e];t[n++]=this._iconIndexBuffer.array.length;for(let e=0;e<this._iconIndexBuffer.array.length;e++)t[n++]=this._iconIndexBuffer.array[e];t[n++]=this._textVertexBuffer.array.length;for(let e=0;e<this._textVertexBuffer.array.length;e++)s[n++]=this._textVertexBuffer.array[e];t[n++]=this._textIndexBuffer.array.length;for(let e=0;e<this._textIndexBuffer.array.length;e++)t[n++]=this._textIndexBuffer.array[e];return t.buffer}static _symbolsSerializationLength(e){let t=0;t+=1;for(const s of e||[]){t+=4,t+=1;for(const e of s.textColliders)t+=10;for(const e of s.iconColliders)t+=10;t+=1,t+=2*s.textVertexRanges.length,t+=1,t+=2*s.iconVertexRanges.length}return t}static serializeSymbols(e,t,s,i,n){n=n||[],t[i++]=n.length;for(const e of n){t[i++]=e.anchor.x,t[i++]=e.anchor.y,t[i++]=e.symbolFeature.hash,t[i++]=e.symbolFeature.priority,t[i++]=e.textColliders.length+e.iconColliders.length;for(const n of e.textColliders)t[i++]=n.xTile,t[i++]=n.yTile,t[i++]=n.dxPixels,t[i++]=n.dyPixels,t[i++]=n.hard?1:0,t[i++]=n.partIndex,s[i++]=n.minLod,s[i++]=n.maxLod,t[i++]=n.width,t[i++]=n.height;for(const n of e.iconColliders)t[i++]=n.xTile,t[i++]=n.yTile,t[i++]=n.dxPixels,t[i++]=n.dyPixels,t[i++]=n.hard?1:0,t[i++]=n.partIndex,s[i++]=n.minLod,s[i++]=n.maxLod,t[i++]=n.width,t[i++]=n.height;t[i++]=e.textVertexRanges.length;for(const[s,n]of e.textVertexRanges)t[i++]=s,t[i++]=n;t[i++]=e.iconVertexRanges.length;for(const[s,n]of e.iconVertexRanges)t[i++]=s,t[i++]=n}return i}_replaceKeys(e,t){return e.replaceAll(/{([^{}]+)}/g,((e,s)=>s in t?t[s]:""))}_processFeature(e,t,s){const{line:i,iconMosaicItem:n,shaping:r,anchor:o}=e,l=this.zoom,h=this.layer,c=!!n;let u=!0;c&&(u=t?.optional||!n);const f=r&&r.length>0,d=!f||s?.optional;let y,x;if(c&&(y=this._placementEngine.getIconPlacement(o,n,t)),(y||u)&&(f&&(x=this._placementEngine.getTextPlacement(o,r,i,s)),x||d)){if(y&&x||(d||u?d||x?u||y||(x=null):y=null:(y=null,x=null)),x){const t=h.hasDataDrivenText?h.textMaterial.encodeAttributes(e.symbolFeature.feature,l,h):null;if(this._storePlacedGlyphs(e,x.shapes,l,s.rotationAlignment,t),x.textColliders){e.textColliders=x.textColliders;for(const e of x.textColliders){e.minLod=Math.max(l+(0,a.k3)(e.minLod),0),e.maxLod=Math.min(l+(0,a.k3)(e.maxLod),25);const t=e.angle;if(t){const s=Math.cos(t),i=Math.sin(t),n=e.dxPixels*s-e.dyPixels*i,r=e.dxPixels*i+e.dyPixels*s,a=(e.dxPixels+e.width)*s-e.dyPixels*i,o=(e.dxPixels+e.width)*i+e.dyPixels*s,l=e.dxPixels*s-(e.dyPixels+e.height)*i,h=e.dxPixels*i+(e.dyPixels+e.height)*s,c=(e.dxPixels+e.width)*s-(e.dyPixels+e.height)*i,u=(e.dxPixels+e.width)*i+(e.dyPixels+e.height)*s,f=Math.min(n,a,l,c),d=Math.max(n,a,l,c),g=Math.min(r,o,h,u),y=Math.max(r,o,h,u);e.dxPixels=f,e.dyPixels=g,e.width=d-f,e.height=y-g}}}}if(y){const s=h.hasDataDrivenIcon?h.iconMaterial.encodeAttributes(e.symbolFeature.feature,l,h):null;if(this._addPlacedIcons(e,y.shapes,l,n.page,t.rotationAlignment===g.aF.VIEWPORT,s),y.iconColliders){e.iconColliders=y.iconColliders;for(const e of y.iconColliders){e.minLod=Math.max(l+(0,a.k3)(e.minLod),0),e.maxLod=Math.min(l+(0,a.k3)(e.maxLod),25);const t=e.angle;if(t){const s=Math.cos(t),i=Math.sin(t),n=e.dxPixels*s-e.dyPixels*i,r=e.dxPixels*i+e.dyPixels*s,a=(e.dxPixels+e.width)*s-e.dyPixels*i,o=(e.dxPixels+e.width)*i+e.dyPixels*s,l=e.dxPixels*s-(e.dyPixels+e.height)*i,h=e.dxPixels*i+(e.dyPixels+e.height)*s,c=(e.dxPixels+e.width)*s-(e.dyPixels+e.height)*i,u=(e.dxPixels+e.width)*i+(e.dyPixels+e.height)*s,f=Math.min(n,a,l,c),d=Math.max(n,a,l,c),g=Math.min(r,o,h,u),y=Math.max(r,o,h,u);e.dxPixels=f,e.dyPixels=g,e.width=d-f,e.height=y-g}}}}}}_addPlacedIcons(e,t,s,i,n,r){const o=Math.max(s-1,0),l=this._iconVertexBuffer,h=this._iconIndexBuffer,c=this._markerMap;for(const u of t){const t=n?0:Math.max(s+(0,a.k3)(u.minzoom),o),f=n?25:Math.min(s+(0,a.k3)(u.maxzoom),25);if(f<=t)continue;const d=u.tl,g=u.tr,y=u.bl,x=u.br,p=u.mosaicRect,_=u.labelAngle,m=u.minAngle,I=u.maxAngle,w=u.anchor,b=l.index,M=p.x,T=p.y,P=M+p.width,k=T+p.height,V=l.index;l.add(w.x,w.y,d.x,d.y,M,T,_,m,I,t,f,r),l.add(w.x,w.y,g.x,g.y,P,T,_,m,I,t,f,r),l.add(w.x,w.y,y.x,y.y,M,k,_,m,I,t,f,r),l.add(w.x,w.y,x.x,x.y,P,k,_,m,I,t,f,r),e.iconVertexRanges.length>0&&e.iconVertexRanges[0][0]+e.iconVertexRanges[0][1]===V?e.iconVertexRanges[0][1]+=4:e.iconVertexRanges.push([V,4]),h.add(b,b+1,b+2),h.add(b+1,b+2,b+3),c.has(i)?c.get(i)[1]+=6:c.set(i,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const e=this._textVertexBuffer,t=this._textIndexBuffer,s=this._glyphMap;for(const[i,n]of this._glyphBufferDataStorage)for(const r of n){const n=e.index,a=r.symbolInstance,o=r.ddAttributes,l=e.index;e.add(r.glyphAnchor[0],r.glyphAnchor[1],r.tl[0],r.tl[1],r.xmin,r.ymin,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,o),e.add(r.glyphAnchor[0],r.glyphAnchor[1],r.tr[0],r.tr[1],r.xmax,r.ymin,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,o),e.add(r.glyphAnchor[0],r.glyphAnchor[1],r.bl[0],r.bl[1],r.xmin,r.ymax,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,o),e.add(r.glyphAnchor[0],r.glyphAnchor[1],r.br[0],r.br[1],r.xmax,r.ymax,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,o),a.textVertexRanges.length>0&&a.textVertexRanges[0][0]+a.textVertexRanges[0][1]===l?a.textVertexRanges[0][1]+=4:a.textVertexRanges.push([l,4]),t.add(n,n+1,n+2),t.add(n+1,n+2,n+3),s.has(i)?s.get(i)[1]+=6:s.set(i,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(e,t,s,i,n){const r=Math.max(s-1,0),o=i===g.aF.VIEWPORT;let l,h,c,u,f,d,y,x,p,_,m;for(const i of t)l=o?0:Math.max(s+(0,a.k3)(i.minzoom),r),h=o?25:Math.min(s+(0,a.k3)(i.maxzoom),25),h<=l||(c=i.tl,u=i.tr,f=i.bl,d=i.br,y=i.labelAngle,x=i.minAngle,p=i.maxAngle,_=i.anchor,m=i.mosaicRect,this._glyphBufferDataStorage.has(i.page)||this._glyphBufferDataStorage.set(i.page,[]),this._glyphBufferDataStorage.get(i.page).push({glyphAnchor:[_.x,_.y],tl:[c.x,c.y],tr:[u.x,u.y],bl:[f.x,f.y],br:[d.x,d.y],xmin:m.x,ymin:m.y,xmax:m.x+m.width,ymax:m.y+m.height,labelAngle:y,minAngle:x,maxAngle:p,minLod:l,maxLod:h,placementLod:r,symbolInstance:e,ddAttributes:n}))}static _pushAnchors(e,t,s,i){s+=i;let n=0;const o=t.length-1;for(let e=0;e<o;e++)n+=r.E9.distance(t[e],t[e+1]);let l=i||s;if(l*=.5,n<=l)return;const h=l/n;let c=0,u=-(s=n/Math.max(Math.round(n/s),1))/2;const f=t.length-1;for(let i=0;i<f;i++){const n=t[i],r=t[i+1],o=r.x-n.x,l=r.y-n.y,f=Math.sqrt(o*o+l*l);let d;for(;u+s<c+f;){u+=s;const t=(u-c)/f,g=(0,a.sX)(n.x,r.x,t),y=(0,a.sX)(n.y,r.y,t);void 0===d&&(d=Math.atan2(l,o)),e.push(new x(g,y,d,i,h))}c+=f}}static _pushCenterAnchor(e,t){let s=0;const i=t.length-1;for(let e=0;e<i;e++)s+=r.E9.distance(t[e],t[e+1]);const n=s/2;let o=0;const l=t.length-1;for(let s=0;s<l;s++){const i=t[s],r=t[s+1],l=r.x-i.x,h=r.y-i.y,c=Math.sqrt(l*l+h*h);if(n<o+c){const t=(n-o)/c,u=(0,a.sX)(i.x,r.x,t),f=(0,a.sX)(i.y,r.y,t),d=Math.atan2(h,l);return void e.push(new x(u,f,d,s,0))}o+=c}}static _deviation(e,t,s){const i=(t.x-e.x)*(s.x-t.x)+(t.y-e.y)*(s.y-t.y),n=(t.x-e.x)*(s.y-t.y)-(t.y-e.y)*(s.x-t.x);return Math.atan2(n,i)}static _honorsTextMaxAngle(e,t,s,i,n){let a=0;const o=s/2;let l=new r.E9(t.x,t.y),h=t.segment+1;for(;a>-o;){if(--h,h<0)return!1;a-=r.E9.distance(e[h],l),l=e[h]}a+=r.E9.distance(e[h],e[h+1]);const c=[];let u=0;const f=e.length;for(;a<o;){const t=e[h];let s,o=h;do{if(++o,o===f)return!1;s=e[o]}while(s.isEqual(t));let l,d=o;do{if(++d,d===f)return!1;l=e[d]}while(l.isEqual(s));const g=this._deviation(t,s,l);for(c.push({deviation:g,distToAnchor:a}),u+=g;a-c[0].distToAnchor>n;)u-=c.shift().deviation;if(Math.abs(u)>i)return!1;a+=r.E9.distance(s,l),h=o}return!0}static _smoothVertices(e,t){if(t<=0)return e;let s=e.length;if(s<3)return e;const i=[];let n=0,a=0;i.push(0);for(let t=1;t<s;t++){const s=r.E9.distance(e[t],e[t-1]);s>0&&(n+=s,i.push(n),a++,a!==t&&(e[a]=e[t]))}if(s=a+1,s<3)return e;t=Math.min(t,.2*n);const o=e[0].x,l=e[0].y,h=e[s-1].x,c=e[s-1].y,u=r.E9.sub(e[0],e[1]);u.normalize(),e[0].x+=t*u.x,e[0].y+=t*u.y,u.assignSub(e[s-1],e[s-2]),u.normalize(),e[s-1].x+=t*u.x,e[s-1].y+=t*u.y,i[0]-=t,i[s-1]+=t;const f=[];f.push(new r.E9(o,l));const d=1e-6,g=.5*t;for(let n=1;n<s-1;n++){let a=0,o=0,l=0;for(let s=n-1;s>=0;s--){const r=g+i[s+1]-i[n];if(r<0)break;const h=i[s+1]-i[s],c=i[n]-i[s]<g?1:r/h;if(c<d)break;const u=c*c,f=c*r-.5*u*h,y=c*h/t,x=e[s+1],p=e[s].x-x.x,_=e[s].y-x.y;a+=y/f*(x.x*c*r+.5*u*(r*p-h*x.x)-u*c*h*p/3),o+=y/f*(x.y*c*r+.5*u*(r*_-h*x.y)-u*c*h*_/3),l+=y}for(let r=n+1;r<s;r++){const s=g-i[r-1]+i[n];if(s<0)break;const h=i[r]-i[r-1],c=i[r]-i[n]<g?1:s/h;if(c<d)break;const u=c*c,f=c*s-.5*u*h,y=c*h/t,x=e[r-1],p=e[r].x-x.x,_=e[r].y-x.y;a+=y/f*(x.x*c*s+.5*u*(s*p-h*x.x)-u*c*h*p/3),o+=y/f*(x.y*c*s+.5*u*(s*_-h*x.y)-u*c*h*_/3),l+=y}f.push(new r.E9(a/l,o/l))}return f.push(new r.E9(h,c)),e[0].x=o,e[0].y=l,e[s-1].x=h,e[s-1].y=c,f}static _pushCentroid(e,t){const s=4096,i=4096,n=t.length-1;let r=0,a=0,o=0,l=t[0].x,h=t[0].y;l>s&&(l=s),l<0&&(l=0),h>i&&(h=i),h<0&&(h=0);for(let e=1;e<n;e++){let n=t[e].x,c=t[e].y,u=t[e+1].x,f=t[e+1].y;n>s&&(n=s),n<0&&(n=0),c>i&&(c=i),c<0&&(c=0),u>s&&(u=s),u<0&&(u=0),f>i&&(f=i),f<0&&(f=0);const d=(n-l)*(f-h)-(u-l)*(c-h);r+=d*(l+n+u),a+=d*(h+c+f),o+=d}r/=3*o,a/=3*o,isNaN(r)||isNaN(a)||e.push(new x(r,a))}}Y._bidiEngine=new H.Z,function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.NO_DATA=1]="NO_DATA",e[e.READY=2]="READY",e[e.MODIFIED=3]="MODIFIED",e[e.INVALID=4]="INVALID"}(Z||(Z={}));class X{constructor(e,t,s,i,n){if(this._pbfTiles={},this._tileClippers={},this._client=s,this._tile=t,n){this._styleLayerUIDs=new Set;for(const e of n)this._styleLayerUIDs.add(e)}this._styleRepository=i,this._layers=this._styleRepository?.layers??[];const[a,o,l]=t.tileKey.split("/").map(parseFloat);this._level=a;const h=8+Math.max(16*(this._level-14),0);for(const t of Object.keys(e)){const s=e[t];if(this._pbfTiles[t]=new M.Z(new Uint8Array(s.protobuff),new DataView(s.protobuff)),s.refKey){const[e]=s.refKey.split("/").map(parseFloat),i=a-e;if(i>0){const e=(1<<i)-1,s=o&e,n=l&e;this._tileClippers[t]=new r.bN(i,s,n,8,h)}}this._tileClippers[t]||(this._tileClippers[t]=new r.I6)}}_canParseStyleLayer(e){return!this._styleLayerUIDs||this._styleLayerUIDs.has(e)}async parse(e){const t=(0,T.j)(),s=this._initialize(e),{returnedBuckets:i}=s;this._processLayers(s),this._linkReferences(s),this._filterFeatures(s);const n=[],r=new Set,a=(e,t)=>{r.has(e)||(n.push({name:e,repeat:t}),r.add(e))},o={};for(const e of i)e.getResources(e.tileClipper,a,o);if(this._tile.status===Z.INVALID)return[];const l=this._fetchResources(n,o,e);return Promise.all([...l,t]).then((()=>this._processFeatures(s.returnedBuckets)))}_initialize(e){const t=e?.signal;return{signal:t,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(e){const{sourceNameToTileData:t,layers:s,zoom:i,sourceNameToTileClipper:n,sourceNameToUniqueSourceLayerBuckets:r,sourceNameToUniqueSourceLayers:a,returnedBuckets:o,layerIdToBucket:l,referencerUIDToReferencedId:h}=e;for(let e=s.length-1;e>=0;e--){const c=s[e];if(!this._canParseStyleLayer(c.uid)||c.minzoom&&i<Math.floor(c.minzoom)||c.maxzoom&&i>=c.maxzoom||c.type===g.fR.BACKGROUND)continue;if(!t[c.source]||!n[c.source])continue;const u=t[c.source],f=n[c.source],d=c.sourceLayer,y=u[d];if(y){let e=a[c.source];if(e||(e=a[c.source]=new Set),e.add(c.sourceLayer),c.refLayerId)h.set(c.uid,c.refLayerId);else{const e=this._createBucket(c);if(e){e.layerUIDs=[c.uid],e.layerExtent=y.extent,e.tileClipper=f;let t=r[c.source];t||(t=r[c.source]={});let s=t[d];s||(s=t[d]=[]),s.push(e),o.push(e),l[c.id]=e}}}}}_linkReferences(e){const{layerIdToBucket:t,referencerUIDToReferencedId:s}=e;s.forEach(((e,s)=>{t[e]&&t[e].layerUIDs.push(s)}))}_filterFeatures(e){const{signal:t,sourceNameToTileData:s,sourceNameToUniqueSourceLayerBuckets:n,sourceNameToUniqueSourceLayers:r}=e,a=10*this._level,o=10*(this._level+1),l=[],h=[];for(const e of Object.keys(r))r[e].forEach((t=>{l.push(t),h.push(e)}));for(let e=0;e<l.length;e++){const r=h[e],c=l[e];if(!s[r]||!n[r])continue;const u=s[r][c],f=n[r][c];if(!f||0===f.length)continue;if((0,i.Hc)(t))return;const d=u.getData();for(;d.nextTag(2);){const e=d.getMessage(),t=new P(e,u);e.release();const s=t.values;if(s){const e=s._minzoom;if(e&&e>=o)continue;const t=s._maxzoom;if(t&&t<=a)continue}for(const e of f)e.pushFeature(t)}}}_fetchResources(e,t,s){const i=[],n=this._tile.getWorkerTileHandler();let r,a;e.length>0&&(r=n.fetchSprites(e,this._client,s),i.push(r));for(const e in t){const r=t[e];r.size>0&&(a=n.fetchGlyphs(this._tile.tileKey,e,r,this._client,s),i.push(a))}return i}_processFeatures(e){const t=e.filter((e=>e.hasFeatures()||this._canParseStyleLayer(e.layer.uid)));for(const e of t)e.processFeatures(e.tileClipper);return t}_parseTileData(e){const t={};for(const s of Object.keys(e)){const i=e[s],n={};for(;i.next();)switch(i.tag()){case 3:{const e=i.getMessage(),t=new L(e);e.release(),n[t.name]=t;break}default:i.skip()}t[s]=n}return t}_createBucket(e){switch(e.type){case g.fR.BACKGROUND:return null;case g.fR.FILL:return this._createFillBucket(e);case g.fR.LINE:return this._createLineBucket(e);case g.fR.CIRCLE:return this._createCircleBucket(e);case g.fR.SYMBOL:return this._createSymbolBucket(e)}}_createFillBucket(e){return new U(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new D(e.fillMaterial.getStride()),new V,new A(e.outlineMaterial.getStride()),new V)}_createLineBucket(e){return new N(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new B(e.lineMaterial.getStride()),new V)}_createCircleBucket(e){return new S(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new R(e.circleMaterial.getStride()),new V)}_createSymbolBucket(e){const t=this._tile;return new Y(e,this._level,new E(e.iconMaterial.getStride()),new V,new E(e.textMaterial.getStride()),new V,t.placementEngine,t.getWorkerTileHandler())}}class J{constructor(e,t,s,i){this.status=Z.INITIALIZED,this.placementEngine=new I,this.tileKey=e,this.refKeys=t,this._workerTileHandler=s,this._styleRepository=i}release(){this.tileKey="",this.refKeys=null,this.status=Z.INITIALIZED,this._workerTileHandler=null}async parse(e,t){const s=t?.signal;if(null!=s){const e=()=>{s.removeEventListener("abort",e),this.status=Z.INVALID};s.addEventListener("abort",e)}let n;const r={bucketsWithData:[],emptyBuckets:null};try{n=await this._parse(e,t)}catch(e){if((0,i.D_)(e))throw e;return{result:r,transferList:[]}}this.status=Z.READY;const a=r.bucketsWithData,o=[];for(const e of n)if(e.hasFeatures()){const t=e.serialize();a.push(t)}else o.push(e.layer.uid);const l=[...a];let h=null;return o.length>0&&(h=Uint32Array.from(o),l.push(h.buffer)),r.emptyBuckets=h,{result:r,transferList:l}}setObsolete(){this.status=Z.INVALID}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(e,t){const s=e.sourceName2DataAndRefKey;return 0===Object.keys(s).length?[]:(this.status=Z.MODIFIED,new X(s,this,t.client,this._styleRepository,e.styleLayerUIDs).parse(t))}}var Q=s(51785);class ${constructor(){this._spriteInfo={},this._glyphInfo={}}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers??[]}async createTileAndParse(e,t){const{key:s}=e,n={};for(const t of Object.keys(e.sourceName2DataAndRefKey)){const s=e.sourceName2DataAndRefKey[t];n[t]=s.refKey}const r=new J(s,n,this,this._styleRepository);try{return await r.parse(e,t)}catch(e){if(r.setObsolete(),r.release(),!(0,i.D_)(e))throw e;return null}}updateStyle(e){if(!e||0===e.length||!this._styleRepository)return;const t=this._styleRepository;for(const s of e){const e=s.type,i=s.data;switch(e){case n.Fr.PAINTER_CHANGED:t.setPaintProperties(i.layer,i.paint);break;case n.Fr.LAYOUT_CHANGED:t.setLayoutProperties(i.layer,i.layout);break;case n.Fr.LAYER_REMOVED:t.deleteStyleLayer(i.layer);break;case n.Fr.LAYER_CHANGED:t.setStyleLayer(i.layer,i.index);break;case n.Fr.SPRITES_CHANGED:this._spriteInfo={}}}}setStyle(e){this._styleRepository=new Q.Z(e),this._spriteInfo={},this._glyphInfo={}}fetchSprites(e,t,s){const i=[],n=this._spriteInfo;for(const t of e)void 0===n[t.name]&&i.push(t);return 0===i.length?Promise.resolve():t.invoke("getSprites",i,{signal:s?.signal}).then((e=>{for(const t in e){const s=e[t];n[t]=s}}))}getSpriteItems(){return this._spriteInfo}fetchGlyphs(e,t,s,i,n){const r=[];let a=this._glyphInfo[t];return a?s.forEach((e=>{a[e]||r.push(e)})):(a=this._glyphInfo[t]=[],s.forEach((e=>r.push(e)))),0===r.length?Promise.resolve():i.invoke("getGlyphs",{tileID:e,font:t,codePoints:r},n).then((e=>{for(let t=0;t<e.length;t++)e[t]&&(a[t]=e[t])}))}getGlyphItems(e){return this._glyphInfo[e]}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5677,661,5234],{22303:(e,t,r)=>{r.d(t,{Z:()=>p});var n,i,o=r(35270),s=r(22021),a=r(75215);function l(e){return(0,s.uZ)((0,a.vU)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function c(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class h{static blendColors(e,t,r,n=new h){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),h.fromArray(r,t)}return h.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return h.fromArray((0,o.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new h){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),n=parseInt(e.substring(2,3),16),i=parseInt(e.substring(3,4),16),o=5===e.length?15:parseInt(e.substring(4),16);return h.fromArray([r+16*r,n+16*n,i+16*i,(o+16*o)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16),o=7===e.length?255:parseInt(e.substring(7),16);return h.fromArray([r,n,i,o/255],t)}default:return null}}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,o.St)(e)?(0,o.h$)(e):null;return r&&h.fromArray(r,t)||h.fromRgb(e,t)||h.fromHex(e,t)}static fromJSON(e){return null!=e?new h([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?h.fromString(e,this):Array.isArray(e)?h.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof h||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,o=`#${c(this.r,n)}${c(this.g,n)}${c(this.b,n)}${i?c(Math.round(255*this.a),n):""}`;return t?o.toUpperCase():o}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=h.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),n=l(this.b);return e===h.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}h.prototype.declaredClass="esri.Color",n=h||(h={}),(i=n.AlphaMode||(n.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const p=h},88669:(e,t,r)=>{function n(){return[0,0,0,0]}function i(e,t,r,n){return[e,t,r,n]}function o(e,t){return new Float64Array(e,t,4)}function s(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function l(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{a:()=>o,c:()=>n,f:()=>i});const h=s(),p=a(),d=l(),m=u(),y=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:y,UNIT_X:p,UNIT_Y:d,UNIT_Z:m,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,createView:o,fromArray:function(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:i,ones:s,unitW:c,unitX:a,unitY:l,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>i,VL:()=>s,h$:()=>o,rW:()=>u});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!n[e]||!!n[e.toLowerCase()]}function o(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...o(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const i=(e%360+360)%360/360,o=r<=.5?r*(t+1):r+t-r*t,s=2*r-o;return[Math.round(255*a(s,o,i+1/3)),Math.round(255*a(s,o,i)),Math.round(255*a(s,o,i-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,o=t?9===e.length:5===e.length;let s=Number("0x"+e.substr(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return o&&(l=s&n,s>>=r,a[3]=i*l/255),l=s&n,s>>=r,a[2]=i*l,l=s&n,s>>=r,a[1]=i*l,l=s&n,s>>=r,a[0]=i*l,a}},90578:(e,t,r)=>{r.d(t,{p:()=>l});var n=r(75215),i=r(7628);const o=Object.prototype.toString;function s(e){const t="__accessorMetadata__"in e?(0,n.se)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,n){(0,i.Oe)(e,t).cast=n}function l(...e){if(3!==e.length||"string"!=typeof e[1])return 1===e.length&&"[object Function]"===o.call(e[0])?s(e[0]):1===e.length&&"string"==typeof e[0]?function(e){return(t,r)=>{(0,i.Oe)(t,e).cast=t[r]}}(e[0]):void 0}},71715:(e,t,r)=>{r.d(t,{r:()=>i});var n=r(5600);function i(e,t,r){let i,o;return void 0===t||Array.isArray(t)?(o=e,r=t,i=[void 0]):(o=t,i=Array.isArray(e)?e:[e]),(e,t)=>{const s=e.constructor.prototype;i.forEach((i=>{const a=(0,n.CJ)(e,i,o);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=s[t],r&&(a.read.source=(a.read.source||[]).concat(r))}))}}},10661:(e,t,r)=>{r.d(t,{s:()=>i});var n=r(42100);class i extends n.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),i=r(6570),o=r(9361),s=r(65091),a=r(94139),l=r(38913),u=r(58901);r(82971),r(86973),r(33955);const c={base:o.Z,key:"type",typeMap:{extent:i.Z,multipoint:s.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},9361:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(43697),i=r(96674),o=r(5600),s=(r(75215),r(67676),r(80442),r(71715)),a=r(52011),l=r(82971);let u=class extends i.wq{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=l.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof l.Z)return e;if(null!=e){const r=new l.Z;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,n._)([(0,o.Cb)()],u.prototype,"type",void 0),(0,n._)([(0,o.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,n._)([(0,o.Cb)({readOnly:!0})],u.prototype,"extent",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasM",void 0),(0,n._)([(0,o.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasZ",void 0),(0,n._)([(0,o.Cb)({type:l.Z,json:{write:!0},value:l.Z.WGS84})],u.prototype,"spatialReference",void 0),(0,n._)([(0,s.r)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,n._)([(0,a.j)("esri.geometry.Geometry")],u);const c=u},94139:(e,t,r)=>{r.d(t,{Z:()=>v});var n,i=r(43697),o=r(92604),s=r(5600),a=r(90578),l=(r(67676),r(80442),r(71715)),u=r(52011),c=r(30556),h=r(75215),p=r(9361),d=r(82971),m=r(8744),y=r(40488);const f=[0,0];function g(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let b=n=class extends p.Z{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const r=e._get("spatialReference");t._set("spatialReference",Object.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,n,i){let s;if(Array.isArray(e))s=e,i=t,e=s[0],t=s[1],r=s[2],n=s[3];else if(e&&"object"==typeof e){if(s=e,e=null!=s.x?s.x:s.longitude,t=null!=s.y?s.y:s.latitude,r=s.z,n=s.m,(i=s.spatialReference)&&"esri.geometry.SpatialReference"!==i.declaredClass&&(i=new d.Z(i)),null!=s.longitude||null!=s.latitude)if(null==s.longitude)o.Z.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==s.latitude)o.Z.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!s.declaredClass&&i&&i.isWebMercator){const r=(0,y.hG)(s.longitude,s.latitude,f);e=r[0],t=r[1]}}else g(r)?(i=r,r=null):g(n)&&(i=n,n=null);const a={x:e,y:t};return null==a.x&&null!=a.y?o.Z.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&o.Z.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=i&&(a.spatialReference=i),null!=r&&(a.z=r),null!=n&&(a.m=n),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){const{spatialReference:e,x:t,y:r}=this;if(e){if(e.isWebMercator)return(0,y.R6)(t,r,f)[1];if(e.isGeographic)return r}return null}set latitude(e){const{spatialReference:t,x:r}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,y.hG)(r,e,f)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){const{x:e,y:t,spatialReference:r}=this;if(r){if(r.isWebMercator)return(0,y.R6)(e,t,f)[0];if(r.isGeographic)return e}return null}set longitude(e){const{y:t,spatialReference:r}=this;null!=e&&r&&(r.isWebMercator?this._set("x",(0,y.hG)(e,t,f)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new n;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return n.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:r,z:n,m:i,spatialReference:o}=this,{z:s,m:a}=e;let{x:l,y:u,spatialReference:c}=e;if(!o.equals(c))if(o.isWebMercator&&c.isWGS84)[l,u]=(0,y.hG)(l,u),c=o;else{if(!o.isWGS84||!c.isWebMercator)return!1;[l,u]=(0,y.R6)(l,u),c=o}return t===l&&r===u&&n===s&&i===a&&o.wkid===c.wkid}offset(e,t,r){return this.x+=e,this.y+=t,null!=r&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;const e=(0,m.C5)(this.spatialReference);if(!e)return this;let t=this.x;const[r,n]=e.valid,i=2*n;let o;return t>n?(o=Math.ceil(Math.abs(t-n)/i),t-=o*i):t<r&&(o=Math.ceil(Math.abs(t-r)/i),t+=o*i),this._set("x",t),this}distance(e){return function(e,t){const r=e.x-t.x,n=e.y-t.y,i=e.hasZ&&t.hasZ?e.z-t.z:0;return Math.sqrt(r*r+n*n+i*i)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,i._)([(0,s.Cb)({readOnly:!0})],b.prototype,"cache",null),(0,i._)([(0,s.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasM",null),(0,i._)([(0,s.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasZ",null),(0,i._)([(0,s.Cb)({type:Number})],b.prototype,"latitude",null),(0,i._)([(0,s.Cb)({type:Number})],b.prototype,"longitude",null),(0,i._)([(0,s.Cb)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.p)((e=>isNaN(e)?e:(0,h.q9)(e)))],b.prototype,"x",void 0),(0,i._)([(0,c.c)("x")],b.prototype,"writeX",null),(0,i._)([(0,l.r)("x")],b.prototype,"readX",null),(0,i._)([(0,s.Cb)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],b.prototype,"z",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],b.prototype,"m",void 0),b=n=(0,i._)([(0,u.j)("esri.geometry.Point")],b),b.prototype.toJSON.isDefaultToJSON=!0;const v=b},62155:(e,t,r)=>{var n;r.d(t,{R:()=>n}),function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.Z=2]="Z"}(n||(n={}))},33955:(e,t,r)=>{r.d(t,{Ji:()=>y,YX:()=>u,aW:()=>c,im:()=>m,l9:()=>p,oU:()=>d,q9:()=>g,wp:()=>h});var n=r(6570),i=r(9361),o=r(65091),s=r(94139),a=r(38913),l=r(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function p(e){return void 0!==e.paths}function d(e){return void 0!==e.rings}function m(e){return null==e?null:e instanceof i.Z?e:h(e)?s.Z.fromJSON(e):p(e)?l.Z.fromJSON(e):d(e)?a.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):u(e)?n.Z.fromJSON(e):null}function y(e){return e?h(e)?"esriGeometryPoint":p(e)?"esriGeometryPolyline":d(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const f={esriGeometryPoint:s.Z,esriGeometryPolyline:l.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:n.Z,esriGeometryMultipoint:o.Z};function g(e){return e&&f[e]||null}},86973:(e,t,r)=>{r.d(t,{M:()=>i,P:()=>o});var n=r(35454);const i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),o=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},40488:(e,t,r)=>{r.d(t,{$:()=>v,Q8:()=>y,R6:()=>b,Sx:()=>w,hG:()=>g,iV:()=>f,mZ:()=>h});var n=r(22974),i=r(82971),o=r(68441),s=r(8744);const a=57.29577951308232,l=.017453292519943;function u(e){return e*a}function c(e){return e*l}function h(e){return Math.PI/2-2*Math.atan(Math.exp(-e/o.sv.radius))}function p(e){return null!=e.wkid||null!=e.wkt}const d=[0,0];function m(e,t,r,n,i){const o=e,s=i;if(s.spatialReference=r,"x"in o&&"x"in s)[s.x,s.y]=t(o.x,o.y,d,n);else if("xmin"in o&&"xmin"in s)[s.xmin,s.ymin]=t(o.xmin,o.ymin,d,n),[s.xmax,s.ymax]=t(o.xmax,o.ymax,d,n);else if("paths"in o&&"paths"in s||"rings"in o&&"rings"in s){const e="paths"in o?o.paths:o.rings,r=[];let i;for(let o=0;o<e.length;o++){const s=e[o];i=[],r.push(i);for(let e=0;e<s.length;e++)i.push(t(s[e][0],s[e][1],[0,0],n)),s[e].length>2&&i[e].push(s[e][2]),s[e].length>3&&i[e].push(s[e][3])}"paths"in s?s.paths=r:s.rings=r}else if("points"in o&&"points"in s){const e=o.points,r=[];for(let i=0;i<e.length;i++)r[i]=t(e[i][0],e[i][1],[0,0],n),e[i].length>2&&r[i].push(e[i][2]),e[i].length>3&&r[i].push(e[i][3]);s.points=r}return i}function y(e,t){const r=e&&(p(e)?e:e.spatialReference),n=t&&(p(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!r||!n)&&(!!(0,s.fS)(n,r)||(0,s.sS)(n)&&(0,s.oR)(r)||(0,s.sS)(r)&&(0,s.oR)(n))}function f(e,t){if(null==e)return null;const r=e.spatialReference,o=t&&(p(t)?t:t.spatialReference);return y(r,o)?(0,s.fS)(r,o)?(0,n.d9)(e):(0,s.sS)(o)?m(e,g,i.Z.WebMercator,!1,(0,n.d9)(e)):(0,s.oR)(o)?m(e,b,i.Z.WGS84,!1,(0,n.d9)(e)):null:null}function g(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const n=c(t);return r[0]=c(e)*o.sv.radius,r[1]=o.sv.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),r}function b(e,t,r=[0,0],n=!1){const i=u(e/o.sv.radius);return r[0]=n?i:i-360*Math.floor((i+180)/360),r[1]=u(Math.PI/2-2*Math.atan(Math.exp(-t/o.sv.radius))),r}function v(e,t=!1,r=(0,n.d9)(e)){return m(e,g,i.Z.WebMercator,t,r)}function w(e,t=!1,r=(0,n.d9)(e)){return m(e,b,i.Z.WGS84,t,r)}},61576:(e,t,r)=>{r.r(t),r.d(t,{default:()=>f}),r(66577);var n=r(18571),i=r(5847),o=r(75993),s=r(55914),a=r(5154),l=r(73506),u=r(15612),c=r(80676),h=r(87521),p=r(72758),d=r(23808),m=r(6570),y=r(94139);class f{convertVectorFieldData(e){const t=i.Z.fromJSON(e.pixelBlock),r=(0,c.KC)(t,e.type);return Promise.resolve(null!=r?r.toJSON():null)}computeStatisticsHistograms(e){const t=i.Z.fromJSON(e.pixelBlock),r=(0,u.js)(t);return Promise.resolve(r)}async decode(e){const t=await(0,o.J)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=i.Z.fromJSON(e.pixelBlock),e.extent=e.extent?m.Z.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve(null!=t?t.toJSON():null)}async updateSymbolizer(e){this.symbolizer=p.Z.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===this.symbolizer?.rendererJSON.type&&(this.symbolizer.rendererJSON.histograms=e.histograms)}async updateRasterFunction(e){this.rasterFunction=(0,a.Ue)(e.rasterFunctionJSON)}async process(e){const t=this.rasterFunction.process({extent:m.Z.fromJSON(e.extent),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?i.Z.fromJSON(e):null)),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?y.Z.fromJSON(e):null)),primaryRasterIds:e.primaryRasterIds});return null!=t?t.toJSON():null}stretch(e){const t=this.symbolizer.simpleStretch(i.Z.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve(t?.toJSON())}estimateStatisticsHistograms(e){const t=(0,u.Hv)(i.Z.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,s.Vl)(i.Z.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel);return t&&t.forEach(((e,r)=>{t.set(r,e?.toJSON())})),Promise.resolve(t)}async mosaicAndTransform(e){const t=e.srcPixelBlocks.map((e=>e?new i.Z(e):null)),r=(0,s.us)(t,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});let n,o=r;return e.coefs&&(o=(0,s.Uk)(r,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation)),e.projectDirections&&e.gcsGrid&&(n=(0,s.Qh)(e.destDimension,e.gcsGrid),o=(0,c.xQ)(o,e.isUV?"vector-uv":"vector-magdir",n)),{pixelBlock:o?.toJSON(),localNorthDirections:n}}async createFlowMesh(e,t){const r={data:new Float32Array(e.flowData.buffer),mask:new Uint8Array(e.flowData.maskBuffer),width:e.flowData.width,height:e.flowData.height},{vertexData:n,indexData:i}=await(0,d.GE)(e.meshType,e.simulationSettings,r,t.signal);return{result:{vertexBuffer:n.buffer,indexBuffer:i.buffer},transferList:[n.buffer,i.buffer]}}async getProjectionOffsetGrid(e){const t=m.Z.fromJSON(e.projectedExtent),r=m.Z.fromJSON(e.srcBufferExtent);let i=null;e.datumTransformationSteps&&(i=new n.Z({steps:e.datumTransformationSteps})),(e.includeGCSGrid||(0,l.Mk)(t.spatialReference,r.spatialReference,i))&&await(0,l.zD)();const o=e.rasterTransform?(0,h.c)(e.rasterTransform):null;return(0,l.Qp)({...e,projectedExtent:t,srcBufferExtent:r,datumTransformation:i,rasterTransform:o})}}},98046:(e,t,r)=>{r.d(t,{Z:()=>d});var n,i=r(43697),o=r(22303),s=r(22974),a=r(5600),l=r(75215),u=r(36030),c=r(52011),h=r(899);let p=n=class extends h.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new n({fromColor:(0,s.d9)(this.fromColor),toColor:(0,s.d9)(this.toColor),algorithm:this.algorithm})}};(0,i._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],p.prototype,"algorithm",void 0),(0,i._)([(0,a.Cb)({type:o.Z,json:{type:[l.z8],write:!0}})],p.prototype,"fromColor",void 0),(0,i._)([(0,a.Cb)({type:o.Z,json:{type:[l.z8],write:!0}})],p.prototype,"toColor",void 0),(0,i._)([(0,a.Cb)({type:["algorithmic"]})],p.prototype,"type",void 0),p=n=(0,i._)([(0,c.j)("esri.rest.support.AlgorithmicColorRamp")],p);const d=p},899:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),i=r(96674),o=r(5600),s=(r(75215),r(67676),r(80442),r(52011));let a=class extends i.wq{constructor(e){super(e),this.type=null}};(0,n._)([(0,o.Cb)({readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,n._)([(0,s.j)("esri.rest.support.ColorRamp")],a);const l=a},1515:(e,t,r)=>{r.d(t,{Z:()=>h});var n,i=r(43697),o=r(22974),s=r(5600),a=(r(75215),r(52011)),l=r(98046),u=r(899);let c=n=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new n({colorRamps:(0,o.d9)(this.colorRamps)})}};(0,i._)([(0,s.Cb)({type:[l.Z],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,i._)([(0,s.Cb)({type:["multipart"]})],c.prototype,"type",void 0),c=n=(0,i._)([(0,a.j)("esri.rest.support.MultipartColorRamp")],c);const h=c},94593:(e,t,r)=>{r.d(t,{V:()=>s,i:()=>a});var n=r(98046),i=r(899),o=r(1515);const s={key:"type",base:i.Z,typeMap:{algorithmic:n.Z,multipart:o.Z}};function a(e){return e?.type?"algorithmic"===e.type?n.Z.fromJSON(e):"multipart"===e.type?o.Z.fromJSON(e):null:null}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1174,5935],{52138:(e,t,r)=>{r.d(t,{A:()=>f,a:()=>I,b:()=>c,c:()=>y,d:()=>h,e:()=>v,f:()=>b,g:()=>o,i:()=>l,k:()=>p,m:()=>u,s:()=>s,t:()=>a,w:()=>d,y:()=>_,z:()=>S});var i=r(65617),n=r(46851);function s(e,t,r,i,n,s,o,a,l,u,d,c,p,h,y,f,g){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e[4]=s,e[5]=o,e[6]=a,e[7]=l,e[8]=u,e[9]=d,e[10]=c,e[11]=p,e[12]=h,e[13]=y,e[14]=f,e[15]=g,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function a(e,t){if(e===t){const r=t[1],i=t[2],n=t[3],s=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=n,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){const r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],h=t[11],y=t[12],f=t[13],g=t[14],m=t[15],b=r*a-i*o,w=r*l-n*o,v=r*u-s*o,I=i*l-n*a,S=i*u-s*a,_=n*u-s*l,M=d*f-c*y,F=d*g-p*y,j=d*m-h*y,C=c*g-p*f,x=c*m-h*f,L=p*m-h*g;let R=b*L-w*x+v*C+I*j-S*F+_*M;return R?(R=1/R,e[0]=(a*L-l*x+u*C)*R,e[1]=(n*x-i*L-s*C)*R,e[2]=(f*_-g*S+m*I)*R,e[3]=(p*S-c*_-h*I)*R,e[4]=(l*j-o*L-u*F)*R,e[5]=(r*L-n*j+s*F)*R,e[6]=(g*v-y*_-m*w)*R,e[7]=(d*_-p*v+h*w)*R,e[8]=(o*x-a*j+u*M)*R,e[9]=(i*j-r*x-s*M)*R,e[10]=(y*S-f*v+m*b)*R,e[11]=(c*v-d*S-h*b)*R,e[12]=(a*F-o*C-l*M)*R,e[13]=(r*C-i*F+n*M)*R,e[14]=(f*w-y*I-g*b)*R,e[15]=(d*I-c*w+p*b)*R,e):null}function u(e,t,r){const i=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],u=t[6],d=t[7],c=t[8],p=t[9],h=t[10],y=t[11],f=t[12],g=t[13],m=t[14],b=t[15];let w=r[0],v=r[1],I=r[2],S=r[3];return e[0]=w*i+v*a+I*c+S*f,e[1]=w*n+v*l+I*p+S*g,e[2]=w*s+v*u+I*h+S*m,e[3]=w*o+v*d+I*y+S*b,w=r[4],v=r[5],I=r[6],S=r[7],e[4]=w*i+v*a+I*c+S*f,e[5]=w*n+v*l+I*p+S*g,e[6]=w*s+v*u+I*h+S*m,e[7]=w*o+v*d+I*y+S*b,w=r[8],v=r[9],I=r[10],S=r[11],e[8]=w*i+v*a+I*c+S*f,e[9]=w*n+v*l+I*p+S*g,e[10]=w*s+v*u+I*h+S*m,e[11]=w*o+v*d+I*y+S*b,w=r[12],v=r[13],I=r[14],S=r[15],e[12]=w*i+v*a+I*c+S*f,e[13]=w*n+v*l+I*p+S*g,e[14]=w*s+v*u+I*h+S*m,e[15]=w*o+v*d+I*y+S*b,e}function d(e,t,r){const i=r[0],n=r[1],s=r[2];if(t===e)e[12]=t[0]*i+t[4]*n+t[8]*s+t[12],e[13]=t[1]*i+t[5]*n+t[9]*s+t[13],e[14]=t[2]*i+t[6]*n+t[10]*s+t[14],e[15]=t[3]*i+t[7]*n+t[11]*s+t[15];else{const r=t[0],o=t[1],a=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7],h=t[8],y=t[9],f=t[10],g=t[11];e[0]=r,e[1]=o,e[2]=a,e[3]=l,e[4]=u,e[5]=d,e[6]=c,e[7]=p,e[8]=h,e[9]=y,e[10]=f,e[11]=g,e[12]=r*i+u*n+h*s+t[12],e[13]=o*i+d*n+y*s+t[13],e[14]=a*i+c*n+f*s+t[14],e[15]=l*i+p*n+g*s+t[15]}return e}function c(e,t,r){const i=r[0],n=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,r,i){let s,o,a,l,u,d,c,p,h,y,f,g,m,b,w,v,I,S,_,M,F,j,C,x,L=i[0],R=i[1],O=i[2],A=Math.sqrt(L*L+R*R+O*O);return A<(0,n.g)()?null:(A=1/A,L*=A,R*=A,O*=A,s=Math.sin(r),o=Math.cos(r),a=1-o,l=t[0],u=t[1],d=t[2],c=t[3],p=t[4],h=t[5],y=t[6],f=t[7],g=t[8],m=t[9],b=t[10],w=t[11],v=L*L*a+o,I=R*L*a+O*s,S=O*L*a-R*s,_=L*R*a-O*s,M=R*R*a+o,F=O*R*a+L*s,j=L*O*a+R*s,C=R*O*a-L*s,x=O*O*a+o,e[0]=l*v+p*I+g*S,e[1]=u*v+h*I+m*S,e[2]=d*v+y*I+b*S,e[3]=c*v+f*I+w*S,e[4]=l*_+p*M+g*F,e[5]=u*_+h*M+m*F,e[6]=d*_+y*M+b*F,e[7]=c*_+f*M+w*F,e[8]=l*j+p*C+g*x,e[9]=u*j+h*C+m*x,e[10]=d*j+y*C+b*x,e[11]=c*j+f*C+w*x,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function h(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function y(e,t,r){if(0===t)return o(e);let i,s,a,l=r[0],u=r[1],d=r[2],c=Math.sqrt(l*l+u*u+d*d);return c<(0,n.g)()?null:(c=1/c,l*=c,u*=c,d*=c,i=Math.sin(t),s=Math.cos(t),a=1-s,e[0]=l*l*a+s,e[1]=u*l*a+d*i,e[2]=d*l*a-u*i,e[3]=0,e[4]=l*u*a-d*i,e[5]=u*u*a+s,e[6]=d*u*a+l*i,e[7]=0,e[8]=l*d*a+u*i,e[9]=u*d*a-l*i,e[10]=d*d*a+s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function f(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t,r){const i=t[0],n=t[1],s=t[2],o=t[3],a=i+i,l=n+n,u=s+s,d=i*a,c=i*l,p=i*u,h=n*l,y=n*u,f=s*u,g=o*a,m=o*l,b=o*u;return e[0]=1-(h+f),e[1]=c+b,e[2]=p-m,e[3]=0,e[4]=c-b,e[5]=1-(d+f),e[6]=y+g,e[7]=0,e[8]=p+m,e[9]=y-g,e[10]=1-(d+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const m=(0,i.c)();function b(e,t,r,i){const n=t[0],s=t[1],o=t[2],a=t[3],l=n+n,u=s+s,d=o+o,c=n*l,p=n*u,h=n*d,y=s*u,f=s*d,g=o*d,m=a*l,b=a*u,w=a*d,v=i[0],I=i[1],S=i[2];return e[0]=(1-(y+g))*v,e[1]=(p+w)*v,e[2]=(h-b)*v,e[3]=0,e[4]=(p-w)*I,e[5]=(1-(c+g))*I,e[6]=(f+m)*I,e[7]=0,e[8]=(h+b)*S,e[9]=(f-m)*S,e[10]=(1-(c+y))*S,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function w(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function v(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function I(e,t){if(e===t)return!0;const r=e[0],i=e[1],s=e[2],o=e[3],a=e[4],l=e[5],u=e[6],d=e[7],c=e[8],p=e[9],h=e[10],y=e[11],f=e[12],g=e[13],m=e[14],b=e[15],w=t[0],v=t[1],I=t[2],S=t[3],_=t[4],M=t[5],F=t[6],j=t[7],C=t[8],x=t[9],L=t[10],R=t[11],O=t[12],A=t[13],P=t[14],Z=t[15],q=(0,n.g)();return Math.abs(r-w)<=q*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-v)<=q*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(s-I)<=q*Math.max(1,Math.abs(s),Math.abs(I))&&Math.abs(o-S)<=q*Math.max(1,Math.abs(o),Math.abs(S))&&Math.abs(a-_)<=q*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(l-M)<=q*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-F)<=q*Math.max(1,Math.abs(u),Math.abs(F))&&Math.abs(d-j)<=q*Math.max(1,Math.abs(d),Math.abs(j))&&Math.abs(c-C)<=q*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(p-x)<=q*Math.max(1,Math.abs(p),Math.abs(x))&&Math.abs(h-L)<=q*Math.max(1,Math.abs(h),Math.abs(L))&&Math.abs(y-R)<=q*Math.max(1,Math.abs(y),Math.abs(R))&&Math.abs(f-O)<=q*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(g-A)<=q*Math.max(1,Math.abs(g),Math.abs(A))&&Math.abs(m-P)<=q*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(b-Z)<=q*Math.max(1,Math.abs(b),Math.abs(Z))}function S(e){const t=(0,n.g)(),r=e[0],i=e[1],s=e[2],o=e[4],a=e[5],l=e[6],u=e[8],d=e[9],c=e[10];return Math.abs(1-(r*r+o*o+u*u))<=t&&Math.abs(1-(i*i+a*a+d*d))<=t&&Math.abs(1-(s*s+l*l+c*c))<=t}function _(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const M=u,F=w;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],h=t[11],y=t[12],f=t[13],g=t[14],m=t[15];return e[0]=a*(p*m-h*g)-c*(l*m-u*g)+f*(l*h-u*p),e[1]=-(i*(p*m-h*g)-c*(n*m-s*g)+f*(n*h-s*p)),e[2]=i*(l*m-u*g)-a*(n*m-s*g)+f*(n*u-s*l),e[3]=-(i*(l*h-u*p)-a*(n*h-s*p)+c*(n*u-s*l)),e[4]=-(o*(p*m-h*g)-d*(l*m-u*g)+y*(l*h-u*p)),e[5]=r*(p*m-h*g)-d*(n*m-s*g)+y*(n*h-s*p),e[6]=-(r*(l*m-u*g)-o*(n*m-s*g)+y*(n*u-s*l)),e[7]=r*(l*h-u*p)-o*(n*h-s*p)+d*(n*u-s*l),e[8]=o*(c*m-h*f)-d*(a*m-u*f)+y*(a*h-u*c),e[9]=-(r*(c*m-h*f)-d*(i*m-s*f)+y*(i*h-s*c)),e[10]=r*(a*m-u*f)-o*(i*m-s*f)+y*(i*u-s*a),e[11]=-(r*(a*h-u*c)-o*(i*h-s*c)+d*(i*u-s*a)),e[12]=-(o*(c*g-p*f)-d*(a*g-l*f)+y*(a*p-l*c)),e[13]=r*(c*g-p*f)-d*(i*g-n*f)+y*(i*p-n*c),e[14]=-(r*(a*g-l*f)-o*(i*g-n*f)+y*(i*l-n*a)),e[15]=r*(a*p-l*c)-o*(i*p-n*c)+d*(i*l-n*a),e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},determinant:function(e){const t=e[0],r=e[1],i=e[2],n=e[3],s=e[4],o=e[5],a=e[6],l=e[7],u=e[8],d=e[9],c=e[10],p=e[11],h=e[12],y=e[13],f=e[14],g=e[15];return(t*o-r*s)*(c*g-p*f)-(t*a-i*s)*(d*g-p*y)+(t*l-n*s)*(d*f-c*y)+(r*a-i*o)*(u*g-p*h)-(r*l-n*o)*(u*f-c*h)+(i*l-n*a)*(u*y-d*h)},equals:I,exactEquals:v,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],i=t[1],n=t[2],s=t[3],o=r+r,a=i+i,l=n+n,u=r*o,d=i*o,c=i*a,p=n*o,h=n*a,y=n*l,f=s*o,g=s*a,m=s*l;return e[0]=1-c-y,e[1]=d+m,e[2]=p-g,e[3]=0,e[4]=d-m,e[5]=1-u-y,e[6]=h+f,e[7]=0,e[8]=p+g,e[9]=h-f,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=m,i=-t[0],n=-t[1],s=-t[2],o=t[3],a=t[4],l=t[5],u=t[6],d=t[7],c=i*i+n*n+s*s+o*o;return c>0?(r[0]=2*(a*o+d*i+l*s-u*n)/c,r[1]=2*(l*o+d*n+u*i-a*s)/c,r[2]=2*(u*o+d*s+a*n-l*i)/c):(r[0]=2*(a*o+d*i+l*s-u*n),r[1]=2*(l*o+d*n+u*i-a*s),r[2]=2*(u*o+d*s+a*n-l*i)),g(e,t,r),e},fromRotation:y,fromRotationTranslation:g,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(e,t,r,i,n){const s=t[0],o=t[1],a=t[2],l=t[3],u=s+s,d=o+o,c=a+a,p=s*u,h=s*d,y=s*c,f=o*d,g=o*c,m=a*c,b=l*u,w=l*d,v=l*c,I=i[0],S=i[1],_=i[2],M=n[0],F=n[1],j=n[2],C=(1-(f+m))*I,x=(h+v)*I,L=(y-w)*I,R=(h-v)*S,O=(1-(p+m))*S,A=(g+b)*S,P=(y+w)*_,Z=(g-b)*_,q=(1-(p+f))*_;return e[0]=C,e[1]=x,e[2]=L,e[3]=0,e[4]=R,e[5]=O,e[6]=A,e[7]=0,e[8]=P,e[9]=Z,e[10]=q,e[11]=0,e[12]=r[0]+M-(C*M+R*F+P*j),e[13]=r[1]+F-(x*M+O*F+Z*j),e[14]=r[2]+j-(L*M+A*F+q*j),e[15]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:h,fromXRotation:f,fromYRotation:function(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,i,n,s,o){const a=1/(r-t),l=1/(n-i),u=1/(s-o);return e[0]=2*s*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*l,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(n+i)*l,e[10]=(o+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*s*2*u,e[15]=0,e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let i=0;return r>0?(i=2*Math.sqrt(r+1),e[3]=.25*i,e[0]=(t[6]-t[9])/i,e[1]=(t[8]-t[2])/i,e[2]=(t[1]-t[4])/i):t[0]>t[5]&&t[0]>t[10]?(i=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/i,e[0]=.25*i,e[1]=(t[1]+t[4])/i,e[2]=(t[8]+t[2])/i):t[5]>t[10]?(i=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/i,e[0]=(t[1]+t[4])/i,e[1]=.25*i,e[2]=(t[6]+t[9])/i):(i=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/i,e[0]=(t[8]+t[2])/i,e[1]=(t[6]+t[9])/i,e[2]=.25*i),e},getScaling:function(e,t){const r=t[0],i=t[1],n=t[2],s=t[4],o=t[5],a=t[6],l=t[8],u=t[9],d=t[10];return e[0]=Math.sqrt(r*r+i*i+n*n),e[1]=Math.sqrt(s*s+o*o+a*a),e[2]=Math.sqrt(l*l+u*u+d*d),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},hasIdentityRotation:_,identity:o,invert:l,invertOrIdentity:function(e,t){return l(e,t)||o(e),e},isOrthoNormal:S,lookAt:function(e,t,r,i){const s=t[0],a=t[1],l=t[2];let u=s-r[0],d=a-r[1],c=l-r[2];const p=(0,n.g)();if(Math.abs(u)<p&&Math.abs(d)<p&&Math.abs(c)<p)return void o(e);let h=1/Math.sqrt(u*u+d*d+c*c);u*=h,d*=h,c*=h;const y=i[0],f=i[1],g=i[2];let m=f*c-g*d,b=g*u-y*c,w=y*d-f*u;h=Math.sqrt(m*m+b*b+w*w),h?(h=1/h,m*=h,b*=h,w*=h):(m=0,b=0,w=0);let v=d*w-c*b,I=c*m-u*w,S=u*b-d*m;h=Math.sqrt(v*v+I*I+S*S),h?(h=1/h,v*=h,I*=h,S*=h):(v=0,I=0,S=0),e[0]=m,e[1]=v,e[2]=u,e[3]=0,e[4]=b,e[5]=I,e[6]=d,e[7]=0,e[8]=w,e[9]=S,e[10]=c,e[11]=0,e[12]=-(m*s+b*a+w*l),e[13]=-(v*s+I*a+S*l),e[14]=-(u*s+d*a+c*l),e[15]=1},mul:M,multiply:u,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e},ortho:function(e,t,r,i,n,s,o){const a=1/(t-r),l=1/(i-n),u=1/(s-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(n+i)*l,e[14]=(o+s)*u,e[15]=1,e},perspective:function(e,t,r,i,n){const s=1/Math.tan(t/2);let o;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=n&&n!==1/0?(o=1/(i-n),e[10]=(n+i)*o,e[14]=2*n*i*o):(e[10]=-1,e[14]=-2*i),e},perspectiveFromFieldOfView:function(e,t,r,i){const n=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+a),u=2/(n+s);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(o-a)*l*.5,e[9]=(n-s)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e},rotate:p,rotateX:function(e,t,r){const i=Math.sin(r),n=Math.cos(r),s=t[4],o=t[5],a=t[6],l=t[7],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*n+u*i,e[5]=o*n+d*i,e[6]=a*n+c*i,e[7]=l*n+p*i,e[8]=u*n-s*i,e[9]=d*n-o*i,e[10]=c*n-a*i,e[11]=p*n-l*i,e},rotateY:function(e,t,r){const i=Math.sin(r),n=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*n-u*i,e[1]=o*n-d*i,e[2]=a*n-c*i,e[3]=l*n-p*i,e[8]=s*i+u*n,e[9]=o*i+d*n,e[10]=a*i+c*n,e[11]=l*i+p*n,e},rotateZ:function(e,t,r){const i=Math.sin(r),n=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*n+u*i,e[1]=o*n+d*i,e[2]=a*n+c*i,e[3]=l*n+p*i,e[4]=u*n-s*i,e[5]=d*n-o*i,e[6]=c*n-a*i,e[7]=p*n-l*i,e},scale:c,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:F,subtract:w,targetTo:function(e,t,r,i){const n=t[0],s=t[1],o=t[2],a=i[0],l=i[1],u=i[2];let d=n-r[0],c=s-r[1],p=o-r[2],h=d*d+c*c+p*p;h>0&&(h=1/Math.sqrt(h),d*=h,c*=h,p*=h);let y=l*p-u*c,f=u*d-a*p,g=a*c-l*d;return h=y*y+f*f+g*g,h>0&&(h=1/Math.sqrt(h),y*=h,f*=h,g*=h),e[0]=y,e[1]=f,e[2]=g,e[3]=0,e[4]=c*g-p*f,e[5]=p*y-d*g,e[6]=d*f-c*y,e[7]=0,e[8]=d,e[9]=c,e[10]=p,e[11]=0,e[12]=n,e[13]=s,e[14]=o,e[15]=1,e},translate:d,transpose:a},Symbol.toStringTag,{value:"Module"}))},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>n,VL:()=>o,h$:()=>s,rW:()=>u});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function o(e){return[...s(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,i=1){const n=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,o=2*r-s;return[Math.round(255*a(o,s,n+1/3)),Math.round(255*a(o,s,n)),Math.round(255*a(o,s,n-1/3)),i]}function u(e){const t=e.length>5,r=t?8:4,i=(1<<r)-1,n=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.substr(1));if(isNaN(o))return null;const a=[0,0,0,1];let l;return s&&(l=o&i,o>>=r,a[3]=n*l/255),l=o&i,o>>=r,a[2]=n*l,l=o&i,o>>=r,a[1]=n*l,l=o&i,o>>=r,a[0]=n*l,a}},44543:(e,t,r)=>{r.d(t,{F:()=>f,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 a(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 l(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 d(e,t,r,i,n,s,o){return u(t&r|~t&i,e,t,n,s,o)}function c(e,t,r,i,n,s,o){return u(t&i|r&~i,e,t,n,s,o)}function p(e,t,r,i,n,s,o){return u(t^r^i,e,t,n,s,o)}function h(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 a=r,l=i,u=n,y=s;r=d(r,i,n,s,e[t],7,-680876936),s=d(s,r,i,n,e[t+1],12,-389564586),n=d(n,s,r,i,e[t+2],17,606105819),i=d(i,n,s,r,e[t+3],22,-1044525330),r=d(r,i,n,s,e[t+4],7,-176418897),s=d(s,r,i,n,e[t+5],12,1200080426),n=d(n,s,r,i,e[t+6],17,-1473231341),i=d(i,n,s,r,e[t+7],22,-45705983),r=d(r,i,n,s,e[t+8],7,1770035416),s=d(s,r,i,n,e[t+9],12,-1958414417),n=d(n,s,r,i,e[t+10],17,-42063),i=d(i,n,s,r,e[t+11],22,-1990404162),r=d(r,i,n,s,e[t+12],7,1804603682),s=d(s,r,i,n,e[t+13],12,-40341101),n=d(n,s,r,i,e[t+14],17,-1502002290),i=d(i,n,s,r,e[t+15],22,1236535329),r=c(r,i,n,s,e[t+1],5,-165796510),s=c(s,r,i,n,e[t+6],9,-1069501632),n=c(n,s,r,i,e[t+11],14,643717713),i=c(i,n,s,r,e[t],20,-373897302),r=c(r,i,n,s,e[t+5],5,-701558691),s=c(s,r,i,n,e[t+10],9,38016083),n=c(n,s,r,i,e[t+15],14,-660478335),i=c(i,n,s,r,e[t+4],20,-405537848),r=c(r,i,n,s,e[t+9],5,568446438),s=c(s,r,i,n,e[t+14],9,-1019803690),n=c(n,s,r,i,e[t+3],14,-187363961),i=c(i,n,s,r,e[t+8],20,1163531501),r=c(r,i,n,s,e[t+13],5,-1444681467),s=c(s,r,i,n,e[t+2],9,-51403784),n=c(n,s,r,i,e[t+7],14,1735328473),i=c(i,n,s,r,e[t+12],20,-1926607734),r=p(r,i,n,s,e[t+5],4,-378558),s=p(s,r,i,n,e[t+8],11,-2022574463),n=p(n,s,r,i,e[t+11],16,1839030562),i=p(i,n,s,r,e[t+14],23,-35309556),r=p(r,i,n,s,e[t+1],4,-1530992060),s=p(s,r,i,n,e[t+4],11,1272893353),n=p(n,s,r,i,e[t+7],16,-155497632),i=p(i,n,s,r,e[t+10],23,-1094730640),r=p(r,i,n,s,e[t+13],4,681279174),s=p(s,r,i,n,e[t],11,-358537222),n=p(n,s,r,i,e[t+3],16,-722521979),i=p(i,n,s,r,e[t+6],23,76029189),r=p(r,i,n,s,e[t+9],4,-640364487),s=p(s,r,i,n,e[t+12],11,-421815835),n=p(n,s,r,i,e[t+15],16,530742520),i=p(i,n,s,r,e[t+2],23,-995338651),r=h(r,i,n,s,e[t],6,-198630844),s=h(s,r,i,n,e[t+7],10,1126891415),n=h(n,s,r,i,e[t+14],15,-1416354905),i=h(i,n,s,r,e[t+5],21,-57434055),r=h(r,i,n,s,e[t+12],6,1700485571),s=h(s,r,i,n,e[t+3],10,-1894986606),n=h(n,s,r,i,e[t+10],15,-1051523),i=h(i,n,s,r,e[t+1],21,-2054922799),r=h(r,i,n,s,e[t+8],6,1873313359),s=h(s,r,i,n,e[t+15],10,-30611744),n=h(n,s,r,i,e[t+6],15,-1560198380),i=h(i,n,s,r,e[t+13],21,1309151649),r=h(r,i,n,s,e[t+4],6,-145523070),s=h(s,r,i,n,e[t+11],10,-1120210379),n=h(n,s,r,i,e[t+2],15,718787259),i=h(i,n,s,r,e[t+9],21,-343485551),r=o(r,a),i=o(i,l),n=o(n,u),s=o(s,y)}return[r,i,n,s]}function f(e,t=i.Hex){const r=t||i.Base64,s=y(a(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 l(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)}}},28576:(e,t,r)=>{r.d(t,{B:()=>h});var i=r(20102),n=r(44543),s=r(81153),o=r(17452),a=r(41123),l=r(7628),u=r(31263),d=r(5600),c=r(66094),p=r(25929);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const n=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.Oe)(t,r);return{type:String,read:(e,t,r)=>{const n=(0,p.r)(e,t,r);return i.type===String?n:"function"==typeof i.type?new i.type({url:n}):void 0},write:{writer(t,n,a,l){if(!l?.resources)return"string"==typeof t?void(n[a]=(0,p.t)(t,l)):void(n[a]=t.write({},l));const d=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,p.t)(d,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},p.M.NO),m=i.type!==String&&(!(0,s.l)(this)||l?.origin&&this.originIdOf(r)>(0,u.M9)(l.origin)),b={object:this,propertyName:r,value:t,targetUrl:h,dest:n,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,o.YP)(h)?m&&e?.contentAddressed?y(b):m?function(e){const{context:t,targetUrl:r,params:i,value:n,dest:s,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=g(n,r,t),d=(0,c.B)(u),p=(0,o.Ml)(l.path),h=i?.compress??!1;d===p?(t.resources&&f({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),s[a]=r):y(e)}(b):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(b):l?.portalItem&&(null==h||null!=(0,p.i)(h)||(0,o.jc)(h)||m)?y(b):n[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=p.a;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,d.CJ)(r,e,i);for(const e in n)t[e]=n[e]}}}function y(e){const{targetUrl:t,params:r,value:s,context:l,dest:u,targetPropertyName:d}=e;if(!l.portalItem)return;const h=(0,p.p)(t),y=g(s,t,l);if(r?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new i.Z("persistable:contentAddressingUnsupported",`Property "${d}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const m=r?.contentAddressed&&"json"===y.type?(0,n.F)(y.jsonString):h?.filename??(0,a.D)(),b=(0,o.v_)(r?.prefix??h?.prefix,m),w=`${b}.${(0,c.B)(y)}`;if(r?.contentAddressed&&l.resources&&"json"===y.type){const e=l.resources.toKeep.find((e=>e.resource.path===w))??l.resources.toAdd.find((e=>e.resource.path===w));if(e)return void(u[d]=e.resource.itemRelativeUrl)}const v=l.portalItem.resourceFromPath(w);(0,o.jc)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.gi)(t).then((e=>{v.path=`${b}.${(0,c.B)({type:"blob",blob:e})}`,u[d]=v.itemRelativeUrl})).catch((()=>{})));const I=r?.compress??!1;l.resources&&f({...e,resource:v,content:y,compress:I,updates:l.resources.toAdd}),u[d]=v.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:i,content:n,compress:s}){r.push({resource:i,content:n,compress:s,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},62357:(e,t,r)=>{r.d(t,{F2:()=>o,Wz:()=>a,t_:()=>l,vW:()=>u});const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,n="screenUtils.toPt: input not recognized!",s=96;function o(e){return e?e/72*s:0}function a(e){return e?72*e/s:0}function l(e){if("string"==typeof e){const t=e.match(i);if(t){const r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),n="-"===e.charAt(0),s="px"===i?a(r):r;return n?-s:s}return console.warn(n),null}return e}function u(e=0,t=0){return{x:e,y:t}}},41123:(e,t,r)=>{r.d(t,{D:()=>n,z:()=>s});const i="randomUUID"in crypto;function n(){if(i)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 s(){return`{${n()}}`}},79235:(e,t,r)=>{r.d(t,{Z:()=>w});var i,n=r(43697),s=r(67676),o=r(35454),a=r(96674),l=r(67900),u=r(20941),d=r(5600),c=(r(75215),r(80442),r(71715)),p=r(52011),h=r(30556);const y=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=y.jsonValues.slice();(0,s.e$)(f,"orthometric");const g=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(b(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||g.read(e)||(r?.messages&&r.messages.push(b(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function b(e,t){return new u.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,d.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal"}}}})],m.prototype,"heightModel",void 0),(0,n._)([(0,h.c)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,n._)([(0,c.r)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,n._)([(0,d.Cb)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:g.write}}}})],m.prototype,"heightUnit",void 0),(0,n._)([(0,c.r)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,n._)([(0,c.r)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,n._)([(0,d.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,n._)([(0,c.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,n._)([(0,p.j)("esri.geometry.HeightModelInfo")],m);const w=m},57476:(e,t,r)=>{r.r(t),r.d(t,{default:()=>me});var i=r(43697),n=r(38171),s=r(51773),o=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382),r(81571),r(91423),r(32400)),a=r(3172),l=r(2368),u=r(46791),d=r(20102),c=r(92604),p=r(16453),h=r(95330),y=r(17445),f=r(17452),g=r(5600),m=(r(75215),r(67676),r(80442),r(1153)),b=r(71715),w=r(52011),v=r(31263),I=r(87085),S=r(54295),_=r(17287),M=r(66361),F=r(38009),j=r(16859),C=r(72965),x=r(20559),L=r(66677),R=r(71592),O=r(15506),A=r(21506),P=r(50957),Z=r(61960),q=r(85857),E=r(53518),k=r(99514),U=r(35671),T=r(51161),D=r(54306),N=r(30707),V=r(56765),G=r(87344),H=r(96674);let Q=class extends H.wq{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i._)([(0,g.Cb)({type:String,json:{read:!0,write:!0}})],Q.prototype,"name",void 0),(0,i._)([(0,g.Cb)({type:String,json:{read:!0,write:!0}})],Q.prototype,"field",void 0),(0,i._)([(0,g.Cb)({type:[Number],json:{read:!0,write:!0}})],Q.prototype,"currentRangeExtent",void 0),(0,i._)([(0,g.Cb)({type:[Number],json:{read:!0,write:!0}})],Q.prototype,"fullRangeExtent",void 0),(0,i._)([(0,g.Cb)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:!0}})],Q.prototype,"type",void 0),Q=(0,i._)([(0,w.j)("esri.layers.support.RangeInfo")],Q);var $,J=r(22974),B=r(28576),z=r(20941),W=r(38913),K=r(73615);let Y=$=class extends((0,H.eC)(u.Z.ofType(W.Z))){constructor(e){super(e)}clone(){return new $(this.items.map((e=>e.clone())))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map((r=>{if(!t.equals(r.spatialReference)){if(!(0,K.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages&&e.messages.push(new z.Z("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new W.Z;(0,K.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i})).filter((e=>null!=e)):(e?.messages&&e.messages.push(new z.Z("scenefilter:unsupported","Writing Scene filters without context layer is not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),this.toArray().map((t=>t.toJSON(e))))}static fromJSON(e,t){const r=new $;return e.forEach((e=>r.add(W.Z.fromJSON(e,t)))),r}};Y=$=(0,i._)([(0,w.j)("esri.layers.support.PolygonCollection")],Y);const X=Y;var ee,te=r(25929);let re=ee=class extends H.wq{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new X,this._geometriesSource=null}initialize(){this.addHandles((0,y.on)((()=>this.geometries),"after-changes",(()=>this.geometries=this.geometries),y.Z_))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=X.fromJSON(e,r):this._geometriesSource={url:(0,te.f)(e,r),context:r}}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,n=await(0,a.Z)(r,{responseType:"json",signal:t?.signal}),s=e.toJSON(),o=n.data.map((e=>({...e,spatialReference:s})));this.geometries=X.fromJSON(o,i),this._geometriesSource=null}clone(){const e=new ee({geometries:(0,J.d9)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i._)([(0,g.Cb)({type:["disjoint","contains"],nonNullable:!0,json:{write:!0}})],re.prototype,"spatialRelationship",void 0),(0,i._)([(0,g.Cb)({type:X,nonNullable:!0,json:{write:!0}}),(0,B.B)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],re.prototype,"geometries",void 0),(0,i._)([(0,b.r)(["web-scene","portal-item"],"geometries")],re.prototype,"readGeometries",null),re=ee=(0,i._)([(0,w.j)("esri.layers.support.SceneFilter")],re);const ie=re;var ne=r(40555),se=r(14165),oe=r(36405),ae=r(72245),le=r(32163),ue=r(2358),de=r(19833),ce=r(65242);const pe=new Set(["3DObject","Point"]),he=(0,E.v)();let ye=class extends((0,M.o1)((0,x.Vt)((0,_.Y)((0,F.q)((0,j.I)((0,C.M)((0,p.R)((0,S.V)((0,l.J)(I.Z)))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new u.Z,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new k.Z(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:T.U4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,P.sX)(this.associatedLayer)}get geometryType(){return ge[this.profile]||"mesh"}set renderer(e){(0,U.YN)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:O.C;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:n,supportsUploadWithItemId:s,supportsGeometryUpdate:o,supportsReturnServiceEditsInSourceSpatialReference:a},data:{supportsZ:l,supportsM:u,isVersioned:d,supportsAttachment:c},operations:{supportsEditing:p,supportsAdd:h,supportsUpdate:y,supportsDelete:f,supportsQuery:g,supportsQueryAttachments:m,supportsAsyncConvert3D:b}}=e,w=e.operations.supportsChangeTracking,v=!!this.associatedLayer?.infoFor3D&&(0,ae.Rx)();return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:a,supportsRollbackOnFailure:n,supportsGeometryUpdate:v&&o,supportsUploadWithItemId:s},data:{supportsAttachment:c,supportsZ:l,supportsM:u,isVersioned:d},operations:{supportsQuery:g,supportsQueryAttachments:m,supportsEditing:p&&w,supportsAdd:v&&h&&w,supportsDelete:v&&f&&w,supportsUpdate:y&&w,supportsAsyncConvert3D:b}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e))),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e))),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&fe[r]?fe[r]:(c.Z.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=null!=e?e.signal:null;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.r9),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await(0,ne.y)(this,{origin:"service"},t),(0,U.YN)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){c.Z.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new se.Z;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e}))}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new d.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new d.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,U.Lk)(this.fieldsIndex,await(0,de.e7)(this,(0,de.V5)(this)));return(0,ue.xe)(this.parsedUrl.path,this.attributeStorageInfo??[],e,t,r)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new d.Z("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new n.Z;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryAttachments(e,t)))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(c.Z.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,le.eZ)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new d.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new d.Z("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some((t=>t.name===e))}async queryCachedStatistics(e,t){if(await this.load(t),!this.statisticsInfo)throw new d.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new d.Z("scenelayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.statisticsInfo)if(e.name===r.name){const r=(0,f.v_)(this.parsedUrl.path,e.href);return(0,a.Z)(r,{query:{f:"json",token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new d.Z("scenelayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(x.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(x.xp.SAVE,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(1444).then(r.bind(r,14720));if(await this.load(),!this.associatedLayer)throw new d.Z(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),i(this,this.associatedLayer.source,e,t)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new d.Z(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}on(e,t){return super.on(e,t)}validateLayer(e){if(e.layerType&&!pe.has(e.layerType))throw new d.Z("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new d.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new d.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const n=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=n;break;case"vertex-reference-frame":r=!0,i=!n;break;default:r=!1}}if(!r)throw new d.Z("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new d.Z("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new d.Z("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!(!this.attributeStorageInfo||!this.attributeStorageInfo.some((t=>t.name===e.name))),r=!!this.associatedLayer?.fields?.some((t=>t&&e.name===t.name)),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPopupOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled"],t=(0,m.vw)(this);for(let r=0;r<e.length;r++){const i=e[r],n=this.originIdOf(i),s=this.associatedLayer.originIdOf(i);n<s&&(s===v.s3.SERVICE||s===v.s3.PORTAL_ITEM)&&t.setAtOrigin(i,this.associatedLayer[i],s)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.editingInfo?.lastEditDate,t=this.associatedLayer?.serverGens,r=this.associatedLayer?.getAtOrigin("fullExtent","service");(0,ae.Rx)()&&null!=this.associatedLayer?.infoFor3D&&r&&(0,L.M8)(this.associatedLayer?.url)&&e&&this.serviceUpdateTimeStamp?.lastUpdate!==e.getTime()&&(this.serviceUpdateTimeStamp||t?.minServerGen!==t?.serverGen)&&(0,m.vw)(this).setAtOrigin("fullExtent",r.clone(),v.s3.SERVICE)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,R.w)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,apiKey:this.apiKey,signal:e}),n=await G.T.FeatureLayer();this.associatedLayer=new n({url:t,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,h.D_)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){await(0,y.N1)((()=>this.popupEnabled&&null!=this.popupTemplate));const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?c.Z.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):c.Z.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${e}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,oe.LR)(c.Z.getLogger(this),(0,oe.Wb)("Mesh scene layers","relative-to-scene",e)),(0,oe.LR)(c.Z.getLogger(this),(0,oe.kf)("Scene layers",e))}};(0,i._)([(0,g.Cb)({types:{key:"type",base:Z.B,typeMap:{selection:q.Z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],ye.prototype,"featureReduction",void 0),(0,i._)([(0,g.Cb)({type:[Q],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],ye.prototype,"rangeInfos",void 0),(0,i._)([(0,g.Cb)({json:{read:!1}})],ye.prototype,"associatedLayer",void 0),(0,i._)([(0,g.Cb)({type:["show","hide"]})],ye.prototype,"listMode",void 0),(0,i._)([(0,g.Cb)({type:["ArcGISSceneServiceLayer"]})],ye.prototype,"operationalLayerType",void 0),(0,i._)([(0,g.Cb)({json:{read:!1},readOnly:!0})],ye.prototype,"type",void 0),(0,i._)([(0,g.Cb)({...he.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ye.prototype,"fields",void 0),(0,i._)([(0,g.Cb)()],ye.prototype,"types",null),(0,i._)([(0,g.Cb)()],ye.prototype,"typeIdField",null),(0,i._)([(0,g.Cb)()],ye.prototype,"templates",null),(0,i._)([(0,g.Cb)()],ye.prototype,"formTemplate",null),(0,i._)([(0,g.Cb)({readOnly:!0})],ye.prototype,"fieldsIndex",null),(0,i._)([(0,g.Cb)({type:V.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],ye.prototype,"floorInfo",void 0),(0,i._)([(0,g.Cb)(he.outFields)],ye.prototype,"outFields",void 0),(0,i._)([(0,g.Cb)({type:T.U4,readOnly:!0,json:{read:!1}})],ye.prototype,"nodePages",void 0),(0,i._)([(0,b.r)("service","nodePages",["nodePages","pointNodePages"])],ye.prototype,"readNodePages",null),(0,i._)([(0,g.Cb)({type:[T.QI],readOnly:!0})],ye.prototype,"materialDefinitions",void 0),(0,i._)([(0,g.Cb)({type:[T.Yh],readOnly:!0})],ye.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,g.Cb)({type:[T.H3],readOnly:!0})],ye.prototype,"geometryDefinitions",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],ye.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],ye.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],ye.prototype,"statisticsInfo",void 0),(0,i._)([(0,g.Cb)({type:u.Z.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],ye.prototype,"excludeObjectIds",void 0),(0,i._)([(0,g.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ye.prototype,"definitionExpression",void 0),(0,i._)([(0,g.Cb)({type:ie,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],ye.prototype,"filter",void 0),(0,i._)([(0,g.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],ye.prototype,"path",void 0),(0,i._)([(0,g.Cb)(A.PV)],ye.prototype,"elevationInfo",null),(0,i._)([(0,g.Cb)({readOnly:!0,json:{read:!1}})],ye.prototype,"effectiveCapabilities",null),(0,i._)([(0,g.Cb)({readOnly:!0})],ye.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,g.Cb)({type:String})],ye.prototype,"geometryType",null),(0,i._)([(0,g.Cb)(A.iR)],ye.prototype,"labelsVisible",void 0),(0,i._)([(0,g.Cb)({type:[D.Z],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:N.r},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:N.r},write:!0}})],ye.prototype,"labelingInfo",void 0),(0,i._)([(0,g.Cb)(A.rn)],ye.prototype,"legendEnabled",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,ce.b)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],ye.prototype,"opacity",void 0),(0,i._)([(0,g.Cb)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ye.prototype,"priority",void 0),(0,i._)([(0,g.Cb)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ye.prototype,"semantic",void 0),(0,i._)([(0,g.Cb)({types:o.o,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],ye.prototype,"renderer",null),(0,i._)([(0,g.Cb)({json:{read:!1}})],ye.prototype,"cachedDrawingInfo",void 0),(0,i._)([(0,b.r)("service","cachedDrawingInfo")],ye.prototype,"readCachedDrawingInfo",null),(0,i._)([(0,g.Cb)({readOnly:!0,json:{read:!1}})],ye.prototype,"capabilities",null),(0,i._)([(0,g.Cb)({type:Boolean,json:{read:!1}})],ye.prototype,"editingEnabled",null),(0,i._)([(0,g.Cb)({readOnly:!0,json:{write:!1,read:!1}})],ye.prototype,"infoFor3D",null),(0,i._)([(0,g.Cb)({readOnly:!0,json:{write:!1,read:!1}})],ye.prototype,"relationships",null),(0,i._)([(0,g.Cb)(A.C_)],ye.prototype,"popupEnabled",void 0),(0,i._)([(0,g.Cb)({type:s.Z,json:{name:"popupInfo",write:!0}})],ye.prototype,"popupTemplate",void 0),(0,i._)([(0,g.Cb)({readOnly:!0,json:{read:!1}})],ye.prototype,"defaultPopupTemplate",null),(0,i._)([(0,g.Cb)({type:String,json:{read:!1}})],ye.prototype,"objectIdField",void 0),(0,i._)([(0,b.r)("service","objectIdField",["objectIdField","fields"])],ye.prototype,"readObjectIdField",null),(0,i._)([(0,g.Cb)({type:String,json:{read:!1}})],ye.prototype,"globalIdField",void 0),(0,i._)([(0,b.r)("service","globalIdField",["globalIdField","fields"])],ye.prototype,"readGlobalIdField",null),(0,i._)([(0,g.Cb)({readOnly:!0,type:String,json:{read:!1}})],ye.prototype,"displayField",null),(0,i._)([(0,g.Cb)({type:String,json:{read:!1}})],ye.prototype,"profile",void 0),(0,i._)([(0,b.r)("service","profile",["store.profile"])],ye.prototype,"readProfile",null),(0,i._)([(0,g.Cb)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],ye.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,g.Cb)(A.YI)],ye.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,g.Cb)({json:{read:!1,origins:{service:{read:!0}}}})],ye.prototype,"serviceItemId",void 0),ye=(0,i._)([(0,w.j)("esri.layers.SceneLayer")],ye);const fe={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},ge={"mesh-pyramids":"mesh",points:"point",lines:"polyline",polygons:"polygon"},me=ye},66361:(e,t,r)=>{r.d(t,{jF:()=>d,lQ:()=>h,o1:()=>g});var i=r(43697),n=r(32448),s=r(22974),o=r(95330),a=(r(92604),r(75215),r(20102),r(80442),r(52011)),l=r(18596);const u=new n.Z.EventEmitter;function d(e,t,r=null,i=!1){const n=(0,o.hh)();return i=null==t||i,u.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:n.promise}),n}const c="esri.layers.mixins.EditBusLayer",p=Symbol(c);function h(e){return null!=e&&"object"==typeof e&&p in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,r){const i=new URL(e).host,n=l.Jp.get(i),s=e=>!e||e===n;return s(t)&&s(r)||t===r}const g=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:n,result:o}=e,a=t===this.url,u=null!=r&&null!=this.layerId&&r===this.layerId,d=y(this),c=y(this)&&f(t,i,this.gdbVersion);if(!a||d&&!c||!u&&!n)return;const p=o.then((e=>{if(u&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.d9)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:r,updates:i,deletes:n}=t.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:r?r.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:n?n.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:i?i.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,s.d9)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.d9)(e.historicMoment)};return this.emit("edits",o),o}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.d9)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.d9)(e.historicMoment)}})).then((e=>("historicMoment"in this&&this.historicMoment!==e.historicMoment&&(0,l.JV)(t,i)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,n=t===this.url,s=y(this),o=y(this)&&f(t,r,this.gdbVersion),a=y(this)&&!f(t,this.gdbVersion,null);n&&s&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then((()=>{this.addHandles(function(e){return u.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return u.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}};return t=p,r=(0,i._)([(0,a.j)(c)],r),r}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var i=r(43697),n=r(5600),s=(r(75215),r(67676),r(80442),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,s.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},61960:(e,t,r)=>{r.d(t,{B:()=>a});var i=r(43697),n=r(96674),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011));let a=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}})],a.prototype,"type",void 0),a=(0,i._)([(0,o.j)("esri.layers.support.FeatureReduction")],a)},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)),a=r(61960);let l=i=class extends a.B{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,n._)([(0,s.Cb)({type:["selection"]})],l.prototype,"type",void 0),l=i=(0,n._)([(0,o.j)("esri.layers.support.FeatureReductionSelection")],l);const u=l},50957:(e,t,r)=>{r.d(t,{C9:()=>x,Ci:()=>S,FV:()=>I,Fr:()=>f,JD:()=>g,JY:()=>P,Jj:()=>w,KE:()=>j,Ob:()=>U,SU:()=>_,VG:()=>F,Y5:()=>b,gG:()=>L,kZ:()=>A,kp:()=>C,nU:()=>q,rP:()=>R,rk:()=>O,sX:()=>E,tD:()=>M,uA:()=>T,uj:()=>v});var i=r(40330),n=r(9790),s=r(20102),o=r(35454),a=r(42033),l=r(63213),u=r(84230),d=r(84382),c=r(81571),p=r(56545),h=r(14165),y=r(75935);const f=new o.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function g(e,t,r,i){const n=await Z(e);if(await m(e,t,i),!n.addAttachment)throw new s.Z(i,"Layer source does not support addAttachment capability");return n.addAttachment(t,r)}function m(e,t,r){const{attributes:i}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?i?n&&i[n]?Promise.resolve():Promise.reject(new s.Z(r,`feature is missing the identifying attribute ${n}`)):Promise.reject(new s.Z(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new s.Z(r,"A feature is required to add/delete/update attachments")):Promise.reject(new s.Z(r,"this layer doesn't support attachments"))}async function b(e,t,r,i,n){const o=await Z(e);if(await m(e,t,n),!o.updateAttachment)throw new s.Z(n,"Layer source does not support updateAttachment capability");return o.updateAttachment(t,r,i)}async function w(e,t,i){const{applyEdits:n}=await r.e(4720).then(r.bind(r,14720)),s=await e.load();return n(s,s.source,t,i)}async function v(e,t,i){const{uploadAssets:n}=await r.e(4720).then(r.bind(r,14720)),s=await e.load();return n(s,s.source,t,i)}async function I(e,t,r,i){const n=await Z(e);if(await m(e,t,i),!n.deleteAttachments)throw new s.Z(i,"Layer source does not support deleteAttachments capability");return n.deleteAttachments(t,r)}async function S(e,t,r){const i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new s.Z(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function _(e,t,r,i){t=p.Z.from(t),await e.load();const n=e.source,o=e.capabilities;if(!o?.data?.supportsAttachment)throw new s.Z(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:d,size:c,start:h,where:y}=t;if(!o?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||c?.length>0||d||h||y))throw new s.Z(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||y))throw new s.Z(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!n.queryAttachments)throw new s.Z(i,"Layer source does not support queryAttachments capability",t);return n.queryAttachments(t)}async function M(e,t,r,i){const n=await Z(e);if(!n.queryObjectIds)throw new s.Z(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(h.Z.from(t)??e.createQuery(),r)}async function F(e,t,r,i){const n=await Z(e);if(!n.queryFeatureCount)throw new s.Z(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(h.Z.from(t)??e.createQuery(),r)}async function j(e,t,r,i){const n=await Z(e);if(!n.queryExtent)throw new s.Z(i,"Layer source does not support queryExtent capability");return n.queryExtent(h.Z.from(t)??e.createQuery(),r)}async function C(e,t,r,i){const n=await Z(e);if(!n.queryRelatedFeatures)throw new s.Z(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(y.default.from(t),r)}async function x(e,t,r,i){const n=await Z(e);if(!n.queryRelatedFeaturesCount)throw new s.Z(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(y.default.from(t),r)}async function L(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 R(e){const t=new h.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:n,timeExtent:s}=e;return t.timeExtent=null!=n&&null!=s?s.offset(-n.value,n.unit):s||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function O(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 A(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 P(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 Z(e){return(await e.load()).source}async function q(e,t,r){const n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const n=await(0,u.oP)(e,t);n&&(r=await i.id.checkSignInStatus(`${n}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(n,r)}function E(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const k=(0,l.d)({types:n.QT});function U(e,t){if(e.defaultSymbol)return e.types?.length?new c.Z({defaultSymbol:k(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:k(e.symbol,e,t)})))}):new d.Z({symbol:k(e.defaultSymbol,e,t)})}function T(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)}},53518:(e,t,r)=>{r.d(t,{v:()=>l});var i=r(80442),n=r(92604),s=r(1231),o=r(99514),a=r(35671);function l(){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)&&n.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 o.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||n.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.Q0)(this.fieldsIndex,e)}}}}},66094:(e,t,r)=>{r.d(t,{B:()=>n});var i=r(17452);function n(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Ml)(e);return l[t]||o}(e.url)}(e)]||a}const s={},o="text/plain",a=s[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)s[l[e]]=e},40555:(e,t,r)=>{r.d(t,{y:()=>o});var i=r(66643),n=r(95330),s=r(20941);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.q6)(o.populateFromStyle());if((0,n.k_)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new s.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},75935:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var i,n=r(43697),s=(r(66577),r(96674)),o=r(22974),a=r(5600),l=r(75215),u=r(52011),d=r(30556),c=r(10158),p=r(82971);let h=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,o.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,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"cacheHint",void 0),(0,n._)([(0,a.Cb)({type:c.n,json:{write:!0}})],h.prototype,"dynamicDataSource",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"gdbVersion",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"geometryPrecision",void 0),(0,n._)([(0,a.Cb)({type:Date})],h.prototype,"historicMoment",void 0),(0,n._)([(0,d.c)("historicMoment")],h.prototype,"_writeHistoricMoment",null),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"maxAllowableOffset",void 0),(0,n._)([(0,a.Cb)({type:[Number],json:{write:!0}})],h.prototype,"objectIds",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],h.prototype,"orderByFields",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],h.prototype,"outFields",void 0),(0,n._)([(0,a.Cb)({type:p.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],h.prototype,"outSpatialReference",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"relationshipId",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],h.prototype,"start",void 0),(0,n._)([(0,d.c)("start"),(0,d.c)("num")],h.prototype,"writeStart",null),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],h.prototype,"num",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"returnGeometry",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],h.prototype,"returnM",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],h.prototype,"returnZ",void 0),(0,n._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],h.prototype,"where",void 0),h=i=(0,n._)([(0,u.j)("esri.rest.support.RelationshipQuery")],h),h.from=(0,l.se)(h);const y=h},18596:(e,t,r)=>{r.d(t,{JV:()=>a,Jp:()=>n,Px:()=>o,U8:()=>i});const i=(0,r(41123).z)(),n=new Map,s=new Map;async function o(e,t,n=!1){if(!e||!t)return!0;const o=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=s.get(o)?.entries();if(a)for(const[e,s]of a)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&n){const[{deleteForwardEdits:t},{default:n}]=await Promise.all([r.e(1316).then(r.bind(r,51316)),r.e(4573).then(r.bind(r,84573))]);return t(o,e,new n({sessionId:i,moment:s.moment}))}return t}return!0}function a(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=s.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1174,5935],{52138:(e,t,r)=>{r.d(t,{A:()=>f,a:()=>I,b:()=>c,c:()=>y,d:()=>h,e:()=>v,f:()=>b,g:()=>o,i:()=>l,k:()=>p,m:()=>u,s:()=>s,t:()=>a,w:()=>d,y:()=>_,z:()=>S});var i=r(65617),n=r(46851);function s(e,t,r,i,n,s,o,a,l,u,d,c,p,h,y,f,g){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e[4]=s,e[5]=o,e[6]=a,e[7]=l,e[8]=u,e[9]=d,e[10]=c,e[11]=p,e[12]=h,e[13]=y,e[14]=f,e[15]=g,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function a(e,t){if(e===t){const r=t[1],i=t[2],n=t[3],s=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=n,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){const r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],h=t[11],y=t[12],f=t[13],g=t[14],m=t[15],b=r*a-i*o,w=r*l-n*o,v=r*u-s*o,I=i*l-n*a,S=i*u-s*a,_=n*u-s*l,M=d*f-c*y,F=d*g-p*y,j=d*m-h*y,C=c*g-p*f,x=c*m-h*f,L=p*m-h*g;let R=b*L-w*x+v*C+I*j-S*F+_*M;return R?(R=1/R,e[0]=(a*L-l*x+u*C)*R,e[1]=(n*x-i*L-s*C)*R,e[2]=(f*_-g*S+m*I)*R,e[3]=(p*S-c*_-h*I)*R,e[4]=(l*j-o*L-u*F)*R,e[5]=(r*L-n*j+s*F)*R,e[6]=(g*v-y*_-m*w)*R,e[7]=(d*_-p*v+h*w)*R,e[8]=(o*x-a*j+u*M)*R,e[9]=(i*j-r*x-s*M)*R,e[10]=(y*S-f*v+m*b)*R,e[11]=(c*v-d*S-h*b)*R,e[12]=(a*F-o*C-l*M)*R,e[13]=(r*C-i*F+n*M)*R,e[14]=(f*w-y*I-g*b)*R,e[15]=(d*I-c*w+p*b)*R,e):null}function u(e,t,r){const i=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],u=t[6],d=t[7],c=t[8],p=t[9],h=t[10],y=t[11],f=t[12],g=t[13],m=t[14],b=t[15];let w=r[0],v=r[1],I=r[2],S=r[3];return e[0]=w*i+v*a+I*c+S*f,e[1]=w*n+v*l+I*p+S*g,e[2]=w*s+v*u+I*h+S*m,e[3]=w*o+v*d+I*y+S*b,w=r[4],v=r[5],I=r[6],S=r[7],e[4]=w*i+v*a+I*c+S*f,e[5]=w*n+v*l+I*p+S*g,e[6]=w*s+v*u+I*h+S*m,e[7]=w*o+v*d+I*y+S*b,w=r[8],v=r[9],I=r[10],S=r[11],e[8]=w*i+v*a+I*c+S*f,e[9]=w*n+v*l+I*p+S*g,e[10]=w*s+v*u+I*h+S*m,e[11]=w*o+v*d+I*y+S*b,w=r[12],v=r[13],I=r[14],S=r[15],e[12]=w*i+v*a+I*c+S*f,e[13]=w*n+v*l+I*p+S*g,e[14]=w*s+v*u+I*h+S*m,e[15]=w*o+v*d+I*y+S*b,e}function d(e,t,r){const i=r[0],n=r[1],s=r[2];if(t===e)e[12]=t[0]*i+t[4]*n+t[8]*s+t[12],e[13]=t[1]*i+t[5]*n+t[9]*s+t[13],e[14]=t[2]*i+t[6]*n+t[10]*s+t[14],e[15]=t[3]*i+t[7]*n+t[11]*s+t[15];else{const r=t[0],o=t[1],a=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7],h=t[8],y=t[9],f=t[10],g=t[11];e[0]=r,e[1]=o,e[2]=a,e[3]=l,e[4]=u,e[5]=d,e[6]=c,e[7]=p,e[8]=h,e[9]=y,e[10]=f,e[11]=g,e[12]=r*i+u*n+h*s+t[12],e[13]=o*i+d*n+y*s+t[13],e[14]=a*i+c*n+f*s+t[14],e[15]=l*i+p*n+g*s+t[15]}return e}function c(e,t,r){const i=r[0],n=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,r,i){let s,o,a,l,u,d,c,p,h,y,f,g,m,b,w,v,I,S,_,M,F,j,C,x,L=i[0],R=i[1],O=i[2],A=Math.sqrt(L*L+R*R+O*O);return A<(0,n.g)()?null:(A=1/A,L*=A,R*=A,O*=A,s=Math.sin(r),o=Math.cos(r),a=1-o,l=t[0],u=t[1],d=t[2],c=t[3],p=t[4],h=t[5],y=t[6],f=t[7],g=t[8],m=t[9],b=t[10],w=t[11],v=L*L*a+o,I=R*L*a+O*s,S=O*L*a-R*s,_=L*R*a-O*s,M=R*R*a+o,F=O*R*a+L*s,j=L*O*a+R*s,C=R*O*a-L*s,x=O*O*a+o,e[0]=l*v+p*I+g*S,e[1]=u*v+h*I+m*S,e[2]=d*v+y*I+b*S,e[3]=c*v+f*I+w*S,e[4]=l*_+p*M+g*F,e[5]=u*_+h*M+m*F,e[6]=d*_+y*M+b*F,e[7]=c*_+f*M+w*F,e[8]=l*j+p*C+g*x,e[9]=u*j+h*C+m*x,e[10]=d*j+y*C+b*x,e[11]=c*j+f*C+w*x,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function h(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function y(e,t,r){if(0===t)return o(e);let i,s,a,l=r[0],u=r[1],d=r[2],c=Math.sqrt(l*l+u*u+d*d);return c<(0,n.g)()?null:(c=1/c,l*=c,u*=c,d*=c,i=Math.sin(t),s=Math.cos(t),a=1-s,e[0]=l*l*a+s,e[1]=u*l*a+d*i,e[2]=d*l*a-u*i,e[3]=0,e[4]=l*u*a-d*i,e[5]=u*u*a+s,e[6]=d*u*a+l*i,e[7]=0,e[8]=l*d*a+u*i,e[9]=u*d*a-l*i,e[10]=d*d*a+s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function f(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t,r){const i=t[0],n=t[1],s=t[2],o=t[3],a=i+i,l=n+n,u=s+s,d=i*a,c=i*l,p=i*u,h=n*l,y=n*u,f=s*u,g=o*a,m=o*l,b=o*u;return e[0]=1-(h+f),e[1]=c+b,e[2]=p-m,e[3]=0,e[4]=c-b,e[5]=1-(d+f),e[6]=y+g,e[7]=0,e[8]=p+m,e[9]=y-g,e[10]=1-(d+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const m=(0,i.c)();function b(e,t,r,i){const n=t[0],s=t[1],o=t[2],a=t[3],l=n+n,u=s+s,d=o+o,c=n*l,p=n*u,h=n*d,y=s*u,f=s*d,g=o*d,m=a*l,b=a*u,w=a*d,v=i[0],I=i[1],S=i[2];return e[0]=(1-(y+g))*v,e[1]=(p+w)*v,e[2]=(h-b)*v,e[3]=0,e[4]=(p-w)*I,e[5]=(1-(c+g))*I,e[6]=(f+m)*I,e[7]=0,e[8]=(h+b)*S,e[9]=(f-m)*S,e[10]=(1-(c+y))*S,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function w(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function v(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function I(e,t){if(e===t)return!0;const r=e[0],i=e[1],s=e[2],o=e[3],a=e[4],l=e[5],u=e[6],d=e[7],c=e[8],p=e[9],h=e[10],y=e[11],f=e[12],g=e[13],m=e[14],b=e[15],w=t[0],v=t[1],I=t[2],S=t[3],_=t[4],M=t[5],F=t[6],j=t[7],C=t[8],x=t[9],L=t[10],R=t[11],O=t[12],A=t[13],q=t[14],E=t[15],P=(0,n.g)();return Math.abs(r-w)<=P*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-v)<=P*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(s-I)<=P*Math.max(1,Math.abs(s),Math.abs(I))&&Math.abs(o-S)<=P*Math.max(1,Math.abs(o),Math.abs(S))&&Math.abs(a-_)<=P*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(l-M)<=P*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-F)<=P*Math.max(1,Math.abs(u),Math.abs(F))&&Math.abs(d-j)<=P*Math.max(1,Math.abs(d),Math.abs(j))&&Math.abs(c-C)<=P*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(p-x)<=P*Math.max(1,Math.abs(p),Math.abs(x))&&Math.abs(h-L)<=P*Math.max(1,Math.abs(h),Math.abs(L))&&Math.abs(y-R)<=P*Math.max(1,Math.abs(y),Math.abs(R))&&Math.abs(f-O)<=P*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(g-A)<=P*Math.max(1,Math.abs(g),Math.abs(A))&&Math.abs(m-q)<=P*Math.max(1,Math.abs(m),Math.abs(q))&&Math.abs(b-E)<=P*Math.max(1,Math.abs(b),Math.abs(E))}function S(e){const t=(0,n.g)(),r=e[0],i=e[1],s=e[2],o=e[4],a=e[5],l=e[6],u=e[8],d=e[9],c=e[10];return Math.abs(1-(r*r+o*o+u*u))<=t&&Math.abs(1-(i*i+a*a+d*d))<=t&&Math.abs(1-(s*s+l*l+c*c))<=t}function _(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const M=u,F=w;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],h=t[11],y=t[12],f=t[13],g=t[14],m=t[15];return e[0]=a*(p*m-h*g)-c*(l*m-u*g)+f*(l*h-u*p),e[1]=-(i*(p*m-h*g)-c*(n*m-s*g)+f*(n*h-s*p)),e[2]=i*(l*m-u*g)-a*(n*m-s*g)+f*(n*u-s*l),e[3]=-(i*(l*h-u*p)-a*(n*h-s*p)+c*(n*u-s*l)),e[4]=-(o*(p*m-h*g)-d*(l*m-u*g)+y*(l*h-u*p)),e[5]=r*(p*m-h*g)-d*(n*m-s*g)+y*(n*h-s*p),e[6]=-(r*(l*m-u*g)-o*(n*m-s*g)+y*(n*u-s*l)),e[7]=r*(l*h-u*p)-o*(n*h-s*p)+d*(n*u-s*l),e[8]=o*(c*m-h*f)-d*(a*m-u*f)+y*(a*h-u*c),e[9]=-(r*(c*m-h*f)-d*(i*m-s*f)+y*(i*h-s*c)),e[10]=r*(a*m-u*f)-o*(i*m-s*f)+y*(i*u-s*a),e[11]=-(r*(a*h-u*c)-o*(i*h-s*c)+d*(i*u-s*a)),e[12]=-(o*(c*g-p*f)-d*(a*g-l*f)+y*(a*p-l*c)),e[13]=r*(c*g-p*f)-d*(i*g-n*f)+y*(i*p-n*c),e[14]=-(r*(a*g-l*f)-o*(i*g-n*f)+y*(i*l-n*a)),e[15]=r*(a*p-l*c)-o*(i*p-n*c)+d*(i*l-n*a),e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},determinant:function(e){const t=e[0],r=e[1],i=e[2],n=e[3],s=e[4],o=e[5],a=e[6],l=e[7],u=e[8],d=e[9],c=e[10],p=e[11],h=e[12],y=e[13],f=e[14],g=e[15];return(t*o-r*s)*(c*g-p*f)-(t*a-i*s)*(d*g-p*y)+(t*l-n*s)*(d*f-c*y)+(r*a-i*o)*(u*g-p*h)-(r*l-n*o)*(u*f-c*h)+(i*l-n*a)*(u*y-d*h)},equals:I,exactEquals:v,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],i=t[1],n=t[2],s=t[3],o=r+r,a=i+i,l=n+n,u=r*o,d=i*o,c=i*a,p=n*o,h=n*a,y=n*l,f=s*o,g=s*a,m=s*l;return e[0]=1-c-y,e[1]=d+m,e[2]=p-g,e[3]=0,e[4]=d-m,e[5]=1-u-y,e[6]=h+f,e[7]=0,e[8]=p+g,e[9]=h-f,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=m,i=-t[0],n=-t[1],s=-t[2],o=t[3],a=t[4],l=t[5],u=t[6],d=t[7],c=i*i+n*n+s*s+o*o;return c>0?(r[0]=2*(a*o+d*i+l*s-u*n)/c,r[1]=2*(l*o+d*n+u*i-a*s)/c,r[2]=2*(u*o+d*s+a*n-l*i)/c):(r[0]=2*(a*o+d*i+l*s-u*n),r[1]=2*(l*o+d*n+u*i-a*s),r[2]=2*(u*o+d*s+a*n-l*i)),g(e,t,r),e},fromRotation:y,fromRotationTranslation:g,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(e,t,r,i,n){const s=t[0],o=t[1],a=t[2],l=t[3],u=s+s,d=o+o,c=a+a,p=s*u,h=s*d,y=s*c,f=o*d,g=o*c,m=a*c,b=l*u,w=l*d,v=l*c,I=i[0],S=i[1],_=i[2],M=n[0],F=n[1],j=n[2],C=(1-(f+m))*I,x=(h+v)*I,L=(y-w)*I,R=(h-v)*S,O=(1-(p+m))*S,A=(g+b)*S,q=(y+w)*_,E=(g-b)*_,P=(1-(p+f))*_;return e[0]=C,e[1]=x,e[2]=L,e[3]=0,e[4]=R,e[5]=O,e[6]=A,e[7]=0,e[8]=q,e[9]=E,e[10]=P,e[11]=0,e[12]=r[0]+M-(C*M+R*F+q*j),e[13]=r[1]+F-(x*M+O*F+E*j),e[14]=r[2]+j-(L*M+A*F+P*j),e[15]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:h,fromXRotation:f,fromYRotation:function(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,i,n,s,o){const a=1/(r-t),l=1/(n-i),u=1/(s-o);return e[0]=2*s*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*l,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(n+i)*l,e[10]=(o+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*s*2*u,e[15]=0,e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let i=0;return r>0?(i=2*Math.sqrt(r+1),e[3]=.25*i,e[0]=(t[6]-t[9])/i,e[1]=(t[8]-t[2])/i,e[2]=(t[1]-t[4])/i):t[0]>t[5]&&t[0]>t[10]?(i=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/i,e[0]=.25*i,e[1]=(t[1]+t[4])/i,e[2]=(t[8]+t[2])/i):t[5]>t[10]?(i=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/i,e[0]=(t[1]+t[4])/i,e[1]=.25*i,e[2]=(t[6]+t[9])/i):(i=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/i,e[0]=(t[8]+t[2])/i,e[1]=(t[6]+t[9])/i,e[2]=.25*i),e},getScaling:function(e,t){const r=t[0],i=t[1],n=t[2],s=t[4],o=t[5],a=t[6],l=t[8],u=t[9],d=t[10];return e[0]=Math.sqrt(r*r+i*i+n*n),e[1]=Math.sqrt(s*s+o*o+a*a),e[2]=Math.sqrt(l*l+u*u+d*d),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},hasIdentityRotation:_,identity:o,invert:l,invertOrIdentity:function(e,t){return l(e,t)||o(e),e},isOrthoNormal:S,lookAt:function(e,t,r,i){const s=t[0],a=t[1],l=t[2];let u=s-r[0],d=a-r[1],c=l-r[2];const p=(0,n.g)();if(Math.abs(u)<p&&Math.abs(d)<p&&Math.abs(c)<p)return void o(e);let h=1/Math.sqrt(u*u+d*d+c*c);u*=h,d*=h,c*=h;const y=i[0],f=i[1],g=i[2];let m=f*c-g*d,b=g*u-y*c,w=y*d-f*u;h=Math.sqrt(m*m+b*b+w*w),h?(h=1/h,m*=h,b*=h,w*=h):(m=0,b=0,w=0);let v=d*w-c*b,I=c*m-u*w,S=u*b-d*m;h=Math.sqrt(v*v+I*I+S*S),h?(h=1/h,v*=h,I*=h,S*=h):(v=0,I=0,S=0),e[0]=m,e[1]=v,e[2]=u,e[3]=0,e[4]=b,e[5]=I,e[6]=d,e[7]=0,e[8]=w,e[9]=S,e[10]=c,e[11]=0,e[12]=-(m*s+b*a+w*l),e[13]=-(v*s+I*a+S*l),e[14]=-(u*s+d*a+c*l),e[15]=1},mul:M,multiply:u,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e},ortho:function(e,t,r,i,n,s,o){const a=1/(t-r),l=1/(i-n),u=1/(s-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(n+i)*l,e[14]=(o+s)*u,e[15]=1,e},perspective:function(e,t,r,i,n){const s=1/Math.tan(t/2);let o;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=n&&n!==1/0?(o=1/(i-n),e[10]=(n+i)*o,e[14]=2*n*i*o):(e[10]=-1,e[14]=-2*i),e},perspectiveFromFieldOfView:function(e,t,r,i){const n=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+a),u=2/(n+s);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(o-a)*l*.5,e[9]=(n-s)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e},rotate:p,rotateX:function(e,t,r){const i=Math.sin(r),n=Math.cos(r),s=t[4],o=t[5],a=t[6],l=t[7],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*n+u*i,e[5]=o*n+d*i,e[6]=a*n+c*i,e[7]=l*n+p*i,e[8]=u*n-s*i,e[9]=d*n-o*i,e[10]=c*n-a*i,e[11]=p*n-l*i,e},rotateY:function(e,t,r){const i=Math.sin(r),n=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*n-u*i,e[1]=o*n-d*i,e[2]=a*n-c*i,e[3]=l*n-p*i,e[8]=s*i+u*n,e[9]=o*i+d*n,e[10]=a*i+c*n,e[11]=l*i+p*n,e},rotateZ:function(e,t,r){const i=Math.sin(r),n=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*n+u*i,e[1]=o*n+d*i,e[2]=a*n+c*i,e[3]=l*n+p*i,e[4]=u*n-s*i,e[5]=d*n-o*i,e[6]=c*n-a*i,e[7]=p*n-l*i,e},scale:c,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:F,subtract:w,targetTo:function(e,t,r,i){const n=t[0],s=t[1],o=t[2],a=i[0],l=i[1],u=i[2];let d=n-r[0],c=s-r[1],p=o-r[2],h=d*d+c*c+p*p;h>0&&(h=1/Math.sqrt(h),d*=h,c*=h,p*=h);let y=l*p-u*c,f=u*d-a*p,g=a*c-l*d;return h=y*y+f*f+g*g,h>0&&(h=1/Math.sqrt(h),y*=h,f*=h,g*=h),e[0]=y,e[1]=f,e[2]=g,e[3]=0,e[4]=c*g-p*f,e[5]=p*y-d*g,e[6]=d*f-c*y,e[7]=0,e[8]=d,e[9]=c,e[10]=p,e[11]=0,e[12]=n,e[13]=s,e[14]=o,e[15]=1,e},translate:d,transpose:a},Symbol.toStringTag,{value:"Module"}))},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>n,VL:()=>o,h$:()=>s,rW:()=>u});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function o(e){return[...s(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,i=1){const n=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,o=2*r-s;return[Math.round(255*a(o,s,n+1/3)),Math.round(255*a(o,s,n)),Math.round(255*a(o,s,n-1/3)),i]}function u(e){const t=e.length>5,r=t?8:4,i=(1<<r)-1,n=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.substr(1));if(isNaN(o))return null;const a=[0,0,0,1];let l;return s&&(l=o&i,o>>=r,a[3]=n*l/255),l=o&i,o>>=r,a[2]=n*l,l=o&i,o>>=r,a[1]=n*l,l=o&i,o>>=r,a[0]=n*l,a}},44543:(e,t,r)=>{r.d(t,{F:()=>f,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 a(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 l(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 d(e,t,r,i,n,s,o){return u(t&r|~t&i,e,t,n,s,o)}function c(e,t,r,i,n,s,o){return u(t&i|r&~i,e,t,n,s,o)}function p(e,t,r,i,n,s,o){return u(t^r^i,e,t,n,s,o)}function h(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 a=r,l=i,u=n,y=s;r=d(r,i,n,s,e[t],7,-680876936),s=d(s,r,i,n,e[t+1],12,-389564586),n=d(n,s,r,i,e[t+2],17,606105819),i=d(i,n,s,r,e[t+3],22,-1044525330),r=d(r,i,n,s,e[t+4],7,-176418897),s=d(s,r,i,n,e[t+5],12,1200080426),n=d(n,s,r,i,e[t+6],17,-1473231341),i=d(i,n,s,r,e[t+7],22,-45705983),r=d(r,i,n,s,e[t+8],7,1770035416),s=d(s,r,i,n,e[t+9],12,-1958414417),n=d(n,s,r,i,e[t+10],17,-42063),i=d(i,n,s,r,e[t+11],22,-1990404162),r=d(r,i,n,s,e[t+12],7,1804603682),s=d(s,r,i,n,e[t+13],12,-40341101),n=d(n,s,r,i,e[t+14],17,-1502002290),i=d(i,n,s,r,e[t+15],22,1236535329),r=c(r,i,n,s,e[t+1],5,-165796510),s=c(s,r,i,n,e[t+6],9,-1069501632),n=c(n,s,r,i,e[t+11],14,643717713),i=c(i,n,s,r,e[t],20,-373897302),r=c(r,i,n,s,e[t+5],5,-701558691),s=c(s,r,i,n,e[t+10],9,38016083),n=c(n,s,r,i,e[t+15],14,-660478335),i=c(i,n,s,r,e[t+4],20,-405537848),r=c(r,i,n,s,e[t+9],5,568446438),s=c(s,r,i,n,e[t+14],9,-1019803690),n=c(n,s,r,i,e[t+3],14,-187363961),i=c(i,n,s,r,e[t+8],20,1163531501),r=c(r,i,n,s,e[t+13],5,-1444681467),s=c(s,r,i,n,e[t+2],9,-51403784),n=c(n,s,r,i,e[t+7],14,1735328473),i=c(i,n,s,r,e[t+12],20,-1926607734),r=p(r,i,n,s,e[t+5],4,-378558),s=p(s,r,i,n,e[t+8],11,-2022574463),n=p(n,s,r,i,e[t+11],16,1839030562),i=p(i,n,s,r,e[t+14],23,-35309556),r=p(r,i,n,s,e[t+1],4,-1530992060),s=p(s,r,i,n,e[t+4],11,1272893353),n=p(n,s,r,i,e[t+7],16,-155497632),i=p(i,n,s,r,e[t+10],23,-1094730640),r=p(r,i,n,s,e[t+13],4,681279174),s=p(s,r,i,n,e[t],11,-358537222),n=p(n,s,r,i,e[t+3],16,-722521979),i=p(i,n,s,r,e[t+6],23,76029189),r=p(r,i,n,s,e[t+9],4,-640364487),s=p(s,r,i,n,e[t+12],11,-421815835),n=p(n,s,r,i,e[t+15],16,530742520),i=p(i,n,s,r,e[t+2],23,-995338651),r=h(r,i,n,s,e[t],6,-198630844),s=h(s,r,i,n,e[t+7],10,1126891415),n=h(n,s,r,i,e[t+14],15,-1416354905),i=h(i,n,s,r,e[t+5],21,-57434055),r=h(r,i,n,s,e[t+12],6,1700485571),s=h(s,r,i,n,e[t+3],10,-1894986606),n=h(n,s,r,i,e[t+10],15,-1051523),i=h(i,n,s,r,e[t+1],21,-2054922799),r=h(r,i,n,s,e[t+8],6,1873313359),s=h(s,r,i,n,e[t+15],10,-30611744),n=h(n,s,r,i,e[t+6],15,-1560198380),i=h(i,n,s,r,e[t+13],21,1309151649),r=h(r,i,n,s,e[t+4],6,-145523070),s=h(s,r,i,n,e[t+11],10,-1120210379),n=h(n,s,r,i,e[t+2],15,718787259),i=h(i,n,s,r,e[t+9],21,-343485551),r=o(r,a),i=o(i,l),n=o(n,u),s=o(s,y)}return[r,i,n,s]}function f(e,t=i.Hex){const r=t||i.Base64,s=y(a(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 l(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)}}},28576:(e,t,r)=>{r.d(t,{B:()=>h});var i=r(20102),n=r(44543),s=r(81153),o=r(17452),a=r(41123),l=r(7628),u=r(31263),d=r(5600),c=r(66094),p=r(25929);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const n=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.Oe)(t,r);return{type:String,read:(e,t,r)=>{const n=(0,p.r)(e,t,r);return i.type===String?n:"function"==typeof i.type?new i.type({url:n}):void 0},write:{writer(t,n,a,l){if(!l?.resources)return"string"==typeof t?void(n[a]=(0,p.t)(t,l)):void(n[a]=t.write({},l));const d=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,p.t)(d,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},p.M.NO),m=i.type!==String&&(!(0,s.l)(this)||l?.origin&&this.originIdOf(r)>(0,u.M9)(l.origin)),b={object:this,propertyName:r,value:t,targetUrl:h,dest:n,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,o.YP)(h)?m&&e?.contentAddressed?y(b):m?function(e){const{context:t,targetUrl:r,params:i,value:n,dest:s,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=g(n,r,t),d=(0,c.B)(u),p=(0,o.Ml)(l.path),h=i?.compress??!1;d===p?(t.resources&&f({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),s[a]=r):y(e)}(b):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(b):l?.portalItem&&(null==h||null!=(0,p.i)(h)||(0,o.jc)(h)||m)?y(b):n[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=p.a;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,d.CJ)(r,e,i);for(const e in n)t[e]=n[e]}}}function y(e){const{targetUrl:t,params:r,value:s,context:l,dest:u,targetPropertyName:d}=e;if(!l.portalItem)return;const h=(0,p.p)(t),y=g(s,t,l);if(r?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new i.Z("persistable:contentAddressingUnsupported",`Property "${d}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const m=r?.contentAddressed&&"json"===y.type?(0,n.F)(y.jsonString):h?.filename??(0,a.D)(),b=(0,o.v_)(r?.prefix??h?.prefix,m),w=`${b}.${(0,c.B)(y)}`;if(r?.contentAddressed&&l.resources&&"json"===y.type){const e=l.resources.toKeep.find((e=>e.resource.path===w))??l.resources.toAdd.find((e=>e.resource.path===w));if(e)return void(u[d]=e.resource.itemRelativeUrl)}const v=l.portalItem.resourceFromPath(w);(0,o.jc)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.gi)(t).then((e=>{v.path=`${b}.${(0,c.B)({type:"blob",blob:e})}`,u[d]=v.itemRelativeUrl})).catch((()=>{})));const I=r?.compress??!1;l.resources&&f({...e,resource:v,content:y,compress:I,updates:l.resources.toAdd}),u[d]=v.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:i,content:n,compress:s}){r.push({resource:i,content:n,compress:s,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},62357:(e,t,r)=>{r.d(t,{F2:()=>o,Wz:()=>a,t_:()=>l,vW:()=>u});const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,n="screenUtils.toPt: input not recognized!",s=96;function o(e){return e?e/72*s:0}function a(e){return e?72*e/s:0}function l(e){if("string"==typeof e){const t=e.match(i);if(t){const r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),n="-"===e.charAt(0),s="px"===i?a(r):r;return n?-s:s}return console.warn(n),null}return e}function u(e=0,t=0){return{x:e,y:t}}},41123:(e,t,r)=>{r.d(t,{D:()=>n,z:()=>s});const i="randomUUID"in crypto;function n(){if(i)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 s(){return`{${n()}}`}},79235:(e,t,r)=>{r.d(t,{Z:()=>w});var i,n=r(43697),s=r(67676),o=r(35454),a=r(96674),l=r(67900),u=r(20941),d=r(5600),c=(r(75215),r(80442),r(71715)),p=r(52011),h=r(30556);const y=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=y.jsonValues.slice();(0,s.e$)(f,"orthometric");const g=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(b(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||g.read(e)||(r?.messages&&r.messages.push(b(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function b(e,t){return new u.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,d.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal"}}}})],m.prototype,"heightModel",void 0),(0,n._)([(0,h.c)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,n._)([(0,c.r)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,n._)([(0,d.Cb)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:g.write}}}})],m.prototype,"heightUnit",void 0),(0,n._)([(0,c.r)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,n._)([(0,c.r)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,n._)([(0,d.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,n._)([(0,c.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,n._)([(0,p.j)("esri.geometry.HeightModelInfo")],m);const w=m},57476:(e,t,r)=>{r.r(t),r.d(t,{default:()=>me});var i=r(43697),n=r(38171),s=r(51773),o=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382),r(81571),r(91423),r(32400)),a=r(3172),l=r(2368),u=r(46791),d=r(20102),c=r(92604),p=r(16453),h=r(95330),y=r(17445),f=r(17452),g=r(5600),m=(r(75215),r(67676),r(80442),r(1153)),b=r(71715),w=r(52011),v=r(31263),I=r(87085),S=r(54295),_=r(17287),M=r(66361),F=r(38009),j=r(16859),C=r(72965),x=r(37253),L=r(66677),R=r(71592),O=r(15506),A=r(21506),q=r(45574),E=r(61960),P=r(85857),Z=r(53518),k=r(99514),T=r(35671),U=r(51161),D=r(54306),N=r(30707),V=r(56765),G=r(87344),H=r(96674);let Q=class extends H.wq{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i._)([(0,g.Cb)({type:String,json:{read:!0,write:!0}})],Q.prototype,"name",void 0),(0,i._)([(0,g.Cb)({type:String,json:{read:!0,write:!0}})],Q.prototype,"field",void 0),(0,i._)([(0,g.Cb)({type:[Number],json:{read:!0,write:!0}})],Q.prototype,"currentRangeExtent",void 0),(0,i._)([(0,g.Cb)({type:[Number],json:{read:!0,write:!0}})],Q.prototype,"fullRangeExtent",void 0),(0,i._)([(0,g.Cb)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:!0}})],Q.prototype,"type",void 0),Q=(0,i._)([(0,w.j)("esri.layers.support.RangeInfo")],Q);var $,J=r(22974),B=r(28576),z=r(20941),W=r(38913),K=r(73615);let Y=$=class extends((0,H.eC)(u.Z.ofType(W.Z))){constructor(e){super(e)}clone(){return new $(this.items.map((e=>e.clone())))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map((r=>{if(!t.equals(r.spatialReference)){if(!(0,K.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages&&e.messages.push(new z.Z("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new W.Z;(0,K.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i})).filter((e=>null!=e)):(e?.messages&&e.messages.push(new z.Z("scenefilter:unsupported","Writing Scene filters without context layer is not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),this.toArray().map((t=>t.toJSON(e))))}static fromJSON(e,t){const r=new $;return e.forEach((e=>r.add(W.Z.fromJSON(e,t)))),r}};Y=$=(0,i._)([(0,w.j)("esri.layers.support.PolygonCollection")],Y);const X=Y;var ee,te=r(25929);let re=ee=class extends H.wq{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new X,this._geometriesSource=null}initialize(){this.addHandles((0,y.on)((()=>this.geometries),"after-changes",(()=>this.geometries=this.geometries),y.Z_))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=X.fromJSON(e,r):this._geometriesSource={url:(0,te.f)(e,r),context:r}}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,n=await(0,a.Z)(r,{responseType:"json",signal:t?.signal}),s=e.toJSON(),o=n.data.map((e=>({...e,spatialReference:s})));this.geometries=X.fromJSON(o,i),this._geometriesSource=null}clone(){const e=new ee({geometries:(0,J.d9)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i._)([(0,g.Cb)({type:["disjoint","contains"],nonNullable:!0,json:{write:!0}})],re.prototype,"spatialRelationship",void 0),(0,i._)([(0,g.Cb)({type:X,nonNullable:!0,json:{write:!0}}),(0,B.B)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],re.prototype,"geometries",void 0),(0,i._)([(0,b.r)(["web-scene","portal-item"],"geometries")],re.prototype,"readGeometries",null),re=ee=(0,i._)([(0,w.j)("esri.layers.support.SceneFilter")],re);const ie=re;var ne=r(40555),se=r(14165),oe=r(36405),ae=r(72245),le=r(32163),ue=r(2358),de=r(19833),ce=r(65242);const pe=new Set(["3DObject","Point"]),he=(0,Z.v)();let ye=class extends((0,M.o1)((0,x.Vt)((0,_.Y)((0,F.q)((0,j.I)((0,C.M)((0,p.R)((0,S.V)((0,l.J)(I.Z)))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new u.Z,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new k.Z(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:U.U4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,q.sX)(this.associatedLayer)}get geometryType(){return ge[this.profile]||"mesh"}set renderer(e){(0,T.YN)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:O.C;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:n,supportsUploadWithItemId:s,supportsGeometryUpdate:o,supportsReturnServiceEditsInSourceSpatialReference:a},data:{supportsZ:l,supportsM:u,isVersioned:d,supportsAttachment:c},operations:{supportsEditing:p,supportsAdd:h,supportsUpdate:y,supportsDelete:f,supportsQuery:g,supportsQueryAttachments:m,supportsAsyncConvert3D:b}}=e,w=e.operations.supportsChangeTracking,v=!!this.associatedLayer?.infoFor3D&&(0,ae.Rx)();return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:a,supportsRollbackOnFailure:n,supportsGeometryUpdate:v&&o,supportsUploadWithItemId:s},data:{supportsAttachment:c,supportsZ:l,supportsM:u,isVersioned:d},operations:{supportsQuery:g,supportsQueryAttachments:m,supportsEditing:p&&w,supportsAdd:v&&h&&w,supportsDelete:v&&f&&w,supportsUpdate:y&&w,supportsAsyncConvert3D:b}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e))),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e))),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&fe[r]?fe[r]:(c.Z.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=null!=e?e.signal:null;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.r9),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await(0,ne.y)(this,{origin:"service"},t),(0,T.YN)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){c.Z.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new se.Z;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e}))}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new d.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new d.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,T.Lk)(this.fieldsIndex,await(0,de.e7)(this,(0,de.V5)(this)));return(0,ue.xe)(this.parsedUrl.path,this.attributeStorageInfo??[],e,t,r)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new d.Z("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new n.Z;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryAttachments(e,t)))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(c.Z.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,le.eZ)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new d.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new d.Z("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some((t=>t.name===e))}async queryCachedStatistics(e,t){if(await this.load(t),!this.statisticsInfo)throw new d.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new d.Z("scenelayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.statisticsInfo)if(e.name===r.name){const r=(0,f.v_)(this.parsedUrl.path,e.href);return(0,a.Z)(r,{query:{f:"json",token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new d.Z("scenelayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(x.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(x.xp.SAVE,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(1444).then(r.bind(r,14720));let n=t;await this.load();const s=this.associatedLayer;if(!s)throw new d.Z(`${this.type}-layer:not-editable`,"Service is not editable");await s.load();const{globalIdField:o}=s;return(0,L.M8)(s.url)&&s.infoFor3D&&null!=e.deleteFeatures&&null!=o&&(n={...n,globalIdToObjectId:await(0,q.HW)(s,e.deleteFeatures,o)}),i(this,s.source,e,n)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new d.Z(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}on(e,t){return super.on(e,t)}validateLayer(e){if(e.layerType&&!pe.has(e.layerType))throw new d.Z("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new d.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new d.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const n=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=n;break;case"vertex-reference-frame":r=!0,i=!n;break;default:r=!1}}if(!r)throw new d.Z("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new d.Z("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new d.Z("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!(!this.attributeStorageInfo||!this.attributeStorageInfo.some((t=>t.name===e.name))),r=!!this.associatedLayer?.fields?.some((t=>t&&e.name===t.name)),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPopupOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled"],t=(0,m.vw)(this);for(let r=0;r<e.length;r++){const i=e[r],n=this.originIdOf(i),s=this.associatedLayer.originIdOf(i);n<s&&(s===v.s3.SERVICE||s===v.s3.PORTAL_ITEM)&&t.setAtOrigin(i,this.associatedLayer[i],s)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.editingInfo?.lastEditDate,t=this.associatedLayer?.serverGens,r=this.associatedLayer?.getAtOrigin("fullExtent","service");(0,ae.Rx)()&&null!=this.associatedLayer?.infoFor3D&&r&&(0,L.M8)(this.associatedLayer?.url)&&e&&this.serviceUpdateTimeStamp?.lastUpdate!==e.getTime()&&(this.serviceUpdateTimeStamp||t?.minServerGen!==t?.serverGen)&&(0,m.vw)(this).setAtOrigin("fullExtent",r.clone(),v.s3.SERVICE)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,R.w)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,apiKey:this.apiKey,signal:e}),n=await G.T.FeatureLayer();this.associatedLayer=new n({url:t,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,h.D_)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){await(0,y.N1)((()=>this.popupEnabled&&null!=this.popupTemplate));const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?c.Z.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):c.Z.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${e}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,oe.LR)(c.Z.getLogger(this),(0,oe.Wb)("Mesh scene layers","relative-to-scene",e)),(0,oe.LR)(c.Z.getLogger(this),(0,oe.kf)("Scene layers",e))}};(0,i._)([(0,g.Cb)({types:{key:"type",base:E.B,typeMap:{selection:P.Z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],ye.prototype,"featureReduction",void 0),(0,i._)([(0,g.Cb)({type:[Q],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],ye.prototype,"rangeInfos",void 0),(0,i._)([(0,g.Cb)({json:{read:!1}})],ye.prototype,"associatedLayer",void 0),(0,i._)([(0,g.Cb)({type:["show","hide"]})],ye.prototype,"listMode",void 0),(0,i._)([(0,g.Cb)({type:["ArcGISSceneServiceLayer"]})],ye.prototype,"operationalLayerType",void 0),(0,i._)([(0,g.Cb)({json:{read:!1},readOnly:!0})],ye.prototype,"type",void 0),(0,i._)([(0,g.Cb)({...he.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ye.prototype,"fields",void 0),(0,i._)([(0,g.Cb)()],ye.prototype,"types",null),(0,i._)([(0,g.Cb)()],ye.prototype,"typeIdField",null),(0,i._)([(0,g.Cb)()],ye.prototype,"templates",null),(0,i._)([(0,g.Cb)()],ye.prototype,"formTemplate",null),(0,i._)([(0,g.Cb)({readOnly:!0})],ye.prototype,"fieldsIndex",null),(0,i._)([(0,g.Cb)({type:V.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],ye.prototype,"floorInfo",void 0),(0,i._)([(0,g.Cb)(he.outFields)],ye.prototype,"outFields",void 0),(0,i._)([(0,g.Cb)({type:U.U4,readOnly:!0,json:{read:!1}})],ye.prototype,"nodePages",void 0),(0,i._)([(0,b.r)("service","nodePages",["nodePages","pointNodePages"])],ye.prototype,"readNodePages",null),(0,i._)([(0,g.Cb)({type:[U.QI],readOnly:!0})],ye.prototype,"materialDefinitions",void 0),(0,i._)([(0,g.Cb)({type:[U.Yh],readOnly:!0})],ye.prototype,"textureSetDefinitions",void 0),(0,i._)([(0,g.Cb)({type:[U.H3],readOnly:!0})],ye.prototype,"geometryDefinitions",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],ye.prototype,"serviceUpdateTimeStamp",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],ye.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,g.Cb)({readOnly:!0})],ye.prototype,"statisticsInfo",void 0),(0,i._)([(0,g.Cb)({type:u.Z.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],ye.prototype,"excludeObjectIds",void 0),(0,i._)([(0,g.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ye.prototype,"definitionExpression",void 0),(0,i._)([(0,g.Cb)({type:ie,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],ye.prototype,"filter",void 0),(0,i._)([(0,g.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],ye.prototype,"path",void 0),(0,i._)([(0,g.Cb)(A.PV)],ye.prototype,"elevationInfo",null),(0,i._)([(0,g.Cb)({readOnly:!0,json:{read:!1}})],ye.prototype,"effectiveCapabilities",null),(0,i._)([(0,g.Cb)({readOnly:!0})],ye.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,g.Cb)({type:String})],ye.prototype,"geometryType",null),(0,i._)([(0,g.Cb)(A.iR)],ye.prototype,"labelsVisible",void 0),(0,i._)([(0,g.Cb)({type:[D.Z],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:N.r},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:N.r},write:!0}})],ye.prototype,"labelingInfo",void 0),(0,i._)([(0,g.Cb)(A.rn)],ye.prototype,"legendEnabled",void 0),(0,i._)([(0,g.Cb)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,ce.b)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],ye.prototype,"opacity",void 0),(0,i._)([(0,g.Cb)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ye.prototype,"priority",void 0),(0,i._)([(0,g.Cb)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ye.prototype,"semantic",void 0),(0,i._)([(0,g.Cb)({types:o.o,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],ye.prototype,"renderer",null),(0,i._)([(0,g.Cb)({json:{read:!1}})],ye.prototype,"cachedDrawingInfo",void 0),(0,i._)([(0,b.r)("service","cachedDrawingInfo")],ye.prototype,"readCachedDrawingInfo",null),(0,i._)([(0,g.Cb)({readOnly:!0,json:{read:!1}})],ye.prototype,"capabilities",null),(0,i._)([(0,g.Cb)({type:Boolean,json:{read:!1}})],ye.prototype,"editingEnabled",null),(0,i._)([(0,g.Cb)({readOnly:!0,json:{write:!1,read:!1}})],ye.prototype,"infoFor3D",null),(0,i._)([(0,g.Cb)({readOnly:!0,json:{write:!1,read:!1}})],ye.prototype,"relationships",null),(0,i._)([(0,g.Cb)(A.C_)],ye.prototype,"popupEnabled",void 0),(0,i._)([(0,g.Cb)({type:s.Z,json:{name:"popupInfo",write:!0}})],ye.prototype,"popupTemplate",void 0),(0,i._)([(0,g.Cb)({readOnly:!0,json:{read:!1}})],ye.prototype,"defaultPopupTemplate",null),(0,i._)([(0,g.Cb)({type:String,json:{read:!1}})],ye.prototype,"objectIdField",void 0),(0,i._)([(0,b.r)("service","objectIdField",["objectIdField","fields"])],ye.prototype,"readObjectIdField",null),(0,i._)([(0,g.Cb)({type:String,json:{read:!1}})],ye.prototype,"globalIdField",void 0),(0,i._)([(0,b.r)("service","globalIdField",["globalIdField","fields"])],ye.prototype,"readGlobalIdField",null),(0,i._)([(0,g.Cb)({readOnly:!0,type:String,json:{read:!1}})],ye.prototype,"displayField",null),(0,i._)([(0,g.Cb)({type:String,json:{read:!1}})],ye.prototype,"profile",void 0),(0,i._)([(0,b.r)("service","profile",["store.profile"])],ye.prototype,"readProfile",null),(0,i._)([(0,g.Cb)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],ye.prototype,"normalReferenceFrame",void 0),(0,i._)([(0,g.Cb)(A.YI)],ye.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,g.Cb)({json:{read:!1,origins:{service:{read:!0}}}})],ye.prototype,"serviceItemId",void 0),ye=(0,i._)([(0,w.j)("esri.layers.SceneLayer")],ye);const fe={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},ge={"mesh-pyramids":"mesh",points:"point",lines:"polyline",polygons:"polygon"},me=ye},66361:(e,t,r)=>{r.d(t,{jF:()=>d,lQ:()=>h,o1:()=>g});var i=r(43697),n=r(32448),s=r(22974),o=r(95330),a=(r(92604),r(75215),r(20102),r(80442),r(52011)),l=r(18596);const u=new n.Z.EventEmitter;function d(e,t,r=null,i=!1){const n=(0,o.hh)();return i=null==t||i,u.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:n.promise}),n}const c="esri.layers.mixins.EditBusLayer",p=Symbol(c);function h(e){return null!=e&&"object"==typeof e&&p in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,r){const i=new URL(e).host,n=l.Jp.get(i),s=e=>!e||e===n;return s(t)&&s(r)||t===r}const g=e=>{var t;let r=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:n,result:o}=e,a=t===this.url,u=null!=r&&null!=this.layerId&&r===this.layerId,d=y(this),c=y(this)&&f(t,i,this.gdbVersion);if(!a||d&&!c||!u&&!n)return;const p=o.then((e=>{if(u&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.d9)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:r,updates:i,deletes:n}=t.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:r?r.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:n?n.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:i?i.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,s.d9)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.d9)(e.historicMoment)};return this.emit("edits",o),o}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.d9)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.d9)(e.historicMoment)}})).then((e=>("historicMoment"in this&&this.historicMoment!==e.historicMoment&&(0,l.JV)(t,i)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,n=t===this.url,s=y(this),o=y(this)&&f(t,r,this.gdbVersion),a=y(this)&&!f(t,this.gdbVersion,null);n&&s&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then((()=>{this.addHandles(function(e){return u.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return u.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}};return t=p,r=(0,i._)([(0,a.j)(c)],r),r}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var i=r(43697),n=r(5600),s=(r(75215),r(67676),r(80442),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,s.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},61960:(e,t,r)=>{r.d(t,{B:()=>a});var i=r(43697),n=r(96674),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011));let a=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}})],a.prototype,"type",void 0),a=(0,i._)([(0,o.j)("esri.layers.support.FeatureReduction")],a)},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)),a=r(61960);let l=i=class extends a.B{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,n._)([(0,s.Cb)({type:["selection"]})],l.prototype,"type",void 0),l=i=(0,n._)([(0,o.j)("esri.layers.support.FeatureReductionSelection")],l);const u=l},45574:(e,t,r)=>{r.d(t,{JD:()=>w,Jj:()=>S,sX:()=>U,Ob:()=>N,rP:()=>q,FV:()=>M,nU:()=>T,Ci:()=>F,Fr:()=>b,HW:()=>G,gG:()=>A,uA:()=>V,SU:()=>j,KE:()=>L,VG:()=>x,tD:()=>C,kp:()=>R,C9:()=>O,rk:()=>E,kZ:()=>P,JY:()=>Z,Y5:()=>I,uj:()=>_});var i=r(40330),n=r(9790),s=r(66643),o=r(20102),a=r(35454),l=r(42033),u=r(63213),d=r(14165);async function c(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=p(e));const i=function(e){return p(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),n=e.capabilities.query.supportsPagination;t.start=0,t.num=i;let s=null;for(;;){const o=await e.source.queryFeaturesJSON(t,r);if(null==s?s=o:s.features=s.features.concat(o.features),s.exceededTransferLimit=o.exceededTransferLimit,!n||!o.exceededTransferLimit)break;t.start+=i}return s}function p(e){return e.capabilities.query.supportsMaxRecordCountFactor?d.Z.MAX_MAX_RECORD_COUNT_FACTOR:1}var h=r(84230),y=r(84382),f=r(81571),g=r(56545),m=r(75935);const b=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function w(e,t,r,i){const n=await k(e);if(await v(e,t,i),!n.addAttachment)throw new o.Z(i,"Layer source does not support addAttachment capability");return n.addAttachment(t,r)}function v(e,t,r){const{attributes:i}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?i?n&&i[n]?Promise.resolve():Promise.reject(new o.Z(r,`feature is missing the identifying attribute ${n}`)):Promise.reject(new o.Z(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.Z(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.Z(r,"this layer doesn't support attachments"))}async function I(e,t,r,i,n){const s=await k(e);if(await v(e,t,n),!s.updateAttachment)throw new o.Z(n,"Layer source does not support updateAttachment capability");return s.updateAttachment(t,r,i)}async function S(e,t,i){const{applyEdits:n}=await r.e(4720).then(r.bind(r,14720)),s=await e.load(),{source:o,globalIdField:a}=s;let l=i;return("feature"===s.type?s.infoFor3D:null)&&null!=t.deleteFeatures&&null!=a&&(l={...l,globalIdToObjectId:await G(e,t.deleteFeatures,a)}),n(s,o,t,i)}async function _(e,t,i){const{uploadAssets:n}=await r.e(4720).then(r.bind(r,14720)),s=await e.load();return n(s,s.source,t,i)}async function M(e,t,r,i){const n=await k(e);if(await v(e,t,i),!n.deleteAttachments)throw new o.Z(i,"Layer source does not support deleteAttachments capability");return n.deleteAttachments(t,r)}async function F(e,t,r){const i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new o.Z(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function j(e,t,r,i){t=g.Z.from(t),await e.load();const n=e.source,s=e.capabilities;if(!s?.data?.supportsAttachment)throw new o.Z(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:d,size:c,start:p,where:h}=t;if(!s?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||c?.length>0||d||p||h))throw new o.Z(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||h))throw new o.Z(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!n.queryAttachments)throw new o.Z(i,"Layer source does not support queryAttachments capability",t);return n.queryAttachments(t)}async function C(e,t,r,i){const n=await k(e);if(!n.queryObjectIds)throw new o.Z(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(d.Z.from(t)??e.createQuery(),r)}async function x(e,t,r,i){const n=await k(e);if(!n.queryFeatureCount)throw new o.Z(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(d.Z.from(t)??e.createQuery(),r)}async function L(e,t,r,i){const n=await k(e);if(!n.queryExtent)throw new o.Z(i,"Layer source does not support queryExtent capability");return n.queryExtent(d.Z.from(t)??e.createQuery(),r)}async function R(e,t,r,i){const n=await k(e);if(!n.queryRelatedFeatures)throw new o.Z(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(m.default.from(t),r)}async function O(e,t,r,i){const n=await k(e);if(!n.queryRelatedFeaturesCount)throw new o.Z(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(m.default.from(t),r)}async function A(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,l.E)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function q(e){const t=new d.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:n,timeExtent:s}=e;return t.timeExtent=null!=n&&null!=s?s.offset(-n.value,n.unit):s||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function E(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 P(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 Z(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 k(e){return(await e.load()).source}async function T(e,t,r){const n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const n=await(0,h.oP)(e,t);n&&(r=await i.id.checkSignInStatus(`${n}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(n,r)}function U(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const D=(0,u.d)({types:n.QT});function N(e,t){if(e.defaultSymbol)return e.types?.length?new f.Z({defaultSymbol:D(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:D(e.symbol,e,t)})))}):new y.Z({symbol:D(e.defaultSymbol,e,t)})}function V(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 G(e,t,r){if(null==t)return null;const i=[],{objectIdField:n}=e;if(t.forEach((e=>{let t=null;if("attributes"in e){const{attributes:i}=e;t={globalId:i[r],objectId:null!=i[n]&&-1!==i[n]?i[n]: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 o=e.createQuery();o.where=i.map((e=>`${r}='${e}'`)).join(" OR "),o.returnGeometry=!1,o.outFields=[n,r],o.cacheHint=!1;const a=await(0,s.mt)(c(e,o));if(!a.ok)return null;const l=new Map,u=a.value.features;for(const e of u){const t=e.attributes[r],i=e.attributes[n];null!=t&&null!=i&&-1!==i&&l.set(t,i)}return l}},53518:(e,t,r)=>{r.d(t,{v:()=>l});var i=r(80442),n=r(92604),s=r(1231),o=r(99514),a=r(35671);function l(){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)&&n.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 o.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||n.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.Q0)(this.fieldsIndex,e)}}}}},66094:(e,t,r)=>{r.d(t,{B:()=>n});var i=r(17452);function n(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Ml)(e);return l[t]||o}(e.url)}(e)]||a}const s={},o="text/plain",a=s[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)s[l[e]]=e},40555:(e,t,r)=>{r.d(t,{y:()=>o});var i=r(66643),n=r(95330),s=r(20941);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.q6)(o.populateFromStyle());if((0,n.k_)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new s.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},75935:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var i,n=r(43697),s=(r(66577),r(96674)),o=r(22974),a=r(5600),l=r(75215),u=r(52011),d=r(30556),c=r(10158),p=r(82971);let h=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,o.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,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"cacheHint",void 0),(0,n._)([(0,a.Cb)({type:c.n,json:{write:!0}})],h.prototype,"dynamicDataSource",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"gdbVersion",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"geometryPrecision",void 0),(0,n._)([(0,a.Cb)({type:Date})],h.prototype,"historicMoment",void 0),(0,n._)([(0,d.c)("historicMoment")],h.prototype,"_writeHistoricMoment",null),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"maxAllowableOffset",void 0),(0,n._)([(0,a.Cb)({type:[Number],json:{write:!0}})],h.prototype,"objectIds",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],h.prototype,"orderByFields",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],h.prototype,"outFields",void 0),(0,n._)([(0,a.Cb)({type:p.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],h.prototype,"outSpatialReference",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"relationshipId",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],h.prototype,"start",void 0),(0,n._)([(0,d.c)("start"),(0,d.c)("num")],h.prototype,"writeStart",null),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],h.prototype,"num",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"returnGeometry",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],h.prototype,"returnM",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],h.prototype,"returnZ",void 0),(0,n._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],h.prototype,"where",void 0),h=i=(0,n._)([(0,u.j)("esri.rest.support.RelationshipQuery")],h),h.from=(0,l.se)(h);const y=h},18596:(e,t,r)=>{r.d(t,{JV:()=>a,Jp:()=>n,Px:()=>o,U8:()=>i});const i=(0,r(41123).z)(),n=new Map,s=new Map;async function o(e,t,n=!1){if(!e||!t)return!0;const o=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=s.get(o)?.entries();if(a)for(const[e,s]of a)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&n){const[{deleteForwardEdits:t},{default:n}]=await Promise.all([r.e(1316).then(r.bind(r,51316)),r.e(4573).then(r.bind(r,84573))]);return t(o,e,new n({sessionId:i,moment:s.moment}))}return t}return!0}function a(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=s.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map}}]);