@arcgis/core 5.1.0-next.50 → 5.1.0-next.52

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 (262) hide show
  1. package/applications/Components/imageryUtils.d.ts +6 -0
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/001492854799c35b53bb.js +1 -0
  4. package/assets/esri/core/workers/chunks/004f991251f09b36fb09.js +1 -0
  5. package/assets/esri/core/workers/chunks/027d733a99f50cadcf22.js +1 -0
  6. package/assets/esri/core/workers/chunks/03d85a706669aaf24d49.js +1 -0
  7. package/assets/esri/core/workers/chunks/0450133e81bce4b48b84.js +1 -0
  8. package/assets/esri/core/workers/chunks/07e791530677f7e70f32.js +30 -0
  9. package/assets/esri/core/workers/chunks/085778ecd39f46324a6b.js +1 -0
  10. package/assets/esri/core/workers/chunks/08dce0019b52042b01fa.js +1 -0
  11. package/assets/esri/core/workers/chunks/0d8294982853308225da.js +1 -0
  12. package/assets/esri/core/workers/chunks/156aecac067213642aae.js +1 -0
  13. package/assets/esri/core/workers/chunks/{942e4d69b140bc2f97c9.js → 15a45e26964c2eb381a6.js} +1 -1
  14. package/assets/esri/core/workers/chunks/184e9147f7a2f0ae5915.js +1 -0
  15. package/assets/esri/core/workers/chunks/19f59a2a97c33ff92650.js +1 -0
  16. package/assets/esri/core/workers/chunks/{54420b66fd53d6e19ba5.js → 278eecd729bed2832702.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{74814678942a47fd48fb.js → 28ac3a75130fe2b57ac7.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{a3174b23aabcef2fa98c.js → 29c91b5c9ddcea85f39a.js} +1 -1
  19. package/assets/esri/core/workers/chunks/2b7d020367cb4ebb3c3d.js +1 -0
  20. package/assets/esri/core/workers/chunks/30654845ca1334f1c206.js +1 -0
  21. package/assets/esri/core/workers/chunks/3104b10770903c265626.js +1 -0
  22. package/assets/esri/core/workers/chunks/33f00633131581e06328.js +1 -0
  23. package/assets/esri/core/workers/chunks/{32a51ce8e1a362115c89.js → 354b309c8225336bc1e5.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{569e4479707bc6881d97.js → 35dbe1eeb6932b03aea2.js} +1 -1
  25. package/assets/esri/core/workers/chunks/386435341e949f5573b4.js +2 -0
  26. package/assets/esri/core/workers/chunks/3874362bf7d43adc41bb.js +1 -0
  27. package/assets/esri/core/workers/chunks/38dc1c4b8721efd4a165.js +1 -0
  28. package/assets/esri/core/workers/chunks/39f3bea123f20c816ab2.js +1 -0
  29. package/assets/esri/core/workers/chunks/3fa5f102b6f77c523a76.js +1 -0
  30. package/assets/esri/core/workers/chunks/{a422cfe1e2afe0722acd.js → 3fcc8c455af56ae89030.js} +1 -1
  31. package/assets/esri/core/workers/chunks/42f3fdad1728433b3510.js +1 -0
  32. package/assets/esri/core/workers/chunks/436941ec88439667022e.js +1 -0
  33. package/assets/esri/core/workers/chunks/{25946077568ab14c7bfc.js → 440f76c397a813b0dcf9.js} +1 -1
  34. package/assets/esri/core/workers/chunks/4812482f28f7205b0938.js +1 -0
  35. package/assets/esri/core/workers/chunks/5317cbef0aac29761575.js +1 -0
  36. package/assets/esri/core/workers/chunks/54a9e17d6c0fef6a9146.js +1 -0
  37. package/assets/esri/core/workers/chunks/55985c9c48b8e1d1c634.js +1 -0
  38. package/assets/esri/core/workers/chunks/55edd712c6d2d044e550.js +1 -0
  39. package/assets/esri/core/workers/chunks/5a573fa1012092328b88.js +1 -0
  40. package/assets/esri/core/workers/chunks/5f06a57b4f7d7de16bbf.js +1 -0
  41. package/assets/esri/core/workers/chunks/60ad54e5707d4414d8b9.js +1 -0
  42. package/assets/esri/core/workers/chunks/{55070344f08ef0ed2a30.js → 60cee9a44929decd2474.js} +1 -1
  43. package/assets/esri/core/workers/chunks/63b9e4a7dad358605c38.js +1 -0
  44. package/assets/esri/core/workers/chunks/{d0adf059085ddf7151dd.js → 64845b1f53eca9db1229.js} +1 -1
  45. package/assets/esri/core/workers/chunks/66d4cbb35d0c290150bf.js +1 -0
  46. package/assets/esri/core/workers/chunks/677d3674cb2c0c05fb7e.js +1 -0
  47. package/assets/esri/core/workers/chunks/7100c9038739121c2c4b.js +1 -0
  48. package/assets/esri/core/workers/chunks/{6c49ac7888679b9f7823.js → 720a33a7f118d2769133.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{9f7b5749f3ceca8d5978.js → 7480bd6f892abf444cac.js} +31 -31
  50. package/assets/esri/core/workers/chunks/{3a7c02616d942c81257d.js → 792219a079c28bcdc003.js} +1 -1
  51. package/assets/esri/core/workers/chunks/794f604d4267e374f7dd.js +1 -0
  52. package/assets/esri/core/workers/chunks/7ae8f73c8e2afae98ecb.js +1 -0
  53. package/assets/esri/core/workers/chunks/7d4af7e2cb2f234e12eb.js +1 -0
  54. package/assets/esri/core/workers/chunks/807b12ace0099300b9b9.js +1 -0
  55. package/assets/esri/core/workers/chunks/{b98dd9fc9a7e3ff6bd49.js → 816a4b03f2ea49238a6c.js} +1 -1
  56. package/assets/esri/core/workers/chunks/842b442cc012d0797333.js +1 -0
  57. package/assets/esri/core/workers/chunks/8903ff28896bd6f34b0d.js +1 -0
  58. package/assets/esri/core/workers/chunks/89e9bc8789b100316136.js +1 -0
  59. package/assets/esri/core/workers/chunks/8afe32d3db9669f972bc.js +1 -0
  60. package/assets/esri/core/workers/chunks/91fd28f50477d16e294e.js +1 -0
  61. package/assets/esri/core/workers/chunks/{278409028bc5af45b507.js → 93ceb74ac88ef460fe5f.js} +1 -1
  62. package/assets/esri/core/workers/chunks/98011b93acf3d5f0b5a2.js +1 -0
  63. package/assets/esri/core/workers/chunks/{cd491c37ba1ac381178c.js → 987dc23fdc0a8c7150b9.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{25509953f19fbc4949a1.js → 992e74570b76f3f9e52e.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{b1c5f69bd1400e66c635.js → 9ae90a4b281d4103e8bb.js} +1 -1
  66. package/assets/esri/core/workers/chunks/9c7fd5db0813bdc38582.js +1 -0
  67. package/assets/esri/core/workers/chunks/9f272445c285ee9abb7b.js +1 -0
  68. package/assets/esri/core/workers/chunks/a2fee1611319665e6aed.js +1 -0
  69. package/assets/esri/core/workers/chunks/a644e30f65347ce846ed.js +1 -0
  70. package/assets/esri/core/workers/chunks/a64daa4945923a178fe5.js +1 -0
  71. package/assets/esri/core/workers/chunks/a85575a8d1da09280cd7.js +1 -0
  72. package/assets/esri/core/workers/chunks/ac4f7309a249132c22da.js +1 -0
  73. package/assets/esri/core/workers/chunks/aeb1900cfdd0e51cc5f8.js +1 -0
  74. package/assets/esri/core/workers/chunks/ba62f3aa811430787863.js +1 -0
  75. package/assets/esri/core/workers/chunks/{7b48c102a44606291f82.js → bb659dcd297b895830df.js} +1 -1
  76. package/assets/esri/core/workers/chunks/c03d0091a6f385b9ce8d.js +1 -0
  77. package/assets/esri/core/workers/chunks/c48d1ee37c207bfb0aac.js +1 -0
  78. package/assets/esri/core/workers/chunks/c4a9006cc6d2938570e0.js +1 -0
  79. package/assets/esri/core/workers/chunks/c692ea68509bddbf7b42.js +1 -0
  80. package/assets/esri/core/workers/chunks/{a4a4ce33de6432ba4dc3.js → c6a0e770c1a89d3b5913.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{b49b608c0d58a9b55fa2.js → cc1f3a2f281a2f6e0f94.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{73e384fd93cf22503d84.js → cdf6ad970dc1893dac58.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{b45fdc04d399d2849d63.js → daf65bccc45dc5c400ae.js} +1 -1
  84. package/assets/esri/core/workers/chunks/df3e79b56c37156e7895.js +1 -0
  85. package/assets/esri/core/workers/chunks/df8b80b17e371c9be4e6.js +1 -0
  86. package/assets/esri/core/workers/chunks/e77198f8ab47441423c5.js +1 -0
  87. package/assets/esri/core/workers/chunks/e786da40a1c87bed64ca.js +1 -0
  88. package/assets/esri/core/workers/chunks/e8aafef6342c50340a27.js +1 -0
  89. package/assets/esri/core/workers/chunks/ec00348d74e29f48613a.js +1 -0
  90. package/assets/esri/core/workers/chunks/{284ce99af7bdd73dc7e9.js → ec65c9c72507ef9a9cf9.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{cdec811b66d98e76be9e.js → eedeff8b344ff699b0b9.js} +1 -1
  92. package/assets/esri/core/workers/chunks/f4201e7dcae224d0caf0.js +1 -0
  93. package/assets/esri/core/workers/chunks/f4d31d96681b649ddc95.js +1 -0
  94. package/assets/esri/core/workers/chunks/{08d76c600926d7642a8b.js → f5fd59291cb161fdc05b.js} +1 -1
  95. package/assets/esri/core/workers/chunks/f7cc05fbfc97b4d36eba.js +1 -0
  96. package/assets/esri/core/workers/chunks/{6aba8c3bce5f68568e3a.js → f7fb121169b7e5a5adbc.js} +1 -1
  97. package/assets/esri/core/workers/chunks/f9d369a4683f88ee9d76.js +1 -0
  98. package/assets/esri/core/workers/chunks/fc534c94d55331578195.js +1 -0
  99. package/assets/esri/core/workers/chunks/{3e61e7805dc6ff284831.js → fdf8fe0f50a9ae548c16.js} +1 -1
  100. package/chunks/Fog.glsl.js +1 -1
  101. package/chunks/GlowBlur.glsl.js +2 -2
  102. package/chunks/GlowComposition.glsl.js +6 -6
  103. package/chunks/HUDMaterial.glsl.js +1 -1
  104. package/chunks/OITBlend.glsl.js +9 -9
  105. package/config.js +1 -1
  106. package/core/timeUtils.d.ts +68 -0
  107. package/geometry/support/aaBoundingBox.js +1 -1
  108. package/geometry/support/sphere.js +1 -1
  109. package/kernel.js +1 -1
  110. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  111. package/layers/raster/datasets/pixelReader.js +1 -1
  112. package/layers/support/Sublayer.d.ts +15 -0
  113. package/layers/support/Sublayer.js +1 -1
  114. package/package.json +3 -3
  115. package/support/revision.js +1 -1
  116. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  117. package/symbols/cim/utils.js +1 -1
  118. package/views/2d/engine/Stage.js +1 -1
  119. package/views/2d/engine/brushes.js +1 -1
  120. package/views/2d/engine/webgl/TileContainer.js +1 -1
  121. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  122. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +2 -0
  123. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +2 -0
  124. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +2 -0
  125. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTexture.js +2 -0
  126. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +2 -0
  127. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
  128. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
  129. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  130. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
  131. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
  132. package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
  133. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  134. package/views/2d/layers/MediaLayerView2D.js +1 -1
  135. package/views/2d/layers/TileLayerView2D.js +1 -1
  136. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  137. package/views/3d/layers/support/Tiles3DBVH.js +2 -0
  138. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  139. package/views/3d/support/ElevationRange.js +1 -1
  140. package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
  141. package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
  142. package/views/3d/support/orientedBoundingBox.js +1 -1
  143. package/views/3d/terrain/TerrainRenderer.js +1 -1
  144. package/views/3d/terrain/TileCompositor.js +1 -1
  145. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  146. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialGlobalParameters.js +1 -1
  147. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
  148. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  149. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutputConfiguration.js +1 -1
  150. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +5 -5
  151. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  152. package/views/3d/webgl-engine/effects/fboFormatUtils.js +2 -0
  153. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  154. package/views/3d/webgl-engine/effects/fog/FogTechniqueConfiguration.js +1 -1
  155. package/views/3d/webgl-engine/effects/glow/GlowBlurTechniqueConfiguration.js +1 -1
  156. package/views/3d/webgl-engine/effects/glow/GlowCompositionTechniqueConfiguration.js +1 -1
  157. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  158. package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
  159. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  160. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  161. package/views/3d/webgl-engine/effects/transparency/OITBlendTechniqueConfiguration.js +1 -1
  162. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  163. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  164. package/views/3d/webgl-engine/lib/Material.js +1 -1
  165. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  166. package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
  167. package/views/3d/webgl-engine/shaders/Dithering.glsl.js +1 -1
  168. package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +3 -3
  169. package/views/3d/webgl-engine/shaders/oitResolution.glsl.js +1 -1
  170. package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
  171. package/views/3d/webgl.js +1 -1
  172. package/views/SceneView.js +1 -1
  173. package/views/SelectionManager.js +1 -1
  174. package/views/VideoView.js +1 -1
  175. package/views/selection/types.d.ts +92 -1
  176. package/views/support/selectionUtils.js +1 -1
  177. package/views/support/waitForResources.js +1 -1
  178. package/views/webgl/FramebufferObject.js +1 -1
  179. package/views/webgl/InstanceCounter.js +1 -1
  180. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  181. package/widgets/Editor/EditorViewModel.js +1 -1
  182. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  183. package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +2 -2
  184. package/widgets/Editor/workflowUtils.js +1 -1
  185. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  186. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  187. package/widgets/LayerList/ListItemPanel.js +1 -1
  188. package/widgets/Legend/LegendViewModel.js +1 -1
  189. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  190. package/widgets/Sketch/SketchViewModel.js +1 -1
  191. package/widgets/support/SelectionList/FeatureItem.js +1 -1
  192. package/widgets/support/SelectionList/LayerItem.js +1 -1
  193. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  194. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  195. package/assets/esri/core/workers/chunks/04b04548d4eb0941a01e.js +0 -1
  196. package/assets/esri/core/workers/chunks/06223d5d8281e5af14c5.js +0 -1
  197. package/assets/esri/core/workers/chunks/07bdcb622ea59fdbb3a6.js +0 -1
  198. package/assets/esri/core/workers/chunks/0d59f5cd3fdd7d6fd693.js +0 -1
  199. package/assets/esri/core/workers/chunks/0eb57ef4a1b387c951d6.js +0 -1
  200. package/assets/esri/core/workers/chunks/136859ef29a3269c4128.js +0 -1
  201. package/assets/esri/core/workers/chunks/1e018de43becf66cceaa.js +0 -1
  202. package/assets/esri/core/workers/chunks/236b4ab3da0bc8f788a2.js +0 -1
  203. package/assets/esri/core/workers/chunks/2379c64b0ca30814a815.js +0 -1
  204. package/assets/esri/core/workers/chunks/35d115bde474c380c791.js +0 -1
  205. package/assets/esri/core/workers/chunks/3f6ebd82551c2000912e.js +0 -1
  206. package/assets/esri/core/workers/chunks/4577df99c92c7ec0f9de.js +0 -1
  207. package/assets/esri/core/workers/chunks/4869e2f35aaf6b058281.js +0 -1
  208. package/assets/esri/core/workers/chunks/4b3545965b11a54184d4.js +0 -2
  209. package/assets/esri/core/workers/chunks/4c6fc6d19fe519ce7bfc.js +0 -1
  210. package/assets/esri/core/workers/chunks/58f47dea6d8665611eff.js +0 -1
  211. package/assets/esri/core/workers/chunks/5b2fe488a461bc433f59.js +0 -1
  212. package/assets/esri/core/workers/chunks/5c0b3c76a7bc971c61dc.js +0 -1
  213. package/assets/esri/core/workers/chunks/5df9d2a255c9d63ae7df.js +0 -1
  214. package/assets/esri/core/workers/chunks/5f53d7d6bc9b67b2f357.js +0 -1
  215. package/assets/esri/core/workers/chunks/5ffe664eda334ad73175.js +0 -1
  216. package/assets/esri/core/workers/chunks/64fd3561bc94570ee954.js +0 -1
  217. package/assets/esri/core/workers/chunks/650614a9e4871714c42e.js +0 -1
  218. package/assets/esri/core/workers/chunks/66e35e38aea978f91a0c.js +0 -1
  219. package/assets/esri/core/workers/chunks/696f645349249f26090c.js +0 -1
  220. package/assets/esri/core/workers/chunks/6d5bb00157e20ad90fc0.js +0 -1
  221. package/assets/esri/core/workers/chunks/70f0d66e5e6d5d2163f3.js +0 -1
  222. package/assets/esri/core/workers/chunks/768bbc910be6c65ac107.js +0 -1
  223. package/assets/esri/core/workers/chunks/76effcc35b3962cd5535.js +0 -1
  224. package/assets/esri/core/workers/chunks/777390e820b3824dc265.js +0 -1
  225. package/assets/esri/core/workers/chunks/7948d6f14ae44d346d88.js +0 -1
  226. package/assets/esri/core/workers/chunks/797bf402489b3677a5f7.js +0 -1
  227. package/assets/esri/core/workers/chunks/7a4cc1133e4410271b00.js +0 -1
  228. package/assets/esri/core/workers/chunks/7dba4b04c148f03fdf21.js +0 -1
  229. package/assets/esri/core/workers/chunks/87c9a1fc9f2a392b78f5.js +0 -1
  230. package/assets/esri/core/workers/chunks/88426877d625ea333143.js +0 -1
  231. package/assets/esri/core/workers/chunks/8967a02f394a63f11030.js +0 -1
  232. package/assets/esri/core/workers/chunks/8c210529a28addb94ea0.js +0 -1
  233. package/assets/esri/core/workers/chunks/8d3c508995253cbe083f.js +0 -1
  234. package/assets/esri/core/workers/chunks/8e18ac7b22d8dca1e1e2.js +0 -1
  235. package/assets/esri/core/workers/chunks/8e3cb1c584951c3d1eb7.js +0 -1
  236. package/assets/esri/core/workers/chunks/908f171b9c512d738dea.js +0 -1
  237. package/assets/esri/core/workers/chunks/922484b43803ab4e4319.js +0 -1
  238. package/assets/esri/core/workers/chunks/947a715b608c8affd812.js +0 -1
  239. package/assets/esri/core/workers/chunks/9bd68abc6b5b07b2add3.js +0 -1
  240. package/assets/esri/core/workers/chunks/9e55f97291062985560b.js +0 -1
  241. package/assets/esri/core/workers/chunks/a90883ff02c0cc6450c2.js +0 -1
  242. package/assets/esri/core/workers/chunks/ac9722a7897c994f11ab.js +0 -1
  243. package/assets/esri/core/workers/chunks/b1ac09d8fa340d194aa2.js +0 -1
  244. package/assets/esri/core/workers/chunks/c04c457f5295febb3c39.js +0 -1
  245. package/assets/esri/core/workers/chunks/cb2fbe585c0827eecf70.js +0 -1
  246. package/assets/esri/core/workers/chunks/cf74d1605ad2f21699e7.js +0 -1
  247. package/assets/esri/core/workers/chunks/d50e6681ecb9612e4528.js +0 -1
  248. package/assets/esri/core/workers/chunks/d6eddb94f5f2e9759bd0.js +0 -1
  249. package/assets/esri/core/workers/chunks/dcc3285e4ab2c38709bd.js +0 -1
  250. package/assets/esri/core/workers/chunks/e25bbd7cc553b1d2e208.js +0 -1
  251. package/assets/esri/core/workers/chunks/e72ca52d930afb5650af.js +0 -30
  252. package/assets/esri/core/workers/chunks/e96529e144c3268a04f7.js +0 -1
  253. package/assets/esri/core/workers/chunks/f379f94adbe79dc305a2.js +0 -1
  254. package/assets/esri/core/workers/chunks/f4e5163efa2a0567ee19.js +0 -1
  255. package/assets/esri/core/workers/chunks/f76833254f842fb0cd9a.js +0 -1
  256. package/assets/esri/core/workers/chunks/f9abae8d07002fe04a08.js +0 -1
  257. package/assets/esri/core/workers/chunks/ff6c4f8420140b9f9577.js +0 -1
  258. package/assets/esri/core/workers/chunks/ff75fb0fce51ac12e656.js +0 -1
  259. package/assets/esri/core/workers/chunks/ffe9fa5111c149ddef49.js +0 -1
  260. package/views/2d/engine/webgl/brushes/WGLBrushStencil.js +0 -2
  261. package/views/2d/engine/webgl/brushes/WGLBrushTileDebugInfo.js +0 -2
  262. /package/assets/esri/core/workers/chunks/{4b3545965b11a54184d4.js.LICENSE.txt → 386435341e949f5573b4.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8008],{52106(e,t,n){n.d(t,{A:()=>x});var r,i,s=n(5482),o=n(37838),a=n(69540),l=n(51447),u=n(25482),c=n(53966),p=n(36708),d=n(24326),f=n(91429),h=n(12195),m=n(65864),g=n(50498),y=n(55156),v=n(60950),w=n(54339),b=n(94128),M=n(33910);function I(e){if(null==e)return null;const t={};for(const n in e){const r=e[n];r&&(t[n]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let x=class extends((0,a.OU)(u.o)){static{r=b.Z}static{i=this}constructor(e){super(e),this[r]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,y.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:I(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(i.action=r),"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,s.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const r=(0,m.rS)(e[n]);r&&(t[n]=r)}return 0!==Object.keys(t).length?t:null}}})],x.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,f.MZ)({value:null})],x.prototype,"attributes",null),(0,s.Cg)([(0,f.MZ)({value:null,types:g.yR,json:{read:m.rS}})],x.prototype,"geometry",null),(0,s.Cg)([(0,f.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,s.Cg)([(0,f.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,s.Cg)([(0,f.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,s.Cg)([(0,f.MZ)({type:o.A,value:null})],x.prototype,"popupTemplate",null),(0,s.Cg)([(0,f.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,f.MZ)({value:null,types:M.Es})],x.prototype,"symbol",null),(0,s.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,s.Cg)([(0,f.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=i=(0,s.Cg)([(0,f.$K)("esri.Graphic")],x)},46140(e,t,n){n.d(t,{A:()=>i});var r=n(49186);class i{constructor(e,t,n=""){this.major=e,this.minor=t,this._context=n}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",n=this._context&&this._context+" ";throw new r.A(t+"unsupported-version",`Required major ${n}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[n,s]=e.split("."),o=/^\s*\d+\s*$/;if(!n?.match||!o.test(n))throw new r.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s?.match||!o.test(s))throw new r.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(n,10),l=parseInt(s,10);return new i(a,l,t)}}},6797(e,t,n){n.d(t,{Ui:()=>d});var r=n(69622),i=n(7762),s=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof r.A}function l(e){return e instanceof i.A?Object.keys(e.items):a(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const r=l(e),i=l(t);if(0===r.length&&0===i.length)return;if(!r.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=i.filter(e=>!r.includes(e)),d=r.filter(e=>!i.includes(e)),f=r.filter(n=>i.includes(n)&&u(e,n)!==u(t,n)).concat(s,d).sort(),h=c(e);if(h&&o.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const g=a(e)&&a(t);for(const r of f){const i=u(e,r),s=u(t,r);let o;if((g||"function"!=typeof i&&"function"!=typeof s)&&i!==s&&(null!=i||null!=s)){if(n&&n[r]&&"function"==typeof n[r])o=n[r]?.(i,s);else if(i instanceof Date&&s instanceof Date){if(i.getTime()===s.getTime())continue;o={type:"complete",oldValue:i,newValue:s}}else o="object"==typeof i&&"object"==typeof s&&c(i)===c(s)?p(i,s):{type:"complete",oldValue:i,newValue:s};null!=o&&(null!=m?m.diff[r]=o:m={type:"partial",diff:{[r]:o}})}}return m}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(e,t,n,r,i,s,o,a,l,u,c,p,d,f,h,m){return[e,t,n,r,i,s,o,a,l,u,c,p,d,f,h,m]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>T,Bw:()=>s,C:()=>o,Cc:()=>A,DI:()=>I,Il:()=>U,Io:()=>v,Ln:()=>y,Om:()=>_,Qr:()=>p,Re:()=>u,S8:()=>x,T9:()=>m,WQ:()=>l,Z0:()=>S,_S:()=>f,aI:()=>R,ei:()=>C,gL:()=>j,hG:()=>w,hZ:()=>a,hs:()=>g,jb:()=>Z,jk:()=>h,lo:()=>L,lw:()=>c,m3:()=>b,oW:()=>P,t2:()=>F,tn:()=>d,uE:()=>$,xg:()=>k,ze:()=>M});var r=n(51850),i=n(34304);function s(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function p(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function h(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function m(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function w(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function b(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function M(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function I(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function x(e,t){const n=t[0],r=t[1],i=t[2];let s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function _(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function T(e,t,n){const r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],l=n[2];return e[0]=i*l-s*a,e[1]=s*o-r*l,e[2]=r*a-i*o,e}function A(e,t,n,r){const i=t[0],s=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=o+r*(n[2]-o),e}function S(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12],e[1]=n[1]*r+n[5]*i+n[9]*s+n[13],e[2]=n[2]*r+n[6]*i+n[10]*s+n[14],e}function C(e,t,n){const r=t[0],i=t[1],s=t[2];return e[0]=r*n[0]+i*n[3]+s*n[6],e[1]=r*n[1]+i*n[4]+s*n[7],e[2]=r*n[2]+i*n[5]+s*n[8],e}function j(e,t,n){const r=n[0],i=n[1],s=n[2],o=n[3],a=t[0],l=t[1],u=t[2],c=i*u-s*l,p=s*a-r*u,d=r*l-i*a,f=i*d-s*p,h=s*c-r*d,m=r*p-i*c,g=2*o;return e[0]=a+c*g+2*f,e[1]=l+p*g+2*h,e[2]=u+d*g+2*m,e}const O=(0,r.vt)(),E=(0,r.vt)();function F(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R(e,t){if(e===t)return!0;const n=e[0],r=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function P(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],s=n[2]-t[2];let o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=r*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const Z=u,N=c,D=p,k=v,L=w,U=s,$=b;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){x(O,e),x(E,t);const n=_(O,E);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,r,i,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,p=3*l*o,d=l*s;return e[0]=t[0]*u+n[0]*c+r[0]*p+i[0]*d,e[1]=t[1]*u+n[1]*c+r[1]*p+i[1]*d,e[2]=t[2]*u+n[2]*c+r[2]*p+i[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:T,crossAndNormalize:function(e,t,n){const r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],l=n[2],u=i*l-s*a,c=s*o-r*l,p=r*a-i*o,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:P,dist:k,distance:v,div:D,divide:p,dot:_,equals:R,exactEquals:F,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,i,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 e[0]=t[0]*a+n[0]*l+r[0]*u+i[0]*c,e[1]=t[1]*a+n[1]*l+r[1]*u+i[1]*c,e[2]=t[2]*a+n[2]*l+r[2]*u+i[2]*c,e},inverse:I,len:U,length:s,lerp:A,max:m,min:h,mul:N,multiply:c,negate:M,normalize:x,random:function(e,t=1){const n=i.Ov,r=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(r)*o,e[1]=Math.sin(r)*o,e[2]=s*t,e},rotateX:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],s=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],e[0]=s[0]+n[0],e[1]=s[1]+n[1],e[2]=s[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:y,set:a,sign:f,sqrDist:L,sqrLen:$,squaredDistance:w,squaredLength:b,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:Z,subtract:u,transformMat3:C,transformMat4:S,transformQuat:j},Symbol.toStringTag,{value:"Module"}))},13069(e,t,n){n.d(t,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},159(e,t,n){n.d(t,{A:()=>u});var r,i=n(5482),s=n(69540),o=n(25482),a=n(91429),l=n(99157);let u=r=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,i.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>l});var r,i=n(5482),s=n(69540),o=n(25482),a=n(91429);let l=r=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>i});var r=n(49208);function i(e,t,n,i,s,o,a=Math.floor(e.length/3)){const l=(0,r.jd)(t,s);if(null==l)return!1;if(l===r.pO){if(e===i&&n===o)return!0;const t=n+3*a;for(let r=n,s=o;r<t;r++,s++)i[s]=e[r]??0;return!0}const u=n+3*a;for(let t=n,r=o;t<u;t+=3,r+=3)l(e,t,i,r);return!0}},49208(e,t,n){n.d(t,{Tp:()=>p,jd:()=>c,pO:()=>f,w5:()=>u});var r=n(34727),i=n(86211),s=n(73941),o=n(79258),a=n(34403),l=n(21325);const u={2:{5:f,7:null,9:null,10:f,1:M,6:null,8:null,0:null,3:m,11:g,2:f,4:A},5:{5:f,7:null,9:null,10:f,1:M,6:null,8:null,0:null,3:m,11:g,2:f,4:A},7:{5:null,7:f,9:null,10:f,1:null,6:b,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:w,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,t,n,r){const i=e[t]/F,s=E-2*Math.atan(Math.exp(-e[t+1]/F)),o=F+(e[t+2]??0),a=Math.cos(s)*o;n[r]=Math.cos(i)*a,n[r+1]=Math.sin(i)*a,n[r+2]=Math.sin(s)*o},6:null,8:null,0:null,3:f,11:function(e,t,n,r){h(e,t,n,r),g(n,r,n,r)},2:h,4:function(e,t,n,r){h(e,t,n,r),A(n,r,n,r)}},4:{5:S,7:null,9:null,10:S,1:function(e,t,n,r){S(e,t,n,r),M(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){S(e,t,n,r),m(n,r,n,r)},11:function(e,t,n,r){S(e,t,n,r),g(n,r,n,r)},2:S,4:f},1:{5:T,7:null,9:null,10:T,1:f,6:null,8:null,0:null,3:function(e,t,n,r){T(e,t,n,r),m(n,r,n,r)},11:function(e,t,n,r){T(e,t,n,r),g(n,r,n,r)},2:T,4:function(e,t,n,r){T(e,t,n,r),A(n,r,n,r)}},6:{5:null,7:_,9:null,10:_,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,1:null,6:null,8:f,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:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:M,6:b,8:w,0:null,3:m,11:g,2:f,4:A},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,r){y(e,t,n,r),M(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){y(e,t,n,r),m(n,r,n,r)},11:f,2:y,4:function(e,t,n,r){y(e,t,n,r),A(n,r,n,r)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(C.source.spatialReference===e&&C.dest.spatialReference===t)return C;const n=d(e,C.source),r=d(t,C.dest);return 0===n&&0===r?(0,l.aI)(e,t)?C.projector=f:C.projector=null:C.projector=u[n][r],C}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,s.q8)(e)?t.spatialReferenceId=7:(0,s.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function h(e,t,n,r){n[r]=O*(e[t]/F),n[r+1]=O*(E-2*Math.atan(Math.exp(-e[t+1]/F))),n[r+2]=e[t+2]??0}function m(e,t,n,i){!function(e,t,n,i,s){const o=.4999999*Math.PI,a=(0,r.qE)(j*e[t+1],-o,o),l=Math.sin(a);n[i++]=j*e[t]*s.radius,n[i++]=s.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[i]=e[t+2]??0}(e,t,n,i,o.$O)}function g(e,t,n,r){n[r]=e[t]*R,n[r+1]=e[t+1]*R,n[r+2]=e[t+2]??0}function y(e,t,n,r){n[r]=e[t]*P,n[r+1]=e[t+1]*P,n[r+2]=e[t+2]??0}function v(e,t,n,r,i){const s=i+(e[t+2]??0),o=j*e[t],a=j*e[t+1],l=Math.cos(a)*s;n[r]=Math.cos(o)*l,n[r+1]=Math.sin(o)*l,n[r+2]=Math.sin(a)*s}function w(e,t,n,r){v(e,t,n,r,o.Sw.radius)}function b(e,t,n,r){v(e,t,n,r,o.sH.radius)}function M(e,t,n,r){v(e,t,n,r,o.$O.radius)}function I(e,t,n,i,s){const o=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(o*o+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),p=Math.atan2(a,o);n[i++]=O*p,n[i++]=O*c,n[i]=u-s}function x(e,t,n,r){I(e,t,n,r,o.Sw.radius)}function _(e,t,n,r){I(e,t,n,r,o.sH.radius)}function T(e,t,n,r){I(e,t,n,r,o.$O.radius)}function A(e,t,n,r){!function(e,t,n,r,i){const s=j*e[t],o=j*e[t+1],a=e[t+2]??0,l=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);n[r++]=(c+a)*u*Math.cos(s),n[r++]=(c+a)*u*Math.sin(s),n[r++]=(c*(1-i.eccentricitySquared)+a)*l}(e,t,n,r,o.$O)}function S(e,t,n,r){const i=a.TP,s=e[t],l=e[t+1],u=e[t+2]??0;let c,p,d,f,h,m,g,y,v,w,b,M,I,x,_,T,A,S,C,j,E;c=Math.abs(u),p=s*s+l*l,d=Math.sqrt(p),f=p+u*u,h=Math.sqrt(f),j=Math.atan2(l,s),m=u*u/f,g=p/f,x=i.a2/h,_=i.a3-i.a4/h,g>.3?(y=c/h*(1+g*(i.a1+x+m*_)/h),C=Math.asin(y),w=y*y,v=Math.sqrt(1-w)):(v=d/h*(1-m*(i.a5-x-g*_)/h),C=Math.acos(v),w=1-v*v,y=Math.sqrt(w)),b=1-o.$O.eccentricitySquared*w,M=o.$O.radius/Math.sqrt(b),I=i.a6*M,x=d-M*v,_=c-I*y,A=v*x+y*_,T=v*_-y*x,S=T/(I/b+A),C+=S,E=A+T*S/2,u<0&&(C=-C),n[r++]=O*j,n[r++]=O*C,n[r]=E}const C={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},j=(0,r.kU)(1),O=(0,r.KJ)(1),E=.5*Math.PI,F=o.$O.radius,R=F*Math.PI/180,P=180/(F*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>J,initializeProjection:()=>Y,isEqualBaseGCS:()=>K,isLoaded:()=>F,isLoadedOrLoad:()=>R,isLoadedOrLoadFor:()=>P,load:()=>N,project:()=>D,projectAsync:()=>V,projectExtent:()=>ie,projectMany:()=>k,projectMultipoint:()=>Q,projectOrLoad:()=>U,projectOrLoadMany:()=>$,projectPoint:()=>H,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>B,requiresLoad:()=>Z,test:()=>q,tryProject:()=>L,unload:()=>z});var r=n(49186),i=n(17676),s=n(62788),o=n(95488),a=n(51850),l=n(21276),u=n(73941),c=n(5443),p=n(91075),d=n(48526),f=n(86738),h=n(39829),m=n(82799),g=n(16930),y=n(98764),v=n(159),w=n(9762),b=n(49208);function M(e,t,n,r,i,s){return I[0]=e,I[1]=t,I[2]=n,(0,w.projectBuffer)(I,r,0,i,s,0)}const I=(0,a.vt)();var x=n(60408),_=n(21325),T=n(52006);let A=null,S=null,C=null,j=null,O={};const E=new o.I;function F(){return!!(S?.isLoaded()&&C?.isLoaded()&&j?.isLoaded())}function R(){return!!F()||((0,s.gc)(E),N(),!1)}function P(e,t){return!e||!t||J(e,t)||R()}function Z(e,t){return!J(e,t)&&!F()}async function N(e){null==A&&(A=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(S=e,S.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(C=e,C.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(j=e,j.load()))])),await A,(0,i.Te)(e),E.notify()}function D(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),k(e,e[0].spatialReference,t,n)):((0,l.f)(e),k([e],e.spatialReference,t,n)[0])}function k(e,t,n,r){if(null==t||null==n)return e;if(J(t,n,r))return e.map(e=>B(e,t,n));if(null==r?.geographicTransformation&&(0,u.jA)(t))return k(e.map(e=>B(e,t,g.A.WGS84)),g.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return k(e,t,g.A.WGS84).map(e=>B(e,g.A.WGS84,n));if(!F())throw new G;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:j.getTransformation(t,n,r.areaOfInterestExtent)||new v.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let i=O[e];i||(i=j.getTransformation(t,n)||new v.A,O[e]=i),r={geographicTransformation:i,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?S.executeMany(e,n,r):C.executeMany(e,n,r)}function L(e,t,n){try{return D(e,t,n)}catch(e){return null}}function U(e,t){const n=$([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function $(e,t,n){if(!F())for(const n of e)if(null!=n&&!(0,_.aI)(n.spatialReference,t)&&(0,_.fn)(n.spatialReference)&&(0,_.fn)(t)&&!J(n.spatialReference,t))return(0,s.gc)(E),{pending:N(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,_.aI)(e.spatialReference,t)?e:(0,_.fn)(e.spatialReference)&&(0,_.fn)(t)?D(e,t,n):null)}}class G extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function z(){A=null,S=null,C=null,j=null,O={}}const q={get loadPromise(){return A}};async function V(e,t,n){if((0,i.Te)(n),!e)return e;const r=$(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,i.Te)(n),V(e,t,n);const s=r.geometries??[];return Array.isArray(e)?s:s[0]}function J(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,_.aI)(e,t)||(0,_.fn)(e)&&(0,_.fn)(t)&&!!(0,b.jd)(e,t))}function K(e,t){if((0,_.aI)(e,t))return!0;if(!(0,_.fn)(e)||!(0,_.fn)(t))return!1;const n=(0,_.oT)(e)||(0,_.K8)(e)||(0,_.x1)(e),r=(0,_.oT)(t)||(0,_.K8)(t)||(0,_.x1)(t);return n&&r}async function Y(e,t,n,r){if(F())return(0,i.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:i}of e)if(t&&n&&!J(t,n,i))return N(r)}else if(e&&t&&!J(e,t,n))return N(r);return(0,i.NO)(r)}function B(e,t,n){return e?(0,x.fT)(e)?W(e,t,new f.A,n,0):(0,x.ZC)(e)?se(e,t,new c.A,n,0):(0,x.Bi)(e)?re(e,t,new h.A,n,0):(0,x.Rg)(e)?te(e,t,new m.A,n,0):(0,x.U9)(e)?X(e,t,new d.A,n,0):null:null}function H(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=W(e,e.spatialReference,t,n,r)}function W(e,t,n,r,i){ue[0]=e.x,ue[1]=e.y;const s=e.z;return ue[2]=void 0!==s?s:i,(0,w.projectBuffer)(ue,t,0,ue,r,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=r,void 0!==s||(0,u.xP)(r)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Q(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,r)}function X(e,t,n,r,i){const{points:s,hasZ:o,hasM:a}=e,l=[],u=s.length,c=[];for(const e of s)c.push(e[0],e[1],o?e[2]:i);if(!(0,w.projectBuffer)(c,t,0,c,r,0,u))return null;const p=le(o,r);for(let e=0;e<u;++e){const t=3*e,n=c[t],r=c[t+1];p&&a?l.push([n,r,c[t+2],s[e][3]]):p?l.push([n,r,c[t+2]]):a?l.push([n,r,s[e][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=o,n.hasM=a,n}function ee(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,r)}function te(e,t,n,r,i){const{curvePaths:s,paths:o,hasZ:a,hasM:l}=e;if(!(s?ae(s,a??!1,l??!1,t,n.curvePaths=[],r,i):oe(o,a??!1,l??!1,t,n.paths,r,i)))return null;const u=le(a,r);return n.spatialReference=r,n.hasZ=u,n.hasM=l,n}function ne(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,r)}function re(e,t,n,r,i){const{curveRings:s,rings:o,hasZ:a,hasM:l}=e;return(s?ae(s,a??!1,l??!1,t,n.curveRings=[],r,i):oe(o,a??!1,l??!1,t,n.rings,r,i))?(n.spatialReference=r,n.hasZ=le(a,r),n.hasM=l,n):null}function ie(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=se(e,e.spatialReference,t,n,r)}function se(e,t,n,r,i){const{xmin:s,ymin:o,xmax:a,ymax:l,hasZ:u,hasM:c}=e;if(!M(s,o,u?e.zmin:i,t,ue,r))return null;const p=le(u,r);return n.xmin=ue[0],n.ymin=ue[1],p&&(n.zmin=ue[2]),M(a,l,u?e.zmax:i,t,ue,r)?(n.xmax=ue[0],n.ymax=ue[1],p&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function oe(e,t,n,r,i,s,o=0){const a=new Array;for(const n of e)for(const e of n)a.push(e[0],e[1],t?e[2]:o);if(!(0,w.projectBuffer)(a,r,0,a,s,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,s);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);c||t.pop(),n&&t.push(r[u]),e.push(t)}i.push(e)}return!0}function ae(e,t,n,r,i,s,o=0){const a=new Array;for(const n of e)for(const e of n){if((0,T.FG)(e))return!1;if((0,T.aO)(e)){const[n,r]=e.c;a.push(n[0],n[1],t?n[2]:o,r[0],r[1],o);continue}if((0,T.n1)(e)){const[n,r,i]=e.b;a.push(n[0],n[1],t?n[2]:o,r[0],r[1],o,i[0],i[1],o);continue}const n=e;a.push(n[0],n[1],t?n[2]:o)}if(!(0,w.projectBuffer)(a,r,0,a,s,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,s);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);if(c||t.pop(),n&&t.push((0,T.yP)(r)[u]),(0,T.FG)(r))return!1;if((0,T.aO)(r)){const n=a[l++],r=a[l++];++l,e.push({c:[t,[n,r]]});continue}if((0,T.n1)(r)){const n=a[l++],r=a[l++];++l;const i=a[l++],s=a[l++];++l,e.push({b:[t,[n,r],[i,s]]});continue}e.push(t)}i.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,_.aI)(t,y.Y0)}const ue=(0,a.vt)()},98764(e,t,n){n.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var r=n(73941),i=n(16930),s=n(21325);const o=new i.A(r.fv),a=new i.A(r.FY),l=new i.A(r.LJ),u=new i.A(r.Ro);function c(e){const t=p.get(e);if(t)return t;let n=o;if(e)if(e===a)n=a;else if(e===l)n=l;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,s.tl)(t)||(0,s.tl)(r)?n=a:((0,s.ZL)(t)||(0,s.ZL)(r))&&(n=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?n=a:e===f&&(n=l)}}}return p.set(e,n),n}const p=new Map,d=a.wkt.toUpperCase(),f=l.wkt.toUpperCase()},4197(e,t,n){n.d(t,{Vj:()=>u,cj:()=>l,jh:()=>s,l5:()=>a,xm:()=>o});var r=n(34275),i=n(9093);function s(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function l(e){return[...e]}function u(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>w,DC:()=>p,Ej:()=>f,Ie:()=>y,Jt:()=>v,Ne:()=>h,RF:()=>c,aI:()=>M,fA:()=>o,gE:()=>l,hZ:()=>g,iT:()=>d,is:()=>b,qv:()=>I,vI:()=>m,vY:()=>a,v_:()=>x,vt:()=>s,w1:()=>u}),n(35522);var r=n(5443),i=(n(19419),n(4197));function s(e=x){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,r,i,o,a=s()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=o,a}function a(e,t=s()){return function(e,t,n,r=s()){return g(r,I),function(e,t,n=0,r=t.length/3){let i=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),l=Math.max(l,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=i,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(r,e,t,n),r}(e,0,e.length/3,t)}function l(e,t=(0,i.jh)(24)){const[n,r,s,o,a,l]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=l,t[6]=n,t[7]=a,t[8]=s,t[9]=n,t[10]=a,t[11]=l,t[12]=o,t[13]=r,t[14]=s,t[15]=o,t[16]=r,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function m(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?g(e,I):s(I)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function w(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function M(e,t,n){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},34403(e,t,n){n.d(t,{TP:()=>o});var r=n(79258);Math.PI;const i=r.$O.radius,s=r.$O.eccentricitySquared,o={a1:i*s,a2:i*s*i*s,a3:i*s*s/2,a4:i*s*i*s*2.5,a5:i*s+i*s*s/2,a6:1-s};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},83960(e,t,n){n.d(t,{X_:()=>s,oW:()=>a,zx:()=>o});var r=n(34727),i=n(86211);function s(e,t){const n=t||e.extent,r=e.width,s=(0,i.GA)(n?.spatialReference);return n&&r?n.width/r*s*i.dy*96:0}function o(e,t,n){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,n)}function a(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},55156(e,t,n){n.d(t,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&r in t?e[r]:void 0;var t}},79457(e,t,n){n.r(t),n.d(t,{default:()=>se});var r=n(5482),i=n(37838),s=n(11254),o=n(69540),a=n(49186),l=n(36563),u=n(4718),c=n(53966),p=n(25728),d=n(17676),f=n(91429),h=n(56507),m=n(5443),g=n(16930),y=n(50498),v=n(55156),w=n(60950),b=n(89808),M=n(99959);const I=Symbol("isStreamGraphicOrigin");var x;class _ extends M.A{get[(x=I,w.ym)](){return this.layer}get[v.e](){return this.layer}get[b.Q](){return this.layer}constructor(e){super(),this[x]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var T,A=n(4146),S=n(18768),C=n(63074),j=n(69208),O=n(6455),E=n(87718),F=n(56658),R=n(16131),P=n(8303),Z=n(54310),N=n(25036),D=n(82935),k=n(63396),L=n(10873),U=n(15426),$=n(20437),G=n(17036),z=n(30524),q=n(46499),V=n(39383),J=n(25482);let K=class extends J.o{static{T=this}constructor(e){super(e),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new T({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,r.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],K.prototype,"age",void 0),(0,r.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],K.prototype,"ageReceived",void 0),(0,r.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],K.prototype,"displayCount",void 0),(0,r.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],K.prototype,"maxObservations",void 0),K=T=(0,r.Cg)([(0,f.$K)("esri.layers.support.PurgeOptions")],K);var Y=n(72691),B=n(65494),H=n(8947),W=n(41214),Q=n(61956),X=n(30291),ee=n(88625),te=n(59923),ne=n(36005);const re=(0,G.p)();let ie=class extends((0,O.FJ)((0,F.J)((0,E.F)((0,C.dM)((0,D.e)((0,k.d)((0,N.j)((0,Z.J)((0,S.b)((0,R.q)((0,P.A)((0,p.M)((0,j.d)((0,o.OU)(A.A))))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new _(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new K,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=g.A.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,r)=>{const{save:i,saveAs:s}=await n.e(7301).then(n.bind(n,87301));switch(e){case 0:return i(this,t);case 1:return s(this,r,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new a.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,z.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,n){t=t.layerDefinition||t;const r=t.drawingInfo?.renderer;if(r){const e=(0,B.L)(r,t,n)||void 0;return e||c.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:n}),e}return(0,U.PD)(t,n)}async connect(e){const[{createConnection:t}]=await Promise.all([Promise.all([n.e(893),n.e(2303)]).then(n.bind(n,30624)),this.load()]),r=this.geometryType?y.gy.toJSON(this.geometryType):null,{customParameters:i=null,definitionExpression:s=null,geometryDefinition:o=null,maxReconnectionAttempts:a=0,maxReconnectionInterval:u=20,spatialReference:c=this.spatialReference}=e||this.createConnectionParameters(),p=t(this.parsedUrl,this.spatialReference,c,r,s,o,a,u,i??void 0),d=(0,l.vE)([this.on("send-message-to-socket",e=>p.sendMessageToSocket(e)),this.on("send-message-to-client",e=>p.sendMessageToClient(e))]);return p.once("destroy",d.remove),p}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,X.tn)(this,e)}createQuery(){const e=new Q.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let n=null;return this.fields.some(t=>(t.name===e&&(n=t.domain),!!n)),n}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){return this.webSocketUrl?((0,te.U4)(t,this,"a custom websocket connection cannot be written to web scenes and web maps"),null):this.parsedUrl?super.write(e,t):((0,te.U4)(t,this,"a client-side only connection without a url cannot be written to web scenes and web maps"),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new a.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find(e=>"oid"===e.type)?.name;if(!e)throw new a.A("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new a.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new $.A({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new a.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,z.yp)(this.renderer,this.fieldsIndex),(0,z.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField=Y.DN),(0,H.L)(this,{origin:"service"})}};(0,r.Cg)([(0,f.MZ)({type:String})],ie.prototype,"copyright",void 0),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],ie.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,f.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ie.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,f.MZ)({type:String})],ie.prototype,"displayField",void 0),(0,r.Cg)([(0,f.MZ)({type:ee.A})],ie.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,f.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],ie.prototype,"featureReduction",null),(0,r.Cg)([(0,f.MZ)(re.fields)],ie.prototype,"fields",void 0),(0,r.Cg)([(0,f.MZ)(re.fieldsIndex)],ie.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,f.MZ)({type:m.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],ie.prototype,"geometryDefinition",void 0),(0,r.Cg)([(0,f.MZ)({type:y.gy.apiValues,json:{read:{reader:y.gy.read}}})],ie.prototype,"geometryType",void 0),(0,r.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],ie.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,f.MZ)(L.kF)],ie.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,f.MZ)({type:[q.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:V.w},write:!0}})],ie.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,f.MZ)(L.fV)],ie.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,f.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],ie.prototype,"listMode",void 0),(0,r.Cg)([(0,f.MZ)({type:h.jz})],ie.prototype,"maxReconnectionAttempts",void 0),(0,r.Cg)([(0,f.MZ)({type:h.jz})],ie.prototype,"maxReconnectionInterval",void 0),(0,r.Cg)([(0,f.MZ)(L.hG)],ie.prototype,"maxScale",void 0),(0,r.Cg)([(0,f.MZ)(L.hn)],ie.prototype,"minScale",void 0),(0,r.Cg)([(0,f.MZ)({type:String})],ie.prototype,"objectIdField",void 0),(0,r.Cg)([(0,f.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],ie.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,f.MZ)({readOnly:!0})],ie.prototype,"outFields",void 0),(0,r.Cg)([(0,f.MZ)(L.M6)],ie.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,f.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],ie.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,f.MZ)({type:K})],ie.prototype,"purgeOptions",void 0),(0,r.Cg)([(0,f.MZ)({json:{read:!1,write:!1}})],ie.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,f.MZ)({types:W.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:W.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],ie.prototype,"renderer",null),(0,r.Cg)([(0,ne.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,ne.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],ie.prototype,"readRenderer",null),(0,r.Cg)([(0,f.MZ)((()=>{const e=(0,u.o8)(L.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],ie.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,f.MZ)()],ie.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,f.MZ)({type:g.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],ie.prototype,"spatialReference",void 0),(0,r.Cg)([(0,f.MZ)({json:{read:!1}})],ie.prototype,"type",void 0),(0,r.Cg)([(0,f.MZ)(L.OZ)],ie.prototype,"url",void 0),(0,r.Cg)([(0,f.MZ)({type:Number})],ie.prototype,"updateInterval",void 0),(0,r.Cg)([(0,f.MZ)({json:{read:!1,write:!1}})],ie.prototype,"useViewTime",void 0),(0,r.Cg)([(0,f.MZ)({type:String})],ie.prototype,"webSocketUrl",void 0),ie=(0,r.Cg)([(0,f.$K)("esri.layers.StreamLayer")],ie);const se=ie},54339(e,t,n){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>i})},18768(e,t,n){n.d(t,{b:()=>a});var r=n(5482),i=n(53966),s=n(91429),o=n(60694);const a=e=>{const t=e;let n=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,i.A.getLogger(this)))}};return(0,r.Cg)([(0,s.MZ)()],n.prototype,"title",null),(0,r.Cg)([(0,s.MZ)({type:String})],n.prototype,"url",null),n=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],n),n}},69208(e,t,n){n.d(t,{d:()=>s});var r=n(5482),i=n(91429);const s=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,r.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],n.prototype,"customParameters",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],n),n}},6455(e,t,n){n.d(t,{FJ:()=>y,Dp:()=>v,KV:()=>w});var r=n(5482),i=n(93637),s=n(91429),o=n(89317),a=n(69540),l=n(7762),u=n(25482),c=n(83960),p=n(13069);const d={write:{overridePolicy:(e,t,n)=>({enabled:!n||"scale"===n.filterMode})}};let f=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.id=(0,p.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:d})],f.prototype,"maxScale",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:d})],f.prototype,"minScale",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=(0,r.Cg)([(0,s.$K)("esri.layers.support.DisplayFilter")],f);var h=n(41560),m=n(43937);let g=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(l.A.ofType(f)),this.mode="manual"}writeFilters(e,t,n,r){const i=e.toArray();"scale"===this.mode&&i.sort((e,t)=>{const n=(0,c.oW)(t.minScale,e.minScale),r=e.maxScale-t.maxScale;return 0===n?r:n}),t[n]=i.map(e=>e.toJSON(r))}write(e,t){return super.write(e,(0,h.mW)(this,t))}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,n)=>({enabled:"manual"===n.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,r.Cg)([(0,s.MZ)({type:l.A.ofType(f),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,r.Cg)([(0,m.K)("filters")],g.prototype,"writeFilters",null),(0,r.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,r.Cg)([(0,s.$K)("esri.layers.support.DisplayFilterInfo")],g);const y=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,r.Cg)([(0,s.MZ)(v)],n.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,s.MZ)(w)],n.prototype,"displayFilterInfo",void 0),n=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.DisplayFilteredLayer")],n),n},v={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:o.K,writer(e,t,n){(0,i.sM)(n,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},w={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:o.K},origins:{"web-scene":{write:!1,read:!1}}}}},8303(e,t,n){n.d(t,{A:()=>M});var r=n(5482),i=n(92602),s=n(70333),o=n(11254),a=n(60999),l=n(49186),u=n(53966),c=n(97768),p=n(17676),d=n(84952),f=n(91429),h=n(77548),m=n(20655),g=n(80812),y=n(41318),v=n(10407),w=n(36005),b=n(43937);const M=e=>{const t=e;let M=class extends t{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}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new g.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(n.bind(n,41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!s.id?.findCredential(this.url),i=e===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let o,a;if(i)o=n.portal.url;else try{o=await(0,h.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await n.reload():(n=new g.default({id:e,portal:{url:o}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,r)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,v.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const n=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=s.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=m.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(r))return i.user;const l=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?y.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return n&&r&&!(0,d.ut)(r.restUrl,n.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,r.Cg)([(0,f.MZ)({type:g.default})],M.prototype,"portalItem",null),(0,r.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,r.Cg)([(0,b.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,r.Cg)([(0,f.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,r.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],M),M},I={credential:null,user:null}},82935(e,t,n){n.d(t,{B:()=>d,e:()=>f});var r=n(5482),i=n(91429),s=n(89317),o=n(30524),a=n(96184),l=n(73133),u=n(79677),c=n(10184),p=n(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},f=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const r=n.timeOffset,i=l.j.fromJSON(n.timeOffsetUnits);return r&&i?new c.A({value:r,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,r.Cg)([(0,i.MZ)({type:c.A})],n.prototype,"timeOffset",void 0),(0,r.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,r.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,r.Cg)([(0,i.MZ)(d)],n.prototype,"useViewTime",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],n),n}},63396(e,t,n){n.d(t,{d:()=>I});var r=n(5482),i=n(91429),s=n(60950),o=n(99959);class a extends o.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[s.ym](){return this.trackInfoProvider.trackInfo}}var l=n(37838),u=n(69540),c=n(25482),p=n(93637),d=n(50820),f=n(10873),h=n(46499),m=n(41214);let g=class extends((0,u.OU)(c.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,r.Cg)([(0,i.MZ)({type:[h.A],json:{write:!0}})],g.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,i.MZ)(f.kF)],g.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,i.MZ)({types:m.Hg,json:{write:!0}})],g.prototype,"renderer",void 0),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"visible",void 0),g=(0,r.Cg)([(0,i.$K)("esri.layers.support.TrackPartInfo")],g);var y=n(96576),v=n(59868),w=n(10184),b=n(43937);let M=class extends((0,u.OU)(c.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new g({renderer:new y.A({symbol:v.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new g({renderer:new y.A({symbol:v.UK.clone()})}),this.trackLines=new g({renderer:new y.A({symbol:v.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,n){const r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,p.sM)(n,r,t)}};(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"enabled",void 0),(0,r.Cg)([(0,i.MZ)({type:[d.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,r.Cg)([(0,b.K)("fields")],M.prototype,"writeFields",null),(0,r.Cg)([(0,i.MZ)({type:g,json:{write:!0}})],M.prototype,"latestObservations",void 0),(0,r.Cg)([(0,i.MZ)({type:w.A,json:{write:!0}})],M.prototype,"maxDisplayDuration",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:!0}})],M.prototype,"maxDisplayObservationsPerTrack",void 0),(0,r.Cg)([(0,i.MZ)(f.M6)],M.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{name:"popupInfo",write:!0}})],M.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,i.MZ)({type:g,json:{write:!0}})],M.prototype,"previousObservations",void 0),(0,r.Cg)([(0,i.MZ)({type:g,json:{write:!0}})],M.prototype,"trackLines",void 0),(0,r.Cg)([(0,i.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],M.prototype,"timeField",void 0),M=(0,r.Cg)([(0,i.$K)("esri.layers.support.TrackInfo")],M);const I=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,r.Cg)([(0,i.MZ)({readOnly:!0,clonable:!1})],n.prototype,"trackGraphicOrigin",void 0),(0,r.Cg)([(0,i.MZ)({type:M})],n.prototype,"trackInfo",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.TrackableLayer")],n),n}},96184(e,t,n){n.d(t,{A:()=>f});var r=n(5482),i=n(69540),s=n(25482),o=n(91429),a=n(79677),l=n(10184),u=n(56400),c=n(36005),p=n(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let f=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,p.K)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,r.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,r.Cg)([(0,p.K)("interval")],f.prototype,"writeInterval",null),(0,r.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,r.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],f.prototype,"timeZone",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),(0,r.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],f.prototype,"stops",void 0),f=(0,r.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],f)},41560(e,t,n){n.d(t,{Ch:()=>o,mW:()=>s});var r=n(34727),i=n(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,n){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],c(n)),t[1]=Math.min(t[1],p(r));return t}(e);if(s&&((0,r.gg)(t,s[0])||(0,r.ZH)(n,s[1])))return"";const o=Array.from(a(e,t,n)),l=function(e,t,n){if(0===e.length)return!0;const i=c(e.at(0)?.minScale),s=p(e.at(-1)?.maxScale);if((0,r.ZH)(i,t)||(0,r.gg)(s,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],i=e[t+1];if((0,r.ZH)(c(i.minScale),p(n.maxScale)))return!0}return!1}(o,t,n)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,n){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)l(r.minScale,r.maxScale,t,n)&&(yield r)}}function l(e,t,n,i){return e=c(e),n=c(n),t=p(t),!(!(0,r.Sp)(n,e)&&(i??n)>e||(0,r.Hx)(t,n)||void 0!==i&&(0,r.Sp)(i,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},17036(e,t,n){n.d(t,{p:()=>l});var r=n(44208),i=n(53966),s=n(20437),o=n(95466),a=n(30524);function l(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");i.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const n=this.fieldsIndex?.has(t);n||i.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},32730(e,t,n){n.d(t,{BI:()=>f,D3:()=>p,XJ:()=>d,lc:()=>c,mX:()=>m,rU:()=>h,tH:()=>b});var r=n(799);const i="__begin__",s="__end__",o=new RegExp(i,"ig"),a=new RegExp(s,"ig"),l=new RegExp("^"+i,"i"),u=new RegExp(s+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function p(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function d(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function f(e){const t=d(e);if(!t)return null;switch(t.type){case"conventional":return m(t.expression);case"arcade":return t.expression}return null}function h(e){const t=d(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(g);return t?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function m(e){let t;return e?(t=(0,r.HC)(e,e=>i+'$feature["'+e+'"]'+s),t=l.test(t)?t.replace(l,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(a,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,v=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,w=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=y.exec(e)||v.exec(e);return t?t[1]||t[3]:(t=w.exec(e),t?t[2]:null)}},72691(e,t,n){n.d(t,{Aw:()=>o,DN:()=>r,EA:()=>s,Gm:()=>i,xq:()=>a});const r="__esri_stream_id__",i="__esri_timestamp__",s="__esri_track_part__",o="__esri_time_received__",a="__esri_track_line__"},10407(e,t,n){n.d(t,{It:()=>f,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>p});var r=n(91218),i=n(16930),s=n(28735);function o(e,t){if(!a(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const n=i.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function f(e){const{portal:t,isOrgItem:n,itemControl:r}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!n&&!!i?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}},73681(e,t,n){n.d(t,{n:()=>l});var r=n(49186),i=n(53966),s=n(46140),o=n(95466),a=n(55674);class l{static async from(e,t,n){const o=e.dictionary_version?s.A.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(n))d.delete(e);d.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,a.xR)(e.expression,null,p);if(!f)throw new r.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new u(n,h);return new l(h,c,f,m)}constructor(e,t,n,r){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=n,this._reader=r}get itemNames(){return this._itemNames}evaluate(e,t,n,r){try{return this._reader.bind(e,n,r),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},61760(e,t,n){n.d(t,{PU:()=>o,YW:()=>l,ex:()=>i,hv:()=>a,zp:()=>s}),n(34727);var r=n(90629);n(78955),n(91829);const i=2.4;function s(e){return(0,r.PN)(e*i)}function o(e){return(0,r.Lz)(e)/i}function a(e,t,n){const r=Math.sqrt(e**2+t**2)/n;return r>1?0:3/(Math.PI*n**2)*(1-r**2)**2}function l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},8947(e,t,n){n.d(t,{L:()=>o});var r=n(60999),i=n(17676),s=n(67076);async function o(e,t,n){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,r.Ke)(o.populateFromStyle());if((0,i.Te)(n),!1===a.ok){const n=a.error;t?.messages&&t.messages.push(new s.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${n.message}`,{error:n,context:t})),e.clear("renderer",t?.origin)}}}},41366(e,t,n){n.d(t,{K:()=>p,Q:()=>l});var r=n(5482),i=n(66552),s=n(53966),o=n(91429),a=n(93223);const l=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",p=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&c||n&&u||null,t&&n&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,r.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},55674(e,t,n){n.d(t,{Ad:()=>f,Gj:()=>g,QY:()=>d,lL:()=>y,xR:()=>h});var r=n(66131),i=n(49186),s=(n(44208),n(44729)),o=n(15032),a=n(65864),l=n(95466),u=n(43668),c=n(98623);const p=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const n of p)t.hasArcadeDependency(n)&&e.add(n);return e}function f(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,n){return m.create(e,t,n,["$feature","$view","$config"])}class m{static async create(e,t,n,r){const{arcade:s,Dictionary:o}=await(0,u.l)();let a;try{a=s.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=s.scriptUsesGeometryEngine(a);l&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,a,null,!1,l);const c={vars:r.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=s.compileScript(a,c);let d=null;null!=n&&(d=new o(n),d.immutable=!0);const f=new o;return f.immutable=!1,f.setField("scale",0),new m(e,s,a,p,t,f,d,o)}constructor(e,t,n,r,i,s,o,a){this.script=e,this._arcade=t,this._syntaxTree=n,this._compiled=r,this._spatialReference=i,this._viewDict=s,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new g,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const n=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=n?r.lY.epochToArcadeDate(i,n):r.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=s?null!=n?r.lY.epochToArcadeDate(s,n):r.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:n})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class g{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,n){const r=t??new l.A(y(e.attributes));this._boundTarget=e,this._boundSchema.fields=r.fields,this._boundSchema.fieldsIndex=r,this._boundSchema.spatialReference=n}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const n=this._getField(e);if(n){const t=this._boundTarget.attributes[n.name];if(null==t)return null;switch(n.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?r.lY.unknownEpochToArcadeDate(t):r.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function y(e){const t=[];for(const n in e)t.push({name:n,alias:n,type:"string"==typeof e[n]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3456,3637,5611,6061,7992,9397],{61691(t,e,n){n.d(e,{G:()=>r});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,n){n.d(e,{S:()=>s});var r=n(61691);class s extends r.G{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,a,u,h,c,f,l,m,g,x){return[t,e,n,r,s,i,o,a,u,h,c,f,l,m,g,x]}},Symbol.toStringTag,{value:"Module"}))},51850(t,e,n){function r(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,n){return[t,e,n]}function o(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function u(){return i(1,1,1)}function h(){return i(1,0,0)}function c(){return i(0,1,0)}function f(){return i(0,0,1)}n.d(e,{CN:()=>o,Cb:()=>d,Cw:()=>g,JP:()=>x,Un:()=>m,ci:()=>a,fA:()=>i,o8:()=>s,uY:()=>l,vt:()=>r});const l=[0,0,0],m=u(),g=h(),x=c(),d=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:g,UNIT_Y:x,UNIT_Z:d,ZEROS:l,clone:s,create:r,freeze:o,fromArray:a,fromValues:i,ones:u,unitX:h,unitY:c,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>I,Bw:()=>i,C:()=>o,Cc:()=>A,DI:()=>E,Il:()=>L,Io:()=>M,Ln:()=>p,Om:()=>_,Qr:()=>f,Re:()=>h,S8:()=>b,T9:()=>x,WQ:()=>u,Z0:()=>S,_S:()=>m,aI:()=>R,ei:()=>O,gL:()=>P,hG:()=>y,hZ:()=>a,hs:()=>d,jb:()=>N,jk:()=>g,lo:()=>X,lw:()=>c,m3:()=>v,oW:()=>Y,t2:()=>Z,tn:()=>l,uE:()=>k,xg:()=>z,ze:()=>C});var r=n(51850),s=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function x(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(n*n+r*r+s*s)}function y(t,e){const n=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return n*n+r*r+s*s}function v(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function E(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function b(t,e){const n=e[0],r=e[1],s=e[2];let i=n*n+r*r+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2];return t[0]=s*u-i*a,t[1]=i*o-r*u,t[2]=r*a-s*o,t}function A(t,e,n,r){const s=e[0],i=e[1],o=e[2];return t[0]=s+r*(n[0]-s),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function S(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=n[0]*r+n[4]*s+n[8]*i+n[12],t[1]=n[1]*r+n[5]*s+n[9]*i+n[13],t[2]=n[2]*r+n[6]*s+n[10]*i+n[14],t}function O(t,e,n){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0]+s*n[3]+i*n[6],t[1]=r*n[1]+s*n[4]+i*n[7],t[2]=r*n[2]+s*n[5]+i*n[8],t}function P(t,e,n){const r=n[0],s=n[1],i=n[2],o=n[3],a=e[0],u=e[1],h=e[2],c=s*h-i*u,f=i*a-r*h,l=r*u-s*a,m=s*l-i*f,g=i*c-r*l,x=r*f-s*c,d=2*o;return t[0]=a+c*d+2*m,t[1]=u+f*d+2*g,t[2]=h+l*d+2*x,t}const w=(0,r.vt)(),F=(0,r.vt)();function Z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function R(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],u=e[2],h=(0,s.FD)();return Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))}function Y(t,e,n){const r=n[0]-e[0],s=n[1]-e[1],i=n[2]-e[2];let o=r*r+s*s+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=s*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=h,V=c,T=f,z=M,X=y,L=i,k=v;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:u,angle:function(t,e){b(w,t),b(F,e);const n=_(w,F);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,s,i){const o=1-i,a=o*o,u=i*i,h=a*o,c=3*i*a,f=3*u*o,l=u*i;return t[0]=e[0]*h+n[0]*c+r[0]*f+s[0]*l,t[1]=e[1]*h+n[1]*c+r[1]*f+s[1]*l,t[2]=e[2]*h+n[2]*c+r[2]*f+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:I,crossAndNormalize:function(t,e,n){const r=e[0],s=e[1],i=e[2],o=n[0],a=n[1],u=n[2],h=s*u-i*a,c=i*o-r*u,f=r*a-s*o,l=Math.sqrt(h*h+c*c+f*f);return t[0]=h/l,t[1]=c/l,t[2]=f/l,t},direction:Y,dist:z,distance:M,div:T,divide:f,dot:_,equals:R,exactEquals:Z,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,s,i){const o=i*i,a=o*(2*i-3)+1,u=o*(i-2)+i,h=o*(i-1),c=o*(3-2*i);return t[0]=e[0]*a+n[0]*u+r[0]*h+s[0]*c,t[1]=e[1]*a+n[1]*u+r[1]*h+s[1]*c,t[2]=e[2]*a+n[2]*u+r[2]*h+s[2]*c,t},inverse:E,len:L,length:i,lerp:A,max:x,min:g,mul:V,multiply:c,negate:C,normalize:b,random:function(t,e=1){const n=s.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0],i[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),i[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),i[1]=s[1],i[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const s=[],i=[];return s[0]=e[0]-n[0],s[1]=e[1]-n[1],s[2]=e[2]-n[2],i[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),i[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),i[2]=s[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:d,scaleAndAdd:p,set:a,sign:m,sqrDist:X,sqrLen:k,squaredDistance:y,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:h,transformMat3:O,transformMat4:S,transformQuat:P},Symbol.toStringTag,{value:"Module"}))},69397(t,e,n){n.d(e,{Qf:()=>u,Qh:()=>o,RS:()=>s,Ul:()=>m,i5:()=>l,lM:()=>i,qK:()=>c});var r=n(34275);const s=16;function i(t){if(!t)return 0;let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=f;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=c;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return f+t.length*e}const c=32,f=16,l=145,m=64},87992(t,e,n){n.d(e,{JR:()=>I,ME:()=>E,MY:()=>A,NO:()=>C,Nh:()=>_,V2:()=>F,_s:()=>Z,e6:()=>Y,gh:()=>b,tr:()=>V,uX:()=>d});var r=n(5482),s=n(69397),i=n(16930),o=(n(70328),n(19419)),a=n(60408),u=n(21325),h=n(513),c=n(50954),f=n(79567),l=n(52006),m=n(49663),g=n(46068),x=n(92722);class d{constructor({type:t,spatialReference:e,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:f,segmentCountArc:l,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=f,this.segmentCountArc=l,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:n}=this;return t&&t-e-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?s.Ul+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=F(t,e,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(a.vertexXY.set(u.subarray(0,2*e),0),a.vertexZ?.set(h.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,n+1)),a.partOffsets.set(t.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(n.subarray(0,e),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,u.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const n=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,n)=>Math.abs(t-n)>e||isNaN(t)!==isNaN(n);for(let e=0;e<this.vertexCount;++e)if(n(this.vertexXY[2*e],t.vertexXY[2*e])||n(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(n(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(n(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(t){this.geometry=t,this.value=new M(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class M{constructor(t){this.geometry=t,this.index=-1,this._readVertex=P(t),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class y{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new v(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=P(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[n++],r=e[n++],s=e[n++],i=e[n++];return{b:[this.end,[t,r],[s,i]]}}const r=e[n++],s=e[n++],i=e[n++],o=e[n++],a=e[n++],u=e[n++];n++,n++;const h=e[n++],c=e[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[h,c]]};const f=2&r?0:1,l=1&r?0:1;return{a:[this.end,[a,u],f,l,o,s,i]}}}function C(t,e){const n={stack:[],error:void 0,hasError:!1};try{return e??=(0,o.Ie)(),(0,r.mS)(n,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(e,function(t){let e;const{vertexCount:n,vertexXY:s,vertexZ:i,vertexM:a}=t,u=O(t);if(t.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new S(t,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:n}of e.segments)(0,f.e)(s,t,n),t=(0,l.yP)(n)}const[i,a,h,c]=s;e={xmin:i,ymin:a,xmax:h,ymax:c,spatialReference:u}}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}else{let t,r,i,o;t=r=1/0,i=o=-1/0;for(let e=0;e<n;++e){const n=s[2*e],a=s[2*e+1];t=Math.min(t,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}e={xmin:t,ymin:r,xmax:i,ymax:o,spatialReference:u}}if(i){let t=1/0,n=-1/0;for(const e of i)t=Math.min(t,e),n=Math.max(n,e);e.zmin=t,e.zmax=n}if(a){let t=1/0,n=-1/0;for(const e of a)t=Math.min(t,e),n=Math.max(n,e);e.mmin=t,e.mmax=n}return e}(t)),e}catch(t){n.error=t,n.hasError=!0}finally{(0,r.hk)(n)}}function E(t){let e,n,r;if((0,a.fT)(t)){r="point";const{x:s,y:i,z:o,m:a}=t,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],e=1}else(0,a.U9)(t)?(r="multipoint",n=[t.points],e=t.points.length):(0,a.Rg)(t)?(r="polyline",n=t.curvePaths??t.paths,e=n.reduce((t,e)=>t+e.length,0)):(r="polygon",n=t.curveRings??t.rings,e=n.reduce((t,e)=>(0===e.length||(t+=e.length,w(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const s=F(r,e,r.includes("point")?0:n.length,(0,a.Pv)(t),(0,a.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:c}=s;function f(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),o&&(c[g]=t[m]),++g}s.spatialReference=t.spatialReference??void 0;const m=s.hasZ?3:2;let g=0;if(!s.isMultipart()){if(!i&&!o){for(const[t,e]of n[0])u[2*g]=t,u[2*g+1]=e,++g;return s}for(const t of n[0])f(t);return s}const x="polygon"===r,{partOffsets:d}=s;let p=0;if(!s.hasCurves()){for(const t of n){if(d[p++]=g,0===t.length)continue;let e=t.length;if(x&&w(t[0],t.at(-1))&&--e,i||o)for(let n=0;n<e;++n)f(t[n]);else for(let n=0;n<e;++n){const[e,r]=t[n];u[2*g]=e,u[2*g+1]=r,++g}}return d[p]=g,s}function M(t){const e=y+t;if(e<=(s.segmentParams?.length??0))return;let n=e*T;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let y=0;for(const t of n){if(s.partOffsets[p++]=g,0===t.length)continue;const e=t[0];let n=e;for(let e=1;e<t.length;++e){const r=t[e];f(n);const i=g-1;(0,l.wY)(r)?(M(10),++s.segmentCountArc,y=Z(n,r,s,i,y),n=r.a[0]):(0,l.DA)(r)?(M(10),++s.segmentCountArc,y=R(n,r,s,i,y),n=r.a[0]):(0,l.aO)(r)?(M(10),++s.segmentCountArc,y=Y(n,r,s,i,y),n=r.c[0]):(0,l.n1)(r)?(M(4),++s.segmentCountBezier,y=V(0,r,s,i,y),n=r.b[0]):n=r}x&&w(e,n)||f(n)}return s.partOffsets[p]=g,s}function b(t){const e=P(t),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=t,o=O(t);if("point"===t.type){const[e,n]=t.vertexXY,r=t.vertexZ?.[0],s=t.vertexM?.[0];return{x:e,y:n,z:r,m:s,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<n;)t.push(e(a++));return{points:t,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=t.partOffsets[s+1],i=new Array;for(;a<r;)i.push(e(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const h=new Array;for(const{segments:e,startVertex:n}of t.parts){const t=[n];for(const{curve:n}of e)t.push(n);h.push(t)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:n,hasZ:r,hasM:s},i){const o=t.includes("point")?0:e.length,a="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);r??=!1,s??=!1;const h=F(t,u,o,r,s,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=n[e++],h.vertexXY[2*t+1]=n[e++],r&&(h.vertexZ[t]=n[e++]),s&&(h.vertexM[t]=n[e++]);return h}const c=2+Number(r)+Number(s);let f=0,l=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[l],i=e+t-Number(a);h.partOffsets[++l]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=n[f++],h.vertexXY[2*t+1]=n[f++],r&&(h.vertexZ[t]=n[f++]),s&&(h.vertexM[t]=n[f++]);a&&(f+=c)}return h}function I({type:t,vertexCount:e,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const h=new x.A([],[],a,u);i=Math.max(i,1);const c="polygon"===t;let f=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,l=h.coords.length;for(let t=f;t<i;++t)h.coords.push(n[2*t],n[2*t+1]),a&&h.coords.push(r[t]),u&&h.coords.push(s[t]);if(c){const t=f;h.coords.push(n[2*t],n[2*t+1]),a&&h.coords.push(r[t]),u&&h.coords.push(s[t])}h.lengths.push((h.coords.length-l)/h.stride),f=i}return"point"===t&&(h.lengths.length=0),h}function A(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,n=t.isCustomWkid()?0:t.getOldID();if(n<=0)return{wkt:e};let r=t.getLatestID();(r<=0||r===n)&&(r=void 0);const s=t.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:e};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:e};let o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:n,wkt:e,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new d({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const n of e)t[n]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function O({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function P({vertexXY:t,vertexZ:e,vertexM:n}){return e?n?r=>[t[2*r],t[2*r+1],e[r],n[r]]:n=>[t[2*n],t[2*n+1],e[n]]:n?e=>[t[2*e],t[2*e+1],n[e]]:e=>[t[2*e],t[2*e+1]]}function w(t,e){return t.every((t,n)=>t===e[n])}function F(t,e,n,r,s,i,o,a){o??=0,a??=0;const u=new d({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let h=2*Float64Array.BYTES_PER_ELEMENT*e;r&&(h+=Float64Array.BYTES_PER_ELEMENT*e),s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(n+1)*Int32Array.BYTES_PER_ELEMENT,h+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=e*Int8Array.BYTES_PER_ELEMENT,h+=e*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let f=0;return u.vertexXY=new Float64Array(c,f,2*e),f+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(c,f,e),f+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(c,f,e),f+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,f,u.segmentParamCount),f+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,f,e),u.segmentIndices.fill(z),f+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,f,n+1),f+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,f,n+1),f+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(c,f,e),u.segmentFlags.fill(1),f+=u.segmentFlags.byteLength),u}function Z(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,h],c,f,l,m,x]=e.a;let d=4;f||(d|=1),c||(d|=2);const p=(0,g.SW)(t,e),[M,y]=(0,g.Uk)(p,.5);return s[o++]=d,s[o++]=m,s[o++]=x,s[o++]=l,s[o++]=u,s[o++]=h,s[o++]=p.u2-p.u1,s[o++]=p.u1,s[o++]=M,s[o++]=y,o}function R(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,m.i)(t,e);return N(a,4,...(0,h.mq)(a,.5),s,o)}function Y(t,e,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,N((0,c.pM)(t,e),0,...e.c[1],s,o)}function N(t,e,n,r,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),s[i++]=e,s[i++]=c,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=h-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function V(t,{b:[e,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},h,c){return o[h]=2,a[h]=c,u[c++]=n,u[c++]=r,u[c++]=s,u[c++]=i,c}const T=1.61803,z=-1},81150(t,e,n){n.d(e,{Pg:()=>u,fz:()=>h,g7:()=>o,zo:()=>a});var r=n(76061),s=(n(55537),n(88885),n(15756));n(95213);const i=new s.f;function o(t,e,n){return i.execute(t,e,n,null)}function a(t,e,n){const s=i.executeMany(new r.S(t),e,n,null);return Array.from(s)}function u(t,e,n){return i.isSimpleAsFeature(t,e,n,null,null)}function h(){return i.supportsCurves()}},3637(t,e,n){n.r(e),n.d(e,{execute:()=>i,executeMany:()=>o,isSimple:()=>a});var r=n(81150),s=n(83299);function i(t){const e=(0,s.fromGeometry)(t),n=e.getSpatialReference();return(0,s.toGeometry)((0,r.g7)(e.getGeometry(),n,!1),n)}function o(t){const[e,n]=(0,s.fromGeometries)(t);return(0,r.zo)(e,n,!1).map(t=>(0,s.toGeometry)(t,n))}function a(t){const e=(0,s.fromGeometry)(t);return(0,r.Pg)(e.getGeometry(),e.getSpatialReference(),!1)}},4197(t,e,n){n.d(e,{Vj:()=>h,cj:()=>u,jh:()=>i,l5:()=>a,xm:()=>o});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function u(t){return[...t]}function h(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>y,DC:()=>f,Ej:()=>m,Ie:()=>p,Jt:()=>M,Ne:()=>g,RF:()=>c,aI:()=>C,fA:()=>o,gE:()=>u,hZ:()=>d,iT:()=>l,is:()=>v,qv:()=>E,vI:()=>x,vY:()=>a,v_:()=>b,vt:()=>i,w1:()=>h}),n(35522);var r=n(5443),s=(n(19419),n(4197));function i(t=b){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,n,r=i()){return d(r,E),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],u=t[4],h=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),h=Math.max(h,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=h}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,i,o,a,u]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=i,e[9]=n,e[10]=a,e[11]=u,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function h(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function x(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,E):i(E)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function y(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function v(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!v(t)||!v(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];i()},92722(t,e,n){n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,o=r-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],i=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+i),s=a,i=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6061,6312,6342,8125],{61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},36633(e,t,r){r.d(t,{O:()=>g});var n=r(55537),s=r(79187),i=r(83661),o=r(15756);function a(){return u(new i.P,-1,Number.NaN)}function u(e,t,r){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:r,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function h(e,t,r=-1,a=-1){if(e.isEmpty())return 3;const u=e.getGeometryType();if((0,n.f)(u))return function(e,t,r,s){if(r>=0||s>=0)return(0,n.a)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const r=i.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return r<0?1:r>0?0:2}const o=e.getClosestCoordinate(t,!1),a=e.getTangent(o),u=e.getCoord2D(o),c=i.P.orientationRobust(t,u,u.add(a));return c<0?1:c>0?0:2}(e,t,r,a);if(u===n.G.enumPolygon)return function(e,t,r,i){(r>=0||i>=0)&&(0,n.a)("");const a=new s.Envelope2D;e.queryEnvelope(a);const u=(0,o.l)(e,t,0);return 0===u?0:1===u?1:2}(e,t,r,a);if(u===n.G.enumPolyline)return function(e,t,r,s){(r<0&&s>=0||r>=0&&s<0)&&(0,n.a)("");const o=e.querySegmentIterator();if(r<0){let e=Number.MAX_VALUE,n=0;for(;o.nextPath();)for(;o.hasNextSegment();){const a=o.nextSegment(),u=a.getClosestCoordinate(t,!1),c=a.getCoord2D(u),h=i.P.sqrDistance(c,t);h<e?(n=1,r=o.getStartPointIndex(),s=o.getPathIndex(),e=h):h===e&&n++}if(0===n)return 3;if(1===n)return o.resetToVertex(r,s),h(o.nextSegment(),t)}const a=function(e,t,r,n){const s={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(s.i1=function(e,t,r){for(e.resetToVertex(t,r);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,r);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,r,n),-1!==s.i1){t.resetToVertex(s.i1,-1);const r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),o=r.getCoord2D(n),a=i.P.sqrDistance(o,e);{const t=o.clone();t.subThis(r.getStartXY());const n=e.clone();n.subThis(r.getStartXY()),s.bRight1=t.crossProduct(n)<0}if(s.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2){t.resetToVertex(s.i2,-1);const r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),o=r.getCoord2D(n);if(i.P.sqrDistance(o,e)>a)s.i2=-1;else{const t=o.clone();t.subThis(r.getStartXY());const n=e.clone();n.subThis(r.getStartXY()),s.bRight2=t.crossProduct(n)<0}}if(-1===s.i2&&(s.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2)){t.resetToVertex(s.i2,-1);const r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),o=r.getCoord2D(n);if(i.P.sqrDistance(o,e)>a)s.i2=-1;else{const t=o.clone();t.subThis(r.getStartXY());const n=e.clone();n.subThis(r.getStartXY()),s.bRight2=t.crossProduct(n)<0;const i=s.i1;s.i1=s.i2,s.i2=i;const a=s.bRight1;s.bRight1=s.bRight2,s.bRight2=a}}}return s}(t,o,r,s);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{o.resetToVertex(a.i1,-1);const e=o.nextSegment().getTangent(1);o.resetToVertex(a.i2,-1);const t=o.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return o.resetToVertex(r,s),h(o.nextSegment(),t)}(e,t,r,a);if(u===n.G.enumEnvelope){const r=new s.Envelope2D;return e.queryEnvelope(r),r.contains(t)?r.containsExclusive(t)?1:2:0}return 3}var l=r(95213);class g{getOperatorType(){return 10500}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,r,s){if(t.isNAN()&&(0,n.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertex(e,t);case n.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case n.G.enumPolyline:case n.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,r,s);default:(0,n.t)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,n.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertex(e,t);case n.G.enumMultiPoint:case n.G.enumPolyline:case n.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,n.t)("")}}getNearestVertices(e,t,r,s){if(0===s&&(0,n.a)(""),t.isNAN()&&(0,n.a)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertices(e,t,r,s);case n.G.enumMultiPoint:case n.G.enumPolyline:case n.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,r,s);default:(0,n.t)("")}}multiPathGetNearestCoordinate(e,t,r,a){if(e.getGeometryType()===n.G.enumPolygon&&r){const r=new s.Envelope2D;e.queryEnvelope(r);const n=(0,l.d)(null,r,!1);let i;if(i=(0,o.l)(e,t,a?0:n),0!==i){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),g=new i.P;let m=-1,f=-1,x=Number.MAX_VALUE,p=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),r=e.getClosestCoordinate(t,!1),n=e.getCoord2D(r),s=i.P.sqrDistance(n,t);s<x?(p=1,g.assign(n),m=c.getStartPointIndex(),f=c.getPathIndex(),x=s):s===x&&p++}-1===m&&(0,n.a)("");const y=u(g,m,Math.sqrt(x));if(a)if(e.getGeometryType()!==n.G.enumPolygon){let r=!1;if(p>1){const n=h(e,t,m,f);r=0!==n&&3!==n}else c.resetToVertex(m,f),r=0!==h(c.nextSegment(),t);y.m_bRightSide=r}else r||0!==(0,o.l)(e,t,0)&&(y.m_bRightSide=!0);return y}pointGetNearestVertex(e,t){const r=e.getXY();return u(r,0,i.P.distance(r,t))}multiVertexGetNearestVertex(e,t){const r=e.getAttributeStreamRef(0),n=e.getPointCount();let s=-1;const o=new i.P;let a=Number.MAX_VALUE;const c=new i.P;for(let e=0;e<n;e++){r.queryPoint2D(2*e,c);const n=i.P.sqrDistance(c,t);n<a&&(o.assign(c),s=e,a=n)}return u(o,s,Math.sqrt(a))}pointGetNearestVertices(e,t,r,n){const s=[];if(0!==n){const n=r*r,o=e.getXY(),a=i.P.sqrDistance(o,t);a<=n&&s.push(u(o,0,Math.sqrt(a)))}return s}multiVertexGetNearestVertices(e,t,r,n){const s=[];if(0!==n){const o=e.getAttributeStreamRef(0),a=e.getPointCount();s.length=n+1;const c=r*r;for(let e=0;e<a;e++){const r=o.read(2*e),n=o.read(2*e+1),a=t.x-r,h=t.y-n,l=a*a+h*h;l<=c&&s.push(u(i.P.construct(r,n),e,Math.sqrt(l)))}s.sort((e,t)=>e.m_distance-t.m_distance)}return s.slice(0,n)}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.G{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(e,t,r){r.d(t,{JR:()=>E,ME:()=>M,MY:()=>R,NO:()=>P,Nh:()=>V,V2:()=>A,_s:()=>w,e6:()=>O,gh:()=>S,tr:()=>Y,uX:()=>p});var n=r(5482),s=r(69397),i=r(16930),o=(r(70328),r(19419)),a=r(60408),u=r(21325),c=r(513),h=r(50954),l=r(79567),g=r(52006),m=r(49663),f=r(46068),x=r(92722);class p{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:g,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=g,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?s.Ul+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=A(e,t,r,n,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(c.subarray(0,t),0),a.vertexM?.set(h.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,u.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=N(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new C(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class C{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=N(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[r++],n=t[r++],s=t[r++],i=t[r++];return{b:[this.end,[e,n],[s,i]]}}const n=t[r++],s=t[r++],i=t[r++],o=t[r++],a=t[r++],u=t[r++];r++,r++;const c=t[r++],h=t[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[c,h]]};const l=2&n?0:1,g=1&n?0:1;return{a:[this.end,[a,u],l,g,o,s,i]}}}function P(e,t){const r={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,n.mS)(r,new G(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=e,u=b(e);if(e.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new G(e,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:r}of t.segments)(0,l.e)(s,e,r),e=(0,g.yP)(r)}const[i,a,c,h]=s;t={xmin:i,ymin:a,xmax:c,ymax:h,spatialReference:u}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,i,o;e=n=1/0,i=o=-1/0;for(let t=0;t<r;++t){const r=s[2*t],a=s[2*t+1];e=Math.min(e,r),i=Math.max(i,r),n=Math.min(n,a),o=Math.max(o,a)}t={xmin:e,ymin:n,xmax:i,ymax:o,spatialReference:u}}if(i){let e=1/0,r=-1/0;for(const t of i)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(const t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}function M(e){let t,r,n;if((0,a.fT)(e)){n="point";const{x:s,y:i,z:o,m:a}=e,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),r=[[u]],t=1}else(0,a.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,a.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,_(t[0],(0,g.yP)(t.at(-1)))&&--e),e),0));const s=A(n,t,n.includes("point")?0:r.length,(0,a.Pv)(e),(0,a.W0)(e),(0,g.Ed)(e)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:c,vertexM:h}=s;function l(e){u[2*f]=e[0],u[2*f+1]=e[1],i&&(c[f]=e[2]),o&&(h[f]=e[m]),++f}s.spatialReference=e.spatialReference??void 0;const m=s.hasZ?3:2;let f=0;if(!s.isMultipart()){if(!i&&!o){for(const[e,t]of r[0])u[2*f]=e,u[2*f+1]=t,++f;return s}for(const e of r[0])l(e);return s}const x="polygon"===n,{partOffsets:p}=s;let y=0;if(!s.hasCurves()){for(const e of r){if(p[y++]=f,0===e.length)continue;let t=e.length;if(x&&_(e[0],e.at(-1))&&--t,i||o)for(let r=0;r<t;++r)l(e[r]);else for(let r=0;r<t;++r){const[t,n]=e[r];u[2*f]=t,u[2*f+1]=n,++f}}return p[y]=f,s}function d(e){const t=v+e;if(t<=(s.segmentParams?.length??0))return;let r=t*I;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const e of r){if(s.partOffsets[y++]=f,0===e.length)continue;const t=e[0];let r=t;for(let t=1;t<e.length;++t){const n=e[t];l(r);const i=f-1;(0,g.wY)(n)?(d(10),++s.segmentCountArc,v=w(r,n,s,i,v),r=n.a[0]):(0,g.DA)(n)?(d(10),++s.segmentCountArc,v=Z(r,n,s,i,v),r=n.a[0]):(0,g.aO)(n)?(d(10),++s.segmentCountArc,v=O(r,n,s,i,v),r=n.c[0]):(0,g.n1)(n)?(d(4),++s.segmentCountBezier,v=Y(0,n,s,i,v),r=n.b[0]):r=n}x&&_(t,r)||l(r)}return s.partOffsets[y]=f,s}function S(e){const t=N(e),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=e,o=b(e);if("point"===e.type){const[t,r]=e.vertexXY,n=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:r,z:n,m:s,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<r;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===e.type;if(!e.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=e.partOffsets[s+1],i=new Array;for(;a<n;)i.push(t(a++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:s,hasM:i,spatialReference:o}:{paths:r,hasZ:s,hasM:i,spatialReference:o}}const c=new Array;for(const{segments:t,startVertex:r}of e.parts){const e=[r];for(const{curve:r}of t)e.push(r);c.push(e)}return u?{rings:[],curveRings:c,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:c,hasZ:s,hasM:i,spatialReference:o}}function V(e,{lengths:t,coords:r,hasZ:n,hasM:s},i){const o=e.includes("point")?0:t.length,a="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);n??=!1,s??=!1;const c=A(e,u,o,n,s,!1,0,0);if(c.spatialReference=i??void 0,!c.isMultipart()){for(let e=0,t=0;e<u;++e)c.vertexXY[2*e]=r[t++],c.vertexXY[2*e+1]=r[t++],n&&(c.vertexZ[e]=r[t++]),s&&(c.vertexM[e]=r[t++]);return c}const h=2+Number(n)+Number(s);let l=0,g=0;c.partOffsets[0]=0;for(const e of t){const t=c.partOffsets[g],i=t+e-Number(a);c.partOffsets[++g]=i;for(let e=t;e<i;++e)c.vertexXY[2*e]=r[l++],c.vertexXY[2*e+1]=r[l++],n&&(c.vertexZ[e]=r[l++]),s&&(c.vertexM[e]=r[l++]);a&&(l+=h)}return c}function E({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const c=new x.A([],[],a,u);i=Math.max(i,1);const h="polygon"===e;let l=0;for(let e=0;e<i;++e){const i=o?.[e+1]??t,g=c.coords.length;for(let e=l;e<i;++e)c.coords.push(r[2*e],r[2*e+1]),a&&c.coords.push(n[e]),u&&c.coords.push(s[e]);if(h){const e=l;c.coords.push(r[2*e],r[2*e+1]),a&&c.coords.push(n[e]),u&&c.coords.push(s[e])}c.lengths.push((c.coords.length-g)/c.stride),l=i}return"point"===e&&(c.lengths.length=0),c}function R(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);const s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:i,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new p({...e.toFlatGeometry(),spatialReference:t})}class G{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function b({spatialReference:e}){return e instanceof i.A?e.toJSON():e}function N({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function _(e,t){return e.every((e,r)=>e===t[r])}function A(e,t,r,n,s,i,o,a){o??=0,a??=0;const u=new p({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(c+=Float64Array.BYTES_PER_ELEMENT*t),s&&(c+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(c+=(r+1)*Int32Array.BYTES_PER_ELEMENT,c+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(c+=t*Int8Array.BYTES_PER_ELEMENT,c+=t*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let l=0;return u.vertexXY=new Float64Array(h,l,2*t),l+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(h,l,t),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,l,t),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,t),u.segmentIndices.fill(X),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(h,l,t),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function w(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const[a,[u,c],h,l,g,m,x]=t.a;let p=4;l||(p|=1),h||(p|=2);const y=(0,f.SW)(e,t),[d,v]=(0,f.Uk)(y,.5);return s[o++]=p,s[o++]=m,s[o++]=x,s[o++]=g,s[o++]=u,s[o++]=c,s[o++]=y.u2-y.u1,s[o++]=y.u1,s[o++]=d,s[o++]=v,o}function Z(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const a=(0,m.i)(e,t);return T(a,4,...(0,c.mq)(a,.5),s,o)}function O(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){return r[i]=4,n[i]=o,T((0,h.pM)(e,t),0,...t.c[1],s,o)}function T(e,t,r,n,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:c,radius:h}=e;return u>c||(t|=1),Math.abs(c-u)<=Math.PI||(t|=2),s[i++]=t,s[i++]=h,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=c-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function Y(e,{b:[t,[r,n],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},c,h){return o[c]=2,a[c]=h,u[h++]=r,u[h++]=n,u[h++]=s,u[h++]=i,h}const I=1.61803,X=-1},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>p,fromGeometry:()=>x,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>P,fromSpatialReference:()=>M,getSpatialReference:()=>f,toExtent:()=>V,toGeometry:()=>S,toMultipoint:()=>E,toPoint:()=>R,toPolygon:()=>G,toPolyline:()=>b});var n=r(83661),s=(r(79187),r(55537)),i=r(95213),o=r(88885),a=r(5443),u=r(48526),c=r(86738),h=r(39829),l=r(82799),g=(r(90293),r(83299));const m="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return d(e);case"multipoint":return y(e);case"polyline":return C(e);case"polygon":return v(e);case"extent":return p(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function p(e){if(!e.getCacheValue(m)){const t=new i.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function y(e){if(!e.getCacheValue(m)){const t=new o.M,r=new i.P,n=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,i=n.length;e<i;e++){const i=n[e];r.setXYCoords(i[0],i[1]),a&&r.setZ(i[2]??0),s&&r.setM(i[u]??NaN),t.add(r)}e.setCacheValue(m,t)}return e.getCacheValue(m)}function d(e){if(!e.getCacheValue(m)){const t=new i.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(m,t)}return e.getCacheValue(m)}function v(e){if(!e.getCacheValue(m)){const{curveRings:t,hasM:r,hasZ:n,rings:s}=e,i=(0,g.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:n,rings:s});e.setCacheValue(m,i)}return e.getCacheValue(m)}function C(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:r,hasZ:n,paths:s}=e,i=(0,g.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:n,paths:s});e.setCacheValue(m,i)}return e.getCacheValue(m)}function P(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:r,hasZ:n,paths:s}=e,i=(0,g.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:n,paths:s});e.setCacheValue(m,i)}return e.getCacheValue(m)}function M(e){return(0,g.fromSpatialReference)(e)}function S(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return R(e,t);case s.G.enumEnvelope:return V(e,t);case s.G.enumMultiPoint:return E(e,t);case s.G.enumPolyline:return b(e,t);case s.G.enumPolygon:return G(e,t)}return null}function V(e,t){if(e.isEmpty())return null;const r=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),n=e.getDescription();if(n.hasM()){const t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(n.hasZ()){const t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(m,e),r}function E(e,t){if(e.isEmpty())return null;const r=e.getDescription(),n=r.hasM(),s=r.hasZ(),o=[],a=new i.P;for(let t=0,r=e.getPointCount();t<r;t++){e.getPointByVal(t,a);const r=[a.getX(),a.getY()];s&&r.push(a.getZ()),n&&r.push(a.getM()),o.push(r)}const c=new u.A({hasM:n,hasZ:s,points:o,spatialReference:t});return c.setCacheValue(m,e),c}function R(e,t){if(e instanceof n.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const r=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(r.m=e.getM()),s.hasZ()&&(r.z=e.getZ()),r.setCacheValue(m,e),r}function G(e,t){if(e.isEmpty())return null;const r=h.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(m,e),r}function b(e,t){if(e.isEmpty())return null;const r=l.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(m,e),r}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3931,6061,6342,8125],{61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},36633(e,t,r){r.d(t,{O:()=>g});var n=r(55537),s=r(79187),i=r(83661),o=r(15756);function a(){return u(new i.P,-1,Number.NaN)}function u(e,t,r){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:r,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function h(e,t,r=-1,a=-1){if(e.isEmpty())return 3;const u=e.getGeometryType();if((0,n.f)(u))return function(e,t,r,s){if(r>=0||s>=0)return(0,n.a)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const r=i.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return r<0?1:r>0?0:2}const o=e.getClosestCoordinate(t,!1),a=e.getTangent(o),u=e.getCoord2D(o),c=i.P.orientationRobust(t,u,u.add(a));return c<0?1:c>0?0:2}(e,t,r,a);if(u===n.G.enumPolygon)return function(e,t,r,i){(r>=0||i>=0)&&(0,n.a)("");const a=new s.Envelope2D;e.queryEnvelope(a);const u=(0,o.l)(e,t,0);return 0===u?0:1===u?1:2}(e,t,r,a);if(u===n.G.enumPolyline)return function(e,t,r,s){(r<0&&s>=0||r>=0&&s<0)&&(0,n.a)("");const o=e.querySegmentIterator();if(r<0){let e=Number.MAX_VALUE,n=0;for(;o.nextPath();)for(;o.hasNextSegment();){const a=o.nextSegment(),u=a.getClosestCoordinate(t,!1),c=a.getCoord2D(u),h=i.P.sqrDistance(c,t);h<e?(n=1,r=o.getStartPointIndex(),s=o.getPathIndex(),e=h):h===e&&n++}if(0===n)return 3;if(1===n)return o.resetToVertex(r,s),h(o.nextSegment(),t)}const a=function(e,t,r,n){const s={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(s.i1=function(e,t,r){for(e.resetToVertex(t,r);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,r);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,r,n),-1!==s.i1){t.resetToVertex(s.i1,-1);const r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),o=r.getCoord2D(n),a=i.P.sqrDistance(o,e);{const t=o.clone();t.subThis(r.getStartXY());const n=e.clone();n.subThis(r.getStartXY()),s.bRight1=t.crossProduct(n)<0}if(s.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2){t.resetToVertex(s.i2,-1);const r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),o=r.getCoord2D(n);if(i.P.sqrDistance(o,e)>a)s.i2=-1;else{const t=o.clone();t.subThis(r.getStartXY());const n=e.clone();n.subThis(r.getStartXY()),s.bRight2=t.crossProduct(n)<0}}if(-1===s.i2&&(s.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2)){t.resetToVertex(s.i2,-1);const r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),o=r.getCoord2D(n);if(i.P.sqrDistance(o,e)>a)s.i2=-1;else{const t=o.clone();t.subThis(r.getStartXY());const n=e.clone();n.subThis(r.getStartXY()),s.bRight2=t.crossProduct(n)<0;const i=s.i1;s.i1=s.i2,s.i2=i;const a=s.bRight1;s.bRight1=s.bRight2,s.bRight2=a}}}return s}(t,o,r,s);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{o.resetToVertex(a.i1,-1);const e=o.nextSegment().getTangent(1);o.resetToVertex(a.i2,-1);const t=o.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return o.resetToVertex(r,s),h(o.nextSegment(),t)}(e,t,r,a);if(u===n.G.enumEnvelope){const r=new s.Envelope2D;return e.queryEnvelope(r),r.contains(t)?r.containsExclusive(t)?1:2:0}return 3}var l=r(95213);class g{getOperatorType(){return 10500}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,r,s){if(t.isNAN()&&(0,n.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertex(e,t);case n.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case n.G.enumPolyline:case n.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,r,s);default:(0,n.t)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,n.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertex(e,t);case n.G.enumMultiPoint:case n.G.enumPolyline:case n.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,n.t)("")}}getNearestVertices(e,t,r,s){if(0===s&&(0,n.a)(""),t.isNAN()&&(0,n.a)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertices(e,t,r,s);case n.G.enumMultiPoint:case n.G.enumPolyline:case n.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,r,s);default:(0,n.t)("")}}multiPathGetNearestCoordinate(e,t,r,a){if(e.getGeometryType()===n.G.enumPolygon&&r){const r=new s.Envelope2D;e.queryEnvelope(r);const n=(0,l.d)(null,r,!1);let i;if(i=(0,o.l)(e,t,a?0:n),0!==i){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),g=new i.P;let m=-1,f=-1,x=Number.MAX_VALUE,p=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),r=e.getClosestCoordinate(t,!1),n=e.getCoord2D(r),s=i.P.sqrDistance(n,t);s<x?(p=1,g.assign(n),m=c.getStartPointIndex(),f=c.getPathIndex(),x=s):s===x&&p++}-1===m&&(0,n.a)("");const y=u(g,m,Math.sqrt(x));if(a)if(e.getGeometryType()!==n.G.enumPolygon){let r=!1;if(p>1){const n=h(e,t,m,f);r=0!==n&&3!==n}else c.resetToVertex(m,f),r=0!==h(c.nextSegment(),t);y.m_bRightSide=r}else r||0!==(0,o.l)(e,t,0)&&(y.m_bRightSide=!0);return y}pointGetNearestVertex(e,t){const r=e.getXY();return u(r,0,i.P.distance(r,t))}multiVertexGetNearestVertex(e,t){const r=e.getAttributeStreamRef(0),n=e.getPointCount();let s=-1;const o=new i.P;let a=Number.MAX_VALUE;const c=new i.P;for(let e=0;e<n;e++){r.queryPoint2D(2*e,c);const n=i.P.sqrDistance(c,t);n<a&&(o.assign(c),s=e,a=n)}return u(o,s,Math.sqrt(a))}pointGetNearestVertices(e,t,r,n){const s=[];if(0!==n){const n=r*r,o=e.getXY(),a=i.P.sqrDistance(o,t);a<=n&&s.push(u(o,0,Math.sqrt(a)))}return s}multiVertexGetNearestVertices(e,t,r,n){const s=[];if(0!==n){const o=e.getAttributeStreamRef(0),a=e.getPointCount();s.length=n+1;const c=r*r;for(let e=0;e<a;e++){const r=o.read(2*e),n=o.read(2*e+1),a=t.x-r,h=t.y-n,l=a*a+h*h;l<=c&&s.push(u(i.P.construct(r,n),e,Math.sqrt(l)))}s.sort((e,t)=>e.m_distance-t.m_distance)}return s.slice(0,n)}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.G{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(e,t,r){r.d(t,{JR:()=>E,ME:()=>M,MY:()=>R,NO:()=>P,Nh:()=>V,V2:()=>A,_s:()=>w,e6:()=>O,gh:()=>S,tr:()=>Y,uX:()=>p});var n=r(5482),s=r(69397),i=r(16930),o=(r(70328),r(19419)),a=r(60408),u=r(21325),c=r(513),h=r(50954),l=r(79567),g=r(52006),m=r(49663),f=r(46068),x=r(92722);class p{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:g,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=g,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return null!=this.segmentFlags}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?s.Ul+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=A(e,t,r,n,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(c.subarray(0,t),0),a.vertexM?.set(h.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,u.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=N(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new C(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class C{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=N(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[r++],n=t[r++],s=t[r++],i=t[r++];return{b:[this.end,[e,n],[s,i]]}}const n=t[r++],s=t[r++],i=t[r++],o=t[r++],a=t[r++],u=t[r++];r++,r++;const c=t[r++],h=t[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[c,h]]};const l=2&n?0:1,g=1&n?0:1;return{a:[this.end,[a,u],l,g,o,s,i]}}}function P(e,t){const r={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,n.mS)(r,new G(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t;const{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=e,u=b(e);if(e.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new G(e,["vertexZ","vertexM"]),!1);const s=(0,o.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:r}of t.segments)(0,l.e)(s,e,r),e=(0,g.yP)(r)}const[i,a,c,h]=s;t={xmin:i,ymin:a,xmax:c,ymax:h,spatialReference:u}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,i,o;e=n=1/0,i=o=-1/0;for(let t=0;t<r;++t){const r=s[2*t],a=s[2*t+1];e=Math.min(e,r),i=Math.max(i,r),n=Math.min(n,a),o=Math.max(o,a)}t={xmin:e,ymin:n,xmax:i,ymax:o,spatialReference:u}}if(i){let e=1/0,r=-1/0;for(const t of i)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(const t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}function M(e){let t,r,n;if((0,a.fT)(e)){n="point";const{x:s,y:i,z:o,m:a}=e,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),r=[[u]],t=1}else(0,a.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,a.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,_(t[0],(0,g.yP)(t.at(-1)))&&--e),e),0));const s=A(n,t,n.includes("point")?0:r.length,(0,a.Pv)(e),(0,a.W0)(e),(0,g.Ed)(e)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:c,vertexM:h}=s;function l(e){u[2*f]=e[0],u[2*f+1]=e[1],i&&(c[f]=e[2]),o&&(h[f]=e[m]),++f}s.spatialReference=e.spatialReference??void 0;const m=s.hasZ?3:2;let f=0;if(!s.isMultipart()){if(!i&&!o){for(const[e,t]of r[0])u[2*f]=e,u[2*f+1]=t,++f;return s}for(const e of r[0])l(e);return s}const x="polygon"===n,{partOffsets:p}=s;let y=0;if(!s.hasCurves()){for(const e of r){if(p[y++]=f,0===e.length)continue;let t=e.length;if(x&&_(e[0],e.at(-1))&&--t,i||o)for(let r=0;r<t;++r)l(e[r]);else for(let r=0;r<t;++r){const[t,n]=e[r];u[2*f]=t,u[2*f+1]=n,++f}}return p[y]=f,s}function d(e){const t=v+e;if(t<=(s.segmentParams?.length??0))return;let r=t*I;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let v=0;for(const e of r){if(s.partOffsets[y++]=f,0===e.length)continue;const t=e[0];let r=t;for(let t=1;t<e.length;++t){const n=e[t];l(r);const i=f-1;(0,g.wY)(n)?(d(10),++s.segmentCountArc,v=w(r,n,s,i,v),r=n.a[0]):(0,g.DA)(n)?(d(10),++s.segmentCountArc,v=Z(r,n,s,i,v),r=n.a[0]):(0,g.aO)(n)?(d(10),++s.segmentCountArc,v=O(r,n,s,i,v),r=n.c[0]):(0,g.n1)(n)?(d(4),++s.segmentCountBezier,v=Y(0,n,s,i,v),r=n.b[0]):r=n}x&&_(t,r)||l(r)}return s.partOffsets[y]=f,s}function S(e){const t=N(e),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=e,o=b(e);if("point"===e.type){const[t,r]=e.vertexXY,n=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:r,z:n,m:s,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<r;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===e.type;if(!e.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=e.partOffsets[s+1],i=new Array;for(;a<n;)i.push(t(a++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:s,hasM:i,spatialReference:o}:{paths:r,hasZ:s,hasM:i,spatialReference:o}}const c=new Array;for(const{segments:t,startVertex:r}of e.parts){const e=[r];for(const{curve:r}of t)e.push(r);c.push(e)}return u?{rings:[],curveRings:c,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:c,hasZ:s,hasM:i,spatialReference:o}}function V(e,{lengths:t,coords:r,hasZ:n,hasM:s},i){const o=e.includes("point")?0:t.length,a="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);n??=!1,s??=!1;const c=A(e,u,o,n,s,!1,0,0);if(c.spatialReference=i??void 0,!c.isMultipart()){for(let e=0,t=0;e<u;++e)c.vertexXY[2*e]=r[t++],c.vertexXY[2*e+1]=r[t++],n&&(c.vertexZ[e]=r[t++]),s&&(c.vertexM[e]=r[t++]);return c}const h=2+Number(n)+Number(s);let l=0,g=0;c.partOffsets[0]=0;for(const e of t){const t=c.partOffsets[g],i=t+e-Number(a);c.partOffsets[++g]=i;for(let e=t;e<i;++e)c.vertexXY[2*e]=r[l++],c.vertexXY[2*e+1]=r[l++],n&&(c.vertexZ[e]=r[l++]),s&&(c.vertexM[e]=r[l++]);a&&(l+=h)}return c}function E({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const c=new x.A([],[],a,u);i=Math.max(i,1);const h="polygon"===e;let l=0;for(let e=0;e<i;++e){const i=o?.[e+1]??t,g=c.coords.length;for(let e=l;e<i;++e)c.coords.push(r[2*e],r[2*e+1]),a&&c.coords.push(n[e]),u&&c.coords.push(s[e]);if(h){const e=l;c.coords.push(r[2*e],r[2*e+1]),a&&c.coords.push(n[e]),u&&c.coords.push(s[e])}c.lengths.push((c.coords.length-g)/c.stride),l=i}return"point"===e&&(c.lengths.length=0),c}function R(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);const s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:i,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new p({...e.toFlatGeometry(),spatialReference:t})}class G{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function b({spatialReference:e}){return e instanceof i.A?e.toJSON():e}function N({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function _(e,t){return e.every((e,r)=>e===t[r])}function A(e,t,r,n,s,i,o,a){o??=0,a??=0;const u=new p({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(c+=Float64Array.BYTES_PER_ELEMENT*t),s&&(c+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(c+=(r+1)*Int32Array.BYTES_PER_ELEMENT,c+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(c+=t*Int8Array.BYTES_PER_ELEMENT,c+=t*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let l=0;return u.vertexXY=new Float64Array(h,l,2*t),l+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(h,l,t),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,l,t),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,t),u.segmentIndices.fill(X),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(h,l,t),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function w(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const[a,[u,c],h,l,g,m,x]=t.a;let p=4;l||(p|=1),h||(p|=2);const y=(0,f.SW)(e,t),[d,v]=(0,f.Uk)(y,.5);return s[o++]=p,s[o++]=m,s[o++]=x,s[o++]=g,s[o++]=u,s[o++]=c,s[o++]=y.u2-y.u1,s[o++]=y.u1,s[o++]=d,s[o++]=v,o}function Z(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const a=(0,m.i)(e,t);return T(a,4,...(0,c.mq)(a,.5),s,o)}function O(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){return r[i]=4,n[i]=o,T((0,h.pM)(e,t),0,...t.c[1],s,o)}function T(e,t,r,n,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:c,radius:h}=e;return u>c||(t|=1),Math.abs(c-u)<=Math.PI||(t|=2),s[i++]=t,s[i++]=h,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=c-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function Y(e,{b:[t,[r,n],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},c,h){return o[c]=2,a[c]=h,u[h++]=r,u[h++]=n,u[h++]=s,u[h++]=i,h}const I=1.61803,X=-1},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>p,fromGeometry:()=>x,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>P,fromSpatialReference:()=>M,getSpatialReference:()=>f,toExtent:()=>V,toGeometry:()=>S,toMultipoint:()=>E,toPoint:()=>R,toPolygon:()=>G,toPolyline:()=>b});var n=r(83661),s=(r(79187),r(55537)),i=r(95213),o=r(88885),a=r(5443),u=r(48526),c=r(86738),h=r(39829),l=r(82799),g=(r(90293),r(83299));const m="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return d(e);case"multipoint":return y(e);case"polyline":return C(e);case"polygon":return v(e);case"extent":return p(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function p(e){if(!e.getCacheValue(m)){const t=new i.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function y(e){if(!e.getCacheValue(m)){const t=new o.M,r=new i.P,n=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,i=n.length;e<i;e++){const i=n[e];r.setXYCoords(i[0],i[1]),a&&r.setZ(i[2]??0),s&&r.setM(i[u]??NaN),t.add(r)}e.setCacheValue(m,t)}return e.getCacheValue(m)}function d(e){if(!e.getCacheValue(m)){const t=new i.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(m,t)}return e.getCacheValue(m)}function v(e){if(!e.getCacheValue(m)){const{curveRings:t,hasM:r,hasZ:n,rings:s}=e,i=(0,g.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:n,rings:s});e.setCacheValue(m,i)}return e.getCacheValue(m)}function C(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:r,hasZ:n,paths:s}=e,i=(0,g.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:n,paths:s});e.setCacheValue(m,i)}return e.getCacheValue(m)}function P(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:r,hasZ:n,paths:s}=e,i=(0,g.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:n,paths:s});e.setCacheValue(m,i)}return e.getCacheValue(m)}function M(e){return(0,g.fromSpatialReference)(e)}function S(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return R(e,t);case s.G.enumEnvelope:return V(e,t);case s.G.enumMultiPoint:return E(e,t);case s.G.enumPolyline:return b(e,t);case s.G.enumPolygon:return G(e,t)}return null}function V(e,t){if(e.isEmpty())return null;const r=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),n=e.getDescription();if(n.hasM()){const t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(n.hasZ()){const t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(m,e),r}function E(e,t){if(e.isEmpty())return null;const r=e.getDescription(),n=r.hasM(),s=r.hasZ(),o=[],a=new i.P;for(let t=0,r=e.getPointCount();t<r;t++){e.getPointByVal(t,a);const r=[a.getX(),a.getY()];s&&r.push(a.getZ()),n&&r.push(a.getM()),o.push(r)}const c=new u.A({hasM:n,hasZ:s,points:o,spatialReference:t});return c.setCacheValue(m,e),c}function R(e,t){if(e instanceof n.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const r=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(r.m=e.getM()),s.hasZ()&&(r.z=e.getZ()),r.setCacheValue(m,e),r}function G(e,t){if(e.isEmpty())return null;const r=h.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(m,e),r}function b(e,t){if(e.isEmpty())return null;const r=l.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(m,e),r}}}]);
