@arcgis/core 4.34.0-next.62 → 4.34.0-next.64

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 (227) hide show
  1. package/AggregateGraphic.js +1 -1
  2. package/Graphic.js +1 -1
  3. package/TrackGraphic.js +1 -1
  4. package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.js +1 -1
  5. package/analysis/VolumeMeasurementAnalysis.js +1 -1
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/{5de7c2a80bd9c81cefe2.js → 070b29cba896f46537f9.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{8c0e11f781607239749d.js → 0a36df6fdab95785d1ce.js} +1 -1
  9. package/assets/esri/core/workers/chunks/0b01c87db77246632ad9.js +1 -0
  10. package/assets/esri/core/workers/chunks/0b24a6c06d1becbb6815.js +1 -0
  11. package/assets/esri/core/workers/chunks/0cdf6b51f2a63f348530.js +1 -0
  12. package/assets/esri/core/workers/chunks/10ec10ca361842efce92.js +1 -0
  13. package/assets/esri/core/workers/chunks/{bdc18ef9cdc8242f014e.js → 1143313f2f6f34deaad7.js} +1 -1
  14. package/assets/esri/core/workers/chunks/2394ac65d64e50399d76.js +1 -0
  15. package/assets/esri/core/workers/chunks/{69fbe363bb130fdd8146.js → 3d6f07e04f77cc0a7506.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{db7678104b18534482e3.js → 426232091caf8608e5f1.js} +1 -1
  17. package/assets/esri/core/workers/chunks/47febd4de836a33b51b1.js +1 -0
  18. package/assets/esri/core/workers/chunks/487afbf352d12c745430.js +1 -0
  19. package/assets/esri/core/workers/chunks/{3fd09a7c05583a57a317.js → 5d12862042b6bf9f9d54.js} +1 -1
  20. package/assets/esri/core/workers/chunks/5d65987f2c1b5c56a799.js +1 -0
  21. package/assets/esri/core/workers/chunks/5de07f7a09eb9f3ab666.js +1 -0
  22. package/assets/esri/core/workers/chunks/{ba0c7339fa19cc7cbde7.js → 5e1d6704ee0aa41b1d06.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{4ac127cefa3aa5e93e78.js → 657b01a6df8dc46c5209.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{71b222089f5e9dcee474.js → 6a1b652ccbf58ac44658.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{4050ddb580d364d9e205.js → 6ab435423acb0ed0b1c7.js} +1 -1
  26. package/assets/esri/core/workers/chunks/7b7f5028a488bb9c10f4.js +1 -0
  27. package/assets/esri/core/workers/chunks/{d83bdc13c3cad3eee7be.js → 7c3a1958990de095d3a1.js} +1 -1
  28. package/assets/esri/core/workers/chunks/808cfed7022e3846d5b2.js +1 -0
  29. package/assets/esri/core/workers/chunks/{b68b54be3d67595a9446.js → 861a6d6fe7958df36aa1.js} +35 -34
  30. package/assets/esri/core/workers/chunks/8bd5a0ff7dcf1067bf53.js +1 -0
  31. package/assets/esri/core/workers/chunks/{f462a138912e5379b6a7.js → 904c116c6b093e0e970c.js} +1 -1
  32. package/assets/esri/core/workers/chunks/99b20eef2893047fac10.js +1 -0
  33. package/assets/esri/core/workers/chunks/a16b471c3706ee37f9b6.js +1 -0
  34. package/assets/esri/core/workers/chunks/{bb2ab663e3e5597f2104.js → a1bd4eecca1e3272bffb.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{8005ae652361f506bc5f.js → a29fb90226bd08157bd1.js} +1 -1
  36. package/assets/esri/core/workers/chunks/a596d6ccb6103e594031.js +1 -0
  37. package/assets/esri/core/workers/chunks/a5e6359fadbd699b1c8e.js +1 -0
  38. package/assets/esri/core/workers/chunks/a7f3cdd9a249ef4572ce.js +1 -0
  39. package/assets/esri/core/workers/chunks/{d2bdd52d2291306a4e47.js → a80d769b0ed025f0df64.js} +1 -1
  40. package/assets/esri/core/workers/chunks/a987731d1b5449d8fb0c.js +1 -0
  41. package/assets/esri/core/workers/chunks/af83dddddbfe25194527.js +1 -0
  42. package/assets/esri/core/workers/chunks/{4d8d942fbd6750bb7567.js → b057e6d593c1607cae61.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{d707538b150d79050336.js → b1f1a26e7a2ef5b783ee.js} +1 -1
  44. package/assets/esri/core/workers/chunks/c337c1a2dbc452780dd7.js +1 -0
  45. package/assets/esri/core/workers/chunks/{a35a439f053d1fe0541b.js → c601bbdafdee5074b04f.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{d7ce68667bb355ef8e5d.js → c7a386ac90e58eb71935.js} +1 -1
  47. package/assets/esri/core/workers/chunks/c8694a27e2cf28b010e8.js +1 -0
  48. package/assets/esri/core/workers/chunks/cf69f6afeaf1229e032c.js +1 -0
  49. package/assets/esri/core/workers/chunks/d1e8220dcae1d01d3c35.js +1 -0
  50. package/assets/esri/core/workers/chunks/e12e8d69c05c182b6a69.js +1 -0
  51. package/assets/esri/core/workers/chunks/{220c8d6338f236298720.js → e6457ac25c0829ee039c.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{c77a97c723b8c17df186.js → e72aee3f857aa473822c.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{8374d87176486c1fc90e.js → eadac757f74470b89a36.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{7c23be93d394f1bee941.js → f6107f844f4feed42828.js} +1 -1
  55. package/assets/esri/core/workers/chunks/f76774781865cb1411b0.js +1 -0
  56. package/assets/esri/core/workers/chunks/fd04df45cdcc6ff52554.js +1 -0
  57. package/assets/esri/layers/support/rasterFormats/qb3-wasm.wasm +0 -0
  58. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  59. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  60. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  61. package/chunks/GaussianSplat.glsl.js +7 -0
  62. package/chunks/GaussianSplatComposition.glsl.js +7 -0
  63. package/chunks/GaussianSplatDepthComposition.glsl.js +11 -0
  64. package/chunks/RealisticTree.glsl.js +29 -28
  65. package/chunks/lyr3DMain.js +1 -1
  66. package/chunks/lyr3DWorker.js +1 -1
  67. package/chunks/qb3-wasm.js +5 -0
  68. package/chunks/vxlLayer.js +1 -1
  69. package/config.js +1 -1
  70. package/geometry/ellipsoidUtils.js +1 -1
  71. package/geometry/operators/geodeticUtilsOperator.d.ts +6 -0
  72. package/geometry/support/heightModelInfoUtils.js +1 -1
  73. package/graphic/AggregateGraphicOrigin.js +5 -0
  74. package/graphic/CSVGraphicOrigin.js +1 -1
  75. package/graphic/CatalogGraphicOrigin.js +1 -1
  76. package/graphic/FeatureGraphicOrigin.js +1 -1
  77. package/graphic/GeoJSONGraphicOrigin.js +1 -1
  78. package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
  79. package/graphic/OGCFeatureGraphicOrigin.js +1 -1
  80. package/graphic/OrientedImageryGraphicOrigin.js +1 -1
  81. package/graphic/ParquetGraphicOrigin.js +1 -1
  82. package/graphic/StreamGraphicOrigin.js +1 -1
  83. package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
  84. package/graphic/TrackGraphicOrigin.js +5 -0
  85. package/graphic/WFSGraphicOrigin.js +1 -1
  86. package/graphic/getPopupProvider.js +5 -0
  87. package/interfaces.d.ts +769 -30
  88. package/kernel.js +1 -1
  89. package/layers/GaussianSplatLayer.js +1 -1
  90. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  91. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  92. package/layers/VoxelWasmPerSceneView.js +1 -1
  93. package/layers/knowledgeGraph/nodeMovementUtils.js +1 -1
  94. package/layers/mixins/FeatureReductionLayer.js +1 -1
  95. package/layers/mixins/TrackableLayer.js +1 -1
  96. package/layers/support/GaussianSplatAtlasPageAllocator.js +5 -0
  97. package/layers/support/gaussianSplatUtils.js +5 -0
  98. package/layers/support/rasterDatasets/MRFRaster.js +1 -1
  99. package/layers/support/rasterFormats/Qb3.js +5 -0
  100. package/layers/support/rasterFormats/RasterCodec.js +1 -1
  101. package/layers/support/tiles3DUtils.js +5 -0
  102. package/package.json +1 -1
  103. package/rest/knowledgeGraph/GraphApplyEditsResult.js +1 -1
  104. package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
  105. package/rest/knowledgeGraphService.js +1 -1
  106. package/rest/lastMileDelivery/enums.js +5 -0
  107. package/rest/lastMileDelivery.d.ts +10 -0
  108. package/rest/lastMileDelivery.js +5 -0
  109. package/rest/route/utils.js +1 -1
  110. package/rest/support/JobInfo.js +1 -1
  111. package/rest/support/LastMileDeliveryParameters.d.ts +4 -0
  112. package/rest/support/LastMileDeliveryParameters.js +5 -0
  113. package/support/revision.js +1 -1
  114. package/symbols/patterns/StylePattern3D.js +1 -1
  115. package/symbols/patterns/styles.js +1 -1
  116. package/unionTypes.d.ts +3 -0
  117. package/views/2d/analysis/AnalysisView2D.js +5 -0
  118. package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +4 -0
  119. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +5 -0
  120. package/views/2d/analysis/analysisViewModuleImportUtils.js +5 -0
  121. package/views/2d/engine/webgl/Painter.js +1 -1
  122. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  123. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +5 -0
  124. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsDiffShader.js +5 -0
  125. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsMinMaxSumShader.js +5 -0
  126. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsStdDevShader.js +5 -0
  127. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsSumOfSquaredDiffShader.js +5 -0
  128. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  129. package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
  130. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  131. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  132. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  133. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  134. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  135. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  136. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  137. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  138. package/views/3d/analysis/AnalysisView3D.js +1 -1
  139. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  140. package/views/3d/analysis/DimensionAnalysisView3D.js +1 -1
  141. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
  142. package/views/3d/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +1 -1
  143. package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization.js +5 -0
  144. package/views/3d/analysis/ElevationProfile/ElevationProfileSceneLineComputation.js +1 -1
  145. package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization.js +1 -1
  146. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  147. package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
  148. package/views/3d/analysis/SliceAnalysisView3D.js +1 -1
  149. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  150. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  151. package/views/3d/analysis/analysisViewModuleImportUtils.js +5 -0
  152. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  153. package/views/3d/environment/Precipitation.js +1 -1
  154. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  155. package/views/3d/layers/GraphicsView3D.js +1 -1
  156. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  157. package/views/3d/layers/{IntegratedMesh3DTilesViewPerformanceInfo.js → Lyr3DViewPerformanceInfo.js} +1 -1
  158. package/views/3d/layers/Lyr3DWasm.js +1 -1
  159. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  160. package/views/3d/layers/graphics/Labeler.js +1 -1
  161. package/views/3d/layers/support/LayerViewAnalysisViewManager.js +1 -1
  162. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  163. package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
  164. package/views/3d/support/QualitySettings.js +1 -1
  165. package/views/3d/support/pointsOfInterest/ContentGeometryUpdates.js +1 -1
  166. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  167. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  168. package/views/3d/webgl-engine/core/shaderLibrary/util/ComputeCovariance.glsl.js +40 -0
  169. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js +59 -0
  170. package/views/3d/webgl-engine/core/shaderLibrary/util/QuaternionToRotationMatrix.glsl.js +23 -0
  171. package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
  172. package/views/3d/webgl-engine/effects/weather/SnowCover.glsl.js +4 -4
  173. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  174. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +5 -0
  175. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  176. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  177. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  178. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  179. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +5 -0
  180. package/views/3d/webgl-engine/shaders/GaussianSplatComposition.glsl.js +5 -0
  181. package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechnique.js +5 -0
  182. package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +5 -0
  183. package/views/3d/webgl-engine/shaders/GaussianSplatDepthComposition.glsl.js +5 -0
  184. package/views/3d/webgl-engine/shaders/GaussianSplatDepthCompositionTechnique.js +5 -0
  185. package/views/3d/webgl-engine/shaders/GaussianSplatDepthTechnique.js +5 -0
  186. package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +5 -0
  187. package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +5 -0
  188. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  189. package/views/SceneView.js +1 -1
  190. package/views/VideoView.js +1 -1
  191. package/views/View2D.js +1 -1
  192. package/views/analysis/AnalysisView.js +5 -0
  193. package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
  194. package/views/layers/FeatureLayerView.js +1 -1
  195. package/views/support/AnalysisViewManager.js +1 -1
  196. package/views/webgl/FramebufferObject.js +1 -1
  197. package/widgets/Locate/LocateViewModel.js +1 -1
  198. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  199. package/assets/esri/core/workers/chunks/08d420cd7cfa19a10fa4.js +0 -1
  200. package/assets/esri/core/workers/chunks/17abab49db1813d3e192.js +0 -1
  201. package/assets/esri/core/workers/chunks/182383fd00008606bfaa.js +0 -1
  202. package/assets/esri/core/workers/chunks/188feb2bcbf8e48e3163.js +0 -1
  203. package/assets/esri/core/workers/chunks/3124a8516e815efec973.js +0 -1
  204. package/assets/esri/core/workers/chunks/3461701a15be46603c56.js +0 -1
  205. package/assets/esri/core/workers/chunks/36acf191a2d48560c796.js +0 -1
  206. package/assets/esri/core/workers/chunks/40e1fbfbf3f3979b3713.js +0 -1
  207. package/assets/esri/core/workers/chunks/4b1daffa97fd90a554a0.js +0 -1
  208. package/assets/esri/core/workers/chunks/4b68783e8d1415d0a171.js +0 -1
  209. package/assets/esri/core/workers/chunks/5915f5ba9064097aee79.js +0 -1
  210. package/assets/esri/core/workers/chunks/5ed7e139c72cd2b3ddba.js +0 -1
  211. package/assets/esri/core/workers/chunks/702d2c668dedf83421ca.js +0 -1
  212. package/assets/esri/core/workers/chunks/7b2ec80dca0fdb0442cf.js +0 -1
  213. package/assets/esri/core/workers/chunks/7b9178c3826f9ef52a00.js +0 -1
  214. package/assets/esri/core/workers/chunks/9a20390602126995f831.js +0 -1
  215. package/assets/esri/core/workers/chunks/a2150baf0661e2f28011.js +0 -1
  216. package/assets/esri/core/workers/chunks/a532614aa65fb52dee7b.js +0 -1
  217. package/assets/esri/core/workers/chunks/abededd48e0ea6cfec01.js +0 -1
  218. package/assets/esri/core/workers/chunks/ae1cb4c65d72217ae4d4.js +0 -1
  219. package/assets/esri/core/workers/chunks/c1c6202f7bef24b5db26.js +0 -1
  220. package/assets/esri/core/workers/chunks/c75b0243e5bb84738419.js +0 -1
  221. package/assets/esri/core/workers/chunks/d47c3431c501d77b1779.js +0 -1
  222. package/assets/esri/core/workers/chunks/f6d91256c4e5f8a0d5c0.js +0 -1
  223. package/assets/esri/core/workers/chunks/f711aeba1a2c184ddb43.js +0 -1
  224. package/graphic/isPopupProviderGraphicOrigin.js +0 -5
  225. package/views/2d/analysisViewModuleImportUtils.js +0 -5
  226. package/views/3d/analysis/ElevationProfile/ElevationProfileLinesVisualization.js +0 -5
  227. package/views/3d/analysisViewModuleImportUtils.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5181],{4197:(e,t,r)=>{r.d(t,{Vj:()=>u,cj:()=>o,jh:()=>s,l5:()=>a,xm:()=>l});var i=r(34275),n=r(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function l(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function o(e){return[...e]}function u(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},8303:(e,t,r)=>{r.d(t,{A:()=>I});var i=r(31635),n=r(92602),s=r(70333),l=r(78888),a=r(60999),o=r(49186),u=r(53966),p=r(97768),c=r(74887),m=r(84952),d=r(10107),h=(r(44208),r(87811),r(36005)),y=r(40608),g=r(43937),f=r(77548),v=r(20655),b=r(80812),w=r(41318),x=r(10407);const I=e=>{const t=e;let I=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let l,a;if(n)l=r.portal.url;else try{l=await(0,f.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!l||!(0,m.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const o=!0,u=!1,p=!1;if(!a)return{features:{edit:o,fullEdit:u},content:{updateItem:p}};try{if(n?await r.reload():(r=new b.default({id:e,portal:{url:l}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:o,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,x.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,m.S8)(n.restUrl)===(0,m.S8)(i))return n.user;const o=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,l.A)(o,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,m.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new o.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,d.MZ)({type:b.default})],I.prototype,"portalItem",null),(0,i.Cg)([(0,h.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,i.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,i.Cg)([(0,d.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,i.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],I),I},M={credential:null,user:null}},9093:(e,t,r)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[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]]}r.d(t,{o8:()=>n,vt:()=>i,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:i,fromValues:function(e,t,r,i,n,s,l,a,o,u,p,c,m,d,h,y){return[e,t,r,i,n,s,l,a,o,u,p,c,m,d,h,y]}},Symbol.toStringTag,{value:"Module"}))},16494:(e,t,r)=>{r.d(t,{W5:()=>l});var i=r(37330);const n=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),s=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],l=new i.I({whiteList:n,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(s.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)},26253:(e,t,r)=>{r.d(t,{T:()=>c});var i=r(31635),n=r(69540),s=r(25482),l=r(88930),a=r(10107),o=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),p=r(73133);let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,l.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,o.e)(p.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i.Cg)([(0,u.$)("esri.time.TimeInterval")],c)},33446:(e,t,r)=>{r.d(t,{C:()=>l,m:()=>s});var i=r(49186),n=r(74887);async function s(e,t,r){let s;try{s=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,n.Te)(r),s}async function l(e,t,r,s,l){let a;try{a=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,n.Te)(l),a}},38458:(e,t,r)=>{r.d(t,{m:()=>n});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function n(e){return null!=e&&i.some(([t,r])=>e>=t&&e<=r)}},38961:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(31635),n=r(7762),s=r(36708),l=r(10107),a=r(40608),o=r(80559);let u=class extends n.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,o.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new n.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,l.MZ)()],u.prototype,"getCollections",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,i.Cg)([(0,a.$)("esri.core.CollectionFlattener")],u)},50498:(e,t,r)=>{r.d(t,{Ye:()=>c,gy:()=>p,yR:()=>m});var i=r(66552),n=r(5443),s=r(91075),l=r(48526),a=r(86738),o=r(39829),u=r(82799);const p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),m={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:l.A,point:a.A,polyline:u.A,polygon:o.A}}},51904:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Te});var i=r(31635),n=r(92602),s=r(52106),l=r(13874),a=r(78888),o=r(7762),u=r(38961),p=r(49186),c=r(66552),m=r(4718),d=r(92071),h=r(74887),y=r(36708),g=r(16494),f=r(84952),v=r(10107),b=r(56507),w=r(36005),x=r(40608),I=r(43937),M=r(49422),C=r(5443),T=r(16930),S=r(83960),E=r(21325),A=r(4146),N=r(63074),F=r(16131),O=r(8303),_=r(54310),P=r(25036),Z=r(82935),U=r(38458),L=r(60694),j=r(10873),R=r(65008);r(44208),r(53966),r(87811);const q={visible:"visibleSublayers"};let $=class extends R.A{constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.sublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("wms-sublayer-update",e=>this.notifyChange(q[e.propertyName]))],"layer"))}get layers(){return this.visibleSublayers.filter(({name:e})=>e).map(({name:e})=>e).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,r=e?.sublayers,i=[],n=e=>{const{minScale:r,maxScale:s,sublayers:l,visible:a}=e;a&&(0===t||(0===r||t<=r)&&(0===s||t>=s))&&(l?l.forEach(n):i.push(e))};return r?.forEach(n),i}toJSON(){const{layer:e,layers:t}=this,{imageFormat:r,imageTransparency:i,version:n}=e;return{format:r,request:"GetMap",service:"WMS",styles:"",transparent:i?"TRUE":"FALSE",version:n,layers:t}}};(0,i.Cg)([(0,v.MZ)()],$.prototype,"layer",null),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"layers",null),(0,i.Cg)([(0,v.MZ)({type:Number})],$.prototype,"scale",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"version",null),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"visibleSublayers",null),$=(0,i.Cg)([(0,x.$)("esri.layers.support.ExportWMSImageParameters")],$);var G,B=r(33446),H=r(4902),k=r(79901);let D=0,V=G=class extends((0,H.sA)(d.L)){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.title=null,this.addHandles([(0,y.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},y.OH),(0,y.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},y.OH),(0,y.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},y.OH),(0,y.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},y.OH)])}get id(){return this._get("id")??D++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}castSublayers(e){return(0,b.dp)(o.A.ofType(G),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new G;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map(e=>e.clone())??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers?.map(e=>e.clone())),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map(e=>e)),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,i.Cg)([(0,v.MZ)()],V.prototype,"description",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],V.prototype,"dimensions",void 0),(0,i.Cg)([(0,v.MZ)({type:C.A,json:{name:"extent"}})],V.prototype,"fullExtent",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"fullExtents",void 0),(0,i.Cg)([(0,v.MZ)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],V.prototype,"id",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],V.prototype,"legendUrl",void 0),(0,i.Cg)([(0,w.w)("legendUrl",["legendUrl","legendURL"])],V.prototype,"readLegendUrl",null),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],V.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"layer",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"maxScale",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"minScale",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],V.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"name",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"parent",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],V.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],V.prototype,"queryable",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"sublayers",void 0),(0,i.Cg)([(0,k.w)("sublayers")],V.prototype,"castSublayers",null),(0,i.Cg)([(0,v.MZ)({type:[Number],json:{read:{source:"spatialReferences"}}})],V.prototype,"spatialReferences",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"title",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],V.prototype,"visible",null),V=G=(0,i.Cg)([(0,x.$)("esri.layers.support.WMSSublayer")],V);var W=r(4576),J=r(96285);const z={84:4326,83:4269,27:4267};function X(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const e=Array.prototype.slice.call(r.childNodes).map(e=>e.textContent).join("\r\n");throw new p.A("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const i=ee("Capability",r),n=ee("Service",r),s=i&&ee("Request",i);if(!i||!n||!s)return null;const l=ee("Layer",i);if(!l)return null;const a="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",o=re("Title",n,"")||re("Name",n,""),u=re("AccessConstraints",n,""),c=/^none$/i.test(u)?"":u,m=re("Abstract",n,""),d=parseInt(re("MaxWidth",n,"5000"),10),h=parseInt(re("MaxHeight",n,"5000"),10),y=se(s,"GetMap"),g=ne(s,"GetMap"),f=ae(l,a,t);if(!f)return null;let v,b=0;const w=Array.prototype.slice.call(i.childNodes),x=f.sublayers??[],I=e=>{null!=e&&x.push(e)};w.forEach(e=>{"Layer"===e.nodeName&&(0===b?v=e:1===b?(f.name&&(f.name="",I(ae(v,a,t))),I(ae(e,a,t))):I(ae(e,a,t)),b++)});const M=f.sublayers??[],C=f.fullExtents??[];0===M.length&&M.push(f),f.extent??=M[0].extent;const T=f.spatialReferences.length>0?f.spatialReferences:K(f),S=ne(s,"GetFeatureInfo"),E=S?se(s,"GetFeatureInfo"):null,A=Y(M),N=f.minScale||0,F=f.maxScale||0,O=f.dimensions??[],_=A.reduce((e,t)=>e.concat(t.dimensions??[]),[]),P=O.concat(_).filter(ue);let Z=null;if(P.length){const e=P.map(e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map(e=>e.getTime()):t?.map(e=>[e.min.getTime(),e.max.getTime()])}).flat(2).filter(W.Ru),{start:t,end:r}=e.reduce((e,t)=>({start:Math.min(e.start,t),end:Math.max(e.end,t)}),{start:1/0,end:-1/0});Z={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[t,r]}}return{copyright:c,description:m,dimensions:O,extent:f.extent,fullExtents:C,featureInfoFormats:E,featureInfoUrl:S,mapUrl:g,maxWidth:d,maxHeight:h,maxScale:F,minScale:N,layers:A,spatialReferences:T,supportedImageFormatTypes:y,timeInfo:Z,title:o,version:a}}function K(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=K(t);if(e.length>0)return e}return[]}function Y(e){let t=[];for(const r of e)t.push(r),r.sublayers?.length&&(t=t.concat(Y(r.sublayers)),delete r.sublayers);return t}function Q(e,t,r){return t.getAttribute(e)??r}function ee(e,t){for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];if(oe(i)&&i.nodeName===e)return i}return null}function te(e,t){if(null==t)return[];const r=[];for(let i=0;i<t.childNodes.length;i++){const n=t.childNodes[i];oe(n)&&n.nodeName===e&&r.push(n)}return r}function re(e,t,r){return ee(e,t)?.textContent??r}function ie(e,t,r){const i=parseFloat(e.getAttribute("minx")??"0"),n=parseFloat(e.getAttribute("miny")??"0"),s=parseFloat(e.getAttribute("maxx")??"0"),l=parseFloat(e.getAttribute("maxy")??"0");return{xmin:r?isNaN(n)?-Number.MAX_VALUE:n:isNaN(i)?-Number.MAX_VALUE:i,ymin:r?isNaN(i)?-Number.MAX_VALUE:i:isNaN(n)?-Number.MAX_VALUE:n,xmax:r?isNaN(l)?Number.MAX_VALUE:l:isNaN(s)?Number.MAX_VALUE:s,ymax:r?isNaN(s)?Number.MAX_VALUE:s:isNaN(l)?Number.MAX_VALUE:l,spatialReference:{wkid:t}}}function ne(e,t){const r=ee(t,e);if(r){const e=ee("DCPType",r);if(e){const t=ee("HTTP",e);if(t){const e=ee("Get",t);if(e){let t=function(e,t,r){const i=ee("OnlineResource",r);return i?Q("xlink:href",i,null):null}(0,0,e);if(t){const e=t.indexOf("&");return-1!==e&&e===t.length-1&&(t=t.slice(0,-1)),function(e,t){const r=[],i=(0,f.An)(e);for(const e in i.query)i.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||r.push(e+"="+i.query[e]));return i.path+(r.length?"?"+r.join("&"):"")}(t,["service","request"])}}}}}return null}function se(e,t){const r=te("Operation",e);if(!r.length)return te("Format",ee(t,e)).map(({textContent:e})=>e).filter(W.Ru);const i=[];for(const e of r)if(e.getAttribute("name")===t){const t=te("Format",e);for(const{textContent:e}of t)null!=e&&i.push(e)}return i}function le(e,t,r){const i=ee(t,e);if(!i)return r;const{textContent:n}=i;if(null==n||""===n)return r;const s=Number(n);return isNaN(s)?r:s}function ae(e,t,r){if(!e)return null;const i=e.getAttribute("queryable")?.toLowerCase(),n="1"===i||"true"===i,s={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:n,spatialReferences:[],sublayers:null},l=ee("LatLonBoundingBox",e),a=ee("EX_GeographicBoundingBox",e),o=l?ie(l,4326):a?{xmin:parseFloat(re("westBoundLongitude",a,"0")),ymin:parseFloat(re("southBoundLatitude",a,"0")),xmax:parseFloat(re("eastBoundLongitude",a,"0")),ymax:parseFloat(re("northBoundLatitude",a,"0")),spatialReference:{wkid:4326}}:{xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};s.minScale=le(e,"MaxScaleDenominator",0),s.maxScale=le(e,"MinScaleDenominator",0);const u=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach(e=>{if("Name"===e.nodeName)s.name=e.textContent||"";else if("Title"===e.nodeName)s.title=e.textContent||"";else if("Abstract"===e.nodeName)s.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const r=e.getAttribute(u),i=r?.indexOf(":");if(i&&i>-1){let n=parseInt(r.slice(i+1),10);0===n||isNaN(n)||(n=z[n]??n);const l="1.3.0"===t?ie(e,n,(0,U.m)(n)):ie(e,n);l&&s.fullExtents&&s.fullExtents.push(l)}}else if(e.nodeName===u)(e.textContent?.split(" ")??[]).forEach(e=>{let t=NaN;if(e.includes(":")){const[r,i]=e.toUpperCase().split(":");"CRS"!==r&&"EPSG"!==r||(t=parseInt(i,10))}else t=parseInt(e,10);if(0!==t&&!isNaN(t)){const e=z[t]??t;s.spatialReferences.includes(e)||s.spatialReferences.push(e)}});else if("Style"!==e.nodeName||s.legendUrl){if("Layer"===e.nodeName){const i=ae(e,t,r);i&&(i.parentLayerId=s.id,s.sublayers||(s.sublayers=[]),s.sublayers.push(i))}}else{const t=ee("LegendURL",e);if(t){const e=ee("OnlineResource",t);e&&(s.legendUrl=e.getAttribute("xlink:href"))}}}),s.extent=o,s.dimensions=te("Dimension",e).filter(e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent).map(e=>{const t=e.getAttribute("name"),r=e.getAttribute("units"),i=e.textContent,n=e.getAttribute("unitSymbol")??void 0,s=e.getAttribute("default")??void 0,l="0"!==Q("default",e,"0"),a="0"!==Q("nearestValue",e,"0"),o="0"!==Q("current",e,"0");return ue({name:t,units:r})?{name:"time",units:"ISO8601",extent:me(i),default:me(s),multipleValues:l,nearestValue:a,current:o}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:pe(i),unitSymbol:n,default:pe(s),multipleValues:l,nearestValue:a}:{name:t,units:r,extent:ce(i),unitSymbol:n,default:ce(s),multipleValues:l,nearestValue:a}}),s}function oe(e){return e.nodeType===Node.ELEMENT_NODE}function ue(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function pe(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}}).filter(W.Ru):r.map(e=>parseFloat(e))}function ce(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}}).filter(W.Ru):r}function me(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:de(t[0]),max:de(t[1]),resolution:t.length>=3&&"0"!==t[2]?he(t[2]):void 0}}).filter(W.Ru):r.map(e=>de(e))}function de(e){return J.c9.fromISO(e,{zone:J.mQ.utcInstance}).toJSDate()}function he(e){const t=e.match(/(?:p(\d+y|\d+(?:\.|,)\d+y)?(\d+m|\d+(?:\.|,)\d+m)?(\d+d|\d+(?:\.|,)\d+d)?)?(?:t(\d+h|\d+(?:\.|,)\d+h)?(\d+m|\d+(?:\.|,)\d+m)?(\d+s|\d+(?:\.|,)\d+s)?)?/i);return t?{years:ye(t[1]),months:ye(t[2]),days:ye(t[3]),hours:ye(t[4]),minutes:ye(t[5]),seconds:ye(t[6])}:null}function ye(e){if(!e)return 0;const t=e.match(/(?:\d+(?:\.|,)\d+|\d+)/);if(!t)return 0;const r=t[0].replace(",",".");return Number(r)}function ge(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}function fe(e){if(!e||e.isAllTime||e.isEmpty)return;const{start:t,end:r}=e;return t&&r&&t.getTime()===r.getTime()?`${ge(t)}`:`${t?ge(t):"0000-01-01T00:00:00Z"}/${r?ge(r):"9999-12-31T23:59:59Z"}`}const ve=new Set([102100,3857,102113,900913]),be=new Set([3395,54004]),we=new c.J({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function xe(e){return"text/html"===e}function Ie(e){return"text/plain"===e}let Me=class extends((0,N.dM)((0,Z.e)((0,_.J)((0,P.j)((0,F.q)((0,O.A)((0,d.P)(A.A)))))))){constructor(...e){super(...e),this.allSublayers=new u.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.version=null,this.addHandles([(0,y.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=e.layer=this},y.OH),(0,y.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},y.OH),(0,y.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this},y.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(h.QP).then(()=>this._fetchService(t)).then(()=>this._checkLayerValidity())),Promise.resolve(this)}set timeInfo(e){super.timeInfo=e}readFullExtentFromItemOrMap(e,t){const r=t.extent;return r?new C.A({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(xe)??this.featureInfoFormats.find(Ie)??null}set featureInfoFormat(e){null==e?(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(xe(e)||Ie(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("image/png")?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new T.A(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference?.wkid;e&&r?(t.spatialReferences=e.filter(e=>e!==r),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return Ce(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return Ce(t.layers,r)}writeSublayers(e,t,r,i){t.layers=[];const n=new Map,s=e.flatten(({sublayers:e})=>e??[]);for(const e of s)if("number"==typeof e.parent?.id){const t=n.get(e.parent.id);null!=t?t.push(e.id):n.set(e.parent.id,[e.id])}for(const e of s){const r={sublayer:e,...i},s=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},r);if(n.has(e.id)&&(s.sublayerIds=n.get(e.id)),!e.sublayers&&e.name){const i=e.write({},r);delete i.id,t.layers.push(i)}}t.visibleLayers=s.filter(({visible:e,sublayers:t})=>e&&!t).map(({name:e})=>e).toArray()}set url(e){if(!e)return void this._set("url",e);const{path:t,query:r}=(0,f.An)(e);for(const e in r)/^(request|service)$/i.test(e)&&delete r[e];const i=(0,f.a6)(t,r??{});this._set("url",i)}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio??1,s=(0,S.X_)({extent:e,width:t})*n,l=new $({layer:this,scale:s}),{xmin:a,ymin:o,xmax:u,ymax:p,spatialReference:c}=e,m=function(e,t){let r=e.wkid;return null==t?r:(null!=r&&t.includes(r)||!e.latestWkid||(r=e.latestWkid),null!=r&&ve.has(r)?t.find(e=>ve.has(e))||t.find(e=>be.has(e))||102100:r)}(c,this.spatialReferences),d="1.3.0"===this.version&&(0,U.m)(m)?`${o},${a},${p},${u}`:`${a},${o},${u},${p}`,h=l.toJSON(),y="1.3.0"===this.version?"crs":"srs";return{bbox:d,[y]:null==m||isNaN(m)?void 0:"EPSG:"+m,...h}}async fetchImage(e,t,r,i){const n=this.mapUrl,s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const l=fe(i?.timeExtent),o={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...s,time:l,...this.refreshParameters}),signal:i?.signal};return(0,a.A)(n??"",o).then(e=>e.data)}async fetchImageBitmap(e,t,r,i){const n=this.mapUrl??"",s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const l=fe(i?.timeExtent),o={responseType:"blob",query:this._mixCustomParameters({width:t,height:r,...s,time:l,...this.refreshParameters}),signal:i?.signal},{data:u}=await(0,a.A)(n,o);return(0,B.m)(u,n,i?.signal)}fetchFeatureInfo(e,t,r,i,n){const s=(0,S.X_)({extent:e,width:t}),l=function(e){const t=e.filter(e=>e.popupEnabled&&e.name&&e.queryable);return t.length?t.map(({name:e})=>e).join():null}(new $({layer:this,scale:s}).visibleSublayers);if(null==this.featureInfoUrl||null==l)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const a="1.3.0"===this.version?{I:i,J:n}:{x:i,y:n},o={query_layers:l,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...a},u={...this.createExportImageParameters(e,t,r),...o},p=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(p):this._defaultFetchFeatureInfoFunction((0,f.a6)(this.featureInfoUrl,p))}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}findSublayerByName(e){return this.allSublayers.find(t=>t.name===e)}serviceSupportsSpatialReference(e){return(0,L.bd)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some(t=>{const r=900913===t?T.A.WebMercator:new T.A({wkid:t});return(0,E.aI)(r,e)})}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,f.yM)(g.W5.sanitizeUrl((0,f.s2)(e))),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const r=new l.A({title:this.title,content:t}),i=new s.A({sourceLayer:this,popupTemplate:r});return Promise.resolve([i])}async _fetchService(e){if(!this.resourceInfo&&this.parsedUrl?.path){const{path:t,query:r}=this.parsedUrl,{data:i}=await(0,a.A)(t,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...r,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=X(i)}if(this.parsedUrl){const e=new f.s0(this.parsedUrl.path),{httpsDomains:t}=n.A.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_checkLayerValidity(){if(!this.allSublayers.length)throw new p.A("wmslayer:empty-layer","The layer doesn't have any sublayer")}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function Ce(e,t,r){e=e??[];const i=new Map;e.every(e=>null==e.id)&&(e=(0,m.o8)(e)).forEach((e,t)=>e.id=t);for(const n of e){const e=new V;e.read(n,t),r&&!r.includes(e.name)&&(e.visible=!1),i.set(e.id,e)}const n=[];for(const t of e){const e=null!=t.id?i.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=i.get(t.parentLayerId);if(!r)continue;r.sublayers||(r.sublayers=new o.A),r.sublayers.push(e)}else n.push(e)}return n}(0,i.Cg)([(0,v.MZ)({readOnly:!0})],Me.prototype,"allSublayers",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:Object,write:!0}})],Me.prototype,"customParameters",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:Object,write:!0}})],Me.prototype,"customLayerParameters",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:!0}})],Me.prototype,"copyright",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"description",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],Me.prototype,"dimensions",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],Me.prototype,"fullExtent",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"fullExtent",["extent"])],Me.prototype,"readFullExtentFromItemOrMap",null),(0,i.Cg)([(0,I.K)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],Me.prototype,"writeFullExtent",null),(0,i.Cg)([(0,v.MZ)({type:[C.A]})],Me.prototype,"fullExtents",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"featureInfoFormat",null),(0,i.Cg)([(0,v.MZ)({type:[String],readOnly:!0})],Me.prototype,"featureInfoFormats",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"featureInfoUrl",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"fetchFeatureInfoFunction",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{origins:{"web-document":{default:"image/png",type:we.jsonValues,read:{reader:we.read,source:"format"},write:{writer:we.write,target:"format"}}}}})],Me.prototype,"imageFormat",void 0),(0,i.Cg)([(0,w.w)("imageFormat",["supportedImageFormatTypes"])],Me.prototype,"readImageFormat",null),(0,i.Cg)([(0,v.MZ)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],Me.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,v.MZ)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],Me.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,v.MZ)(j.fV)],Me.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,v.MZ)({type:["show","hide","hide-children"]})],Me.prototype,"listMode",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"mapUrl",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Me.prototype,"isReference",void 0),(0,i.Cg)([(0,v.MZ)({type:["WMS"]})],Me.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"resourceInfo",void 0),(0,i.Cg)([(0,v.MZ)({type:T.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],Me.prototype,"spatialReference",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],Me.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,i.Cg)([(0,v.MZ)({type:[b.jz],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],Me.prototype,"spatialReferences",void 0),(0,i.Cg)([(0,I.K)(["web-document","portal-item"],"spatialReferences")],Me.prototype,"writeSpatialReferences",null),(0,i.Cg)([(0,v.MZ)({type:o.A.ofType(V),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some(e=>{for(const r in e)if((0,M.R)(e,r,null,t))return!0;return!1})}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],Me.prototype,"sublayers",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],Me.prototype,"readSublayersFromItemOrMap",null),(0,i.Cg)([(0,w.w)("service","sublayers",["layers"])],Me.prototype,"readSublayers",null),(0,i.Cg)([(0,I.K)("sublayers",{layers:{type:[V]},visibleLayers:{type:[String]}})],Me.prototype,"writeSublayers",null),(0,i.Cg)([(0,v.MZ)({json:{read:!1},readOnly:!0,value:"wms"})],Me.prototype,"type",void 0),(0,i.Cg)([(0,v.MZ)(j.OZ)],Me.prototype,"url",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"version",void 0),Me=(0,i.Cg)([(0,x.$)("esri.layers.WMSLayer")],Me);const Te=Me},52106:(e,t,r)=>{r.d(t,{A:()=>w});var i,n=r(31635),s=r(13874),l=r(69540),a=r(51447),o=r(25482),u=r(53966),p=r(36708),c=r(24326),m=r(10107),d=(r(44208),r(87811),r(40608)),h=r(12195),y=r(65864),g=r(50498),f=r(54339),v=r(33910);function b(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let w=class extends((0,l.OU)(o.o)){static{i=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const r of[t,this.sourceLayer,this.layer])if(r&&"object"==typeof r){if("popupTemplate"in r&&r.popupTemplate)return r.popupTemplate;if(e&&"defaultPopupTemplate"in r&&null!=r.defaultPopupTemplate)return r.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,f.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:b(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,m.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,y.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],w.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,m.MZ)({value:null})],w.prototype,"attributes",null),(0,n.Cg)([(0,m.MZ)({value:null,types:g.yR,json:{read:y.rS}})],w.prototype,"geometry",null),(0,n.Cg)([(0,m.MZ)({type:Boolean})],w.prototype,"isAggregate",void 0),(0,n.Cg)([(0,m.MZ)({clonable:!1})],w.prototype,"layer",void 0),(0,n.Cg)([(0,m.MZ)({clonable:"reference"})],w.prototype,"origin",void 0),(0,n.Cg)([(0,m.MZ)({type:s.A,value:null})],w.prototype,"popupTemplate",null),(0,n.Cg)([(0,m.MZ)({clonable:"reference"})],w.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,m.MZ)({value:null,types:v.Es})],w.prototype,"symbol",null),(0,n.Cg)([(0,m.MZ)({clonable:!1,json:{read:!1,write:!1}})],w.prototype,"_version",void 0),(0,n.Cg)([(0,m.MZ)({type:Boolean,value:!0})],w.prototype,"visible",null),w=i=(0,n.Cg)([(0,d.$)("esri.Graphic")],w)},54339:(e,t,r)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>n})},64272:(e,t,r)=>{r.d(t,{T:()=>m});var i,n=r(31635),s=r(25482),l=r(88930),a=r(10107),o=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),c=r(98623);let m=class extends s.o{static{i=this}static get allTime(){return d}static get empty(){return h}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,l.lL)(r,e,t));let n=this.end;if(n){const r=(0,l.lL)(n,e,t);n=n.getTime()===r.getTime()?r:(0,l.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let l,a;return n>=t&&n<=r?l=n:t>=n&&t<=s&&(l=t),r>=n&&r<=s?a=r:s>=t&&s<=r&&(a=s),null==l||null==a||isNaN(l)||isNaN(a)?i.empty:new i({start:l===-1/0?null:new Date(l),end:a===1/0?null:new Date(a)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:a}=this;return null!=s&&(n.start=(0,l.S1)(s,e,t,r)),null!=a&&(n.end=(0,l.S1)(a,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,n.Cg)([(0,o.w)("end")],m.prototype,"readEnd",null),(0,n.Cg)([(0,p.K)("end")],m.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,n.Cg)([(0,o.w)("start")],m.prototype,"readStart",null),(0,n.Cg)([(0,p.K)("start")],m.prototype,"writeStart",null),m=i=(0,n.Cg)([(0,u.$)("esri.time.TimeExtent")],m);const d=new m,h=new m({start:void 0,end:void 0})},70328:(e,t,r)=>{r.d(t,{BI:()=>b,DC:()=>c,Ej:()=>d,Ie:()=>f,Jt:()=>v,Ne:()=>h,RF:()=>p,aI:()=>x,fA:()=>l,gE:()=>o,hZ:()=>g,iT:()=>m,is:()=>w,qv:()=>I,vI:()=>y,vY:()=>a,v_:()=>M,vt:()=>s,w1:()=>u});var i=r(5443),n=(r(19419),r(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function l(e,t,r,i,n,l,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=l,a}function a(e,t=s()){return function(e,t,r,i=s()){return g(i,I),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],l=e[2],a=e[3],o=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),l=Math.min(l,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),o=Math.max(o,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=l,e[3]=a,e[4]=o,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function o(e,t=(0,n.jh)(24)){const[r,i,s,l,a,o]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=o,t[6]=r,t[7]=a,t[8]=s,t[9]=r,t[10]=a,t[11]=o,t[12]=l,t[13]=i,t[14]=s,t[15]=l,t[16]=i,t[17]=o,t[18]=l,t[19]=a,t[20]=s,t[21]=l,t[22]=a,t[23]=o,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function g(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}function f(e){return e?g(e,I):s(I)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function b(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function x(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},82935:(e,t,r)=>{r.d(t,{B:()=>d,e:()=>h});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),a=r(89317),o=r(30524),u=r(96184),p=r(73133),c=r(64272),m=r(26253);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:a.K}}},h=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=p.j.fromJSON(r.timeOffsetUnits);return i&&n?new m.T({value:i,unit:n}):null}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:c.T,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:m.T})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,l.$)("esri.layers.mixins.TemporalLayer")],r),r}},83960:(e,t,r)=>{r.d(t,{X_:()=>l,oW:()=>o,zx:()=>a});var i=r(34727),n=r(83047);const s=96;function l(e,t){const r=t||e.extent,i=e.width,l=(0,n.GA)(r?.spatialReference);return r&&i?r.width/i*l*n.dy*s:0}function a(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}function o(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},96184:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(31635),n=r(69540),s=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),o=r(40608),u=r(43937),p=r(64272),c=r(26253),m=r(56400);function d(e,t){return c.T.fromJSON({value:e,unit:t})}let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?p.T.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,l.MZ)({type:p.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,a.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,l.MZ)({type:c.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,a.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,l.MZ)((0,m.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,l.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,o.$)("esri.layers.support.TimeInfo")],h)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5181],{4197:(e,t,r)=>{r.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>o,xm:()=>l});var i=r(34275),n=r(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function l(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function o(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function u(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},8303:(e,t,r)=>{r.d(t,{A:()=>I});var i=r(31635),n=r(92602),s=r(70333),l=r(78888),o=r(60999),a=r(49186),u=r(53966),p=r(97768),c=r(74887),m=r(84952),d=r(10107),h=(r(44208),r(87811),r(36005)),y=r(40608),g=r(43937),f=r(77548),v=r(20655),b=r(80812),w=r(41318),x=r(10407);const I=e=>{const t=e;let I=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let l,o;if(n)l=r.portal.url;else try{l=await(0,f.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!l||!(0,m.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const a=!0,u=!1,p=!1;if(!o)return{features:{edit:a,fullEdit:u},content:{updateItem:p}};try{if(n?await r.reload():(r=new b.default({id:e,portal:{url:l}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,x.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,m.S8)(n.restUrl)===(0,m.S8)(i))return n.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,m.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,d.MZ)({type:b.default})],I.prototype,"portalItem",null),(0,i.Cg)([(0,h.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,i.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,i.Cg)([(0,d.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,i.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],I),I},M={credential:null,user:null}},9093:(e,t,r)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[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]]}r.d(t,{o8:()=>n,vt:()=>i,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:i,fromValues:function(e,t,r,i,n,s,l,o,a,u,p,c,m,d,h,y){return[e,t,r,i,n,s,l,o,a,u,p,c,m,d,h,y]}},Symbol.toStringTag,{value:"Module"}))},16494:(e,t,r)=>{r.d(t,{W5:()=>l});var i=r(37330);const n=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),s=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],l=new i.I({whiteList:n,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(s.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)},26253:(e,t,r)=>{r.d(t,{T:()=>c});var i=r(31635),n=r(69540),s=r(25482),l=r(88930),o=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),p=r(73133);let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,l.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,a.e)(p.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i.Cg)([(0,u.$)("esri.time.TimeInterval")],c)},33446:(e,t,r)=>{r.d(t,{C:()=>l,m:()=>s});var i=r(49186),n=r(74887);async function s(e,t,r){let s;try{s=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,n.Te)(r),s}async function l(e,t,r,s,l){let o;try{o=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,n.Te)(l),o}},38458:(e,t,r)=>{r.d(t,{m:()=>n});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function n(e){return null!=e&&i.some(([t,r])=>e>=t&&e<=r)}},38961:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(31635),n=r(7762),s=r(36708),l=r(10107),o=r(40608),a=r(80559);let u=class extends n.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new n.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,l.MZ)()],u.prototype,"getCollections",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,i.Cg)([(0,o.$)("esri.core.CollectionFlattener")],u)},50498:(e,t,r)=>{r.d(t,{Ye:()=>c,gy:()=>p,yR:()=>m});var i=r(66552),n=r(5443),s=r(91075),l=r(48526),o=r(86738),a=r(39829),u=r(82799);const p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),m={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:l.A,point:o.A,polyline:u.A,polygon:a.A}}},51904:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Te});var i=r(31635),n=r(92602),s=r(52106),l=r(13874),o=r(78888),a=r(7762),u=r(38961),p=r(49186),c=r(66552),m=r(4718),d=r(92071),h=r(74887),y=r(36708),g=r(16494),f=r(84952),v=r(10107),b=r(56507),w=r(36005),x=r(40608),I=r(43937),M=r(49422),C=r(5443),T=r(16930),S=r(83960),E=r(21325),A=r(4146),N=r(63074),F=r(16131),O=r(8303),_=r(54310),P=r(25036),Z=r(82935),U=r(38458),L=r(60694),j=r(10873),R=r(65008);r(44208),r(53966),r(87811);const q={visible:"visibleSublayers"};let $=class extends R.A{constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.sublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("wms-sublayer-update",e=>this.notifyChange(q[e.propertyName]))],"layer"))}get layers(){return this.visibleSublayers.filter(({name:e})=>e).map(({name:e})=>e).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,r=e?.sublayers,i=[],n=e=>{const{minScale:r,maxScale:s,sublayers:l,visible:o}=e;o&&(0===t||(0===r||t<=r)&&(0===s||t>=s))&&(l?l.forEach(n):i.push(e))};return r?.forEach(n),i}toJSON(){const{layer:e,layers:t}=this,{imageFormat:r,imageTransparency:i,version:n}=e;return{format:r,request:"GetMap",service:"WMS",styles:"",transparent:i?"TRUE":"FALSE",version:n,layers:t}}};(0,i.Cg)([(0,v.MZ)()],$.prototype,"layer",null),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"layers",null),(0,i.Cg)([(0,v.MZ)({type:Number})],$.prototype,"scale",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"version",null),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"visibleSublayers",null),$=(0,i.Cg)([(0,x.$)("esri.layers.support.ExportWMSImageParameters")],$);var G,B=r(33446),H=r(4902),k=r(79901);let D=0,V=G=class extends((0,H.sA)(d.L)){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.title=null,this.addHandles([(0,y.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},y.OH),(0,y.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},y.OH),(0,y.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},y.OH),(0,y.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},y.OH)])}get id(){return this._get("id")??D++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}castSublayers(e){return(0,b.dp)(a.A.ofType(G),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new G;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map(e=>e.clone())??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers?.map(e=>e.clone())),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map(e=>e)),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,i.Cg)([(0,v.MZ)()],V.prototype,"description",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],V.prototype,"dimensions",void 0),(0,i.Cg)([(0,v.MZ)({type:C.A,json:{name:"extent"}})],V.prototype,"fullExtent",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"fullExtents",void 0),(0,i.Cg)([(0,v.MZ)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],V.prototype,"id",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],V.prototype,"legendUrl",void 0),(0,i.Cg)([(0,w.w)("legendUrl",["legendUrl","legendURL"])],V.prototype,"readLegendUrl",null),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],V.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"layer",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"maxScale",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"minScale",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],V.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"name",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"parent",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],V.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],V.prototype,"queryable",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"sublayers",void 0),(0,i.Cg)([(0,k.w)("sublayers")],V.prototype,"castSublayers",null),(0,i.Cg)([(0,v.MZ)({type:[Number],json:{read:{source:"spatialReferences"}}})],V.prototype,"spatialReferences",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"title",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],V.prototype,"visible",null),V=G=(0,i.Cg)([(0,x.$)("esri.layers.support.WMSSublayer")],V);var W=r(4576),J=r(96285);const z={84:4326,83:4269,27:4267};function X(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const e=Array.prototype.slice.call(r.childNodes).map(e=>e.textContent).join("\r\n");throw new p.A("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const i=ee("Capability",r),n=ee("Service",r),s=i&&ee("Request",i);if(!i||!n||!s)return null;const l=ee("Layer",i);if(!l)return null;const o="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",a=re("Title",n,"")||re("Name",n,""),u=re("AccessConstraints",n,""),c=/^none$/i.test(u)?"":u,m=re("Abstract",n,""),d=parseInt(re("MaxWidth",n,"5000"),10),h=parseInt(re("MaxHeight",n,"5000"),10),y=se(s,"GetMap"),g=ne(s,"GetMap"),f=oe(l,o,t);if(!f)return null;let v,b=0;const w=Array.prototype.slice.call(i.childNodes),x=f.sublayers??[],I=e=>{null!=e&&x.push(e)};w.forEach(e=>{"Layer"===e.nodeName&&(0===b?v=e:1===b?(f.name&&(f.name="",I(oe(v,o,t))),I(oe(e,o,t))):I(oe(e,o,t)),b++)});const M=f.sublayers??[],C=f.fullExtents??[];0===M.length&&M.push(f),f.extent??=M[0].extent;const T=f.spatialReferences.length>0?f.spatialReferences:K(f),S=ne(s,"GetFeatureInfo"),E=S?se(s,"GetFeatureInfo"):null,A=Y(M),N=f.minScale||0,F=f.maxScale||0,O=f.dimensions??[],_=A.reduce((e,t)=>e.concat(t.dimensions??[]),[]),P=O.concat(_).filter(ue);let Z=null;if(P.length){const e=P.map(e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map(e=>e.getTime()):t?.map(e=>[e.min.getTime(),e.max.getTime()])}).flat(2).filter(W.Ru),{start:t,end:r}=e.reduce((e,t)=>({start:Math.min(e.start,t),end:Math.max(e.end,t)}),{start:1/0,end:-1/0});Z={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[t,r]}}return{copyright:c,description:m,dimensions:O,extent:f.extent,fullExtents:C,featureInfoFormats:E,featureInfoUrl:S,mapUrl:g,maxWidth:d,maxHeight:h,maxScale:F,minScale:N,layers:A,spatialReferences:T,supportedImageFormatTypes:y,timeInfo:Z,title:a,version:o}}function K(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=K(t);if(e.length>0)return e}return[]}function Y(e){let t=[];for(const r of e)t.push(r),r.sublayers?.length&&(t=t.concat(Y(r.sublayers)),delete r.sublayers);return t}function Q(e,t,r){return t.getAttribute(e)??r}function ee(e,t){for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];if(ae(i)&&i.nodeName===e)return i}return null}function te(e,t){if(null==t)return[];const r=[];for(let i=0;i<t.childNodes.length;i++){const n=t.childNodes[i];ae(n)&&n.nodeName===e&&r.push(n)}return r}function re(e,t,r){return ee(e,t)?.textContent??r}function ie(e,t,r){const i=parseFloat(e.getAttribute("minx")??"0"),n=parseFloat(e.getAttribute("miny")??"0"),s=parseFloat(e.getAttribute("maxx")??"0"),l=parseFloat(e.getAttribute("maxy")??"0");return{xmin:r?isNaN(n)?-Number.MAX_VALUE:n:isNaN(i)?-Number.MAX_VALUE:i,ymin:r?isNaN(i)?-Number.MAX_VALUE:i:isNaN(n)?-Number.MAX_VALUE:n,xmax:r?isNaN(l)?Number.MAX_VALUE:l:isNaN(s)?Number.MAX_VALUE:s,ymax:r?isNaN(s)?Number.MAX_VALUE:s:isNaN(l)?Number.MAX_VALUE:l,spatialReference:{wkid:t}}}function ne(e,t){const r=ee(t,e);if(r){const e=ee("DCPType",r);if(e){const t=ee("HTTP",e);if(t){const e=ee("Get",t);if(e){let t=function(e,t,r){const i=ee("OnlineResource",r);return i?Q("xlink:href",i,null):null}(0,0,e);if(t){const e=t.indexOf("&");return-1!==e&&e===t.length-1&&(t=t.slice(0,-1)),function(e,t){const r=[],i=(0,f.An)(e);for(const e in i.query)i.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||r.push(e+"="+i.query[e]));return i.path+(r.length?"?"+r.join("&"):"")}(t,["service","request"])}}}}}return null}function se(e,t){const r=te("Operation",e);if(!r.length)return te("Format",ee(t,e)).map(({textContent:e})=>e).filter(W.Ru);const i=[];for(const e of r)if(e.getAttribute("name")===t){const t=te("Format",e);for(const{textContent:e}of t)null!=e&&i.push(e)}return i}function le(e,t,r){const i=ee(t,e);if(!i)return r;const{textContent:n}=i;if(null==n||""===n)return r;const s=Number(n);return isNaN(s)?r:s}function oe(e,t,r){if(!e)return null;const i=e.getAttribute("queryable")?.toLowerCase(),n="1"===i||"true"===i,s={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:n,spatialReferences:[],sublayers:null},l=ee("LatLonBoundingBox",e),o=ee("EX_GeographicBoundingBox",e),a=l?ie(l,4326):o?{xmin:parseFloat(re("westBoundLongitude",o,"0")),ymin:parseFloat(re("southBoundLatitude",o,"0")),xmax:parseFloat(re("eastBoundLongitude",o,"0")),ymax:parseFloat(re("northBoundLatitude",o,"0")),spatialReference:{wkid:4326}}:{xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};s.minScale=le(e,"MaxScaleDenominator",0),s.maxScale=le(e,"MinScaleDenominator",0);const u=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach(e=>{if("Name"===e.nodeName)s.name=e.textContent||"";else if("Title"===e.nodeName)s.title=e.textContent||"";else if("Abstract"===e.nodeName)s.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const r=e.getAttribute(u),i=r?.indexOf(":");if(i&&i>-1){let n=parseInt(r.slice(i+1),10);0===n||isNaN(n)||(n=z[n]??n);const l="1.3.0"===t?ie(e,n,(0,U.m)(n)):ie(e,n);l&&s.fullExtents&&s.fullExtents.push(l)}}else if(e.nodeName===u)(e.textContent?.split(" ")??[]).forEach(e=>{let t=NaN;if(e.includes(":")){const[r,i]=e.toUpperCase().split(":");"CRS"!==r&&"EPSG"!==r||(t=parseInt(i,10))}else t=parseInt(e,10);if(0!==t&&!isNaN(t)){const e=z[t]??t;s.spatialReferences.includes(e)||s.spatialReferences.push(e)}});else if("Style"!==e.nodeName||s.legendUrl){if("Layer"===e.nodeName){const i=oe(e,t,r);i&&(i.parentLayerId=s.id,s.sublayers||(s.sublayers=[]),s.sublayers.push(i))}}else{const t=ee("LegendURL",e);if(t){const e=ee("OnlineResource",t);e&&(s.legendUrl=e.getAttribute("xlink:href"))}}}),s.extent=a,s.dimensions=te("Dimension",e).filter(e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent).map(e=>{const t=e.getAttribute("name"),r=e.getAttribute("units"),i=e.textContent,n=e.getAttribute("unitSymbol")??void 0,s=e.getAttribute("default")??void 0,l="0"!==Q("default",e,"0"),o="0"!==Q("nearestValue",e,"0"),a="0"!==Q("current",e,"0");return ue({name:t,units:r})?{name:"time",units:"ISO8601",extent:me(i),default:me(s),multipleValues:l,nearestValue:o,current:a}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:pe(i),unitSymbol:n,default:pe(s),multipleValues:l,nearestValue:o}:{name:t,units:r,extent:ce(i),unitSymbol:n,default:ce(s),multipleValues:l,nearestValue:o}}),s}function ae(e){return e.nodeType===Node.ELEMENT_NODE}function ue(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function pe(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}}).filter(W.Ru):r.map(e=>parseFloat(e))}function ce(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}}).filter(W.Ru):r}function me(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:de(t[0]),max:de(t[1]),resolution:t.length>=3&&"0"!==t[2]?he(t[2]):void 0}}).filter(W.Ru):r.map(e=>de(e))}function de(e){return J.c9.fromISO(e,{zone:J.mQ.utcInstance}).toJSDate()}function he(e){const t=e.match(/(?:p(\d+y|\d+(?:\.|,)\d+y)?(\d+m|\d+(?:\.|,)\d+m)?(\d+d|\d+(?:\.|,)\d+d)?)?(?:t(\d+h|\d+(?:\.|,)\d+h)?(\d+m|\d+(?:\.|,)\d+m)?(\d+s|\d+(?:\.|,)\d+s)?)?/i);return t?{years:ye(t[1]),months:ye(t[2]),days:ye(t[3]),hours:ye(t[4]),minutes:ye(t[5]),seconds:ye(t[6])}:null}function ye(e){if(!e)return 0;const t=e.match(/(?:\d+(?:\.|,)\d+|\d+)/);if(!t)return 0;const r=t[0].replace(",",".");return Number(r)}function ge(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}function fe(e){if(!e||e.isAllTime||e.isEmpty)return;const{start:t,end:r}=e;return t&&r&&t.getTime()===r.getTime()?`${ge(t)}`:`${t?ge(t):"0000-01-01T00:00:00Z"}/${r?ge(r):"9999-12-31T23:59:59Z"}`}const ve=new Set([102100,3857,102113,900913]),be=new Set([3395,54004]),we=new c.J({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function xe(e){return"text/html"===e}function Ie(e){return"text/plain"===e}let Me=class extends((0,N.dM)((0,Z.e)((0,_.J)((0,P.j)((0,F.q)((0,O.A)((0,d.P)(A.A)))))))){constructor(...e){super(...e),this.allSublayers=new u.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.version=null,this.addHandles([(0,y.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=e.layer=this},y.OH),(0,y.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},y.OH),(0,y.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this},y.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(h.QP).then(()=>this._fetchService(t)).then(()=>this._checkLayerValidity())),Promise.resolve(this)}set timeInfo(e){super.timeInfo=e}readFullExtentFromItemOrMap(e,t){const r=t.extent;return r?new C.A({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(xe)??this.featureInfoFormats.find(Ie)??null}set featureInfoFormat(e){null==e?(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(xe(e)||Ie(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("image/png")?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new T.A(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference?.wkid;e&&r?(t.spatialReferences=e.filter(e=>e!==r),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return Ce(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return Ce(t.layers,r)}writeSublayers(e,t,r,i){t.layers=[];const n=new Map,s=e.flatten(({sublayers:e})=>e??[]);for(const e of s)if("number"==typeof e.parent?.id){const t=n.get(e.parent.id);null!=t?t.push(e.id):n.set(e.parent.id,[e.id])}for(const e of s){const r={sublayer:e,...i},s=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},r);if(n.has(e.id)&&(s.sublayerIds=n.get(e.id)),!e.sublayers&&e.name){const i=e.write({},r);delete i.id,t.layers.push(i)}}t.visibleLayers=s.filter(({visible:e,sublayers:t})=>e&&!t).map(({name:e})=>e).toArray()}set url(e){if(!e)return void this._set("url",e);const{path:t,query:r}=(0,f.An)(e);for(const e in r)/^(request|service)$/i.test(e)&&delete r[e];const i=(0,f.a6)(t,r??{});this._set("url",i)}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio??1,s=(0,S.X_)({extent:e,width:t})*n,l=new $({layer:this,scale:s}),{xmin:o,ymin:a,xmax:u,ymax:p,spatialReference:c}=e,m=function(e,t){let r=e.wkid;return null==t?r:(null!=r&&t.includes(r)||!e.latestWkid||(r=e.latestWkid),null!=r&&ve.has(r)?t.find(e=>ve.has(e))||t.find(e=>be.has(e))||102100:r)}(c,this.spatialReferences),d="1.3.0"===this.version&&(0,U.m)(m)?`${a},${o},${p},${u}`:`${o},${a},${u},${p}`,h=l.toJSON(),y="1.3.0"===this.version?"crs":"srs";return{bbox:d,[y]:null==m||isNaN(m)?void 0:"EPSG:"+m,...h}}async fetchImage(e,t,r,i){const n=this.mapUrl,s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const l=fe(i?.timeExtent),a={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...s,time:l,...this.refreshParameters}),signal:i?.signal};return(0,o.A)(n??"",a).then(e=>e.data)}async fetchImageBitmap(e,t,r,i){const n=this.mapUrl??"",s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const l=fe(i?.timeExtent),a={responseType:"blob",query:this._mixCustomParameters({width:t,height:r,...s,time:l,...this.refreshParameters}),signal:i?.signal},{data:u}=await(0,o.A)(n,a);return(0,B.m)(u,n,i?.signal)}fetchFeatureInfo(e,t,r,i,n){const s=(0,S.X_)({extent:e,width:t}),l=function(e){const t=e.filter(e=>e.popupEnabled&&e.name&&e.queryable);return t.length?t.map(({name:e})=>e).join():null}(new $({layer:this,scale:s}).visibleSublayers);if(null==this.featureInfoUrl||null==l)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const o="1.3.0"===this.version?{I:i,J:n}:{x:i,y:n},a={query_layers:l,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...o},u={...this.createExportImageParameters(e,t,r),...a},p=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(p):this._defaultFetchFeatureInfoFunction((0,f.a6)(this.featureInfoUrl,p))}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}findSublayerByName(e){return this.allSublayers.find(t=>t.name===e)}serviceSupportsSpatialReference(e){return(0,L.bd)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some(t=>{const r=900913===t?T.A.WebMercator:new T.A({wkid:t});return(0,E.aI)(r,e)})}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,f.yM)(g.W5.sanitizeUrl((0,f.s2)(e))),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const r=new l.A({title:this.title,content:t}),i=new s.A({sourceLayer:this,popupTemplate:r});return Promise.resolve([i])}async _fetchService(e){if(!this.resourceInfo&&this.parsedUrl?.path){const{path:t,query:r}=this.parsedUrl,{data:i}=await(0,o.A)(t,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...r,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=X(i)}if(this.parsedUrl){const e=new f.s0(this.parsedUrl.path),{httpsDomains:t}=n.A.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_checkLayerValidity(){if(!this.allSublayers.length)throw new p.A("wmslayer:empty-layer","The layer doesn't have any sublayer")}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function Ce(e,t,r){e=e??[];const i=new Map;e.every(e=>null==e.id)&&(e=(0,m.o8)(e)).forEach((e,t)=>e.id=t);for(const n of e){const e=new V;e.read(n,t),r&&!r.includes(e.name)&&(e.visible=!1),i.set(e.id,e)}const n=[];for(const t of e){const e=null!=t.id?i.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=i.get(t.parentLayerId);if(!r)continue;r.sublayers||(r.sublayers=new a.A),r.sublayers.push(e)}else n.push(e)}return n}(0,i.Cg)([(0,v.MZ)({readOnly:!0})],Me.prototype,"allSublayers",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:Object,write:!0}})],Me.prototype,"customParameters",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:Object,write:!0}})],Me.prototype,"customLayerParameters",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:!0}})],Me.prototype,"copyright",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"description",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],Me.prototype,"dimensions",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],Me.prototype,"fullExtent",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"fullExtent",["extent"])],Me.prototype,"readFullExtentFromItemOrMap",null),(0,i.Cg)([(0,I.K)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],Me.prototype,"writeFullExtent",null),(0,i.Cg)([(0,v.MZ)({type:[C.A]})],Me.prototype,"fullExtents",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"featureInfoFormat",null),(0,i.Cg)([(0,v.MZ)({type:[String],readOnly:!0})],Me.prototype,"featureInfoFormats",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"featureInfoUrl",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"fetchFeatureInfoFunction",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{origins:{"web-document":{default:"image/png",type:we.jsonValues,read:{reader:we.read,source:"format"},write:{writer:we.write,target:"format"}}}}})],Me.prototype,"imageFormat",void 0),(0,i.Cg)([(0,w.w)("imageFormat",["supportedImageFormatTypes"])],Me.prototype,"readImageFormat",null),(0,i.Cg)([(0,v.MZ)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],Me.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,v.MZ)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],Me.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,v.MZ)(j.fV)],Me.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,v.MZ)({type:["show","hide","hide-children"]})],Me.prototype,"listMode",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"mapUrl",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Me.prototype,"isReference",void 0),(0,i.Cg)([(0,v.MZ)({type:["WMS"]})],Me.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"resourceInfo",void 0),(0,i.Cg)([(0,v.MZ)({type:T.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],Me.prototype,"spatialReference",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],Me.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,i.Cg)([(0,v.MZ)({type:[b.jz],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],Me.prototype,"spatialReferences",void 0),(0,i.Cg)([(0,I.K)(["web-document","portal-item"],"spatialReferences")],Me.prototype,"writeSpatialReferences",null),(0,i.Cg)([(0,v.MZ)({type:a.A.ofType(V),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some(e=>{for(const r in e)if((0,M.R)(e,r,null,t))return!0;return!1})}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],Me.prototype,"sublayers",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],Me.prototype,"readSublayersFromItemOrMap",null),(0,i.Cg)([(0,w.w)("service","sublayers",["layers"])],Me.prototype,"readSublayers",null),(0,i.Cg)([(0,I.K)("sublayers",{layers:{type:[V]},visibleLayers:{type:[String]}})],Me.prototype,"writeSublayers",null),(0,i.Cg)([(0,v.MZ)({json:{read:!1},readOnly:!0,value:"wms"})],Me.prototype,"type",void 0),(0,i.Cg)([(0,v.MZ)(j.OZ)],Me.prototype,"url",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"version",void 0),Me=(0,i.Cg)([(0,x.$)("esri.layers.WMSLayer")],Me);const Te=Me},52106:(e,t,r)=>{r.d(t,{A:()=>x});var i,n=r(31635),s=r(13874),l=r(69540),o=r(51447),a=r(25482),u=r(53966),p=r(36708),c=r(24326),m=r(10107),d=(r(44208),r(87811),r(40608)),h=r(12195),y=r(65864),g=r(50498),f=r(60950),v=r(54339),b=r(33910);function w(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let x=class extends((0,l.OU)(a.o)){static{i=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,o.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,f.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,v.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:w(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,m.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,y.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],x.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,m.MZ)({value:null})],x.prototype,"attributes",null),(0,n.Cg)([(0,m.MZ)({value:null,types:g.yR,json:{read:y.rS}})],x.prototype,"geometry",null),(0,n.Cg)([(0,m.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,n.Cg)([(0,m.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,n.Cg)([(0,m.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,n.Cg)([(0,m.MZ)({type:s.A,value:null})],x.prototype,"popupTemplate",null),(0,n.Cg)([(0,m.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,m.MZ)({value:null,types:b.Es})],x.prototype,"symbol",null),(0,n.Cg)([(0,m.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,n.Cg)([(0,m.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=i=(0,n.Cg)([(0,d.$)("esri.Graphic")],x)},54339:(e,t,r)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>n})},60950:(e,t,r)=>{r.d(t,{E_:()=>n,ym:()=>i});const i=Symbol("popupProvider");function n(e){return function(e){return!!e&&i in e}(e)?e[i]:null}},64272:(e,t,r)=>{r.d(t,{T:()=>m});var i,n=r(31635),s=r(25482),l=r(88930),o=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),c=r(98623);let m=class extends s.o{static{i=this}static get allTime(){return d}static get empty(){return h}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,l.lL)(r,e,t));let n=this.end;if(n){const r=(0,l.lL)(n,e,t);n=n.getTime()===r.getTime()?r:(0,l.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let l,o;return n>=t&&n<=r?l=n:t>=n&&t<=s&&(l=t),r>=n&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==l||null==o||isNaN(l)||isNaN(o)?i.empty:new i({start:l===-1/0?null:new Date(l),end:o===1/0?null:new Date(o)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:o}=this;return null!=s&&(n.start=(0,l.S1)(s,e,t,r)),null!=o&&(n.end=(0,l.S1)(o,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,n.Cg)([(0,a.w)("end")],m.prototype,"readEnd",null),(0,n.Cg)([(0,p.K)("end")],m.prototype,"writeEnd",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,n.Cg)([(0,a.w)("start")],m.prototype,"readStart",null),(0,n.Cg)([(0,p.K)("start")],m.prototype,"writeStart",null),m=i=(0,n.Cg)([(0,u.$)("esri.time.TimeExtent")],m);const d=new m,h=new m({start:void 0,end:void 0})},70328:(e,t,r)=>{r.d(t,{BI:()=>b,DC:()=>c,Ej:()=>d,Ie:()=>f,Jt:()=>v,Ne:()=>h,RF:()=>p,aI:()=>x,fA:()=>l,gE:()=>a,hZ:()=>g,iT:()=>m,is:()=>w,qv:()=>I,vI:()=>y,vY:()=>o,v_:()=>M,vt:()=>s,w1:()=>u});var i=r(5443),n=(r(19419),r(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function l(e,t,r,i,n,l,o=s()){return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=n,o[5]=l,o}function o(e,t=s()){return function(e,t,r,i=s()){return g(i,I),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],l=e[2],o=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),l=Math.min(l,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=l,e[3]=o,e[4]=a,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function a(e,t=(0,n.jh)(24)){const[r,i,s,l,o,a]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=a,t[6]=r,t[7]=o,t[8]=s,t[9]=r,t[10]=o,t[11]=a,t[12]=l,t[13]=i,t[14]=s,t[15]=l,t[16]=i,t[17]=a,t[18]=l,t[19]=o,t[20]=s,t[21]=l,t[22]=o,t[23]=a,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function g(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}function f(e){return e?g(e,I):s(I)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function b(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function x(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},82935:(e,t,r)=>{r.d(t,{B:()=>d,e:()=>h});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),o=r(89317),a=r(30524),u=r(96184),p=r(73133),c=r(64272),m=r(26253);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},h=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=p.j.fromJSON(r.timeOffsetUnits);return i&&n?new m.T({value:i,unit:n}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:c.T,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:m.T})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,l.$)("esri.layers.mixins.TemporalLayer")],r),r}},83960:(e,t,r)=>{r.d(t,{X_:()=>l,oW:()=>a,zx:()=>o});var i=r(34727),n=r(83047);const s=96;function l(e,t){const r=t||e.extent,i=e.width,l=(0,n.GA)(r?.spatialReference);return r&&i?r.width/i*l*n.dy*s:0}function o(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}function a(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},96184:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(31635),n=r(69540),s=r(25482),l=r(10107),o=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),u=r(43937),p=r(64272),c=r(26253),m=r(56400);function d(e,t){return c.T.fromJSON({value:e,unit:t})}let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?p.T.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,l.MZ)({type:p.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,o.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,l.MZ)({type:c.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,o.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,l.MZ)((0,m.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,l.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,a.$)("esri.layers.support.TimeInfo")],h)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(76591),l(76597),l(24321),l(60864),l(43519),l(96336),l(71955),l(53466),l(92700),l(35640),l(40261),l(65836),l(89390),l(98619),l(22393),l(59469),l(32482),l(96598),l(42398),l(58614),l(27950),l(25178),l(33079),l(71988),l(20304),l(31821),l(63761),l(43616),l(60517),l(14113);var s=l(57323)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(76591),l(76597),l(24321),l(60864),l(43519),l(96336),l(71955),l(53466),l(92700),l(35640),l(40261),l(65836),l(89390),l(98619),l(22393),l(59469),l(32482),l(96598),l(42398),l(58614),l(27950),l(25178),l(33079),l(71988),l(20304),l(31821),l(63761),l(10906),l(43616),l(60517),l(14113);var s=l(57323)}}]);
@@ -333,7 +333,7 @@ if (renderTransparentlyOccludedHUD > 0.5) {
333
333
  return occlusionPixel.r * occlusionPixel.g > 0.0 && occlusionPixel.g * renderTransparentlyOccludedHUD < 1.0;
334
334
  }
335
335
  return occlusionPixel.r * occlusionPixel.g > 0.0 && occlusionPixel.g == 1.0;
336
- }`)}},51624:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(44208),i=r(69397),s=r(93687);const o=4294967296,a=new TextDecoder("utf-8"),l=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class c{constructor(e,t,r=0,n=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this._init(e,t,r,n)}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}get usedMemory(){return 64+(0,i.Qf)(this._data)}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;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}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,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),r}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,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){const i=this.getMessage(),s=e(i,t,r,n);return i.release(),s}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}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 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5: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,r=0,n=0;if(this._end-t>=10)do{if(n=e[t++],r|=127&n,!(128&n))break;if(n=e[t++],r|=(127&n)<<7,!(128&n))break;if(n=e[t++],r|=(127&n)<<14,!(128&n))break;if(n=e[t++],r|=(127&n)<<21,!(128&n))break;if(n=e[t++],r+=268435456*(127&n),!(128&n))break;if(n=e[t++],r+=34359738368*(127&n),!(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),!(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),!(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),!(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),!(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;t!==this._end&&(n=e[t],128&n);)++t,r+=(127&n)*i,i*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*i}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,n=0;const i=1&e[this._pos];if(n=e[this._pos++],r|=127&n,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<7,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<14,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<21,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=268435456*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=34359738368*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=4398046511104*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(t=BigInt(r),n=e[this._pos++],t+=0x2000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x100000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x8000000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>l){const n=e.subarray(t,r);return a.decode(n)}let n="",i="";for(let s=t;s<r;++s){const t=e[s];128&t?i+="%"+t.toString(16):(n+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(n+=decodeURIComponent(i)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new s.A(()=>new c(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},52106:(e,t,r)=>{r.d(t,{A:()=>v});var n,i=r(31635),s=r(13874),o=r(69540),a=r(51447),l=r(25482),c=r(53966),u=r(36708),d=r(24326),f=r(10107),h=(r(44208),r(87811),r(40608)),p=r(12195),m=r(65864),y=r(50498),g=r(54339),_=r(33910);function b(e){if(null==e)return null;const t={};for(const r in e){const n=e[r];n&&(t[r]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let v=class extends((0,o.OU)(l.o)){static{n=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const r of[t,this.sourceLayer,this.layer])if(r&&"object"==typeof r){if("popupTemplate"in r&&r.popupTemplate)return r.popupTemplate;if(e&&"defaultPopupTemplate"in r&&null!=r.defaultPopupTemplate)return r.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,g.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:b(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,p.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=n),"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,u.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,u.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const n=(0,m.rS)(e[r]);n&&(t[r]=n)}return 0!==Object.keys(t).length?t:null}}})],v.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,f.MZ)({value:null})],v.prototype,"attributes",null),(0,i.Cg)([(0,f.MZ)({value:null,types:y.yR,json:{read:m.rS}})],v.prototype,"geometry",null),(0,i.Cg)([(0,f.MZ)({type:Boolean})],v.prototype,"isAggregate",void 0),(0,i.Cg)([(0,f.MZ)({clonable:!1})],v.prototype,"layer",void 0),(0,i.Cg)([(0,f.MZ)({clonable:"reference"})],v.prototype,"origin",void 0),(0,i.Cg)([(0,f.MZ)({type:s.A,value:null})],v.prototype,"popupTemplate",null),(0,i.Cg)([(0,f.MZ)({clonable:"reference"})],v.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,f.MZ)({value:null,types:_.Es})],v.prototype,"symbol",null),(0,i.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],v.prototype,"_version",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,value:!0})],v.prototype,"visible",null),v=n=(0,i.Cg)([(0,h.$)("esri.Graphic")],v)},53177:(e,t,r)=>{r.d(t,{A:()=>d});var n,i=r(31635),s=r(4718),o=r(10107),a=(r(44208),r(53966),r(93223)),l=r(40608),c=r(39357),u=r(76357);let d=class extends u.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[c.H],json:{write:{isRequired:!0}}})],d.prototype,"codedValues",void 0),(0,i.Cg)([(0,a.e)({codedValue:"coded-value"})],d.prototype,"type",void 0),d=n=(0,i.Cg)([(0,l.$)("esri.layers.support.CodedValueDomain")],d)},53655:(e,t,r)=>{r.d(t,{SH:()=>P,ae:()=>C,cn:()=>_});var n=r(49186),i=r(51624),s=r(92722),o=r(69418);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function u(e){return e>=a.length?null:a[e]}function d(e){return e>=l.length?null:l[e]}function f(e){return e>=c.length?null:c[e]}function h(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function p(e,t,r){const n=e.asUnsafe(),i=t.createPointGeometry(r);for(;n.next();)switch(n.tag()){case 3:{const e=n.getUInt32(),r=n.pos()+e;let s=0;for(;n.pos()<r;)t.addCoordinatePoint(i,n.getSInt64(),s++);break}default:n.skip()}return i}function m(e,t,r){const n=e.asUnsafe(),i=t.createGeometry(r),s=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;n.next();)switch(n.tag()){case 2:{const e=n.getUInt32(),r=n.pos()+e;let s=0;for(;n.pos()<r;)t.addLength(i,n.getUInt32(),s++);break}case 3:{const e=n.getUInt32(),r=n.pos()+e;let o=0;for(t.allocateCoordinates(i);n.pos()<r;)t.addCoordinate(i,n.getSInt64(),o),o++,o===s&&(o=0);break}default:n.skip()}return i}function y(e){const t=e.asUnsafe(),r=new s.A;let n="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.coords.push(t.getSInt64());break}case 1:n=o.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:n}}function g(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:u(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=u(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=d(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function v(e,t,r,n){const i=t.createFeature(r);let s=0;for(;e.next();)switch(e.tag()){case 1:{const t=n[s++].name;i.attributes[t]=e.processMessage(g);break}case 2:i.geometry=e.processMessageWithArgs(m,t,r);break;case 4:i.centroid=e.processMessageWithArgs(p,t,r);break;default:e.skip()}return i}function w(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function x(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function C(e){const t={originPosition:f(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=f(r.getEnum());break;case 2:t.scale=r.processMessage(w);break;case 3:t.translate=r.processMessage(x);break;default:r.skip()}return t}function S(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function T(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function A(e,t){const r=t.createFeatureResult(),n=e.asUnsafe();r.geometryType=h(t,0);let i=!1;for(;n.next();)switch(n.tag()){case 1:r.objectIdFieldName=n.getString();break;case 3:r.globalIdFieldName=n.getString();break;case 4:r.geohashFieldName=n.getString();break;case 5:r.geometryProperties=n.processMessage(S);break;case 7:r.geometryType=h(t,n.getEnum());break;case 8:r.spatialReference=n.processMessageWithArgs(T,t);break;case 10:r.hasZ=n.getBool();break;case 11:r.hasM=n.getBool();break;case 12:r.transform=n.processMessage(C);break;case 9:r.exceededTransferLimit=n.getBool();break;case 13:t.addField(r,n.processMessage(_));break;case 15:i||(t.prepareFeatures(r),i=!0),t.addFeature(r,n.processMessageWithArgs(v,t,r,r.fields));break;case 2:r.uniqueIdField=n.processMessage(b);break;default:n.skip()}return t.finishFeatureResult(r),r}function I(e,t){const r={};let n=null;for(;e.next();)switch(e.tag()){case 4:n=e.processMessageWithArgs(y);break;case 1:r.featureResult=e.processMessageWithArgs(A,t);break;default:e.skip()}return null!=n&&r.featureResult&&t.addQueryGeometry(r,n),r}function P(e,t){try{const r=2,n=new i.A(new Uint8Array(e),new DataView(e)),s={};for(;n.next();)n.tag()===r?s.queryResult=n.processMessageWithArgs(I,t):n.skip();return s}catch(e){throw new n.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},55674:(e,t,r)=>{r.d(t,{Ad:()=>h,Gj:()=>y,QY:()=>f,lL:()=>g,xR:()=>p});var n=r(66131),i=r(49186),s=(r(44208),r(44729)),o=r(15032),a=r(65864),l=r(95466),c=r(43668),u=r(98623);const d=["geometry","scale","timeProperties"];function f(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function h(e,t){return m.create(e,t,null,["$feature","$view"])}function p(e,t,r){return m.create(e,t,r,["$feature","$view","$config"])}class m{static async create(e,t,r,n){const{arcade:s,Dictionary:o}=await(0,c.l)();let a;try{a=s.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=s.scriptUsesGeometryEngine(a);l&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,a,null,!1,l);const u={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=s.compileScript(a,u);let f=null;null!=r&&(f=new o(r),f.immutable=!0);const h=new o;return h.immutable=!1,h.setField("scale",0),new m(e,s,a,d,t,h,f,o)}constructor(e,t,r,n,i,s,o,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=s,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=s?null!=r?n.lY.epochToArcadeDate(s,r):n.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??u.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501:(e,t,r)=>{r.d(t,{q:()=>i});var n=r(62815);function i(e,t,r){if(!r?.features||!r.hasZ)return;const i=(0,n.N)(r.geometryType,t,e.outSpatialReference);if(null!=i)for(const e of r.features)i(e.geometry)}},60999:(e,t,r)=>{r.d(t,{DZ:()=>p,Ke:()=>h,Tj:()=>u,UT:()=>m,jJ:()=>c});var n=r(31635),i=r(65008),s=r(97768),o=r(74887),a=r(10107),l=r(40608);function c(e,t,r){return(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function u(e,t,r){return(await(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function d(e){return{ok:!0,value:e}}function f(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return d(await e)}catch(e){return f(e)}}async function p(e){try{return d(await e)}catch(e){return(0,o.QP)(e),f(e)}}function m(e,t){return new y(e,t)}let y=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=d(e),this._cleanup()},e=>{this._result=f(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y)},62815:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(83047),i=r(73941),s=r(21325);function o(e,t,r){if(null==t||null==r||r.vcsWkid||(0,s.aI)(t,r)||(0,i.xP)(t)||(0,i.xP)(r))return null;const o=(0,n.G9)(t)/(0,n.G9)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},63578:(e,t,r)=>{r.d(t,{I:()=>o});var n=r(47522),i=r(96598),s=r(31821);function o(e,t){const{vertex:r,fragment:o}=e;e.include(i.Z,t),r.include(n.K),r.main.add(s.H`vec4 posProjCenter;
336
+ }`)}},51624:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(44208),i=r(69397),s=r(93687);const o=4294967296,a=new TextDecoder("utf-8"),l=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class c{constructor(e,t,r=0,n=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this._init(e,t,r,n)}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}get usedMemory(){return 64+(0,i.Qf)(this._data)}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;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}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,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),r}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,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){const i=this.getMessage(),s=e(i,t,r,n);return i.release(),s}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}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 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5: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,r=0,n=0;if(this._end-t>=10)do{if(n=e[t++],r|=127&n,!(128&n))break;if(n=e[t++],r|=(127&n)<<7,!(128&n))break;if(n=e[t++],r|=(127&n)<<14,!(128&n))break;if(n=e[t++],r|=(127&n)<<21,!(128&n))break;if(n=e[t++],r+=268435456*(127&n),!(128&n))break;if(n=e[t++],r+=34359738368*(127&n),!(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),!(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),!(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),!(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),!(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;t!==this._end&&(n=e[t],128&n);)++t,r+=(127&n)*i,i*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*i}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,n=0;const i=1&e[this._pos];if(n=e[this._pos++],r|=127&n,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<7,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<14,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<21,!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=268435456*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=34359738368*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(n=e[this._pos++],r+=4398046511104*(127&n),!(128&n))return i?-(r+1)/2:r/2;if(t=BigInt(r),n=e[this._pos++],t+=0x2000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x100000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x8000000000000000n*BigInt(127&n),!(128&n))return Number(i?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>l){const n=e.subarray(t,r);return a.decode(n)}let n="",i="";for(let s=t;s<r;++s){const t=e[s];128&t?i+="%"+t.toString(16):(n+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(n+=decodeURIComponent(i)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new s.A(()=>new c(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},52106:(e,t,r)=>{r.d(t,{A:()=>w});var n,i=r(31635),s=r(13874),o=r(69540),a=r(51447),l=r(25482),c=r(53966),u=r(36708),d=r(24326),f=r(10107),h=(r(44208),r(87811),r(40608)),p=r(12195),m=r(65864),y=r(50498),g=r(60950),_=r(54339),b=r(33910);function v(e){if(null==e)return null;const t={};for(const r in e){const n=e[r];n&&(t[r]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let w=class extends((0,o.OU)(l.o)){static{n=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,g.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,_.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:v(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,p.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=n),"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,u.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,u.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const n=(0,m.rS)(e[r]);n&&(t[r]=n)}return 0!==Object.keys(t).length?t:null}}})],w.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,f.MZ)({value:null})],w.prototype,"attributes",null),(0,i.Cg)([(0,f.MZ)({value:null,types:y.yR,json:{read:m.rS}})],w.prototype,"geometry",null),(0,i.Cg)([(0,f.MZ)({type:Boolean})],w.prototype,"isAggregate",void 0),(0,i.Cg)([(0,f.MZ)({clonable:!1})],w.prototype,"layer",void 0),(0,i.Cg)([(0,f.MZ)({clonable:"reference"})],w.prototype,"origin",void 0),(0,i.Cg)([(0,f.MZ)({type:s.A,value:null})],w.prototype,"popupTemplate",null),(0,i.Cg)([(0,f.MZ)({clonable:"reference"})],w.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,f.MZ)({value:null,types:b.Es})],w.prototype,"symbol",null),(0,i.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],w.prototype,"_version",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,value:!0})],w.prototype,"visible",null),w=n=(0,i.Cg)([(0,h.$)("esri.Graphic")],w)},53177:(e,t,r)=>{r.d(t,{A:()=>d});var n,i=r(31635),s=r(4718),o=r(10107),a=(r(44208),r(53966),r(93223)),l=r(40608),c=r(39357),u=r(76357);let d=class extends u.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[c.H],json:{write:{isRequired:!0}}})],d.prototype,"codedValues",void 0),(0,i.Cg)([(0,a.e)({codedValue:"coded-value"})],d.prototype,"type",void 0),d=n=(0,i.Cg)([(0,l.$)("esri.layers.support.CodedValueDomain")],d)},53655:(e,t,r)=>{r.d(t,{SH:()=>P,ae:()=>C,cn:()=>_});var n=r(49186),i=r(51624),s=r(92722),o=r(69418);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function u(e){return e>=a.length?null:a[e]}function d(e){return e>=l.length?null:l[e]}function f(e){return e>=c.length?null:c[e]}function h(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function p(e,t,r){const n=e.asUnsafe(),i=t.createPointGeometry(r);for(;n.next();)switch(n.tag()){case 3:{const e=n.getUInt32(),r=n.pos()+e;let s=0;for(;n.pos()<r;)t.addCoordinatePoint(i,n.getSInt64(),s++);break}default:n.skip()}return i}function m(e,t,r){const n=e.asUnsafe(),i=t.createGeometry(r),s=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;n.next();)switch(n.tag()){case 2:{const e=n.getUInt32(),r=n.pos()+e;let s=0;for(;n.pos()<r;)t.addLength(i,n.getUInt32(),s++);break}case 3:{const e=n.getUInt32(),r=n.pos()+e;let o=0;for(t.allocateCoordinates(i);n.pos()<r;)t.addCoordinate(i,n.getSInt64(),o),o++,o===s&&(o=0);break}default:n.skip()}return i}function y(e){const t=e.asUnsafe(),r=new s.A;let n="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.coords.push(t.getSInt64());break}case 1:n=o.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:n}}function g(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:u(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=u(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=d(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function v(e,t,r,n){const i=t.createFeature(r);let s=0;for(;e.next();)switch(e.tag()){case 1:{const t=n[s++].name;i.attributes[t]=e.processMessage(g);break}case 2:i.geometry=e.processMessageWithArgs(m,t,r);break;case 4:i.centroid=e.processMessageWithArgs(p,t,r);break;default:e.skip()}return i}function w(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function x(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function C(e){const t={originPosition:f(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=f(r.getEnum());break;case 2:t.scale=r.processMessage(w);break;case 3:t.translate=r.processMessage(x);break;default:r.skip()}return t}function S(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function T(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function A(e,t){const r=t.createFeatureResult(),n=e.asUnsafe();r.geometryType=h(t,0);let i=!1;for(;n.next();)switch(n.tag()){case 1:r.objectIdFieldName=n.getString();break;case 3:r.globalIdFieldName=n.getString();break;case 4:r.geohashFieldName=n.getString();break;case 5:r.geometryProperties=n.processMessage(S);break;case 7:r.geometryType=h(t,n.getEnum());break;case 8:r.spatialReference=n.processMessageWithArgs(T,t);break;case 10:r.hasZ=n.getBool();break;case 11:r.hasM=n.getBool();break;case 12:r.transform=n.processMessage(C);break;case 9:r.exceededTransferLimit=n.getBool();break;case 13:t.addField(r,n.processMessage(_));break;case 15:i||(t.prepareFeatures(r),i=!0),t.addFeature(r,n.processMessageWithArgs(v,t,r,r.fields));break;case 2:r.uniqueIdField=n.processMessage(b);break;default:n.skip()}return t.finishFeatureResult(r),r}function I(e,t){const r={};let n=null;for(;e.next();)switch(e.tag()){case 4:n=e.processMessageWithArgs(y);break;case 1:r.featureResult=e.processMessageWithArgs(A,t);break;default:e.skip()}return null!=n&&r.featureResult&&t.addQueryGeometry(r,n),r}function P(e,t){try{const r=2,n=new i.A(new Uint8Array(e),new DataView(e)),s={};for(;n.next();)n.tag()===r?s.queryResult=n.processMessageWithArgs(I,t):n.skip();return s}catch(e){throw new n.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},55674:(e,t,r)=>{r.d(t,{Ad:()=>h,Gj:()=>y,QY:()=>f,lL:()=>g,xR:()=>p});var n=r(66131),i=r(49186),s=(r(44208),r(44729)),o=r(15032),a=r(65864),l=r(95466),c=r(43668),u=r(98623);const d=["geometry","scale","timeProperties"];function f(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function h(e,t){return m.create(e,t,null,["$feature","$view"])}function p(e,t,r){return m.create(e,t,r,["$feature","$view","$config"])}class m{static async create(e,t,r,n){const{arcade:s,Dictionary:o}=await(0,c.l)();let a;try{a=s.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=s.scriptUsesGeometryEngine(a);l&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,a,null,!1,l);const u={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=s.compileScript(a,u);let f=null;null!=r&&(f=new o(r),f.immutable=!0);const h=new o;return h.immutable=!1,h.setField("scale",0),new m(e,s,a,d,t,h,f,o)}constructor(e,t,r,n,i,s,o,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=s,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=s?null!=r?n.lY.epochToArcadeDate(s,r):n.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??u.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501:(e,t,r)=>{r.d(t,{q:()=>i});var n=r(62815);function i(e,t,r){if(!r?.features||!r.hasZ)return;const i=(0,n.N)(r.geometryType,t,e.outSpatialReference);if(null!=i)for(const e of r.features)i(e.geometry)}},60950:(e,t,r)=>{r.d(t,{E_:()=>i,ym:()=>n});const n=Symbol("popupProvider");function i(e){return function(e){return!!e&&n in e}(e)?e[n]:null}},60999:(e,t,r)=>{r.d(t,{DZ:()=>p,Ke:()=>h,Tj:()=>u,UT:()=>m,jJ:()=>c});var n=r(31635),i=r(65008),s=r(97768),o=r(74887),a=r(10107),l=r(40608);function c(e,t,r){return(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function u(e,t,r){return(await(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function d(e){return{ok:!0,value:e}}function f(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return d(await e)}catch(e){return f(e)}}async function p(e){try{return d(await e)}catch(e){return(0,o.QP)(e),f(e)}}function m(e,t){return new y(e,t)}let y=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=d(e),this._cleanup()},e=>{this._result=f(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y)},62815:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(83047),i=r(73941),s=r(21325);function o(e,t,r){if(null==t||null==r||r.vcsWkid||(0,s.aI)(t,r)||(0,i.xP)(t)||(0,i.xP)(r))return null;const o=(0,n.G9)(t)/(0,n.G9)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},63578:(e,t,r)=>{r.d(t,{I:()=>o});var n=r(47522),i=r(96598),s=r(31821);function o(e,t){const{vertex:r,fragment:o}=e;e.include(i.Z,t),r.include(n.K),r.main.add(s.H`vec4 posProjCenter;
337
337
  if (dot(position, position) > 0.0) {
338
338
  ProjectHUDAux projectAux;
339
339
  vec4 posProj = projectPositionHUD(projectAux);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6239],{7543:(t,e,n)=>{n.r(e),n.d(e,{default:()=>z});var o=n(31635),r=n(78888),i=n(49186),a=n(53966),s=n(92071),u=n(74887),c=n(36708),l=n(10107),f=(n(44208),n(87811),n(36005)),h=n(40608),d=n(87024),m=n(5443),p=n(16930),M=n(99959);const g=Symbol("isIntegratedMesh3DTilesGraphicOrigin");var y;class x extends M.A{static{y=g}constructor(t){super(),this[y]=!0,this.type="integrated-mesh-3dtiles",this.layer=t}}var A=n(4146),b=n(52136),v=n(18768),w=n(69208),S=n(16131),I=n(8303),_=n(25036),E=n(10873),L=n(58325),R=n(88546),C=n(24212),T=n(97159);let q=class extends((0,v.b)((0,S.q)((0,I.A)((0,_.j)((0,s.P)((0,w.d)((0,b.p)(A.A)))))))){readModifications(t,e,n){this._modificationsSource={url:(0,T.f)(t,n),context:n}}initialize(){this.addHandles((0,c.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,c.OH))}constructor(t){super(t),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new p.A({wkid:4326,vcsWkid:115700}),this.fullExtent=new m.A(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this.graphicOrigin=new x(this),this.rootTilesetJSON=null}set elevationInfo(t){null!=t&&"absolute-height"!==t.mode||this._set("elevationInfo",t),this._validateElevationInfo(t)}async load(t){return this.addResolvingPromise(this._doLoad(t)),this}async _doLoad(t){const e=null!=t?t.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:t=>{if(t.typeKeywords?.includes("IntegratedMesh"))return!0;throw new i.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},t)}catch(t){(0,u.QP)(t)}if(null!=this._modificationsSource){const e=await L.A.fromUrl(this._modificationsSource.url,this.spatialReference,t);this.setAtOrigin("modifications",e,this._modificationsSource.context.origin),this._modificationsSource=null}if(this.url){const t=(0,r.A)(this.url,{query:{...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t=>{this.rootTilesetJSON=t.data,this.fullExtent=(0,R.u)(this.rootTilesetJSON)},t=>{(0,u.QP)(t),a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",t)});await t}}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},t=>{a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",t)})}async fetchAttributionData(){return this.load().then(()=>({}))}_validateElevationInfo(t){const e="Integrated mesh 3d tiles layers";(0,C.XF)(a.A.getLogger(this),(0,C.B)(e,"absolute-height",t)),(0,C.XF)(a.A.getLogger(this),(0,C.tW)(e,t))}get isGroundReplacement(){return!!this.url?.match(/.+\.googleapis.com/)}};(0,o.Cg)([(0,l.MZ)({type:["IntegratedMesh3DTilesLayer"]})],q.prototype,"operationalLayerType",void 0),(0,o.Cg)([(0,l.MZ)({type:L.A,clonable:t=>t.clone()}),(0,d.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],q.prototype,"modifications",void 0),(0,o.Cg)([(0,f.w)(["web-scene","portal-item"],"modifications")],q.prototype,"readModifications",null),(0,o.Cg)([(0,l.MZ)({type:p.A})],q.prototype,"spatialReference",void 0),(0,o.Cg)([(0,l.MZ)({type:m.A})],q.prototype,"fullExtent",void 0),(0,o.Cg)([(0,l.MZ)(E.Yj)],q.prototype,"elevationInfo",null),(0,o.Cg)([(0,l.MZ)({type:["show","hide"]})],q.prototype,"listMode",void 0),(0,o.Cg)([(0,l.MZ)(E.OZ)],q.prototype,"url",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],q.prototype,"type",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],q.prototype,"path",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],q.prototype,"minScale",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],q.prototype,"maxScale",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],q.prototype,"graphicOrigin",void 0),q=(0,o.Cg)([(0,h.$)("esri.layers.IntegratedMesh3DTilesLayer")],q);const z=q},24212:(t,e,n)=>{function o(t,e){return function(t,e){return e?.mode?e.mode:function(t){return t?u:c}(t).mode}(null==t||(t.hasZ??!1),e)}function r(t,e,n){return n&&n.mode!==e?`${t} only support ${e} elevation mode`:null}function i(t,e,n){return n?.mode===e?`${t} do not support ${e} elevation mode`:null}function a(t,e){return null!=e?.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function s(t,e){e&&t.warn(".elevationInfo=",e)}n.d(e,{$7:()=>i,B:()=>r,XF:()=>s,tW:()=>a,w7:()=>o}),n(83047),n(16271);const u={mode:"absolute-height",offset:0},c={mode:"on-the-ground",offset:null}},38954:(t,e,n)=>{n.d(e,{A:()=>m,B:()=>d,C:()=>l,D:()=>f,E:()=>z,F:()=>k,H:()=>N,a:()=>O,b:()=>g,c:()=>a,d:()=>c,e:()=>S,f:()=>u,g:()=>M,h:()=>I,i:()=>s,j:()=>y,k:()=>A,l:()=>i,m:()=>_,n:()=>w,o:()=>L,q:()=>q,r:()=>v,s:()=>x,t:()=>E,u:()=>b,v:()=>R,w:()=>h,x:()=>j,y:()=>P,z:()=>p});var o=n(51850),r=n(34304);function i(t){const e=t[0],n=t[1],o=t[2];return Math.sqrt(e*e+n*n+o*o)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(t,e,n,o){return t[0]=e,t[1]=n,t[2]=o,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function M(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,o){return t[0]=e[0]+n[0]*o,t[1]=e[1]+n[1]*o,t[2]=e[2]+n[2]*o,t}function y(t,e){const n=e[0]-t[0],o=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+o*o+r*r)}function x(t,e){const n=e[0]-t[0],o=e[1]-t[1],r=e[2]-t[2];return n*n+o*o+r*r}function A(t){const e=t[0],n=t[1],o=t[2];return e*e+n*n+o*o}function b(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function v(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e){const n=e[0],o=e[1],r=e[2];let i=n*n+o*o+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){const o=e[0],r=e[1],i=e[2],a=n[0],s=n[1],u=n[2];return t[0]=r*u-i*s,t[1]=i*a-o*u,t[2]=o*s-r*a,t}function _(t,e,n,o){const r=e[0],i=e[1],a=e[2];return t[0]=r+o*(n[0]-r),t[1]=i+o*(n[1]-i),t[2]=a+o*(n[2]-a),t}function E(t,e,n){const o=e[0],r=e[1],i=e[2];return t[0]=n[0]*o+n[4]*r+n[8]*i+n[12],t[1]=n[1]*o+n[5]*r+n[9]*i+n[13],t[2]=n[2]*o+n[6]*r+n[10]*i+n[14],t}function L(t,e,n){const o=e[0],r=e[1],i=e[2];return t[0]=o*n[0]+r*n[3]+i*n[6],t[1]=o*n[1]+r*n[4]+i*n[7],t[2]=o*n[2]+r*n[5]+i*n[8],t}function R(t,e,n){const o=n[0],r=n[1],i=n[2],a=n[3],s=e[0],u=e[1],c=e[2],l=r*c-i*u,f=i*s-o*c,h=o*u-r*s,d=r*h-i*f,m=i*l-o*h,p=o*f-r*l,M=2*a;return t[0]=s+l*M+2*d,t[1]=u+f*M+2*m,t[2]=c+h*M+2*p,t}const C=(0,o.vt)(),T=(0,o.vt)();function q(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function z(t,e,n){const o=n[0]-e[0],r=n[1]-e[1],i=n[2]-e[2];let a=o*o+r*r+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=o*a,t[1]=r*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const O=c,D=l,Z=f,k=y,j=x,N=i,P=A;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:function(t,e){w(C,t),w(T,e);const n=S(C,T);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,o,r,i){const a=1-i,s=a*a,u=i*i,c=s*a,l=3*i*s,f=3*u*a,h=u*i;return t[0]=e[0]*c+n[0]*l+o[0]*f+r[0]*h,t[1]=e[1]*c+n[1]*l+o[1]*f+r[1]*h,t[2]=e[2]*c+n[2]*l+o[2]*f+r[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:a,cross:I,crossAndNormalize:function(t,e,n){const o=e[0],r=e[1],i=e[2],a=n[0],s=n[1],u=n[2],c=r*u-i*s,l=i*a-o*u,f=o*s-r*a,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:z,dist:k,distance:y,div:Z,divide:f,dot:S,equals:function(t,e){if(t===e)return!0;const n=t[0],o=t[1],i=t[2],a=e[0],s=e[1],u=e[2],c=(0,r.FD)();return Math.abs(n-a)<=c*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(o-s)<=c*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))},exactEquals:q,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,o,r,i){const a=i*i,s=a*(2*i-3)+1,u=a*(i-2)+i,c=a*(i-1),l=a*(3-2*i);return t[0]=e[0]*s+n[0]*u+o[0]*c+r[0]*l,t[1]=e[1]*s+n[1]*u+o[1]*c+r[1]*l,t[2]=e[2]*s+n[2]*u+o[2]*c+r[2]*l,t},inverse:v,len:N,length:i,lerp:_,max:p,min:m,mul:D,multiply:l,negate:b,normalize:w,random:function(t,e=1){const n=r.Ov,o=2*n()*Math.PI,i=2*n()-1,a=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(o)*a,t[1]=Math.sin(o)*a,t[2]=i*e,t},rotateX:function(t,e,n,o){const r=[],i=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],i[0]=r[0],i[1]=r[1]*Math.cos(o)-r[2]*Math.sin(o),i[2]=r[1]*Math.sin(o)+r[2]*Math.cos(o),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,o){const r=[],i=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],i[0]=r[2]*Math.sin(o)+r[0]*Math.cos(o),i[1]=r[1],i[2]=r[2]*Math.cos(o)-r[0]*Math.sin(o),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,o){const r=[],i=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],i[0]=r[0]*Math.cos(o)-r[1]*Math.sin(o),i[1]=r[0]*Math.sin(o)+r[1]*Math.cos(o),i[2]=r[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:M,scaleAndAdd:g,set:s,sign:d,sqrDist:j,sqrLen:P,squaredDistance:x,squaredLength:A,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:O,subtract:c,transformMat3:L,transformMat4:E,transformQuat:R},Symbol.toStringTag,{value:"Module"}))},76553:(t,e,n)=>{function o(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>o})},88546:(t,e,n)=>{n.d(e,{u:()=>d});var o=n(34727),r=n(38954),i=n(51850),a=n(73941),s=n(5443),u=n(16930),c=n(9762);function l(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const f=7645211,h={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function d(t){let e=new u.A({wkid:4326,vcsWkid:115700}),n=t.root?.boundingVolume,d=!1,m=t?.root?.transform;if((t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))e=new u.A(t.extensions?.ESRI_crs),n=t.root?.extensions?.ESRI_crs?.boundingVolume,m=t.root?.transform,d=!0;else if(!n)return new s.A(-180,-90,180,90,e);if(n.box){const t=n?.box;if(t[3]>f&&t[7]>f&&t[11]>f)return new s.A({...h,sr:e})}const p=(0,i.vt)();if(!d&&n.region&&l(n.region,6)){const t=n.region,r=(0,o.KJ)(t[0]),i=(0,o.KJ)(t[1]),a=t[4],u=(0,o.KJ)(t[2]),c=(0,o.KJ)(t[3]),l=t[5];return new s.A({xmin:r,ymin:i,zmin:a,xmax:u,ymax:c,zmax:l,spatialReference:e})}if(n.sphere&&l(n.sphere,4)){const t=n.sphere,o=(0,i.fA)(t[0],t[1],t[2]),f=t[3]/Math.sqrt(3),h=(0,i.vt)();(0,r.d)(h,o,(0,i.fA)(f,f,f));const M=(0,i.vt)();if((0,r.f)(M,o,(0,i.fA)(f,f,f)),m&&l(m,16)){const t=m;(0,r.t)(p,h,t),(0,r.c)(h,p),(0,r.t)(p,M,t),(0,r.c)(M,p)}d||((0,c.projectBuffer)(h,a.Ro,0,h,u.A.WGS84,0),(0,c.projectBuffer)(M,a.Ro,0,M,u.A.WGS84,0));const g=(0,i.vt)(),y=(0,i.vt)();return(0,r.A)(g,h,M),(0,r.z)(y,h,M),new s.A({xmin:g[0],ymin:g[1],zmin:g[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:e})}if(n.box&&l(n.box,12)){const t=n.box,o=(0,i.fA)(t[0],t[1],t[2]),f=(0,i.fA)(t[3],t[4],t[5]),h=(0,i.fA)(t[6],t[7],t[8]),p=(0,i.fA)(t[9],t[10],t[11]),M=[];for(let t=0;t<8;++t)M.push((0,i.vt)());if((0,r.f)(M[0],o,f),(0,r.f)(M[0],M[0],h),(0,r.f)(M[0],M[0],p),(0,r.a)(M[1],o,f),(0,r.f)(M[1],M[1],h),(0,r.f)(M[1],M[1],p),(0,r.f)(M[2],o,f),(0,r.a)(M[2],M[2],h),(0,r.f)(M[2],M[2],p),(0,r.a)(M[3],o,f),(0,r.a)(M[3],M[3],h),(0,r.f)(M[3],M[3],p),(0,r.f)(M[4],o,f),(0,r.f)(M[4],M[4],h),(0,r.a)(M[4],M[4],p),(0,r.a)(M[5],o,f),(0,r.f)(M[5],M[5],h),(0,r.a)(M[5],M[5],p),(0,r.f)(M[6],o,f),(0,r.a)(M[6],M[6],h),(0,r.a)(M[6],M[6],p),(0,r.a)(M[7],o,f),(0,r.a)(M[7],M[7],h),(0,r.a)(M[7],M[7],p),m&&l(m,16)){const t=m;for(let e=0;e<8;++e)(0,r.t)(M[e],M[e],t)}const g=(0,i.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),y=(0,i.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)d||(0,c.projectBuffer)(M[t],a.Ro,0,M[t],u.A.WGS84,0),(0,r.A)(y,y,M[t]),(0,r.z)(g,g,M[t]);return new s.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:g[0],ymax:g[1],zmax:g[2],spatialReference:e})}return new s.A(-180,-90,180,90,e)}}}]);