@arcgis/core 4.34.0-next.66 → 4.34.0-next.68

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 (278) hide show
  1. package/WebDocument2D.js +1 -1
  2. package/arcade/Feature.js +1 -1
  3. package/arcade/functions/measures.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/{09dd8613bc03e7a3a4cb.js → 0814676e4bac81f96140.js} +1 -1
  6. package/assets/esri/core/workers/chunks/097a5c333de28ec5e16f.js +1 -0
  7. package/assets/esri/core/workers/chunks/{44031bef6d500167ef0b.js → 09dbb3e200ef8d514eb3.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0b71100fa1e7ca706dbb.js +1 -0
  9. package/assets/esri/core/workers/chunks/{3167230555c63f943485.js → 0cbd5335cc92f5891bcf.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{16fe21ca9b24eaee3069.js → 144bfd64daf103a06734.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{c20aead85cdea91c4b74.js → 170ec7fb070c63230c81.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{997a2a1a51039ce7e4e3.js → 1ac6bbaee76684a07b64.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{af1030e4c4437d4eb600.js → 1ada9e6cdd6792e3847a.js} +1 -1
  14. package/assets/esri/core/workers/chunks/1e86df439c564fe752e3.js +1 -0
  15. package/assets/esri/core/workers/chunks/{4459c8e495a37d4c4eb8.js → 25118304c9a914194e90.js} +1 -1
  16. package/assets/esri/core/workers/chunks/28cfe1b270602e0c767b.js +1 -0
  17. package/assets/esri/core/workers/chunks/2ad1d458e4d18232a667.js +1 -0
  18. package/assets/esri/core/workers/chunks/{d823277612f971a9c2f0.js → 3245663da75e168bf85c.js} +1 -1
  19. package/assets/esri/core/workers/chunks/37d7c249114994a7dfac.js +1 -0
  20. package/assets/esri/core/workers/chunks/{2cd27b06226e30aec5da.js → 3f164e587f8d69c306d5.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{96102a9296afd1bfe1a9.js → 451dd3bb44664b4ca2ae.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{dbcef57073075e9cfdfe.js → 489fa17e60f25d5f33ae.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{e97250ae8da4bd0d6bc9.js → 4aa98309081e6889ccbb.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{19e5e011f929b6b940fe.js → 4bc091770bab38874848.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{09f0c9f0b6aa58ae3c52.js → 4f22e5a7f81883e8e5b6.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{7a17e78c76076ed4476f.js → 5185c63fecc5f493e142.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{fa0f94318173db2034de.js → 52483db12203276e726e.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{6fff219dfaa86167c326.js → 5303d77a3ab1b7ddeef3.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{22ec2b0a853911692dc8.js → 5993427325d1add18ed9.js} +1 -1
  30. package/assets/esri/core/workers/chunks/5a95688651d7e8b7101d.js +1 -0
  31. package/assets/esri/core/workers/chunks/{9e3f8c06b4e090a35710.js → 5b84eba4a28e25b6d5c0.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{497214e9e82b936fc94e.js → 5ed381a268855bcad072.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{33718ea851645d9078d1.js → 605acf18cbeb89e4f29f.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{5d8c64693830506c8776.js → 643acb12ec6a1d4b4fbb.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{4d7fcec769369c576847.js → 6e59ba2afd444eb4be18.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{de4da985c398c8bcf2e7.js → 7336bfd57f6172ec7186.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{bafd9b0f6e817252cb31.js → 75dd0acf049c7f3271b8.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{60920d4856a011ace7e2.js → 80b0c88a76bd523a406a.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{117eb1422e9795d37ea3.js → 837830e1cf712d4243a5.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{ad7aa7d09bfceb12609e.js → 87fb5d755860057da164.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{5cb238318a24b70d5ac3.js → 8bc8caa384b24af12411.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{dcad3dcbd4ea2f5a6a04.js → 8e2558b14be70b273ce4.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{8e40c409a9b0a2a768a9.js → 8f02349602b072186a1f.js} +1 -1
  44. package/assets/esri/core/workers/chunks/900eb2aa5cb1b08e1906.js +1 -0
  45. package/assets/esri/core/workers/chunks/{0952aeddddc16705b7a3.js → 99f133a152afb4f1b067.js} +1 -1
  46. package/assets/esri/core/workers/chunks/a6f66492651646c18f10.js +1 -0
  47. package/assets/esri/core/workers/chunks/a895da7fd64ebad3d5a4.js +1 -0
  48. package/assets/esri/core/workers/chunks/{31e7358fe802abb3f8db.js → aa970a547c60c43d6c7f.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{9a6d359ead62a8eadd3c.js → ab727ed4417b7dd94ce9.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{707311e24b2f458d9209.js → ad3ebd4f05cc673140f3.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{0f20c0eec850a39620a1.js → ad69cceec8db593fac14.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{05016b0713ef760fc57d.js → b052d3ef5493eedb44a5.js} +1 -1
  53. package/assets/esri/core/workers/chunks/b335e96f6bcac6d2f0ee.js +1 -0
  54. package/assets/esri/core/workers/chunks/{a44f17397d8589433dae.js → b683b0fa7fc430b4d9c5.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{dd1d9913b33d4e48baff.js → c35dad3d5ceaac6ad5a4.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{e1b573840ec1f7c3afd3.js → c4b2678dd46fa1e22f7e.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{2f7e192ee2066f863e1d.js → c908184d747d33366881.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{bc931865a77fc48871d3.js → c94c797864a85342b105.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{06ff5f34ad9bdf9705de.js → d3f59fbaa524b53fcbc6.js} +6 -0
  60. package/assets/esri/core/workers/chunks/{c7a386ac90e58eb71935.js → da1a5537e2f2ca6cc247.js} +1 -1
  61. package/assets/esri/core/workers/chunks/dd447dfc50ee7f511b84.js +1 -0
  62. package/assets/esri/core/workers/chunks/{a700f57af6856cb5313c.js → de443d29d1a6b5300d00.js} +1 -1
  63. package/assets/esri/core/workers/chunks/e2486bf5546443408c85.js +1 -0
  64. package/assets/esri/core/workers/chunks/{0f9813e7d4e2b47b2c39.js → e47acdb1fbf797342716.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{a16b471c3706ee37f9b6.js → e6f2ac738df16fb5e13a.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{f5101f5f93f776a6456f.js → ed1272e7681e561d843f.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{66ffefd46fe6175c2af4.js → efea3e82cec476d486e0.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{d6f5297f7b323c340727.js → f060a52a9b69eb250d63.js} +1 -1
  69. package/assets/esri/core/workers/chunks/f8adac87e48ea86bec21.js +1 -0
  70. package/assets/esri/core/workers/chunks/{4be2bab8ff3bd14ffdfb.js → f9385d7fb5ff20f7b252.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{b30de4936caa654d7817.js → fac020b6886ff2d75015.js} +1 -1
  72. package/assets/esri/core/workers/chunks/fe353a53968827bcd9cc.js +1 -0
  73. package/assets/esri/themes/base/widgets/_Expand.scss +1 -1
  74. package/assets/esri/themes/dark/main.css +1 -1
  75. package/assets/esri/themes/light/main.css +1 -1
  76. package/assets/esri/themes/light/view.css +1 -1
  77. package/chunks/ComponentShader.glsl.js +42 -36
  78. package/chunks/GlowComposition.glsl.js +5 -5
  79. package/chunks/RibbonLine.glsl.js +2 -2
  80. package/config.js +1 -1
  81. package/core/MemCache.js +1 -1
  82. package/editing/geometry/lineUtils.js +1 -1
  83. package/geometry/ellipsoidUtils.js +1 -1
  84. package/geometry/support/curves/bezierCurveUtils.js +1 -1
  85. package/geometry/support/curves/circleUtils.js +1 -1
  86. package/geometry/support/curves/curveLength.js +1 -1
  87. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  88. package/interfaces.d.ts +66 -193
  89. package/kernel.js +1 -1
  90. package/layers/GaussianSplatLayer.js +1 -1
  91. package/layers/Layer.js +1 -1
  92. package/layers/MapImageLayer.js +1 -1
  93. package/layers/OrientedImageryLayer.js +1 -1
  94. package/layers/VoxelLayer.js +1 -1
  95. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  96. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  97. package/layers/mixins/ArcGISImageService.js +1 -1
  98. package/layers/mixins/ImageryTileMixin.js +1 -1
  99. package/layers/mixins/OperationalLayer.js +1 -1
  100. package/layers/mixins/TemporalLayer.js +1 -1
  101. package/layers/mixins/TemporalSceneLayer.js +1 -1
  102. package/layers/mixins/operationalLayers.js +1 -1
  103. package/layers/support/FeatureFilter.js +1 -1
  104. package/layers/support/TimeInfo.js +1 -1
  105. package/layers/support/TrackInfo.js +1 -1
  106. package/layers/support/gaussianSplatUtils.js +1 -1
  107. package/layers/support/layersCreator.js +1 -1
  108. package/package.json +2 -2
  109. package/portal/schemas/definitions.js +1 -1
  110. package/portal/support/portalLayers.js +1 -1
  111. package/rest/support/AttributeBinsQuery.js +1 -1
  112. package/rest/support/IdentifyParameters.js +1 -1
  113. package/rest/support/ImageGPSInfoParameters.js +1 -1
  114. package/rest/support/ImageHistogramParameters.js +1 -1
  115. package/rest/support/ImageIdentifyParameters.js +1 -1
  116. package/rest/support/ImageParameters.js +1 -1
  117. package/rest/support/ImageSampleParameters.js +1 -1
  118. package/rest/support/Query.js +1 -1
  119. package/rest/support/TopFeaturesQuery.js +1 -1
  120. package/support/elevationInfoUtils.js +1 -1
  121. package/support/revision.js +1 -1
  122. package/support/timeUtils.js +1 -1
  123. package/time/TimeExtent.js +1 -1
  124. package/time/TimeInterval.js +1 -1
  125. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
  126. package/views/2d/engine/webgl/Painter.js +1 -1
  127. package/views/2d/engine/webgl/effects/FeatureEffect.js +1 -1
  128. package/views/2d/engine/webgl/effects/post-processing/EffectManager.js +1 -1
  129. package/views/2d/engine/webgl/shaderGraph/techniques/TestTechnique.js +1 -1
  130. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  131. package/views/2d/engine/webgl/shaderGraph/techniques/bloom/BloomTechnique.js +5 -0
  132. package/views/2d/engine/webgl/shaderGraph/techniques/blur/BlurTechnique.js +5 -0
  133. package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +5 -0
  134. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +5 -0
  136. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
  137. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
  138. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
  139. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
  140. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
  141. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
  142. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
  143. package/views/2d/engine/webgl/shaderGraph/techniques/grid/GridTechnique.js +1 -1
  144. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  145. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  146. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  147. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
  148. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
  149. package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
  150. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
  151. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterRegistry.js +1 -1
  152. package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +5 -0
  153. package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
  154. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
  155. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlitShader.js +5 -0
  156. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BloomShader.js +5 -0
  157. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlurShader.js +5 -0
  158. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ColorizeShader.js +5 -0
  159. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DropShadowShader.js +5 -0
  160. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PostProcessingShader.js +5 -0
  161. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
  162. package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
  163. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  164. package/views/2d/layers/MediaLayerView2D.js +1 -1
  165. package/views/2d/layers/TileLayerView2D.js +1 -1
  166. package/views/2d/layers/features/FeatureContainer.js +1 -1
  167. package/views/2d/layers/features/RenderState.js +1 -1
  168. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  169. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  170. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +5 -0
  171. package/views/3d/analysis/VolumeMeasurement/volumeMeasurementGeometryUtils.js +5 -0
  172. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  173. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  174. package/views/3d/interactive/editingTools/isSupportedObjectUtils.js +1 -1
  175. package/views/3d/interactive/editingTools/move/isSupportedObject.js +1 -1
  176. package/views/3d/interactive/editingTools/reshape/isSupportedObject.js +1 -1
  177. package/views/3d/interactive/editingTools/transform/isSupportedGraphic.js +1 -1
  178. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  179. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  180. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  181. package/views/3d/layers/graphics/ElevationContext.js +1 -1
  182. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  183. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  184. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  185. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  186. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  187. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  188. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  189. package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
  190. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  191. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  192. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  193. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  194. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  195. package/views/3d/layers/graphics/Graphics3DPointSymbol.js +1 -1
  196. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  197. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  198. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  199. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  200. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  201. package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
  202. package/views/3d/layers/graphics/Labeler.js +1 -1
  203. package/views/3d/layers/graphics/QueryEngine.js +1 -1
  204. package/views/3d/layers/graphics/elevationAlignPointsInFeatures.js +1 -1
  205. package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
  206. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
  207. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
  208. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  209. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  210. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  211. package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
  212. package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
  213. package/views/3d/support/CombinedElevationProvider.js +1 -1
  214. package/views/3d/terrain/TerrainSurface.js +1 -1
  215. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  216. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  217. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  218. package/views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js +8 -2
  219. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColor.glsl.js +5 -0
  220. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  221. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  222. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMask.glsl.js +5 -0
  223. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  224. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  225. package/views/3d/webgl-engine/effects/focusArea/FocusAreaOutlineItem.js +1 -1
  226. package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
  227. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  228. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  229. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  230. package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
  231. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +5 -0
  232. package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +17 -0
  233. package/views/GroundView.js +1 -1
  234. package/views/VideoView.js +1 -1
  235. package/views/View.js +1 -1
  236. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  237. package/views/analysis/ElevationProfile/ElevationProfileGenerationError.js +1 -1
  238. package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
  239. package/webdoc/support/timeProperties.js +1 -1
  240. package/webdoc/widgets/TimeSlider.js +1 -1
  241. package/webmap/InitialViewProperties.js +1 -1
  242. package/widgets/Bookmarks.js +1 -1
  243. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  244. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  245. package/widgets/Editor/support/EditorItem.js +1 -1
  246. package/widgets/Editor/support/splitFeatureUtils.js +1 -1
  247. package/widgets/Expand.js +1 -1
  248. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  249. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  250. package/widgets/TimeSlider.js +1 -1
  251. package/TimeExtent.d.ts +0 -4
  252. package/TimeExtent.js +0 -5
  253. package/TimeInterval.d.ts +0 -4
  254. package/TimeInterval.js +0 -5
  255. package/assets/esri/core/workers/chunks/047d6f7b1677cc7ab271.js +0 -1
  256. package/assets/esri/core/workers/chunks/0b01c87db77246632ad9.js +0 -1
  257. package/assets/esri/core/workers/chunks/0cb2f7172190babb4139.js +0 -1
  258. package/assets/esri/core/workers/chunks/0e28cb5d8d89ae29cdd0.js +0 -1
  259. package/assets/esri/core/workers/chunks/1c7b5ca80e80c314f78d.js +0 -1
  260. package/assets/esri/core/workers/chunks/2a938096a42613425c7b.js +0 -1
  261. package/assets/esri/core/workers/chunks/3212a476184be25d17f8.js +0 -1
  262. package/assets/esri/core/workers/chunks/3bc50ee639a4d16c4f80.js +0 -1
  263. package/assets/esri/core/workers/chunks/481aea82501d04667ba2.js +0 -1
  264. package/assets/esri/core/workers/chunks/548818df658b607a364e.js +0 -1
  265. package/assets/esri/core/workers/chunks/7597ef10d1699e7088e5.js +0 -1
  266. package/assets/esri/core/workers/chunks/8e3c09c3524654830b14.js +0 -1
  267. package/assets/esri/core/workers/chunks/8f60804c7ba445f25df8.js +0 -1
  268. package/assets/esri/core/workers/chunks/c696615cae5daefa2d98.js +0 -1
  269. package/assets/esri/core/workers/chunks/ff2614d96ca5228e9685.js +0 -1
  270. package/chunks/TimeExtent.js +0 -5
  271. package/chunks/TimeInterval.js +0 -5
  272. package/views/2d/engine/webgl/effects/post-processing/Bloom.js +0 -5
  273. package/views/2d/engine/webgl/effects/post-processing/Blur.js +0 -5
  274. package/views/2d/engine/webgl/effects/post-processing/Colorize.js +0 -5
  275. package/views/2d/engine/webgl/effects/post-processing/DropShadow.js +0 -5
  276. package/views/2d/engine/webgl/effects/post-processing/Opacity.js +0 -5
  277. package/views/3d/webgl-engine/shaders/FocusAreaColor.glsl.js +0 -5
  278. package/views/3d/webgl-engine/shaders/FocusAreaMask.glsl.js +0 -5
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9655],{563:(e,t,r)=>{r.d(t,{QueueProcessor:()=>h});var n=r(97768),s=r(74887),i=r(9775),o=r(32587),a=r(96211),u=r(44794);class l{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class h{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,u.v)(!1),this.concurrency=1,e.concurrency&&(this.concurrency=e.concurrency),this._queue=new i.A(e.peeker),this.process=e.process}destroy(){this.clear(),this._schedule=(0,n.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}abort(e){const t=this._controllers.get(e);t&&t.abort()}clear(){this._queue.clear();const e=[];this._controllers.forEach(t=>e.push(t)),this._controllers.clear(),e.forEach(e=>e.abort()),this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}get(e){const t=this._deferreds.get(e);return t?t.promise:void 0}isOngoing(e){return this._processingItems.has(e)}has(e){return this._deferreds.has(e)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const r=this.get(e);if(r)return r;const n=new AbortController;let i=null;t&&(i=(0,s.u7)(t,()=>n.abort()));const o=()=>{a.remove(),null!=i&&i.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()},a=(0,s.NY)(n.signal,()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),o(),u.reject((0,s.NK)())}),u=(0,s.Tw)();return this._deferreds.set(e,u),this._controllers.set(e,n),u.promise.then(o,o),this._queue.push(e),this._scheduleNext(),u.promise}last(){return this._queue.last()}lastPromise(){const e=this.last();return e?this.get(e):null}peek(){return this._queue.peek()}popLast(){const e=this._queue.popLast();return e&&(this._deferreds.get(e)?.reject((0,s.NK)()),this._removeItem(e)),e}reset(){const e=Array.from(this._processingItems.values());this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.delete(e)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const r=new AbortController,n=new l(e,r);this._processingItems.set(e,n);try{t=this.process(e,r.signal)}catch(e){this._processError(n,e)}(0,s.$X)(t)?(n.promise=t,t.then(e=>this._processResult(n,e),e=>this._processError(n,e))):this._processResult(n,t)}}},2272:(e,t,r)=>{r.d(t,{Dl:()=>l,gf:()=>c,jV:()=>u,lF:()=>h});var n=r(92602),s=r(70333),i=r(4718),o=r(84952),a=r(926);function u(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function l(e){return"string"==typeof e?(0,o.An)(e):(0,i.o8)(e)}function h(e,t,r){const n={};for(const s in e){if("declaredClass"===s)continue;const i=e[s];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))n[s]=i.map(e=>h(e));else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(r?.[s]);n[s]=t?e:JSON.stringify(e)}else n[s]=t?i:JSON.stringify(i);else n[s]=i}return n}async function c(e,t,i){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.CG)(e)??s.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!s.id&&n.A.request.useIdentity&&await Promise.all([r.e(7330),r.e(4813),r.e(3747)]).then(r.bind(r,73747));const u=await s.id.getCredential(e,i);return u?.token}},5162:(e,t,r)=>{r.d(t,{Im:()=>u,KN:()=>o});var n=r(70300),s=r(8446);class i{constructor(){this.modified=[],this.removed=[]}modify(e){this.modified.push(e)}remove(e){this.removed.push(e)}get isEmpty(){return 0===this.modified.length&&0===this.removed.length}}class o extends n.K{constructor(e){super(),this._reader=e,this.chunkId="override",this.normalizedChunkId="override"}static fromFeatures(e,t){const r=s.K.fromOptimizedFeatures(e,t);return new o(r)}get reader(){return this._reader}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get isTiled(){return!1}getTileReader(e){if(!this._reader.getSize())return null;const t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}class a{constructor(e,t){this.inner=e,this.isWeak=t,this.lastWeak=null}get isStrong(){return!this.isWeak}}class u{constructor(){this._overrides=new Map,this._update=new i,this._lastCleanup=0}hasOverride(e){return this._overrides.has(e)}onChunkInsert(e){if(this._overrides.size){const t=e.reader.getCursor();for(;t.next();){const e=t.getObjectId(),r=this._overrides.get(e);if(r?.lastWeak&&(r.lastWeak=null),r?.isWeak){const e=t.readOptimizedFeatureWorldSpace();r.inner=e,this._update.modify(e),this.invalidate()}}}e.registerOverrides(this)}apply(e,t){const{updateWeak:r,removeWeak:n,update:s,remove:i,release:o}=e.commands;this.invalidate();for(const e of r){const t=new a(e,!0),r=this._overrides.get(e.objectId);r?.isStrong?r.lastWeak=t:(this._overrides.set(e.objectId,t),this._update.modify(e))}for(const e of s){const t=new a(e,!1),r=this._overrides.get(e.objectId);t.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(e.objectId,t),this._update.modify(e)}for(const e of n){const t=new a(null,!0),r=this._overrides.get(e);r?.isStrong?r.lastWeak=t:(this._overrides.set(e,t),this._update.remove(e))}for(const e of i){const t=new a(null,!1),r=this._overrides.get(e);t.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(e,t),this._update.remove(e)}if(o.length){const e=new Set;for(const t of o){const r=this._overrides.get(t);r?.lastWeak?(this._overrides.set(t,r.lastWeak),null==r.lastWeak.inner?this._update.remove(t):this._update.modify(r.lastWeak.inner)):r&&!r.isWeak&&(this._overrides.delete(t),e.add(t))}t.forEachUnsafe(t=>{const r=t.getObjectId();e.has(r)&&(this._update.modify(t.readOptimizedFeatureWorldSpace()),e.delete(r))});for(const t of e.values())this._update.remove(t)}}clearWeakOverrides(){for(const[e,t]of this._overrides.entries())t.isWeak&&this._overrides.delete(e);this.invalidate()}cleanup(e){if(this._overrides.size<1e4)return;const t=performance.now();if(t-this._lastCleanup<1e3)return;this._lastCleanup=t;const r=this._getWeakDeletions();if(!(r.size<1e4)){for(const t of e){const e=t.reader.withoutOverrides().getCursor();for(;e.next();){const t=e.getObjectId();r.delete(t)}}for(const e of r)this._overrides.delete(e);r.size&&this.invalidate()}}takeOverrideUpdate(){const e=this._update;return e.isEmpty?null:(this._update=new i,e)}asChunk(e){if(!this._chunk){const t=[];for(const e of this._overrides.values())null!=e.inner&&t.push(e.inner);this._chunk=o.fromFeatures(t,e)}return this._chunk}invalidate(){this._chunk=null}putWeakObjectIdsFromGlobalIds(e,t,r){for(const[n,s]of this._overrides.entries()){if(s.isWeak&&null!=s.inner){const i=s.inner.attributes[r];i&&t.has(i)&&!e.has(i)&&e.set(i,n);continue}if(null!=s.lastWeak&&null!=s.lastWeak.inner){const i=s.lastWeak.inner.attributes[r];i&&t.has(i)&&!e.has(i)&&e.set(i,n)}}}_getWeakDeletions(){const e=new Set;for(const[t,r]of this._overrides.entries())r.isWeak&&null==r.inner&&e.add(t);return e}}},8446:(e,t,r)=>{r.d(t,{K:()=>a});var n=r(90708),s=r(43334),i=r(95466),o=r(99996);class a extends o.Y{static fromFeatures(e,t){const{geometryType:r}=t,s=(0,n.Di)([],e,r,!1,!1,t.featureIdInfo);for(let t=0;t<s.length;t++)s[t].displayId=e[t].displayId;return a.fromOptimizedFeatures(s,t)}static fromFeatureSet(e,t){const r=(0,n.q3)(e,t.featureIdInfo);return a.fromOptimizedFeatureSet(r,t)}static fromOptimizedFeatureSet(e,t){const r=a.fromOptimizedFeatures(e.features,t);return r._exceededTransferLimit=e.exceededTransferLimit,r._transform=e.transform,r._fieldsIndex=new i.A(e.fields),r}static fromOptimizedFeatures(e,t,r){const n=new a(e,t);return n._fieldsIndex=t.fieldsIndex,n._transform=r,n}static empty(e){return new a([],e)}constructor(e,t){super(t),this._exceededTransferLimit=!1,this._featureIndex=-1,this._fieldsIndex=null,this._geometryType=t.geometryType,this._features=e}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return!1}get hasM(){return!1}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let e="";for(const t in this._current.attributes)e+=this._current.attributes[t];return e}getIndex(){return this._featureIndex}setIndex(e){this._featureIndex=e}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(e){this._current.displayId=e}copy(){const e=new a(this._features,this.metadata);return this.copyInto(e),e}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,s.N3)(this._current)?(0,n.Rk)(this._current.geometry,2):0}_readX(){return(0,s.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,s.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,s.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(e,t){if(!this._fieldsIndex){const t=this._current.attributes[e];if(void 0!==t)return t;const r=e.toLowerCase();for(const e in this._current.attributes)if(e.toLowerCase()===r)return this._current.attributes[e];return}const r=this._fieldsIndex.get(e);if(!r)return;const n=this._current.attributes[r.name];return null==n?n:t&&this.fields.isDateField(e)?new Date(n):n}_readAttributes(){return this._current.attributes}copyInto(e){super.copyInto(e),e._featureIndex=this._featureIndex,e._transform=this._transform,e._fieldsIndex=this._fieldsIndex}}},9012:(e,t,r)=>{function n(e,{timeZone:t,timeExtent:r}){return{$view:{scale:e,timeZone:t,timeProperties:{currentStart:r?.start,currentEnd:r?.end}}}}r.d(t,{N:()=>n})},9762:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>s});var n=r(37539);function s(e,t,r,s,i,o,a=Math.floor(e.length/3)){const u=(0,n.jd)(t,i);if(null==u)return!1;if(u===n.pO){if(e===s&&r===o)return!0;const t=r+3*a;for(let n=r,i=o;n<t;n++,i++)s[i]=e[n];return!0}const l=r+3*a;for(let t=r,n=o;t<l;t+=3,n+=3)u(e,t,s,n);return!0}},9775:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(62788),s=r(95488);class i{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new s.I,this._items=new Set}get length(){return(0,n.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,n.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,n.gc)(this._observable),yield*this._items}}},16630:(e,t,r)=>{r.d(t,{s:()=>u}),r(44208);var n=r(69397),s=r(92722),i=r(57733),o=r(99996);let a;class u extends o.Y{constructor(e,t,r,s,i=new Uint32Array(r.size())){super(e),this._fields=t,this._inner=r,this._chunkId=s,this._displayIds=i,this._index=-1,this.usedMemory=n.qK,this._size=this._inner.size(),e.featureIdInfo.type,this._chunkId>65535&&console.error("Exceeded max allowed parquet reader size")}destroy(){super.destroy(),this._inner.free()}get fields(){return this._fields}get geometryType(){return this.metadata.geometryType}get hasFeatures(){return!0}get hasNext(){throw new Error("Method not implemented.")}get exceededTransferLimit(){return!1}get hasZ(){return!1}get hasM(){return!1}getInTransform(){return null}getSize(){return this._size}getCursor(){return this.copy()}getAttributeHash(){let e="";for(const t of this.fields.fields)e+=this._readAttribute(t.name,!1)+".";return e}getObjectId(){return this._inner.rowId(this._index)}getDisplayId(){return this._displayIds[this._index]}setDisplayId(e){this._displayIds[this._index]=e}setIndex(e){this._index=e}getBoundsXMin(){return this._inner.boundsXMin(this._index)}getBoundsYMin(){return this._inner.boundsYMin(this._index)}getBoundsXMax(){return this._inner.boundsXMax(this._index)}getBoundsYMax(){return this._inner.boundsYMax(this._index)}setBoundsXMin(e){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMin(e){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsXMax(e){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMax(e){throw new Error("InternalError: Setting bounds is unsupported")}getIndex(){return this._index}next(){for(;++this._index<this._size&&!this._getExists(););return this._index<this._size}readGeometryArea(){return this.readGeometryForDisplay()?.area()??0}copy(){const e=new u(this.metadata,this._fields,this._inner,this._chunkId,this._displayIds);return this.copyInto(e),e}copyInto(e){super.copyInto(e),e._index=this._index}readGeometryForDisplayTransformed(e){const[t,r]=e.translate,[n,o]=e.scale;return a||(a=i.QuantizedGeometryBuffer.new()),this._inner.transformGeometry(a,t,r,n,o,this._index)?new s.A(a.readLengthsUnsafe(),a.readCoordsUnsafe()):null}_readGeometry(e){const t=this._inner.readCoords(this._index),r=this._inner.readLengths(this._index);return t&&r?new s.A(r,t):null}_readX(){return this._inner.readX(this._index)}_readY(){return this._inner.readY(this._index)}_readServerCentroid(){return null}_readAttribute(e,t){const r=this.fields.get(e);if(!r)return;if(null==r.column)return this.getObjectId();const n=this._inner.readAttribute(this._index,r.column);if(null==n)return n;const s=this.fields.isDateField(r.name);return t?null==n?n:s?new Date(n):n:n}_readAttributes(){const e={};for(const t of this._fields.fields)null!=t.column&&(this._inner.isEmpty(t.column)||(e[t.name]=this._readAttribute(t.name,!1)));return e.__OBJECTID=this.getObjectId(),e}}},28923:(e,t,r)=>{r.d(t,{j:()=>s});var n=r(70300);class s extends n.K{constructor(e,t,r,n){super(),this._reader=e,this._queryJSON=t,this._page=r,this._end=n,this.chunkId=`${this._page}${this.end?"e":""}`,this.normalizedChunkId=this.chunkId}get reader(){return this._reader}get first(){return 0===this._page}get end(){return this._end}get queryInfo(){return{type:"snapshot",chunkId:this.chunkId,queryJSON:this._queryJSON,page:this._page,size:this.size(),end:this.end}}get isTiled(){return!1}getTileReader(e){const t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}},30661:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(43334),s=r(8446);class i{static{this.Shared=new i}getObjectId(e){return e.getObjectId()}getAttributes(e){return e.readAttributes()}getAttribute(e,t){return e.readAttribute(t)}getAttributeAsTimestamp(e,t){return e.readAttributeAsTimestamp(t)}cloneWithGeometry(e,t){const r=e.readAttributes(),i=new n.Om(t,r,null,e.getObjectId(),e.getDisplayId()),o=s.K.fromOptimizedFeatures([i],e.metadata);return o.setIndex(0),o}getGeometry(e){return e.readGeometryWorldSpace()}getCentroid(e,t){return e.readCentroidForDisplay()}}},32011:(e,t,r)=>{r.d(t,{d:()=>l});var n=r(19419),s=r(16079),i=r(12359),o=r(95108),a=r(12176);const u=222045e-19;function l(e){if(0===e.totalSize)return null;const t=(0,s.z8)(e);if(!t)return null;const r=4*(Math.abs(t[0])+Math.abs(t[2])+Math.abs(t[1])+Math.abs(t[3])+1)*u;let o=0,a=0;e.reset();for(let t=0;e.nextPath();t++){const r=e.getCurrentRingArea();r>a&&(a=r,o=t)}if(e.seekPath(o),0===e.pathSize)return null;e.seekPathStart();const l=(0,s.B$)(e);if(Math.abs(a)<=2*r*r)return[(l[0]+l[2])/2,(l[1]+l[3])/2];e.seekPathStart();const d=(0,i.w2)(e,(0,n.vt)());if(null===d)return null;if(e.totalPoints<4)return d;const f=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],p=[NaN,NaN,NaN,NaN],g=[NaN,NaN,NaN,NaN];let m=!1,y=c(d,e,!0);0===y.distance&&(m=!0,f[0][0]=d[0],f[0][1]=d[1],y=c(d,e,!1)),p[0]=y.distance,g[0]=0;const b=[NaN,NaN];let v=!1,T=.25,M=-1,F=NaN;do{if(F=NaN,f[1]=_(e,w(l[0],l[2],T),0,t),isNaN(f[1][0])||isNaN(f[1][1])||(y=c(f[1],e,!1),F=y.distance),!isNaN(F)&&F>r&&h(f[1],e))v=!0,p[1]=F,g[1]=x(f[1],d);else if(!isNaN(F)&&F>M&&(M=F,b[0]=f[1][0],b[1]=f[1][1]),T-=.01,T<.1){if(!(M>=0))break;v=!0,p[1]=M,f[1][0]=b[0],f[1][1]=b[1],g[1]=x(f[1],d)}}while(!v);v=!1,T=.5,M=-1;let S=.01,k=1;do{if(F=NaN,f[2]=_(e,w(l[0],l[2],T),0,t),isNaN(f[2][0])||isNaN(f[2][1])||(y=c(f[2],e,!1),F=y.distance),!isNaN(F)&&F>r&&h(f[2],e))v=!0,p[2]=F,g[2]=x(f[2],d);else if(!isNaN(F)&&F>M)M=F,b[0]=f[2][0],b[1]=f[2][1];else if(F>M&&(M=F,b[0]=f[2][0],b[1]=f[2][1]),T=.5+S*k,S+=.01,k*=-1,T<.3||T>.7){if(!(M>=0))break;v=!0,p[2]=M,f[2][0]=b[0],f[2][1]=b[1],g[2]=x(f[2],d)}}while(!v);v=!1,T=.75,M=-1;do{if(F=NaN,f[3]=_(e,w(l[0],l[2],T),0,t),isNaN(f[3][0])||isNaN(f[3][1])||(y=c(f[3],e,!1),F=y.distance),!isNaN(F)&&F>r&&h(f[3],e))v=!0,p[3]=F,g[3]=x(f[3],d);else if(F>M&&(M=F,b[0]=f[3][0],b[1]=f[3][1]),T+=.01,T>.9){if(!(M>=0))break;v=!0,p[3]=M,f[3][0]=b[0],f[3][1]=b[1],g[3]=x(f[3],d)}}while(!v);const A=[0,1,2,3],P=m?0:1;let z;for(let e=P;e<4;e++)for(let e=P;e<3;e++){const t=g[e],r=g[e+1];I(t,r)>0&&(z=A[e],A[e]=A[e+1],A[e+1]=z,g[e]=r,g[e+1]=t)}let O=P,C=0,R=0;for(let e=P;e<4;e++){switch(e){case 0:R=2*p[A[e]];break;case 1:R=1.66666666*p[A[e]];break;case 2:R=1.33333333*p[A[e]];break;case 3:R=p[A[e]]}R>C&&(C=R,O=A[e])}return f[O]}function h(e,t){let r,n,s,i,o=0;for(t.reset();t.nextPath()&&t.nextPoint();)for(r=t.x,n=t.y;t.nextPoint();r=s,n=i)s=t.x,i=t.y,n>e[1]!=i>e[1]&&((s-r)*(e[1]-n)-(i-n)*(e[0]-r)>0?o++:o--);return 0!==o}function c(e,t,r){if(r&&h(e,t))return{coord:e,distance:0};let n=1/0,s=0,i=0,a=[0,0],u=[0,0];const l=[0,0];for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(a[0]=t.x,a[1]=t.y;t.nextPoint();a=u){u=[t.x,t.y],(0,o.gR)(l,e,a,u);const r=x(e,l);r<n&&(n=r,s=l[0],i=l[1])}return{coord:[s,i],distance:Math.sqrt(n)}}function _(e,t,r,s){const i=[t,0];let o=1/0,u=1/0,l=!1,h=!1;const c=[[t,s[1]-1],[t,s[3]+1]],_=[0,0],f=[0,0],p=[0,0],g=[[0,0],[0,0]],m=(0,n.vt)();for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(g[0][0]=e.x,g[0][1]=e.y;e.nextPoint();g[0][0]=g[1][0],g[0][1]=g[1][1]){if(g[1][0]=e.x,g[1][1]=e.y,null===d(m,g))continue;if(f[0]=c[0][0],f[1]=c[0][1],p[0]=c[1][0],p[1]=c[1][1],0===y(m,f,p))continue;if(!(0,a.Ql)(c[0],c[1],g[0],g[1],_))continue;const t=_[1];o>u?t<o&&(o=t,l=!0):t<u&&(u=t,h=!0)}return l&&h?i[1]=(o+u)/2:i[0]=i[1]=NaN,i}function d(e,t){if(t.length<2)return null;e||(e=(0,n.vt)());const[r,s]=t[0],[i,o]=t[1];return e[0]=Math.min(r,i),e[1]=Math.min(s,o),e[2]=Math.max(r,i),e[3]=Math.max(s,o),e}const f=1,p=4,g=3,m=12;function y(e,t,r){let n=b(t,e),s=b(r,e);const i=e[0],o=e[1],a=e[2],u=e[3];if(n&s)return 0;if(!(n|s))return 4;const l=(n?1:0)|(s?2:0);do{const l=r[0]-t[0],h=r[1]-t[1];if(l>h)n&g?(n&f?(t[1]+=h*(i-t[0])/l,t[0]=i):(t[1]+=h*(a-t[0])/l,t[0]=a),n=b(t,e)):s&g?(s&f?(r[1]+=h*(i-r[0])/l,r[0]=i):(r[1]+=h*(a-r[0])/l,r[0]=a),s=b(r,e)):n?(n&p?(t[0]+=l*(o-t[1])/h,t[1]=o):(t[0]+=l*(u-t[1])/h,t[1]=u),n=b(t,e)):(s&p?(r[0]+=l*(o-r[1])/h,r[1]=o):(r[0]+=l*(u-r[1])/h,r[1]=u),s=b(r,e));else if(n&m?(n&p?(t[0]+=l*(o-t[1])/h,t[1]=o):(t[0]+=l*(u-t[1])/h,t[1]=u),n=b(t,e)):s&m?(s&p?(r[0]+=l*(o-r[1])/h,r[1]=o):(r[0]+=l*(u-r[1])/h,r[1]=u),s=b(r,e)):n?(n&f?(t[1]+=h*(i-t[0])/l,t[0]=i):(t[1]+=h*(a-t[0])/l,t[0]=a),n=b(t,e)):(s&f?(r[1]+=h*(i-r[0])/l,r[0]=i):(r[1]+=h*(a-r[0])/l,r[0]=a),s=b(r,e)),n&s)return 0}while(n|s);return l}function b(e,t){return(e[0]<t[0]?1:0)|(e[0]>t[2]?1:0)<<1|(e[1]<t[1]?1:0)<<2|(e[1]>t[3]?1:0)<<3}function w(e,t,r){return e+(t-e)*r}function x(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function I(e,t){if(e<t)return-1;if(e>t)return 1;if(e===t)return 0;const r=isNaN(e),n=isNaN(t);return r<n?-1:r>n?1:0}},32587:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(62788),s=r(95488);class i{constructor(e){this._observable=new s.I,this._map=new Map(e)}get size(){return(0,n.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){const t=this._map.delete(e);return t&&this._observable.notify(),t}entries(){return(0,n.gc)(this._observable),this._map.entries()}forEach(e,t){(0,n.gc)(this._observable),this._map.forEach((r,n)=>e.call(t,r,n,this),t)}get(e){return(0,n.gc)(this._observable),this._map.get(e)}has(e){return(0,n.gc)(this._observable),this._map.has(e)}keys(){return(0,n.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._observable.notify(),this}values(){return(0,n.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,n.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},35258:(e,t,r)=>{r.d(t,{i:()=>i});var n=r(16930),s=r(95466);class i{static minimal(e,t,r=[]){return new i({geometryType:e,fieldsIndex:new s.A(r).toJSON(),featureIdInfo:{type:"object-id",fieldName:t},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null})}static createFeature(e){return new i(e)}constructor(e){let t;this._options=e,this._fieldsIndex=s.A.fromJSON(e.fieldsIndex),e.spatialReference&&(this._spatialReference=n.A.fromJSON(e.spatialReference)),e.outSpatialReference&&(this._outSpatialReference=n.A.fromJSON(e.outSpatialReference)),"object-id"===e.featureIdInfo.type&&(t=e.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:t,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}weakCloneWithAdditionalFields(e){return new i({fieldsIndex:{fields:[...this._fieldsIndex.fields,...e],timeZoneByFieldName:null},geometryType:this.geometryType,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types})}}},36708:(e,t,r)=>{r.d(t,{C_:()=>_,OH:()=>p,Vh:()=>g,on:()=>c,pc:()=>m,wB:()=>u,z7:()=>l});var n=r(37955),s=r(36563),i=r(97768),o=r(74887),a=r(14012);function u(e,t,r={}){return h(e,t,r,d)}function l(e,t,r={}){return h(e,t,r,f)}function h(e,t,r={},n){let s=null;const o=r.once?(e,r)=>{n(e)&&((0,i.xt)(s),t(e,r))}:(e,r)=>{n(e)&&t(e,r)};if(s=(0,a.Cn)(e,o,r.sync,r.equals),r.initial){const t=e();o(t,t)}return s}function c(e,t,r,o={}){let a=null,l=null,h=null;function c(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function _(e){o.once&&o.once&&(0,i.xt)(h),r(e)}const d=u(e,(e,r)=>{c(),(0,n.wb)(e)&&(a=e,l=(0,n.on)(e,t,_),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,s.hA)(()=>{d.remove(),c()}),h}function _(e,t){return function(e,t,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());const n=e();if(t?.(n))return Promise.resolve(n);let a=null;function u(){a=(0,i.xt)(a)}return new Promise((n,i)=>{a=(0,s.vE)([(0,o.u7)(r,()=>{u(),i((0,o.NK)())}),h(e,e=>{u(),n(e)},{sync:!1,once:!0},t??d)])})}(e,f,t)}function d(e){return!0}function f(e){return!!e}r(80559);const p={sync:!0},g={initial:!0},m={sync:!0,initial:!0}},36745:(e,t,r)=>{r.d(t,{z:()=>a});var n=r(4718),s=r(51118),i=r(65864),o=r(92722);class a{static fromOptimized(e,t,r=!1,n=!1,s=1){return(new u).initialize(e,t,r,n,s)}static fromJSON(e,t=!1,r=!1){const[n,s]=h(e);return(new c).initialize(n,s,t,r,1)}static fromOptimizedCIM(e,t,r=!1,n=!1,s=1){return(new _).initialize(e,t,r,n,s)}static fromJSONCIM(e,t=!1,r=!1,n=1){const[s,i]=h(e);return(new d).initialize(s,i,t,r,n)}static fromFeatureSetReader(e){const t=e.readGeometryForDisplay(),r=e.geometryType;return t&&r?this.fromOptimized(t,r):null}static fromFeatureSetReaderCIM(e){const t=e.readGeometryForDisplay(),r=e.geometryType;return t&&r?this.fromOptimizedCIM(t,r):null}static createEmptyOptimized(e,t=!1,r=!1,n=1){return(new u).initialize(new o.A,e,t,r,n)}static createEmptyJSON(e,t=!1,r=!1){return(new c).initialize([],e,t,r,1)}static createEmptyOptimizedCIM(e,t=!1,r=!1,n=1){return(new _).initialize(new o.A,e,t,r,n)}static createEmptyJSONCIM(e,t=!1,r=!1,n=1){return(new d).initialize([],e,t,r,n)}asJSON(){const e=(0,s.x)(this);return"esriGeometryEnvelope"===this.geometryType?{xmin:e[0][0][0],ymin:e[0][0][1],xmax:e[0][2][0],ymax:e[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:e.flat()}:"esriGeometryPoint"===this.geometryType?{x:e[0][0][0],y:e[0][0][1]}:"esriGeometryPolygon"===this.geometryType?{rings:e}:{paths:e}}getCurrentRingArea(){if(this.pathSize<3)return 0;let e,t,r=0;if(this.seekPathStart(),!this.nextPoint())return 0;e=this.x,t=this.y;const n=e,s=t;for(;this.nextPoint();)r+=(e-this.x)*(t+this.y),e=this.x,t=this.y;return r+=(e-n)*(t+s),-.5*r}invertY(){this.yFactor*=-1}}class u extends a{constructor(){super(...arguments),this._end=-1}initialize(e,t,r,n,s){return this.hasZ=r,this.hasM=n,this.geometryType=t,this._stride=2+Number(r)+Number(n),this._geometry=e,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.hasZ,this.hasM,this.yFactor)}seekPath(e){if(e>=0&&e<this.totalSize){if(this._pathIndex<e)for(;this._pathIndex<e&&this.nextPath(););else if(this._pathIndex>e)for(;this._pathIndex>e&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(e){const t=this._pathOffset+e*this._stride;return t>=0&&t<this._end&&(this._pointOffset=t,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const e=this._end,t=this._geometry.coords,r=this._pathOffset;return(new u).initialize(new o.A([this.pathSize],t.slice(r,e)),this.geometryType,this.hasZ,this.hasM,this.yFactor)}pathLength(){const e=this._end,t=this._stride,r=this._geometry.coords;let n=0;for(let s=this._pathOffset+t;s<e;s+=t){const e=r[s-t],i=r[s-t+1],o=r[s]-e,a=r[s+1]-i;n+=Math.sqrt(o*o+a*a)}return n}startPath(){this._geometry.lengths.push(0)}pushPath(e){this.startPath(),this.pushPoints(e)}pushPoint(e){for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]++}pushXY(e,t){this._geometry.coords.push(e,t),this._geometry.lengths[this.totalSize-1]++}pushPoints(e){for(const t of e)for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]+=e.length}pushCursor(e){const t=e.asOptimized();this._geometry.coords.push(...t.coords),this._geometry.lengths.push(...t.lengths)}asOptimized(){const e=this._geometry.clone();if(1!==this.yFactor)for(let t=1;t<e.coords.length;t+=this._stride)e.coords[t]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(e.lengths.length=0),e}isClosed(){const e=this._geometry.coords,t=this._pathOffset,r=this._end-this._stride;for(let n=0;n<this._stride;n++)if(e[t+n]!==e[r+n])return!1;return!0}clone(){return(new u).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((e,t)=>e+t)}get pathSize(){const{lengths:e}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>e.length-1?0:e[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(e){this._geometry.coords[this._pointOffset]=e}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(e){this._geometry.coords[this._pointOffset+1]=this.yFactor*e}get z(){return this._geometry.coords[this._pointOffset+2]}set z(e){this._geometry.coords[this._pointOffset+2]=e}get m(){const e=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+e]}set m(e){this._geometry.coords[this._pointOffset+3]=e}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(e){const t=[e.x,e.y];return e.z&&t.push(e.z),e.m&&t.push(e.m),t}function h(e){return(0,i.Bi)(e)?[e.rings,"esriGeometryPolygon"]:(0,i.Rg)(e)?[e.paths,"esriGeometryPolyline"]:(0,i.U9)(e)?[[e.points],"esriGeometryMultipoint"]:(0,i.ZC)(e)?[[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]],"esriGeometryEnvelope"]:(0,i.fT)(e)?[[[l(e)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends a{initialize(e,t,r,n,s){return this._paths=e,this.geometryType=t,this.hasZ=r,this.hasM=n,this._pathIndex=this._pointIndex=-1,this.yFactor=s,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(e){return this._pathIndex=e,this._pointIndex=-1,e>=0&&e<this.totalSize&&(this._currentPath=this._paths[e],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(e){return e>=0&&e<this._currentPath.length&&(this._pointIndex=e,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const e=this._currentPath.length,t=this._currentPath;let r=0;for(let n=1;n<e;n++){const e=t[n-1],s=t[n],i=e[0],o=e[1],a=s[0]-i,u=s[1]-o;r+=Math.sqrt(a*a+u*u)}return r}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(e){this._paths.push(e)}pushPoint(e){this._paths[this.totalSize-1].push(e)}pushXY(e,t){this._paths[this.totalSize-1].push([e,t])}pushPoints(e){this._paths[this.totalSize-1].push(...e)}pushCursor(e){const t=(0,s.x)(e);for(const e of t)this.pushPath(e)}asOptimized(){const e=new o.A;if("esriGeometryPoint"===this.geometryType)e.coords.push(...this._paths[0][0]),e.lengths.length=0;else for(const t of this._paths){for(const r of t)e.coords.push(r[0]),e.coords.push(r[1]*this.yFactor),this.hasZ&&e.coords.push(r[2]),this.hasM&&e.coords.push(r[this._mIndex]);e.lengths.push(t.length)}return e}isClosed(){const e=this._currentPath[0],t=this._currentPath[this._currentPath.length-1];for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}clone(){return(new c).initialize((0,n.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(e=>e.length).reduce((e,t)=>e+t)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(e){this._currentPoint[0]=e}get y(){return this.yFactor*this._currentPoint[1]}set y(e){this._currentPoint[1]=this.yFactor*e}get z(){return this._currentPoint[2]}set z(e){this._currentPoint[2]=e}get m(){return this._currentPoint[this._mIndex]}set m(e){this._currentPoint[this._mIndex]=e}get pathIndex(){return this._pathIndex}}class _ extends u{initialize(e,t,r,n,s){return super.initialize(e,t,r,n,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(e=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const e=(new _).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor);return e._controlPoints=this._controlPoints,e}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(e){this._controlPoints[this.pathIndex].add(e)}getControlPointAt(e){return this._controlPoints[this.pathIndex].has(e)}}class d extends c{initialize(e,t,r,n,s){return super.initialize(e,t,r,n,s)}clone(){return(new d).initialize((0,n.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(e){this._paths[this.pathIndex][e][4]=1}getControlPointAt(e){return 1===this._paths[this.pathIndex][e][4]}}},37539:(e,t,r)=>{r.d(t,{pO:()=>p,jd:()=>_,Tp:()=>d,w5:()=>c});var n=r(34727),s=r(83047),i=r(73941),o=r(79258);Math.PI;const a=o.$O.radius,u=o.$O.eccentricitySquared,l={a1:a*u,a2:a*u*a*u,a3:a*u*u/2,a4:a*u*a*u*2.5,a5:a*u+a*u*u/2,a6:1-u};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var h=r(21325);const c={2:{5:p,7:null,9:null,10:p,1:v,6:null,8:null,0:null,3:m,11:y,2:p,4:k},5:{5:p,7:null,9:null,10:p,1:v,6:null,8:null,0:null,3:m,11:y,2:p,4:k},7:{5:null,7:p,9:null,10:p,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:x,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(e,t,r,n){const s=e[t]/R,i=C-2*Math.atan(Math.exp(-e[t+1]/R)),o=R+e[t+2],a=Math.cos(i)*o;r[n]=Math.cos(s)*a,r[n+1]=Math.sin(s)*a,r[n+2]=Math.sin(i)*o},6:null,8:null,0:null,3:p,11:function(e,t,r,n){g(e,t,r,n),y(r,n,r,n)},2:g,4:function(e,t,r,n){g(e,t,r,n),k(r,n,r,n)}},4:{5:A,7:null,9:null,10:A,1:function(e,t,r,n){A(e,t,r,n),v(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){A(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){A(e,t,r,n),y(r,n,r,n)},2:A,4:p},1:{5:S,7:null,9:null,10:S,1:p,6:null,8:null,0:null,3:function(e,t,r,n){S(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){S(e,t,r,n),y(r,n,r,n)},2:S,4:function(e,t,r,n){S(e,t,r,n),k(r,n,r,n)}},6:{5:null,7:F,9:null,10:F,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:M,10:M,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:v,6:I,8:x,0:null,3:m,11:y,2:p,4:k},11:{5:b,7:null,9:null,10:b,1:function(e,t,r,n){b(e,t,r,n),v(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){b(e,t,r,n),m(r,n,r,n)},11:p,2:b,4:function(e,t,r,n){b(e,t,r,n),k(r,n,r,n)}}};function _(e,t){return d(e,t)?.projector}function d(e,t){if(null==e||null==t)return null;if(P.source.spatialReference===e&&P.dest.spatialReference===t)return P;const r=f(e,P.source),n=f(t,P.dest);return 0===r&&0===n?(0,h.aI)(e,t)?P.projector=p:P.projector=null:P.projector=c[r][n],P}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,i.jA)(e)?t.spatialReferenceId=1:(0,h.oT)(e)?t.spatialReferenceId=2:(0,h.K8)(e)?t.spatialReferenceId=3:(0,h.r1)(e)?t.spatialReferenceId=11:e.wkt===i.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===i.FY.wkt?t.spatialReferenceId=6:e.wkt===i.LJ.wkt?t.spatialReferenceId=8:(0,h.q8)(e)?t.spatialReferenceId=7:(0,h.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function p(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t])}function g(e,t,r,n){r[n]=O*(e[t]/R),r[n+1]=O*(C-2*Math.atan(Math.exp(-e[t+1]/R))),r[n+2]=e[t+2]}function m(e,t,r,s){!function(e,t,r,s,i){const o=.4999999*Math.PI,a=(0,n.qE)(z*e[t+1],-o,o),u=Math.sin(a);r[s++]=z*e[t]*i.radius,r[s++]=i.halfSemiMajorAxis*Math.log((1+u)/(1-u)),r[s]=e[t+2]}(e,t,r,s,o.$O)}function y(e,t,r,n){r[n]=e[t]*N,r[n+1]=e[t+1]*N,r[n+2]=e[t+2]}function b(e,t,r,n){r[n]=e[t]*G,r[n+1]=e[t+1]*G,r[n+2]=e[t+2]}function w(e,t,r,n,s){const i=s+e[t+2],o=z*e[t+1],a=z*e[t],u=Math.cos(o)*i;r[n]=Math.cos(a)*u,r[n+1]=Math.sin(a)*u,r[n+2]=Math.sin(o)*i}function x(e,t,r,n){w(e,t,r,n,o.Sw.radius)}function I(e,t,r,n){w(e,t,r,n,o.sH.radius)}function v(e,t,r,n){w(e,t,r,n,o.$O.radius)}function T(e,t,r,s,i){const o=e[t],a=e[t+1],u=e[t+2],l=Math.sqrt(o*o+a*a+u*u),h=(0,n.YN)(u/(0===l?1:l)),c=Math.atan2(a,o);r[s++]=O*c,r[s++]=O*h,r[s]=l-i}function M(e,t,r,n){T(e,t,r,n,o.Sw.radius)}function F(e,t,r,n){T(e,t,r,n,o.sH.radius)}function S(e,t,r,n){T(e,t,r,n,o.$O.radius)}function k(e,t,r,n){!function(e,t,r,n,s){const i=z*e[t],o=z*e[t+1],a=e[t+2],u=Math.sin(o),l=Math.cos(o),h=s.radius/Math.sqrt(1-s.eccentricitySquared*u*u);r[n++]=(h+a)*l*Math.cos(i),r[n++]=(h+a)*l*Math.sin(i),r[n++]=(h*(1-s.eccentricitySquared)+a)*u}(e,t,r,n,o.$O)}function A(e,t,r,n){const s=l,i=e[t],a=e[t+1],u=e[t+2];let h,c,_,d,f,p,g,m,y,b,w,x,I,v,T,M,F,S,k,A,P;h=Math.abs(u),c=i*i+a*a,_=Math.sqrt(c),d=c+u*u,f=Math.sqrt(d),A=Math.atan2(a,i),p=u*u/d,g=c/d,v=s.a2/f,T=s.a3-s.a4/f,g>.3?(m=h/f*(1+g*(s.a1+v+p*T)/f),k=Math.asin(m),b=m*m,y=Math.sqrt(1-b)):(y=_/f*(1-p*(s.a5-v-g*T)/f),k=Math.acos(y),b=1-y*y,m=Math.sqrt(b)),w=1-o.$O.eccentricitySquared*b,x=o.$O.radius/Math.sqrt(w),I=s.a6*x,v=_-x*y,T=h-I*m,F=y*v+m*T,M=y*T-m*v,S=M/(I/w+F),k+=S,P=F+M*S/2,u<0&&(k=-k),r[n++]=O*A,r[n++]=O*k,r[n]=P}const P={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},z=(0,n.kU)(1),O=(0,n.KJ)(1),C=.5*Math.PI,R=o.$O.radius,N=R*Math.PI/180,G=180/(R*Math.PI)},38976:(e,t,r)=>{r.d(t,{n:()=>i});var n=r(76213),s=r(9012);class i{constructor(e){this._options=e}insert(e,t){const r=e.getCursor(),{arcadeContextInfo:n,scale:i}=this._options,o=(0,s.N)(i,n);for(;r.next();)this._insertFeature(r,o,this._options.sqlOptions,t)}_insertFeature(e,t,r,s){const{featureFilter:i}=this._options;if(null!==i&&!i.check(e,r))return;let o=0,a=0;if("esriGeometryPoint"===e.geometryType)o=e.readXWorldSpace(),a=e.readYWorldSpace();else{if(s){const t=e.readCentroidForDisplay();if(null==t)return;const[r,s]=t.coords;if(r<0||r>n.CQ||s<0||s>n.CQ)return}const t=e.readCentroidWorldSpace();if(null==t)return;o=t.coords[0],a=t.coords[1]}this._insert(e,o,a,t)}}},44320:(e,t,r)=>{r.d(t,{I:()=>u});var n=r(65529),s=r(44208),i=r(70328),o=r(30661),a=r(5162);class u{constructor(e){this._metadata=e,this._chunks=new Map,this._chunksToRemove=[],this._overrides=new a.Im,this.events=new n.bk,this.featureAdapter=new o.Z}destroy(){this.clear()}clear(){for(const e of this._chunks.values())this._chunksToRemove.push(e);this._chunks.clear(),this._overrides.clearWeakOverrides()}get usedMemory(){let e=0;for(const t of this._chunks.values())e+=t.usedMemory;return e}*chunks(){this._overrides&&(yield this._overrides.asChunk(this._metadata)),yield*this._chunks.values()}insert(e){(0,s.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.insert`),this._overrides.onChunkInsert(e),this._chunks.set(e.chunkId,e),this.events.emit("changed")}remove(e){(0,s.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.remove`),this._chunks.delete(e.chunkId),this._chunksToRemove.push(e)}removeById(e){(0,s.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e}] SourceChunkStore.remove`);const t=this._chunks.get(e);this._chunks.delete(e),t&&this._chunksToRemove.push(t)}cleanup(){const e=this._chunksToRemove;return this._chunksToRemove=[],this._overrides.cleanup(this._chunks.values()),e}applyOverride(e){this._overrides.apply(e,this),this.events.emit("changed");for(const e of this._chunks.values())e.invalidate()}takeOverrideUpdate(){return this._overrides.takeOverrideUpdate()}refresh(){this.events.emit("refresh")}forEach(e){const t=new Set;for(const r of this.chunks()){const n=r.reader.getCursor();for(;n.next();){const r=n.getObjectId();t.has(r)||(e(n.copy()),t.add(r))}}}forEachUnsafe(e){const t=new Set;for(const r of this.chunks()){const n=r.reader.getCursor();for(;n.next();){const r=n.getObjectId();t.has(r)||(e(n),t.add(r))}}}mapObjectIdsFromGlobalIds(e,t){const r=new Map,n=new Set(e);return this._overrides.putWeakObjectIdsFromGlobalIds(r,n,t),this._forEachUnsafeIgnoreOverrides(e=>{const s=e.readAttribute(t);if(s&&n.has(s)&&!r.has(s)){const t=e.getObjectId();r.set(s,t)}}),r}forEachInBounds(e,t){const r=new Set;for(const n of this.chunks()){const s=n.queryFeaturesInBounds(e);for(;s.next();){const e=s.getObjectId();r.has(e)||(t(s.copy()),r.add(e))}}}forEachBounds(e,t){const r=(0,i.vt)();for(const n of e)n.getBounds(r)&&t(r)}_forEachUnsafeIgnoreOverrides(e){const t=new Set;for(const r of this._chunks.values()){const n=r.reader.withoutOverrides().getCursor();for(;n.next();){const r=n.getObjectId();t.has(r)||(e(n),t.add(r))}}}}},48163:(e,t,r)=>{function n(){return[0,0]}function s(e){return[e[0],e[1]]}function i(e,t){return[e,t]}function o(){return i(1,1)}function a(){return i(1,0)}function u(){return i(0,1)}r.d(t,{Un:()=>l,fA:()=>i,o8:()=>s,vt:()=>n});const l=o(),h=a(),c=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:h,UNIT_Y:c,ZEROS:[0,0],clone:s,create:n,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const r=Math.min(2,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:i,ones:o,unitX:a,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},50115:(e,t,r)=>{r.d(t,{OP:()=>o,V4:()=>s,rZ:()=>i}),r(44208);var n=r(53966);function s(e,t,r){if(null==e)return null;const s=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;try{return e.evaluate(s,r)}catch(e){return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",e),null}}function i(e){return null==e||e===1/0||e===-1/0||"number"==typeof e&&isNaN(e)}function o(e,t,r,n){if(null==e)return null!=n?n:null;const s=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;const o=e.evaluate(s,r);return i(o)?null!=n?n:null:o}},52350:(e,t,r)=>{r.d(t,{e:()=>a});var n=r(69397),s=r(62577),i=r(90708),o=r(99996);class a extends o.Y{static from(e,t){if(e instanceof this){const r=new Set(t),n=e._indices.filter(e=>r.has(e));return new a(e._reader,n)}return new a(e.copy(),t)}constructor(e,t){super(e.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=e,this._indices=t}setTransformForDisplay(e){const t=this._reader.getInTransform();if(null==t)return void(this._displayTransform=(0,s.Q1)(e));const r=(0,s.Q1)(t),n=(0,s.Q1)(e),[i,o]=r.scale,[a,u]=r.translate,[l,h]=n.scale,[c,_]=n.translate,d=i/l,f=o/h,p=(a-c)/l,g=(u-_)/h;this._displayTransform={originPosition:"lowerLeft",scale:[1/d,1/f,1,1],translate:[-p/d,-g/f,0,0]}}getInTransform(){return this._reader.getInTransform()}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){const e=new a(this._reader.copy(),this._indices);return e._currentIndex=this._currentIndex,e._displayTransform=this._displayTransform,e._processorAttributes=this._processorAttributes,e}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(e){this._reader.contextTimeZone=e}get usedMemory(){return n.qK+this._reader.usedMemory}setProcessorAttributes(e){this._processorAttributes=Object.assign(this._processorAttributes??{},e)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,s.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,s.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){const e=this._reader.readCentroidForDisplay()?.clone();if(e){const[t,r]=e.coords;this._displayTransform?(e.coords[0]=(0,s.IE)(this._displayTransform,t),e.coords[1]=(0,s.B2)(this._displayTransform,r)):(e.coords[0]=t,e.coords[1]=r)}return e}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(e,t=!1){const r=this._reader.readAttribute(e,t);return null==r&&this._processorAttributes?this._processorAttributes[e]:r}readAttributes(){return{...this._processorAttributes,...this._reader.readAttributes()}}joinAttributes(e){return this._reader.joinAttributes(e)}getBounds(e){return this._reader.getBounds(e)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(e){return this._reader.setDisplayId(e)}setIndex(e){return this._reader.setIndex(e)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){const e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){const e=this.readGeometryForDisplay();return(0,i.zv)(e,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}_readAttribute(e,t){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(e){return this._reader.field(e)}hasField(e){return this._reader.hasField(e)}setField(e,t){return this._reader.setField(e,t)}keys(){return this._reader.keys()}castToText(e=!1){return this._reader.castToText(e)}}},57733:(e,t,r)=>{let n;function s(e){const t=n.__externref_table_alloc();return n.__wbindgen_export_2.set(t,e),t}function i(e,t){try{return e.apply(this,t)}catch(e){const t=s(e);n.__wbindgen_exn_store(t)}}r.r(t),r.d(t,{ColumnDescriptor:()=>N,FieldMetadata:()=>j,GeometryInfo:()=>q,GeometryType:()=>O,MultiscaleGeometryField:()=>W,PageEncodingDescriptor:()=>Y,ParquetChunk:()=>L,ParquetFile:()=>Z,PrimaryGeometryField:()=>$,QuantizedGeometryBuffer:()=>K,RangeProviderJs:()=>H,RowGroup:()=>te,default:()=>ie,enableTracing:()=>b,initSync:()=>se}),Symbol.dispose||(Symbol.dispose=Symbol("Symbol.dispose"));const o="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&o.decode();let a=null;function u(){return null!==a&&0!==a.byteLength||(a=new Uint8Array(n.memory.buffer)),a}function l(e,t){return e>>>=0,o.decode(u().subarray(e,e+t))}let h=0;const c="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},_="function"==typeof c.encodeInto?function(e,t){return c.encodeInto(e,t)}:function(e,t){const r=c.encode(e);return t.set(r),{read:e.length,written:r.length}};function d(e,t,r){if(void 0===r){const r=c.encode(e),n=t(r.length,1)>>>0;return u().subarray(n,n+r.length).set(r),h=r.length,n}let n=e.length,s=t(n,1)>>>0;const i=u();let o=0;for(;o<n;o++){const t=e.charCodeAt(o);if(t>127)break;i[s+o]=t}if(o!==n){0!==o&&(e=e.slice(o)),s=r(s,n,n=o+3*e.length,1)>>>0;const t=u().subarray(s+o,s+n);o+=_(e,t).written,s=r(s,n,o,1)>>>0}return h=o,s}let f=null;function p(){return(null===f||!0===f.buffer.detached||void 0===f.buffer.detached&&f.buffer!==n.memory.buffer)&&(f=new DataView(n.memory.buffer)),f}function g(e){return null==e}const m="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{n.__wbindgen_export_6.get(e.dtor)(e.a,e.b)});function y(e,t,r,s){const i={a:e,b:t,cnt:1,dtor:r},o=(...e)=>{i.cnt++;const t=i.a;i.a=0;try{return s(t,i.b,...e)}finally{0===--i.cnt?(n.__wbindgen_export_6.get(i.dtor)(t,i.b),m.unregister(i)):i.a=t}};return o.original=i,m.register(o,i,i),o}function b(){n.enableTracing()}let w=null;function x(){return null!==w&&0!==w.byteLength||(w=new Float64Array(n.memory.buffer)),w}let I=null;function v(){return null!==I&&0!==I.byteLength||(I=new Uint32Array(n.memory.buffer)),I}function T(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function M(e,t){e>>>=0;const r=p(),s=[];for(let i=e;i<e+4*t;i+=4)s.push(n.__wbindgen_export_2.get(r.getUint32(i,!0)));return n.__externref_drop_slice(e,t),s}function F(e,t){const r=t(8*e.length,8)>>>0;return x().set(e,r/8),h=e.length,r}function S(e,t){const r=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const n=s(e[t]);p().setUint32(r+4*t,n,!0)}return h=e.length,r}function k(e,t){const r=t(1*e.length,1)>>>0;return u().set(e,r/1),h=e.length,r}function A(e,t){const r=t(4*e.length,4)>>>0;return v().set(e,r/4),h=e.length,r}function P(e,t,r){n.closure83_externref_shim(e,t,r)}function z(e,t,r,s){n.closure9_externref_shim(e,t,r,s)}const O=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"}),C=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],R="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_columndescriptor_free(e>>>0,1));class N{static __wrap(e){e>>>=0;const t=Object.create(N.prototype);return t.__wbg_ptr=e,R.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_columndescriptor_free(e,0)}[Symbol.dispose](){this.free()}name(){let e,t;try{const r=n.columndescriptor_name(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}physicalType(){let e,t;try{const r=n.columndescriptor_physicalType(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}logicalType(){const e=n.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}encodings(){const e=n.columndescriptor_encodings(this.__wbg_ptr);var t=M(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}pageEncodings(){const e=n.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=M(e[0],e[1]).slice(),n.__wbindgen_free(e[0],4*e[1],4)),t}numValues(){return n.columndescriptor_numValues(this.__wbg_ptr)}compression(){let e,t;try{const r=n.columndescriptor_compression(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}compressedSize(){return n.columndescriptor_compressedSize(this.__wbg_ptr)}uncompressedSize(){return n.columndescriptor_uncompressedSize(this.__wbg_ptr)}nullCount(){const e=n.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}distinctCount(){const e=n.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}minValue(){return n.columndescriptor_minValue(this.__wbg_ptr)}maxValue(){return n.columndescriptor_maxValue(this.__wbg_ptr)}}const G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_fieldmetadata_free(e>>>0,1));class j{static __wrap(e){e>>>=0;const t=Object.create(j.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_fieldmetadata_free(e,0)}[Symbol.dispose](){this.free()}get column(){return n.__wbg_get_fieldmetadata_column(this.__wbg_ptr)>>>0}set column(e){n.__wbg_set_fieldmetadata_column(this.__wbg_ptr,e)}get name(){let e,t;try{const r=n.fieldmetadata_name(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}get type(){const e=n.fieldmetadata_esri_type(this.__wbg_ptr);return C[e]}get physicalType(){const e=n.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}get logicalType(){const e=n.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}}const B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_geometryinfo_free(e>>>0,1));class q{static __wrap(e){e>>>=0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_geometryinfo_free(e,0)}[Symbol.dispose](){this.free()}static new(e,t,r,s,i){T(s,$);var o=s.__destroy_into_raw();const a=S(i,n.__wbindgen_malloc),u=h,l=n.geometryinfo_new(e,t,r,o,a,u);return q.__wrap(l)}}const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_multiscalegeometryfield_free(e>>>0,1));class W{static __wrap(e){e>>>=0;const t=Object.create(W.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof W?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_multiscalegeometryfield_free(e,0)}[Symbol.dispose](){this.free()}get level(){return n.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}set level(e){n.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}static new(e,t,r,s){const i=d(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=h,a=F(r,n.__wbindgen_malloc),u=h,l=F(s,n.__wbindgen_malloc),c=h,_=n.multiscalegeometryfield_new(e,i,o,a,u,l,c);return W.__wrap(_)}has_field(e){const t=d(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h;return 0!==n.multiscalegeometryfield_has_field(this.__wbg_ptr,t,r)}}const E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_pageencodingdescriptor_free(e>>>0,1));class Y{static __wrap(e){e>>>=0;const t=Object.create(Y.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_pageencodingdescriptor_free(e,0)}[Symbol.dispose](){this.free()}pageType(){let e,t;try{const r=n.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}encoding(){let e,t;try{const r=n.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}count(){return n.pageencodingdescriptor_count(this.__wbg_ptr)}}const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_parquetchunk_free(e>>>0,1));class L{static __wrap(e){e>>>=0;const t=Object.create(L.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_parquetchunk_free(e,0)}[Symbol.dispose](){this.free()}size(){return n.parquetchunk_size(this.__wbg_ptr)>>>0}isEmpty(e){return 0!==n.parquetchunk_isEmpty(this.__wbg_ptr,e)}rowId(e){return n.parquetchunk_rowId(this.__wbg_ptr,e)}readX(e){const t=n.parquetchunk_readX(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readY(e){const t=n.parquetchunk_readY(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readCoords(e){const t=n.parquetchunk_readCoords(this.__wbg_ptr,e);let r;return 0!==t[0]&&(r=function(e,t){return e>>>=0,x().subarray(e/8,e/8+t)}(t[0],t[1]).slice(),n.__wbindgen_free(t[0],8*t[1],8)),r}readLengths(e){const t=n.parquetchunk_readLengths(this.__wbg_ptr,e);let r;return 0!==t[0]&&(r=function(e,t){return e>>>=0,v().subarray(e/4,e/4+t)}(t[0],t[1]).slice(),n.__wbindgen_free(t[0],4*t[1],4)),r}transformGeometry(e,t,r,s,i,o){T(e,K);const a=n.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,r,s,i,o);return 16777215===a?void 0:0!==a}boundsXMin(e){const t=n.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=n.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMax(e){const t=n.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=n.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readAttribute(e,t){return n.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}}const U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_parquetfile_free(e>>>0,1));class Z{static __wrap(e){e>>>=0;const t=Object.create(Z.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_parquetfile_free(e,0)}[Symbol.dispose](){this.free()}static fromUrl(e,t,r,s){const i=d(e,n.__wbindgen_malloc,n.__wbindgen_realloc),o=h;let a=0;return g(s)||(T(s,q),a=s.__destroy_into_raw()),n.parquetfile_fromUrl(i,o,t,r,a)}static fromBinary(e,t){const r=k(e,n.__wbindgen_malloc),s=h;let i=0;return g(t)||(T(t,q),i=t.__destroy_into_raw()),n.parquetfile_fromBinary(r,s,i)}version(){return n.parquetfile_version(this.__wbg_ptr)}numRows(){return n.parquetfile_numRows(this.__wbg_ptr)>>>0}numFields(){return n.parquetfile_numFields(this.__wbg_ptr)>>>0}numColumns(){return n.parquetfile_numColumns(this.__wbg_ptr)>>>0}createdBy(){const e=n.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}keyValueMetadata(e){const t=d(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h,s=n.parquetfile_keyValueMetadata(this.__wbg_ptr,t,r);let i;return 0!==s[0]&&(i=l(s[0],s[1]).slice(),n.__wbindgen_free(s[0],1*s[1],1)),i}keys(){const e=n.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=M(e[0],e[1]).slice(),n.__wbindgen_free(e[0],4*e[1],4)),t}columnForFieldName(e){const t=d(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h,s=n.parquetfile_columnForFieldName(this.__wbg_ptr,t,r);return 4294967297===s?void 0:s}fields(){const e=n.parquetfile_fields(this.__wbg_ptr);var t=M(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}rowGroups(){const e=n.parquetfile_rowGroups(this.__wbg_ptr);var t=M(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}ensureFields(e){const t=A(e,n.__wbindgen_malloc),r=h;return n.parquetfile_ensureFields(this.__wbg_ptr,t,r)}readFirstChunk(e){const t=A(e,n.__wbindgen_malloc),r=h;return n.parquetfile_readFirstChunk(this.__wbg_ptr,t,r)}readChunk(e,t,r,s,i){const o=A(r,n.__wbindgen_malloc),a=h;return n.parquetfile_readChunk(this.__wbg_ptr,e,t,o,a,s,i)}readChunksByRowId(e,t,r,s){const i=A(e,n.__wbindgen_malloc),o=h,a=A(t,n.__wbindgen_malloc),u=h;return n.parquetfile_readChunksByRowId(this.__wbg_ptr,i,o,a,u,r,s)}readAllChunks(e,t,r){const s=A(e,n.__wbindgen_malloc),i=h;return n.parquetfile_readAllChunks(this.__wbg_ptr,s,i,t,r)}queryZChunks(e,t,r,s){const i=A(t,n.__wbindgen_malloc),o=h;return n.parquetfile_queryZChunks(this.__wbg_ptr,e,i,o,r,s)}queryXZChunks(e,t,r){return n.parquetfile_queryXZChunks(this.__wbg_ptr,e,t,r)}}const J="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_primarygeometryfield_free(e>>>0,1));class ${static __wrap(e){e>>>=0;const t=Object.create($.prototype);return t.__wbg_ptr=e,J.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_primarygeometryfield_free(e,0)}[Symbol.dispose](){this.free()}static fromNative(e){const t=d(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h,s=n.primarygeometryfield_fromNative(t,r);return $.__wrap(s)}static fromWkb(e){const t=d(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h,s=n.primarygeometryfield_fromWkb(t,r);return $.__wrap(s)}static fromLocation(e,t){const r=d(e,n.__wbindgen_malloc,n.__wbindgen_realloc),s=h,i=d(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=h,a=n.primarygeometryfield_fromLocation(r,s,i,o);return $.__wrap(a)}}const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_quantizedgeometrybuffer_free(e>>>0,1));class K{static __wrap(e){e>>>=0;const t=Object.create(K.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_quantizedgeometrybuffer_free(e,0)}[Symbol.dispose](){this.free()}static new(){const e=n.quantizedgeometrybuffer_new();return K.__wrap(e)}readCoordsUnsafe(){return n.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return n.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}const Q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rangeproviderjs_free(e>>>0,1));class H{static __wrap(e){e>>>=0;const t=Object.create(H.prototype);return t.__wbg_ptr=e,Q.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_rangeproviderjs_free(e,0)}[Symbol.dispose](){this.free()}static new(e,t){const r=n.rangeproviderjs_new(e,t);return H.__wrap(r)}static withFetch(){const e=n.rangeproviderjs_withFetch();return H.__wrap(e)}}const ee="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rowgroup_free(e>>>0,1));class te{static __wrap(e){e>>>=0;const t=Object.create(te.prototype);return t.__wbg_ptr=e,ee.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ee.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_rowgroup_free(e,0)}[Symbol.dispose](){this.free()}columnDescriptorForAttribute(e){const t=n.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,e);return N.__wrap(t)}}function re(){const e={wbg:{}};return e.wbg.__wbg_aborted_c078e36031795a9a=function(e){return e.aborted},e.wbg.__wbg_apply_36be6a55257c99bf=function(){return i(function(e,t,r){return e.apply(t,r)},arguments)},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_call_672a4d21634d4a24=function(){return i(function(e,t){return e.call(t)},arguments)},e.wbg.__wbg_call_7cccdd69e0791ae2=function(){return i(function(e,t,r){return e.call(t,r)},arguments)},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let r,s;try{r=e,s=t,console.error(l(e,t))}finally{n.__wbindgen_free(r,s,1)}},e.wbg.__wbg_fieldmetadata_new=function(e){return j.__wrap(e)},e.wbg.__wbg_get_67b2ba62fc30de12=function(){return i(function(e,t){return Reflect.get(e,t)},arguments)},e.wbg.__wbg_length_6ca527665d89694d=function(e){return e.length},e.wbg.__wbg_length_a446193dc22c12f8=function(e){return e.length},e.wbg.__wbg_multiscalegeometryfield_unwrap=function(e){return W.__unwrap(e)},e.wbg.__wbg_new_23a2665fac83c611=function(e,t){try{var r={a:e,b:t};return new Promise((e,t)=>{const n=r.a;r.a=0;try{return z(n,r.b,e,t)}finally{r.a=n}})}finally{r.a=r.b=0}},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},e.wbg.__wbg_new_a12002a7f91c75be=function(e){return new Uint8Array(e)},e.wbg.__wbg_new_e3b321dcfef89fc7=function(e){return new Uint32Array(e)},e.wbg.__wbg_newnoargs_105ed471475aaf50=function(e,t){return new Function(l(e,t))},e.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212=function(e,t,r){return new Uint32Array(e,t>>>0,r>>>0)},e.wbg.__wbg_newwithbyteoffsetandlength_f254047f7e80e7ff=function(e,t,r){return new Int16Array(e,t>>>0,r>>>0)},e.wbg.__wbg_newwithlength_c4c419ef0bc8a1f8=function(e){return new Array(e>>>0)},e.wbg.__wbg_pageencodingdescriptor_new=function(e){return Y.__wrap(e)},e.wbg.__wbg_parquetchunk_new=function(e){return L.__wrap(e)},e.wbg.__wbg_parquetfile_new=function(e){return Z.__wrap(e)},e.wbg.__wbg_queueMicrotask_98e746b9f850fe3d=function(e){queueMicrotask(e)},e.wbg.__wbg_queueMicrotask_c847cc8372bec908=function(e){return e.queueMicrotask},e.wbg.__wbg_resolve_4851785c9c5f573d=function(e){return Promise.resolve(e)},e.wbg.__wbg_rowgroup_new=function(e){return te.__wrap(e)},e.wbg.__wbg_set_37837023f3d740e8=function(e,t,r){e[t>>>0]=r},e.wbg.__wbg_set_65595bdd868b3009=function(e,t,r){e.set(t,r>>>0)},e.wbg.__wbg_set_d23661d19148b229=function(e,t,r){e.set(t,r>>>0)},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){const r=d(t.stack,n.__wbindgen_malloc,n.__wbindgen_realloc),s=h;p().setInt32(e+4,s,!0),p().setInt32(e+0,r,!0)},e.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const e="undefined"==typeof global?null:global;return g(e)?0:s(e)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const e="undefined"==typeof globalThis?null:globalThis;return g(e)?0:s(e)},e.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const e="undefined"==typeof self?null:self;return g(e)?0:s(e)},e.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const e="undefined"==typeof window?null:window;return g(e)?0:s(e)},e.wbg.__wbg_then_44b73946d2fb3e7d=function(e,t){return e.then(t)},e.wbg.__wbg_then_48b406749878a531=function(e,t,r){return e.then(t,r)},e.wbg.__wbg_valueOf_fdbb54fcdfe33477=function(e){return e.valueOf()},e.wbg.__wbindgen_array_new=function(){return[]},e.wbg.__wbindgen_array_push=function(e,t){e.push(t)},e.wbg.__wbindgen_bigint_from_i64=function(e){return e},e.wbg.__wbindgen_cb_drop=function(e){const t=e.original;return 1==t.cnt--&&(t.a=0,!0)},e.wbg.__wbindgen_closure_wrapper1700=function(e,t,r){return y(e,t,84,P)},e.wbg.__wbindgen_init_externref_table=function(){const e=n.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_is_function=function(e){return"function"==typeof e},e.wbg.__wbindgen_is_undefined=function(e){return void 0===e},e.wbg.__wbindgen_memory=function(){return n.memory},e.wbg.__wbindgen_number_get=function(e,t){const r="number"==typeof t?t:void 0;p().setFloat64(e+8,g(r)?0:r,!0),p().setInt32(e+0,!g(r),!0)},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_new=function(e,t){return l(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw new Error(l(e,t))},e.wbg.__wbindgen_uint8_array_new=function(e,t){var r=function(e,t){return e>>>=0,u().subarray(e/1,e/1+t)}(e,t).slice();return n.__wbindgen_free(e,1*t,1),r},e}function ne(e,t){return n=e.exports,ie.__wbindgen_wasm_module=t,f=null,w=null,I=null,a=null,n.__wbindgen_start(),n}function se(e){if(void 0!==n)return n;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=re();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),ne(new WebAssembly.Instance(e,t),e)}async function ie(e){if(void 0!==n)return n;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=re();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:s}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}(await e,t);return ne(r,s)}},62815:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(83047),s=r(73941),i=r(21325);function o(e,t,r){if(null==t||null==r||r.vcsWkid||(0,i.aI)(t,r)||(0,s.xP)(t)||(0,s.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}}},63664:(e,t,r)=>{r.d(t,{B:()=>n});class n{constructor(e){this._statistics=e}get statistics(){return this._statistics}}},68974:(e,t,r)=>{r.d(t,{H:()=>l,p:()=>u});var n=r(69397),s=r(83047),i=r(38976),o=r(75538);const a=96;function u(e,t){return(0,s.GA)(e)*s.dy*a/t}class l extends i.n{constructor(e){super(e),this._cells=new Map,this._pixelsPerMapUnit=u(e.spatialReference,e.scale)}get usedMemory(){const e=this._cells.values().next().value;return e?(n.RS+e.usedMemory)*this._cells.size:0}put(e){for(const t of this._cells.values()){const r=e.get(t.id);r?r.merge(t):e.set(t.id,t.clone())}}putBounded(e,t,r){const n=[t.xmin,t.ymin,t.xmax,t.ymax],[s,i,o,a]=n,u=Math.floor(s*this._pixelsPerMapUnit/this._options.cellSize),l=Math.floor(i*this._pixelsPerMapUnit/this._options.cellSize),h=Math.ceil(o*this._pixelsPerMapUnit/this._options.cellSize),c=Math.ceil(a*this._pixelsPerMapUnit/this._options.cellSize);for(let t=l;t<=c;t++)for(let r=u;r<=h;r++){const n=`${r}.${t}`,s=this._cells.get(n);if(!s)continue;const i=e.get(s.id);i?s&&!e.has(s.id)&&i.merge(s):e.set(s.id,s.clone())}}_insert(e,t,r,n){const s=t*this._pixelsPerMapUnit,i=r*this._pixelsPerMapUnit,o=Math.floor(s/this._options.cellSize),a=Math.floor(i/this._options.cellSize);this._getCellOrCreate(o,a).insert(e,n,t,r)}_getCellOrCreate(e,t){const r=o.L.createId(e,t);let n=this._cells.get(r);if(!n){const s=1*this._options.cellSize/this._pixelsPerMapUnit;n=o.L.create(e,t,this._options.fields,s),this._cells.set(r,n)}return n}}},70300:(e,t,r)=>{r.d(t,{K:()=>W});var n=r(69397),s=r(11006);function i(e,t){if(!(this instanceof i))return new i(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this.toBBox=t:this._initFormat(t)),this.clear()}function o(e,t,r){if(!r)return t.indexOf(e);for(var n=0;n<t.length;n++)if(r(e,t[n]))return n;return-1}function a(e,t){u(e,0,e.children.length,t,e)}function u(e,t,r,n,s){s||(s=y(null)),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(var i,o=t;o<r;o++)i=e.children[o],l(s,e.leaf?n(i):i);return s}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function h(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function _(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function p(e,t){var r=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),i=Math.min(e.maxY,t.maxY);return Math.max(0,s-r)*Math.max(0,i-n)}function g(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function m(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function y(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function b(e,t,r,n,i){for(var o,a=[t,r];a.length;)(r=a.pop())-(t=a.pop())<=n||(o=t+Math.ceil((r-t)/n/2)*n,(0,s.q)(e,o,t,r,i),a.push(t,o,o,r))}i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],n=this.toBBox;if(!m(e,t))return r;for(var s,i,o,a,u=[];t;){for(s=0,i=t.children.length;s<i;s++)o=t.children[s],m(e,a=t.leaf?n(o):o)&&(t.leaf?r.push(o):g(e,a)?this._all(o,r):u.push(o));t=u.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!m(e,t))return!1;for(var n,s,i,o,a=[];t;){for(n=0,s=t.children.length;n<s;n++)if(i=t.children[n],m(e,o=t.leaf?r(i):i)){if(t.leaf||g(e,o))return!0;a.push(i)}t=a.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var s=this.data;this.data=n,n=s}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(e){return null!=e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=y([]),this},remove:function(e,t){if(null==e)return this;for(var r,n,s,i,a=this.data,u=this.toBBox(e),l=[],h=[];a||l.length;){if(a||(a=l.pop(),n=l[l.length-1],r=h.pop(),i=!0),a.leaf&&-1!==(s=o(e,a.children,t)))return a.children.splice(s,1),l.push(a),this._condense(l),this;i||a.leaf||!g(a,u)?n?(r++,a=n.children[r],i=!1):a=null:(l.push(a),h.push(r),r=0,n=a,a=a.children[0])}return this},toBBox:function(e){return e},compareMinX:h,compareMinY:c,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_build:function(e,t,r,n){var s,i=r-t+1,o=this._maxEntries;if(i<=o)return a(s=y(e.slice(t,r+1)),this.toBBox),s;n||(n=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/Math.pow(o,n-1))),(s=y([])).leaf=!1,s.height=n;var u,l,h,c,_=Math.ceil(i/o),d=_*Math.ceil(Math.sqrt(o));for(b(e,t,r,d,this.compareMinX),u=t;u<=r;u+=d)for(b(e,u,h=Math.min(u+d-1,r),_,this.compareMinY),l=u;l<=h;l+=_)c=Math.min(l+_-1,h),s.children.push(this._build(e,l,c,n-1));return a(s,this.toBBox),s},_chooseSubtree:function(e,t,r,n){for(var s,i,o,a,u,l,h,c;n.push(t),!t.leaf&&n.length-1!==r;){for(h=c=1/0,s=0,i=t.children.length;s<i;s++)u=_(o=t.children[s]),(l=f(e,o)-u)<c?(c=l,h=u<h?u:h,a=o):l===c&&u<h&&(h=u,a=o);t=a||t.children[0]}return t},_insert:function(e,t,r){var n=this.toBBox,s=r?e:n(e),i=[],o=this._chooseSubtree(s,this.data,t,i);for(o.children.push(e),l(o,s);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(s,i,t)},_split:function(e,t){var r=e[t],n=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,n);var i=this._chooseSplitIndex(r,s,n),o=y(r.children.splice(i,r.children.length-i));o.height=r.height,o.leaf=r.leaf,a(r,this.toBBox),a(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(e,t){this.data=y([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var n,s,i,o,a,l,h,c;for(l=h=1/0,n=t;n<=r-t;n++)o=p(s=u(e,0,n,this.toBBox),i=u(e,n,r,this.toBBox)),a=_(s)+_(i),o<l?(l=o,c=n,h=a<h?a:h):o===l&&a<h&&(h=a,c=n);return c},_chooseSplitAxis:function(e,t,r){var n=e.leaf?this.compareMinX:h,s=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,s)&&e.children.sort(n)},_allDistMargin:function(e,t,r,n){e.children.sort(n);var s,i,o=this.toBBox,a=u(e,0,t,o),h=u(e,r-t,r,o),c=d(a)+d(h);for(s=t;s<r-t;s++)i=e.children[s],l(a,e.leaf?o(i):i),c+=d(a);for(s=r-t-1;s>=t;s--)i=e.children[s],l(h,e.leaf?o(i):i),c+=d(h);return c},_adjustParentBBoxes:function(e,t,r){for(var n=r;n>=0;n--)l(t[n],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():a(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var w=r(70328);class x{static fromReader(e){const t=[],r=e.copy(),n=(0,w.vt)();for(;r.next();)r.getBounds(n)&&t.push(r.getIndex());const s=i(9,e=>(r.setIndex(e),{minX:r.getBoundsXMin(),minY:r.getBoundsYMin(),maxX:r.getBoundsXMax(),maxY:r.getBoundsYMax()}));return s.load(t),new x(s,t.length)}constructor(e,t){this._index=e,this._size=t}get usedMemory(){return this._size*n.RS}search(e){const t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this._index.search(t)}}r(44208);var I=r(34727),v=(r(37585),r(48163)),T=r(39829),M=r(16930),F=r(19419),S=r(79258),k=r(90708),A=r(92722),P=r(31464);function z(e,t,r,n){if(n.isWebMercator){const n=(0,I.KJ)(e/S.$O.radius),s=n-360*Math.floor((n+180)/360),i=[0,0];return O(i,0,(0,I.KJ)(Math.PI/2-2*Math.atan(Math.exp(-t/S.$O.radius))),s,r),i}const s=(0,P.Cv)({x:e,y:t},n,M.A.WGS84);if(!s)return null;const i=[0,0];return O(i,0,s.y,s.x,r),i}function O(e,t,r,n,s){s%2&&(s+=1);let i=0,o=0,a=-90,u=90,l=-180,h=180;for(let e=0;e<s/2;e++){for(let t=0;t<5;t++){const r=(l+h)/2,s=n>r?1:0;i|=s<<29-(t+5*e),l=(1-s)*l+s*r,h=(1-s)*r+s*h}for(let t=0;t<5;t++){const n=(a+u)/2,s=r>n?1:0;o|=s<<29-(t+5*e),a=(1-s)*a+s*n,u=(1-s)*n+s*u}}e[2*t]=i,e[2*t+1]=o}(0,v.vt)(),(0,v.vt)();var C=r(63664),R=r(92029);class N extends C.B{static create(e,t,r,n){const s=R.o.create(e),i=new Array(32);for(let e=0;e<i.length;e++)i[e]=null;return new N(s,t,r,n,i)}constructor(e,t,r,n,s){super(e),this.xNode=t,this.yNode=r,this.depth=n,this.children=s,this._objectIds=new Set,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let e=0;return e+=2*n.qK,e+=32*n.RS,e+=R.o.estimatedMemory,e}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){const e=new N(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._xGeohashTotal=this._xGeohashTotal,e._yGeohashTotal=this._yGeohashTotal,e.next=this.next,e._objectIds=new Set(this._objectIds),e}insert(e,t,r,n,s,i){this._count+=1,this._xWorldTotal+=t,this._yWorldTotal+=r,this._xGeohashTotal+=n,this._yGeohashTotal+=s,this._statistics.insert(e,i),this._objectIds.add(e.getObjectId())}merge(e){if(0!==e._count){this._count+=e._count,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._xGeohashTotal+=e._xWorldTotal,this._yGeohashTotal+=e._yWorldTotal,this._statistics.merge(e._statistics);for(const t of e._objectIds.values())this._objectIds.add(t)}}getCentroid(e){throw new Error("getCentroid not supported for GeohashNode")}getGeometry(e,t){const r=this._getLngLatBounds(),[n,s,i,o]=r,a=(0,P.Cv)({rings:[[[n,s],[n,o],[i,o],[i,s],[n,s]]]},M.A.WGS84,e),u=(0,k.Ye)(new A.A,a,!1,!1);return null!=t?(0,k.Nl)(new A.A,u,!1,!1,"esriGeometryPolygon",t,!1,!1):u}getGeometricCentroid(e,t){const r=this._getLngLatBounds(),[n,s,i,o]=r,a=(0,P.Cv)({x:(n+i)/2,y:(s+o)/2},M.A.WGS84,e),u=(0,k.qN)(new A.A,a);return null!=t?(0,k.Nl)(new A.A,u,!1,!1,"esriGeometryPoint",t,!1,!1):u}getAttributes(){const e={aggregateId:this.id};for(const t of this._statistics.values())e[t.field.name]=t.value;return e.aggregateCount=this._count,e}find(e,t,r,n,s,i){if(n>=r)return this;const o=1-n%2,a=3*o+2*(1-o),u=2*o+3*(1-o),l=30-s-a,h=30-i-u,c=((e&7*o+3*(1-o)<<l)>>l)+((t&3*o+7*(1-o)<<h)>>h)*(8*o+4*(1-o)),_=this.children[c];return null==_?null:_.find(e,t,r,n+1,s+a,i+u)}_getLngLatBounds(){const e=this.depth,t=Math.ceil(e/2),r=Math.floor(e/2),n=30-(3*t+2*r),s=30-(2*t+3*r);return function(e,t){let r=-90,n=90,s=-180,i=180;for(let o=0;o<t;o++){const t=Math.ceil((o+1)/2),a=Math.floor((o+1)/2),u=1-o%2,l=30-(3*t+2*a),h=30-(2*t+3*a),c=2*u+3*(1-u),_=(7*u+3*(1-u)<<l&e.geohashX)>>l,d=(3*u+7*(1-u)<<h&e.geohashY)>>h;for(let e=3*u+2*(1-u)-1;e>=0;e--){const t=(s+i)/2,r=_&1<<e?1:0;s=(1-r)*s+r*t,i=(1-r)*t+r*i}for(let e=c-1;e>=0;e--){const t=(r+n)/2,s=d&1<<e?1:0;r=(1-s)*r+s*t,n=(1-s)*t+s*n}}return[s,r,i,n]}({geohashX:this.xNode<<n,geohashY:this.yNode<<s},this.depth)}}class G{constructor(e){this._fields=e,this._size=0,this._depth=0,this._root=N.create(this._fields,0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}get usedMemory(){return this._size*N.estimatedMemory}find(e,t,r){return this._root.find(e,t,r,0,0,0)}insert(e,t,r,n,s,i,o){let a=this._root,u=0,l=0,h=0;for(;null!==a;){if(a.insert(e,t,r,n,s,o),u>=i)return;const c=Math.ceil((u+1)/2),_=Math.floor((u+1)/2),d=1-u%2,f=30-(3*c+2*_),p=30-(2*c+3*_),g=(n&7*d+3*(1-d)<<f)>>f,m=(s&3*d+7*(1-d)<<p)>>p,y=g+m*(8*d+4*(1-d));l=l<<3*d+2*(1-d)|g,h=h<<2*d+3*(1-d)|m,null==a.children[y]&&(a.children[y]=N.create(this._fields,l,h,u+1),this._depth=Math.max(this._depth,u+1),this._size+=1),u+=1,a=a.children[y]}}putBins(e,t){for(const r of this.getNodes(t)){const t=e.get(r.id);t?t.merge(r):e.set(r.id,r.clone())}}getNodes(e){const t=[],{geohashBounds:r,level:n}=e;let s=this._root;for(;null!==s;){const e=s.depth,i=s.xNode,o=s.yNode;if(e>=n){t.push(s),s=s.next;continue}const a=Math.ceil((e+1)/2),u=Math.floor((e+1)/2),l=1-e%2,h=30-(3*a+2*u),c=30-(2*a+3*u),_=~((1<<h)-1),d=~((1<<c)-1),f=(r.xLL&_)>>h,p=(r.yLL&d)>>c,g=(r.xTR&_)>>h,m=(r.yTR&d)>>c,y=i<<3*l+2*(1-l),b=o<<2*l+3*(1-l),w=y+8*l+4*(1-l),x=b+4*l+8*(1-l),I=Math.max(y,f),v=Math.max(b,p),T=Math.min(w,g),M=Math.min(x,m);let F=null,S=null;for(let e=v;e<=M;e++)for(let t=I;t<=T;t++){const r=t-y+(e-b)*(8*l+4*(1-l)),n=s.children[r];n&&(F||(F=n,F.next=s.next),S&&(S.next=n),S=n,n.next=s.next)}s=F||s.next}return t}}var j=r(38976);class B extends j.n{constructor(e){super(e),this._tree=new G(this._options.fields)}get usedMemory(){return this._tree.usedMemory}put(e){throw new Error("Geohash tree does not support put")}putBounded(e,t,r){const{geohashLevel:n,spatialReference:s}=this._options,i=function(e,t,r,n){const s=[e.xmin,e.ymin,e.xmax,e.ymax],i=T.A.fromExtent((0,F.w1)(s,n)),o=(0,P.Cv)(i,n,M.A.WGS84,{densificationStep:64*t});if(!o)return null;const a=(0,k.Ye)(new A.A,o,!1,!1),u=a.coords.filter((e,t)=>!(t%2)),l=a.coords.filter((e,t)=>t%2),h=Math.min(...u),c=Math.min(...l),_=Math.max(...u),d=Math.max(...l),f=z(h,c,r,M.A.WGS84),p=z(_,d,r,M.A.WGS84);return f&&p?{bounds:s,geohashBounds:{xLL:f[0],yLL:f[1],xTR:p[0],yTR:p[1]},level:r}:null}(t,r,n,s);null!=i&&this._tree.putBins(e,i)}_insert(e,t,r,n){const{geohashLevel:s,spatialReference:i}=this._options,o=z(t,r,s,i);o&&this._tree.insert(e,t,r,o[0],o[1],s,n)}}var q=r(68974),D=r(52350);class W{size(){return this.reader.getSize()}get fields(){return this.reader.fields}invalidate(){this._aggregateIndex=null,this._aggregateIndexHash=null,this._spatialIndex=null}get usedMemory(){let e=0;return e+=this.reader.underlyingMemory,this._aggregateIndex&&(e+=this._aggregateIndex.usedMemory),this._spatialIndex&&(e+=this._spatialIndex.usedMemory),e}registerOverrides(e){this.reader.registerOverrides(e),this.invalidate()}queryFeaturesInBounds(e){const t=this._getSpatialIndex().search(e);return D.e.from(this.reader,t)}getAggregateIndex(e){const t=JSON.stringify(e);if(t!==this._aggregateIndexHash){switch(this._aggregateIndexHash=t,e.type){case"grid":this._aggregateIndex=new q.H(e);break;case"geohash":this._aggregateIndex=new B(e)}this._aggregateIndex.insert(this.reader,this.isTiled)}return this._aggregateIndex}_getSpatialIndex(){return this._spatialIndex||(this._spatialIndex=x.fromReader(this.reader)),this._spatialIndex}}},70581:(e,t,r)=>{r.d(t,{DV:()=>h,hD:()=>c});var n=r(78888),s=r(49186),i=r(2741);let o=null;var a=r(57733);const u=e=>async function(t,r,s,i){const o=e?.(),a=o?{...o,debug:i}:{debug:i},{data:u}=await(0,n.A)(t,{responseType:"array-buffer",query:a,headers:{range:`bytes=${r}-${s}`}});return u},l=e=>async function(t){const{data:r}=await(0,n.A)(t,{responseType:"native",method:"head",query:e?.()}),s=r.headers.get("Content-Length");if(null==s)throw new Error("Unable to parse content length");return parseInt(s,10)};async function h(e,t={}){const{ParquetFile:n}=await async function(){return o||(o=async function(){const e=await Promise.resolve().then(r.bind(r,57733));return await e.default({module_or_path:(0,i.s)("esri/libs/parquet/pkg/bundle_bg.wasm")}),e}()),o}(),h=u(t.getCustomParameters),c=l(t.getCustomParameters),_=t.geometryInfo?function(e,t){const r=e.spatialReference.wkid,n=t.wkid;if(!r||!n)throw new s.A("parquet","Unable to create ParquetFile, in and out wkid must be specified");const i=function(e){switch(e){case"esriGeometryPoint":return a.GeometryType.Point;case"esriGeometryPolygon":return a.GeometryType.Polygon;case"esriGeometryPolyline":return a.GeometryType.Polyline;case"esriGeometryMultipoint":return a.GeometryType.Multipoint;default:throw new s.A("parquet",`Found unexpected GeometryType: ${e}`)}}(e.geometryType),o=function(e){switch(e.encoding.type){case"wkb":return a.PrimaryGeometryField.fromWkb(e.encoding.primaryFieldName);case"location":{const{latitudeFieldName:t,longitudeFieldName:r}=e.encoding;return a.PrimaryGeometryField.fromLocation(t,r)}}}(e),u=[];if("xz"===e.displayOptimization?.mode){const t=e.displayOptimization.multiscale;for(const e of t.levels??[]){const[t,r]=e.transform.translate,[n,s]=e.transform.scale,i=new Float64Array([t,r]),o=new Float64Array([n,s]);u.push(a.MultiscaleGeometryField.new(e.level,e.column,i,o))}}return a.GeometryInfo.new(i,r,n,o,u)}(t.geometryInfo,t.outSpatialReference??t.geometryInfo.spatialReference):null;return n.fromUrl(e,h,c,_)}function c(e){const t=e.keyValueMetadata("geo");return null!=t?JSON.parse(t):null}},73250:(e,t,r)=>{r.d(t,{y:()=>s});var n=r(69397);class s{static fromBuffer(e,t){return new s(e,t)}static create(e,t=4294967295){const r=new Uint32Array(Math.ceil(e/32));return new s(r,t)}constructor(e,t){this._mask=0,this._buf=e,this._mask=t}_getIndex(e){return Math.floor(e/32)}get usedMemory(){return(0,n.Qf)(this._buf)}has(e){const t=this._mask&e;return!!(this._buf[this._getIndex(t)]&1<<t%32)}hasRange(e,t){let r=e,n=t;for(;r%32&&r!==n;){if(this.has(r))return!0;r++}for(;n%32&&r!==n;){if(this.has(r))return!0;n--}if(r===n)return!1;for(let e=r/32;e!==n/32;e++)if(this._buf[e])return!0;return!1}set(e){const t=this._mask&e,r=this._getIndex(t),n=1<<t%32;this._buf[r]|=n}setRange(e,t){let r=e,n=t;for(;r%32&&r!==n;)this.set(r++);for(;n%32&&r!==n;)this.set(n--);if(r!==n)for(let e=r/32;e!==n/32;e++)this._buf[e]=4294967295}unset(e){const t=this._mask&e,r=this._getIndex(t),n=1<<t%32;this._buf[r]&=4294967295^n}resize(e){const t=this._buf,r=new Uint32Array(Math.ceil(e/32));r.set(t),this._buf=r}or(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=e._buf[t];return this}and(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=e._buf[t];return this}xor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=e._buf[t];return this}ior(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=~e._buf[t];return this}iand(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=~e._buf[t];return this}ixor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=~e._buf[t];return this}any(){for(let e=0;e<this._buf.length;e++)if(this._buf[e])return!0;return!1}copy(e){for(let t=0;t<this._buf.length;t++)this._buf[t]=e._buf[t];return this}clone(){return new s(this._buf.slice(),this._mask)}clear(){for(let e=0;e<this._buf.length;e++)this._buf[e]=0;return this}forEachSet(e){for(let t=0;t<this._buf.length;t++){let r=this._buf[t],n=32*t;if(r)for(;r;)1&r&&e(n),r>>>=1,n++}}countSet(){let e=0;return this.forEachSet(t=>{e++}),e}}},75538:(e,t,r)=>{r.d(t,{L:()=>a});var n=r(90708),s=r(92722),i=r(63664),o=r(92029);class a extends i.B{static createId(e,t){return`${e}.${t}`}static create(e,t,r,n){return new a(e,t,o.o.create(r),n)}constructor(e,t,r,n){super(r),this.gridX=e,this.gridY=t,this._worldUnitsPerCell=n,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=new Set}get id(){return a.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds.values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}get usedMemory(){return 48}clone(){const e=new a(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._firstFeatureAttributes=this._firstFeatureAttributes,e._objectIds=new Set(this._objectIds),e}insert(e,t,r,n){0===this._count?this._firstFeatureAttributes=e.readAttributes():this._firstFeatureAttributes=null,this._count+=1,this._xWorldTotal+=r,this._yWorldTotal+=n,this._statistics.insert(e,t),this._objectIds.add(e.getObjectId())}merge(e){if(0!==e._count){this._count+=e._count,this._firstFeatureAttributes=e._firstFeatureAttributes,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._statistics.merge(e._statistics);for(const t of e._objectIds.values())this._objectIds.add(t)}}getCentroidX(e){return null==e?this.centroidXWorld:(0,n.IE)(e,this.centroidXWorld)}getCentroidY(e){return null==e?this.centroidYWorld:(0,n.B2)(e,this.centroidYWorld)}getGeometry(e,t){const r=this.gridX*this._worldUnitsPerCell,i=this.gridY*this._worldUnitsPerCell,o=new s.A([4],[r,i,r+this._worldUnitsPerCell,i,r+this._worldUnitsPerCell,i+this._worldUnitsPerCell,r,i+this._worldUnitsPerCell]);if(null!=t){const e=new s.A;return(0,n.Nl)(e,o,!1,!1,"esriGeometryPolygon",t)}return o}getCentroid(e){const t=new s.A([],[this.centroidXWorld,this.centroidYWorld]);if(null!=e){const r=new s.A;return(0,n.Nl)(r,t,!1,!1,"esriGeometryPoint",e)}return t}getGeometricCentroid(e,t){const r=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,i=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,o=new s.A([],[r,i]);if(null!=t){const e=new s.A;return(0,n.Nl)(e,o,!1,!1,"esriGeometryPoint",t)}return o}getAttributes(){const e={aggregateId:this.id};for(const t of this._statistics.values())e[t.field.name]=t.value;return null!=this._firstFeatureAttributes?{...e,...this._firstFeatureAttributes}:e}}},76213:(e,t,r)=>{r.d(t,{C2:()=>o,CQ:()=>n,DY:()=>s,GR:()=>p,Gh:()=>u,MZ:()=>_,TB:()=>f,U5:()=>a,_M:()=>l,cp:()=>g,eG:()=>i,fq:()=>d,hM:()=>c,ie:()=>h});const n=512,s=29,i=24,o=4,a=6,u=1.05,l=3,h=3,c=4,_=1,d=10,f=256,p=32,g=512},92029:(e,t,r)=>{r.d(t,{o:()=>o});var n=r(69397),s=r(50115);const i=Math.PI/180;class o{static create(e){return new o(e.map(e=>function(e){switch(e.statisticType){case"min":return new u(e);case"max":return new l(e);case"avg":return new c(e);case"avg_angle":return new _(e);case"sum":case"count":return new h(e);case"mode":return new d(e)}}(e)))}constructor(e){this._statistics=e}static get estimatedMemory(){return n.qK+4*n.qK}values(){return this._statistics.values()}insert(e,t){for(const r of this._statistics)r.insert(e,t)}merge(e){for(let t=0;t<this._statistics.length;t++){const r=this._statistics[t],n=e._statistics[t];if(r.field.name!==n.field.name)throw new Error("InternalError: Tried to merge incompatible statistics");r.merge(n)}}clone(){return new o(this._statistics.map(e=>e.clone()))}}class a{constructor(e){this.field=e}insert(e,t){if(!this.field.computed)return;const r=this.field.computed.read(e,t);(0,s.rZ)(r)||this._insertValue(r)}}class u extends a{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(e){this.value=Math.min(this.value,e)}merge(e){this.value=Math.min(this.value,e.value)}clone(){const e=new u(this.field);return e.value=this.value,e}}class l extends a{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(e){this.value=Math.max(this.value,e)}merge(e){this.value=Math.max(this.value,e.value)}clone(){const e=new l(this.field);return e.value=this.value,e}}class h extends a{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(e){this.value+=e}merge(e){this.value+=e.value}clone(){const e=new h(this.field);return e.value=this.value,e}}class c extends a{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(e){this._total+=e,this._count+=1}merge(e){this._total+=e._total,this._count+=e._count}clone(){const e=new c(this.field);return e._total=this._total,e._count=this._count,e}}class _ extends a{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){const e=this._x/this._count,t=this._y/this._count,r=180/Math.PI;return Math.atan2(t,e)*r}_insertValue(e){this._x=this._x+Math.cos(e*i),this._y=this._y+Math.sin(e*i),this._count+=1}merge(e){this._x+=e._x,this._y+=e._y,this._count+=e._count}clone(){const e=new _(this.field);return e._x=this._x,e._y=this._y,e._count=this._count,e}}class d extends a{constructor(){super(...arguments),this._frequencies=new Map}get value(){let e,t=0;for(const[r,n]of this._frequencies.entries())n>t&&(t=n,e=r);return e}_insertValue(e){const t=this._frequencies.get(e);null!=t?this._frequencies.set(e,t+1):this._frequencies.set(e,1)}merge(e){for(const[t,r]of e._frequencies.entries()){const e=this._frequencies.get(t);null!=e?this._frequencies.set(t,e+r):this._frequencies.set(t,r)}}clone(){const e=new d(this.field);return e._frequencies=new Map(this._frequencies),e}}},97633:(e,t,r)=>{r.d(t,{P:()=>i});var n=r(69397),s=r(73250);class i{constructor(e){this._valid=s.y.create(e),this._data=new Array(e)}get usedMemory(){let e=this._valid.usedMemory;if(this._data.length>0){const t="string"==typeof this._data[0]?64:n.RS;e+=this._data.length*t}return e}has(e){return this._valid.has(e)}set(e,t){this._valid.set(e),this._data[e]=t}get(e){return this._data[e]}}},98453:(e,t,r)=>{r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},98988:(e,t,r)=>{r.r(t),r.d(t,{canProjectWithoutEngine:()=>Z,getTransformation:()=>D,getTransformations:()=>W,initializeProjection:()=>$,isEqualBaseGCS:()=>J,isLoaded:()=>z,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>C,load:()=>N,project:()=>G,projectExtent:()=>ie,projectMany:()=>j,projectMultipoint:()=>H,projectOrLoad:()=>B,projectOrLoadMany:()=>q,projectPoint:()=>K,projectPolygon:()=>ne,projectPolyline:()=>te,projectWithZConversion:()=>U,projectWithoutEngine:()=>V,requiresLoad:()=>R,test:()=>X,tryProjectWithZConversion:()=>L,unload:()=>Y});var n=r(49186),s=r(74887),i=r(62788),o=r(95488),a=r(51850),u=r(21276),l=r(73941),h=r(5443),c=r(48526),_=r(83290),d=r(86738),f=r(39829),p=r(82799),g=r(16930),m=r(9762),y=r(37539);function b(e,t,r,n,s,i){return w[0]=e,w[1]=t,w[2]=r,(0,m.projectBuffer)(w,n,0,s,i,0)}const w=(0,a.vt)();let x=0;class I{static fromGE(e){const t=new I;return t._wkt=e.wkt,t._wkid=e.wkid,t._isInverse=e.isInverse,t}constructor(e){this.uid=x++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=x++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=x++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=x++}getInverse(){const e=new I;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class v{static cacheKey(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}static fromGE(e){const t=new v;let r="";for(const n of e.steps){const e=I.fromGE(n);t.steps.push(e),r+=e.uid.toString()+","}return t._cachedProjection={},t._gtlistentry=null,t._chain=r,t}constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e?.steps)for(const t of e.steps)t instanceof I?this.steps.push(t):this.steps.push(new I({wkid:t.wkid,wkt:t.wkt,isInverse:t.isInverse}))}getInverse(){const e=new v;e.steps=[];for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}getGTListEntry(){let e="";for(const t of this.steps)e+=t.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,t,r){this._cachedProjection[v.cacheKey(e,t)]=r}getCachedGeTransformation(e,t){let r="";for(const e of this.steps)r+=e.uid.toString()+",";r!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=r);const n=this._cachedProjection[v.cacheKey(e,t)];return void 0===n?null:n}}var T=r(21325),M=r(62815);let F=null,S=null,k=null,A={};const P=new o.I;function z(){return!!F&&(0,_.i)()}function O(){return!!z()||((0,i.gc)(P),N(),!1)}function C(e,t){return!e||!t||Z(e,t)||O()}function R(e,t){return!Z(e,t)&&!z()}function N(e){return null==k&&(k=Promise.all([(0,_.l)(),r.e(9930).then(r.bind(r,49930)).then(e=>e.g),r.e(2731).then(r.bind(r,12731))])),k.then(([,t,{hydratedAdapter:r}])=>{(0,s.Te)(e),S=r,F=t.default,F._enableProjection(_.p),P.notify()})}function G(e,t,r=null,n=null){return Array.isArray(e)?0===e.length?[]:((0,u.H)(e),j(S,e,e[0].spatialReference,t,r,n)):((0,u.f)(e),j(S,[e],e.spatialReference,t,r,n)[0])}function j(e,t,r,n,s=null,i=null){if(null==r||null==n)return t;if(Z(r,n,s))return t.map(e=>V(e,r,n));if(null==s&&(0,l.jA)(r))return t.map(e=>V(e,r,g.A.WGS84)).map(e=>L(e,n));if(null==s&&(0,l.jA)(n))return t.map(e=>L(e,g.A.WGS84)).map(e=>V(e,g.A.WGS84,n));if(null==s){const e=v.cacheKey(r,n);void 0!==A[e]?s=A[e]:(null==(s=D(r,n,void 0))&&(s=new v),A[e]=s)}if(null==F||null==e)throw new E;return null!=i?F._project(e,t,r,n,s,i):F._project(e,t,r,n,s)}function B(e,t){const r=q([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function q(e,t){if(!z())for(const r of e)if(null!=r&&!(0,T.aI)(r.spatialReference,t)&&(0,T.fn)(r.spatialReference)&&(0,T.fn)(t)&&!Z(r.spatialReference,t))return(0,i.gc)(P),{pending:N(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,T.aI)(e.spatialReference,t)?e:(0,T.fn)(e.spatialReference)&&(0,T.fn)(t)?L(e,t):null)}}function D(e,t,r=null){if(null==e||null==t)return null;if(null==F||null==S)throw new E;const n=F._getTransformation(S,e,t,r,r?.spatialReference);return null!==n?v.fromGE(n):null}function W(e,t,r=null){if(null==F||null==S)throw new E;const n=F._getTransformationBySuitability(S,e,t,r,r?.spatialReference);if(null!==n){const e=[];for(const t of n)e.push(v.fromGE(t));return e}return[]}class E extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function Y(){F=null,S=null,k=null,A={}}const X={get loadPromise(){return k}};function L(e,t){try{const r=G(e,t);if(null==r)return null;"xmin"in e&&"xmin"in r&&(r.zmin=e.zmin,r.zmax=e.zmax);const n=(0,M.N)(r.type,e.spatialReference,t);return null!=n&&n(r),r}catch(e){if(!(e instanceof E))throw e;return null}}async function U(e,t,r){const n=e.spatialReference;return null!=n&&null!=t&&await $(n,t,null,r),L(e,t)}function Z(e,t,r){return!r&&(!!(0,T.aI)(e,t)||(0,T.fn)(e)&&(0,T.fn)(t)&&!!(0,y.jd)(e,t))}function J(e,t){if((0,T.aI)(e,t))return!0;if(!(0,T.fn)(e)||!(0,T.fn)(t))return!1;const r=(0,T.oT)(e)||(0,T.K8)(e)||(0,T.x1)(e),n=(0,T.oT)(t)||(0,T.K8)(t)||(0,T.x1)(t);return r&&n}async function $(e,t,r,n){if(z())return(0,s.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,geographicTransformation:s}of e)if(t&&r&&!Z(t,r,s))return N(n)}else if(e&&t&&!Z(e,t,r))return N(n);return(0,s.NO)(n)}function V(e,t,r){return e?"x"in e?Q(e,t,new d.A,r,0):"xmin"in e?oe(e,t,new h.A,r,0):"rings"in e?se(e,t,new f.A,r,0):"paths"in e?re(e,t,new p.A,r,0):"points"in e?ee(e,t,new c.A,r,0):null:null}function K(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=Q(e,e.spatialReference,t,r,n)}function Q(e,t,r,n,s){ue[0]=e.x,ue[1]=e.y;const i=e.z;return ue[2]=void 0!==i?i:s,(0,m.projectBuffer)(ue,t,0,ue,n,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=n,void 0!==i||(0,l.xP)(n)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function H(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ee(e,e.spatialReference,t,r,n)}function ee(e,t,r,n,s){const{points:i,hasZ:o,hasM:a}=e,u=[],h=i.length,c=[];for(const e of i)c.push(e[0],e[1],o?e[2]:s);if(!(0,m.projectBuffer)(c,t,0,c,n,0,h))return null;const _=o||(0,l.xP)(n);for(let e=0;e<h;++e){const t=3*e,r=c[t],n=c[t+1];_&&a?u.push([r,n,c[t+2],i[e][3]]):_?u.push([r,n,c[t+2]]):a?u.push([r,n,i[e][2]]):u.push([r,n])}return r.points=u,r.spatialReference=n,r.hasZ=o,r.hasM=a,r}function te(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=re(e,e.spatialReference,t,r,n)}function re(e,t,r,n,s){const{paths:i,hasZ:o,hasM:a}=e,u=[];if(!ae(i,o??!1,a??!1,t,u,n,s))return null;const h=o||(0,l.xP)(n);return r.paths=u,r.spatialReference=n,r.hasZ=h,r.hasM=a,r}function ne(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=se(e,e.spatialReference,t,r,n)}function se(e,t,r,n,s){const{rings:i,hasZ:o,hasM:a}=e,u=[];if(!ae(i,o??!1,a??!1,t,u,n,s))return null;const h=o||(0,l.xP)(n);return r.rings=u,r.spatialReference=n,r.hasZ=h,r.hasM=a,r}function ie(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=oe(e,e.spatialReference,t,r,n)}function oe(e,t,r,n,s){const{xmin:i,ymin:o,xmax:a,ymax:u,hasZ:h,hasM:c}=e;if(!b(i,o,h?e.zmin:s,t,ue,n))return null;const _=h||(0,l.xP)(n);return r.xmin=ue[0],r.ymin=ue[1],_&&(r.zmin=ue[2]),b(a,u,h?e.zmax:s,t,ue,n)?(r.xmax=ue[0],r.ymax=ue[1],_&&(r.zmax=ue[2]),c&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function ae(e,t,r,n,s,i,o=0){const a=new Array;for(const r of e)for(const e of r)a.push(e[0],e[1],t?e[2]:o);if(!(0,m.projectBuffer)(a,n,0,a,i,0))return!1;let u=0;s.length=0;const h=t||(0,l.xP)(i);for(const t of e){const e=new Array;for(const n of t)h&&r?e.push([a[u++],a[u++],a[u++],n[3]]):h?e.push([a[u++],a[u++],a[u++]]):r?(e.push([a[u++],a[u++],n[2]]),u++):(e.push([a[u++],a[u++]]),u++);s.push(e)}return!0}const ue=(0,a.vt)()},99996:(e,t,r)=>{r.d(t,{Y:()=>z});var n=r(66131),s=r(44208),i=r(69397),o=r(44729),a=r(15032),u=r(36745),l=r(70328),h=r(65864),c=r(32011),_=r(62577),d=r(27647),f=r(90708),p=r(43334),g=r(92722),m=r(98623),y=r(97633);const b=(0,s.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],w=b[0],x=b[1],I=b[2],v=b[3],T=(0,s.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],M=T[0],F=T[1],S=T[2],k=(0,s.A)("featurelayer-simplify-mobile-factor")??2,A=(0,s.A)("esri-mobile"),P=4294967295;class z{constructor(e){this.metadata=e,this.type="FeatureSetReader",this._overrides=null,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}getAreaSimplificationThreshold(e,t){let r=1;const n=A?k:1;t>4e6?r=S*n:t>1e6?r=F*n:t>5e5?r=M*n:t>1e5&&(r=n);let s=0;return e>4e3?s=v*r:e>2e3?s=I*r:e>100?s=x:e>15&&(s=w),s}getBounds(e){!function(e,t){if(!(e.length>t))for(;e.length<=t;)e.push(0)}(this._boundsBuffer,4*this.getIndex()+4);const t=this.getBoundsXMin();if(t===P||!isFinite(t))return!1;if(0===this.getBoundsXMin()){const t=this.readGeometryWorldSpace();if(t?.isPoint&&0===t.coords[0]&&0===t.coords[1])return(0,l.BI)(e,0,0,0,0),!0;if(!t)return this.setBoundsXMin(P),!1;let r=1/0,n=1/0,s=-1/0,i=-1/0;return t.forEachVertex((e,t)=>{r=Math.min(r,e),n=Math.min(n,t),s=Math.max(s,e),i=Math.max(i,t)}),this.setBoundsXMin(r),this.setBoundsYMin(n),this.setBoundsXMax(s),this.setBoundsYMax(i),(0,l.BI)(e,r,n,s,i),!0}const r=this.getBoundsXMin(),n=this.getBoundsYMin(),s=this.getBoundsXMax(),i=this.getBoundsYMax();return(0,l.BI)(e,r,n,s,i),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(e){this._boundsBuffer[4*this.getIndex()]=e}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(e){this._boundsBuffer[4*this.getIndex()+1]=e}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(e){this._boundsBuffer[4*this.getIndex()+2]=e}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(e){this._boundsBuffer[4*this.getIndex()+3]=e}readAttributeAsTimestamp(e){const t=this.readAttribute(e);return"string"==typeof t?new Date(t).getTime():"number"==typeof t||null==t?t:null}readAttribute(e,t=!1){const r=this._readAttribute(e,t);if(void 0!==r)return r;for(const r of this._joined){r.setIndex(this.getIndex());const n=r._readAttribute(e,t);if(void 0!==n)return n}}readAttributes(){const e=this._readAttributes();for(const t of this._joined){t.setIndex(this.getIndex());const r=t._readAttributes();for(const t of Object.keys(r))e[t]=r[t]}return e}joinAttributes(e){this._joined.push(e)}registerOverrides(e){this._overrides=e}withoutOverrides(){const e=this.copy();return e._overrides=null,e}readOptimizedFeatureWorldSpace(){const e=this.readGeometryWorldSpace(),t=this.readAttributes(),r=this.readCentroidWorldSpace();return new p.Om(e,t,r,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){const e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyFeatureWorldSpace(){const e=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){const e=this.readGeometryForDisplay();return(0,f.zv)(e,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){const e=this._readX(),t=this.getInTransform();return null==t?e:e*t.scale[0]+t.translate[0]}readYWorldSpace(){const e=this._readY(),t=this.getInTransform();return null==t?e:t.translate[1]-e*t.scale[1]}readGeometryForDisplay(){const e=this._readGeometryDeltaDecoded(!0);if(!e){const e=this._createDeltaQuantizedGeometryFromServerCentroid();return e?e.deltaDecode():null}return e}readGeometryForDisplayTransformed(e){let t=this.readGeometryForDisplay();if(t&&"esriGeometryPolyline"===this.metadata.geometryType&&(t=(0,f.kz)(new g.A,t,this.hasZ,this.hasM,this.metadata.geometryType,e.scale[0])),t&&(t=(0,f.hK)(t,e,this.metadata.geometryType,this.hasZ,this.hasM)),!t){const t=this.readCentroidForDisplay();if(!t)return null;const r=(0,_.IE)(e,t.coords[0]),n=(0,_.B2)(e,t.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(r,n).deltaDecode()}return t}readGeometryWorldSpace(){let e=this._readGeometry();if(e||(e=this._createDeltaQuantizedGeometryFromServerCentroid()),!e)return null;const t=e.clone(),r=this.getInTransform();return null!=r&&(0,f.Ch)(t,t,this.hasZ,this.hasM,r),t}readCentroidForDisplay(){const e=this.readGeometryForDisplay();return e?this._computeDisplayCentroid(e):this._readServerCentroid()}readCentroidWorldSpace(){const e=this.readGeometryForDisplay(),t=e?this._computeDisplayCentroid(e):this._readServerCentroid();if(!t)return null;const r=t.clone(),n=this.getInTransform();return null!=n&&(0,f.Ch)(r,r,this.hasZ,this.hasM,n),r}setCache(e){let t=this._caches.get(e);null==t&&(t=new y.P(this.getSize()),this._caches.set(e,t)),this._activeCache=t}setCachedValue(e){this._activeCache.set(this.getIndex(),e)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}get underlyingMemory(){let e=0;e+=(0,i.Qf)(this._boundsBuffer);for(const t of this._caches.values())e+=t.usedMemory;return e}_readGeometryDeltaDecoded(e){const t=this._readGeometry(e);return"esriGeometryPoint"!==this.geometryType&&t&&this.getInTransform()?t.deltaDecode():t}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this.fields.has(e)||this._joined.some(t=>t.hasField(e))}geometry(){const e=this.readGeometryWorldSpace(),t=(0,f.zv)(e,this.geometryType,this.hasZ,this.hasM),r=(0,h.rS)(t);if(r){if(!this.metadata.outSpatialReference)throw new Error("InternalError: Expected spatial reference to be defined");r.spatialReference=this.metadata.outSpatialReference}return r}autocastArcadeDate(e,t){return t&&t instanceof Date?this.isUnknownDateTimeField(e)?n.lY.unknownDateJSToArcadeDate(t):n.lY.dateJSAndZoneToArcadeDate(t,this.contextTimeZone??m.qU):t}isUnknownDateTimeField(e){return this.metadata.fieldsIndex.getTimeZone(e)===m.L5}field(e){let t=this.fields.get(e);if(t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(this.readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return a.k.fromReader(this.readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(this.readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,this.readAttribute(e,!0));default:return this.readAttribute(e,!1)}for(const r of this._joined)if(r.setIndex(this.getIndex()),t=r.fields.get(e),t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(r._readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return a.k.fromReader(r._readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(r._readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,r._readAttribute(e,!0));default:return this.readAttribute(e,!1)}throw new Error(`Field ${e} does not exist`)}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(e=>e.name)}castToText(e=!1){if(!e)return JSON.stringify(this.readLegacyFeatureForDisplay());const t=this.readLegacyFeatureForDisplay();if(!t)return JSON.stringify(null);const r={geometry:t.geometry,attributes:{...t.attributes}};for(const e in r.attributes){const t=r.attributes[e];t instanceof Date&&(r.attributes[e]=t.getTime())}return JSON.stringify(r)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(e=null){return{attributes:this._readAttributes(),geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}_getExists(){if(this._overrides){const e=this.getObjectId();return!this._overrides.hasOverride(e)}return!0}_computeDisplayCentroid(e){if(null==this.getInTransform())return(0,d.Q)(new g.A,e,this.hasM,this.hasZ);const t=u.z.fromOptimized(e,this.geometryType);t.yFactor*=-1;const r=(0,c.d)(t);return r?(r[1]*=-1,new g.A([],r)):null}copyInto(e){e._joined=this._joined,e._overrides=this._overrides,e._objectIdToIndex=this._objectIdToIndex,e._boundsBuffer=this._boundsBuffer,e._activeCache=this._activeCache,e._caches=this._caches,e._contextTimeZone=this._contextTimeZone}_readLegacyGeometryWorldSpace(){const e=this.readGeometryWorldSpace();return(0,f.zv)(e,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){const e=this._readServerCentroid();if(!e)return null;const[t,r]=e.coords;return this._createDeltaQuantizedExtrudedGeometry(t,r)}_createDeltaQuantizedExtrudedGeometry(e,t){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(e,t):this._createDeltaQuantizedExtrudedQuad(e,t)}_createDeltaQuantizedExtrudedQuad(e,t){return new g.A([5],[e-1,t,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(e,t){return new g.A([2],[e-1,t+1,1,-1])}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6730,8256],{4146:(t,e,r)=>{r.d(e,{A:()=>M});var i=r(31635),n=r(78888),s=r(49186),o=r(65529),a=r(4902),l=r(92474),u=r(53966),c=r(74887),h=r(84952),p=r(10107),d=(r(44208),r(87811),r(40608)),f=r(5443),g=r(16930),y=r(92602),m=r(64272);let v=0,M=class extends((0,o.Zt)((0,a.sA)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(e)}catch(t){const r=e?.portalItem,i=r?.id||"unset",n=r?.portal?.url||y.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",t),t}}(t)}initialize(){this.when().catch(t=>{(0,c.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})})}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"groundLayers"in t&&t.groundLayers.includes(e)?t.groundLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(t,e){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,n.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,p.MZ)({type:String})],M.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"effectiveVisible",null),(0,i.Cg)([(0,p.MZ)({type:f.A})],M.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"hasAttributionData",null),(0,i.Cg)([(0,p.MZ)({type:String,clonable:!1})],M.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],M.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],M.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],M.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],M.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],M.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],M.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],M.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],M.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:g.A})],M.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],M.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],M.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)()],M.prototype,"url",void 0),(0,i.Cg)([(0,p.MZ)({type:m.T})],M.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],M.prototype,"visible",void 0),M=(0,i.Cg)([(0,d.$)("esri.layers.Layer")],M)},4902:(t,e,r)=>{r.d(e,{PH:()=>a,sA:()=>o});var i=r(31635),n=r(40608);let s=0;const o=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return r=(0,i.Cg)([(0,n.$)("esri.core.Identifiable")],r),r},a=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return r=(0,i.Cg)([(0,n.$)("esri.core.Identifiable.NumericIdentifiable")],r),r};o(class{})},8303:(t,e,r)=>{r.d(e,{A:()=>A});var i=r(31635),n=r(92602),s=r(70333),o=r(78888),a=r(60999),l=r(49186),u=r(53966),c=r(97768),h=r(74887),p=r(84952),d=r(10107),f=(r(44208),r(87811),r(36005)),g=r(40608),y=r(43937),m=r(77548),v=r(20655),M=r(80812),b=r(41318),w=r(10407);const A=t=>{const e=t;let A=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new M.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,h.Te)(e),await i({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,h.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,h.QP)(t),!0)))}async setUserPrivileges(t,e){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(t){(0,h.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const i=!s.id?.findCredential(this.url),n=t===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let o,a;if(n)o=r.portal.url;else try{o=await(0,m.wI)(this.url,e)}catch(t){(0,h.QP)(t)}if(!o||!(0,p.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;a=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,h.QP)(t)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(n?await r.reload():(r=new M.default({id:t,portal:{url:o}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,i)}catch(t){(0,h.QP)(t)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(t,e){const r=(0,w.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,h.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?s.id?.findCredential(this.url):null;if(!e)return!0;const r=x.credential===e?x.user:await this._fetchEditingUser(t);return x.credential=e,x.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;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,p.S8)(n.restUrl)===(0,p.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=t?t.signal:null,c=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,p.ut)(i.restUrl,r.restUrl)?(e.messages&&e.messages.push(new l.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(t,{...e,layer:this})}};return(0,i.Cg)([(0,d.MZ)({type:M.default})],A.prototype,"portalItem",null),(0,i.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,i.Cg)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,i.Cg)([(0,d.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,i.Cg)([(0,g.$)("esri.layers.mixins.PortalLayer")],A),A},x={credential:null,user:null}},36475:(t,e,r)=>{r.r(e),r.d(e,{default:()=>M});var i=r(31635),n=r(78888),s=r(49186),o=r(92071),a=r(74887),l=r(10107),u=(r(44208),r(53966),r(87811),r(40608)),c=r(5443),h=r(4146),p=r(52136),d=r(69208),f=r(16131),g=r(8303),y=r(10873),m=r(88546);let v=class extends((0,f.q)((0,g.A)((0,o.P)((0,d.d)((0,p.p)(h.A)))))){constructor(t){super(t),this.operationalLayerType="GaussianSplatLayer",this.type="gaussian-splat",this.rootTilesetJSON=null,this.fullExtent=new c.A(-180,-90,180,90,this.spatialReference)}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=>{throw new s.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service"})}},t)}catch(t){(0,a.QP)(t)}if(this.url){const t=(0,n.A)(this.url,{query:{...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t=>{this.rootTilesetJSON=t.data,this.fullExtent=(0,m.u)(this.rootTilesetJSON),this.spatialReference=this.fullExtent.spatialReference},t=>{(0,a.QP)(t)});await t}}set elevationInfo(t){this._set("elevationInfo",t)}};(0,i.Cg)([(0,l.MZ)({json:{read:!1}})],v.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({type:["GaussianSplatLayer"],json:{read:!1}})],v.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1}})],v.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:c.A})],v.prototype,"fullExtent",void 0),(0,i.Cg)([(0,l.MZ)(y.Yj)],v.prototype,"elevationInfo",null),v=(0,i.Cg)([(0,u.$)("esri.layers.GaussianSplatLayer")],v);const M=v},38954:(t,e,r)=>{r.d(e,{A:()=>f,B:()=>d,C:()=>c,D:()=>h,E:()=>L,F:()=>j,H:()=>$,a:()=>Z,b:()=>m,c:()=>o,d:()=>u,e:()=>_,f:()=>l,g:()=>y,h:()=>I,i:()=>a,j:()=>v,k:()=>b,l:()=>s,m:()=>S,n:()=>x,o:()=>O,q:()=>U,r:()=>A,s:()=>M,t:()=>E,u:()=>w,v:()=>C,w:()=>p,x:()=>R,y:()=>q,z:()=>g});var i=r(51850),n=r(34304);function s(t){const e=t[0],r=t[1],i=t[2];return Math.sqrt(e*e+r*r+i*i)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,r,i){return t[0]=e,t[1]=r,t[2]=i,t}function l(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function u(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function h(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function p(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 f(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function g(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function y(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function m(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t[2]=e[2]+r[2]*i,t}function v(t,e){const r=e[0]-t[0],i=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+i*i+n*n)}function M(t,e){const r=e[0]-t[0],i=e[1]-t[1],n=e[2]-t[2];return r*r+i*i+n*n}function b(t){const e=t[0],r=t[1],i=t[2];return e*e+r*r+i*i}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function x(t,e){const r=e[0],i=e[1],n=e[2];let s=r*r+i*i+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,r){const i=e[0],n=e[1],s=e[2],o=r[0],a=r[1],l=r[2];return t[0]=n*l-s*a,t[1]=s*o-i*l,t[2]=i*a-n*o,t}function S(t,e,r,i){const n=e[0],s=e[1],o=e[2];return t[0]=n+i*(r[0]-n),t[1]=s+i*(r[1]-s),t[2]=o+i*(r[2]-o),t}function E(t,e,r){const i=e[0],n=e[1],s=e[2];return t[0]=r[0]*i+r[4]*n+r[8]*s+r[12],t[1]=r[1]*i+r[5]*n+r[9]*s+r[13],t[2]=r[2]*i+r[6]*n+r[10]*s+r[14],t}function O(t,e,r){const i=e[0],n=e[1],s=e[2];return t[0]=i*r[0]+n*r[3]+s*r[6],t[1]=i*r[1]+n*r[4]+s*r[7],t[2]=i*r[2]+n*r[5]+s*r[8],t}function C(t,e,r){const i=r[0],n=r[1],s=r[2],o=r[3],a=e[0],l=e[1],u=e[2],c=n*u-s*l,h=s*a-i*u,p=i*l-n*a,d=n*p-s*h,f=s*c-i*p,g=i*h-n*c,y=2*o;return t[0]=a+c*y+2*d,t[1]=l+h*y+2*f,t[2]=u+p*y+2*g,t}const P=(0,i.vt)(),T=(0,i.vt)();function U(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e,r){const i=r[0]-e[0],n=r[1]-e[1],s=r[2]-e[2];let o=i*i+n*n+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=i*o,t[1]=n*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const Z=u,D=c,N=h,j=v,R=M,$=s,q=b;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(t,e){x(P,t),x(T,e);const r=_(P,T);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,i,n,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,h=3*l*o,p=l*s;return t[0]=e[0]*u+r[0]*c+i[0]*h+n[0]*p,t[1]=e[1]*u+r[1]*c+i[1]*h+n[1]*p,t[2]=e[2]*u+r[2]*c+i[2]*h+n[2]*p,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,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:o,cross:I,crossAndNormalize:function(t,e,r){const i=e[0],n=e[1],s=e[2],o=r[0],a=r[1],l=r[2],u=n*l-s*a,c=s*o-i*l,h=i*a-n*o,p=Math.sqrt(u*u+c*c+h*h);return t[0]=u/p,t[1]=c/p,t[2]=h/p,t},direction:L,dist:j,distance:v,div:N,divide:h,dot:_,equals:function(t,e){if(t===e)return!0;const r=t[0],i=t[1],s=t[2],o=e[0],a=e[1],l=e[2],u=(0,n.FD)();return Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))},exactEquals:U,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,r,i,n,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return t[0]=e[0]*a+r[0]*l+i[0]*u+n[0]*c,t[1]=e[1]*a+r[1]*l+i[1]*u+n[1]*c,t[2]=e[2]*a+r[2]*l+i[2]*u+n[2]*c,t},inverse:A,len:$,length:s,lerp:S,max:g,min:f,mul:D,multiply:c,negate:w,normalize:x,random:function(t,e=1){const r=n.Ov,i=2*r()*Math.PI,s=2*r()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(i)*o,t[1]=Math.sin(i)*o,t[2]=s*e,t},rotateX:function(t,e,r,i){const n=[],s=[];return n[0]=e[0]-r[0],n[1]=e[1]-r[1],n[2]=e[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),s[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,e,r,i){const n=[],s=[];return n[0]=e[0]-r[0],n[1]=e[1]-r[1],n[2]=e[2]-r[2],s[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),s[1]=n[1],s[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,e,r,i){const n=[],s=[];return n[0]=e[0]-r[0],n[1]=e[1]-r[1],n[2]=e[2]-r[2],s[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),s[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),s[2]=n[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[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:y,scaleAndAdd:m,set:a,sign:d,sqrDist:R,sqrLen:q,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:Z,subtract:u,transformMat3:O,transformMat4:E,transformQuat:C},Symbol.toStringTag,{value:"Module"}))},52136:(t,e,r)=>{r.d(e,{p:()=>o});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const o=t=>{const e=t;let r=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,s.$)("esri.layers.mixins.APIKeyMixin")],r),r}},64272:(t,e,r)=>{r.d(e,{T:()=>p});var i,n=r(31635),s=r(25482),o=r(88930),a=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),c=r(43937),h=r(98623);let p=class extends s.o{static{i=this}static get allTime(){return d}static get empty(){return f}static fromArray(t){return new i({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=t.start?.getTime()??t.start,n=t.end?.getTime()??t.end;return e===i&&r===n}expandTo(t,e=h.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,t,e));let n=this.end;if(n){const r=(0,o.lL)(n,t,e);n=n.getTime()===r.getTime()?r:(0,o.S1)(r,1,t,e)}return new i({start:r,end:n})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let o,a;return n>=e&&n<=r?o=n:e>=n&&e<=s&&(o=e),r>=n&&r<=s?a=r:s>=e&&s<=r&&(a=s),null==o||null==a||isNaN(o)||isNaN(a)?i.empty:new i({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(t,e,r=h.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:a}=this;return null!=s&&(n.start=(0,o.S1)(s,t,e,r)),null!=a&&(n.end=(0,o.S1)(a,t,e,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:r})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,n.Cg)([(0,l.w)("end")],p.prototype,"readEnd",null),(0,n.Cg)([(0,c.K)("end")],p.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,n.Cg)([(0,l.w)("start")],p.prototype,"readStart",null),(0,n.Cg)([(0,c.K)("start")],p.prototype,"writeStart",null),p=i=(0,n.Cg)([(0,u.$)("esri.time.TimeExtent")],p);const d=new p,f=new p({start:void 0,end:void 0})},69208:(t,e,r)=>{r.d(e,{d:()=>o});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(40608));const o=t=>{const e=t;let r=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],r),r}},69540:(t,e,r)=>{r.d(e,{OU:()=>c,Pw:()=>h});var i=r(31635),n=r(65008),s=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(40608);const u=Symbol("ClonableMixin"),c=t=>{var e;const r=t;let n=class extends r{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,i=e.store,n={},l=new Map;for(const e in r){const o=r[e],a=i?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[e];let h=null;if("function"==typeof u)h=u(c,t);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,t),null!=c&&null==h)continue;0===a?l.set(e,h):n[e]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,r]of l)t.set(e,r,0)}return u}};return n=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],n),n},h=c(n.A)},78553:(t,e,r)=>{r.d(e,{D:()=>s,p:()=>n});var i=r(56507);function n(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},88546:(t,e,r)=>{r.d(e,{u:()=>d});var i=r(34727),n=r(38954),s=r(51850),o=r(73941),a=r(5443),l=r(16930),u=r(9762);function c(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 h=7645211,p={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function d(t){let e=new l.A({wkid:4326,vcsWkid:115700}),r=t.root?.boundingVolume,d=!1,f=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 l.A(t.extensions?.ESRI_crs),r=t.root?.extensions?.ESRI_crs?.boundingVolume,f=t.root?.transform,d=!0;else if(!r)return new a.A(-180,-90,180,90,e);if(r.box){const t=r?.box;if(t[3]>h&&t[7]>h&&t[11]>h)return new a.A({...p,sr:e})}const g=(0,s.vt)();if(!d&&r.region&&c(r.region,6)){const t=r.region,n=(0,i.KJ)(t[0]),s=(0,i.KJ)(t[1]),o=t[4],l=(0,i.KJ)(t[2]),u=(0,i.KJ)(t[3]),c=t[5];return new a.A({xmin:n,ymin:s,zmin:o,xmax:l,ymax:u,zmax:c,spatialReference:e})}if(r.sphere&&c(r.sphere,4)){const t=r.sphere,i=(0,s.fA)(t[0],t[1],t[2]),h=t[3]/Math.sqrt(3),p=(0,s.vt)();(0,n.d)(p,i,(0,s.fA)(h,h,h));const y=(0,s.vt)();if((0,n.f)(y,i,(0,s.fA)(h,h,h)),f&&c(f,16)){const t=f;(0,n.t)(g,p,t),(0,n.c)(p,g),(0,n.t)(g,y,t),(0,n.c)(y,g)}d||((0,u.projectBuffer)(p,o.Ro,0,p,l.A.WGS84,0),(0,u.projectBuffer)(y,o.Ro,0,y,l.A.WGS84,0));const m=(0,s.vt)(),v=(0,s.vt)();return(0,n.A)(m,p,y),(0,n.z)(v,p,y),new a.A({xmin:m[0],ymin:m[1],zmin:m[2],xmax:v[0],ymax:v[1],zmax:v[2],spatialReference:e})}if(r.box&&c(r.box,12)){const t=r.box,i=(0,s.fA)(t[0],t[1],t[2]),h=(0,s.fA)(t[3],t[4],t[5]),p=(0,s.fA)(t[6],t[7],t[8]),g=(0,s.fA)(t[9],t[10],t[11]),y=[];for(let t=0;t<8;++t)y.push((0,s.vt)());if((0,n.f)(y[0],i,h),(0,n.f)(y[0],y[0],p),(0,n.f)(y[0],y[0],g),(0,n.a)(y[1],i,h),(0,n.f)(y[1],y[1],p),(0,n.f)(y[1],y[1],g),(0,n.f)(y[2],i,h),(0,n.a)(y[2],y[2],p),(0,n.f)(y[2],y[2],g),(0,n.a)(y[3],i,h),(0,n.a)(y[3],y[3],p),(0,n.f)(y[3],y[3],g),(0,n.f)(y[4],i,h),(0,n.f)(y[4],y[4],p),(0,n.a)(y[4],y[4],g),(0,n.a)(y[5],i,h),(0,n.f)(y[5],y[5],p),(0,n.a)(y[5],y[5],g),(0,n.f)(y[6],i,h),(0,n.a)(y[6],y[6],p),(0,n.a)(y[6],y[6],g),(0,n.a)(y[7],i,h),(0,n.a)(y[7],y[7],p),(0,n.a)(y[7],y[7],g),f&&c(f,16)){const t=f;for(let e=0;e<8;++e)(0,n.t)(y[e],y[e],t)}const m=(0,s.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),v=(0,s.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)d||(0,u.projectBuffer)(y[t],o.Ro,0,y[t],l.A.WGS84,0),(0,n.A)(v,v,y[t]),(0,n.z)(m,m,y[t]);return new a.A({xmin:v[0],ymin:v[1],zmin:v[2],xmax:m[0],ymax:m[1],zmax:m[2],spatialReference:e})}return new a.A(-180,-90,180,90,e)}},92071:(t,e,r)=>{r.d(e,{P:()=>v,L:()=>M});var i=r(31635),n=r(65008),s=r(76953),o=r(4718),a=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new l,r=this._originStores[0];r&&r.forEach((t,r)=>{e.set(r,(0,o.o8)(t),0)});for(let r=2;r<a.AU;r++){const i=this._originStores[r];i&&i.forEach((i,n)=>{t&&t.has(n)||e.set(n,(0,o.o8)(i),r)})}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=7){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=7){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r?.get(t),n=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),n!==i}originOf(t){return this._propertyOriginMap.get(t)||0}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var u=r(45917),c=r(88620),h=r(40608);const p=t=>{const e=t;let r=class extends e{constructor(...t){super(...t);const e=(0,c.oY)(this),r=e.store,i=new l;e.store=i,(0,s.k)(e,r,i)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const r=d(this),i=(0,a.aB)(e);if("string"==typeof t)return r.get(t,i);const n={};return t.forEach(t=>{n[t]=r.get(t,i)}),n}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return d(this).originOf(t)}revert(t,e){const r=d(this),i=(0,a.aB)(e),n=(0,c.oY)(this);let s;s="string"==typeof t?"*"===t?r.keys(i):[t]:t,s.forEach(t=>{n.invalidate(t),r.revert(t,i),n.commit(t)})}};return r=(0,i.Cg)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],r),r};function d(t){return(0,c.oY)(t).store}p(n.A);var f=r(16649),g=r(49422);const y=t=>{const e=t;let r=class extends e{constructor(...t){super(...t)}clear(t,e="user"){(0,c.oY)(this).clearOrigin(t,(0,a.aB)(e))}write(t,e){return(0,g.M)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,c.oY)(this).setAtOrigin(t,e,(0,a.aB)(r))}removeOrigin(t){const e=m(this),r=(0,a.aB)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),7)}updateOrigin(t,e){const r=m(this),i=(0,a.aB)(e),n=(0,f.Jt)(this,t);for(let e=i+1;e<a.AU;++e)r.delete(t,e);r.set(t,n,i)}toJSON(t){return this.write({},t)}};return r=(0,i.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function m(t){return(0,c.oY)(t).store}const v=t=>{const e=y(p(t));let r=class extends e{constructor(...t){super(...t)}};return r=(0,i.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport")],r),r},M=v(n.A)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6131],{10873:(e,r,t)=>{t.d(r,{C1:()=>C,Fm:()=>h,Ih:()=>S,M6:()=>d,OZ:()=>c,PY:()=>y,Qo:()=>b,Yj:()=>m,fV:()=>g,hG:()=>I,hn:()=>L,id:()=>f,kF:()=>u,ke:()=>v,zQ:()=>T});var i=t(89317),n=t(5443),a=t(16930),s=t(97159),o=t(88625),l=t(43440),p=t(78553);const y={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:i.K}}},d={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,r)=>!r.disablePopup},write:{enabled:!0,writer(e,r,t){r[t]=!e}}}},u={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:i.K}}},c={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:s.w}}},g={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:i.K}}},m={value:null,type:o.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:i.K}}};function b(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const w={write:{enabled:!0,layerContainerTypes:i.K},read:!0},v={type:Number,json:{origins:{"web-document":w,"portal-item":{write:{layerContainerTypes:i.K}}}}},S={...v,json:{...v.json,origins:{"web-document":{...w,write:{enabled:!0,layerContainerTypes:i.K,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,r,t)=>t&&"service"!==t.origin||!r.drawingInfo||void 0===r.drawingInfo.transparency?r.layerDefinition?.drawingInfo&&void 0!==r.layerDefinition.drawingInfo.transparency?(0,p.D)(r.layerDefinition.drawingInfo.transparency):void 0:(0,p.D)(r.drawingInfo.transparency)}}},h={type:n.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,r)=>{const t=n.A.fromJSON(e);return null!=r.spatialReference&&"object"==typeof r.spatialReference&&(t.spatialReference=a.A.fromJSON(r.spatialReference)),t}}}},read:!1}},f={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},L={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.minScale",write:{layerContainerTypes:i.K}}},I={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.maxScale",write:{layerContainerTypes:i.K}}},C={json:{write:{ignoreOrigin:!0,layerContainerTypes:i.K},origins:{"web-map":{read:!1,write:!1}}}},T={type:l.A,json:{name:"attributeTableInfo",write:!0}}},16131:(e,r,t)=>{t.d(r,{q:()=>h});var i=t(31635),n=t(49186),a=t(84952),s=t(10107),o=t(56507),l=(t(44208),t(87811),t(36005)),p=t(40608),y=t(43937),d=t(89317),u=t(45917),c=t(49422);const g={ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,ArcGISVideoLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CatalogLayer:!0,CSV:!0,GeoJSON:!0,GeoRSS:!0,GroupLayer:!0,KML:!0,KnowledgeGraphLayer:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WCS:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},m={ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,OpenStreetMap:!0,VectorTileLayer:!0,WCS:!0,WMS:!0,WebTiledLayer:!0},b={ArcGISFeatureLayer:!0,SubtypeGroupTable:!0},w={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,CatalogLayer:!0,CSV:!0,GeoJSON:!0,GroupLayer:!0,IntegratedMesh3DTilesLayer:!0,Object3DTilesLayer:!0,IntegratedMeshLayer:!0,KML:!0,LineOfSightLayer:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,PointCloudLayer:!0,RasterDataLayer:!0,VectorTileLayer:!0,ViewshedLayer:!0,Voxel:!0,WCS:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-scene/basemap-base-layers":{ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WCS:!0,WMS:!0,WebTiledLayer:!0},"web-scene/basemap-ground-layers":{IntegratedMesh3DTilesLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-scene/tables":{ArcGISFeatureLayer:!0},"web-map/operational-layers":g,"web-map/basemap-base-layers":m,"web-map/tables":b,"link-chart/operational-layers":{...g,LinkChartLayer:!0},"link-chart/basemap-base-layers":m,"link-chart/tables":b,"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,BuildingSceneLayer:!0,IntegratedMesh3DTilesLayer:!0,IntegratedMeshLayer:!0,MediaLayer:!0,OrientedImageryLayer:!0,PointCloudLayer:!0,SubtypeGroupLayer:!0,WCS:!0},"portal-item/tables":{ArcGISFeatureLayer:!0,SubtypeGroupTable:!0}};var v=t(10873),S=t(64272);const h=e=>{const r=e;let t=class extends r{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,r,t){return"Group Layer"===t?.portalItem?.type?void 0:e}writeListMode(e,r,t,i){(i&&"ground"===i.layerContainerType||e&&(0,c.R)(this,t,{},i))&&(r[t]=e)}writeOperationalLayerType(e,r,t){e&&(r[t]=e)}writeTitle(e,r){r.title=e??"Layer"}readVisibilityTimeExtent(e){return e?S.T.fromArray(e):null}writeVisibilityTimeExtent(e,r,t,i){e&&"tables"!==i.layerContainerType&&(e.isEmpty?i?.messages&&i.messages.push(new n.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):r[t]=e.toArray())}read(e,r){r&&(r.layer=this),(0,u.t)(this,e,r=>super.read(e,r),r)}write(e,r){if(!this.persistenceEnabled&&!r?.ignorePersistenceEnabled)return null;if(r?.origin){const e=`${r.origin}/${r.layerContainerType||"operational-layers"}`,t=w[e];let i=!!t?.[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(i=!1),"ArcGISDimensionLayer"===this.operationalLayerType&&"web-map/operational-layers"===e&&(i=!1),!i)return r.messages?.push(new n.A("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const t=super.write(e,{...r,layer:this}),i=!!r&&!!r.messages&&!!r.messages.filter(e=>e instanceof n.A&&"web-document-write:property-required"===e.name).length;return(0,a.w8)(t?.url)?(r?.messages?.push(new n.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:t}beforeSave(){}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i.Cg)([(0,l.w)("id",["id"])],t.prototype,"readId",null),(0,i.Cg)([(0,s.MZ)(v.C1)],t.prototype,"listMode",void 0),(0,i.Cg)([(0,y.K)("listMode")],t.prototype,"writeListMode",null),(0,i.Cg)([(0,s.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:d.K,isRequired:!0}}}}})],t.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,y.K)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i.Cg)([(0,s.MZ)(v.ke)],t.prototype,"opacity",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,readOnly:!1})],t.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i.Cg)([(0,y.K)("title"),(0,y.K)(["web-scene"],"title")],t.prototype,"writeTitle",null),(0,i.Cg)([(0,s.MZ)({type:S.T,json:{origins:{"web-scene":{write:{layerContainerTypes:d.K}}}}})],t.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,l.w)("visibilityTimeExtent")],t.prototype,"readVisibilityTimeExtent",null),(0,i.Cg)([(0,y.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[o.jz,o.Uv]]}})],t.prototype,"writeVisibilityTimeExtent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:d.K}}})],t.prototype,"visible",void 0),t=(0,i.Cg)([(0,p.$)("esri.layers.mixins.OperationalLayer")],t),t}},16271:(e,r,t)=>{t.d(r,{Ao:()=>a,KQ:()=>s});var i=t(4576),n=t(31756);function a(e){return 1/(n.j[e]||1)}const s=function(){const e=Object.keys(n.j);return(0,i.TF)(e,"decimal-degrees"),e.sort(),e}()},31756:(e,r,t)=>{t.d(r,{j:()=>a});var i=t(83047),n=t(79258);const a={unknown:1,inches:(0,i.oU)(1,"meters","inches"),feet:(0,i.oU)(1,"meters","feet"),"us-feet":(0,i.oU)(1,"meters","us-feet"),yards:(0,i.oU)(1,"meters","yards"),miles:(0,i.oU)(1,"meters","miles"),"nautical-miles":(0,i.oU)(1,"meters","nautical-miles"),millimeters:(0,i.oU)(1,"meters","millimeters"),centimeters:(0,i.oU)(1,"meters","centimeters"),decimeters:(0,i.oU)(1,"meters","decimeters"),meters:(0,i.oU)(1,"meters","meters"),kilometers:(0,i.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.vl)(1,"meters",n.$O.radius)}},43440:(e,r,t)=>{t.d(r,{A:()=>M});var i=t(31635),n=t(25482),a=t(4718),s=t(10107),o=(t(44208),t(53966),t(40608)),l=t(69540);t(87811);let p=class extends n.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,i.Cg)([(0,s.MZ)()],p.prototype,"type",void 0),p=(0,i.Cg)([(0,o.$)("esri.tables.elements.AttributeTableElement")],p);const y=p;var d=t(56507);let u=class extends((0,l.OU)(y)){constructor(e){super(e),this.displayType="auto",this.type="attachment"}clone(){return super.clone()}};(0,i.Cg)([(0,s.MZ)({type:["auto"],json:{write:!0}})],u.prototype,"displayType",void 0),(0,i.Cg)([(0,s.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$)("esri.tables.elements.AttributeTableAttachmentElement")],u);const c=u;let g=class extends((0,l.OU)(y)){constructor(e){super(e),this.description=null,this.fieldName=null,this.label=null,this.type="field"}clone(){return super.clone()}};(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1}})],g.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],g.prototype,"fieldName",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1}})],g.prototype,"label",void 0),(0,i.Cg)([(0,s.MZ)({type:["field"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],g.prototype,"type",void 0),g=(0,i.Cg)([(0,o.$)("esri.tables.elements.AttributeTableFieldElement")],g);const m=g;let b=class extends((0,l.OU)(y)){constructor(e){super(e),this.relationshipId=null,this.type="relationship"}clone(){return super.clone()}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{type:d.jz,write:{enabled:!0,isRequired:!0}}})],b.prototype,"relationshipId",void 0),(0,i.Cg)([(0,s.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],b.prototype,"type",void 0),b=(0,i.Cg)([(0,o.$)("esri.tables.elements.AttributeTableRelationshipElement")],b);const w=b,v={base:y,key:"type",typeMap:{attachment:c,field:m,relationship:w}};let S=class extends((0,l.OU)(y)){constructor(e){super(e),this.elements=null,this.type="group"}clone(){return super.clone()}};(0,i.Cg)([(0,s.MZ)({types:[v],json:{name:"attributeTableElements",write:!0}})],S.prototype,"elements",void 0),(0,i.Cg)([(0,s.MZ)({type:["group"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],S.prototype,"type",void 0),S=(0,i.Cg)([(0,o.$)("esri.tables.elements.AttributeTableGroupElement")],S);const h=S;let f=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.field=null,this.order=null}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"field",void 0),(0,i.Cg)([(0,s.MZ)({type:["asc","desc"],json:{write:!0}})],f.prototype,"order",void 0),f=(0,i.Cg)([(0,o.$)("esri.tables.support.FieldOrder")],f);const L=f;var I;const C={typesWithGroup:{base:y,key:"type",typeMap:{attachment:c,field:m,group:h,relationship:w}},typesWithoutGroup:v};let T=I=class extends n.o{constructor(e){super(e),this.elements=null,this.orderByFields=null}clone(){return new I({elements:(0,a.o8)(this.elements),orderByFields:(0,a.o8)(this.orderByFields)})}};(0,i.Cg)([(0,s.MZ)({types:[C.typesWithGroup],json:{name:"attributeTableElements",write:!0}})],T.prototype,"elements",void 0),(0,i.Cg)([(0,s.MZ)({type:[L],json:{write:!0}})],T.prototype,"orderByFields",void 0),T=I=(0,i.Cg)([(0,o.$)("esri.tables.AttributeTableTemplate")],T);const M=T},88625:(e,r,t)=>{t.d(r,{A:()=>S});var i,n=t(31635),a=t(69540),s=t(66552),o=t(25482),l=t(97768),p=t(10107),y=(t(44208),t(53966),t(87811),t(36005)),d=t(40608),u=t(43937),c=t(30524);let g=i=class extends o.o{constructor(e){super(e),this.expression=void 0,this.title=void 0}async collectRequiredFields(e,r){return(0,c.Dx)(e,r,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,n.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0}}})],g.prototype,"expression",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],g.prototype,"title",void 0),g=i=(0,n.Cg)([(0,d.$)("esri.symbols.support.FeatureExpressionInfo")],g);const m=g;var b=t(16271);const w=(0,s.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),v=new s.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let S=class extends((0,a.OU)(o.o)){constructor(e){super(e),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(e,r){return null!=e?e.expression?e:void 0:r.featureExpression&&0===r.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,r,t,i){r[t]=e.write({},i),"0"===e.expression&&(r.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:r}=this;return this._isOverridden("mode")?this._get("mode"):null!=e||r?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,r){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,r):null}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,l.CM)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,n.Cg)([(0,p.MZ)({type:m,json:{write:!0}})],S.prototype,"featureExpressionInfo",void 0),(0,n.Cg)([(0,y.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],S.prototype,"readFeatureExpressionInfo",null),(0,n.Cg)([(0,u.K)("featureExpressionInfo",{featureExpressionInfo:{type:m},"featureExpression.value":{type:[0]}})],S.prototype,"writeFeatureExpressionInfo",null),(0,n.Cg)([(0,p.MZ)({type:w.apiValues,nonNullable:!0,json:{type:w.jsonValues,read:w.read,write:{writer:w.write,isRequired:!0}}})],S.prototype,"mode",null),(0,n.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],S.prototype,"offset",void 0),(0,n.Cg)([(0,p.MZ)({type:b.KQ,json:{type:String,read:v.read,write:v.write}})],S.prototype,"unit",null),S=(0,n.Cg)([(0,d.$)("esri.symbols.support.ElevationInfo")],S)},89317:(e,r,t)=>{t.d(r,{K:()=>i});const i=["operational-layers","basemap-base-layers","basemap-ground-layers","ground"]}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3562],{751:(e,t,r)=>{r.d(t,{CJ:()=>f});var a=r(49186),n=r(4718),i=r(93637),s=r(67124),o=r(77548);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wcs","wms","wmts"]),c=new Set(["integrated-mesh-3dtiles"]),u=new Set(["catalog","csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","knowledge-graph","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","video","web-tile","wcs","wfs","wms","wmts"]),y=new Set([...u,"link-chart"]);function p(e,t){if(t.restrictedWebMapWriting){const r=function(e){switch(e.layerContainerType){case"basemap-base-layers":return l;case"basemap-ground-layers":return c;case"operational-layers":return"link-chart"===e.origin?y:u;default:return null}}(t);return null==r||r.has(e.type)&&!(0,o.Ov)(e)}return!0}function d(e,t){"maxScale"in e&&(t.maxScale=(0,s.B)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,s.B)(e.minScale)??void 0)}function f(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return r?.messages&&r.messages.push(new a.A("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if((0,o.Ov)(e)&&!e.isTable)t=e.resourceInfo;else if(p(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,o.Ov)(e)){const r=(0,i.wc)("featureCollection.layers",t),a=r?.[0]?.layerDefinition;a&&d(e,a)}else"group"!==e.type&&d(e,t)}(e,t),t&&(t.id=e.id,"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,s.B)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,o.Ov)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,n.o8)(t)),t}},8303:(e,t,r)=>{r.d(t,{A:()=>S});var a=r(31635),n=r(92602),i=r(70333),s=r(78888),o=r(60999),l=r(49186),c=r(53966),u=r(97768),y=r(74887),p=r(84952),d=r(10107),f=(r(44208),r(87811),r(36005)),h=r(40608),m=r(43937),g=r(77548),L=r(20655),v=r(80812),b=r(41318),w=r(10407);const S=e=>{const t=e;let S=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.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 v.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:a}=await r.e(1204).then(r.bind(r,41204));return(0,y.Te)(t),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,y.zf)(e)||c.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,y.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:a},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,y.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!i.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,a);let s,o;if(n)s=r.portal.url;else try{s=await(0,g.wI)(this.url,t)}catch(e){(0,y.QP)(e)}if(!s||!(0,p.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(i.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,y.QP)(e)}const l=!0,c=!1,u=!1;if(!o)return{features:{edit:l,fullEdit:c},content:{updateItem:u}};try{if(n?await r.reload():(r=new v.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,a)}catch(e){(0,y.QP)(e)}return{features:{edit:l,fullEdit:c},content:{updateItem:u}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,y.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?i.id?.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=i.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const a=`${r.owningSystemUrl}/sharing/rest`,n=L.A.getDefault();if(n&&n.loaded&&(0,p.S8)(n.restUrl)===(0,p.S8)(a))return n.user;const l=`${a}/community/self`,c=null!=e?e.signal:null,u=await(0,o.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?b.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||L.A.getDefault());return r&&a&&!(0,p.ut)(a.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.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,a.Cg)([(0,d.MZ)({type:v.default})],S.prototype,"portalItem",null),(0,a.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,a.Cg)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,a.Cg)([(0,d.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,a.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,a.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,a.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,a.Cg)([(0,h.$)("esri.layers.mixins.PortalLayer")],S),S},I={credential:null,user:null}},8947:(e,t,r)=>{r.d(t,{L:()=>s});var a=r(60999),n=r(74887),i=r(67076);async function s(e,t,r){const s=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(s&&"unique-value"===s.type&&s.styleOrigin){const o=await(0,a.Ke)(s.populateFromStyle());if((0,n.Te)(r),!1===o.ok){const r=o.error;t?.messages&&t.messages.push(new i.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},22429:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(24183);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,t){const r=this._serviceMetadatas.get(e);if(r)return r;const n=await(0,a.V)(e,t);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:t}=e;if(!t)return null;const{_itemDatas:r}=this;if(r.has(t))return r.get(t);const a=await e.fetchData();return r.set(t,a),a}async fetchCustomParameters(e,t){const r=await this.fetchItemData(e);return r&&"object"==typeof r&&(t?t(r):r.customParameters)||null}}},25036:(e,t,r)=>{r.d(t,{j:()=>s});var a=r(31635),n=r(10107),i=(r(44208),r(53966),r(87811),r(40608));const s=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,a.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,a.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,a.Cg)([(0,n.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,a.Cg)([(0,i.$)("esri.layers.mixins.ScaleRangeLayer")],r),r}},26121:(e,t,r)=>{r.d(t,{ci:()=>s,dL:()=>n});var a=r(49186);async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}r(77548);const i=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function s(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new a.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>new a.A("url:unsupported",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter(({name:e})=>!(i.has(e)||t.includes(e)))),a&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}},38961:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(31635),n=r(7762),i=r(36708),s=r(10107),o=r(40608),l=r(80559);let c=class extends n.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,l.fm)(()=>this._refresh(),i.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 a of t)if(a){if(r(a)){const t=this.indexOf(a,e);t>=0?t!==e&&this.reorder(a,e):this.add(a,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(a);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,a.Cg)([(0,s.MZ)()],c.prototype,"getCollections",void 0),(0,a.Cg)([(0,s.MZ)()],c.prototype,"getChildrenFunction",void 0),(0,a.Cg)([(0,s.MZ)()],c.prototype,"itemFilterFunction",void 0),c=(0,a.Cg)([(0,o.$)("esri.core.CollectionFlattener")],c)},45613:(e,t,r)=>{r.d(t,{fromItem:()=>p,n:()=>d});var a=r(49186),n=r(92009),i=r(23154),s=r(22429),o=r(77548),l=r(4513),c=r(80812),u=r(66964),y=r(10407);async function p(e){let{portalItem:t}=e;!t||t instanceof c.default||(t=new c.default(t));const r=await async function(e){await e.load();const t=new s.v;return async function(e){const t=e.className,r=l.S[t];return{constructor:await r(),properties:e.properties}}(await d(e,t))}(t);return new(0,r.constructor)({portalItem:t,...r.properties})}async function d(e,t){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const t=(0,y.Y)(e,"Map Notes"),r=(0,y.Y)(e,"Markup");if(t||r)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const a=await e.fetchData();return 1===(0,u.XH)(a)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,t){const r=await f(e,t);if("object"==typeof r){const{sourceJSON:e,className:t}=r,a={sourceJSON:e};return null!=r.id&&(a.layerId=r.id),{className:t||"FeatureLayer",properties:a}}return{className:"GroupLayer"}}(e,t);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,t){await e.load();const r=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(r.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(r.includes("tiled imagery"))return{className:"ImageryTileLayer"};const a=await t.fetchItemData(e),n=a?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const i=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)}),s=i.cacheType?.toLowerCase(),o=i.capabilities?.toLowerCase().includes("tilesonly"),l=i.tileInfo?.format?.toLowerCase()??"",c=null==s&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(l);return"map"===s||c||o?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,t);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,t){return await async function(e,t){const{tileInfo:r}=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)});return r}(e,t)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,t);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,t){const r=await f(e,t,async()=>{try{if(!e.url)return[];const{serverUrl:r}=await(0,n.L)(e.url,{sceneLayerItem:e}),a=await t.fetchServiceMetadata(r);return a?.tables??[]}catch{return[]}});if("object"==typeof r){const a={};let n;if(null!=r.id?(a.layerId=r.id,n=`${e.url}/layers/${r.id}`):n=e.url,e.typeKeywords?.length)for(const t of Object.keys(o.XX))if(e.typeKeywords.includes(t))return{className:o.XX[t]};const i=await t.fetchServiceMetadata(n,{customParameters:await t.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:o.XX[i?.layerType]||"SceneLayer",properties:a}}if(!1===r){const r=await t.fetchServiceMetadata(e.url);if("Voxel"===r?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,t);case"Video Service":return async function(e,t){return"object"==typeof await f(e,t)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,t);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new a.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function f(e,t,r){const{url:a,type:n}=e,s="Feature Service"===n;if(!a)return{};if(/\/\d+$/.test(a)){if(s){const r=await t.fetchServiceMetadata(a,{customParameters:await t.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return(0,o.Gh)(e,(0,o.G$)()),{id:r.id,className:(0,i.K)(r.type),sourceJSON:r}}return{}}if("Video Service"===n){const e=await t.fetchServiceMetadata(a);return!((e.layers?.length??0)>1)&&{}}await e.load();let l=await t.fetchItemData(e);if(s){const{data:r,preferredHost:n}=await(0,u.bO)(l,a,t);(0,o.Gh)(e,n);const i=h(r);if("object"==typeof i){const e=(0,u.rc)(r,i.id);i.className=(0,u.K8)(e?.layerType)}return i}if("Scene Service"===n&&(l=await(0,u.nu)(e,l,t)),(0,u.XH)(l)>0)return h(l);const c=await t.fetchServiceMetadata(a);return r&&(c.tables=await r()),h(c)}function h(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},62885:(e,t,r)=>{r.d(t,{H:()=>i,V:()=>n});var a=r(7762);function n(e,t,r=a.A){return t||(t=new r),t===e||t.destroyed||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function i(e){return e}},63074:(e,t,r)=>{r.d(t,{LF:()=>u,dM:()=>y,sU:()=>l});var a=r(31635),n=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(89317),o=r(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},c={read:{reader:o.LF},write:{allowNull:!0,writer:o.M9,layerContainerTypes:s.K}},u={json:{read:!1,write:!1,origins:{"web-map":c,"portal-item":c}}},y=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,a.Cg)([(0,n.MZ)(l)],r.prototype,"blendMode",void 0),(0,a.Cg)([(0,n.MZ)(u)],r.prototype,"effect",void 0),r=(0,a.Cg)([(0,i.$)("esri.layers.mixins.BlendLayer")],r),r}},66964:(e,t,r)=>{r.d(t,{Ju:()=>u,K8:()=>d,XH:()=>y,_r:()=>s,bO:()=>o,l:()=>p,nu:()=>f,pJ:()=>l,rc:()=>c});var a=r(92009),n=r(23154),i=r(77548);function s(e){const t={id:e.id,name:e.name},r=(0,n.K)(e.type);return"FeatureLayer"!==r&&(t.layerType=r),t}async function o(e,t,r){let a;if(null==e?.layers||null==e?.tables){const n=await r.fetchServiceMetadata(t,{customParameters:l(e)?.customParameters});a=(0,i.G$)(),(e=e||{}).layers=e.layers||n?.layers?.map(s),e.tables=e.tables||n?.tables?.map(s)}return{data:e,preferredHost:a}}function l(e){if(!e)return null;const{layers:t,tables:r}=e;return t?.length?t[0]:r?.length?r[0]:null}function c(e,t){return null==t?null:[...e.layers||[],...e.tables||[]].find(e=>e.id===t)}function u(e,t){return[...e.layers||[],...e.tables||[]].filter(({layerType:e})=>e?t.includes(e):t.includes("ArcGISFeatureLayer"))}function y(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function p(e){switch(e){case"catalog":return["CatalogLayer"];case"feature":return["ArcGISFeatureLayer"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function d(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return"FeatureLayer"}async function f(e,t,r){if(!e?.url)return t??{};if(t??={},!t.layers){const a=await r.fetchServiceMetadata(e.url);t.layers=a.layers?.map(s)}const{serverUrl:n,portalItem:i}=await(0,a.L)(e.url,{sceneLayerItem:e,customParameters:l(t)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==n)return t.tables=[],t;if(!t.tables&&i){const e=await i.fetchData().catch(()=>null);if(e?.tables)t.tables=e.tables.map(s);else{const a=await r.fetchServiceMetadata(n,{customParameters:l(e)?.customParameters}).catch(()=>null);t.tables=a?.tables?.map(s)}}if(t.tables)for(const e of t.tables)e.url=`${n}/${e.id}`;return t}},69540:(e,t,r)=>{r.d(t,{OU:()=>u,Pw:()=>y});var a=r(31635),n=r(65008),i=(r(44208),r(4718)),s=(r(53966),r(97768)),o=r(88620),l=r(40608);const c=Symbol("ClonableMixin"),u=e=>{var t;const r=e;let n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,o.oY)(this);(0,s.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,a=t.store,n={},l=new Map;for(const t in r){const s=r[t],o=a?.originOf(t),c=s.clonable;if(s.readOnly||!1===c||7!==o&&0!==o&&5!==o&&4!==o)continue;const u=this[t];let y=null;if("function"==typeof c)y=c(u,e);else if("reference"===c)y=u;else if(y=(0,i.TU)(u,e),null!=u&&null==y)continue;0===o?l.set(t,y):n[t]=y}const c=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,o.oY)(c)?.store;if(e)for(const[t,r]of l)e.set(t,r,0)}return c}};return n=(0,a.Cg)([(0,l.$)("esri.core.Clonable")],n),n},y=u(n.A)},75356:(e,t,r)=>{r.d(t,{N:()=>C,populateOperationalLayers:()=>u});var a=r(7762),n=(r(44208),r(22429)),i=r(4513),s=r(80812);function o(e,t){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===t}var l=r(45613),c=r(8947);async function u(e,t,r){if(!t)return;const a=t.map(e=>async function(e,t){return async function(e,t,r){const a=new e;return a.read(t,r.context),"group"===a.type&&("GroupLayer"===t.layerType?await C(a,t,r):A(t)?function(e,t,r){t.itemId&&(e.portalItem=new s.default({id:t.itemId,portal:r?.portal}),e.when(()=>{const a=a=>{const n=a.layerId;T(a,e,t,n,r);const i=t.featureCollection?.layers?.[n];i&&a.read(i,r)};e.layers?.forEach(a),e.tables?.forEach(a)}))}(a,t,r.context):I(t)&&await async function(e,t,r){const a=i.S.FeatureLayer,n=await a(),s=t.featureCollection,o=s?.showLegend,l=s?.layers?.map((a,i)=>{const s=new n;s.read(a,r);const l={...r,ignoreDefaults:!0};return T(s,e,t,i,l),null!=o&&s.read({showLegend:o},l),s});e.layers.addMany(l??[])}(a,t,r.context)),await(0,c.L)(a,r.context),a}(await S(e,t),e,t)}(e,r)),n=await Promise.allSettled(a);for(const t of n)"rejected"===t.status||t.value&&e.add(t.value)}const y={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",Object3DTilesLayer:"UnsupportedLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},p={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISFeatureLayer:"FeatureLayer"},f={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},h={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},m={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},g={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},L={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},v={...m,LinkChartLayer:"LinkChartLayer"},b={...g},w={...L};async function S(e,t){const r=t.context,a=M(r);let c=e.layerType||e.type;!c&&t?.defaultLayerType&&(c=t.defaultLayerType);const u=a[c];let y=u?i.S[u]:i.S.UnknownLayer;if(A(e)){const t=r?.portal;if(e.itemId){const r=new s.default({id:e.itemId,portal:t});await r.load();const a=(await(0,l.n)(r,new n.v)).className||"UnknownLayer";y=i.S[a]}}else"ArcGISFeatureLayer"===c?function(e){return o(e,"notes")}(e)||function(e){return o(e,"markup")}(e)?y=i.S.MapNotesLayer:function(e){return o(e,"route")}(e)?y=i.S.RouteLayer:I(e)&&(y=i.S.GroupLayer):e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?y=i.S.WMTSLayer:"WFS"===c&&"2.0.0"!==e.wfsInfo?.version&&(y=i.S.UnsupportedLayer);return y()}function I(e){return"ArcGISFeatureLayer"===e.layerType&&!A(e)&&(e.featureCollection?.layers?.length??0)>1}function A(e){return"Feature Collection"===e.type}function M(e){let t;switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":t=f;break;case"basemap-ground-layers":t=h;break;case"ground":t=p;break;case"tables":t=d;break;default:t=y}break;case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":t=w;break;case"tables":t=b;break;default:t=v}break;default:switch(e.layerContainerType){case"basemap-base-layers":t=L;break;case"tables":t=g;break;default:t=m}}return t}async function C(e,t,r){const n=new a.A,i=u(n,Array.isArray(t.layers)?t.layers:[],r);try{try{if(await i,"group"===e.type)return e.layers.addMany(n),e}catch(t){e.destroy();for(const e of n)e.destroy();throw t}}catch(e){throw e}}function T(e,t,r,a,n){e.read({id:`${t.id}-sublayer-${a}`,visibility:r.visibleLayers?.includes(a)??!0},n)}},76369:(e,t,r)=>{r.d(t,{LF:()=>S,M9:()=>I});var a=r(49186),n=r(93637),i=r(40876),s=r(59247),o=r(27865);class l extends SyntaxError{constructor(e,t,r,a){super(e),this.expected=t,this.found=r,this.location=a,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let r=null;const a=e.find(e=>e.source===this.location.source);a&&(r=a.text.split(/\r\n|\n|\r/g));const n=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,s=this.location.source+":"+i.line+":"+i.column;if(r){const e=this.location.end,a="".padEnd(i.line.toString().length," "),o=r[n.line-1],l=(n.line===e.line?e.column:o.length+1)-n.column||1;t+="\n --\x3e "+s+"\n"+a+" |\n"+i.line+" | "+o+"\n"+a+" | "+"".padEnd(n.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+s}return t}static buildMessage(e,t){function r(e){return e.codePointAt(0).toString(16).toUpperCase()}const a=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function n(e){return a?e.replace(a,e=>"\\u{"+r(e)+"}"):e}function i(e){return n(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}function s(e){return n(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}const o={literal:e=>'"'+i(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return o[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let r=1;r<t.length;r++)t[r-1]!==t[r]&&(t[e]=t[r],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."}}function c(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=u(e);return t&&0!==t.length?t:null}const t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new a.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:u(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,o.mj)(t[e].effects,t[e+1].effects))throw new a.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,o.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function u(e){let t;if(!e)return[];try{t=function(e,t){const r={},a=(t=void 0!==t?t:{}).grammarSource,n={start:we};let i=we;const s="none",o=")",c=",",u="(",y="%",p="px",d="cm",f="mm",h="in",m="pt",g="pc",L="deg",v="rad",b="grad",w="turn",S="#",I=".",A="e",M=/^[ \t\n\r]/,C=/^[a-z\-]/,T=/^[0-9a-fA-F]/,x=/^[+\-]/,G=/^[0-9]/,F=ge("none"),P=he("none",!1),O=he(")",!1),$=he(",",!1),N=me([" ","\t","\n","\r"],!1,!1,!1),E=ge("function"),_=he("(",!1),k=ge("identifier"),U=me([["a","z"],"-"],!1,!1,!1),V=ge("percentage"),R=he("%",!1),W=ge("length"),D=he("px",!1),j=he("cm",!1),H=he("mm",!1),B=he("in",!1),K=he("pt",!1),Z=he("pc",!1),J=ge("angle"),q=he("deg",!1),X=he("rad",!1),z=he("grad",!1),Q=he("turn",!1),Y=ge("number"),ee=ge("color"),te=he("#",!1),re=me([["0","9"],["a","f"],["A","F"]],!1,!1,!1),ae=me(["+","-"],!1,!1,!1),ne=me([["0","9"]],!1,!1,!1),ie=he(".",!1),se=he("e",!1);let oe=0|t.peg$currPos,le=oe;const ce=[{line:1,column:1}];let ue,ye=oe,pe=t.peg$maxFailExpected||[],de=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in n))throw new Error("Can't start parsing from rule \""+t.startRule+'".');i=n[t.startRule]}function fe(){return e.substring(le,oe)}function he(e,t){return{type:"literal",text:e,ignoreCase:t}}function me(e,t,r,a){return{type:"class",parts:e,inverted:t,ignoreCase:r,unicode:a}}function ge(e){return{type:"other",description:e}}function Le(t){let r,a=ce[t];if(a)return a;if(t>=ce.length)r=ce.length-1;else for(r=t;!ce[--r];);for(a=ce[r],a={line:a.line,column:a.column};r<t;)10===e.charCodeAt(r)?(a.line++,a.column=1):a.column++,r++;return ce[t]=a,a}function ve(e,t,r){const n=Le(e),i=Le(t);return{source:a,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:i.line,column:i.column}}}function be(e){oe<ye||(oe>ye&&(ye=oe,pe=[]),pe.push(e))}function we(){let e;return e=Se(),e===r&&(e=function(){let e,t;if(e=[],t=Ie(),t!==r)for(;t!==r;)e.push(t),t=Ie();else e=r;return e}()),e}function Se(){let t,a;return de++,t=oe,Me(),e.substr(oe,4)===s?(a=s,oe+=4):(a=r,0===de&&be(P)),a!==r?(Me(),le=t,t=[]):(oe=t,t=r),de--,t===r&&0===de&&be(F),t}function Ie(){let t,a,n,i;return t=oe,Me(),a=function(){let t,a,n;return de++,t=oe,a=Ce(),a!==r?(40===e.charCodeAt(oe)?(n=u,oe++):(n=r,0===de&&be(_)),n!==r?(le=t,t=a):(oe=t,t=r)):(oe=t,t=r),de--,t===r&&(a=r,0===de&&be(E)),t}(),a!==r?(Me(),n=function(){let t,a,n,i,s,o,l,u;if(t=oe,a=Ae(),a!==r){for(n=[],i=oe,s=Me(),44===e.charCodeAt(oe)?(o=c,oe++):(o=r,0===de&&be($)),o===r&&(o=null),l=Me(),u=Ae(),u!==r?(s=[s,o,l,u],i=s):(oe=i,i=r);i!==r;)n.push(i),i=oe,s=Me(),44===e.charCodeAt(oe)?(o=c,oe++):(o=r,0===de&&be($)),o===r&&(o=null),l=Me(),u=Ae(),u!==r?(s=[s,o,l,u],i=s):(oe=i,i=r);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(a,n)}else oe=t,t=r;return t}(),n===r&&(n=null),Me(),41===e.charCodeAt(oe)?(i=o,oe++):(i=r,0===de&&be(O)),i!==r?(Me(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(a,n)):(oe=t,t=r)):(oe=t,t=r),t}function Ae(){let e,t;return e=oe,t=Te(),t===r&&(t=xe(),t===r&&(t=Ge(),t===r&&(t=function(){let e,t;return de++,e=oe,Me(),t=Pe(),t!==r?(le=e,e=function(e){return{value:e,unit:null}}(t)):(oe=e,e=r),de--,e===r&&0===de&&be(Y),e}()))),t!==r&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===r&&(e=oe,t=Fe(),t!==r&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Me(){let t,a;for(de++,t=[],a=e.charAt(oe),M.test(a)?oe++:(a=r,0===de&&be(N));a!==r;)t.push(a),a=e.charAt(oe),M.test(a)?oe++:(a=r,0===de&&be(N));return de--,t}function Ce(){let t,a,n;if(de++,t=oe,a=[],n=e.charAt(oe),C.test(n)?oe++:(n=r,0===de&&be(U)),n!==r)for(;n!==r;)a.push(n),n=e.charAt(oe),C.test(n)?oe++:(n=r,0===de&&be(U));else a=r;return a!==r&&(le=t,a=fe()),t=a,de--,t===r&&(a=r,0===de&&be(k)),t}function Te(){let t,a,n;return de++,t=oe,Me(),a=Pe(),a!==r?(37===e.charCodeAt(oe)?(n=y,oe++):(n=r,0===de&&be(R)),n!==r?(le=t,t=function(e){return{value:e,unit:"%"}}(a)):(oe=t,t=r)):(oe=t,t=r),de--,t===r&&0===de&&be(V),t}function xe(){let t,a,n;return de++,t=oe,Me(),a=Pe(),a!==r?(e.substr(oe,2)===p?(n=p,oe+=2):(n=r,0===de&&be(D)),n!==r?(le=t,t=function(e){return{value:e,unit:"px"}}(a)):(oe=t,t=r)):(oe=t,t=r),t===r&&(t=oe,Me(),a=Pe(),a!==r?(e.substr(oe,2)===d?(n=d,oe+=2):(n=r,0===de&&be(j)),n!==r?(le=t,t=function(e){return{value:e,unit:"cm"}}(a)):(oe=t,t=r)):(oe=t,t=r),t===r&&(t=oe,Me(),a=Pe(),a!==r?(e.substr(oe,2)===f?(n=f,oe+=2):(n=r,0===de&&be(H)),n!==r?(le=t,t=function(e){return{value:e,unit:"mm"}}(a)):(oe=t,t=r)):(oe=t,t=r),t===r&&(t=oe,Me(),a=Pe(),a!==r?(e.substr(oe,2)===h?(n=h,oe+=2):(n=r,0===de&&be(B)),n!==r?(le=t,t=function(e){return{value:e,unit:"in"}}(a)):(oe=t,t=r)):(oe=t,t=r),t===r&&(t=oe,Me(),a=Pe(),a!==r?(e.substr(oe,2)===m?(n=m,oe+=2):(n=r,0===de&&be(K)),n!==r?(le=t,t=function(e){return{value:e,unit:"pt"}}(a)):(oe=t,t=r)):(oe=t,t=r),t===r&&(t=oe,Me(),a=Pe(),a!==r?(e.substr(oe,2)===g?(n=g,oe+=2):(n=r,0===de&&be(Z)),n!==r?(le=t,t=function(e){return{value:e,unit:"pc"}}(a)):(oe=t,t=r)):(oe=t,t=r)))))),de--,t===r&&0===de&&be(W),t}function Ge(){let t,a,n;return de++,t=oe,a=Pe(),a!==r?(e.substr(oe,3)===L?(n=L,oe+=3):(n=r,0===de&&be(q)),n!==r?(le=t,t=function(e){return{value:e,unit:"deg"}}(a)):(oe=t,t=r)):(oe=t,t=r),t===r&&(t=oe,a=Pe(),a!==r?(e.substr(oe,3)===v?(n=v,oe+=3):(n=r,0===de&&be(X)),n!==r?(le=t,t=function(e){return{value:e,unit:"rad"}}(a)):(oe=t,t=r)):(oe=t,t=r),t===r&&(t=oe,a=Pe(),a!==r?(e.substr(oe,4)===b?(n=b,oe+=4):(n=r,0===de&&be(z)),n!==r?(le=t,t=function(e){return{value:e,unit:"grad"}}(a)):(oe=t,t=r)):(oe=t,t=r),t===r&&(t=oe,a=Pe(),a!==r?(e.substr(oe,4)===w?(n=w,oe+=4):(n=r,0===de&&be(Q)),n!==r?(le=t,t=function(e){return{value:e,unit:"turn"}}(a)):(oe=t,t=r)):(oe=t,t=r)))),de--,t===r&&(a=r,0===de&&be(J)),t}function Fe(){let t,a,n,i;if(de++,t=oe,35===e.charCodeAt(oe)?(a=S,oe++):(a=r,0===de&&be(te)),a!==r){if(n=[],i=e.charAt(oe),T.test(i)?oe++:(i=r,0===de&&be(re)),i!==r)for(;i!==r;)n.push(i),i=e.charAt(oe),T.test(i)?oe++:(i=r,0===de&&be(re));else n=r;n!==r?(le=t,t={type:"hex",value:fe()}):(oe=t,t=r)}else oe=t,t=r;return t===r&&(t=oe,a=Ie(),a!==r&&(le=t,a=function(e){return{type:"function",value:e}}(a)),t=a,t===r&&(t=oe,a=Ce(),a!==r&&(le=t,a={type:"named",value:fe()}),t=a)),de--,t===r&&(a=r,0===de&&be(ee)),t}function Pe(){let t,a,n,i,s,o,l,c;for(t=oe,a=e.charAt(oe),x.test(a)?oe++:(a=r,0===de&&be(ae)),a===r&&(a=null),n=oe,i=[],s=e.charAt(oe),G.test(s)?oe++:(s=r,0===de&&be(ne));s!==r;)i.push(s),s=e.charAt(oe),G.test(s)?oe++:(s=r,0===de&&be(ne));if(46===e.charCodeAt(oe)?(s=I,oe++):(s=r,0===de&&be(ie)),s!==r){if(o=[],l=e.charAt(oe),G.test(l)?oe++:(l=r,0===de&&be(ne)),l!==r)for(;l!==r;)o.push(l),l=e.charAt(oe),G.test(l)?oe++:(l=r,0===de&&be(ne));else o=r;o!==r?(i=[i,s,o],n=i):(oe=n,n=r)}else oe=n,n=r;if(n===r)if(n=[],i=e.charAt(oe),G.test(i)?oe++:(i=r,0===de&&be(ne)),i!==r)for(;i!==r;)n.push(i),i=e.charAt(oe),G.test(i)?oe++:(i=r,0===de&&be(ne));else n=r;if(n!==r){if(i=oe,101===e.charCodeAt(oe)?(s=A,oe++):(s=r,0===de&&be(se)),s!==r){if(o=e.charAt(oe),x.test(o)?oe++:(o=r,0===de&&be(ae)),o===r&&(o=null),l=[],c=e.charAt(oe),G.test(c)?oe++:(c=r,0===de&&be(ne)),c!==r)for(;c!==r;)l.push(c),c=e.charAt(oe),G.test(c)?oe++:(c=r,0===de&&be(ne));else l=r;l!==r?(s=[s,o,l],i=s):(oe=i,i=r)}else oe=i,i=r;i===r&&(i=null),le=t,t=parseFloat(fe())}else oe=t,t=r;return t}ue=i();const Oe=ue!==r&&oe===e.length;function $e(){throw ue!==r&&oe<e.length&&be({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(pe,ye<e.length?function(t=oe){const r=e.codePointAt(t);return void 0===r?"":String.fromCodePoint(r)}(ye):null,ye<e.length?ve(ye,ye+1):ve(ye,ye))}return t.peg$library?{peg$result:ue,peg$currPos:oe,peg$FAILED:r,peg$maxFailExpected:pe,peg$maxFailPos:ye,peg$success:Oe,peg$throw:Oe?void 0:$e}:Oe?ue:void $e()}(e)}catch(t){throw new a.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return y(e.parameters,1),1===e.parameters.length&&(t=m(e.parameters[0])),new s.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return y(e.parameters,1),1===e.parameters.length&&(t=m(e.parameters[0])),new s.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return y(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=f[e.unit]))throw new a.A("effect:type-error",`Expected <angle>, Actual: ${p(e)}`,{term:e})}(e),e.value*f[e.unit]||0}(e.parameters[0])),new s.Nd(t)}(e);case"blur":return function(e){let t=0;return y(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0]),d(t,e.parameters[0])),new s.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new a.A("effect:type-error","Accepts only one color",{});r=L(n)}else{const e=g(n);if(Object.isFrozen(t))throw new a.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&d(e,n)}if(t.length<2||t.length>3)throw new a.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new s.$b(t[0],t[1],t[2]||0,r||v("black"))}(e);case"bloom":return function(e){let t=1,r=0,a=0;return y(e.parameters,3),e.parameters[0]&&(t=m(e.parameters[0])),e.parameters[1]&&(r=g(e.parameters[1]),d(r,e.parameters[1])),e.parameters[2]&&(a=m(e.parameters[2])),new s.bv(t,r,a)}(e)}}catch(t){throw t.details.filter=e,t}throw new a.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function y(e,t){if(e.length>t)throw new a.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function p(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in h)return"<length>";if(e.unit in f)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function d(e,t){if(e<0)throw new a.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const f={deg:1,grad:.9,rad:180/Math.PI,turn:360},h={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function m(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new a.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${p(e)}`,{term:e})}(e);const t=e.value;return d(t,e),"%"===e.unit?.01*t:t}function g(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=h[e.unit]))throw new a.A("effect:type-error",`Expected <length>, Actual: ${p(e)}`,{term:e})}(e),e.value*h[e.unit]||0}function L(e){switch(e.colorType){case"hex":return(0,i.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(y(e.parameters,4),b.test(e.name))return[m(e.parameters[0]),m(e.parameters[1]),m(e.parameters[2]),e.parameters[3]?m(e.parameters[3]):1];if(w.test(e.name))return(0,i.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new a.A("effect:type-error",`Expected <double>, Actual: ${p(e)}`,{term:e})}(e),d(e.value,e),e.value}(e.parameters[0]),m(e.parameters[1]),m(e.parameters[2]),e.parameters[3]?m(e.parameters[3]):1);throw new a.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,i.V6)(e))throw new a.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,i.c4)(e)}const b=/^rgba?/i,w=/^hsla?/i;function S(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:A(r.value)});return t}return A(e)}(e)}catch(e){r?.messages?.push(e)}return null}function I(e,t,r,a){try{const a=function(e){const t=c(e);return t?(0,o.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,n.sM)(r,a,t)}catch(e){a.messages&&a.messages.push(e)}}function A(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[M(r,"amount")];break;case"blur":e=[M(r,"radius","pt")];break;case"hue-rotate":e=[M(r,"angle","deg")];break;case"drop-shadow":e=[M(r,"xoffset","pt"),M(r,"yoffset","pt"),M(r,"blurRadius","pt"),C(r,"color")];break;case"bloom":e=[M(r,"strength"),M(r,"radius","pt"),M(r,"threshold")]}const a=`${r.type}(${e.filter(Boolean).join(" ")})`;c(a),t.push(a)}return t.join(" ")}function M(e,t,r){if(null==e[t])throw new a.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function C(e,t){if(null==e[t])throw new a.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},78553:(e,t,r)=>{r.d(t,{D:()=>i,p:()=>n});var a=r(56507);function n(e){const t=(0,a.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function i(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},81583:(e,t,r)=>{r.d(t,{L:()=>o,g:()=>s});var a=r(60999),n=r(7762),i=r(92474);async function s(e,t){return await e.load(),o(e,t)}async function o(e,t){const r=[],s=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?s(...t):n.A.isCollection(t)?t.forEach(e=>s(e)):(0,i.Zm)(t)&&r.push(t))};t(s);let o=null;if(await(0,a.Tj)(r,async e=>{const t=await(0,a.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||o||(o=t)}),o)throw o.error;return e}},85989:(e,t,r)=>{r.r(t),r.d(t,{default:()=>N});var a=r(31635),n=r(38961),i=r(81583),s=r(53966),o=r(92071),l=r(74887),c=r(36708),u=r(10107),y=(r(44208),r(87811),r(88620)),p=r(36005),d=r(40608),f=r(43937),h=r(4146),m=r(63074),g=r(16131),L=r(8303),v=r(25036),b=r(75356),w=r(4513),S=r(80812),I=r(7762),A=r(62885);function M(e,t,r){let a,n;if(e)for(let i=0,s=e.length;i<s;i++){if(a=e.at(i),a?.[t]===r)return a;if("group"===a?.type&&(n=M(a.layers,t,r),n))return n}}const C=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this.layers=new I.A;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||s.A.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",e=>{if(e.item===this)return e.preventDefault(),void s.A.getLogger(this).error("#add()","Cannot add layer to itself.");(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item)}),this.layers.on("after-add",e=>t(e.item)),this.layers.on("after-remove",e=>r(e.item))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,A.V)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof h.A){const a=e;a.parent===this?this.reorder(a,t):r.add(a,t)}else(0,l.$X)(e)?e.then(e=>{this.destroyed||this.add(e,t)}):s.A.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let a=r.getNextIndex(t);e.slice().forEach(e=>{e.parent!==this?(r.add(e,a),a+=1):this.reorder(e,a)})}findLayerById(e){return M(this.layers,"id",e)}findLayerByUid(e){return M(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,a.Cg)([(0,u.MZ)()],r.prototype,"layers",null),r=(0,a.Cg)([(0,d.$)("esri.support.LayersMixin")],r),r},T=new Set(["feature","subtype-group"]);function x(e,t,r){if(e)for(let a=0,n=e.length;a<n;a++){const n=e.at(a);if(n[t]===r)return n;if("group"===n?.type){const e=x(n.tables,t,r);if(e)return e}}}const G=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this.tables=new I.A,this.addHandles([this.tables.on("after-add",e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,T.has(t.type)||s.A.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)}),this.tables.on("after-remove",e=>{e.item.parent=null})])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,A.V)(e,this._get("tables")))}findTableById(e){return x(this.tables,"id",e)}findTableByUid(e){return x(this.tables,"uid",e)}};return(0,a.Cg)([(0,u.MZ)()],r.prototype,"tables",null),r=(0,a.Cg)([(0,d.$)("esri.support.TablesMixin")],r),r},F=Symbol("WebScene");var P=r(26121),O=r(751);let $=class extends((0,m.dM)((0,v.j)((0,g.q)((0,L.A)(G(C((0,o.P)(h.A)))))))){constructor(e){var t;super(e),this.allLayers=new n.A({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new n.A({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group",this._debouncedSaveOperations=(0,l.sg)(async(e,t,a)=>{const{save:n,saveAs:i}=await r.e(2958).then(r.bind(r,32958));switch(e){case 0:return n(this,t);case 1:return i(this,a,t)}})}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,c.wB)(()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&F in e},e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,c.on)(()=>this.tables,"before-add",e=>{e.preventDefault(),s.A.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")}),t))},c.pc),(0,c.wB)(()=>this.visible,this._onVisibilityChange.bind(this),c.OH)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}get sourceIsPortalItem(){return this.portalItem&&7===this.originIdOf("portalItem")}_writeLayers(e,t,r,a){const n=[];if(!e)return n;e.forEach(e=>{const t=(0,O.CJ)(e,a.webmap?a.webmap.getLayerJSONFromResourceInfo(e):null,a);t?.layerType&&n.push(t)}),t.layers=n}set portalItem(e){this._set("portalItem",e)}readPortalItem(e,t,r){const{itemId:a,layerType:n}=t;if("GroupLayer"===n&&a)return new S.default({id:a,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}async beforeSave(){return(0,P.dL)(this)}load(e){const t=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Group Layer","Scene Service","Video Service"],layerModuleTypeMap:w.S,populateGroupLayer:b.N},e).catch(e=>{if((0,l.QP)(e),this.sourceIsPortalItem)throw e});return this.addResolvingPromise(t),Promise.resolve(this)}async loadAll(){return(0,i.g)(this,e=>{e(this.layers,this.tables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer read to Grouplayer: uid=${e.uid}`):this.addHandles((0,c.wB)(()=>e.visible,t=>this._onChildVisibilityChange(e,t),c.OH),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach(t=>{t!==e&&(t.visible=!1)})}_enforceVisibility(e,t){if(!(0,y.oY)(this).initialized)return;const r=this.layers;let a=r.find(e=>e.visible);switch(e){case"exclusive":r.length&&!a&&(a=r.at(0),a.visible=!0),this._turnOffOtherLayers(a);break;case"inherited":r.forEach(e=>{e.visible=t})}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach(t=>{t.visible=e})}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some(e=>e.visible)}};(0,a.Cg)([(0,u.MZ)({readOnly:!0,dependsOn:[]})],$.prototype,"allLayers",void 0),(0,a.Cg)([(0,u.MZ)({readOnly:!0})],$.prototype,"allTables",void 0),(0,a.Cg)([(0,u.MZ)({json:{read:!0,write:!0}})],$.prototype,"blendMode",void 0),(0,a.Cg)([(0,u.MZ)()],$.prototype,"fullExtent",void 0),(0,a.Cg)([(0,u.MZ)({readOnly:!0})],$.prototype,"sourceIsPortalItem",null),(0,a.Cg)([(0,u.MZ)({json:{read:!1,write:{ignoreOrigin:!0}}})],$.prototype,"layers",void 0),(0,a.Cg)([(0,f.K)("layers")],$.prototype,"_writeLayers",null),(0,a.Cg)([(0,u.MZ)({type:["GroupLayer"]})],$.prototype,"operationalLayerType",void 0),(0,a.Cg)([(0,u.MZ)({json:{origins:{"web-map":{read:!1,write:{overridePolicy(e,t,r){return{enabled:"Group Layer"===e?.type&&r?.initiator!==this}}}},"web-scene":{read:!1,write:!1}}}})],$.prototype,"portalItem",null),(0,a.Cg)([(0,p.w)("web-map","portalItem",["itemId"])],$.prototype,"readPortalItem",null),(0,a.Cg)([(0,f.K)("web-map","portalItem",{itemId:{type:String}})],$.prototype,"writePortalItem",null),(0,a.Cg)([(0,u.MZ)()],$.prototype,"spatialReference",void 0),(0,a.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0,value:"group"})],$.prototype,"type",void 0),(0,a.Cg)([(0,u.MZ)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],$.prototype,"visibilityMode",null),$=(0,a.Cg)([(0,d.$)("esri.layers.GroupLayer")],$);const N=$}}]);