@@ -13,7 +13,7 @@ import{create as e}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{Re
13
13
 
14
14
  float fogAmount = fogAmount * getDistanceFalloff(terrainDepth, rayDir, fogStrength);
15
15
 
16
- ${t(h,a`vec3 emission = texture(emissionTexture, uv).rgb * oitInputScale;
16
+ ${t(h,a`vec3 emission = texture(emissionTexture, uv).rgb * floatBlendInputScale;
17
17
  vec3 emissionDistanceCorrected = mix(emission, vec3(0.0), fogAmount * fogColorDistanceWeight);
18
18
  vec3 finalFogColor = fogColor * fogAmount + emissionDistanceCorrected;
19
19
  vec4 fog = vec4(finalFogColor, fogAmount);`,a`vec4 fog = vec4(fogColor, 1.0) * fogAmount;`)}
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{gauss as e}from"../core/mathUtils.js";import{ScreenSpacePass as o}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{Gamma as r}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{FloatPassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as s}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DPassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{NoParameters as l}from"../views/webgl/NoParameters.js";import{ShaderBuilder as a}from"../views/webgl/ShaderBuilder.js";class n extends l{constructor(){super(...arguments),this.blurRadius=0,this.inputScale=1}}function c(l){const n=new a,c=n.fragment;n.include(o),c.include(r),c.uniforms.add(new i("colorTexture",e=>e.emissionsToDownsample),new t("blurRadius",e=>e.blurRadius),new t("inputScale",e=>l.hasFloatOit?1:e.inputScale));let u="";const d=7;for(let e=0;e<d;e++){u+=`locations1D[${e}] = ${(e/(d-1)*2-1).toFixed(3).toString()};`}const m=2;let f="";for(let o=0;o<d;o++){f+=`locations1DWeights[${o}] = ${e(o-Math.floor(d/2),m).toFixed(7).toString()};`}const v=0===l.glowStage;return c.code.add(s`
2
+ import{gauss as e}from"../core/mathUtils.js";import{ScreenSpacePass as o}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{Gamma as r}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{FloatPassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as s}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DPassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{NoParameters as l}from"../views/webgl/NoParameters.js";import{ShaderBuilder as n}from"../views/webgl/ShaderBuilder.js";class a extends l{constructor(){super(...arguments),this.blurRadius=0,this.inputScale=1}}function c(l){const a=new n,c=a.fragment;a.include(o),c.include(r),c.uniforms.add(new i("colorTexture",e=>e.emissionsToDownsample),new t("blurRadius",e=>e.blurRadius),new t("inputScale",e=>l.useFloatBlend?1:e.inputScale));let u="";const d=7;for(let e=0;e<d;e++){u+=`locations1D[${e}] = ${(e/(d-1)*2-1).toFixed(3).toString()};`}const m=2;let f="";for(let o=0;o<d;o++){f+=`locations1DWeights[${o}] = ${e(o-Math.floor(d/2),m).toFixed(7).toString()};`}const v=0===l.glowStage;return c.code.add(s`
3
3
  float locations1D[${s.int(d)}];
4
4
  float locations1DWeights[${s.int(d)}];
5
5
 
@@ -22,4 +22,4 @@ import{gauss as e}from"../core/mathUtils.js";import{ScreenSpacePass as o}from"..
22
22
  }
23
23
  return res;
24
24
  }
25
- `).main.add(s`fragColor = vec4(blurUniformSamples(), 0.0);`),n}const u=Object.freeze(Object.defineProperty({__proto__:null,GlowBlurPassParameters:n,build:c},Symbol.toStringTag,{value:"Module"}));export{n as G,u as a,c as b};
25
+ `).main.add(s`fragColor = vec4(blurUniformSamples(), 0.0);`),a}const u=Object.freeze(Object.defineProperty({__proto__:null,GlowBlurPassParameters:a,build:c},Symbol.toStringTag,{value:"Module"}));export{a as G,u as a,c as b};
@@ -1,9 +1,9 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{ReadDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js";import{Gamma as o}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{FloatPassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{FloatsPassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js";import{If as s,glsl as l}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{IntegerPassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js";import{Texture2DBindUniform as n}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as a}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{RayDistanceFalloffPassParameters as d,RayDistanceFalloff as m}from"../views/3d/webgl-engine/effects/raymarching/RayDistanceFalloff.glsl.js";import{Dithering as c}from"../views/3d/webgl-engine/shaders/Dithering.glsl.js";import{oitResolution as p}from"../views/3d/webgl-engine/shaders/oitResolution.glsl.js";import{ScreenSpacePassAtmosphere as u}from"../views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js";import{ToneMapping as g}from"../views/3d/webgl-engine/shaders/ToneMapping.glsl.js";import{ShaderBuilder as x}from"../views/webgl/ShaderBuilder.js";class w extends d{constructor(){super(...arguments),this.glowLod=-1,this.minDisperse=new h([.8,.12,.05,.02,.01,0]),this.dispersionWeight=1,this.distanceModifier=1e-4}}function f(d){const w=new x,f=w.fragment,{blurEnabled:h,tonemappingEnabled:v}=d;return w.include(u,{needUVs:!0,needEyeDirection:!0}),f.include(o),f.include(m),f.include(e),w.outputs.add("fragColor","vec4",0),w.outputs.add("fragEmission","vec3",1),f.include(g),f.include(p,d),f.include(c,d),f.uniforms.add(new a("colorTexture",e=>e.color),new a("emissionTexture",e=>e.emission)),h?(f.uniforms.add(new n("depthTexture",e=>e.mainDepth),new r("distanceModifier",e=>e.distanceModifier),new a("lodTexture0",e=>e.lodTexture0),new a("lodTexture1",e=>e.lodTexture1),new a("lodTexture2",e=>e.lodTexture2),new a("lodTexture3",e=>e.lodTexture3),new a("lodTexture4",e=>e.lodTexture4),new t("glowLod",e=>e.glowLod),new i("minDisperse",6,e=>e.minDisperse.presets),new i("maxDisperse",6,e=>e.maxDisperse.presets),new r("dispersionWeight",e=>e.dispersionWeight)).main.add(l`
2
+ import{ReadDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js";import{Gamma as o}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{FloatPassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{FloatsPassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js";import{If as s,glsl as l}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{IntegerPassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js";import{Texture2DBindUniform as n}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as a}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{RayDistanceFalloffPassParameters as d,RayDistanceFalloff as m}from"../views/3d/webgl-engine/effects/raymarching/RayDistanceFalloff.glsl.js";import{Dithering as c}from"../views/3d/webgl-engine/shaders/Dithering.glsl.js";import{oitResolution as p}from"../views/3d/webgl-engine/shaders/oitResolution.glsl.js";import{ScreenSpacePassAtmosphere as u}from"../views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js";import{ToneMapping as g}from"../views/3d/webgl-engine/shaders/ToneMapping.glsl.js";import{ShaderBuilder as x}from"../views/webgl/ShaderBuilder.js";class f extends d{constructor(){super(...arguments),this.glowLod=-1,this.minDisperse=new h([.8,.12,.05,.02,.01,0]),this.dispersionWeight=1,this.distanceModifier=1e-4}}function w(d){const f=new x,w=f.fragment,{blurEnabled:h,tonemappingEnabled:v}=d;return f.include(u,{needUVs:!0,needEyeDirection:!0}),w.include(o),w.include(m),w.include(e),f.outputs.add("fragColor","vec4",0),f.outputs.add("fragEmission","vec3",1),w.include(g),w.include(p,d),w.include(c,d),w.uniforms.add(new a("colorTexture",e=>e.color),new a("emissionTexture",e=>e.emission)),h?(w.uniforms.add(new n("depthTexture",e=>e.mainDepth),new r("distanceModifier",e=>e.distanceModifier),new a("lodTexture0",e=>e.lodTexture0),new a("lodTexture1",e=>e.lodTexture1),new a("lodTexture2",e=>e.lodTexture2),new a("lodTexture3",e=>e.lodTexture3),new a("lodTexture4",e=>e.lodTexture4),new t("glowLod",e=>e.glowLod),new i("minDisperse",6,e=>e.minDisperse.presets),new i("maxDisperse",6,e=>e.maxDisperse.presets),new r("dispersionWeight",e=>e.dispersionWeight)).main.add(l`
3
3
  vec4 color = texture(colorTexture, uv);
4
4
  color = vec4(linearizeGamma(color.rgb), color.a);
5
5
 
6
- vec3 lod0 = texture(emissionTexture, uv).rgb * oitInputScale;
6
+ vec3 lod0 = texture(emissionTexture, uv).rgb * floatBlendInputScale;
7
7
  vec3 lod1 = texture(lodTexture0, uv).rgb;
8
8
  vec3 lod2 = texture(lodTexture1, uv).rgb;
9
9
  vec3 lod3 = texture(lodTexture2, uv).rgb;
@@ -40,19 +40,19 @@ import{ReadDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/output/Re
40
40
  emission = glowLod == 0 ? lodFactor0 * lod0 : glowLod == 1 ? lodFactor1 * lod1 : glowLod == 2 ? lodFactor2 * lod2 : glowLod == 3 ? lodFactor3 * lod3 : glowLod == 4 ? lodFactor4 * lod4 : glowLod == 5 ? lodFactor5 * lod5 : emission;
41
41
 
42
42
  fragEmission = emission;
43
- fragEmission.rgb = emission.rgb * oitOutputScale + ditherNoise();
43
+ fragEmission.rgb = emission.rgb * floatBlendOutputScale + ditherNoise();
44
44
 
45
45
  // tonemapping is only applied to the emissive part since main color values are not in HDR.
46
46
  ${s(v,"emission = tonemapKhronosNeutral(emission, 1.0);")}
47
47
 
48
48
  fragColor = delinearizeGamma(vec4(color.rgb + emission.rgb, color.w));
49
- `),w):(f.main.add(l`
49
+ `),f):(w.main.add(l`
50
50
  vec4 color = texture(colorTexture, uv);
51
51
  color = vec4(linearizeGamma(color.rgb), color.a);
52
52
 
53
53
  // emission is already in linear color space here.
54
- vec3 emission = texture(emissionTexture, uv).rgb * oitInputScale;
54
+ vec3 emission = texture(emissionTexture, uv).rgb * floatBlendInputScale;
55
55
 
56
56
  ${s(v,"emission = tonemapKhronosNeutral(emission, 1.0);")}
57
57
  fragColor = delinearizeGamma(vec4(color.rgb + emission, color.w));
58
- `),w)}class h{constructor(e,o=!0){this.presets=e,this.presets=v(e,o)}}function v(e,o,r=1){const i=e[0]+e[1]+e[2]+e[3]+e[4]+e[5];return!o||i<=r?e:[e[0]/i,e[1]/i,e[2]/i,e[3]/i,e[4]/i,e[5]/i]}function b(e,o,r=1){return[e[0]*(1-r)+o[0]*r,e[1]*(1-r)+o[1]*r,e[2]*(1-r)+o[2]*r,e[3]*(1-r)+o[3]*r,e[4]*(1-r)+o[4]*r,e[5]*(1-r)+o[5]*r]}const D=Object.freeze(Object.defineProperty({__proto__:null,GlowCompositionPassParameters:w,GlowLodFactors:h,build:f,mixPreset:b},Symbol.toStringTag,{value:"Module"}));export{w as G,h as a,D as b,f as c,b as m};
58
+ `),f)}class h{constructor(e,o=!0){this.presets=e,this.presets=v(e,o)}}function v(e,o,r=1){const i=e[0]+e[1]+e[2]+e[3]+e[4]+e[5];return!o||i<=r?e:[e[0]/i,e[1]/i,e[2]/i,e[3]/i,e[4]/i,e[5]/i]}function b(e,o,r=1){return[e[0]*(1-r)+o[0]*r,e[1]*(1-r)+o[1]*r,e[2]*(1-r)+o[2]*r,e[3]*(1-r)+o[3]*r,e[4]*(1-r)+o[4]*r,e[5]*(1-r)+o[5]*r]}const D=Object.freeze(Object.defineProperty({__proto__:null,GlowCompositionPassParameters:f,GlowLodFactors:h,build:w,mixPreset:b},Symbol.toStringTag,{value:"Module"}));export{f as G,h as a,D as b,w as c,b as m};
@@ -139,4 +139,4 @@ samplePos += (vec2(1.0, -1.0) * texelSize) * scaleFactor;`),T?Y.main.add(S`
139
139
  }
140
140
  `),$&&Y.main.add("fragColor *= texelFetch(texOcclusion, ivec2(gl_FragCoord.xy), 0).r;"),!Z&&k&&Y.main.add("fragColor = mix(fragColor, vec4(1.0, 0.0, 1.0, 1.0), isBorder * 0.5);"),2===A&&Y.main.add(S`if (fragColor.a < alphaCutoff) {
141
141
  discard;
142
- }`),re&&Y.main.add(S`fragColor = applyFocusAreaStyle(fragColor, focusAreaStyle);`),a(A)&&q&&Y.main.add("fragEmission = vec4(0.0);"),A){case 1:Y.main.add("\n fragColor = vec4(fragColor.rgb * oitOutputScale, fragColor.a);\n fragAlpha = fragColor.a * oitOutputScale;\n ");break;case 2:Y.main.add("fragColor.rgb /= fragColor.a;");break;case 11:Y.main.add("outputObjectAndLayerIdColor();");break;case 10:r.include(c,e),Y.main.add("outputHighlight(false);")}return r}function L(e){return e.outlineColor[3]>0&&e.outlineSize>0}function V(o){return o.textureIsSignedDistanceField?T(o.anchorPosition,o.distanceFieldBoundingBox,M):e(M,o.anchorPosition),M}const M=r();function T(e,r,i){o(i,e[0]*(r[2]-r[0])+r[0],e[1]*(r[3]-r[1])+r[1])}const U=.08,_=Object.freeze(Object.defineProperty({__proto__:null,anchorPosition:V,build:$},Symbol.toStringTag,{value:"Module"}));export{_ as H,V as a,$ as b};
142
+ }`),re&&Y.main.add(S`fragColor = applyFocusAreaStyle(fragColor, focusAreaStyle);`),a(A)&&q&&Y.main.add("fragEmission = vec4(0.0);"),A){case 1:Y.main.add("\n fragColor = vec4(fragColor.rgb * floatBlendOutputScale, fragColor.a);\n fragAlpha = fragColor.a * floatBlendOutputScale;\n ");break;case 2:Y.main.add("fragColor.rgb /= fragColor.a;");break;case 11:Y.main.add("outputObjectAndLayerIdColor();");break;case 10:r.include(c,e),Y.main.add("outputHighlight(false);")}return r}function L(e){return e.outlineColor[3]>0&&e.outlineSize>0}function V(o){return o.textureIsSignedDistanceField?T(o.anchorPosition,o.distanceFieldBoundingBox,M):e(M,o.anchorPosition),M}const M=r();function T(e,r,i){o(i,e[0]*(r[2]-r[0])+r[0],e[1]*(r[3]-r[1])+r[1])}const U=.08,_=Object.freeze(Object.defineProperty({__proto__:null,anchorPosition:V,build:$},Symbol.toStringTag,{value:"Module"}));export{_ as H,V as a,$ as b};
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{If as r,glsl as o}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DPassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{O as s}from"./OITDim.glsl.js";import{oitResolution as a}from"../views/3d/webgl-engine/shaders/oitResolution.glsl.js";import{ShaderBuilder as n}from"../views/webgl/ShaderBuilder.js";class i extends s{}function c(s){const i=new n;i.include(e);const{hasEmission:c,frontFaceMask:u,computeHudOcclusion:l,hasFloatOit:m}=s,f=i.fragment;f.include(a,s),f.uniforms.add(new t("colorTexture",e=>e.colorTexture),new t("alphaTexture",e=>e.alphaTexture));let d=0;return i.outputs.add("fragColor","vec4",d++),c&&i.outputs.add("fragEmission","vec4",d++),l&&i.outputs.add("fragOcclusion","vec4",d++),f.uniforms.add(new t("frontFaceTexture",e=>e.frontFaceTexture)),c&&(f.uniforms.add(new t("emissionTexture",e=>e.emissionTexture)),f.uniforms.add(new t("emissionFrontFaceTexture",e=>e.emissionFrontFaceTexture))),f.main.add(o`
3
- float srcAlpha = texture(alphaTexture, uv).r * oitInputScale;
4
- ${r(l,"fragOcclusion = vec4(1.0, 0.0, 0.0, 1.0);")}
2
+ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{If as r,glsl as o}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DPassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{O as s}from"./OITDim.glsl.js";import{oitResolution as a}from"../views/3d/webgl-engine/shaders/oitResolution.glsl.js";import{ShaderBuilder as n}from"../views/webgl/ShaderBuilder.js";class i extends s{}function c(s){const i=new n;i.include(e);const{hasEmission:c,frontFaceMask:l,computeHudOcclusion:u,useFloatBlend:m}=s,f=i.fragment;f.include(a,s),f.uniforms.add(new t("colorTexture",e=>e.colorTexture),new t("alphaTexture",e=>e.alphaTexture));let d=0;return i.outputs.add("fragColor","vec4",d++),c&&i.outputs.add("fragEmission","vec4",d++),u&&i.outputs.add("fragOcclusion","vec4",d++),f.uniforms.add(new t("frontFaceTexture",e=>e.frontFaceTexture)),c&&(f.uniforms.add(new t("emissionTexture",e=>e.emissionTexture)),f.uniforms.add(new t("emissionFrontFaceTexture",e=>e.emissionFrontFaceTexture))),f.main.add(o`
3
+ float srcAlpha = texture(alphaTexture, uv).r * floatBlendInputScale;
4
+ ${r(u,"fragOcclusion = vec4(1.0, 0.0, 0.0, 1.0);")}
5
5
 
6
6
  if(srcAlpha == 0.0) {
7
7
  fragColor = vec4(0.0);
@@ -10,7 +10,7 @@ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/Scr
10
10
  }
11
11
  vec4 frontFace = texture(frontFaceTexture, uv);
12
12
 
13
- ${r(u,o`
13
+ ${r(l,o`
14
14
  if (frontFace.a == 0.0) {
15
15
  fragColor = vec4(0.0);
16
16
  ${r(c,"fragEmission = vec4(0.0);")}
@@ -19,10 +19,10 @@ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/Scr
19
19
  `)}
20
20
 
21
21
  vec4 srcColor = texture(colorTexture, uv);
22
- ${r(!m,"float frontWeight = srcAlpha * oitOutputScale;\n frontFace.a = mix(frontFace.a, 1.0, clamp((frontWeight - 0.9) * 10.0, 0.0, 1.0));")}
23
- fragColor = vec4(mix(srcColor.rgb * oitInputScale / srcAlpha, frontFace.rgb, frontFace.a), 1.0 - srcColor.a);
22
+ ${r(!m,"float frontWeight = srcAlpha * floatBlendOutputScale;\n frontFace.a = mix(frontFace.a, 1.0, clamp((frontWeight - 0.9) * 10.0, 0.0, 1.0));")}
23
+ fragColor = vec4(mix(srcColor.rgb * floatBlendInputScale / srcAlpha, frontFace.rgb, frontFace.a), 1.0 - srcColor.a);
24
24
 
25
- ${r(c,"vec4 emission = texture(emissionTexture, uv) * oitInputScale;\n vec4 emissionFrontFace = texture(emissionFrontFaceTexture, uv);\n\n // Modulate transparent emitter by front faces. This case is important for surfaces which contain emitter and\n // non-emitter at the same time. Non-emitter surface parts need to modulate emissions as well.\n emission.rgb = emission.rgb * (1.0 - frontFace.a);\n\n fragEmission = vec4(mix(emission.rgb / srcAlpha, emissionFrontFace.rgb, emissionFrontFace.a) * oitOutputScale, 1.0 - srcColor.a);\n ")}
25
+ ${r(c,"vec4 emission = texture(emissionTexture, uv) * floatBlendInputScale;\n vec4 emissionFrontFace = texture(emissionFrontFaceTexture, uv);\n\n // Modulate transparent emitter by front faces. This case is important for surfaces which contain emitter and\n // non-emitter at the same time. Non-emitter surface parts need to modulate emissions as well.\n emission.rgb = emission.rgb * (1.0 - frontFace.a);\n\n fragEmission = vec4(mix(emission.rgb / srcAlpha, emissionFrontFace.rgb, emissionFrontFace.a) * floatBlendOutputScale, 1.0 - srcColor.a);\n ")}
26
26
 
27
- ${r(l,"fragOcclusion.r = pow(srcColor.a, 0.5);")}
28
- `),i}const u=Object.freeze(Object.defineProperty({__proto__:null,OITBlendPassParameters:i,build:c},Symbol.toStringTag,{value:"Module"}));export{i as O,u as a,c as b};
27
+ ${r(u,"fragOcclusion.r = pow(srcColor.a, 0.5);")}
28
+ `),i}const l=Object.freeze(Object.defineProperty({__proto__:null,OITBlendPassParameters:i,build:c},Symbol.toStringTag,{value:"Module"}));export{i as O,l as a,c as b};
package/config.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.1.0-next.50";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
2
+ import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.1.0-next.52";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Provides utility methods for working with [dates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).
3
+ *
4
+ * @internal
5
+ */
6
+ import type TimeInterval from "../time/TimeInterval.js";
7
+ import type { TimeUnit } from "./units.js";
8
+ import type { TimeZone } from "../time/types.js";
9
+
10
+ /**
11
+ * Returns the addition or subtraction of a quantity of temporal units. Computations are performed on local dates, not UTC.
12
+ *
13
+ * @param date - The input date.
14
+ * @param offset - The number of temporal units to add or subtract.
15
+ * @param unit - The input temporal unit.
16
+ * @param timeZone - Processing time zone.
17
+ * @returns A new date with the added or subtracted time.
18
+ * @internal
19
+ * @example
20
+ * // Construct a date representing the 18th of September 2020.
21
+ * const currentDate = new Date(2020, 8, 18);
22
+ *
23
+ * // Add six months to the date.
24
+ * const futureDate = timeUtils.offsetDate(currentDate, 6, "months");
25
+ *
26
+ * // Format the date using the "en-US" locale.
27
+ * const formatter = new Intl.DateTimeFormat("en-US", {
28
+ * year: "numeric",
29
+ * month: "numeric",
30
+ * day: "numeric"
31
+ * });
32
+ * const currentDateString = formatter.format(currentDate);
33
+ * const futureDateString = formatter.format(futureDate);
34
+ *
35
+ * // Print computed date to console.
36
+ * console.log(`Six months from ${currentDateString} is ${futureDateString}`);
37
+ * // output: "Six months from 9/15/2020 is 3/15/2020"
38
+ */
39
+ export function offsetDate(date: Date, offset: number, unit: TimeUnit, timeZone?: TimeZone): Date;
40
+
41
+ /**
42
+ * Truncates or "rounds down" dates to the specified time unit. Computations are performed on local dates, not UTC.
43
+ *
44
+ * @param date - The input date.
45
+ * @param interval - The time interval used to round the parsed date down.
46
+ * @param timeZone - Processing time zone.
47
+ * @returns A new date rounded to the specified time unit.
48
+ * @internal
49
+ * @example
50
+ * // Construct a date representing the 18th of September 2020.
51
+ * const date = new Date(2020, 8, 18);
52
+ *
53
+ * // Compute the first day of the current decade.
54
+ * const truncatedDate = timeUtils.truncateDate(date, "decades");
55
+ *
56
+ * // Format the date using the "en-us" locale.
57
+ * const formatter = new Intl.DateTimeFormat("en-us", {
58
+ * year: "numeric",
59
+ * month: "numeric",
60
+ * day: "numeric"
61
+ * });
62
+ * const dateString = formatter.format(truncatedDate);
63
+ *
64
+ * // Print computed date to console.
65
+ * console.log(`The first day of the current decade is: ${dateString}`);
66
+ * // output: "The first day of the current decade is: 1/1/2020"
67
+ */
68
+ export function truncateDate(date: Date, interval: TimeInterval, timeZone?: TimeZone): Date;