@arcgis/core 5.2.0-next.36 → 5.2.0-next.37

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 (276) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/02b043a3c5fa8bcb4c5b.js +1 -0
  3. package/assets/esri/core/workers/chunks/{acbc14395c31f6da509e.js → 03437a8ef35c200dbf17.js} +1 -1
  4. package/assets/esri/core/workers/chunks/034dd8ee5152a12412cd.js +1 -0
  5. package/assets/esri/core/workers/chunks/0a6e03263ab0906d8bcf.js +1 -0
  6. package/assets/esri/core/workers/chunks/0edd250159ec259601b3.js +1 -0
  7. package/assets/esri/core/workers/chunks/{401ee7fa500adad77db1.js → 1079914101d69a40b3eb.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{c72121076e438ed28d60.js → 1599dc5309a4e60017ce.js} +2 -2
  9. package/assets/esri/core/workers/chunks/181e98399732f425305d.js +1 -0
  10. package/assets/esri/core/workers/chunks/{47d88e1b003c4519b7b6.js → 18f4b2099299942aaf97.js} +1 -1
  11. package/assets/esri/core/workers/chunks/196e7515a43bd0026f49.js +1 -0
  12. package/assets/esri/core/workers/chunks/1aa7496a7dc95aae11ac.js +1 -0
  13. package/assets/esri/core/workers/chunks/1d524690c4b66289bd20.js +1 -0
  14. package/assets/esri/core/workers/chunks/{f72f38e7609756a7f8ea.js → 20fa2c3d4360afa5e136.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{03350a56f840cffe5459.js → 2757c4bf0280e27f3484.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{93ceb74ac88ef460fe5f.js → 278409028bc5af45b507.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{2c61bb25578f73ba49bc.js → 29a1d0659bbc5a039864.js} +1 -1
  18. package/assets/esri/core/workers/chunks/29df3f829006719b2680.js +1 -0
  19. package/assets/esri/core/workers/chunks/30cf84a47ebefd180bb7.js +1 -0
  20. package/assets/esri/core/workers/chunks/{71a593fa116770e58832.js → 37a95f097533bad1b338.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{7335a762412bc8c15a2f.js → 37e823202424c11076cb.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{ee446250a40e5d89bb5a.js → 3a76fffa2016c16d7989.js} +3 -3
  23. package/assets/esri/core/workers/chunks/{58ce4bcfb15f378b1b9f.js → 3d6d2b42ba2ad7086d5d.js} +1 -1
  24. package/assets/esri/core/workers/chunks/3ec91474658eae87b832.js +1 -0
  25. package/assets/esri/core/workers/chunks/448e0596005cba9a4225.js +1 -0
  26. package/assets/esri/core/workers/chunks/{f148666308071bdb185a.js → 45530a49fa1f09d1682e.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{155940ef3d1888272d73.js → 459e89d1b94a3b204d20.js} +2 -2
  28. package/assets/esri/core/workers/chunks/{f71f5778e03f68f27482.js → 45b2e58051f42ebd236e.js} +1 -1
  29. package/assets/esri/core/workers/chunks/4611cf051c3c396fdf96.js +1 -0
  30. package/assets/esri/core/workers/chunks/{efaa1d05705f6b450e8f.js → 46e3d33e44e5398221e2.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{866950e9ab96aebc6b32.js → 4a8201e09bc3ad5cc00b.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{110135b0562a3b5708b9.js → 4abe820bbe4f7ffccc09.js} +1 -1
  33. package/assets/esri/core/workers/chunks/4ad86d6b1be07c97b6f6.js +1 -0
  34. package/assets/esri/core/workers/chunks/{20ffeb09bb30400de110.js → 4e28f49d0be20ea50fd7.js} +1 -1
  35. package/assets/esri/core/workers/chunks/4f25aac84d9eb10cac83.js +1 -0
  36. package/assets/esri/core/workers/chunks/{0197e459fdb04dfb28ef.js → 51838d55d8ec4ce70398.js} +1 -1
  37. package/assets/esri/core/workers/chunks/542d8a6c415098b9857c.js +1 -0
  38. package/assets/esri/core/workers/chunks/57abf838fcff0f0e2c5e.js +1 -0
  39. package/assets/esri/core/workers/chunks/57dd017fed2943d24e3d.js +1 -0
  40. package/assets/esri/core/workers/chunks/59801b2ccaaf4b394e02.js +1 -0
  41. package/assets/esri/core/workers/chunks/5a62c9f64db4fcae5e52.js +1 -0
  42. package/assets/esri/core/workers/chunks/{e84c13ac59e5381b77e2.js → 5aebecb5c2b3e7887127.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{c19fe4f31e4ef84bbcf6.js → 5e68b74fd548c7cdba36.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{9dcb2cbf89dcb7558432.js → 5f360492560ae07083a6.js} +1 -1
  45. package/assets/esri/core/workers/chunks/6022f43ebd58e21c737a.js +1 -0
  46. package/assets/esri/core/workers/chunks/62b137a795e487fa06a1.js +1 -0
  47. package/assets/esri/core/workers/chunks/{007485862ce95928717a.js → 632de34ebd2f44b4423d.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{1ad5fcae6d6a9801cf58.js → 63ca17f569407c89bde1.js} +2 -2
  49. package/assets/esri/core/workers/chunks/6896a6dd36fa91a27151.js +1 -0
  50. package/assets/esri/core/workers/chunks/{e6263e1983e703befe48.js → 68bc674affe2f7269c40.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{759686b896f51f0fe6a9.js → 6a51499c6623ddce5f00.js} +1 -1
  52. package/assets/esri/core/workers/chunks/6cdf1db30793133294dd.js +1 -0
  53. package/assets/esri/core/workers/chunks/{b0e4af49fc968b0a910f.js → 6ff6783f89ecd3a5e752.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{857532de88f21e8c3466.js → 70763c7b68d8abe8d5fe.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{e67a9f9298d63026e7f6.js → 716b1f073e3cd807abd3.js} +1 -1
  56. package/assets/esri/core/workers/chunks/71a3f05cb86ae2920f8d.js +1 -0
  57. package/assets/esri/core/workers/chunks/723bb56de2324b41df4e.js +1 -0
  58. package/assets/esri/core/workers/chunks/73f61107cb7e6d30bf03.js +1 -0
  59. package/assets/esri/core/workers/chunks/752c34cee981862add89.js +1 -0
  60. package/assets/esri/core/workers/chunks/760dfd585b6c2c1937ce.js +1 -0
  61. package/assets/esri/core/workers/chunks/{595401947e74a0a67144.js → 76449e50222111ba0eb1.js} +1 -1
  62. package/assets/esri/core/workers/chunks/76bed5497f42f23a27ed.js +1 -0
  63. package/assets/esri/core/workers/chunks/832ecc1f7d45774c4726.js +1 -0
  64. package/assets/esri/core/workers/chunks/860a0f9d20f53db1caf4.js +1 -0
  65. package/assets/esri/core/workers/chunks/867e39bb444947c93586.js +1 -0
  66. package/assets/esri/core/workers/chunks/8a8b7ac6693bdfbebf07.js +1 -0
  67. package/assets/esri/core/workers/chunks/8fce15ce4cfdccf407f3.js +1 -0
  68. package/assets/esri/core/workers/chunks/{5260f623438bd84f2caa.js → 937cf55b3b9d324eea73.js} +1 -1
  69. package/assets/esri/core/workers/chunks/93df864c2e829f0fd5ce.js +1 -0
  70. package/assets/esri/core/workers/chunks/{7b5e628ea3d4a51f1c4e.js → 966d002acec8c72be56a.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{367a3031abbeff0c0090.js → 9aef0b87f471626abd66.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{f1d211904d5a1de93cb3.js → 9ba9a3705623679bc305.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{aec82b94787821153d2b.js → a188d0767825d322f96d.js} +1 -1
  74. package/assets/esri/core/workers/chunks/a638de0102c3990403d1.js +1 -0
  75. package/assets/esri/core/workers/chunks/b09935d0105d50a0971b.js +1 -0
  76. package/assets/esri/core/workers/chunks/b2c0262c4a76b8a86200.js +1 -0
  77. package/assets/esri/core/workers/chunks/{599bd80379423c99799d.js → b4323e69e624c6b51754.js} +1 -1
  78. package/assets/esri/core/workers/chunks/b5141f240ca79729686d.js +1 -0
  79. package/assets/esri/core/workers/chunks/b549a4d4b1a34bee8beb.js +1 -0
  80. package/assets/esri/core/workers/chunks/bb89b6fd93513c61b2d3.js +1 -0
  81. package/assets/esri/core/workers/chunks/{3bd32387af52fa48d747.js → bc553ecc8cbcc1b02717.js} +1 -1
  82. package/assets/esri/core/workers/chunks/bcba02f61cf0abcb5600.js +1 -0
  83. package/assets/esri/core/workers/chunks/{f63e7b01c70352538b1e.js → bd0f488e228a75fbefb3.js} +2 -2
  84. package/assets/esri/core/workers/chunks/c48dfda8dcb9551606fb.js +1 -0
  85. package/assets/esri/core/workers/chunks/c4e44fde4bc4ff89e2bc.js +1 -0
  86. package/assets/esri/core/workers/chunks/c93a68618674b38b932e.js +1 -0
  87. package/assets/esri/core/workers/chunks/d2745886ba5a86fd5c4c.js +680 -0
  88. package/assets/esri/core/workers/chunks/d4c341b15d9244276fb9.js +1 -0
  89. package/assets/esri/core/workers/chunks/d5faab9799891e5da5a8.js +1 -0
  90. package/assets/esri/core/workers/chunks/d811924acc9c0be95bba.js +1 -0
  91. package/assets/esri/core/workers/chunks/{4b96aa2dc5b88846bb53.js → e0a4d0288abd334b0673.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{b22a1c98271c2e4d8808.js → e1ddb8e4977b317fd40c.js} +1 -1
  93. package/assets/esri/core/workers/chunks/e961c6140c39921816a8.js +1 -0
  94. package/assets/esri/core/workers/chunks/eb7daa0f6610983ff8db.js +1 -0
  95. package/assets/esri/core/workers/chunks/eb842cf470ce28a73187.js +1 -0
  96. package/assets/esri/core/workers/chunks/ed1d4ebf487c7dcd5c33.js +1 -0
  97. package/assets/esri/core/workers/chunks/f565e203d8fed2672112.js +1 -0
  98. package/assets/esri/core/workers/chunks/f80cadcc2a588da63b38.js +1 -0
  99. package/assets/esri/core/workers/chunks/f8bbb52b865a0a242140.js +1 -0
  100. package/assets/esri/core/workers/chunks/f9592bcdd9988199a7ea.js +1 -0
  101. package/assets/esri/core/workers/chunks/ff7e1eb2366d4301d288.js +1 -0
  102. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  103. package/chunks/NavigationDepth.glsl.js +18 -0
  104. package/chunks/Path.glsl.js +20 -16
  105. package/config.js +1 -1
  106. package/core/accessorSupport/diffUtils.js +1 -1
  107. package/geometry/FlatGeometry.js +1 -1
  108. package/geometry/support/Indices.js +1 -1
  109. package/geometry/support/ShortArray.js +1 -1
  110. package/geometry/support/UintArray.js +1 -1
  111. package/geometry/support/meshUtils/geographicUtils.js +1 -1
  112. package/kernel.js +1 -1
  113. package/layers/mixins/PublishableLayer.js +1 -1
  114. package/layers/mixins/RefreshableLayer.js +1 -1
  115. package/layers/raster/functions/pixelUtils.js +1 -1
  116. package/layers/support/kustoUtils.js +1 -1
  117. package/package.json +1 -1
  118. package/popup/Feature.js +1 -1
  119. package/portal/support/resourceUtils.js +1 -1
  120. package/renderers/support/rasterTypeUtils.js +1 -1
  121. package/rest/query/operations/pbfFeatureSetUtils.js +1 -1
  122. package/support/revision.js +1 -1
  123. package/symbols/cim/utils.js +1 -1
  124. package/tables/support/tablesUtils.js +1 -1
  125. package/views/2d/engine/flow/utils.js +1 -1
  126. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  127. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  128. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  129. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  130. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/AlignedVertexSpec.js +1 -1
  131. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  132. package/views/2d/layers/features/layerAdapters/labelingUtils.js +1 -1
  133. package/views/2d/layers/support/annodime/dimensionUtils.js +1 -1
  134. package/views/2d/layers/support/annodime/utils.js +1 -1
  135. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  136. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  137. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  138. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  139. package/views/3d/layers/Lyr3DWasm.js +1 -1
  140. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  141. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  142. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  143. package/views/3d/layers/i3s/PointCloudRendererUtil.js +1 -1
  144. package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
  145. package/views/3d/layers/support/lyr3dTypeConversions.js +1 -1
  146. package/views/3d/state/utils/navigationUtils.js +1 -1
  147. package/views/3d/support/gaussianSplatting/GaussianSplatAtlasPages.js +1 -1
  148. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
  149. package/views/3d/support/orientedBoundingBox.js +1 -1
  150. package/views/3d/terrain/terrainUtils.js +1 -1
  151. package/views/3d/webgl-engine/core/material/MaterialBase.js +1 -1
  152. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  153. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +32 -16
  154. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +1 -1
  155. package/views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadowFromDepth.glsl.js +2 -2
  156. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  157. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  158. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  159. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  160. package/views/3d/webgl-engine/lib/NavigationDepthCache.js +2 -0
  161. package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
  162. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  163. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  164. package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
  165. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  166. package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
  167. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  168. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  169. package/views/3d/webgl-engine/materials/PathLayouts.js +1 -1
  170. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  171. package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
  172. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  173. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  174. package/views/3d/webgl-engine/shaders/NavigationDepth.glsl.js +2 -0
  175. package/views/3d/webgl-engine/shaders/NavigationDepthTechnique.js +2 -0
  176. package/views/3d/webgl-engine/shaders/oitResolution.glsl.js +1 -1
  177. package/views/draw/support/Reshape.js +1 -1
  178. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  179. package/views/support/selectionUtils.js +1 -1
  180. package/views/webgl/BufferObject.js +1 -1
  181. package/views/webgl/FramebufferObject.js +1 -1
  182. package/views/webgl/RenderingContext.js +1 -1
  183. package/views/webgl/VertexAttributeLayouts.js +1 -1
  184. package/webscene/spec-certification/utils.js +1 -1
  185. package/widgets/Editor/legacy/workflowUtils.js +1 -1
  186. package/widgets/Editor/workflowUtils.js +1 -1
  187. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  188. package/widgets/OrientedImageryViewer/navigation/errors.js +1 -1
  189. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  190. package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
  191. package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
  192. package/widgets/OrientedImageryViewer/utils.js +1 -1
  193. package/widgets/OrientedImageryViewer.js +1 -1
  194. package/widgets/PanoramicViewer/constants.js +1 -1
  195. package/widgets/PanoramicViewer/support/importUtils.js +1 -1
  196. package/widgets/PanoramicViewer/utils.js +1 -1
  197. package/widgets/support/dateUtils.js +1 -1
  198. package/assets/esri/core/workers/chunks/0a2f08298a3c932614f2.js +0 -1
  199. package/assets/esri/core/workers/chunks/0df978697328b6453c94.js +0 -1
  200. package/assets/esri/core/workers/chunks/168c15cf462f9abcbdd2.js +0 -1
  201. package/assets/esri/core/workers/chunks/22c447fcc9a28afeb6e3.js +0 -1
  202. package/assets/esri/core/workers/chunks/24aa98cb2021ddd789ce.js +0 -1
  203. package/assets/esri/core/workers/chunks/2509da565e5a2b43ac7f.js +0 -1
  204. package/assets/esri/core/workers/chunks/256cc116e3be4feee593.js +0 -1
  205. package/assets/esri/core/workers/chunks/2bb3494659609594c4ca.js +0 -1
  206. package/assets/esri/core/workers/chunks/2c017eae434254610c8e.js +0 -1
  207. package/assets/esri/core/workers/chunks/303e723e829ea7088d43.js +0 -1
  208. package/assets/esri/core/workers/chunks/368db1420b8520beae05.js +0 -1
  209. package/assets/esri/core/workers/chunks/38a6a7c56c592f336a12.js +0 -1
  210. package/assets/esri/core/workers/chunks/39ff5b2a05a90e1cb214.js +0 -1
  211. package/assets/esri/core/workers/chunks/3b914ca36e7e2b00cfe6.js +0 -1
  212. package/assets/esri/core/workers/chunks/3e8fa2a7a36881234479.js +0 -1
  213. package/assets/esri/core/workers/chunks/451331f69d21c61ec93b.js +0 -1
  214. package/assets/esri/core/workers/chunks/4656a4bf430d7eed1465.js +0 -1
  215. package/assets/esri/core/workers/chunks/472ec242cd3070e6acfe.js +0 -1
  216. package/assets/esri/core/workers/chunks/51d7145f748b4865de7f.js +0 -1
  217. package/assets/esri/core/workers/chunks/54f54623532f633dc0e2.js +0 -1
  218. package/assets/esri/core/workers/chunks/570a4725b2a4a19c5148.js +0 -1
  219. package/assets/esri/core/workers/chunks/586ca90e46f5cbdfeece.js +0 -1
  220. package/assets/esri/core/workers/chunks/59c22bab85f9cdbb9948.js +0 -1
  221. package/assets/esri/core/workers/chunks/5dfeefee96659832398a.js +0 -1
  222. package/assets/esri/core/workers/chunks/6c746ac4bd2e57b8cb41.js +0 -1
  223. package/assets/esri/core/workers/chunks/6d72a1bdc2664df62c4c.js +0 -1
  224. package/assets/esri/core/workers/chunks/7085b4c655a19694da04.js +0 -1
  225. package/assets/esri/core/workers/chunks/777b16b76db406c99c69.js +0 -1
  226. package/assets/esri/core/workers/chunks/818a481ce579f519de1c.js +0 -1
  227. package/assets/esri/core/workers/chunks/85a280ee915010a8da3c.js +0 -1
  228. package/assets/esri/core/workers/chunks/86731e276b31453bc235.js +0 -1
  229. package/assets/esri/core/workers/chunks/87b86375f8557418dbe6.js +0 -1
  230. package/assets/esri/core/workers/chunks/8817d25c7f4cf0e6c6bd.js +0 -1
  231. package/assets/esri/core/workers/chunks/8a9b2efa0603e9fa4e8b.js +0 -1
  232. package/assets/esri/core/workers/chunks/8aa5bbf9a9b09815725a.js +0 -1
  233. package/assets/esri/core/workers/chunks/8b68a69ab8fb1679e7b2.js +0 -1
  234. package/assets/esri/core/workers/chunks/98685bd149dee1d6dc99.js +0 -1
  235. package/assets/esri/core/workers/chunks/9de673a04c70bd47047e.js +0 -1
  236. package/assets/esri/core/workers/chunks/9de9cec5c644bc452294.js +0 -1
  237. package/assets/esri/core/workers/chunks/9fb0431b0628dcb53004.js +0 -680
  238. package/assets/esri/core/workers/chunks/a2a688dd2ed4565e01ff.js +0 -1
  239. package/assets/esri/core/workers/chunks/a3ae7c41832c7a8b0570.js +0 -1
  240. package/assets/esri/core/workers/chunks/a3e86830460e52706a4d.js +0 -1
  241. package/assets/esri/core/workers/chunks/a58b8903ae17acf117d6.js +0 -1
  242. package/assets/esri/core/workers/chunks/a99ce2f12c8204ee542a.js +0 -1
  243. package/assets/esri/core/workers/chunks/ab3d1c00ef514b61ce0b.js +0 -1
  244. package/assets/esri/core/workers/chunks/ae5363956b4467208e04.js +0 -1
  245. package/assets/esri/core/workers/chunks/b24b7411a73d1da87c30.js +0 -1
  246. package/assets/esri/core/workers/chunks/b97b83159fec34f383af.js +0 -1
  247. package/assets/esri/core/workers/chunks/bec660ee2e7828f965e2.js +0 -1
  248. package/assets/esri/core/workers/chunks/c7316fd2bdb7ac9eada3.js +0 -1
  249. package/assets/esri/core/workers/chunks/ca7d4d76a6bf5a3046cd.js +0 -1
  250. package/assets/esri/core/workers/chunks/cffef41791f0cfa6c26c.js +0 -1
  251. package/assets/esri/core/workers/chunks/d26b1a9f47b4b2744c89.js +0 -1
  252. package/assets/esri/core/workers/chunks/d4a96f0402172787823a.js +0 -1
  253. package/assets/esri/core/workers/chunks/d9fcc63df008f687848a.js +0 -1
  254. package/assets/esri/core/workers/chunks/e3a4695c31d3f9d55213.js +0 -1
  255. package/assets/esri/core/workers/chunks/e65d291bab13f7f5323b.js +0 -1
  256. package/assets/esri/core/workers/chunks/eeee7421f64a52074ff4.js +0 -1
  257. package/assets/esri/core/workers/chunks/eef7e0bee19c4258ba55.js +0 -1
  258. package/assets/esri/core/workers/chunks/efaf998d18479a0380ae.js +0 -1
  259. package/assets/esri/core/workers/chunks/f0573db9a3d3e1499a7e.js +0 -1
  260. package/assets/esri/core/workers/chunks/f07722efd7fa2b75d4dd.js +0 -1
  261. package/assets/esri/core/workers/chunks/f137e544076482e348ad.js +0 -1
  262. package/assets/esri/core/workers/chunks/fd53ef66176ae164e221.js +0 -1
  263. package/assets/esri/core/workers/chunks/fd956a58787020d610af.js +0 -1
  264. package/rest/sharedTemplates/addSharedTemplates.js +0 -2
  265. package/support/featureFlags.js +0 -2
  266. package/views/2d/engine/webgl/ClippingInfo.js +0 -2
  267. package/views/2d/engine/webgl/Mesh2D.js +0 -2
  268. package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +0 -2
  269. package/views/2d/layers/features/ProcessorTileMessageQueue.js +0 -2
  270. package/views/3d/support/AsyncWorkerQueue.js +0 -2
  271. package/views/3d/webgl-engine/lib/PathGeometryData.js +0 -2
  272. package/widgets/BatchAttributeForm/templates/support/contingentValuesUtils.js +0 -2
  273. package/widgets/OrientedImageryViewer/components/NavigationAction.js +0 -2
  274. package/widgets/OrientedImageryViewer/components/NavigationActions.js +0 -2
  275. package/widgets/OrientedImageryViewer/support/NonPanoramicMediaCollection.js +0 -2
  276. package/widgets/PanoramicViewer/support/PanoramicMediaCollection.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{67026(t,n,e){e.d(n,{A6:()=>M,Xd:()=>u,Xr:()=>d,hZ:()=>_,lw:()=>f,t2:()=>w,x8:()=>c});var s=e(29242),a=e(82534),r=e(51850),i=e(34304),o=e(35522),h=e(78955);function c(t,n,e){e*=.5;const s=Math.sin(e);return t[0]=s*n[0],t[1]=s*n[1],t[2]=s*n[2],t[3]=Math.cos(e),t}function u(t,n){const e=2*Math.acos(n[3]),s=Math.sin(e/2);return s>(0,i.FD)()?(t[0]=n[0]/s,t[1]=n[1]/s,t[2]=n[2]/s):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const s=n[0],a=n[1],r=n[2],i=n[3],o=e[0],h=e[1],c=e[2],u=e[3];return t[0]=s*u+i*o+a*c-r*h,t[1]=a*u+i*h+r*o-s*c,t[2]=r*u+i*c+s*h-a*o,t[3]=i*u-s*o-a*h-r*c,t}function l(t,n,e,s){const a=n[0],r=n[1],o=n[2],h=n[3];let c,u,f,l,d,m=e[0],M=e[1],g=e[2],_=e[3];return u=a*m+r*M+o*g+h*_,u<0&&(u=-u,m=-m,M=-M,g=-g,_=-_),1-u>(0,i.FD)()?(c=Math.acos(u),f=Math.sin(c),l=Math.sin((1-s)*c)/f,d=Math.sin(s*c)/f):(l=1-s,d=s),t[0]=l*a+d*m,t[1]=l*r+d*M,t[2]=l*o+d*g,t[3]=l*h+d*_,t}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function m(t,n){const e=n[0]+n[4]+n[8];let s;if(e>0)s=Math.sqrt(e+1),t[3]=.5*s,s=.5/s,t[0]=(n[5]-n[7])*s,t[1]=(n[6]-n[2])*s,t[2]=(n[1]-n[3])*s;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const a=(e+1)%3,r=(e+2)%3;s=Math.sqrt(n[3*e+e]-n[3*a+a]-n[3*r+r]+1),t[e]=.5*s,s=.5/s,t[3]=(n[3*a+r]-n[3*r+a])*s,t[a]=(n[3*a+e]+n[3*e+a])*s,t[r]=(n[3*r+e]+n[3*e+r])*s}return t}function M(t,n,e,s){const a=.5*Math.PI/180;n*=a,e*=a,s*=a;const r=Math.sin(n),i=Math.cos(n),o=Math.sin(e),h=Math.cos(e),c=Math.sin(s),u=Math.cos(s);return t[0]=r*h*u-i*o*c,t[1]=i*o*u+r*h*c,t[2]=i*h*c-r*o*u,t[3]=i*h*u+r*o*c,t}const g=h.C,_=h.hZ,v=h.WQ,b=f,P=h.hs,j=h.Om,x=h.Cc,p=h.Bw,A=p,I=h.m3,C=I,S=h.S8,w=h.t2,z=h.aI,y=(0,r.vt)(),Q=(0,r.fA)(1,0,0),q=(0,r.fA)(0,1,0),F=(0,a.vt)(),N=(0,a.vt)(),V=(0,s.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(t,n){const e=n[0],s=n[1],a=n[2];return t[0]=e,t[1]=s,t[2]=a,t[3]=Math.sqrt(Math.abs(1-e*e-s*s-a*a)),t},conjugate:d,copy:g,dot:j,equals:z,exactEquals:w,fromEuler:M,fromMat3:m,getAxisAngle:u,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],s=n[1],a=n[2],r=n[3],i=e*e+s*s+a*a+r*r,o=i?1/i:0;return t[0]=-e*o,t[1]=-s*o,t[2]=-a*o,t[3]=r*o,t},len:A,length:p,lerp:x,mul:b,multiply:f,normalize:S,random:function(t){const n=i.Ov,e=n(),s=n(),a=n(),r=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=r*Math.sin(2*Math.PI*s),t[1]=r*Math.cos(2*Math.PI*s),t[2]=o*Math.sin(2*Math.PI*a),t[3]=o*Math.cos(2*Math.PI*a),t},rotateX:function(t,n,e){e*=.5;const s=n[0],a=n[1],r=n[2],i=n[3],o=Math.sin(e),h=Math.cos(e);return t[0]=s*h+i*o,t[1]=a*h+r*o,t[2]=r*h-a*o,t[3]=i*h-s*o,t},rotateY:function(t,n,e){e*=.5;const s=n[0],a=n[1],r=n[2],i=n[3],o=Math.sin(e),h=Math.cos(e);return t[0]=s*h-r*o,t[1]=a*h+i*o,t[2]=r*h+s*o,t[3]=i*h-a*o,t},rotateZ:function(t,n,e){e*=.5;const s=n[0],a=n[1],r=n[2],i=n[3],o=Math.sin(e),h=Math.cos(e);return t[0]=s*h+a*o,t[1]=a*h-s*o,t[2]=r*h+i*o,t[3]=i*h-r*o,t},rotationTo:function(t,n,e){const s=(0,o.Om)(n,e);return s<-.999999?((0,o.$A)(y,Q,n),(0,o.Il)(y)<1e-6&&(0,o.$A)(y,q,n),(0,o.S8)(y,y),c(t,y,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.$A)(y,n,e),t[0]=y[0],t[1]=y[1],t[2]=y[2],t[3]=1+s,S(t,t))},scale:P,set:_,setAxes:function(t,n,e,s){const a=V;return a[0]=e[0],a[3]=e[1],a[6]=e[2],a[1]=s[0],a[4]=s[1],a[7]=s[2],a[2]=-n[0],a[5]=-n[1],a[8]=-n[2],S(t,m(t,a))},setAxisAngle:c,slerp:l,sqlerp:function(t,n,e,s,a,r){return l(F,n,a,r),l(N,e,s,r),l(t,F,N,2*r*(1-r)),t},sqrLen:C,squaredLength:I,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},48353(t,n,e){e.d(n,{l:()=>c});var s=e(34727),a=e(58083),r=e(51850);function i(t,n,e){const s=Math.sin(t),a=Math.cos(t),r=Math.sin(n),i=Math.cos(n),o=e;return o[0]=-s,o[4]=-r*a,o[8]=i*a,o[12]=0,o[1]=a,o[5]=-r*s,o[9]=i*s,o[13]=0,o[2]=0,o[6]=i,o[10]=r,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(49208),h=e(21325);function c(t,n,e,s){const r=(0,o.Tp)(t,s);if(null==r)return!1;const c=r.source.spatialReferenceId,m=r.dest.spatialReferenceId;if(c===m&&!u(m)&&(0!==c||(0,h.aI)(t,s)))return(0,a.kN)(e,n),!0;if(u(m)){const t=o.w5[c][10],s=o.w5[10][m];return null!=t&&null!=s&&(t(n,0,l,0),s(l,0,d,0),i(f*l[0],f*l[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const M=u(c);if((3===m||11===m||2===m||5===m)&&(2===c||M||3===c||5===c)){const t=o.w5[c][10],s=o.w5[10][m];return null!=t&&null!=s&&(t(n,0,l,0),s(l,0,d,0),M?function(t,n,e){i(t,n,e),(0,a.mg)(e,e)}(f*l[0],f*l[1],e):(0,a.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function u(t){return 1===t||6===t||8===t||4===t}const f=(0,s.kU)(1),l=(0,r.vt)(),d=(0,r.vt)()},57005(t,n,e){e.d(n,{ab:()=>vt,gm:()=>wt});var s=e(77690),a=e(29242),r=e(9093),i=e(67026),o=e(82534),h=e(35522),c=e(51850),u=e(78955),f=e(91829),l=e(73941),d=e(98764),m=e(48353),M=e(9762),g=e(49208),_=e(27921),v=e(21325),b=e(48163),P=e(46610);const j=1e-6,x=(0,c.vt)(),p=(0,c.vt)();function A(t,n,e,s,a,r,i,o,h,c){return function(t,n,e){let s=gt(t.maxVert[0],t.minVert[0]),a=0;for(let n=1;n<7;++n){const e=gt(t.maxVert[n],t.minVert[n]);e>s&&(s=e,a=n)}lt(n,t.minVert[a]),lt(e,t.maxVert[a])}(t,s,a),gt(s,a)<j?1:(ut(i,s,a),mt(i,i),function(t,n,e,s){const{data:a,size:r}=t;let i=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<a.length;t+=r){N[0]=a[t]-n[0],N[1]=a[t+1]-n[1],N[2]=a[t+2]-n[2];const s=e[0]*N[0]+e[1]*N[1]+e[2]*N[2],r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],h=N[0]*N[0]+N[1]*N[1]+N[2]*N[2]-s*s/r;h>i&&(i=h,o=t)}return lt(s,a,o),i}(n,s,i,r)<j?2:(ut(o,a,r),mt(o,o),ut(h,r,s),mt(h,h),dt(e,o,i),mt(e,e),T(n,e,i,o,h,c),0))}const I=(0,c.vt)(),C=(0,c.vt)(),S=(0,c.vt)(),w=(0,c.vt)(),z=(0,c.vt)(),y=(0,c.vt)(),Q=(0,c.vt)(),q=(0,c.vt)();function F(t,n,e,s,a,r,i,o,h){(function(t,n,e,s,a){!function(t,n,e,s,a){const{data:r,size:i}=t;lt(s,r),lt(a,s),e[0]=_t(B,n),e[1]=e[0];for(let t=i;t<r.length;t+=i){const i=r[t]*n[0]+r[t+1]*n[1]+r[t+2]*n[2];i<e[0]&&(e[0]=i,lt(s,r,t)),i>e[1]&&(e[1]=i,lt(a,r,t))}}(t,n,V,a,s);const r=_t(e,n);V[1]-j<=r&&(s[0]=void 0),V[0]+j>=r&&(a[0]=void 0)})(t,n,e,I,C),void 0!==I[0]&&(ut(S,I,e),mt(S,S),ut(w,I,s),mt(w,w),ut(z,I,a),mt(z,z),dt(y,w,r),mt(y,y),dt(Q,z,i),mt(Q,Q),dt(q,S,o),mt(q,q),T(t,y,r,w,S,h),T(t,Q,i,z,w,h),T(t,q,o,S,z,h)),void 0!==C[0]&&(ut(S,C,e),mt(S,S),ut(w,C,s),mt(w,w),ut(z,C,a),mt(z,z),dt(y,w,r),mt(y,y),dt(Q,z,i),mt(Q,Q),dt(q,S,o),mt(q,q),T(t,y,r,w,S,h),T(t,Q,i,z,w,h),T(t,q,o,S,z,h))}const N=[0,0,0],V=(0,b.vt)(),H=(0,c.vt)(),L=(0,c.vt)(),O=(0,c.vt)(),R=(0,c.vt)(),D=(0,c.vt)(),Z=(0,c.vt)();function T(t,n,e,s,a,r){if(Mt(n)<j)return;dt(H,e,n),dt(L,s,n),dt(O,a,n),W(t,n,V),D[1]=V[0],R[1]=V[1],Z[1]=R[1]-D[1];const i=[e,s,a],o=[H,L,O];for(let e=0;e<3;++e){W(t,i[e],V),D[0]=V[0],R[0]=V[1],W(t,o[e],V),D[2]=V[0],R[2]=V[1],Z[0]=R[0]-D[0],Z[2]=R[2]-D[2];const s=ht(Z);s<r.quality&&(lt(r.b0,i[e]),lt(r.b1,n),lt(r.b2,o[e]),r.quality=s)}}const B=(0,c.vt)();function W(t,n,e){const{data:s,size:a}=t;let r=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;const o=n[0],h=n[1],c=n[2];for(let t=0;t<s.length;t+=a){const n=s[t]*o+s[t+1]*h+s[t+2]*c;r=Math.min(r,n),i=Math.max(i,n)}e[0]=r,e[1]=i}function k(t,n,e){e.setCenter(t),e.setHalfSize((0,h.hs)(n,n,.5)),e.setQuaternion(o.zK)}const E=(0,c.vt)(),X=(0,c.vt)(),Y=(0,c.vt)(),G=(0,c.vt)(),K=(0,c.vt)(),$=(0,c.vt)();function J(t,n,e){lt(E,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?E[0]=0:Math.abs(n[1])>Math.abs(n[2])?E[1]=0:E[2]=0,Mt(E)<j&&(E[0]=E[1]=E[2]=1),dt(X,n,E),mt(X,X),dt(Y,n,X),mt(Y,Y),U(t,n,X,Y,G,K),ut($,K,G),rt(n,X,Y,G,K,$,e)}function U(t,n,e,s,a,r){W(t,n,V),a[0]=V[0],r[0]=V[1],W(t,e,V),a[1]=V[0],r[1]=V[1],W(t,s,V),a[2]=V[0],r[2]=V[1]}const tt=(0,c.vt)(),nt=(0,c.vt)(),et=(0,c.vt)(),st=(0,a.fA)(1,0,0,0,1,0,0,0,1),at=(0,o.vt)();function rt(t,n,e,s,a,r,i){st[0]=t[0],st[1]=t[1],st[2]=t[2],st[3]=n[0],st[4]=n[1],st[5]=n[2],st[6]=e[0],st[7]=e[1],st[8]=e[2],i.setQuaternion(function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let s=Math.sqrt(e+1);t[3]=.5*s,s=.5/s,t[0]=(n[5]-n[7])*s,t[1]=(n[6]-n[2])*s,t[2]=(n[1]-n[3])*s}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const s=(e+1)%3,a=(e+2)%3;let r=Math.sqrt(n[3*e+e]-n[3*s+s]-n[3*a+a]+1);t[e]=.5*r,r=.5/r,t[3]=(n[3*s+a]-n[3*a+s])*r,t[s]=(n[3*s+e]+n[3*e+s])*r,t[a]=(n[3*a+e]+n[3*e+a])*r}return t}(at,st)),ct(tt,s,a),ft(tt,tt,.5),ft(nt,t,tt[0]),ft(et,n,tt[1]),ct(nt,nt,et),ft(et,e,tt[2]),i.setCenter((0,h.WQ)(nt,nt,et)),i.setHalfSize((0,h.hs)(tt,r,.5))}class it{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),s=new Array(7),{data:a,size:r}=t;for(let t=0;t<a.length;t+=r){let n=a[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,s[0]=t),n=a[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,s[1]=t),n=a[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,s[2]=t),n=a[t]+a[t+1]+a[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,s[3]=t),n=a[t]+a[t+1]-a[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,s[4]=t),n=a[t]-a[t+1]+a[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,s[5]=t),n=a[t]-a[t+1]-a[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,s[6]=t)}for(let t=0;t<7;++t){let n=e[t];lt(this.minVert[t],a,n),n=s[t],lt(this.maxVert[t],a,n)}}}class ot{constructor(){this.b0=(0,c.fA)(1,0,0),this.b1=(0,c.fA)(0,1,0),this.b2=(0,c.fA)(0,0,1),this.quality=0}}function ht(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ct(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ut(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function ft(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function lt(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function dt(t,n,e){const s=n[0],a=n[1],r=n[2],i=e[0],o=e[1],h=e[2];t[0]=a*h-r*o,t[1]=r*i-s*h,t[2]=s*o-a*i}function mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const s=1/Math.sqrt(e);t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s}}function Mt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function gt(t,n){const e=n[0]-t[0],s=n[1]-t[1],a=n[2]-t[2];return e*e+s*s+a*a}function _t(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class vt{constructor(t=c.uY,n=yt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){return vt.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new vt;return n._copyFromData(t),n}static fromJSON(t){return new vt(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let n=0;n<10;++n)this._data[n]=t[n]}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}setCenter(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenterFromValues(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}setHalfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}setHalfSizeFromValues(t,n,e){this._data[3]=t,this._data[4]=n,this._data[5]=e}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}getQuaternionConjugate(t){return t[0]=-this._data[6],t[1]=-this._data[7],t[2]=-this._data[8],t[3]=this._data[9],t}setQuaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const n=this._data,e=(0,i.hZ)(bt,n[6],n[7],n[8],n[9]);for(let s=0;s<8;++s){const a=t[s];a[0]=(1&s?-1:1)*n[3],a[1]=(2&s?-1:1)*n[4],a[2]=(4&s?-1:1)*n[5],(0,h.gL)(a,a,e),a[0]+=n[0],a[1]+=n[1],a[2]+=n[2]}return t}getAxes(t){const n=this._data,e=(0,i.hZ)(bt,n[6],n[7],n[8],n[9]);return(0,h.gL)(t[0],[1,0,0],e),(0,h.gL)(t[1],[0,1,0],e),(0,h.gL)(t[2],[0,0,1],e),t}intersectsFrustum(t){const{centerX:n,centerY:e,centerZ:s}=this,a=t.planes;for(const t of a){const a=(0,_.Qj)(t),r=this.projectedRadius(a);if(n*a[0]+e*a[1]+s*a[2]+t[3]-r>0)return!1}const r=this.getAxes(Rt),i=t.points,o=this.getHalfSize(Vt);for(let t=0;t<3;++t){const a=r[t],c=-a[0]*n-a[1]*e-a[2]*s,u=o[t];let f=!0,l=!0;for(const t of i){const n=(0,h.Om)(t,a)+c;f&&=n>u,l&&=n<-u}if(f||l)return!1}if(this.getCorners(Ot).some(n=>t.intersectsPoint(n)))return!0;const c=Wt;for(let t=0;t<3;++t){const a=r[t];c[t]=a[0]*n+a[1]*e+a[2]*s}if(t.points.some(t=>(t=>{for(let n=0;n<3;++n){const e=r[n],s=o[n],a=e[0]*t[0]+e[1]*t[1]+e[2]*t[2]-c[n];if(a>s||a<-s)return!1}return!0})(t)))return!0;const u=t.lines,f=Bt;for(let t=0;t<8;++t){const a=u[t].direction;for(const t of r){(0,h.$A)(f,a,t);const r=(0,h.Il)(f);if(!(r>0))continue;(0,h.hs)(f,f,1/r);const o=this.projectedRadius(f),c=f[0]*n+f[1]*e+f[2]*s,u=c-o,l=c+o;let d=!1,m=!1,M=!0;for(const t of i){const n=(0,h.Om)(f,t);if(n>l){if(m){M=!1;break}d=!0}else{if(!(n<u)){M=!1;break}if(d){M=!1;break}m=!0}}if(M)return!1}}return!0}intersectsFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}intersectsFrustumConservativeApproximationWithMargin(t,n){return this.signedDistanceRangePlane(t[0]).min<=n&&this.signedDistanceRangePlane(t[1]).min<=n&&this.signedDistanceRangePlane(t[2]).min<=n&&this.signedDistanceRangePlane(t[3]).min<=n&&this.signedDistanceRangePlane(t[4]).min<=n&&this.signedDistanceRangePlane(t[5]).min<=n}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectsPoint(t){const n=this.getAxes(Rt),e=this.getHalfSize(Vt),s=this.getCenter(Nt);for(let a=0;a<3;++a){const r=n[a],i=e[a],o=(0,h.Om)(r,t)-(0,h.Om)(r,s);if(o>i||o<-i)return!1}return!0}intersectSphere(t){const{center:n,radius:e}=t,s=this._data,a=s[3],r=s[4],i=s[5],o=a+r+i+e,h=s[0]-n[0];if(Math.abs(h)>o)return!1;const c=s[1]-n[1];if(Math.abs(c)>o)return!1;const u=s[2]-n[2];if(Math.abs(u)>o)return!1;const f=-s[6],l=-s[7],d=-s[8],m=l*u-d*c,M=d*h-f*u,g=f*c-l*h,_=l*g-d*M,v=d*m-f*g,b=f*M-l*m,P=2*s[9],j=Math.abs(h+m*P+2*_),x=Math.abs(c+M*P+2*v),p=Math.abs(u+g*P+2*b),A=j-Math.min(j,a),I=x-Math.min(x,r),C=p-Math.min(p,i);return A*A+I*I+C*C<=e*e}intersectSphereWithMBS(t,n=this.radius){const e=this._data,{center:s,radius:a}=t,r=n+a,i=e[0]-s[0];if(i>r)return!1;const o=e[1]-s[1];if(o>r)return!1;const h=e[2]-s[2];if(h>r)return!1;if(i*i+o*o+h*h>r*r)return!1;const c=-e[6],u=-e[7],f=-e[8],l=u*h-f*o,d=f*i-c*h,m=c*o-u*i,M=u*m-f*d,g=f*l-c*m,_=c*d-u*l,v=2*e[9],b=Math.abs(i+l*v+2*M),P=Math.abs(o+d*v+2*g),j=Math.abs(h+m*v+2*_),x=b-Math.min(b,e[3]),p=P-Math.min(P,e[4]),A=j-Math.min(j,e[5]);return x*x+p*p+A*A<a*a}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,_.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const s=this._data,a=bt;a[0]=-s[6],a[1]=-s[7],a[2]=-s[8],a[3]=s[9],xt[0]=t[0]-s[0],xt[1]=t[1]-s[1],xt[2]=t[2]-s[2];const r=(0,h.gL)(xt,xt,bt),i=(0,h.gL)(pt,n,bt);let o=-1/0,c=1/0;const u=this.getHalfSize(Vt);for(let t=0;t<3;t++){const n=r[t],s=i[t],a=u[t]+e;if(Math.abs(s)>1e-6){const t=(a-n)/s,e=(-a-n)/s;o=Math.max(o,Math.min(t,e)),c=Math.min(c,Math.max(t,e))}else if(n>a||n<-a)return!1}return o<=c}projectedArea(t,n,e,a){const r=this.getQuaternion(Pt);(0,i.Xr)(bt,r),xt[0]=t[0]-this._data[0],xt[1]=t[1]-this._data[1],xt[2]=t[2]-this._data[2],(0,h.gL)(xt,xt,bt);const o=this.getHalfSize(Vt),c=xt[0]<-o[0]?-1:xt[0]>o[0]?1:0,f=xt[1]<-o[1]?-1:xt[1]>o[1]?1:0,l=xt[2]<-o[2]?-1:xt[2]>o[2]?1:0,d=Math.abs(c)+Math.abs(f)+Math.abs(l);if(0===d)return 1/0;const m=1===d?4:6,M=6*(c+3*f+9*l+13);(0,s.I0)(Ht,r),(0,s.hs)(Ht,Ht,o);const g=this.getCenter(Nt);for(let t=0;t<m;t++){const e=St[M+t];(0,h.hZ)(xt,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,h.ei)(xt,xt,Ht),(0,h.WQ)(At,g,xt),At[3]=1,(0,u.Z0)(At,At,n);const s=1/Math.max(1e-6,At[3]);Ct[2*t]=At[0]*s,Ct[2*t+1]=At[1]*s}const _=2*m-2;let v=Ct[0]*(Ct[3]-Ct[_+1])+Ct[_]*(Ct[1]-Ct[_-1]);for(let t=2;t<_;t+=2)v+=Ct[t]*(Ct[t+3]-Ct[t-1]);return Math.abs(v)*e*a*.125}projectedRadius(t){const n=this._data;return(0,h.fw)(xt,t,-n[6],-n[7],-n[8],n[9]),Math.abs(xt[0]*n[3])+Math.abs(xt[1]*n[4])+Math.abs(xt[2]*n[5])}signedDistancePlane(t,n){const e=this._data,s=t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+n,a=this.projectedRadius(t);return s>a?s-a:s<-a?s+a:0}signedDistanceRangePlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,_.Qj)(t));return{min:n-e,max:n+e}}toAaBoundingBox(t){const n=this.getQuaternion(Pt),e=(0,s.I0)(Ht,n),a=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),r=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),i=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-r,t[2]=this._data[2]-i,t[3]=this._data[0]+a,t[4]=this._data[1]+r,t[5]=this._data[2]+i}transform(t,n,e,s=0,a=(0,d.lO)(e),r=(0,d.lO)(n),o=(0,g.jd)(n,r)){if(e===a)n.isGeographic?function(t,n,e,s,a=(0,d.lO)(e)){const r=(0,l.tO)(e),o=1+Math.max(0,s)/(r.radius+t.centerZ);t.getCenter(Ft),Ft[2]+=s,(0,M.projectBuffer)(Ft,e,0,Ft,a,0),n.setCenter(Ft);const c=t.getQuaternion(Pt);n.setQuaternion(c),(0,i.Xr)(bt,c),(0,h.hZ)(Dt,0,0,1),(0,h.gL)(Dt,Dt,bt);const u=t.getHalfSize(Vt);(0,h.hZ)(Dt,u[0]*Math.abs(Dt[0]),u[1]*Math.abs(Dt[1]),u[2]*Math.abs(Dt[2])),(0,h.hs)(Dt,Dt,r.inverseFlattening),(0,h.WQ)(Dt,u,Dt),n.setHalfSize((0,h.hs)(Dt,Dt,o))}(this,t,n,s,r):function(t,n,e,s,a=(0,d.lO)(e),r=(0,g.jd)(e,a)){t.getCorners(Ot);const o=t.getCenter(Nt);o[2]+=s,(0,m.l)(e,o,Lt,a),n.setCenterFromValues(Lt[12],Lt[13],Lt[14]);const c=2*Math.sqrt(1+Lt[0]+Lt[5]+Lt[10]);bt[0]=(Lt[6]-Lt[9])/c,bt[1]=(Lt[8]-Lt[2])/c,bt[2]=(Lt[1]-Lt[4])/c,bt[3]=.25*c;const u=t.getQuaternion(Pt);n.setQuaternion((0,i.lw)(bt,bt,u)),(0,i.Xr)(bt,bt),(0,h.hZ)(Zt,0,0,0);const f=n.getCenter(Nt);for(const t of Ot)t[2]+=s,r(t,0,t,0),(0,h.jb)(Dt,t,f),(0,h.gL)(Dt,Dt,bt),(0,h.tn)(Dt,Dt),(0,h.T9)(Zt,Zt,Dt);n.setHalfSize(Zt)}(this,t,n,s,r,o);else if(n.isGeographic&&(e.isWebMercator||(0,v.r1)(e)))!function(t,n,e,s,a){const r=n.getCenter(Nt);r[2]+=a;const i=(0,d.lO)(e);(0,M.projectBuffer)(r,t,0,r,i,0),zt(i,n,r,e,s)}(n,this,e,t,s);else if(n.isWebMercator&&(0,v.r1)(e))!function(t,n,e,s,a){const r=n.getCenter(Nt);r[2]+=a,zt(t,n,r,e,s)}(n,this,e,t,s);else{const a=this.getCenter(Nt);a[2]+=s,(0,M.projectBuffer)(a,n,0,a,e,0),t.setCenter(a),this!==t&&(t.setQuaternion(this.getQuaternion(Pt)),t.setHalfSize(this.getHalfSize(Vt)))}}}const bt=(0,o.vt)(),Pt=(0,o.vt)(),jt=(0,o.vt)(),xt=(0,c.vt)(),pt=(0,c.vt)(),At=(0,f.vt)();function It(t,n=new vt){return function(t,n){const{data:e,size:s}=t,a=e.length/s;if(a<=0)return;const r=new it(t);ct(x,r.minProj,r.maxProj),ft(x,x,.5),ut(p,r.maxProj,r.minProj);const i=ht(p),o=new ot;o.quality=i,a<14&&(t=new P.K(new Float64Array(r.buffer,112,42),3));const h=(0,c.vt)(),u=(0,c.vt)(),f=(0,c.vt)(),l=(0,c.vt)(),d=(0,c.vt)(),m=(0,c.vt)(),M=(0,c.vt)();switch(A(r,t,M,h,u,f,l,d,m,o)){case 1:return void k(x,p,n);case 2:return void J(t,l,n)}F(t,M,h,u,f,l,d,m,o),U(t,o.b0,o.b1,o.b2,G,K);const g=(0,c.vt)();ut(g,K,G),o.quality=ht(g),o.quality<i?rt(o.b0,o.b1,o.b2,G,K,g,n):k(x,p,n)}(t,n),n}const Ct=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],St=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let s=0;s<e.length;s++)t[n+s]=e[s];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function wt(t,n,e,s,a){const r=t.getQuaternion(Pt);a.setQuaternion(r),(0,i.Xr)(bt,r);const o=t.getCenter(Nt),u=t.getHalfSize(Vt);if(1===s){(0,h.gL)(Dt,o,bt),(0,h.tn)(Zt,Dt),(0,h.jk)(Tt,Zt,u),(0,h.jb)(Tt,Zt,Tt);const s=(0,h.Bw)(Tt);(0,h.WQ)(Tt,Zt,u);const r=(0,h.Bw)(Tt);if(s<e)a.setCenter(o),(0,h.hZ)(Dt,e,e,e),a.setHalfSize((0,h.WQ)(Dt,u,Dt));else{const i=r>0?1+n/r:1,o=s>0?1+e/s:1,c=(o+i)/2,f=(o-i)/2;(0,h.hs)(Tt,Zt,f),a.setHalfSize((0,h.Ln)(Tt,Tt,u,c)),(0,h.hs)(Tt,Zt,c),(0,h.Ln)(Tt,Tt,u,f),(0,h._S)(Dt,Dt),(0,h.lw)(Dt,Tt,Dt);const l=t.getQuaternion(jt);a.setCenter((0,h.gL)(Dt,Dt,l))}}else{a.setCenter((0,h.Ln)(Dt,o,c.Cb,(e+n)/2));const t=(0,h.gL)(Dt,c.Cb,bt);(0,h.tn)(t,t),a.setHalfSize((0,h.Ln)(Zt,u,t,(e-n)/2))}return a}function zt(t,n,e,a,r){const i=n.getQuaternion(Pt),o=(0,s.I0)(Ht,i),h=n.getHalfSize(Vt);for(let t=0;t<8;++t){for(let n=0;n<3;++n)Ft[n]=h[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let s=e[n];for(let t=0;t<3;++t)s+=Ft[t]*o[3*t+n];Qt[3*t+n]=s}}(0,M.projectBuffer)(Qt,t,0,Qt,a,0,8),It(qt,r)}const yt=(0,c.CN)(-1,-1,-1),Qt=new Array(24),qt=new P.K(Qt,3),Ft=(0,c.vt)(),Nt=(0,c.vt)(),Vt=(0,c.vt)(),Ht=(0,a.vt)(),Lt=(0,r.vt)(),Ot=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Rt=[(0,c.vt)(),(0,c.vt)(),(0,c.vt)()],Dt=(0,c.vt)(),Zt=(0,c.vt)(),Tt=(0,c.vt)(),Bt=(0,c.vt)(),Wt=[0,0,0]},46610(t,n,e){e.d(n,{K:()=>s,n:()=>a});class s{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class a extends s{constructor(t,n,e,s=!1,a=e){super(t,e,a),this.indices=n,this.exclusive=s}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1123],{5482(e,t,n){function r(e,t,n,r){var i,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,n,a):i(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a}function i(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}n.d(t,{Cg:()=>r,hk:()=>a,mS:()=>i}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function a(e){function t(t){e.error=e.hasError?new s(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},1123(e,t,n){n.r(t),n.d(t,{invokeGeometryOp:()=>o});var r=n(65864);function i(e,t){let n;return{loaded:!1,load:()=>n??=t().then(t=>{a[e]={loaded:!0,execute:t}})}}function s(e){return null==e?null:e.toJSON()}const a={disjoint:i("disjoint",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(4579)]).then(n.bind(n,7978)).then(e=>e.execute)),intersects:i("intersects",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6033)]).then(n.bind(n,55284)).then(e=>e.execute)),touches:i("touches",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(368)]).then(n.bind(n,83547)).then(e=>e.execute)),crosses:i("crosses",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(4935)]).then(n.bind(n,85672)).then(e=>e.execute)),within:i("within",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(4168)]).then(n.bind(n,85445)).then(e=>e.execute)),contains:i("contains",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(2990)]).then(n.bind(n,51508)).then(e=>e.execute)),overlaps:i("overlaps",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(923)]).then(n.bind(n,46178)).then(e=>e.execute)),equals:i("equals",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(4795)]).then(n.bind(n,45328));return(t,n)=>e.execute((0,r.rS)(t),(0,r.rS)(n))}),relate:i("relate",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(891)]).then(n.bind(n,43628));return(t,n,i)=>e.execute((0,r.rS)(t),(0,r.rS)(n),i)}),intersection:i("intersection",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(3902)]).then(n.bind(n,49263)).then(e=>e.execute)),union:i("union",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6708)]).then(n.bind(n,56339)).then(e=>e.executeMany)),difference:i("difference",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(7217)]).then(n.bind(n,93054));return(t,n)=>s(e.execute((0,r.rS)(t),(0,r.rS)(n)))}),symmetricDifference:i("symmetricDifference",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1812)]).then(n.bind(n,89041));return(t,n)=>s(e.execute((0,r.rS)(t),(0,r.rS)(n)))}),clip:i("clip",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(5391)]).then(n.bind(n,24815));return(t,n)=>s(e.execute((0,r.rS)(t),(0,r.rS)(n)))}),cut:i("cut",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1512)]).then(n.bind(n,37817));return(t,n)=>e.execute((0,r.rS)(t),(0,r.rS)(n)).map(e=>s(e))}),area:i("area",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(9835)]).then(n.bind(n,95624)),{convertFromSpatialReferenceUnit:t,toAreaUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,s)=>{const a=e.execute((0,r.rS)(n));return t(n.spatialReference,i(s),a)}}),geodeticArea:i("geodeticArea",async()=>{const e=await n.e(9506).then(n.bind(n,89506)),{convert:t,squareMeters:i,toAreaUnit:s}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,a,o)=>{const c=e.execute((0,r.rS)(n),{curveType:o});return t(i,s(a),c)}}),length:i("length",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(8679)]).then(n.bind(n,51190)),{convertFromSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,i)=>{const s=e.execute(n);return t(n.spatialReference,r(i),s)}}),geodeticLength:i("geodeticLength",async()=>{const e=await n.e(427).then(n.bind(n,40427)),{convert:t,meters:i,toLengthUnit:s}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,a,o)=>{const c=e.execute((0,r.rS)(n),{curveType:o});return t(i,s(a),c)}}),distance:i("distance",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1965)]).then(n.bind(n,77038)),{convertFromSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,s,a)=>{const o=e.execute((0,r.rS)(n),(0,r.rS)(s));return t(n.spatialReference,i(a),o)}}),densify:i("densify",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(4642)]).then(n.bind(n,88411)),{convertToSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,a,o)=>(a=t(i(o),n.spatialReference,a),s(e.execute((0,r.rS)(n),a)))}),geodeticDensify:i("geodeticDensify",async()=>{const e=await n.e(4097).then(n.bind(n,64097)),{convert:t,meters:i,toLengthUnit:a}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,o,c,l)=>(o=t(a(c),i,o),s(e.execute((0,r.rS)(n),o,{curveType:l})))}),generalize:i("generalize",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6276)]).then(n.bind(n,60591)),{convertToSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,a,o,c)=>(a=t(i(o),n.spatialReference,a),s(e.execute((0,r.rS)(n),a,c)))}),buffer:i("buffer",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(8089),n.e(9125)]).then(n.bind(n,46160)),{convertToSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,i,s)=>(i=t(r(s),n.spatialReference,i),e.execute(n,i))}),geodesicBuffer:i("geodesicBuffer",async()=>{const e=await n.e(9159).then(n.bind(n,49159)),{convert:t,meters:r,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,s,a,o)=>(s=t(i(a),r,s),e.execute(n,s,{curveType:o}))}),offset:i("offset",async()=>{const{executeOffsetJson:e}=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(8089),n.e(5549),n.e(5612)]).then(n.bind(n,85549));return e}),rotate:i("rotate",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(2260)]).then(n.bind(n,50647)),{default:t}=await Promise.all([n.e(3661),n.e(1878),n.e(8812)]).then(n.bind(n,78812));return(n,i,a,o)=>{const c=(new t).rotate(i,a,o);return s(e.execute((0,r.rS)(n),c))}}),centroid:i("centroid",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1054)]).then(n.bind(n,17077));return t=>s(e.execute((0,r.rS)(t)))}),labelPoint:i("labelPoint",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(1094)]).then(n.bind(n,91421));return t=>s(e.execute((0,r.rS)(t)))}),simplify:i("simplify",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(3456)]).then(n.bind(n,3637)).then(e=>e.execute)),isSelfIntersecting:i("isSelfIntersecting",async()=>{const{NonSimpleResult:e}=await n.e(4383).then(n.bind(n,24383)),t=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(9358)]).then(n.bind(n,12499)),i=new Set([5,6,7,10,11,12]);return n=>{const s=new e;return!t.isSimple((0,r.rS)(n),s)&&i.has(s.m_reason)}}),isSimple:i("isSimple",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(3456)]).then(n.bind(n,3637)).then(e=>e.isSimple)),convexHull:i("convexHull",()=>Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6491)]).then(n.bind(n,55666)).then(e=>e.execute)),getNearestCoordinate:i("getNearestCoordinate",async()=>{const e=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6765)]).then(n.bind(n,48032));return(t,n,i)=>{const a=e.getNearestCoordinate((0,r.rS)(t),(0,r.rS)(n),i);return{...a,coordinate:s(a.coordinate)}}}),getNearestVertex:i("getNearestVertex",async()=>{const{executeNearestVertex:e}=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(2465)]).then(n.bind(n,64064));return(t,n)=>{const i=e((0,r.rS)(t),(0,r.rS)(n));return null==i?null:{...i,coordinate:s(i.coordinate)}}})};function o(e,t){const n=a[e];return n.loaded?n.execute.apply(void 0,t):n.load().then(()=>o(e,t))}},48526(e,t,n){n.d(t,{A:()=>m});var r,i=n(5482),s=n(4576),a=n(4718),o=n(91429),c=n(5443),l=n(91075),h=n(86738),u=n(16930),p=n(90634),f=n(47610),d=n(56993),y=n(43937);let m=r=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=u.A.WGS84,{...e,hasM:n,hasZ:r,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,p.ge)(this);return e?new c.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:i}=this;return new r({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;return null!=t==(null!=n)&&!(null!=t&&null!=n&&!t.equals(n))&&(0,s.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,d.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=t[2],r=3),this.hasM&&(n.m=t[r]),new h.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,d.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,i.Cg)([(0,y.K)("points")],m.prototype,"writePoints",null),m=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>d});var r,i=n(5482),s=n(4718),a=n(91429),o=n(5443),c=n(91075),l=n(86738),h=n(16930),u=n(90634),p=n(56993),f=n(43937);let d=r=class extends c.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=h.A.WGS84,{...e,hasM:n,hasZ:r,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){const e=(0,u.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,n=e.length;t<n;t++)r[t]=e[t].toArray();t[n]=r}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new l.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new l.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new l.A(n[0],n[1],n[2],n[3],this.spatialReference):new l.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,r=t.map(e=>new l.A(e,n));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new l.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(n&&(t<0||t>r.length))return!1;if(!n&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,f.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,f.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,n){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function a(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function c(e){return"object"==typeof e&&"vertexAttributes"in e}function l(e){return e?s(e)?"esriGeometryPoint":a(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function u(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>l,Bi:()=>o,Pv:()=>h,Rg:()=>a,U9:()=>i,W0:()=>u,ZC:()=>r,fT:()=>s,uW:()=>c})},65864(e,t,n){n.d(t,{rS:()=>h,xD:()=>p});var r=n(5443),i=n(91075),s=n(48526),a=n(86738),o=n(39829),c=n(82799),l=n(60408);function h(e){return null==e?null:e instanceof i.A?e:(0,l.fT)(e)?a.A.fromJSON(e):(0,l.Rg)(e)?c.A.fromJSON(e):(0,l.Bi)(e)?o.A.fromJSON(e):(0,l.U9)(e)?s.A.fromJSON(e):(0,l.ZC)(e)?r.A.fromJSON(e):null}const u={esriGeometryPoint:a.A,esriGeometryPolyline:c.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:o.A};function p(e){return e&&u[e]||null}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2917],{68197(t,e,s){s.d(e,{A:()=>c});var i=s(40876),n=s(4576),r=s(34727),o=s(56507);function h(t){return(0,r.qE)((0,o.Vr)(t),0,255)}function a(t,e){const s=t.toString(16).padStart(2,"0");return e?s.slice(0,1):s}class c{static blendColors(t,e,s,i=new c){return i.r=Math.round(t.r+(e.r-t.r)*s),i.g=Math.round(t.g+(e.g-t.g)*s),i.b=Math.round(t.b+(e.b-t.b)*s),i.a=t.a+(e.a-t.a)*s,i._sanitize()}static fromRgb(t,e){const s=(0,i.lT)(t);return s?c.fromArray(s,e):null}static fromHex(t,e=new c){const s=(0,i.oW)(t);return s?c.fromArray(s,e):null}static fromArray(t,e=new c){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const s=(0,i.Eq)(t);return s?c.fromArray(s,e):null}static fromJSON(t){return null!=t?new c([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)c.fromString(t,this);else if((0,n.yc)(t))c.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof c||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,s=t?.digits??6,i=3===s||4===s,n=4===s||8===s,r=`#${a(this.r,i)}${a(this.g,i)}${a(this.b,i)}${n?a(Math.round(255*this.a),i):""}`;return e?r.toUpperCase():r}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=h(this.r),s=h(this.g),i=h(this.b);return 0===t||1!==this.a?[e,s,i,h(255*this.a)]:[e,s,i]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,s,i){this.r=t,this.g=e,this.b=s,this.a=i}}c.prototype.declaredClass="esri.Color"},40876(t,e,s){s.d(e,{Eq:()=>g,G1:()=>m,TS:()=>r,Tf:()=>b,V6:()=>n,Vm:()=>d,ay:()=>a,c1:()=>p,c4:()=>o,iw:()=>y,j5:()=>c,lT:()=>u,oW:()=>l,xV:()=>v});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(t){return!!i[t]||!!i[t.toLowerCase()]}function r(t){return i[t]??i[t.toLowerCase()]}function o(t){return[...r(t)]}function h(t,e,s){s<0&&++s,s>1&&--s;const i=6*s;return i<1?t+(e-t)*i:2*s<1?e:3*s<2?t+(e-t)*(2/3-s)*6:t}function a(t,e,s,i=1){const n=(t%360+360)%360/360,r=s<=.5?s*(e+1):s+e-s*e,o=2*s-r;return[Math.round(255*h(o,r,n+1/3)),Math.round(255*h(o,r,n)),Math.round(255*h(o,r,n-1/3)),i]}function c(t){const e=t.length>5,s=e?8:4,i=(1<<s)-1,n=e?1:17,r=e?9===t.length:5===t.length;let o=Number("0x"+t.slice(1));if(isNaN(o))return null;const h=[0,0,0,1];let a;return r&&(a=o&i,o>>=s,h[3]=n*a/255),a=o&i,o>>=s,h[2]=n*a,a=o&i,o>>=s,h[1]=n*a,a=o&i,o>>=s,h[0]=n*a,h}function l(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),s=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),n=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,s+16*s,i+16*i,(n+16*n)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function u(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),s=e[1];if("rgb"===s&&3===t.length||"rgba"===s&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===s&&3===t.length||"hsla"===s&&4===t.length)return a(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=p(t[0]),t[1]=p(t[1]),t[2]=p(t[2]),t[3]=4===t.length?m(t[3]):1,t}function g(t){let e=n(t)?r(t):null;return e??=u(t),e??=l(t),e}function d(t){const e=g(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function m(t){return _(t,0,1)}function p(t){return Math.round(_(t,0,255))}function _(t,e,s){return t=Number(t),isNaN(t)?s:t<e?e:t>s?s:t}const b=2.2,y=1/b;function v(t){return t**y}},7762(t,e,s){s.d(e,{A:()=>I});var i,n=s(5482),r=s(98291),o=s(4576),h=s(65529),a=s(36563),c=s(4718),l=s(53966),u=s(93687),f=s(76030),g=s(56507),d=s(62788),m=s(10107),p=s(7695),_=s(64108),b=s(95488),y=s(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}}class S{constructor(t,e,s,i,n){this.target=t,this.added=e,this.removed=s,this.start=i,this.deleteCount=n}}const z=new u.A(()=>new v,void 0,t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1});function w(t){t&&"object"==typeof t&&"destroy"in t&&"function"==typeof t.destroy&&t.destroy()}function k(t){return t?t instanceof N?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function x(t){if(t?.length)return t[0]}function M(t,e,s,i){const n=Math.min(t.length-s,e.length-i);let r=0;for(;r<n&&t[s+r]===e[i+r];)r++;return r}function C(t,e,s,i){e&&e.forEach((e,n,r)=>{t.push(e),C(t,s.call(i,e,n,r),s,i)})}const A=new Set,E=new Set,R=new Set,P=new Map;let L=0,N=i=class extends h.nJ{static ofType(t){if(!t)return i;if(P.has(t))return P.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const s in t.typeMap){const i=t.typeMap[s].prototype.declaredClass;e?e+=` | ${i}`:e=i}let s=class extends i{};return(0,n.Cg)([(0,p.u)({Type:t,ensureType:"function"==typeof t?(0,g.dp)(t):(0,g.aq)(t)})],s.prototype,"itemType",void 0),s=(0,n.Cg)([(0,_.$)(`esri.core.Collection<${e}>`)],s),P.set(t,s),s}static isCollection(t){return null!=t&&t instanceof i}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new b.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:L++})}normalizeCtorArgs(t){return t?(0,o.yc)(t)||t instanceof i?{items:t}:t:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(t){t>this._length?l.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(t,Math.max(0,this._length-t))}get items(){return(0,d.gc)(this._observable),this._items}set items(t){this._emitBeforeChanges(1)||(this._splice(0,this.length,k(t)),this._emitAfterChanges(1))}hasEventListener(t){return!this.destroyed&&("change"===t?this._chgListeners.length>0:super.hasEventListener(t))}on(t,e){if(this.destroyed)return(0,a.hA)();if("change"===t){const t=this._chgListeners,s={removed:!1,callback:e};return t.push(s),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,a.hA)(()=>{s.removed=!0,t.splice(t.indexOf(s),1)})}return super.on(t,e)}once(t,e){const s="deref"in e?()=>e.deref():()=>e,i=this.on(t,t=>{s()?.call(null,t),i.remove()});return i}add(t,e){if((0,d.gc)(this._observable),this._emitBeforeChanges(1))return this;const s=this.getNextIndex(e??null);return this._splice(s,0,[t]),this._emitAfterChanges(1),this}addMany(t,e=this._items.length){if((0,d.gc)(this._observable),!t?.length)return this;if(this._emitBeforeChanges(1))return this;const s=this.getNextIndex(e);return this._splice(s,0,k(t)),this._emitAfterChanges(1),this}at(t){if((0,d.gc)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const t=this._removeAllRaw();return this._emitAfterChanges(2),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,d.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...t){(0,d.gc)(this._observable);const e=t.map(k);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const s=this._splice(0,this.length),i=s.length;for(let n=0;n<i;n++)t.call(e,s[n],n,s);this._emitAfterChanges(2)}destroyAll(){this.drain(w)}destroyMany(t){const e=this.removeMany(t);return e.forEach(w),e}every(t,e){return(0,d.gc)(this._observable),this._items.every(t,e)}filter(t,e){(0,d.gc)(this._observable);const s=2===arguments.length?this._items.filter(t,e):this._items.filter(t);return this._createNewInstance({items:s})}find(t,e){return(0,d.gc)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,d.gc)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,d.gc)(this._observable);const s=[];return C(s,this,t,e),new i(s)}forEach(t,e){return(0,d.gc)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,d.gc)(this._observable),this._items[t]}getNextIndex(t){(0,d.gc)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,d.gc)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,d.gc)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,d.gc)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,d.gc)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,d.gc)(this._observable);const s=this._items.map(t,e);return new i({items:s})}reorder(t,e=this.length-1){(0,d.gc)(this._observable);const s=this.indexOf(t);if(-1!==s){if(e<0?e=0:e>=this.length&&(e=this.length-1),s!==e){if(this._emitBeforeChanges(4))return t;this._splice(s,1),this._splice(e,0,[t]),this._emitAfterChanges(4)}return t}}pop(){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=x(this._splice(this.length-1,1));return this._emitAfterChanges(2),t}push(...t){return(0,d.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,t),this._emitAfterChanges(1)),this.length}reduce(t,e){(0,d.gc)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(t,e):s.reduce(t)}reduceRight(t,e){(0,d.gc)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(t,e):s.reduceRight(t)}remove(t){return(0,d.gc)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,d.gc)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(t,1));return this._emitAfterChanges(2),e}removeMany(t){if((0,d.gc)(this._observable),!t?.length||this._emitBeforeChanges(2))return[];const e=t instanceof i?t.toArray():t,s=this._items,n=[],r=e.length;for(let t=0;t<r;t++){const i=e[t],r=s.indexOf(i);if(r>-1){const i=1+M(e,s,t+1,r+1),o=this._splice(r,i);o&&o.length>0&&n.push.apply(n,o),t+=i-1}}return this._emitAfterChanges(2),n}reverse(){if((0,d.gc)(this._observable),this._emitBeforeChanges(4))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(4),this}shift(){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=x(this._splice(0,1));return this._emitAfterChanges(2),t}slice(t=0,e=this.length){return(0,d.gc)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,d.gc)(this._observable),this._items.some(t,e)}sort(t){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(t))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(4),this}_requiresSort(t=(t,e)=>t===e?0:t<e?-1:1){const e=this.length-1;for(let s=0;s<e;s++)if(t(this.items[s],this.items[s+1])>0)return!0;return!1}splice(t,e,...s){(0,d.gc)(this._observable),1===arguments.length&&(e=this.length),e??=0;const i=(e?2:0)|(s.length?1:0);if(this._emitBeforeChanges(i))return[];const n=this._splice(t,e,s)||[];return this._emitAfterChanges(i),n}toArray(){return(0,d.gc)(this._observable),this._items.slice()}toJSON(t){return(0,d.gc)(this._observable),this.toArray().map(e=>(0,y.W)(e)?e.toJSON(t):e)}toLocaleString(){return(0,d.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,d.gc)(this._observable),this._items.toString()}unshift(...t){return(0,d.gc)(this._observable),!t.length||this._emitBeforeChanges(1)||(this._splice(0,0,t),this._emitAfterChanges(1)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,s){const i=this._items,n=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,f._)(()=>this._dispatchChange())),t<0&&(t+=this.length),e){if(o=i.splice(t,e),this.hasEventListener("before-remove")){const e=z.acquire();e.target=this,e.cancellable=!0;for(let s=0,n=o.length;s<n;s++)r=o[s],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(s,1),i.splice(t,0,r),t+=1,s-=1,n-=1);z.release(e)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const t=z.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let s=0;s<e;s++)t.reset(o[s]),this.emit("after-remove",t);z.release(t)}}if(s?.length){if(n){const t=[];for(const e of s){const s=n.ensureType(e);null==s&&null!=e||t.push(s)}s=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=t===this.length;if(e||r){const n=z.acquire();n.target=this,n.cancellable=!0;const h=z.acquire();h.target=this,h.cancellable=!1;for(const a of s)e?(n.reset(a),this.emit("before-add",n),n.defaultPrevented||(o?i.push(a):i.splice(t++,0,a),this._length=i.length,r&&(h.reset(a),this.emit("after-add",h)))):(o?i.push(a):i.splice(t++,0,a),this._length=i.length,h.reset(a),this.emit("after-add",h));z.release(h),z.release(n)}else{if(o)for(const t of s)i.push(t);else i.splice(t,0,...s);this._length=i.length}}if((s?.length||o?.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const i=new S(this,s,o,t,e);this.emit("after-splice",i)}return o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const s=z.acquire();s.target=this,s.cancellable=!0,s.type=t,this.emit("before-changes",s),e=s.defaultPrevented,z.release(s)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=z.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),z.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;A.clear(),E.clear(),R.clear();for(const{added:e,removed:s}of t){if(e)if(0===R.size&&0===E.size)for(const t of e)A.add(t);else for(const t of e)E.has(t)?(R.add(t),E.delete(t)):R.has(t)||A.add(t);if(s)if(0===R.size&&0===A.size)for(const t of s)E.add(t);else for(const t of s)A.has(t)?A.delete(t):(R.delete(t),E.add(t))}const s=r.A.acquire();A.forEach(t=>{s.push(t)});const i=r.A.acquire();E.forEach(t=>{i.push(t)});const n=this._items,o=e.items,h=r.A.acquire();if(R.forEach(t=>{o.indexOf(t)!==n.indexOf(t)&&h.push(t)}),e.listeners&&(s.length||i.length||h.length)){const t={target:this,added:s,removed:i,moved:h},n=e.listeners.length;for(let s=0;s<n;s++){const i=e.listeners[s];i.removed||i.callback.call(this,t)}}r.A.release(s),r.A.release(i),r.A.release(h)}A.clear(),E.clear(),R.clear()}};(0,n.Cg)([(0,m.MZ)()],N.prototype,"_updating",void 0),(0,n.Cg)([(0,m.MZ)()],N.prototype,"_length",void 0),(0,n.Cg)([(0,m.MZ)()],N.prototype,"length",null),(0,n.Cg)([(0,m.MZ)()],N.prototype,"items",null),(0,n.Cg)([(0,m.MZ)({readOnly:!0})],N.prototype,"updating",null),N=i=(0,n.Cg)([(0,_.$)("esri.core.Collection")],N);const I=N},69052(t,e,s){s.d(e,{hr:()=>n,ie:()=>a,uC:()=>h});var i=s(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,s=!1){return r(this.range,this.min,this.max,t,e,s)}clamp(t,e=0){return(0,i.qE)(t-e,this.min,this.max)+e}monotonic(t,e,s){return t<e?e:e+o(this.range,t-e,s)}minimalMonotonic(t,e,s){return r(this.range,t,t+this.range,e,s)}center(t,e,s){return e=this.monotonic(t,e,s),this.normalize((t+e)/2,s)}diff(t,e,s){return this.monotonic(t,e,s)-t}shortestSignedDiff(t,e){t=this.normalize(t);const s=(e=this.normalize(e))-t,i=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(s)<Math.abs(i)?s:i}contains(t,e,s){return e=this.minimalMonotonic(t,e),(s=this.minimalMonotonic(t,s))>t&&s<e}}function r(t,e,s,i,n=0,r=!1){return(i-=n)<e?i+=o(t,e-i):i>s&&(i-=o(t,i-s)),r&&i===s&&(i=e),i+n}function o(t,e,s=0){return Math.ceil((e-s)/t)*t+s}const h=new n(0,2*Math.PI),a=(new n(-Math.PI,Math.PI),new n(0,360))},4902(t,e,s){s.d(e,{s:()=>o});var i=s(5482),n=s(64108);let r=0;const o=t=>{const e=t;let s=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return s=(0,i.Cg)([(0,n.$)("esri.core.Identifiable")],s),s};o(class{})},66344(t,e,s){s.d(e,{q:()=>h});const i=!!(0,s(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){const s=this._db.get(t.id+e);return s?.size??0}put(t,e,s,n,o){e=t.id+e;const h=this._db.get(e);if(h&&(this._size-=h.size,t.size-=h.size,this._db.delete(e),h.entry!==s&&this._notifyRemove(e,h.entry,h.size,0)),n>this._maxSize)return void this._notifyRemove(e,s,n,0);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return i||console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,s,0,0);const a=1+Math.max(o,-4)- -3;this._db.set(e,new r(s,n,a)),this._size+=n,t.size+=n,this._checkSize()}updateSize(t,e){e=t.id+e;const s=this._db.get(e);if(!s)return;this._size-=s.size,t.size-=s.size;let i=s.entry.usedMemory;for(;i>this._maxSize;){const t=this._notifyRemove(e,s.entry,i,1);if(!(null!=t&&t>0))return void this._db.delete(e);i=t}s.size=i,this._size+=i,t.size+=i,this._checkSize()}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._clients.forEach(s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=e[r]||0;e[r]=s+t.size}})});const i={};this._clients.forEach(t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"});const n=Object.keys(e);n.sort((t,s)=>e[s]-e[t]),n.forEach(s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]);for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,s]of this._db)e.startsWith(t.id)&&(yield s.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s,i){const n=this._clients.get(t.split(o)[0])?.removeFunc,r=n?.(e,i,s);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const s=e??this;if(s.size<=t)return;const i=e?.id;let n=!0;for(;n;){n=!1;for(const[r,h]of this._db)if(0===h.lifetime&&(!i||r.startsWith(i))){const i=e??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,h,i),s.size<=.9*t)return;n||=this._db.has(r)}}for(const[n,r]of this._db)if(!i||n.startsWith(i)){const i=e??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,r,i),s.size<=.9*t)return}}_purgeItem(t,e,s){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const i=this._notifyRemove(t,e.entry,e.size,1);null!=i&&i>0&&(this._size+=i,s&&(s.size+=i),e.lives=e.lifetime,e.size=i,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new n(0);class r{constructor(t,e,s){this.entry=t,this.size=e,this.lifetime=s,this.lives=s}}const o=":";class h{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new n(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},7695(t,e,s){function i(t){return(e,s)=>{e[s]=t}}s.d(e,{u:()=>i})},56512(t,e,s){function i(t){let e,s,i=[],n=!1;return function(...r){return n&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;++s)if(t[s]!==e[s])return!1;return!0}(r,i)||(s=t.apply(this,r),e=this,i=r,n=!0),s}}s.d(e,{B:()=>i})},36708(t,e,s){s.d(e,{C_:()=>f,OH:()=>m,Vh:()=>p,on:()=>u,pc:()=>_,wB:()=>a,z7:()=>c});var i=s(37955),n=s(36563),r=s(97768),o=s(17676),h=s(14012);function a(t,e,s={}){return l(t,e,s,g)}function c(t,e,s={}){return l(t,e,s,d)}function l(t,e,s={},i){let n=null;const o=s.once?(t,s)=>{i(t)&&((0,r.xt)(n),e(t,s))}:(t,s)=>{i(t)&&e(t,s)};if(n=(0,h.Cn)(t,o,s.sync,s.equals),s.initial){const e=t();o(e,e)}return n}function u(t,e,s,o={}){let h=null,c=null,l=null;function u(){h&&c&&(c.remove(),o.onListenerRemove?.(h),h=null,c=null)}function f(t){o.once&&o.once&&(0,r.xt)(l),s(t)}const g=a(t,(t,s)=>{u(),(0,i.wb)(t)&&(h=t,c=(0,i.on)(t,e,f),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return l=(0,n.hA)(()=>{g.remove(),u()}),l}function f(t,e){return function(t,e,s){if((0,o.G4)(s))return Promise.reject((0,o.NK)());const i=t();if(e?.(i))return Promise.resolve(i);let h=null;function a(){h=(0,r.xt)(h)}return new Promise((i,r)=>{h=(0,n.vE)([(0,o.u7)(s,()=>{a(),r((0,o.NK)())}),l(t,t=>{a(),i(t)},{sync:!1,once:!0},e??g)])})}(t,d,e)}function g(t){return!0}function d(t){return!!t}s(80559);const m={sync:!0},p={initial:!0},_={sync:!0,initial:!0}},90629(t,e,s){s.d(e,{Lz:()=>n,PN:()=>r,cr:()=>o,gs:()=>a,r_:()=>c,tc:()=>h}),s(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function n(t){return t?t/72*96:0}function r(t){return t?72*t/96:0}function o(t){if("string"==typeof t){const e=t.match(i);if(e){const s=Number(e[1]),i=e[3]&&e[3].toLowerCase(),n=t.startsWith("-"),o="px"===i?r(s):s;return n?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function h(t=0,e=0){return{x:t,y:e}}function a(t=0,e=0){return[t,e]}function c(t=0,e=0,s=0){return[t,e,s]}},31411(t,e,s){s.d(e,{GS:()=>k,gh:()=>M});var i=s(49186),n=s(56512),r=s(65864),o=s(4305),h=s(50954),a=s(52006),c=s(49663),l=s(46068),u=s(15507);const f=1e-6,g=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:i,minSegmentsPerCurve:n}){const r=s*s,o=e*e,h=1/i,a=this.interpolate(0),c=this.interpolate(1);(0,u.kb)(this.curveStart,a)>f&&t.push(a),this.initialize(a,c);const l=1/n;for(let t=n-1;t>0;t--){const e=t*l;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<h||(0===r||!isFinite(r)||(0,u.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,c)>f&&t.push([...this.curveEnd]),t}}class p extends m{constructor(t,e){const[s,i,n]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[i,n],this._arcControlPoints=[i,n],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:i,tEnd:n}=this,[r,o]=this._arcControlPoints,h=(t-i)/(n-i),a=(0,u.RS)([],e,r,h),c=(0,u.RS)(g,r,o,h),l=(0,u.RS)([],o,s,h),f=(0,u.RS)([],a,c,h),d=(0,u.RS)([],c,l,h),m=(0,u.RS)([],f,d,h);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,l]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=a,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[i,n]=this._curveControlPoints;return(0,o.B4)(e,i,n,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,i]=this._arcControlPoints;return Math.max((0,u.yE)(s,t,e),(0,u.yE)(i,t,e))}}class _ extends m{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=(0,l.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,l.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function b(t,e,s,{cx:i,cy:n,radius:r,thetaStart:o,thetaEnd:h,isInvalid:a},{maxDeviation:c,maxSegmentLength:l,maxSegmentsPerCurve:g,minSegmentsPerCurve:d}){if(a)return t.push([...s]),t;const m=2*r,p=[i+r*Math.cos(o),n+r*Math.sin(o)],_=[i+r*Math.cos(h),n+r*Math.sin(h)];(0,u.kb)(e,p)>f&&t.push(p);const b=Math.abs(h-o),y=l>0&&l<m?2*Math.asin(l/m):b,v=c>0&&c<=r?2*Math.acos(1-c/r):b,S=Math.min(y,v),z=Math.min(g,Math.max(d,Math.ceil(Math.abs(b/S)))),w=1/z;for(let e=1;e<z;e++){const s=e*w,a=o*(1-s)+h*s;t.push([i+r*Math.cos(a),n+r*Math.sin(a)])}return t.push(_),(0,u.kb)(s,_)>f&&t.push([...s]),t}function y(t,e,s,i){return new p(e,s).densify(t,i)}function v(t,e,s,i){const n=(0,h.pM)(e,s),[r]=s.c;return b(t,e,r,n,i)}function S(t,e,s,i){const n=(0,c.io)(e,s),[r]=s.a;return b(t,e,r,n,i)}function z(t,e,s,i){const[n,r,o,h,a,c,l]=s.a;return 0===c||0===l?(t.push([...n]),t):new _(e,s).densify(t,i)}function w(t,e,s,i){return(0,a.Xq)(s)?(t.push([...s]),t):(0,a.n1)(s)?y(t,e,s,i):(0,a.aO)(s)?v(t,e,s,i):(0,a.DA)(s)?S(t,e,s,i):z(t,e,s,i)}function k(t,e={}){if(!(0,a.Ed)(t))return t;const s=d(e),i=(0,a.FD)(t),n=[];for(const t of i){const e=[];for(let i=0;i<t.length-1;i++){const n=i+1,r=[...(0,a.yP)(t[i])];0===i&&e.push(r),w(e,r,t[n],s)}n.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:n,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:n,spatialReference:t.spatialReference}}const x=(0,n.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function M(t,e,n){const o=new Set(e);return await async function(t,e,n){let r=null;for(const o of t)if(o&&(0,a.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,a.V8)(o,e)){const t=o.spatialReference;if(!t)throw new i.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=C(t);if(n.has(e))o.spatialReference=n.get(e);else{r||(r=await Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(6312)]).then(s.bind(s,78125)));const h=r.fromSpatialReference(t),a=h?.getTolerance();if(null==a)throw new i.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const c=o.spatialReference.clone();c.read({xyTolerance:a}),o.spatialReference=c,n.set(e,c)}}}(t,o,n),t.map(t=>{if(!t||!(0,a.Ed)(t))return t;const s=t.spatialReference.xyTolerance;if(null==s)return t;const i=x(s);return(0,r.rS)(function(t,e,s){if(!(0,a.Ed)(t))return t;const i=new Set(e),n=d(s),r=(0,a.FD)(t),o=[];let h=!1;for(const t of r){const e=[];for(let s=0;s<t.length-1;s++){const r=s+1,o=[...(0,a.yP)(t[s])];0===s&&e.push(o);const c=t[r];(0,a.Xq)(c)?e.push([...c]):(0,a.n1)(c)&&!i.has("cubic-bezier")?y(e,o,c,n):(0,a.aO)(c)&&!i.has("circular-arc")?v(e,o,c,n):(0,a.DA)(c)&&!i.has("elliptic-arc")?S(e,o,c,n):(0,a.wY)(c)&&!i.has("elliptic-arc")?z(e,o,c,n):(e.push((0,a.tk)(c)),h=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...h?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...h?{curveRings:o}:{rings:o}}}(t,e,i))})}function C(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,s){s.d(e,{Y_:()=>R,O7:()=>A,el:()=>C});var i=s(92602),n=s(69052),r=s(49186),o=s(53966),h=s(39829),a=s(82799),c=s(16930),l=s(80754),u=s(21325),f=s(28735),g=s(52006),d=s(31411),m=s(11254),p=s(60408),_=s(65864),b=s(2272),y=s(84952),v=s(92300);const S=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function z(t){return"polygon"===t[0].type}function w(t){return"polyline"===t[0].type}function k(t,e,s){const i=1e6;if(e){const e=(0,g.Ed)(t)?(0,d.GS)(t,{maxSegmentLength:i}):function(t,e){if(!(t instanceof a.A||t instanceof h.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw S().error(t),new r.A("internal:geometry",t)}const s=(0,l.r8)(t),i=[];for(const t of s){const s=[];i.push(s),s.push([t[0][0],t[0][1]]);for(let i=0;i<t.length-1;i++){const n=t[i][0],r=t[i][1],o=t[i+1][0],h=t[i+1][1],a=Math.sqrt((o-n)*(o-n)+(h-r)*(h-r)),c=(h-r)/a,l=(o-n)/a,u=a/e;if(u>1){for(let t=1;t<=u-1;t++){const i=t*e,o=l*i+n,h=c*i+r;s.push([o,h])}const t=(a+Math.floor(u-1)*e)/2,i=l*t+n,o=c*t+r;s.push([i,o])}s.push([o,h])}}return function(t){return"polygon"===t.type}(t)?new h.A({rings:i,spatialReference:t.spatialReference}):new a.A({paths:i,spatialReference:t.spatialReference})}(t,i);t=(0,f.ci)(e,!0)}return s&&(t=(0,l.kS)(t,s)),t}function x(t,e,s){if(Array.isArray(t)){const i=t[0];if(i>e){const s=(0,l.kd)(i,e);t[0]=i+s*(-2*e)}else if(i<s){const e=(0,l.kd)(i,s);t[0]=i+e*(-2*s)}}else{const i=t.x;if(i>e){const s=(0,l.kd)(i,e);t=t.clone().offset(s*(-2*e),0)}else if(i<s){const e=(0,l.kd)(i,s);t=t.clone().offset(e*(-2*s),0)}}return t}function M(t,e){let s=-1;for(let i=0;i<e.cutIndexes.length;i++){const n=e.cutIndexes[i],r=e.geometries[i],o=(0,l.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const i=e[t][0];s=i>s?i:s}s=Number(s.toFixed(9));const i=-360*(0,l.kd)(s,180);for(let s=0;s<e.length;s++){const e=r.getPoint(t,s);r.setPoint(t,s,e.clone().offset(i,0))}return!0}})}if(n===s){if(z(t))for(const e of(0,l.r8)(r))t[n]=t[n].addRing(e);else if(w(t))for(const e of(0,l.r8)(r))t[n]=t[n].addPath(e)}else s=n,t[n]=r}return t}async function C(t,e,s){if(!Array.isArray(t))return C([t],e);e&&"string"!=typeof e&&S().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??i.A.geometryServiceUrl;let r,o,c,g,d,z,w,A,E=0;const R=[],P=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,u.Vp)(r),c=r.isWebMercator,z=c?102100:4326,g=l.j7[z].maxX,d=l.j7[z].minX,w=l.j7[z].plus180Line,A=l.j7[z].minus180Line),o)if("mesh"===e.type)P.push(e);else if("point"===e.type)P.push(x(e.clone(),g,d));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>x(t,g,d)),P.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);P.push(t.rings?new h.A(t):t)}else if(e.extent){const t=e.extent,s=(0,l.kd)(t.xmin,d)*(2*g);let i=0===s?e.clone():(0,l.kS)(e.clone(),s);t.offset(s,0);let{xmin:n,xmax:r}=t;n=Number(n.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(w)&&r!==g?(E=r>E?r:E,i=k(i,c),R.push(i),P.push("cut")):t.intersects(A)&&n!==d?(E=r*(2*g)>E?r*(2*g):E,i=k(i,c,360),R.push(i),P.push("cut")):P.push(i)}else P.push(e.clone());else P.push(e);else P.push(e);let L=(0,l.kd)(E,g),N=-90;const I=L,q=new a.A;for(;L>0;){const t=360*L-180;q.addPath([[t,N],[t,-1*N]]),N*=-1,L--}if(R.length>0&&I>0){const e=M(R,await async function(t,e,s,i){const n=(0,b.Dl)(t),r=e[0].spatialReference,o={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,u.YX)(r),target:JSON.stringify({geometryType:(0,p.$B)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},h=await(0,m.A)(n.path+"/cut",o),{cutIndexes:a,geometries:c=[]}=h.data;return{cutIndexes:a,geometries:c.map(t=>{const e=(0,_.rS)(t);return e.spatialReference=r,e})}}(n,R,q,s)),i=[],r=[];for(let s=0;s<P.length;s++){const n=P[s];if("cut"!==n)r.push(n);else{const n=e.shift(),o=t[s];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),r.push("simplify")):r.push(c?(0,f.Gh)(n):n)}}if(!i.length)return r;const o=await async function(t,e,s){const i="string"==typeof t?(0,y.An)(t):t,n=e[0].spatialReference,r=(0,p.$B)(e[0]),o={...s,query:{...i.query,f:"json",sr:(0,u.YX)(n),geometries:JSON.stringify((0,v.X)(e))}},{data:h}=await(0,m.A)(i.path+"/simplify",o);return(0,v.V)(h.geometries,r,n)}(n,i,s),h=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?h.push(e):h.push(c?(0,f.Gh)(o.shift()):o.shift())}return h}const O=[];for(let t=0;t<P.length;t++){const e=P[t];if("cut"!==e)O.push(e);else{const t=R.shift();O.push(!0===c?(0,f.Gh)(t):t)}}return O}function A(t,e,s){const i=(0,u.Vp)(s);if(null==i)return t;const[n,r]=i.valid,o=2*r;let h=0,a=0;e>r?h=Math.ceil(Math.abs(e-r)/o):e<n&&(h=-Math.ceil(Math.abs(e-n)/o)),t>r?a=Math.ceil(Math.abs(t-r)/o):t<n&&(a=-Math.ceil(Math.abs(t-n)/o));let c=t+(h-a)*o;const l=c-e;return l>r?c-=o:l<n&&(c+=o),c}function E(t){const e=(0,u.Vp)(t);if(null==e)return null;const[s,i]=e.valid;return new n.hr(s,i)}const R=E(c.A.WGS84);E(c.A.WebMercator)},80754(t,e,s){s.d(e,{j7:()=>h,kS:()=>c,kd:()=>a,r8:()=>l});var i=s(82799),n=s(16930),r=s(60408),o=s(52006);const h={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){if((0,o.Ed)(t))for(const s of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of s){if((0,o.aO)(t)){const[s,i]=t.c;s[0]+=e,i[0]+=e;continue}if((0,o.FG)(t)){const[s,i]=t.a;s[0]+=e,i[0]+=e;continue}if((0,o.n1)(t)){const[s,i,n]=t.b;s[0]+=e,i[0]+=e,n[0]+=e;continue}t[0]+=e}for(const s of l(t))for(const t of s)t[0]+=e;return t}function l(t){return(0,r.Bi)(t)?t.rings:t.paths}},50498(t,e,s){s.d(e,{Ye:()=>u,gy:()=>l,iI:()=>g,yR:()=>f});var i=s(66552),n=s(5443),r=s(91075),o=s(48526),h=s(86738),a=s(39829),c=s(82799);const l=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),u=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:r.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:h.A,polyline:c.A,polygon:a.A}},g=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},73133(t,e,s){s.d(e,{j:()=>i});const i=(0,s(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2917],{68197(t,e,s){s.d(e,{A:()=>c});var i=s(40876),n=s(4576),r=s(34727),o=s(56507);function h(t){return(0,r.qE)((0,o.Vr)(t),0,255)}function a(t,e){const s=t.toString(16).padStart(2,"0");return e?s.slice(0,1):s}class c{static blendColors(t,e,s,i=new c){return i.r=Math.round(t.r+(e.r-t.r)*s),i.g=Math.round(t.g+(e.g-t.g)*s),i.b=Math.round(t.b+(e.b-t.b)*s),i.a=t.a+(e.a-t.a)*s,i._sanitize()}static fromRgb(t,e){const s=(0,i.lT)(t);return s?c.fromArray(s,e):null}static fromHex(t,e=new c){const s=(0,i.oW)(t);return s?c.fromArray(s,e):null}static fromArray(t,e=new c){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const s=(0,i.Eq)(t);return s?c.fromArray(s,e):null}static fromJSON(t){return null!=t?new c([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)c.fromString(t,this);else if((0,n.yc)(t))c.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof c||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,s=t?.digits??6,i=3===s||4===s,n=4===s||8===s,r=`#${a(this.r,i)}${a(this.g,i)}${a(this.b,i)}${n?a(Math.round(255*this.a),i):""}`;return e?r.toUpperCase():r}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=h(this.r),s=h(this.g),i=h(this.b);return 0===t||1!==this.a?[e,s,i,h(255*this.a)]:[e,s,i]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,s,i){this.r=t,this.g=e,this.b=s,this.a=i}}c.prototype.declaredClass="esri.Color"},40876(t,e,s){s.d(e,{Eq:()=>g,G1:()=>m,TS:()=>r,Tf:()=>b,V6:()=>n,Vm:()=>d,ay:()=>a,c1:()=>p,c4:()=>o,iw:()=>y,j5:()=>c,lT:()=>u,oW:()=>l,xV:()=>v});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(t){return!!i[t]||!!i[t.toLowerCase()]}function r(t){return i[t]??i[t.toLowerCase()]}function o(t){return[...r(t)]}function h(t,e,s){s<0&&++s,s>1&&--s;const i=6*s;return i<1?t+(e-t)*i:2*s<1?e:3*s<2?t+(e-t)*(2/3-s)*6:t}function a(t,e,s,i=1){const n=(t%360+360)%360/360,r=s<=.5?s*(e+1):s+e-s*e,o=2*s-r;return[Math.round(255*h(o,r,n+1/3)),Math.round(255*h(o,r,n)),Math.round(255*h(o,r,n-1/3)),i]}function c(t){const e=t.length>5,s=e?8:4,i=(1<<s)-1,n=e?1:17,r=e?9===t.length:5===t.length;let o=Number("0x"+t.slice(1));if(isNaN(o))return null;const h=[0,0,0,1];let a;return r&&(a=o&i,o>>=s,h[3]=n*a/255),a=o&i,o>>=s,h[2]=n*a,a=o&i,o>>=s,h[1]=n*a,a=o&i,o>>=s,h[0]=n*a,h}function l(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),s=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),n=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,s+16*s,i+16*i,(n+16*n)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function u(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),s=e[1];if("rgb"===s&&3===t.length||"rgba"===s&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===s&&3===t.length||"hsla"===s&&4===t.length)return a(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=p(t[0]),t[1]=p(t[1]),t[2]=p(t[2]),t[3]=4===t.length?m(t[3]):1,t}function g(t){let e=n(t)?r(t):null;return e??=u(t),e??=l(t),e}function d(t){const e=g(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function m(t){return _(t,0,1)}function p(t){return Math.round(_(t,0,255))}function _(t,e,s){return t=Number(t),isNaN(t)?s:t<e?e:t>s?s:t}const b=2.2,y=1/b;function v(t){return t**y}},7762(t,e,s){s.d(e,{A:()=>I});var i,n=s(5482),r=s(98291),o=s(4576),h=s(65529),a=s(36563),c=s(4718),l=s(53966),u=s(93687),f=s(76030),g=s(56507),d=s(62788),m=s(10107),p=s(7695),_=s(64108),b=s(95488),y=s(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}}class S{constructor(t,e,s,i,n){this.target=t,this.added=e,this.removed=s,this.start=i,this.deleteCount=n}}const z=new u.A(()=>new v,void 0,t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1});function w(t){t&&"object"==typeof t&&"destroy"in t&&"function"==typeof t.destroy&&t.destroy()}function k(t){return t?t instanceof N?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function x(t){if(t?.length)return t[0]}function M(t,e,s,i){const n=Math.min(t.length-s,e.length-i);let r=0;for(;r<n&&t[s+r]===e[i+r];)r++;return r}function C(t,e,s,i){e&&e.forEach((e,n,r)=>{t.push(e),C(t,s.call(i,e,n,r),s,i)})}const A=new Set,E=new Set,R=new Set,P=new Map;let L=0,N=i=class extends h.nJ{static ofType(t){if(!t)return i;if(P.has(t))return P.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const s in t.typeMap){const i=t.typeMap[s].prototype.declaredClass;e?e+=` | ${i}`:e=i}let s=class extends i{};return(0,n.Cg)([(0,p.u)({Type:t,ensureType:"function"==typeof t?(0,g.dp)(t):(0,g.aq)(t)})],s.prototype,"itemType",void 0),s=(0,n.Cg)([(0,_.$)(`esri.core.Collection<${e}>`)],s),P.set(t,s),s}static isCollection(t){return null!=t&&t instanceof i}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new b.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:L++})}normalizeCtorArgs(t){return t?(0,o.yc)(t)||t instanceof i?{items:t}:t:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(t){t>this._length?l.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(t,Math.max(0,this._length-t))}get items(){return(0,d.gc)(this._observable),this._items}set items(t){this._emitBeforeChanges(1)||(this._splice(0,this.length,k(t)),this._emitAfterChanges(1))}hasEventListener(t){return!this.destroyed&&("change"===t?this._chgListeners.length>0:super.hasEventListener(t))}on(t,e){if(this.destroyed)return(0,a.hA)();if("change"===t){const t=this._chgListeners,s={removed:!1,callback:e};return t.push(s),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),(0,a.hA)(()=>{s.removed=!0,t.splice(t.indexOf(s),1)})}return super.on(t,e)}once(t,e){const s="deref"in e?()=>e.deref():()=>e,i=this.on(t,t=>{s()?.call(null,t),i.remove()});return i}add(t,e){if((0,d.gc)(this._observable),this._emitBeforeChanges(1))return this;const s=this.getNextIndex(e??null);return this._splice(s,0,[t]),this._emitAfterChanges(1),this}addMany(t,e=this._items.length){if((0,d.gc)(this._observable),!t?.length)return this;if(this._emitBeforeChanges(1))return this;const s=this.getNextIndex(e);return this._splice(s,0,k(t)),this._emitAfterChanges(1),this}at(t){if((0,d.gc)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const t=this._removeAllRaw();return this._emitAfterChanges(2),t}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,d.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...t){(0,d.gc)(this._observable);const e=t.map(k);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const s=this._splice(0,this.length),i=s.length;for(let n=0;n<i;n++)t.call(e,s[n],n,s);this._emitAfterChanges(2)}destroyAll(){this.drain(w)}destroyMany(t){const e=this.removeMany(t);return e.forEach(w),e}every(t,e){return(0,d.gc)(this._observable),this._items.every(t,e)}filter(t,e){(0,d.gc)(this._observable);const s=2===arguments.length?this._items.filter(t,e):this._items.filter(t);return this._createNewInstance({items:s})}find(t,e){return(0,d.gc)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,d.gc)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,d.gc)(this._observable);const s=[];return C(s,this,t,e),new i(s)}forEach(t,e){return(0,d.gc)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,d.gc)(this._observable),this._items[t]}getNextIndex(t){(0,d.gc)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,d.gc)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,d.gc)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,d.gc)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,d.gc)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,d.gc)(this._observable);const s=this._items.map(t,e);return new i({items:s})}reorder(t,e=this.length-1){(0,d.gc)(this._observable);const s=this.indexOf(t);if(-1!==s){if(e<0?e=0:e>=this.length&&(e=this.length-1),s!==e){if(this._emitBeforeChanges(4))return t;this._splice(s,1),this._splice(e,0,[t]),this._emitAfterChanges(4)}return t}}pop(){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=x(this._splice(this.length-1,1));return this._emitAfterChanges(2),t}push(...t){return(0,d.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,t),this._emitAfterChanges(1)),this.length}reduce(t,e){(0,d.gc)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(t,e):s.reduce(t)}reduceRight(t,e){(0,d.gc)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(t,e):s.reduceRight(t)}remove(t){return(0,d.gc)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,d.gc)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(2))return;const e=x(this._splice(t,1));return this._emitAfterChanges(2),e}removeMany(t){if((0,d.gc)(this._observable),!t?.length||this._emitBeforeChanges(2))return[];const e=t instanceof i?t.toArray():t,s=this._items,n=[],r=e.length;for(let t=0;t<r;t++){const i=e[t],r=s.indexOf(i);if(r>-1){const i=1+M(e,s,t+1,r+1),o=this._splice(r,i);o&&o.length>0&&n.push.apply(n,o),t+=i-1}}return this._emitAfterChanges(2),n}reverse(){if((0,d.gc)(this._observable),this._emitBeforeChanges(4))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(4),this}shift(){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const t=x(this._splice(0,1));return this._emitAfterChanges(2),t}slice(t=0,e=this.length){return(0,d.gc)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,d.gc)(this._observable),this._items.some(t,e)}sort(t){if((0,d.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(t))return this;const e=this._splice(0,this.length);return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(4),this}_requiresSort(t=(t,e)=>t===e?0:t<e?-1:1){const e=this.length-1;for(let s=0;s<e;s++)if(t(this.items[s],this.items[s+1])>0)return!0;return!1}splice(t,e,...s){(0,d.gc)(this._observable),1===arguments.length&&(e=this.length),e??=0;const i=(e?2:0)|(s.length?1:0);if(this._emitBeforeChanges(i))return[];const n=this._splice(t,e,s)||[];return this._emitAfterChanges(i),n}toArray(){return(0,d.gc)(this._observable),this._items.slice()}toJSON(t){return(0,d.gc)(this._observable),this.toArray().map(e=>(0,y.W)(e)?e.toJSON(t):e)}toLocaleString(){return(0,d.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,d.gc)(this._observable),this._items.toString()}unshift(...t){return(0,d.gc)(this._observable),!t.length||this._emitBeforeChanges(1)||(this._splice(0,0,t),this._emitAfterChanges(1)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,s){const i=this._items,n=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,f._)(()=>this._dispatchChange())),t<0&&(t+=this.length),e){if(o=i.splice(t,e),this.hasEventListener("before-remove")){const e=z.acquire();e.target=this,e.cancellable=!0;for(let s=0,n=o.length;s<n;s++)r=o[s],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(s,1),i.splice(t,0,r),t+=1,s-=1,n-=1);z.release(e)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const t=z.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let s=0;s<e;s++)t.reset(o[s]),this.emit("after-remove",t);z.release(t)}}if(s?.length){if(n){const t=[];for(const e of s){const s=n.ensureType(e);null==s&&null!=e||t.push(s)}s=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=t===this.length;if(e||r){const n=z.acquire();n.target=this,n.cancellable=!0;const h=z.acquire();h.target=this,h.cancellable=!1;for(const a of s)e?(n.reset(a),this.emit("before-add",n),n.defaultPrevented||(o?i.push(a):i.splice(t++,0,a),this._length=i.length,r&&(h.reset(a),this.emit("after-add",h)))):(o?i.push(a):i.splice(t++,0,a),this._length=i.length,h.reset(a),this.emit("after-add",h));z.release(h),z.release(n)}else{if(o)for(const t of s)i.push(t);else i.splice(t,0,...s);this._length=i.length}}if((s?.length||o?.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const i=new S(this,s,o,t,e);this.emit("after-splice",i)}return o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const s=z.acquire();s.target=this,s.cancellable=!0,s.type=t,this.emit("before-changes",s),e=s.defaultPrevented,z.release(s)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=z.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),z.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;A.clear(),E.clear(),R.clear();for(const{added:e,removed:s}of t){if(e)if(0===R.size&&0===E.size)for(const t of e)A.add(t);else for(const t of e)E.has(t)?(R.add(t),E.delete(t)):R.has(t)||A.add(t);if(s)if(0===R.size&&0===A.size)for(const t of s)E.add(t);else for(const t of s)A.has(t)?A.delete(t):(R.delete(t),E.add(t))}const s=r.A.acquire();A.forEach(t=>{s.push(t)});const i=r.A.acquire();E.forEach(t=>{i.push(t)});const n=this._items,o=e.items,h=r.A.acquire();if(R.forEach(t=>{o.indexOf(t)!==n.indexOf(t)&&h.push(t)}),e.listeners&&(s.length||i.length||h.length)){const t={target:this,added:s,removed:i,moved:h},n=e.listeners.length;for(let s=0;s<n;s++){const i=e.listeners[s];i.removed||i.callback.call(this,t)}}r.A.release(s),r.A.release(i),r.A.release(h)}A.clear(),E.clear(),R.clear()}};(0,n.Cg)([(0,m.MZ)()],N.prototype,"_updating",void 0),(0,n.Cg)([(0,m.MZ)()],N.prototype,"_length",void 0),(0,n.Cg)([(0,m.MZ)()],N.prototype,"length",null),(0,n.Cg)([(0,m.MZ)()],N.prototype,"items",null),(0,n.Cg)([(0,m.MZ)({readOnly:!0})],N.prototype,"updating",null),N=i=(0,n.Cg)([(0,_.$)("esri.core.Collection")],N);const I=N},69052(t,e,s){s.d(e,{hr:()=>n,ie:()=>a,uC:()=>h});var i=s(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,s=!1){return r(this.range,this.min,this.max,t,e,s)}clamp(t,e=0){return(0,i.qE)(t-e,this.min,this.max)+e}monotonic(t,e,s){return t<e?e:e+o(this.range,t-e,s)}minimalMonotonic(t,e,s){return r(this.range,t,t+this.range,e,s)}center(t,e,s){return e=this.monotonic(t,e,s),this.normalize((t+e)/2,s)}diff(t,e,s){return this.monotonic(t,e,s)-t}shortestSignedDiff(t,e){t=this.normalize(t);const s=(e=this.normalize(e))-t,i=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(s)<Math.abs(i)?s:i}contains(t,e,s){return e=this.minimalMonotonic(t,e),(s=this.minimalMonotonic(t,s))>t&&s<e}}function r(t,e,s,i,n=0,r=!1){return(i-=n)<e?i+=o(t,e-i):i>s&&(i-=o(t,i-s)),r&&i===s&&(i=e),i+n}function o(t,e,s=0){return Math.ceil((e-s)/t)*t+s}const h=new n(0,2*Math.PI),a=(new n(-Math.PI,Math.PI),new n(0,360))},4902(t,e,s){s.d(e,{s:()=>o});var i=s(5482),n=s(64108);let r=0;const o=t=>{const e=t;let s=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+r++})}};return s=(0,i.Cg)([(0,n.$)("esri.core.Identifiable")],s),s};o(class{})},66344(t,e,s){s.d(e,{q:()=>h});const i=!!(0,s(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){const s=this._db.get(t.id+e);return s?.size??0}put(t,e,s,n,o){e=t.id+e;const h=this._db.get(e);if(h&&(this._size-=h.size,t.size-=h.size,this._db.delete(e),h.entry!==s&&this._notifyRemove(e,h.entry,h.size,0)),n>this._maxSize)return void this._notifyRemove(e,s,n,0);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return i||console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,s,0,0);const a=1+Math.max(o,-4)- -3;this._db.set(e,new r(s,n,a)),this._size+=n,t.size+=n,this._checkSize()}updateSize(t,e){e=t.id+e;const s=this._db.get(e);if(!s)return;this._size-=s.size,t.size-=s.size;let i=s.entry.usedMemory;for(;i>this._maxSize;){const t=this._notifyRemove(e,s.entry,i,1);if(!(null!=t&&t>0))return void this._db.delete(e);i=t}s.size=i,this._size+=i,t.size+=i,this._checkSize()}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._clients.forEach(s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=e[r]||0;e[r]=s+t.size}})});const i={};this._clients.forEach(t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"});const n=Object.keys(e);n.sort((t,s)=>e[s]-e[t]),n.forEach(s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]);for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,s]of this._db)e.startsWith(t.id)&&(yield s.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s,i){const n=this._clients.get(t.split(o)[0])?.removeFunc,r=n?.(e,i,s);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const s=e??this;if(s.size<=t)return;const i=e?.id;let n=!0;for(;n;){n=!1;for(const[r,h]of this._db)if(0===h.lifetime&&(!i||r.startsWith(i))){const i=e??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,h,i),s.size<=.9*t)return;n||=this._db.has(r)}}for(const[n,r]of this._db)if(!i||n.startsWith(i)){const i=e??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,r,i),s.size<=.9*t)return}}_purgeItem(t,e,s){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const i=this._notifyRemove(t,e.entry,e.size,1);null!=i&&i>0&&(this._size+=i,s&&(s.size+=i),e.lives=e.lifetime,e.size=i,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new n(0);class r{constructor(t,e,s){this.entry=t,this.size=e,this.lifetime=s,this.lives=s}}const o=":";class h{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new n(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},7695(t,e,s){function i(t){return(e,s)=>{e[s]=t}}s.d(e,{u:()=>i})},56512(t,e,s){function i(t){let e,s,i=[],n=!1;return function(...r){return n&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let s=0;s<t.length;++s)if(t[s]!==e[s])return!1;return!0}(r,i)||(s=t.apply(this,r),e=this,i=r,n=!0),s}}s.d(e,{B:()=>i})},36708(t,e,s){s.d(e,{C_:()=>f,OH:()=>m,Vh:()=>p,on:()=>u,pc:()=>_,wB:()=>a,z7:()=>c});var i=s(37955),n=s(36563),r=s(97768),o=s(17676),h=s(14012);function a(t,e,s={}){return l(t,e,s,g)}function c(t,e,s={}){return l(t,e,s,d)}function l(t,e,s={},i){let n=null;const o=s.once?(t,s)=>{i(t)&&((0,r.xt)(n),e(t,s))}:(t,s)=>{i(t)&&e(t,s)};if(n=(0,h.Cn)(t,o,s.sync,s.equals),s.initial){const e=t();o(e,e)}return n}function u(t,e,s,o={}){let h=null,c=null,l=null;function u(){h&&c&&(c.remove(),o.onListenerRemove?.(h),h=null,c=null)}function f(t){o.once&&o.once&&(0,r.xt)(l),s(t)}const g=a(t,(t,s)=>{u(),(0,i.wb)(t)&&(h=t,c=(0,i.on)(t,e,f),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return l=(0,n.hA)(()=>{g.remove(),u()}),l}function f(t,e){return function(t,e,s){if((0,o.G4)(s))return Promise.reject((0,o.NK)());const i=t();if(e?.(i))return Promise.resolve(i);let h=null;function a(){h=(0,r.xt)(h)}return new Promise((i,r)=>{h=(0,n.vE)([(0,o.u7)(s,()=>{a(),r((0,o.NK)())}),l(t,t=>{a(),i(t)},{sync:!1,once:!0},e??g)])})}(t,d,e)}function g(t){return!0}function d(t){return!!t}s(80559);const m={sync:!0},p={initial:!0},_={sync:!0,initial:!0}},90629(t,e,s){s.d(e,{Lz:()=>n,PN:()=>r,cr:()=>o,gs:()=>a,r_:()=>c,tc:()=>h}),s(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function n(t){return t?t/72*96:0}function r(t){return t?72*t/96:0}function o(t){if("string"==typeof t){const e=t.match(i);if(e){const s=Number(e[1]),i=e[3]&&e[3].toLowerCase(),n=t.startsWith("-"),o="px"===i?r(s):s;return n?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function h(t=0,e=0){return{x:t,y:e}}function a(t=0,e=0){return[t,e]}function c(t=0,e=0,s=0){return[t,e,s]}},31411(t,e,s){s.d(e,{GS:()=>k,gh:()=>M});var i=s(49186),n=s(56512),r=s(65864),o=s(4305),h=s(50954),a=s(52006),c=s(49663),l=s(46068),u=s(15507);const f=1e-6,g=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:s,maxSegmentsPerCurve:i,minSegmentsPerCurve:n}){const r=s*s,o=e*e,h=1/i,a=this.interpolate(0),c=this.interpolate(1);(0,u.kb)(this.curveStart,a)>f&&t.push(a),this.initialize(a,c);const l=1/n;for(let t=n-1;t>0;t--){const e=t*l;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<h||(0===r||!isFinite(r)||(0,u.kb)(this.arcStart,this.arcEnd)<r)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,c)>f&&t.push([...this.curveEnd]),t}}class p extends m{constructor(t,e){const[s,i,n]=e.b;super(t,s),this._controlPointsStack=[],this._curveControlPoints=[i,n],this._arcControlPoints=[i,n],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:s,tStart:i,tEnd:n}=this,[r,o]=this._arcControlPoints,h=(t-i)/(n-i),a=(0,u.RS)([],e,r,h),c=(0,u.RS)(g,r,o,h),l=(0,u.RS)([],o,s,h),f=(0,u.RS)([],a,c,h),d=(0,u.RS)([],c,l,h),m=(0,u.RS)([],f,d,h);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,l]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=a,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:s}=this,[i,n]=this._curveControlPoints;return(0,o.B4)(e,i,n,s,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[s,i]=this._arcControlPoints;return Math.max((0,u.yE)(s,t,e),(0,u.yE)(i,t,e))}}class _ extends m{constructor(t,e){const[s]=e.a;super(t,s),this._derivedEllipse=(0,l.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,l.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function b(t,e,s,{cx:i,cy:n,radius:r,thetaStart:o,thetaEnd:h,isInvalid:a},{maxDeviation:c,maxSegmentLength:l,maxSegmentsPerCurve:g,minSegmentsPerCurve:d}){if(a)return t.push([...s]),t;const m=2*r,p=[i+r*Math.cos(o),n+r*Math.sin(o)],_=[i+r*Math.cos(h),n+r*Math.sin(h)];(0,u.kb)(e,p)>f&&t.push(p);const b=Math.abs(h-o),y=l>0&&l<m?2*Math.asin(l/m):b,v=c>0&&c<=r?2*Math.acos(1-c/r):b,S=Math.min(y,v),z=Math.min(g,Math.max(d,Math.ceil(Math.abs(b/S)))),w=1/z;for(let e=1;e<z;e++){const s=e*w,a=o*(1-s)+h*s;t.push([i+r*Math.cos(a),n+r*Math.sin(a)])}return t.push(_),(0,u.kb)(s,_)>f&&t.push([...s]),t}function y(t,e,s,i){return new p(e,s).densify(t,i)}function v(t,e,s,i){const n=(0,h.pM)(e,s),[r]=s.c;return b(t,e,r,n,i)}function S(t,e,s,i){const n=(0,c.io)(e,s),[r]=s.a;return b(t,e,r,n,i)}function z(t,e,s,i){const[n,r,o,h,a,c,l]=s.a;return 0===c||0===l?(t.push([...n]),t):new _(e,s).densify(t,i)}function w(t,e,s,i){return(0,a.Xq)(s)?(t.push([...s]),t):(0,a.n1)(s)?y(t,e,s,i):(0,a.aO)(s)?v(t,e,s,i):(0,a.DA)(s)?S(t,e,s,i):z(t,e,s,i)}function k(t,e={}){if(!(0,a.Ed)(t))return t;const s=d(e),i=(0,a.FD)(t),n=[];for(const t of i){const e=[];for(let i=0;i<t.length-1;i++){const n=i+1,r=[...(0,a.yP)(t[i])];0===i&&e.push(r),w(e,r,t[n],s)}n.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:n,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:n,spatialReference:t.spatialReference}}const x=(0,n.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function M(t,e,n){const o=new Set(e);return await async function(t,e,n){let r=null;for(const o of t)if(o&&(0,a.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,a.V8)(o,e)){const t=o.spatialReference;if(!t)throw new i.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=C(t);if(n.has(e))o.spatialReference=n.get(e);else{r||(r=await Promise.all([s.e(3661),s.e(1878),s.e(8885),s.e(5756),s.e(3299),s.e(1550)]).then(s.bind(s,78125)));const h=r.fromSpatialReference(t),a=h?.getTolerance();if(null==a)throw new i.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const c=o.spatialReference.clone();c.read({xyTolerance:a}),o.spatialReference=c,n.set(e,c)}}}(t,o,n),t.map(t=>{if(!t||!(0,a.Ed)(t))return t;const s=t.spatialReference.xyTolerance;if(null==s)return t;const i=x(s);return(0,r.rS)(function(t,e,s){if(!(0,a.Ed)(t))return t;const i=new Set(e),n=d(s),r=(0,a.FD)(t),o=[];let h=!1;for(const t of r){const e=[];for(let s=0;s<t.length-1;s++){const r=s+1,o=[...(0,a.yP)(t[s])];0===s&&e.push(o);const c=t[r];(0,a.Xq)(c)?e.push([...c]):(0,a.n1)(c)&&!i.has("cubic-bezier")?y(e,o,c,n):(0,a.aO)(c)&&!i.has("circular-arc")?v(e,o,c,n):(0,a.DA)(c)&&!i.has("elliptic-arc")?S(e,o,c,n):(0,a.wY)(c)&&!i.has("elliptic-arc")?z(e,o,c,n):(e.push((0,a.tk)(c)),h=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...h?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...h?{curveRings:o}:{rings:o}}}(t,e,i))})}function C(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,s){s.d(e,{Y_:()=>R,O7:()=>A,el:()=>C});var i=s(92602),n=s(69052),r=s(49186),o=s(53966),h=s(39829),a=s(82799),c=s(16930),l=s(80754),u=s(21325),f=s(28735),g=s(52006),d=s(31411),m=s(11254),p=s(60408),_=s(65864),b=s(2272),y=s(84952),v=s(92300);const S=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function z(t){return"polygon"===t[0].type}function w(t){return"polyline"===t[0].type}function k(t,e,s){const i=1e6;if(e){const e=(0,g.Ed)(t)?(0,d.GS)(t,{maxSegmentLength:i}):function(t,e){if(!(t instanceof a.A||t instanceof h.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw S().error(t),new r.A("internal:geometry",t)}const s=(0,l.r8)(t),i=[];for(const t of s){const s=[];i.push(s),s.push([t[0][0],t[0][1]]);for(let i=0;i<t.length-1;i++){const n=t[i][0],r=t[i][1],o=t[i+1][0],h=t[i+1][1],a=Math.sqrt((o-n)*(o-n)+(h-r)*(h-r)),c=(h-r)/a,l=(o-n)/a,u=a/e;if(u>1){for(let t=1;t<=u-1;t++){const i=t*e,o=l*i+n,h=c*i+r;s.push([o,h])}const t=(a+Math.floor(u-1)*e)/2,i=l*t+n,o=c*t+r;s.push([i,o])}s.push([o,h])}}return function(t){return"polygon"===t.type}(t)?new h.A({rings:i,spatialReference:t.spatialReference}):new a.A({paths:i,spatialReference:t.spatialReference})}(t,i);t=(0,f.ci)(e,!0)}return s&&(t=(0,l.kS)(t,s)),t}function x(t,e,s){if(Array.isArray(t)){const i=t[0];if(i>e){const s=(0,l.kd)(i,e);t[0]=i+s*(-2*e)}else if(i<s){const e=(0,l.kd)(i,s);t[0]=i+e*(-2*s)}}else{const i=t.x;if(i>e){const s=(0,l.kd)(i,e);t=t.clone().offset(s*(-2*e),0)}else if(i<s){const e=(0,l.kd)(i,s);t=t.clone().offset(e*(-2*s),0)}}return t}function M(t,e){let s=-1;for(let i=0;i<e.cutIndexes.length;i++){const n=e.cutIndexes[i],r=e.geometries[i],o=(0,l.r8)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some(s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const i=e[t][0];s=i>s?i:s}s=Number(s.toFixed(9));const i=-360*(0,l.kd)(s,180);for(let s=0;s<e.length;s++){const e=r.getPoint(t,s);r.setPoint(t,s,e.clone().offset(i,0))}return!0}})}if(n===s){if(z(t))for(const e of(0,l.r8)(r))t[n]=t[n].addRing(e);else if(w(t))for(const e of(0,l.r8)(r))t[n]=t[n].addPath(e)}else s=n,t[n]=r}return t}async function C(t,e,s){if(!Array.isArray(t))return C([t],e);e&&"string"!=typeof e&&S().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??i.A.geometryServiceUrl;let r,o,c,g,d,z,w,A,E=0;const R=[],P=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,o=(0,u.Vp)(r),c=r.isWebMercator,z=c?102100:4326,g=l.j7[z].maxX,d=l.j7[z].minX,w=l.j7[z].plus180Line,A=l.j7[z].minus180Line),o)if("mesh"===e.type)P.push(e);else if("point"===e.type)P.push(x(e.clone(),g,d));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>x(t,g,d)),P.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);P.push(t.rings?new h.A(t):t)}else if(e.extent){const t=e.extent,s=(0,l.kd)(t.xmin,d)*(2*g);let i=0===s?e.clone():(0,l.kS)(e.clone(),s);t.offset(s,0);let{xmin:n,xmax:r}=t;n=Number(n.toFixed(9)),r=Number(r.toFixed(9)),t.intersects(w)&&r!==g?(E=r>E?r:E,i=k(i,c),R.push(i),P.push("cut")):t.intersects(A)&&n!==d?(E=r*(2*g)>E?r*(2*g):E,i=k(i,c,360),R.push(i),P.push("cut")):P.push(i)}else P.push(e.clone());else P.push(e);else P.push(e);let L=(0,l.kd)(E,g),N=-90;const I=L,q=new a.A;for(;L>0;){const t=360*L-180;q.addPath([[t,N],[t,-1*N]]),N*=-1,L--}if(R.length>0&&I>0){const e=M(R,await async function(t,e,s,i){const n=(0,b.Dl)(t),r=e[0].spatialReference,o={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,u.YX)(r),target:JSON.stringify({geometryType:(0,p.$B)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},h=await(0,m.A)(n.path+"/cut",o),{cutIndexes:a,geometries:c=[]}=h.data;return{cutIndexes:a,geometries:c.map(t=>{const e=(0,_.rS)(t);return e.spatialReference=r,e})}}(n,R,q,s)),i=[],r=[];for(let s=0;s<P.length;s++){const n=P[s];if("cut"!==n)r.push(n);else{const n=e.shift(),o=t[s];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),r.push("simplify")):r.push(c?(0,f.Gh)(n):n)}}if(!i.length)return r;const o=await async function(t,e,s){const i="string"==typeof t?(0,y.An)(t):t,n=e[0].spatialReference,r=(0,p.$B)(e[0]),o={...s,query:{...i.query,f:"json",sr:(0,u.YX)(n),geometries:JSON.stringify((0,v.X)(e))}},{data:h}=await(0,m.A)(i.path+"/simplify",o);return(0,v.V)(h.geometries,r,n)}(n,i,s),h=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?h.push(e):h.push(c?(0,f.Gh)(o.shift()):o.shift())}return h}const O=[];for(let t=0;t<P.length;t++){const e=P[t];if("cut"!==e)O.push(e);else{const t=R.shift();O.push(!0===c?(0,f.Gh)(t):t)}}return O}function A(t,e,s){const i=(0,u.Vp)(s);if(null==i)return t;const[n,r]=i.valid,o=2*r;let h=0,a=0;e>r?h=Math.ceil(Math.abs(e-r)/o):e<n&&(h=-Math.ceil(Math.abs(e-n)/o)),t>r?a=Math.ceil(Math.abs(t-r)/o):t<n&&(a=-Math.ceil(Math.abs(t-n)/o));let c=t+(h-a)*o;const l=c-e;return l>r?c-=o:l<n&&(c+=o),c}function E(t){const e=(0,u.Vp)(t);if(null==e)return null;const[s,i]=e.valid;return new n.hr(s,i)}const R=E(c.A.WGS84);E(c.A.WebMercator)},80754(t,e,s){s.d(e,{j7:()=>h,kS:()=>c,kd:()=>a,r8:()=>l});var i=s(82799),n=s(16930),r=s(60408),o=s(52006);const h={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){if((0,o.Ed)(t))for(const s of function(t){return(0,r.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of s){if((0,o.aO)(t)){const[s,i]=t.c;s[0]+=e,i[0]+=e;continue}if((0,o.FG)(t)){const[s,i]=t.a;s[0]+=e,i[0]+=e;continue}if((0,o.n1)(t)){const[s,i,n]=t.b;s[0]+=e,i[0]+=e,n[0]+=e;continue}t[0]+=e}for(const s of l(t))for(const t of s)t[0]+=e;return t}function l(t){return(0,r.Bi)(t)?t.rings:t.paths}},50498(t,e,s){s.d(e,{Ye:()=>u,gy:()=>l,iI:()=>g,yR:()=>f});var i=s(66552),n=s(5443),r=s(91075),o=s(48526),h=s(86738),a=s(39829),c=s(82799);const l=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),u=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:r.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:h.A,polyline:c.A,polygon:a.A}},g=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},73133(t,e,s){s.d(e,{j:()=>i});const i=(0,s(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1812,1948,6061,7992,8125,9169],{61691(e,t,r){r.d(t,{G:()=>s});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),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}}},96957(e,t,r){r.d(t,{e:()=>o,s:()=>u});var s=r(4576),n=r(68613),i=r(78125);function o(e,t){const r=(0,i.getSpatialReference)(e);return(0,i.toGeometry)((0,n.g7)((0,i.fromGeometry)(e),(0,i.fromGeometry)(t),(0,i.fromSpatialReference)(r)),r)}const a=(0,n.fz)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:function(e,t){const r=e.map(i.fromGeometry),o=(0,i.getSpatialReference)(e);return(0,n.zo)(r,(0,i.fromGeometry)(t),(0,i.fromSpatialReference)(o)).map(e=>(0,i.toGeometry)(e,o)).filter(s.Ru)},supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},69397(e,t,r){r.d(t,{Qf:()=>u,Qh:()=>o,RS:()=>n,Ul:()=>f,i5:()=>m,lM:()=>i,qK:()=>c});var s=r(34275);const n=16;function i(e){if(!e)return 0;let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let r=l;for(let s=0;s<t;s++)r+=a(e[s]);return r}(e);let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return n;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+m:Array.isArray(t)?h(t,n):0:0),0)}function h(e,t){return l+e.length*t}const c=32,l=16,m=145,f=64},87992(e,t,r){r.d(t,{JR:()=>w,ME:()=>E,MY:()=>R,NO:()=>C,Nh:()=>_,V2:()=>A,_s:()=>O,e6:()=>Y,gh:()=>P,tr:()=>X,uX:()=>x});var s=r(5482),n=r(69397),i=r(16930),o=r(19419),a=r(60408),u=r(21325),h=r(513),c=r(50954),l=r(79567),m=r(52006),f=r(49663),g=r(46068),p=r(92722);class x{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:l,segmentCountArc:m,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=m,this.segmentCountBezier=f}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 this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?n.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:s,hasM:n,segmentCountArc:i,segmentCountBezier:o}=this,a=A(e,t,r,s,n,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(h.subarray(0,t),0),a.vertexM?.set(c.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:s,segmentParamCount:n}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(s.subarray(0,n),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=V(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 M(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 M{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=V(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++],s=t[r++],n=t[r++],i=t[r++];return{b:[this.end,[e,s],[n,i]]}}const s=t[r++],n=t[r++],i=t[r++],o=t[r++],a=t[r++],u=t[r++];r++,r++;const h=t[r++],c=t[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[h,c]]};const l=2&s?0:1,m=1&s?0:1;return{a:[this.end,[a,u],l,m,o,n,i]}}}function C(e,t){const r={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,s.mS)(r,new G(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:a}=e,u=S(e);if(e.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new G(e,["vertexZ","vertexM"]),!1);const n=(0,o.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:r}of t.segments)(0,l.e)(n,e,r),e=(0,m.yP)(r)}const[i,a,h,c]=n;t={xmin:i,ymin:a,xmax:h,ymax:c,spatialReference:u}}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}else{let e,s,i,o;e=s=1/0,i=o=-1/0;for(let t=0;t<r;++t){const r=n[2*t],a=n[2*t+1];e=Math.min(e,r),i=Math.max(i,r),s=Math.min(s,a),o=Math.max(o,a)}t={xmin:e,ymin:s,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,s.hk)(r)}}function E(e){let t,r,s;if((0,a.fT)(e)){s="point";const{x:n,y:i,z:o,m:a}=e,u=[n,i];null!=o&&u.push(o),null!=a&&u.push(a),r=[[u]],t=1}else(0,a.U9)(e)?(s="multipoint",r=[e.points],t=e.points.length):(0,a.Rg)(e)?(s="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(s="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,Z(t[0],(0,m.yP)(t.at(-1)))&&--e),e),0));const n=A(s,t,s.includes("point")?0:r.length,(0,a.Pv)(e),(0,a.W0)(e),(0,m.Ed)(e)),{hasZ:i,hasM:o,vertexXY:u,vertexZ:h,vertexM:c}=n;function l(e){u[2*g]=e[0],u[2*g+1]=e[1],i&&(h[g]=e[2]),o&&(c[g]=e[f]),++g}n.spatialReference=e.spatialReference??void 0;const f=n.hasZ?3:2;let g=0;if(!n.isMultipart()){if(!i&&!o){for(const[e,t]of r[0])u[2*g]=e,u[2*g+1]=t,++g;return n}for(const e of r[0])l(e);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,m.Ed)(e)){for(const e of r){if(x[y++]=g,0===e.length)continue;let t=e.length;if(p&&Z(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,s]=e[r];u[2*g]=t,u[2*g+1]=s,++g}}return x[y]=g,n}function d(e){const t=v+e;if(t<=(n.segmentParams?.length??0))return;let r=t*F;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const e of r){if(n.partOffsets[y++]=g,0===e.length)continue;const t=e[0];let r=t;for(let t=1;t<e.length;++t){const s=e[t];l(r);const i=g-1;(0,m.wY)(s)?(d(10),++n.segmentCountArc,v=O(r,s,n,i,v),r=s.a[0]):(0,m.DA)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.a[0]):(0,m.aO)(s)?(d(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.c[0]):(0,m.n1)(s)?(d(4),++n.segmentCountBezier,v=X(0,s,n,i,v),r=s.b[0]):r=s}p&&Z(t,r)||l(r)}return n.partOffsets[y]=g,n}function P(e){const t=V(e),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=e,o=S(e);if("point"===e.type){const[t,r]=e.vertexXY,s=e.vertexZ?.[0],n=e.vertexM?.[0];return{x:t,y:r,z:s,m:n,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<r;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:n,hasM:i}}const u="polygon"===e.type;if(!e.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=e.partOffsets[n+1],i=new Array;for(;a<s;)i.push(t(a++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:n,hasM:i,spatialReference:o}:{paths:r,hasZ:n,hasM:i,spatialReference:o}}const h=new Array;for(const{segments:t,startVertex:r}of e.parts){const e=[r];for(const{curve:r}of t)e.push(r);h.push(e)}return u?{rings:[],curveRings:h,hasZ:n,hasM:i,spatialReference:o}:{paths:[],curvePaths:h,hasZ:n,hasM:i,spatialReference:o}}function _(e,{lengths:t,coords:r,hasZ:s,hasM:n},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);s??=!1,n??=!1;const h=A(e,u,o,s,n,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let e=0,t=0;e<u;++e)h.vertexXY[2*e]=r[t++],h.vertexXY[2*e+1]=r[t++],s&&(h.vertexZ[e]=r[t++]),n&&(h.vertexM[e]=r[t++]);return h}const c=2+Number(s)+Number(n);let l=0,m=0;h.partOffsets[0]=0;for(const e of t){const t=h.partOffsets[m],i=t+e-Number(a);h.partOffsets[++m]=i;for(let e=t;e<i;++e)h.vertexXY[2*e]=r[l++],h.vertexXY[2*e+1]=r[l++],s&&(h.vertexZ[e]=r[l++]),n&&(h.vertexM[e]=r[l++]);a&&(l+=c)}return h}function w({type:e,vertexCount:t,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const h=new p.A([],[],a,u);i=Math.max(i,1);const c="polygon"===e;let l=0;for(let e=0;e<i;++e){const i=o?.[e+1]??t,m=h.coords.length;for(let e=l;e<i;++e)h.coords.push(r[2*e],r[2*e+1]),a&&h.coords.push(s[e]),u&&h.coords.push(n[e]);if(c){const e=l;h.coords.push(r[2*e],r[2*e+1]),a&&h.coords.push(s[e]),u&&h.coords.push(n[e])}h.lengths.push((h.coords.length-m)/h.stride),l=i}return"point"===e&&(h.lengths.length=0),h}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 s=e.getLatestID();(s<=0||s===r)&&(s=void 0);const n=e.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:t};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:t,latestWkid:s,vcsWkid:i,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new x({...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 S({spatialReference:e}){return e instanceof i.A?e.toJSON():e}function V({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?s=>[e[2*s],e[2*s+1],t[s],r[s]]: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 Z(e,t){return e.every((e,r)=>e===t[r])}function A(e,t,r,s,n,i,o,a){o??=0,a??=0;const u=new x({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 h=2*Float64Array.BYTES_PER_ELEMENT*t;s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),n&&(h+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const c=new ArrayBuffer(h);let l=0;return u.vertexXY=new Float64Array(c,l,2*t),l+=u.vertexXY.byteLength,s&&(u.vertexZ=new Float64Array(c,l,t),l+=u.vertexZ.byteLength),n&&(u.vertexM=new Float64Array(c,l,t),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,t),u.segmentIndices.fill(z),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,l,t),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function O(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){r[i]=4,s[i]=o;const[a,[u,h],c,l,m,f,p]=t.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,g.SW)(e,t),[d,v]=(0,g.Uk)(y,.5);return n[o++]=x,n[o++]=f,n[o++]=p,n[o++]=m,n[o++]=u,n[o++]=h,n[o++]=y.u2-y.u1,n[o++]=y.u1,n[o++]=d,n[o++]=v,o}function b(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){r[i]=4,s[i]=o;const a=(0,f.io)(e,t);return I(a,4,...(0,h.mq)(a,.5),n,o)}function Y(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){return r[i]=4,s[i]=o,I((0,c.pM)(e,t),0,...t.c[1],n,o)}function I(e,t,r,s,n,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:h,radius:c}=e;return u>h||(t|=1),Math.abs(h-u)<=Math.PI||(t|=2),n[i++]=t,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=o,n[i++]=a,n[i++]=h-u,n[i++]=u,n[i++]=r,n[i++]=s,i}function X(e,{b:[t,[r,s],[n,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},h,c){return o[h]=2,a[h]=c,u[c++]=r,u[c++]=s,u[c++]=n,u[c++]=i,c}const F=1.61803,z=-1},68613(e,t,r){r.d(t,{fz:()=>x,g7:()=>g,zo:()=>p});var s=r(76061),n=r(61691),i=r(55537),o=r(83661),a=r(88885),u=r(79187),h=r(95213),c=r(15756);function l(e,t,r,s){const n=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),a=t.getXY(),c=e.createInstance(),l=(0,h.f)(r),m=new u.Envelope2D;if(e.queryEnvelope(m),m.inflateCoords(l,l),m.contains(a)){const r=l*l;let s=!1;const u=(0,o.d)(i,!1);for(let e=0;e<i;e++){const t=n.read(2*e),i=n.read(2*e+1),o=t-a.x,h=i-a.y;o*o+h*h<=r&&(s=!0,u[e]=!0)}if(s)for(let t=0;t<i;t++)u[t]||c.addPoints(e,t,t+1);else c.addPoints(e,0,i),c.add(t)}else c.addPoints(e,0,i),c.add(t);return c}class m extends n.G{m_inputGeoms;m_progressTracker;m_spatialReference;m_rightGeom;m_index;m_bEmpty;constructor(e,t,r,s){super(),this.m_progressTracker=s,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=r,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,i.c)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?((0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,r,s){const n=e.getDimension(),m=t.getDimension();if(n!==m)return n>m?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const f=new u.Envelope2D,g=new u.Envelope2D,p=new u.Envelope2D;e.queryEnvelope(f),t.queryEnvelope(g),p.setCoords({env2D:f}),p.mergeEnvelope2D(g);const x=(0,h.c)(r,p,!0),y=e.getGeometryType(),d=t.getGeometryType();return y===i.G.enumPoint&&d===i.G.enumPoint?function(e,t,r){const s=(0,h.f)(r),n=s*s,i=e.getXY(),u=t.getXY(),c=new a.M({vd:e.getDescription()});return o.P.sqrDistance(i,u)>n&&(c.add(e),c.add(t)),c}(e,t,x):y===i.G.enumPoint&&d===i.G.enumMultiPoint?l(t,e,x):y===i.G.enumMultiPoint&&d===i.G.enumPoint?l(e,t,x):(0,c.ax)(e,t,r,s)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const f=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,r,s){return new m(e,t,r,s)}execute(e,t,r,n){const o=new s.S([e]),a=new s.S([t]),u=this.executeMany(o,a,r,n).next();return u||(0,i.d)("null output"),u}};function g(e,t,r){return f.execute(e,t,r,null)}function p(e,t,r){const n=f.executeMany(new s.S(e),new s.S([t]),r,null);return Array.from(n)}function x(){return f.supportsCurves()}},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>E,getSpatialReference:()=>g,toExtent:()=>_,toGeometry:()=>P,toMultipoint:()=>w,toPoint:()=>R,toPolygon:()=>G,toPolyline:()=>S});var s=r(83661),n=r(55537),i=r(95213),o=r(88885),a=r(5443),u=r(48526),h=r(86738),c=r(39829),l=r(82799),m=(r(90293),r(83299));const f="_gxVersion";function g(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function p(e){switch(e.type){case"point":return d(e);case"multipoint":return y(e);case"polyline":return M(e);case"polygon":return v(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(f)){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(f,t)}return e.getCacheValue(f)}function y(e){if(!e.getCacheValue(f)){const t=new o.M,r=new i.P,s=e.points,n=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,i=s.length;e<i;e++){const i=s[e];r.setXYCoords(i[0],i[1]),a&&r.setZ(i[2]??0),n&&r.setM(i[u]??NaN),t.add(r)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function d(e){if(!e.getCacheValue(f)){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(f,t)}return e.getCacheValue(f)}function v(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:r,hasZ:s,rings:n}=e,i=(0,m.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:s,rings:n});e.setCacheValue(f,i)}return e.getCacheValue(f)}function M(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:r,hasZ:s,paths:n}=e,i=(0,m.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:s,paths:n});e.setCacheValue(f,i)}return e.getCacheValue(f)}function C(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:r,hasZ:s,paths:n}=e,i=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:s,paths:n});e.setCacheValue(f,i)}return e.getCacheValue(f)}function E(e){return e.cache?(e.cache[f]??=(0,m.fromSpatialReference)(e),e.cache[f]):(0,m.fromSpatialReference)(e)}function P(e,t){if(e)switch(e.getGeometryType()){case n.G.enumPoint:return R(e,t);case n.G.enumEnvelope:return _(e,t);case n.G.enumMultiPoint:return w(e,t);case n.G.enumPolyline:return S(e,t);case n.G.enumPolygon:return G(e,t)}return null}function _(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}),s=e.getDescription();if(s.hasM()){const t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(s.hasZ()){const t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(f,e),r}function w(e,t){if(e.isEmpty())return null;const r=e.getDescription(),s=r.hasM(),n=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()];n&&r.push(a.getZ()),s&&r.push(a.getM()),o.push(r)}const h=new u.A({hasM:s,hasZ:n,points:o,spatialReference:t});return h.setCacheValue(f,e),h}function R(e,t){if(e instanceof s.P)return new h.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const r=new h.A({x:e.getX(),y:e.getY(),spatialReference:t}),n=e.getDescription();return n.hasM()&&(r.m=e.getM()),n.hasZ()&&(r.z=e.getZ()),r.setCacheValue(f,e),r}function G(e,t){if(e.isEmpty())return null;const r=c.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(f,e),r}function S(e,t){if(e.isEmpty())return null;const r=l.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(f,e),r}},89041(e,t,r){r.d(t,{execute:()=>s.e}),r(4576),r(68613),r(78125);var s=r(96957)},92722(e,t,r){r.d(t,{A:()=>n});var s=r(69397);class n{constructor(e=[],t=[],r=!1,s=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:s}){return new n(e,t,r||!1,s||!1)}static fromRect([e,t,r,s]){const i=r-e,o=s-t;return new n([5],[e,t,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((e,t)=>e+t,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*t],i=this.coords[s*t+1];for(let o=1;o<r;o+=1){const r=s*(t+o),a=this.coords[r],u=this.coords[r+1];e+=-.5*(a-n)*(u+i),n=a,i=u}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(t+n);e(this.coords[s],this.coords[s+1])}t+=s}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let s=0;const{stride:n}=this;for(const e of r){for(let r=1;r<e;r++){const e=n*(s+r);t[e]+=t[e-n],t[e+1]+=t[e+1-n]}s+=e}return e}clone(e){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return e?(e.set(i),new n(t,e,this.hasZ,this.hasM)):new n(t,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const r=new Array(t*e);for(let t=0,s=0;t<r.length;t+=e)r[s++]=this.coords[t],r[s++]=this.coords[t+1];return new n(this.lengths,r,!1,!1)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1132,1550,1666,1948,6061,7992,8125,9169],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},70031(t,e,r){r.d(e,{O:()=>n});var s=r(15756);class n extends s.z{getOperatorType(){return 4}execute(t,e,r,n){return!(0,s.A)(t,e,r,4,n)}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),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}}},10767(t,e,r){r.d(e,{a:()=>a,e:()=>o,i:()=>h,s:()=>u});var s=r(70031),n=r(78125);const i=new s.O;function a(t){const e=(0,n.getSpatialReference)(t);return i.accelerateGeometry((0,n.fromGeometry)(t),(0,n.fromSpatialReference)(e),1)}function o(t,e){return i.execute((0,n.fromGeometry)(t),(0,n.fromGeometry)(e),(0,n.fromSpatialReference)(t.spatialReference),null)}const u=i.supportsCurves(),h=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:a,execute:o,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>n,Ul:()=>g,i5:()=>f,lM:()=>i,qK:()=>c});var s=r(34275);const n=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(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 r=l;for(let s=0;s<e;s++)r+=o(t[s]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,n):0:0),0)}function h(t,e){return l+t.length*e}const c=32,l=16,f=145,g=64},87992(t,e,r){r.d(e,{JR:()=>Z,ME:()=>E,MY:()=>O,NO:()=>M,Nh:()=>V,V2:()=>_,_s:()=>b,e6:()=>G,gh:()=>P,tr:()=>F,uX:()=>x});var s=r(5482),n=r(69397),i=r(16930),a=r(19419),o=r(60408),u=r(21325),h=r(513),c=r(50954),l=r(79567),f=r(52006),g=r(49663),m=r(46068),p=r(92722);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-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 this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.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:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=_(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}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 r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(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(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),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 t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new C(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 C{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(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 r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],u=e[r++];r++,r++;const h=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[h,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,u],l,f,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new R(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=t,u=S(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new R(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,f.yP)(r)}const[i,o,h,c]=n;e={xmin:i,ymin:o,xmax:h,ymax:c,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:u}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,o.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,u=[n,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,A(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const n=_(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:h,vertexM:c}=n;function l(t){u[2*m]=t[0],u[2*m+1]=t[1],i&&(h[m]=t[2]),a&&(c[m]=t[g]),++m}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])u[2*m]=t,u[2*m+1]=e,++m;return n}for(const t of r[0])l(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,f.Ed)(t)){for(const t of r){if(x[y++]=m,0===t.length)continue;let e=t.length;if(p&&A(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];u[2*m]=e,u[2*m+1]=s,++m}}return x[y]=m,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*X;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=m,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];l(r);const i=m-1;(0,f.wY)(s)?(d(10),++n.segmentCountArc,v=b(r,s,n,i,v),r=s.a[0]):(0,f.DA)(s)?(d(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,f.aO)(s)?(d(10),++n.segmentCountArc,v=G(r,s,n,i,v),r=s.c[0]):(0,f.n1)(s)?(d(4),++n.segmentCountBezier,v=F(0,s,n,i,v),r=s.b[0]):r=s}p&&A(e,r)||l(r)}return n.partOffsets[y]=m,n}function P(t){const e=w(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=S(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:h,hasZ:n,hasM:i,spatialReference:a}}function V(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const h=_(t,u,a,s,n,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],s&&(h.vertexZ[t]=r[e++]),n&&(h.vertexM[t]=r[e++]);return h}const c=2+Number(s)+Number(n);let l=0,f=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[f],i=e+t-Number(o);h.partOffsets[++f]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[l++],h.vertexXY[2*t+1]=r[l++],s&&(h.vertexZ[t]=r[l++]),n&&(h.vertexM[t]=r[l++]);o&&(l+=c)}return h}function Z({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const h=new p.A([],[],o,u);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=h.coords.length;for(let t=l;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t]);if(c){const t=l;h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t])}h.lengths.push((h.coords.length-f)/h.stride),l=i}return"point"===t&&(h.lengths.length=0),h}function O(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class R{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function S({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function A(t,e){return t.every((t,r)=>t===e[r])}function _(t,e,r,s,n,i,a,o){a??=0,o??=0;const u=new x({type:t,vertexCount:e,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:a,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+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 l=0;return u.vertexXY=new Float64Array(c,l,2*e),l+=u.vertexXY.byteLength,s&&(u.vertexZ=new Float64Array(c,l,e),l+=u.vertexZ.byteLength),n&&(u.vertexM=new Float64Array(c,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,e),u.segmentIndices.fill(z),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[u,h],c,l,f,g,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,m.SW)(t,e),[d,v]=(0,m.Uk)(y,.5);return n[a++]=x,n[a++]=g,n[a++]=p,n[a++]=f,n[a++]=u,n[a++]=h,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,g.io)(t,e);return I(o,4,...(0,h.mq)(o,.5),n,a)}function G(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,I((0,c.pM)(t,e),0,...e.c[1],n,a)}function I(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=h-u,n[i++]=u,n[i++]=r,n[i++]=s,i}function F(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},h,c){return a[h]=2,o[h]=c,u[c++]=r,u[c++]=s,u[c++]=n,u[c++]=i,c}const X=1.61803,z=-1},25275(t,e,r){r.r(e),r.d(e,{accelerateGeometry:()=>s.a,execute:()=>s.e,supportsCurves:()=>s.s}),r(70031),r(78125);var s=r(10767)},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>E,getSpatialReference:()=>m,toExtent:()=>V,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>O,toPolygon:()=>R,toPolyline:()=>S});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),u=r(48526),h=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const g="_gxVersion";function m(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return C(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(g)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(g,e)}return t.getCacheValue(g)}function y(t){if(!t.getCacheValue(g)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[u]??NaN),e.add(r)}t.setCacheValue(g,e)}return t.getCacheValue(g)}function d(t){if(!t.getCacheValue(g)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(g,e)}return t.getCacheValue(g)}function v(t){if(!t.getCacheValue(g)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function C(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function M(t){if(!t.getCacheValue(g)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(g,i)}return t.getCacheValue(g)}function E(t){return t.cache?(t.cache[g]??=(0,f.fromSpatialReference)(t),t.cache[g]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return O(t,e);case n.G.enumEnvelope:return V(t,e);case n.G.enumMultiPoint:return Z(t,e);case n.G.enumPolyline:return S(t,e);case n.G.enumPolygon:return R(t,e)}return null}function V(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(g,t),r}function Z(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const h=new u.A({hasM:s,hasZ:n,points:a,spatialReference:e});return h.setCacheValue(g,t),h}function O(t,e){if(t instanceof s.P)return new h.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new h.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(g,t),r}function R(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}function S(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(g,t),r}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}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,s.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 r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],u=this.coords[r+1];t+=-.5*(o-n)*(u+i),n=o,i=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,2260,6061,7992,8125,9169],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),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}}},69397(t,e,r){r.d(e,{Qf:()=>u,Qh:()=>a,RS:()=>n,Ul:()=>m,i5:()=>f,lM:()=>i,qK:()=>c});var s=r(34275);const n=16;function i(t){if(!t)return 0;let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function a(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 r=l;for(let s=0;s<e;s++)r+=o(t[s]);return r}(t);let e=c;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return n;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,n):0:0),0)}function h(t,e){return l+t.length*e}const c=32,l=16,f=145,m=64},87992(t,e,r){r.d(e,{JR:()=>V,ME:()=>E,MY:()=>Z,NO:()=>M,Nh:()=>_,V2:()=>S,_s:()=>G,e6:()=>I,gh:()=>P,tr:()=>F,uX:()=>x});var s=r(5482),n=r(69397),i=r(16930),a=r(19419),o=r(60408),u=r(21325),h=r(513),c=r(50954),l=r(79567),f=r(52006),m=r(49663),g=r(46068),p=r(92722);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:u,segmentFlags:h,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:m}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=m}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-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 this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?n.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:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=S(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:c}=this;if(o.vertexXY.set(u.subarray(0,2*e),0),o.vertexZ?.set(h.subarray(0,e),0),o.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}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 r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(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(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=R(t),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 t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new C(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 C{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=R(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 r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],u=e[r++];r++,r++;const h=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[h,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,u],l,f,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,a.Ie)(),(0,s.mS)(r,new w(t,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=t,u=A(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new w(t,["vertexZ","vertexM"]),!1);const n=(0,a.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,f.yP)(r)}const[i,o,h,c]=n;e={xmin:i,ymin:o,xmax:h,ymax:c,spatialReference:u}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:u}}if(i){let t=1/0,r=-1/0;for(const e of i)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function E(t){let e,r,s;if((0,o.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,u=[n,i];null!=a&&u.push(a),null!=o&&u.push(o),r=[[u]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,O(e[0],(0,f.yP)(e.at(-1)))&&--t),t),0));const n=S(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,f.Ed)(t)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:h,vertexM:c}=n;function l(t){u[2*g]=t[0],u[2*g+1]=t[1],i&&(h[g]=t[2]),a&&(c[g]=t[m]),++g}n.spatialReference=t.spatialReference??void 0;const m=n.hasZ?3:2;let g=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])u[2*g]=t,u[2*g+1]=e,++g;return n}for(const t of r[0])l(t);return n}const p="polygon"===s,{partOffsets:x}=n;let y=0;if(!(0,f.Ed)(t)){for(const t of r){if(x[y++]=g,0===t.length)continue;let e=t.length;if(p&&O(t[0],t.at(-1))&&--e,i||a)for(let r=0;r<e;++r)l(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];u[2*g]=e,u[2*g+1]=s,++g}}return x[y]=g,n}function d(t){const e=v+t;if(e<=(n.segmentParams?.length??0))return;let r=e*X;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(const t of r){if(n.partOffsets[y++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];l(r);const i=g-1;(0,f.wY)(s)?(d(10),++n.segmentCountArc,v=G(r,s,n,i,v),r=s.a[0]):(0,f.DA)(s)?(d(10),++n.segmentCountArc,v=Y(r,s,n,i,v),r=s.a[0]):(0,f.aO)(s)?(d(10),++n.segmentCountArc,v=I(r,s,n,i,v),r=s.c[0]):(0,f.n1)(s)?(d(4),++n.segmentCountBezier,v=F(0,s,n,i,v),r=s.b[0]):r=s}p&&O(e,r)||l(r)}return n.partOffsets[y]=g,n}function P(t){const e=R(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=A(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const u="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const h=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);h.push(t)}return u?{rings:[],curveRings:h,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:h,hasZ:n,hasM:i,spatialReference:a}}function _(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,u="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const h=S(t,u,a,s,n,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let t=0,e=0;t<u;++t)h.vertexXY[2*t]=r[e++],h.vertexXY[2*t+1]=r[e++],s&&(h.vertexZ[t]=r[e++]),n&&(h.vertexM[t]=r[e++]);return h}const c=2+Number(s)+Number(n);let l=0,f=0;h.partOffsets[0]=0;for(const t of e){const e=h.partOffsets[f],i=e+t-Number(o);h.partOffsets[++f]=i;for(let t=e;t<i;++t)h.vertexXY[2*t]=r[l++],h.vertexXY[2*t+1]=r[l++],s&&(h.vertexZ[t]=r[l++]),n&&(h.vertexM[t]=r[l++]);o&&(l+=c)}return h}function V({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:u}){const h=new p.A([],[],o,u);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=h.coords.length;for(let t=l;t<i;++t)h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t]);if(c){const t=l;h.coords.push(r[2*t],r[2*t+1]),o&&h.coords.push(s[t]),u&&h.coords.push(n[t])}h.lengths.push((h.coords.length-f)/h.stride),l=i}return"point"===t&&(h.lengths.length=0),h}function Z(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class w{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function A({spatialReference:t}){return t instanceof i.A?t.toJSON():t}function R({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function O(t,e){return t.every((t,r)=>t===e[r])}function S(t,e,r,s,n,i,a,o){a??=0,o??=0;const u=new x({type:t,vertexCount:e,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:a,segmentCountBezier:o});let h=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(h+=Float64Array.BYTES_PER_ELEMENT*e),n&&(h+=Float64Array.BYTES_PER_ELEMENT*e),u.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+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 l=0;return u.vertexXY=new Float64Array(c,l,2*e),l+=u.vertexXY.byteLength,s&&(u.vertexZ=new Float64Array(c,l,e),l+=u.vertexZ.byteLength),n&&(u.vertexM=new Float64Array(c,l,e),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(c,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(c,l,e),u.segmentIndices.fill(k),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(c,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(c,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(c,l,e),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function G(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[u,h],c,l,f,m,p]=e.a;let x=4;l||(x|=1),c||(x|=2);const y=(0,g.SW)(t,e),[d,v]=(0,g.Uk)(y,.5);return n[a++]=x,n[a++]=m,n[a++]=p,n[a++]=f,n[a++]=u,n[a++]=h,n[a++]=y.u2-y.u1,n[a++]=y.u1,n[a++]=d,n[a++]=v,a}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,m.io)(t,e);return b(o,4,...(0,h.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,b((0,c.pM)(t,e),0,...e.c[1],n,a)}function b(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:u,thetaEnd:h,radius:c}=t;return u>h||(e|=1),Math.abs(h-u)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=h-u,n[i++]=u,n[i++]=r,n[i++]=s,i}function F(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:u},h,c){return a[h]=2,o[h]=c,u[c++]=r,u[c++]=s,u[c++]=n,u[c++]=i,c}const X=1.61803,k=-1},50647(t,e,r){r.d(e,{execute:()=>h}),r(4576),r(76061);var s=r(61691),n=r(55537);class i extends s.G{m_inputGeometryCursor;m_transformation;m_index;constructor(t,e,r){super(),this.m_index=-1,this.m_transformation=e.clone(),this.m_inputGeometryCursor=t}next(){let t;if(t=this.m_inputGeometryCursor.next()){(0,n.c)(t),this.m_index=this.m_inputGeometryCursor.getGeometryID();const e=t.clone();return e.applyTransformation(this.m_transformation),e}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const a=new class{getOperatorType(){return 10303}supportsCurves(){return!0}accelerateGeometry(t,e,r){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,r){return new i(t,e,r)}execute(t,e,r){const s=t.clone();return s.applyTransformation(e),s}};function o(t,e){return a.execute(t,e,null)}var u=r(78125);function h(t,e){const r=(0,u.getSpatialReference)(t);return(0,u.toGeometry)(o((0,u.fromGeometry)(t),e.transform),r)}a.supportsCurves()},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>y,fromPoint:()=>d,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>E,getSpatialReference:()=>g,toExtent:()=>_,toGeometry:()=>P,toMultipoint:()=>V,toPoint:()=>Z,toPolygon:()=>w,toPolyline:()=>A});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),u=r(48526),h=r(86738),c=r(39829),l=r(82799),f=(r(90293),r(83299));const m="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return d(t);case"multipoint":return y(t);case"polyline":return C(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(m)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function y(t){if(!t.getCacheValue(m)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,u=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[u]??NaN),e.add(r)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function d(t){if(!t.getCacheValue(m)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(m,i)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(m,i)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(m,i)}return t.getCacheValue(m)}function E(t){return t.cache?(t.cache[m]??=(0,f.fromSpatialReference)(t),t.cache[m]):(0,f.fromSpatialReference)(t)}function P(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return Z(t,e);case n.G.enumEnvelope:return _(t,e);case n.G.enumMultiPoint:return V(t,e);case n.G.enumPolyline:return A(t,e);case n.G.enumPolygon:return w(t,e)}return null}function _(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(m,t),r}function V(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const h=new u.A({hasM:s,hasZ:n,points:a,spatialReference:e});return h.setCacheValue(m,t),h}function Z(t,e){if(t instanceof s.P)return new h.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new h.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(m,t),r}function w(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}function A(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(m,t),r}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}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,s.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 r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],u=this.coords[r+1];t+=-.5*(o-n)*(u+i),n=o,i=u}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}}}]);