@arcgis/core 6.0.0-next.40 → 6.0.0-next.42

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 (529) hide show
  1. package/Camera.js +1 -1
  2. package/applications/Components/arcadeFeatureUtils.d.ts +12 -0
  3. package/applications/Components/arcadeFeatureUtils.js +1 -1
  4. package/arcgisGlobal.d.ts +0 -2
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/00d43f02119167531d1b.js +1 -0
  7. package/assets/esri/core/workers/chunks/{1c406ab2bf99ac563316.js → 0696fa44a04b99738d7b.js} +1 -1
  8. package/assets/esri/core/workers/chunks/075fe33152fd79fe6d72.js +1 -0
  9. package/assets/esri/core/workers/chunks/098ac10877d92fde1006.js +1 -0
  10. package/assets/esri/core/workers/chunks/0a29d87b6e58a3c6df8f.js +1 -0
  11. package/assets/esri/core/workers/chunks/0d04353843ccb7440342.js +1 -0
  12. package/assets/esri/core/workers/chunks/0d87cb6417672de95d53.js +1 -0
  13. package/assets/esri/core/workers/chunks/11877d4dc97f756e4711.js +1 -0
  14. package/assets/esri/core/workers/chunks/1860104c2b33f68785dd.js +1 -0
  15. package/assets/esri/core/workers/chunks/1980fd7ae1617ef4d19d.js +1 -0
  16. package/assets/esri/core/workers/chunks/1c7096eb48a3a7f27d4f.js +1 -0
  17. package/assets/esri/core/workers/chunks/1cc03067f8405285057c.js +1 -0
  18. package/assets/esri/core/workers/chunks/{14d81280807a3d3c1b7e.js → 244ffdb91237d1cbade3.js} +1 -1
  19. package/assets/esri/core/workers/chunks/24bdeafbb16ae83bb8c3.js +1 -0
  20. package/assets/esri/core/workers/chunks/2690d5fcd9d5ca92ebf6.js +1 -0
  21. package/assets/esri/core/workers/chunks/2b27d3bc492e000bbe58.js +1 -0
  22. package/assets/esri/core/workers/chunks/2d64a13c2303e9cae613.js +1 -0
  23. package/assets/esri/core/workers/chunks/2e760d04641755d1820d.js +1 -0
  24. package/assets/esri/core/workers/chunks/{0b21d0e2e5a91c34a108.js → 2f54e4feb554c1a7b9c4.js} +1 -1
  25. package/assets/esri/core/workers/chunks/348f28d7ab46df878c6f.js +1 -0
  26. package/assets/esri/core/workers/chunks/{7023651ed6398dcf8efb.js → 36bafcc29ac133a05558.js} +7 -7
  27. package/assets/esri/core/workers/chunks/36e5f070009b29b7ac3d.js +1 -0
  28. package/assets/esri/core/workers/chunks/39c23a52d7c3e1ee121c.js +1 -0
  29. package/assets/esri/core/workers/chunks/{5504ec9bd9ee4d10af07.js → 3f74c61359b4bd6dcf00.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{00311d1b18d5952a014b.js → 446d172834f8675f1202.js} +1 -1
  31. package/assets/esri/core/workers/chunks/45aaefbdffe5e15dfb24.js +1 -0
  32. package/assets/esri/core/workers/chunks/48c6230b8a6d3a8a7906.js +1 -0
  33. package/assets/esri/core/workers/chunks/4c73c493dabe949c2512.js +1 -0
  34. package/assets/esri/core/workers/chunks/{592b5db1459c02cf6a0c.js → 4d62877f521cc9663535.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{2fcd7db1e192858a650e.js → 503ee206e7de1f65e291.js} +1 -1
  36. package/assets/esri/core/workers/chunks/55c0c074e4afe05f5d4d.js +1 -0
  37. package/assets/esri/core/workers/chunks/5bfb962ca192f90a2724.js +1 -0
  38. package/assets/esri/core/workers/chunks/{76e80381fa6d1e084796.js → 5dea74fe52583e77f3ce.js} +1 -1
  39. package/assets/esri/core/workers/chunks/6699fac01ccd842851ba.js +1 -0
  40. package/assets/esri/core/workers/chunks/672a5390182b20d632be.js +1 -0
  41. package/assets/esri/core/workers/chunks/67c2e5953087dadfd245.js +1 -0
  42. package/assets/esri/core/workers/chunks/67caef2ecf0dc5f2eed3.js +1 -0
  43. package/assets/esri/core/workers/chunks/68fd7b314377d27aaa54.js +1 -0
  44. package/assets/esri/core/workers/chunks/6d863761f29f31a030eb.js +1 -0
  45. package/assets/esri/core/workers/chunks/{ce8ef2eec290e1df6b2a.js → 7390af96250e89194332.js} +1 -1
  46. package/assets/esri/core/workers/chunks/7452b5ae971a9ff2e6e9.js +1 -0
  47. package/assets/esri/core/workers/chunks/7672c123cfb960f4ddad.js +1 -0
  48. package/assets/esri/core/workers/chunks/{9934e8e19f94e9169eea.js → 776b64a1e1a57878c34c.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{1ec772eaa63eb6937231.js → 8140ed6e44c3d8536d3e.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{58716a3a6106a1b0fb9d.js → 832c887fdc5af4c08cf2.js} +1 -1
  51. package/assets/esri/core/workers/chunks/84fb27e3425515cd0e3f.js +1 -0
  52. package/assets/esri/core/workers/chunks/867502158997cb2d6406.js +1 -0
  53. package/assets/esri/core/workers/chunks/8ceb6697e8adbeffe019.js +1 -0
  54. package/assets/esri/core/workers/chunks/8fe22c2370219f25c15b.js +1 -0
  55. package/assets/esri/core/workers/chunks/91586bf29492735e692d.js +1 -0
  56. package/assets/esri/core/workers/chunks/{b2d6b1ac9fbb50c7c8ab.js → 929ca32ddbb43328ef31.js} +1 -1
  57. package/assets/esri/core/workers/chunks/a03f15f2cbc3fed291c2.js +1 -0
  58. package/assets/esri/core/workers/chunks/{123541f79be7adff0818.js → a422a801e55fa125546e.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{22e73501e1435a896826.js → a5f17e9a025ac2b6e1bf.js} +1 -1
  60. package/assets/esri/core/workers/chunks/a6e846361bf5dd3a11c7.js +1 -0
  61. package/assets/esri/core/workers/chunks/{fd967a9f3cf0e2890dbb.js → a91dc05a6a609d04ed04.js} +1 -1
  62. package/assets/esri/core/workers/chunks/a99c50b4e1c7568210e1.js +1 -0
  63. package/assets/esri/core/workers/chunks/ab48faea5432e2dbd45c.js +1 -0
  64. package/assets/esri/core/workers/chunks/afe3e89737fb45189a99.js +1 -0
  65. package/assets/esri/core/workers/chunks/b18459c1bed75dbdec08.js +1 -0
  66. package/assets/esri/core/workers/chunks/{d03b82e962c70a3fd377.js → b4928831a2a13b2da745.js} +1 -1
  67. package/assets/esri/core/workers/chunks/b7205620ca248f4efc88.js +1 -0
  68. package/assets/esri/core/workers/chunks/bbddeb1c893ff8bbae5d.js +1 -0
  69. package/assets/esri/core/workers/chunks/bc2e2bdf1194e6e9eb5e.js +1 -0
  70. package/assets/esri/core/workers/chunks/{dae2036faa28dade2119.js → beccbfff549902733c4e.js} +1 -1
  71. package/assets/esri/core/workers/chunks/c3ba1a3247e14f6b7b3a.js +1 -0
  72. package/assets/esri/core/workers/chunks/c5d0a034ff31d5954571.js +1 -0
  73. package/assets/esri/core/workers/chunks/{396299c22994c502e41c.js → c8057b47c7c6c02a0bda.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{9e2c30b67bab5795306e.js → cb2329d1ea72ce5cc057.js} +1 -1
  75. package/assets/esri/core/workers/chunks/cd46d9b4a8de644e7332.js +1 -0
  76. package/assets/esri/core/workers/chunks/d0172d31389dbfaaa848.js +1 -0
  77. package/assets/esri/core/workers/chunks/{f07fb9b3fa30d7ee1681.js → d4c8673ca65df874a7ce.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{947f3a1cad976bba9738.js → d5e251cddd41d643510c.js} +1 -1
  79. package/assets/esri/core/workers/chunks/da1e6962ba0c85c37953.js +1 -0
  80. package/assets/esri/core/workers/chunks/dff845574c0037a1dca6.js +1 -0
  81. package/assets/esri/core/workers/chunks/e0864ca82ffa3c9a0776.js +1 -0
  82. package/assets/esri/core/workers/chunks/e0cf6e1e21d0ee739009.js +1 -0
  83. package/assets/esri/core/workers/chunks/e69cd62f824ce7a22fa0.js +1 -0
  84. package/assets/esri/core/workers/chunks/{c9feffb9884cfed52c4b.js → f190a3124d6d03417d73.js} +1 -1
  85. package/assets/esri/core/workers/chunks/f4135779bfdaf349352a.js +1 -0
  86. package/assets/esri/core/workers/chunks/fbe3a3b9d6c8c0b52f65.js +1 -0
  87. package/assets/esri/core/workers/chunks/fd17c4a9e13bf77aa86a.js +1 -0
  88. package/assets/esri/core/workers/chunks/fdd2b35388f9fe42b623.js +1 -0
  89. package/assets/esri/core/workers/chunks/fe7184993ef5713d13fb.js +1 -0
  90. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  91. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  92. package/assets/esri/themes/base/_core.scss +0 -2
  93. package/assets/esri/themes/dark/main.css +1 -1
  94. package/assets/esri/themes/light/main.css +1 -1
  95. package/assets/esri/themes/light/view.css +1 -1
  96. package/chunks/cameraUtilsPlanar.js +1 -1
  97. package/chunks/cameraUtilsSpherical.js +1 -1
  98. package/chunks/lyr3DMain.js +1 -1
  99. package/chunks/lyr3DWorker.js +1 -1
  100. package/config.js +1 -1
  101. package/core/Accessor.d.ts +1 -1
  102. package/core/Accessor.js +1 -1
  103. package/core/Logger.js +1 -1
  104. package/core/accessorSupport/DefaultsStore.js +1 -1
  105. package/core/accessorSupport/Properties.js +1 -1
  106. package/core/accessorSupport/Property.js +1 -1
  107. package/core/accessorSupport/watch.js +1 -1
  108. package/core/deprecate.js +1 -1
  109. package/core/has.js +1 -1
  110. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  111. package/core/types.d.ts +0 -5
  112. package/core/workers/workers.js +1 -6
  113. package/core/workers.d.ts +1 -2
  114. package/geometry/Extent.js +1 -1
  115. package/geometry/Geometry.js +1 -1
  116. package/geometry/Multipoint.js +1 -1
  117. package/geometry/Point.js +1 -1
  118. package/geometry/Polygon.js +1 -1
  119. package/geometry/Polyline.js +1 -1
  120. package/geometry/coordinateFormatter.js +1 -1
  121. package/geometry/operators/gx/operatorRelate.js +2 -0
  122. package/geometry/operators/relateOperator.js +1 -1
  123. package/identity/IdentityModal.js +1 -1
  124. package/interfaces.d.ts +0 -17
  125. package/kernel.js +1 -1
  126. package/layers/BaseElevationLayer.js +1 -1
  127. package/layers/BaseTileLayer.js +1 -1
  128. package/layers/BuildingSceneLayer.js +1 -1
  129. package/layers/CatalogLayer.js +1 -1
  130. package/layers/ElevationLayer.d.ts +1 -1
  131. package/layers/ElevationLayer.js +1 -1
  132. package/layers/FeatureLayer.js +1 -1
  133. package/layers/GeoRSSLayer.js +1 -1
  134. package/layers/ImageryLayer.js +1 -1
  135. package/layers/ImageryTileLayer.js +1 -1
  136. package/layers/IntegratedMesh3DTilesLayer.d.ts +4 -3
  137. package/layers/IntegratedMeshLayer.d.ts +4 -3
  138. package/layers/IntegratedMeshLayer.js +1 -1
  139. package/layers/KMLLayer.js +1 -1
  140. package/layers/Layer.js +1 -1
  141. package/layers/LinkChartLayer.js +1 -1
  142. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  143. package/layers/MapImageLayer.js +1 -1
  144. package/layers/OpenStreetMapLayer.js +1 -1
  145. package/layers/PointCloudLayer.js +1 -1
  146. package/layers/SceneLayer.js +1 -1
  147. package/layers/StreamLayer.js +1 -1
  148. package/layers/SubtypeGroupLayer.js +1 -1
  149. package/layers/TileLayer.js +1 -1
  150. package/layers/VectorTileLayer.js +1 -1
  151. package/layers/WCSLayer.js +1 -1
  152. package/layers/WMSLayer.js +1 -1
  153. package/layers/WMTSLayer.js +1 -1
  154. package/layers/WebTileLayer.js +1 -1
  155. package/layers/graphics/sources/CSVSource.js +1 -1
  156. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  157. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  158. package/layers/graphics/sources/MemorySource.js +1 -1
  159. package/layers/graphics/sources/WFSSource.js +1 -1
  160. package/layers/graphics/sources/support/QueryTask.js +1 -1
  161. package/layers/mixins/ArcGISImageService.js +1 -1
  162. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  163. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  164. package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
  165. package/layers/raster/datasets/BaseRaster.js +1 -1
  166. package/layers/raster/datasets/ImageServerRaster.js +1 -1
  167. package/layers/raster/datasets/MRFRaster.js +1 -1
  168. package/layers/raster/datasets/RasterFactory.js +1 -1
  169. package/layers/raster/datasets/ZarrRaster.js +2 -0
  170. package/layers/raster/datasets/datasetUtils.js +1 -1
  171. package/layers/raster/datasets/zarrParser.js +2 -0
  172. package/layers/raster/datasets/zarrUtils.js +2 -0
  173. package/layers/raster/formats/pixelRangeUtils.js +1 -1
  174. package/layers/raster/formats/tiffParser.js +1 -1
  175. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  176. package/layers/support/GeometryDescriptor.js +1 -1
  177. package/layers/support/KMLSublayer.js +1 -1
  178. package/layers/support/SceneModifications.d.ts +1 -3
  179. package/layers/support/SceneModifications.js +1 -1
  180. package/layers/support/TileInfo.js +1 -1
  181. package/layers/support/featureLayerUtils.js +1 -1
  182. package/layers/support/tiles3DUtils.js +1 -1
  183. package/layers/support/wmtsUtils.js +1 -1
  184. package/layers/video/videoUtils.js +1 -1
  185. package/legend/ActiveLayerInfo.js +1 -1
  186. package/package.json +4 -4
  187. package/portal/Portal.js +1 -1
  188. package/portal/PortalItem.js +1 -1
  189. package/rest/query/executePivotQuery.js +1 -1
  190. package/rest/query/operations/queryPivot.js +1 -1
  191. package/rest/query/operations/queryUtils.js +1 -1
  192. package/rest/support/PivotQuery.js +1 -1
  193. package/rest/support/Query.js +1 -1
  194. package/smartMapping/raster/support/adapters/ImageryLayerAdapter.js +1 -1
  195. package/support/LayersMixin.d.ts +2 -2
  196. package/symbols/PictureFillSymbol.js +1 -1
  197. package/symbols/PictureMarkerSymbol.js +1 -1
  198. package/symbols/SimpleFillSymbol.js +1 -1
  199. package/symbols/SimpleLineSymbol.js +1 -1
  200. package/symbols/SimpleMarkerSymbol.js +1 -1
  201. package/symbols/Symbol3D.js +1 -1
  202. package/symbols/TextSymbol.js +1 -1
  203. package/symbols/cim/Rasterizer.js +1 -1
  204. package/symbols/cim/utils.js +1 -1
  205. package/views/2d/PaddedViewState.js +1 -1
  206. package/views/2d/ViewState.js +1 -1
  207. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  208. package/views/2d/engine/webgl/TextureManager.js +1 -1
  209. package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
  210. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  211. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  212. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  213. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  214. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  215. package/views/3d/analysis/Viewshed/ViewshedComputedData.js +1 -1
  216. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  217. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  218. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  219. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  220. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  221. package/views/3d/interactive/visualElements/VisualElementResources.js +1 -1
  222. package/views/3d/layers/DrapedSubView3D.js +1 -1
  223. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  224. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  225. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  226. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  227. package/views/3d/layers/SceneLayerView3D.js +1 -1
  228. package/views/3d/layers/WMSLayerView3D.js +1 -1
  229. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  230. package/views/3d/layers/graphics/Graphics3DObjectStateSet.js +1 -1
  231. package/views/3d/layers/graphics/Graphics3DObjectStates.js +1 -1
  232. package/views/3d/layers/i3s/Highlights.js +1 -1
  233. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  234. package/views/3d/layers/support/SceneLayerViewRequiredFields.js +1 -1
  235. package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +2 -0
  236. package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
  237. package/views/3d/layers/support/createFeatureFilterHighlight.js +2 -0
  238. package/views/3d/layers/support/createTileBVHForLayer.js +2 -0
  239. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  240. package/views/3d/layers/support/highlightUtils.js +1 -1
  241. package/views/3d/layers/support/selectTiles3DSpatialReference.js +2 -0
  242. package/views/3d/layers/support/tileBoundingVolumeUtils.js +2 -0
  243. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  244. package/views/3d/support/cameraUtils.js +1 -1
  245. package/views/3d/support/earthUtils.js +1 -1
  246. package/views/3d/support/engineContent/line.js +1 -1
  247. package/views/3d/support/flow/geometryUtils.js +1 -1
  248. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  249. package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
  250. package/views/3d/support/gaussianSplatting/GaussianSplatSortCoordinator.js +2 -0
  251. package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
  252. package/views/3d/support/hitTest.js +1 -1
  253. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  254. package/views/3d/terrain/TextureFader.js +1 -1
  255. package/views/3d/webgl-engine/Stage.js +1 -1
  256. package/views/3d/webgl-engine/createWebGLContext.js +2 -0
  257. package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
  258. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  259. package/views/3d/webgl-engine/lib/LineMaterial.js +1 -1
  260. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  261. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  262. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  263. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  264. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  265. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  266. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  267. package/views/3d/webgl-engine/materials/internal/ribbonLineBufferUtils.js +1 -1
  268. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  269. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  270. package/views/3d/webgl-engine/shaders/ShadedMaterialConfiguration.js +2 -0
  271. package/views/3d/webgl.d.ts +2 -1
  272. package/views/3d/webgl.js +1 -1
  273. package/views/SceneView.d.ts +9 -5
  274. package/views/SceneView.js +1 -1
  275. package/views/VideoView.js +1 -1
  276. package/views/View.d.ts +1 -3
  277. package/views/View2D.d.ts +2 -2
  278. package/views/analysis/ElevationProfile/ElevationProfileChart.js +1 -1
  279. package/views/draw/support/Box.js +1 -1
  280. package/views/interactive/options/ViewOptions.d.ts +0 -2
  281. package/views/layers/FeatureLikeLayerView.d.ts +3 -1
  282. package/views/layers/FeatureLikeLayerView.js +1 -1
  283. package/views/layers/GraphicsLayerView.d.ts +3 -1
  284. package/views/layers/ImageryLayerView.js +1 -1
  285. package/views/layers/ImageryTileLayerView.js +1 -1
  286. package/views/layers/SceneLayerView.d.ts +3 -2
  287. package/views/layers/SceneLayerView.js +1 -1
  288. package/views/support/Scheduler.js +1 -1
  289. package/views/types.d.ts +1 -0
  290. package/webscene/version.js +1 -1
  291. package/widgets/AreaMeasurement2D.js +1 -1
  292. package/widgets/AreaMeasurement3D.js +1 -1
  293. package/widgets/Attachments.js +1 -1
  294. package/widgets/Attribution.js +1 -1
  295. package/widgets/BasemapGallery.js +1 -1
  296. package/widgets/BasemapLayerList.js +1 -1
  297. package/widgets/BasemapToggle.js +1 -1
  298. package/widgets/BatchAttributeForm.js +1 -1
  299. package/widgets/Bookmarks.js +1 -1
  300. package/widgets/BuildingExplorer/BuildingLevelPicker/BuildingLevelPicker.js +1 -1
  301. package/widgets/BuildingExplorer/BuildingLevelPicker/Label.js +1 -1
  302. package/widgets/BuildingExplorer/BuildingLevelPicker/LevelItem.js +1 -1
  303. package/widgets/BuildingExplorer/BuildingPhasePicker/BuildingPhasePicker.js +1 -1
  304. package/widgets/BuildingExplorer.js +1 -1
  305. package/widgets/CatalogLayerList.js +1 -1
  306. package/widgets/Compass.js +1 -1
  307. package/widgets/CoordinateConversion.js +1 -1
  308. package/widgets/Daylight/support/SliderWithDropdown.js +1 -1
  309. package/widgets/Daylight.js +1 -1
  310. package/widgets/DirectLineMeasurement3D.js +1 -1
  311. package/widgets/Directions.js +1 -1
  312. package/widgets/DistanceMeasurement2D.js +1 -1
  313. package/widgets/Editor/EditorViewModel.d.ts +0 -1
  314. package/widgets/Editor.d.ts +0 -1
  315. package/widgets/Editor.js +1 -1
  316. package/widgets/ElevationProfile/components/LegendItem.js +1 -1
  317. package/widgets/ElevationProfile/components/Statistics.js +1 -1
  318. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  319. package/widgets/ElevationProfile.js +1 -1
  320. package/widgets/Expand.js +1 -1
  321. package/widgets/Feature/FeatureAttachments.js +1 -1
  322. package/widgets/Feature/FeatureContent.js +1 -1
  323. package/widgets/Feature/FeatureExpression.js +1 -1
  324. package/widgets/Feature/FeatureFields.js +1 -1
  325. package/widgets/Feature/FeatureMedia.js +1 -1
  326. package/widgets/Feature/FeatureRelationship.js +1 -1
  327. package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
  328. package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
  329. package/widgets/Feature/support/FeatureElementInfo.js +1 -1
  330. package/widgets/Feature.js +1 -1
  331. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  332. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  333. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationSettings.js +1 -1
  334. package/widgets/FeatureForm.js +1 -1
  335. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  336. package/widgets/FeatureTable.js +1 -1
  337. package/widgets/FeatureTemplates.js +1 -1
  338. package/widgets/Features/FeaturesDrillIn.js +1 -1
  339. package/widgets/Features.js +1 -1
  340. package/widgets/FloorFilter.js +1 -1
  341. package/widgets/Fullscreen.js +1 -1
  342. package/widgets/Histogram.js +1 -1
  343. package/widgets/HistogramRangeSlider.js +1 -1
  344. package/widgets/Home.js +1 -1
  345. package/widgets/LayerList/ListItemPanel.js +1 -1
  346. package/widgets/LayerList.js +1 -1
  347. package/widgets/Legend/styles/card/CardView.js +1 -1
  348. package/widgets/Legend/styles/card/ColorRamp.js +1 -1
  349. package/widgets/Legend/styles/card/LegendElement.js +1 -1
  350. package/widgets/Legend/styles/card/SizeRamp.js +1 -1
  351. package/widgets/Legend/styles/card/UnivariateAboveAndBelowRamp.js +1 -1
  352. package/widgets/Legend/styles/card/UnivariateColorSizeRamp.js +1 -1
  353. package/widgets/Legend/styles/classic/ClassicView.js +1 -1
  354. package/widgets/Legend/styles/classic/ColorRamp.js +1 -1
  355. package/widgets/Legend/styles/classic/LegendElement.js +1 -1
  356. package/widgets/Legend/styles/classic/SizeRamp.js +1 -1
  357. package/widgets/Legend/styles/classic/UnivariateAboveAndBelowRamp.js +1 -1
  358. package/widgets/Legend/styles/classic/UnivariateColorSizeRamp.js +1 -1
  359. package/widgets/Legend.js +1 -1
  360. package/widgets/LineOfSight.js +1 -1
  361. package/widgets/Locate.js +1 -1
  362. package/widgets/Measurement.js +1 -1
  363. package/widgets/NavigationToggle.js +1 -1
  364. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  365. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  366. package/widgets/OrientedImageryViewer/support/geometryUtils.js +1 -1
  367. package/widgets/OrientedImageryViewer.js +1 -1
  368. package/widgets/Popup.js +1 -1
  369. package/widgets/Print.js +1 -1
  370. package/widgets/ScaleBar/ScaleBarViewModel.js +1 -1
  371. package/widgets/ScaleBar.js +1 -1
  372. package/widgets/ScaleRangeSlider.js +1 -1
  373. package/widgets/Search/SearchResultRenderer.js +1 -1
  374. package/widgets/Search.js +1 -1
  375. package/widgets/ShadowCast/components/ShadowTooltip.js +1 -1
  376. package/widgets/ShadowCast/components/ShadowTooltipContent.js +1 -1
  377. package/widgets/ShadowCast.js +1 -1
  378. package/widgets/Sketch/SketchViewModel.d.ts +0 -1
  379. package/widgets/Sketch.d.ts +0 -1
  380. package/widgets/Sketch.js +1 -1
  381. package/widgets/Slice.js +1 -1
  382. package/widgets/Slider.js +1 -1
  383. package/widgets/Spinner.js +1 -1
  384. package/widgets/Swipe.js +1 -1
  385. package/widgets/TableList/ListItemPanel.js +1 -1
  386. package/widgets/TableList.js +1 -1
  387. package/widgets/TimeSlider.js +1 -1
  388. package/widgets/TimeZoneLabel.js +1 -1
  389. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsLineSymbolPicker.js +1 -1
  390. package/widgets/UtilityNetworkAssociations.js +1 -1
  391. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  392. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
  393. package/widgets/UtilityNetworkTrace.js +1 -1
  394. package/widgets/ValuePicker/ValuePickerBaseComponent.js +1 -1
  395. package/widgets/ValuePicker/ValuePickerCollection.js +1 -1
  396. package/widgets/ValuePicker/ValuePickerCombobox.js +1 -1
  397. package/widgets/ValuePicker/ValuePickerLabel.js +1 -1
  398. package/widgets/ValuePicker/ValuePickerSlider.js +1 -1
  399. package/widgets/ValuePicker.js +1 -1
  400. package/widgets/Widget.js +1 -1
  401. package/widgets/Zoom.js +1 -1
  402. package/widgets/smartMapping/BinaryColorSizeSlider.js +1 -1
  403. package/widgets/smartMapping/ClassedColorSlider.js +1 -1
  404. package/widgets/smartMapping/ClassedSizeSlider.js +1 -1
  405. package/widgets/smartMapping/ColorSizeSlider.js +1 -1
  406. package/widgets/smartMapping/ColorSlider.js +1 -1
  407. package/widgets/smartMapping/HeatmapSlider.js +1 -1
  408. package/widgets/smartMapping/OpacitySlider.js +1 -1
  409. package/widgets/smartMapping/SizeSlider.js +1 -1
  410. package/widgets/smartMapping/SmartMappingSliderBase.js +1 -1
  411. package/widgets/support/ColorPicker.js +1 -1
  412. package/widgets/support/FilterBuilder.js +1 -1
  413. package/widgets/support/FilterCondition.js +1 -1
  414. package/widgets/support/GridControls.js +1 -1
  415. package/widgets/support/MeasurementWidgetContent.js +1 -1
  416. package/widgets/support/PluginSettingsControls.js +1 -1
  417. package/widgets/support/SelectionList.js +1 -1
  418. package/widgets/support/SelectionToolbar.d.ts +1 -1
  419. package/widgets/support/SelectionToolbar.js +1 -1
  420. package/widgets/support/SketchTooltipControls.js +1 -1
  421. package/widgets/support/SnappingControls.js +1 -1
  422. package/widgets/support/TimezonePicker.js +1 -1
  423. package/widgets/support/UnitSelect.js +1 -1
  424. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationList.js +1 -1
  425. package/assets/esri/core/workers/chunks/01803f76bc0d9f2cd566.js +0 -1
  426. package/assets/esri/core/workers/chunks/02940f7ddaf98e69521e.js +0 -1
  427. package/assets/esri/core/workers/chunks/07e5482e1fc69be5de09.js +0 -1
  428. package/assets/esri/core/workers/chunks/0c893837f67829757df7.js +0 -1
  429. package/assets/esri/core/workers/chunks/15950c2fb173b62ee0ec.js +0 -1
  430. package/assets/esri/core/workers/chunks/1a91443970d64a59521d.js +0 -1
  431. package/assets/esri/core/workers/chunks/1deca3de77b1a9a07da4.js +0 -1
  432. package/assets/esri/core/workers/chunks/1fd82fcba2758741996a.js +0 -1
  433. package/assets/esri/core/workers/chunks/20a2124cbe43e5527c40.js +0 -1
  434. package/assets/esri/core/workers/chunks/26ea39dfdf887f357fce.js +0 -1
  435. package/assets/esri/core/workers/chunks/276a0b549acf048e8673.js +0 -1
  436. package/assets/esri/core/workers/chunks/2c3612379111457c3221.js +0 -1
  437. package/assets/esri/core/workers/chunks/34467f7d84baffd772a3.js +0 -1
  438. package/assets/esri/core/workers/chunks/398ec098fffe6abceedd.js +0 -1
  439. package/assets/esri/core/workers/chunks/3b32a24488b3068f0cb7.js +0 -1
  440. package/assets/esri/core/workers/chunks/427d929dc7f89b0a1ea9.js +0 -1
  441. package/assets/esri/core/workers/chunks/432728c557be5dfa26b5.js +0 -1
  442. package/assets/esri/core/workers/chunks/4c240ca50f70bf30813f.js +0 -1
  443. package/assets/esri/core/workers/chunks/4d8833f48348cbbcc947.js +0 -1
  444. package/assets/esri/core/workers/chunks/514cc15acb77dc85035c.js +0 -1
  445. package/assets/esri/core/workers/chunks/585ae43c7bcb86a26762.js +0 -1
  446. package/assets/esri/core/workers/chunks/5e48898cebb6dbaf09b5.js +0 -1
  447. package/assets/esri/core/workers/chunks/5ec5a6cef9ee9a8cc400.js +0 -1
  448. package/assets/esri/core/workers/chunks/601e1d020b8115497944.js +0 -1
  449. package/assets/esri/core/workers/chunks/687deb918eb48a963c8f.js +0 -1
  450. package/assets/esri/core/workers/chunks/6a21dc13a465757ba007.js +0 -1
  451. package/assets/esri/core/workers/chunks/6e910342ada398c98e30.js +0 -1
  452. package/assets/esri/core/workers/chunks/78818c2a898444f7e890.js +0 -1
  453. package/assets/esri/core/workers/chunks/7d2cbc767c336d15e4d5.js +0 -1
  454. package/assets/esri/core/workers/chunks/7d497df6e13162156342.js +0 -1
  455. package/assets/esri/core/workers/chunks/7dbf4c7480bf9c72820d.js +0 -1
  456. package/assets/esri/core/workers/chunks/80c234ee5276ea1645db.js +0 -1
  457. package/assets/esri/core/workers/chunks/8c3779de09291170497f.js +0 -1
  458. package/assets/esri/core/workers/chunks/966204d6dedc8149c3e9.js +0 -1
  459. package/assets/esri/core/workers/chunks/9ab0735e86cf8932bf9d.js +0 -1
  460. package/assets/esri/core/workers/chunks/a0356702f2d3f787aeac.js +0 -1
  461. package/assets/esri/core/workers/chunks/a6f969851d4278865cc5.js +0 -1
  462. package/assets/esri/core/workers/chunks/ab0ea4042f4e13874aed.js +0 -1
  463. package/assets/esri/core/workers/chunks/ab98ade3257360015d6c.js +0 -1
  464. package/assets/esri/core/workers/chunks/b13d8f4e4e80ef00b1bd.js +0 -1
  465. package/assets/esri/core/workers/chunks/b15a8d4322f3b7819d2f.js +0 -1
  466. package/assets/esri/core/workers/chunks/b3aa29589dcfb5b93106.js +0 -1
  467. package/assets/esri/core/workers/chunks/b472c0a21ae29e653f7d.js +0 -1
  468. package/assets/esri/core/workers/chunks/b90271ce38522bcf813b.js +0 -1
  469. package/assets/esri/core/workers/chunks/ba91df9835cdea7698a9.js +0 -1
  470. package/assets/esri/core/workers/chunks/bd812dd75d2a3d7d0441.js +0 -1
  471. package/assets/esri/core/workers/chunks/bfe13ac9fa1aafb190a1.js +0 -1
  472. package/assets/esri/core/workers/chunks/c1cf3edce15f09648eb4.js +0 -1
  473. package/assets/esri/core/workers/chunks/c31830ee897d5a7f2582.js +0 -1
  474. package/assets/esri/core/workers/chunks/c48d97c38e821be17dc5.js +0 -1
  475. package/assets/esri/core/workers/chunks/c7ad62f54d2abe1d17a0.js +0 -1
  476. package/assets/esri/core/workers/chunks/cf21b217b13770757cb8.js +0 -1
  477. package/assets/esri/core/workers/chunks/d42a4f47843e075c56a8.js +0 -1
  478. package/assets/esri/core/workers/chunks/deb408bee61ca192b2ce.js +0 -1
  479. package/assets/esri/core/workers/chunks/e121d15b883184ee83e7.js +0 -1
  480. package/assets/esri/core/workers/chunks/e4042e43f0081fe49f7b.js +0 -1
  481. package/assets/esri/core/workers/chunks/e932951598499befabf5.js +0 -1
  482. package/assets/esri/core/workers/chunks/eaab787a5f2445be5e5a.js +0 -1
  483. package/assets/esri/core/workers/chunks/f06ef153e106b26a6748.js +0 -1
  484. package/assets/esri/core/workers/chunks/faae3c43048b42341536.js +0 -1
  485. package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +0 -46
  486. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ar.json +0 -1
  487. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.bg.json +0 -1
  488. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.bs.json +0 -1
  489. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ca.json +0 -1
  490. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.cs.json +0 -1
  491. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.da.json +0 -1
  492. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.de.json +0 -1
  493. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.el.json +0 -1
  494. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.en.json +0 -1
  495. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.es.json +0 -1
  496. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.et.json +0 -1
  497. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.fi.json +0 -1
  498. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.fr.json +0 -1
  499. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.he.json +0 -1
  500. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.hr.json +0 -1
  501. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.hu.json +0 -1
  502. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.id.json +0 -1
  503. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.it.json +0 -1
  504. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ja.json +0 -1
  505. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ko.json +0 -1
  506. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.lt.json +0 -1
  507. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.lv.json +0 -1
  508. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.nl.json +0 -1
  509. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.no.json +0 -1
  510. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pl.json +0 -1
  511. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pt-BR.json +0 -1
  512. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.pt-PT.json +0 -1
  513. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ro.json +0 -1
  514. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.ru.json +0 -1
  515. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sk.json +0 -1
  516. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sl.json +0 -1
  517. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sr.json +0 -1
  518. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.sv.json +0 -1
  519. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.th.json +0 -1
  520. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.tr.json +0 -1
  521. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.uk.json +0 -1
  522. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.vi.json +0 -1
  523. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-CN.json +0 -1
  524. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-HK.json +0 -1
  525. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/messages.zh-TW.json +0 -1
  526. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +0 -72
  527. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +0 -2
  528. package/widgets/UtilityNetworkValidateTopology.d.ts +0 -130
  529. package/widgets/UtilityNetworkValidateTopology.js +0 -2
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8589],{16494(e,t,i){var r=i(8673);const s=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",..."animate.animatetransform.circle.clippath.defs.ellipse.g.image.line.lineargradient.marker.mask.path.pattern.polygon.polyline.radialgradient.rect.stop.svg.switch.symbol.text.textpath.tspan.use".split(".")].reduce((e,t)=>(e[t]=[],e),{}),a="align.alink.alt.bgcolor.border.cellpadding.cellspacing.class.color.cols.colspan.coords.d.dir.face.height.hspace.ismap.lang.marginheight.marginwidth.multiple.nohref.noresize.noshade.nowrap.ref.rel.rev.rows.rowspan.scrolling.shape.span.summary.tabindex.title.usemap.valign.value.vlink.vspace.width".split("."),o=new r.I({whiteList:s,onTagAttr:(e,t,i)=>{let r=`${t}="${i}"`;if(a.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),n={sanitizeHtml:e=>o.sanitize(e)},l=new r.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);i.d(t,["KO",0,n,"Nd",0,l,"W5",0,o])},83027(e,t,i){const r=i(29953).ho;i.d(t,["h",0,r])},18589(e,t,i){i.r(t),i.d(t,{default:()=>Ve});var r=i(32198),s=i(40124),a=i(56507),o=i(69540),n=i(7762),l=i(49186),d=i(36563),u=i(4718),p=i(53966),y=i(97768),h=i(25728),c=i(93637),f=i(17676),g=i(39516),m=i(91429),b=i(89317),w=i(78247),v=i(16930),F=i(41910),I=i(55156),C=i(60950),M=i(89808),T=i(99959);const S=Symbol("isFeatureGraphicOrigin");var _;class E extends T.A{get[(_=S,C.ym)](){return this.layer}get[I.e](){return this.layer}get[M.Q](){return this.layer}get[F.e7](){return this.layer}constructor(e){super(),this[_]=!0,this.type="feature",this.layer=e}get id(){return this.layer.id}}var Z=i(4146),j=i(52106),O=i(92474),x=i(61893),A=i(83027),D=i(78888),q=i(5443),L=i(39829),P=i(50498),R=i(54339),k=i(59288),N=i(96520),G=i(22671),$=i(7695);let J=0,U=class extends((0,O.WV)((0,x.g)(n.A))){constructor(e){super(e),this._idToClientGeometry=null,this.type="memory"}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){let e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then(()=>this._applyEdits(e))}openPorts(){return this.load().then(()=>this._connection.openPorts())}async queryFeatures(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),r=await this._connection.invoke("queryFeatures",i.toJSON(),t),s=G.A.fromJSON(r);if(!this._requiresClientGraphicMapping()||!this._idToClientGeometry)return s;let a=this.layer.objectIdField;for(let e of s.features){let t=e.attributes[a],i=this._idToClientGeometry.get(t);void 0!==i&&(e.geometry=i)}return s.geometryType=this.layer.geometryType,s}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new l.A("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return await this._connection.invoke("queryFeatures",i.toJSON(),t)}async queryFeatureCount(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatureCount",i.toJSON(),t)}async queryObjectIds(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryObjectIds",i.toJSON(),t)}async queryExtent(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),r=await this._connection.invoke("queryExtent",i.toJSON(),t);return{count:r.count,extent:q.A.fromJSON(r.extent)}}async querySnapping(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();return this._connection.invoke("querySnapping",e,t)}async queryAttributeBins(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let r=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),s=await this._connection.invoke("queryAttributeBins",r.toJSON(),t);return(await i.e(7745).then(()=>i(37745))).default.fromJSON(s)}async _applyEdits(e){if(!this._connection)throw new l.A("feature-layer-source:edit-failure","Memory source not loaded");let t=this.layer.objectIdField,i=this.layer.uniqueIdFields,r=null,s=[],a=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);let o=e=>i?.length&&"attributes"in e?(0,R.r)(e,this.layer):"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(let t of e.deleteFeatures){let e=o(t);null!=e&&s.push(e)}let n=e.updateFeatures&&this._idToClientGeometry?new Map:null;if(e.updateFeatures)for(let t of e.updateFeatures)if(a.push(this._serializeFeature(t)),n&&null!=t.geometry){let e=o(t);null!=e&&n.set(e,t)}(0,N.u)(r?r.features:null,a,this.layer.spatialReference);let{fullExtent:d,featureEditResults:u}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:a,deletes:s});return this.fullExtent=d,r&&r.finish(u.uidToObjectId),this._updateIdToClientGeometries(n,u),this._createEditsResult(u)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||null==e)return;let i=[];for(let{geometry:r}of e)null!=r&&"mesh"===r.type&&!r.hasExtent&&!r.loaded&&i.push(r.load({signal:t}));i.length&&await Promise.all(i)}_updateIdToClientGeometries(e,t){if(this._idToClientGeometry){if(e)for(let i of t.updateResults){if(!i.success)continue;let t=e.get(i.objectId);null!=t&&this._addIdToClientGeometry(t)}for(let e of t.deleteResults)e.success&&this._idToClientGeometry.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){let t=!0===e.success?null:e.error||{code:void 0,description:""};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){let t=new Map,i=Array(e.length),r=null;for(let s=0;s<e.length;s++){let a=e[s],o=this._serializeFeature(a);!r&&null!=a.geometry&&(r=a.geometry.type),i[s]=o,t.set(`${o.uid}`,a)}let s=this;return{features:i,inferredGeometryType:r,finish(e){let i=s.sourceJSON.objectIdField;for(let r in e){let a=e[r],o=t.get(r);o&&(o.attributes||={},-1===a?delete o.attributes[i]:o.attributes[i]=a,s._addIdToClientGeometry(o))}}}}_addIdToClientGeometry(e){if(!this._idToClientGeometry)return;let t=this.sourceJSON.objectIdField,i=e.attributes?.[t];null!=i&&this._idToClientGeometry.set(i,e.geometry??null)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){let{attributes:t}=e,i=this._geometryForSerialization(e),r=(J++).toString();return i?{uid:r,geometry:i.toJSON(),attributes:t}:{uid:r,attributes:t}}_geometryForSerialization(e){let{geometry:t}=e;return null==t?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?L.A.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,A.h)("MemorySourceWorker",{strategy:"dedicated",signal:e,registryTarget:this});let{fields:t,spatialReference:i,objectIdField:r,hasM:s,hasZ:a,timeInfo:o,dateFieldsTimeZone:n}=this.layer,l="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);let d=this._prepareAddFeatures(this.items);this.addHandles(this.on("before-changes",e=>{p.A.getLogger(this).error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()}));let{uniqueIdFields:u}=this.layer,y=u?.length?{type:u.length>1?"composite":"simple",fields:u.slice(),OIDFieldContainsHashValue:1!==u?.length||u.at(0)!==this.layer.objectIdField}:void 0,h={features:d.features,fields:t?.map(e=>e.toJSON()),geometryType:P.Ye.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||a,objectIdField:r,spatialReference:l?null:i&&i.toJSON(),timeInfo:o?.toJSON()??null,dateFieldsTimeZone:n,uniqueIdInfo:y},c=await this._connection.invoke("load",h,{signal:e});for(let e of c.warnings)p.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});c.featureErrors.length&&p.A.getLogger(this.layer).error("#load()",`Failed to load ${c.featureErrors.length} features due to errors. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}').`,c.featureErrors.map(e=>"\n\n- "+e.error.description).join(""));let f=c.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(d.inferredGeometryType)&&(f.geometryType=P.Ye.toJSON(d.inferredGeometryType)),this.sourceJSON=f,this._requiresClientGraphicMapping()&&(this._idToClientGeometry=new Map),d.finish(c.assignedObjectIds)}};(0,r.Cg)([(0,$.u)({Type:j.A,ensureType:(0,D.dp)(j.A)})],U.prototype,"itemType",void 0),(0,r.Cg)([(0,m.MZ)()],U.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)({constructOnly:!0})],U.prototype,"layer",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],U.prototype,"_workerGeometryType",null),(0,r.Cg)([(0,m.MZ)()],U.prototype,"sourceJSON",void 0),U=(0,r.Cg)([(0,m.$K)("esri.layers.graphics.sources.MemorySource")],U);var V=i(52136),K=i(18768),H=i(63074),B=i(69208),Q=i(75254),W=i(6455),z=i(47685),Y=i(87718),X=i(10086),ee=i(56658),te=i(34287),ie=i(32756),re=i(8303),se=i(69622);let ae=class extends se.A{constructor(e){super(e),this.updating=!1,this.status="unknown"}};(0,r.Cg)([(0,m.MZ)()],ae.prototype,"updating",void 0),(0,r.Cg)([(0,m.MZ)()],ae.prototype,"status",void 0),ae=(0,r.Cg)([(0,m.$K)("esri.layers.support.PublishingInfo")],ae);const oe=Symbol(),ne=e=>{var t;let i=e,s=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=oe}get publishingInfo(){if(this.destroyed)return null;let e=this._get("publishingInfo");if(e)return e;let t=new ae;return this._checkPublishingStatus(t),t}_checkPublishingStatus(e){let t=0,i=async s=>{let a;e.updating=!0;try{a=await this.fetchPublishingStatus()}catch{a="unavailable"}("published"===a||"unavailable"===a)&&("publishing"===e.status&&this.refresh(),r.remove()),e.status=a,e.updating=!1,r.removed||(t=setTimeout(i,s,s+125))},r={removed:!1,remove(){this.removed=!0,clearTimeout(t)}};this.when().catch(()=>r.remove()),i(250),this.addHandles(r)}};return(0,r.Cg)([(0,m.MZ)({readOnly:!0,clonable:!1})],s.prototype,"publishingInfo",null),s=(0,r.Cg)([(0,m.$K)("esri.layers.mixins.PublishableLayer")],s),s};var le=i(54310),de=i(23502),ue=i(25036),pe=i(82935),ye=i(63396),he=i(60694),ce=i(10873),fe=i(15426),ge=i(29005),me=i(33143),be=i(30279),we=i(16194),ve=i(17036),Fe=i(30524),Ie=i(46499),Ce=i(39383),Me=i(6666),Te=i(25482);let Se=class extends((0,o.OU)(Te.o)){constructor(e){super(e),this.enabled=!1,this.drawOrder=[]}};(0,r.Cg)([(0,m.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1}}}})],Se.prototype,"enabled",void 0),(0,r.Cg)([(0,m.MZ)({type:[String],json:{write:!0,origins:{"web-scene":{write:!1}}}})],Se.prototype,"drawOrder",void 0),Se=(0,r.Cg)([(0,m.$K)("esri.layers.support.SymbolLayerDrawing")],Se);var _e=i(17311),Ee=i(91908),Ze=i(65494),je=i(8947),Oe=i(41214),xe=i(99614),Ae=i(97552),De=i(54218),qe=i(30291),Le=i(33910),Pe=i(78553),Re=i(59923),ke=i(36005),Ne=i(43937);const Ge="FeatureLayer";function $e(e){return e&&e instanceof n.A}const Je=(0,ve.p)();function Ue(e,t,i){let r=!!i?.writeLayerSchema;return{enabled:r,ignoreOrigin:r}}let Ve=class extends((0,de.Z)((0,X.j)((0,ee.J)((0,Y.F)(ne((0,z.w6)((0,W.FJ)((0,H.dM)((0,ie.fY)((0,pe.e)((0,Q.z)((0,ye.d)((0,ue.j)((0,le.J)((0,K.b)((0,te.q)((0,re.A)((0,h.M)((0,B.d)((0,V.p)((0,o.OU)(Z.A)))))))))))))))))))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new E(this),this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.symbolLayerDrawing=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="ArcGISFeatureLayer",this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=v.A.WGS84,this.subtypeCode=null,this.subtypeField=null,this.subtypes=null,this.supportedPortalItemTypes=["Feature Service","Feature Collection","Scene Service"],this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=(0,f.sg)(async(e,t,r)=>{let{save:s,saveAs:a}=await i.e(3359).then(()=>i(33359));switch(e){case 0:return s(this,t);case 1:return a(this,r,t)}})}destroy(){this.source?.destroy()}load(e){let t=null==e?null:e.signal;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then(e=>this.initLayerProperties(e))),Promise.resolve(this);let i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(f.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new l.A("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,fe.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get _titleCreator(){let e=this._get("_titleCreator");return(0,y.pR)(e),new _e.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,fields:this.fields,displayField:this.displayField,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}readCapabilities(e,t){return t=t.layerDefinition||t,(0,Me.S$)(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,i){return this._readEditingEnabled(t,!0,i)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,i,r){this._writeEditingEnabled(e,t,!0,r)}get effectiveEditingEnabled(){return(0,fe.C$)(this)}get featureTitleFields(){return[...this._titleCreator.requiredFields]}set fieldConfigurations(e){if(this._hasMemorySource()||(this._override("fieldConfigurations",e),!this.loaded))return;let t=(0,we.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){if(!this._hasMemorySource())return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,we.QX)(this)||null}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,i,r){r?.writeLayerSchema&&(0,c.sM)(i,e?"Table":"Feature Layer",t)}readSymbolLayerDrawing(e,t){let i=t.layerDefinition?.drawingInfo,r=i?.renderer,s=i?.symbolLayerDrawing;return r&&s?new Se(s):null}readGlobalIdField(e,t){return(0,fe.jD)(t.layerDefinition||t)}readObjectIdField(e,t){return(0,fe.Zm)(t.layerDefinition||t)}writePopupTemplate(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:!r?.writeLayerSchema}))}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,Fe.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;let r=t.drawingInfo?.renderer;if(r){let e=(0,Ze.L)(r,t,i)??void 0;return e||p.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,fe.PD)(t,i)}get source(){return this._get("source")}set source(e){e||=null;let t=this._get("source");t!==e&&((Array.isArray(e)||e instanceof n.A)&&(e=new U({layer:this,items:e})),$e(t)&&this._resetMemorySource(t),$e(e)&&this._initMemorySource(e),this._set("source",e))}readSource(e,t){let i=G.A.fromJSON(t.featureSet);return new U({layer:this,items:i?.features??[]})}readTemplates(e,t){let i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e=e?.map(e=>ge.A.fromJSON(e)),this._fixTemplates(e,r),this._fixTemplates(e,s),e}readTitle(e,t){let i=t.layerDefinition?.name??t.name,r=t.title||t.layerDefinition?.title;if(i){if("item-title"===this.sublayerTitleMode)return this.url?(0,he.yG)(this.url,i):i;let e=i;if(!e&&this.url){let t=(0,he.qg)(this.url);null!=t&&(e=t.title)}if(!e)return;let t=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&t&&t!==e&&(e=t+" - "+e),(0,he.cr)(e)}if("item-title"===this.sublayerTitleMode&&r)return r}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let i=(t=t.layerDefinition||t).typeIdField;if(i&&t.fields){i=i.toLowerCase();let e=t.fields.find(e=>e.name.toLowerCase()===i);e&&(i=e.name)}return i}readTypes(e,t){e=(t=t.layerDefinition||t).types;let i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e?.map(e=>(e=me.A.fromJSON(e),this._fixTemplates(e.templates,r),this._fixTemplates(e.templates,s),e))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t,i){let r=await(0,fe.Xl)(this,e,t,Ge,i);return this.lastEditsEventDate=new Date,r}async updateAttachment(e,t,i,r){let s=await(0,fe.bt)(this,e,t,i,Ge,r);return this.lastEditsEventDate=new Date,s}async applyEdits(e,t){return(0,fe.ct)(this,e,t)}async uploadAssets(e,t){return(0,fe.rn)(this,e,t)}createFieldConfigurations(){return(0,we.xY)(this)}createPopupTemplate(e){return(0,qe.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});let{default:s}=await(0,f.qr)(Promise.all([i.e(893),i.e(7),i.e(6553)]).then(()=>i(60845)),e),a=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,d.Bf)((0,f.u7)(e,()=>a.cancelLoad())??(0,d.hA)()),!1),await a.load({signal:e}),a}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,fe.VZ)(this);e.dynamicDataSource=this.dynamicDataSource;let t=null==this.subtypeCode?null:`${this.subtypeField} = ${this.subtypeCode}`;return e.where=(0,g.mA)(this.definitionExpression,t)||"1=1",e}async deleteAttachments(e,t,i){let r=await(0,fe.mm)(this,e,t,Ge,i);return this.lastEditsEventDate=new Date,r}async fetchRecomputedExtents(e){return(0,fe.WP)(this,e,Ge)}async getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}async getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getFeatureType(e){return(0,fe.xd)(this.types,this.typeIdField,e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){return(0,fe.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryAttachments(e,t){return(0,fe.lV)(this,e,t,Ge)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(Ae.A.from(e)??i.createQuery(),t),s=this.graphicOrigin;if(r?.features)for(let e of r.features)e.layer=e.sourceLayer=i,e.origin=s;return r}async queryObjectIds(e,t){return await(0,fe.sg)(this,e,t,Ge)}async queryFeatureCount(e,t){return(0,fe.Ye)(this,e,t,Ge)}async queryExtent(e,t){return(0,fe.B5)(this,e,t,Ge)}async queryRelatedFeatures(e,t){return(0,fe.hM)(this,e,t,Ge)}async queryRelatedFeaturesCount(e,t){return(0,fe.S2)(this,e,t,Ge)}async queryPivot(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryPivot||!s?.operations?.supportsQueryPivot)throw new l.A(Ge,"Layer source does not support queryPivot capability");let a=await i.e(9958).then(()=>i(29958)),o=await r.queryPivot(a.default.from(e),t),n=this.graphicOrigin;if(o?.features)for(let e of o.features)e.layer=e.sourceLayer=this,e.origin=n;return o}async queryTopFeatures(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopFeatures||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryTopFeatures capability");let a=await i.e(7561).then(()=>i(57561)),o=await r.queryTopFeatures(a.default.from(e),t),n=this.graphicOrigin;if(o?.features)for(let e of o.features)e.layer=e.sourceLayer=this,e.origin=n;return o}async queryAttributeBins(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryAttributeBins)throw new l.A(Ge,"Layer source does not support queryAttributeBins capability");(0,fe.ZJ)(e,s,Ge);let a=await i.e(4575).then(()=>i(14575)),o=await r.queryAttributeBins(a.default.from(e),t),n=this.graphicOrigin;if(o.features)for(let e of o.features)e.layer=e.sourceLayer=this,e.origin=n;return o}async queryTopObjectIds(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopObjectIds||!s?.query.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryTopObjectIds capability");let a=await i.e(7561).then(()=>i(57561));return(await r.queryTopObjectIds(a.default.from(e),t)).filter(De.Et)}async queryTopFeaturesExtent(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopExtents||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryTopExtents capability");let a=await i.e(7561).then(()=>i(57561));return r.queryTopExtents(a.default.from(e),t)}async queryTopFeatureCount(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopCount||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryFeatureCount capability");let a=await i.e(7561).then(()=>i(57561));return r.queryTopCount(a.default.from(e),t)}read(e,t){let i=e.featureCollection;if((i||"Feature Collection"===e.type)&&(this.resourceInfo=e),i){let{layers:e,showLegend:r}=i;1===e?.length&&(super.read(e[0],t),null!=r&&super.read({showLegend:r},t))}super.read(e,t),$e(this.source)&&"service"===t?.origin&&(["objectIdField","fields","timeInfo","dateFieldsTimeZone","uniqueIdFields"].forEach(e=>{this.revertToOrigin(e,"service")}),this.spatialReference||this.revertToOrigin("spatialReference","service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};let{origin:i,layerContainerType:r}=t;if(this.dynamicDataSource)return(0,Re.U4)(t,this,"a dynamic data source cannot be written to web scenes, web maps and feature service items"),null;if(this.isTable){if(("web-map"===i||"web-scene"===i)&&"tables"!==r)return(0,Re.U4)(t,this,"a table source can only be written to tables"),null;if(this._hasMemorySource())return(0,Re.U4)(t,this,"an in-memory table source cannot be written to web scenes and web maps"),null}else if(this.loaded&&("web-map"===i||"web-scene"===i)&&"tables"===r)return(0,Re.U4)(t,this,"a non-table source cannot be written to tables in web maps or web scenes"),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new l.A(Ge,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,Ee.D)(this,e))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_readEditingEnabled(e,t,i){let r=e.layerDefinition?.capabilities;if(r||(r=e.capabilities,t&&"web-map"===i?.origin&&!this._hasMemorySource()&&r))return this._hasEditingCapability(r)}_hasEditingCapability(e){return e.toLowerCase().split(",").map(e=>e.trim()).includes("editing")}_writeEditingEnabled(e,t,i,r){if(!e){let e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,c.sM)("layerDefinition.capabilities",e,t),i&&!r?.writeLayerSchema&&(t.capabilities=e)}}_fetchFirstValidLayerId(e){return(0,a.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;if(t)return this.applyPreferredHost(t),this.findFirstValidLayerId(t)})}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,Fe.yp)(this.renderer,this.fieldsIndex),(0,Fe.sv)(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),(0,je.L)(this,{origin:"service"})}canReload(){return super.canReload()&&!this._hasMemorySource()}async reloadFromService(e){let t=this.source;await t.reload({signal:e}),await this.initLayerProperties(t)}async hasDataChanged(){return(0,fe.jp)(this)}async fetchPublishingStatus(){let e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){let e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some(e=>"geometry"===e.type)||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach(e=>{let i=e.prototype?.attributes;i&&t&&delete i[t]})}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new l.A("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new l.A("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach(e=>{e.layer=this,e.sourceLayer=this}),this.addHandles([e.on("after-add",e=>{e.item.layer=this,e.item.sourceLayer=this}),e.on("after-remove",e=>{e.item.layer=null,e.item.sourceLayer=null})],"fl-source")}_resetMemorySource(e){e.forEach(e=>{e.layer=null,e.sourceLayer=null}),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){return[...e.layers||[],...e.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id}};(0,r.Cg)([(0,m.MZ)({clonable:!1,readOnly:!0})],Ve.prototype,"_titleCreator",null),(0,r.Cg)([(0,m.MZ)(ce.zQ)],Ve.prototype,"attributeTableTemplate",void 0),(0,r.Cg)([(0,ke.w)("service","capabilities")],Ve.prototype,"readCapabilities",null),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],Ve.prototype,"charts",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Ve.prototype,"createQueryVersion",null),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.copyrightText"}}})],Ve.prototype,"copyright",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.displayField"}}})],Ve.prototype,"displayField",void 0),(0,r.Cg)([(0,m.MZ)({types:Le.Es,readOnly:!0})],Ve.prototype,"defaultSymbol",void 0),(0,r.Cg)([(0,m.MZ)({types:xe.e})],Ve.prototype,"dynamicDataSource",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean})],Ve.prototype,"editingEnabled",null),(0,r.Cg)([(0,ke.w)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],Ve.prototype,"readEditingEnabled",null),(0,r.Cg)([(0,ke.w)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],Ve.prototype,"readEditingEnabledFromWebMap",null),(0,r.Cg)([(0,Ne.K)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],Ve.prototype,"writeEditingEnabled",null),(0,r.Cg)([(0,Ne.K)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],Ve.prototype,"writeEditingEnabledToWebMap",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Ve.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,m.MZ)({clonable:!1,readOnly:!0})],Ve.prototype,"featureTitleFields",null),(0,r.Cg)([(0,m.MZ)({type:[be.A],json:{name:"layerDefinition.fieldConfigurations",write:{overridePolicy(e,t,i){return{enabled:!i?.writeLayerSchema,ignoreOrigin:1===this.originIdOf(t)}}}}})],Ve.prototype,"fieldConfigurations",null),(0,r.Cg)([(0,m.MZ)({...Je.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Ue}}}}})],Ve.prototype,"fields",void 0),(0,r.Cg)([(0,m.MZ)(Je.fieldsIndex)],Ve.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,m.MZ)({type:w.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],Ve.prototype,"formTemplate",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.extent"}}})],Ve.prototype,"fullExtent",void 0),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Ue,writer(e,t,i){let r=e?fe.iX.toJSON(e):null;r&&(0,c.sM)(i,r,t)}}}},read:{source:"layerDefinition.geometryType",reader:fe.iX.read}}})],Ve.prototype,"geometryType",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,clonable:!1})],Ve.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.hasM"}}})],Ve.prototype,"hasM",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.hasZ"}}})],Ve.prototype,"hasZ",void 0),(0,r.Cg)([(0,m.MZ)(ce.id)],Ve.prototype,"id",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Ve.prototype,"infoFor3D",void 0),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],Ve.prototype,"isTable",void 0),(0,r.Cg)([(0,ke.w)("service","isTable",["type","geometryType"]),(0,ke.w)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],Ve.prototype,"readIsTable",null),(0,r.Cg)([(0,Ne.K)("web-map","isTable")],Ve.prototype,"writeIsTable",null),(0,r.Cg)([(0,m.MZ)(ce.kF)],Ve.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,m.MZ)({type:[Ie.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:Ce.w,write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:Ce.w,write:{layerContainerTypes:b.K}}})],Ve.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,m.MZ)({type:Se,json:{name:"layerDefinition.drawingInfo.symbolLayerDrawing",write:!0,origins:{"web-scene":{write:!1}}}})],Ve.prototype,"symbolLayerDrawing",void 0),(0,r.Cg)([(0,ke.w)(["portal-item","web-map"],"symbolLayerDrawing",["layerDefinition.drawingInfo.renderer","layerDefinition.drawingInfo.symbolLayerDrawing"])],Ve.prototype,"readSymbolLayerDrawing",null),(0,r.Cg)([(0,m.MZ)((()=>{let e=(0,u.o8)(ce.Ih);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,i){(0,c.sM)(i,(0,Pe.p)(e),t)}}},e})())],Ve.prototype,"opacity",void 0),(0,r.Cg)([(0,m.MZ)(ce.fV)],Ve.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:["show","hide"],json:(()=>{let e=(0,u.o8)(ce.C1.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],Ve.prototype,"listMode",void 0),(0,r.Cg)([(0,ke.w)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],Ve.prototype,"readGlobalIdField",null),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Ue}}}}})],Ve.prototype,"objectIdField",void 0),(0,r.Cg)([(0,ke.w)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],Ve.prototype,"readObjectIdField",null),(0,r.Cg)([(0,m.MZ)({type:["ArcGISFeatureLayer"],json:{write:{target:"layerType",ignoreOrigin:!0,layerContainerTypes:b.K}}})],Ve.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,m.MZ)(Je.outFields)],Ve.prototype,"outFields",void 0),(0,r.Cg)([(0,m.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Ve.prototype,"path",void 0),(0,r.Cg)([(0,m.MZ)(ce.M6)],Ve.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Ve.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,Ne.K)("popupTemplate")],Ve.prototype,"writePopupTemplate",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Ve.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,m.MZ)({types:Oe.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:Oe.XJ,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:b.K,overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:b.K})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:b.K})}}})],Ve.prototype,"renderer",null),(0,r.Cg)([(0,ke.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,ke.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Ve.prototype,"readRenderer",null),(0,r.Cg)([(0,m.MZ)()],Ve.prototype,"resourceInfo",void 0),(0,r.Cg)([(0,m.MZ)((()=>{let e=(0,u.o8)(ce.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],Ve.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,m.MZ)({clonable:!1})],Ve.prototype,"source",null),(0,r.Cg)([(0,ke.w)("portal-item","source",["featureSet"]),(0,ke.w)("web-map","source",["featureSet"])],Ve.prototype,"readSource",null),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],Ve.prototype,"spatialReference",void 0),(0,r.Cg)([(0,m.MZ)({type:Number})],Ve.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!1})],Ve.prototype,"subtypeField",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!1})],Ve.prototype,"subtypes",void 0),(0,r.Cg)([(0,m.MZ)({type:[ge.A]})],Ve.prototype,"templates",void 0),(0,r.Cg)([(0,ke.w)("templates",["editFieldsInfo","creatorField","editorField","templates"])],Ve.prototype,"readTemplates",null),(0,r.Cg)([(0,m.MZ)()],Ve.prototype,"title",void 0),(0,r.Cg)([(0,ke.w)("service","title",["name"]),(0,ke.w)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],Ve.prototype,"readTitle",null),(0,r.Cg)([(0,ke.w)("web-map","title",["layerDefinition.name","title"])],Ve.prototype,"readTitleFromWebMap",null),(0,r.Cg)([(0,m.MZ)({type:String})],Ve.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:!1}})],Ve.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)({type:String})],Ve.prototype,"typeIdField",void 0),(0,r.Cg)([(0,ke.w)("service","typeIdField"),(0,ke.w)("typeIdField",["layerDefinition.typeIdField"])],Ve.prototype,"readTypeIdField",null),(0,r.Cg)([(0,m.MZ)({type:[me.A]})],Ve.prototype,"types",void 0),(0,r.Cg)([(0,ke.w)("service","types",["types"]),(0,ke.w)("types",["layerDefinition.types"])],Ve.prototype,"readTypes",null),(0,r.Cg)([(0,m.MZ)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility",layerContainerTypes:b.K}}}}})],Ve.prototype,"visible",void 0),(0,r.Cg)([(0,ke.w)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],Ve.prototype,"readVisible",null),Ve=(0,r.Cg)([(0,m.$K)("esri.layers.FeatureLayer")],Ve)},59288(e,t,i){i.d(t,{$:()=>o});var r=i(96184),s=i(36003),a=i(2991);function o(e,t,i,o){if(!e.timeExtent||!t&&!i)return e;let n=e.clone();if(t&&i){if(!(0,s.L)(t,r.A.fromJSON(i))){let i=(0,a.RZ)(e.timeExtent,t,o,e.where);i&&(n.where=i,n.timeExtent=void 0)}return n}return!t&&i?(n.timeExtent=void 0,n):(t&&!i&&(n.where=(0,a.RZ)(e.timeExtent,t,o,e.where),n.timeExtent=void 0),n)}},75254(e,t,i){i.d(t,{z:()=>c});var r=i(32198),s=i(91429),a=i(89317),o=i(69540),n=i(25482);let l=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.name=null,this.type=null,this.title=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:["change-from-average","change-from-first","change-from-previous","percent-change-from-average","percent-change-from-first","percent-change-from-previous"],json:{write:{isRequired:!0}}})],l.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),l=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeSeriesCalculationMethod")],l);const d=l;let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.fieldName=null,this.timeValue=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"fieldName",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"timeValue",void 0),u=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeSeriesFieldTimeMapping")],u);const p=u;var y=i(79677);let h=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.name=null,this.fieldTimeMappings=null,this.timeExtent=null,this.timeInterval=null,this.timeIntervalUnits=null,this.timeValueUnits=null,this.title=null,this.calculationMethods=null,this.type="time-series-fields"}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:[p],json:{write:{isRequired:!0}}})],h.prototype,"fieldTimeMappings",void 0),(0,r.Cg)([(0,s.MZ)({type:y.A,json:{write:!0}})],h.prototype,"timeExtent",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:{isRequired:!0}}})],h.prototype,"timeInterval",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"timeIntervalUnits",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"timeValueUnits",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:[d],json:{write:!0}})],h.prototype,"calculationMethods",void 0),(0,r.Cg)([(0,s.MZ)({type:String,readOnly:!0,json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),h=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeSeriesInfo")],h);const c=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.dataSeriesInfos=null}};return(0,r.Cg)([(0,s.MZ)({type:[h],json:{read:{source:["layerDefinition.dataSeriesInfos","dataSeriesInfos"],reader:(e,t,i)=>(t?.layerDefinition?.dataSeriesInfos??t.dataSeriesInfos)?.filter(e=>"time-series-fields"===e.type).map(e=>h.fromJSON(e,i))},write:{target:"layerDefinition.dataSeriesInfos",enabled:!0,allowNull:!0,layerContainerTypes:a.K},origins:{"web-scene":{write:!1,read:!1}}}})],i.prototype,"dataSeriesInfos",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.DataSeriesLayer")],i),i}},47685(e,t,i){i.d(t,{Mk:()=>h,Zk:()=>p});var r=i(32198),s=i(65529),a=i(4718),o=i(91429),n=i(20816);const l=new s.bk;function d(e){return l.on("apply-edits",new WeakRef(e))}function u(e){return l.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){let s=Promise.withResolvers();return r=null==t||r,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:s.promise}),s}const y=Symbol();function h(e){return"object"==typeof e&&!!e&&y in e}function c(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function f(e,t,i){let r=new URL(e).host,s=n.Z3.get(r),a=e=>!e||e===s;return a(t)&&a(i)||t===i}i.d(t,["w6",0,e=>{var t;let i=e,s=class extends i{static{t=y}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:s,result:o}=e,n=t===this.url,l=null!=i&&null!=this.layerId&&i===this.layerId,d=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),u=c(this),p=c(this)&&f(t,r,this.gdbVersion);if(!n||u&&!p||!l&&!d&&!s)return;let y=o.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,a.o8)(e)),e;let i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){let{adds:t,updates:r,deletes:s}=i.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return this.emit("edits",o),o}let s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));y.catch(()=>{}),this.emit("apply-edits",{result:y})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:i,moment:r}=e,s=t===this.url,a=c(this),o=c(this)&&f(t,i,this.gdbVersion),n=c(this)&&!f(t,this.gdbVersion,null);s&&a&&o&&n&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(d(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(u(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,n.w5)(e,t)}};return(0,r.Cg)([(0,o.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},63396(e,t,i){i.d(t,{d:()=>C});var r=i(32198),s=i(91429),a=i(41910),o=i(60950),n=i(99959);class l extends n.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}get[a.e7](){return this.trackInfoProvider}}var d=i(40124),u=i(69540),p=i(25482),y=i(93637),h=i(50820),c=i(10873),f=i(46499),g=i(41214);let m=class extends((0,u.OU)(p.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,r.Cg)([(0,s.MZ)({type:[f.A],json:{write:!0}})],m.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,s.MZ)(c.kF)],m.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,s.MZ)({types:g.Hg,json:{write:!0}})],m.prototype,"renderer",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"visible",void 0),m=(0,r.Cg)([(0,s.$K)("esri.layers.support.TrackPartInfo")],m);var b=i(96576),w=i(59868),v=i(10184),F=i(43937);let I=class extends((0,u.OU)(p.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new m({renderer:new b.A({symbol:w.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new m({renderer:new b.A({symbol:w.UK.clone()})}),this.trackLines=new m({renderer:new b.A({symbol:w.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,i){let r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,y.sM)(i,r,t)}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"enabled",void 0),(0,r.Cg)([(0,s.MZ)({type:[h.A],json:{write:!0}})],I.prototype,"fields",void 0),(0,r.Cg)([(0,F.K)("fields")],I.prototype,"writeFields",null),(0,r.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],I.prototype,"latestObservations",void 0),(0,r.Cg)([(0,s.MZ)({type:v.A,json:{write:!0}})],I.prototype,"maxDisplayDuration",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],I.prototype,"maxDisplayObservationsPerTrack",void 0),(0,r.Cg)([(0,s.MZ)(c.M6)],I.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,s.MZ)({type:d.A,json:{name:"popupInfo",write:!0}})],I.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],I.prototype,"previousObservations",void 0),(0,r.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],I.prototype,"trackLines",void 0),(0,r.Cg)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],I.prototype,"timeField",void 0),I=(0,r.Cg)([(0,s.$K)("esri.layers.support.TrackInfo")],I);const C=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new l(this),this.trackInfo=null}};return(0,r.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],i.prototype,"trackGraphicOrigin",void 0),(0,r.Cg)([(0,s.MZ)({type:I})],i.prototype,"trackInfo",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.TrackableLayer")],i),i}},17311(e,t,i){i.d(t,{A:()=>h});var r=i(32198),s=i(69622),a=i(4576),o=i(60999),n=i(7762),l=i(16494),d=i(91429),u=i(30524),p=i(43668);const y=/<br\s*\/*>/gi;let h=class extends s.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([i.e(3281),i.e(9301)]).then(()=>i(99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){let e=new n.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(let t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(let t of this.expressionsUsedInTitle)try{let i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"==typeof e?(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[]):[]}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){let e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(let t of this.calculatedExpressions?.toArray()??[])try{let i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(let t of i){let i=t.split("."),r=this.fieldsIndex.get(i.at(-1)??"");r&&e.add(r.name)}}catch{}let t=this._extractFieldNames(this.workingTitle);for(let i of t){let t=this.fieldsIndex.get(i);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||=this.fieldsIndex.get(this.objectIdField)?.name??"",e?`{${e}}`:""}get workingTitle(){let e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){let r=t.getObjectId()??t.attributes?.[e.objectIdField];return(await this.getTitles(e,[t],i)).get(r)??""}async getTitles(e,t,i){let r=new Map,s=i?.timeZone??"system";try{let[{substituteFieldsInLinksAndAttributes:a}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);i?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));let{fieldInfoMap:o,workingTitle:n}=this,d=n&&o;t.forEach(t=>{let u=t.getObjectId()??t.attributes[e.objectIdField],p=d?a({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,s).global,layer:e,text:n}):"";i?.removeHTML&&(p=l.Nd.sanitize(p).replaceAll(y," ")),r.set(u,p)})}catch{}return r}async _checkAndReQueryGraphics(e,t){let i=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(a.Ru);if(i.length!==t.length)return t;if(t.some(e=>!(0,u.Kl)(e,this.requiredFields))){let r=e.createQuery();r.where="1=1",r.outFields=[...this.requiredFields],r.objectIds=i;let s=await e.queryFeatures(r);if(s?.features.length===t.length)return s.features}return t}_createFieldInfoMap(e){let t=new Map;if(!e)return t;for(let i of e){if(!i.fieldName)continue;let e=this.fieldsIndex.get(i.fieldName)?.name??i.fieldName;i.fieldName=e,t.set(e.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){let r=this.effectivePopupTemplate?.fieldInfos??[],s={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){let i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(let e of this.calculatedExpressions)try{s[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}let a={...t.attributes,...s};return{global:this._featureUtils.formatAttributes({fieldInfos:r,attributes:a,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,u.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,r.Cg)([(0,d.MZ)({readOnly:!0})],h.prototype,"_arcadeTask",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"_featureUtils",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],h.prototype,"featureUtilsPromise",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],h.prototype,"calculatedExpressions",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"displayField",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"effectivePopupTemplate",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"expressionsUsedInTitle",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"fieldInfoMap",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"fields",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"objectIdField",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"requiredFields",null),h=(0,r.Cg)([(0,d.$K)("esri.layers.support.TitleCreator")],h)},36003(e,t,i){function r(e,t){let i=e.startField===t.startField||!e.startField&&!t.startField,r=e.endField===t.endField||!e.endField&&!t.endField;return i&&r}i.d(t,{L:()=>r})},8947(e,t,i){i.d(t,{L:()=>o});var r=i(60999),s=i(17676),a=i(67076);async function o(e,t,i){let o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){let n=await(0,r.Ke)(o.populateFromStyle());if((0,s.Te)(i),!1===n.ok){let i=n.error;t?.messages&&t.messages.push(new a.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},96520(e,t,i){i.d(t,{u:()=>l});var r=i(86211),s=i(21325),a=i(52006);function o(e,t,i){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e)t.length>2&&(t[2]*=i)}function n(e,t,i){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e){let e=(0,a.yP)(t);e.length>2&&(e[2]*=i)}}function l(e,t,i){if(!e&&!t||!i)return;let s=(0,r.G9)(i);d(e,i,s),d(t,i,s)}function d(e,t,i){if(e)for(let r of e)u(r.geometry,t,i)}function u(e,t,i){if(!e?.spatialReference||(0,s.aI)(e.spatialReference,t))return;let a=(0,r.G9)(e.spatialReference)/i;if(1!==a)if("x"in e)null!=e.z&&(e.z*=a);else if("curveRings"in e)n(e,e.curveRings,a);else if("curvePaths"in e)n(e,e.curvePaths,a);else if("rings"in e)o(e,e.rings,a);else if("paths"in e)o(e,e.paths,a);else if("points"in e&&(null==e.hasM||e.hasZ))for(let t of e.points)t.length>2&&(t[2]*=a)}},20816(e,t,i){i.d(t,{We:()=>n,ZJ:()=>l,w5:()=>d});var r=i(56507);const s=(0,i(13069).vD)(),a=new Map,o=new Map;async function n(e,t,i){if(!e||!i)return!1;if(!t)return!0;let s=new URL(e).host,o=a.get(s);if(!o){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,r=!1){if(!e||!t)return!0;let a=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=o.get(a)?.entries();if(n)for(let[e,o]of n)if(o.name===t){let t=!o.stack?.hasForwardEdits();if(!t&&r){let[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(()=>i(32186)),i.e(2558).then(()=>i(32558))]),n=await t(a,e,new r({sessionId:s,moment:o.moment}));return n.success&&o.stack?.clearForwardEdits(),n.success}return t}return!0}function d(e,t){if(!e)return!1;let i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=o.get(i)?.entries();if(r)for(let[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,s,"Z3",0,a])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,9940],{80200(e,t,i){i.d(t,{d:()=>u});const n={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function r(e,t,i,n,r,o){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(n,o)),r),i)}function o(e,t,i,n,s,o,l){return r(t&i|~t&n,e,t,s,o,l)}function l(e,t,i,n,s,o,l){return r(t&n|i&~n,e,t,s,o,l)}function a(e,t,i,n,s,o,l){return r(t^i^n,e,t,s,o,l)}function h(e,t,i,n,s,o,l){return r(i^(t|~n),e,t,s,o,l)}function c(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,n=-271733879,r=-1732584194,c=271733878;for(let t=0;t<e.length;t+=16){let u=i,p=n,f=r,m=c;i=o(i,n,r,c,e[t],7,-680876936),c=o(c,i,n,r,e[t+1],12,-389564586),r=o(r,c,i,n,e[t+2],17,606105819),n=o(n,r,c,i,e[t+3],22,-1044525330),i=o(i,n,r,c,e[t+4],7,-176418897),c=o(c,i,n,r,e[t+5],12,1200080426),r=o(r,c,i,n,e[t+6],17,-1473231341),n=o(n,r,c,i,e[t+7],22,-45705983),i=o(i,n,r,c,e[t+8],7,1770035416),c=o(c,i,n,r,e[t+9],12,-1958414417),r=o(r,c,i,n,e[t+10],17,-42063),n=o(n,r,c,i,e[t+11],22,-1990404162),i=o(i,n,r,c,e[t+12],7,1804603682),c=o(c,i,n,r,e[t+13],12,-40341101),r=o(r,c,i,n,e[t+14],17,-1502002290),n=o(n,r,c,i,e[t+15],22,1236535329),i=l(i,n,r,c,e[t+1],5,-165796510),c=l(c,i,n,r,e[t+6],9,-1069501632),r=l(r,c,i,n,e[t+11],14,643717713),n=l(n,r,c,i,e[t],20,-373897302),i=l(i,n,r,c,e[t+5],5,-701558691),c=l(c,i,n,r,e[t+10],9,38016083),r=l(r,c,i,n,e[t+15],14,-660478335),n=l(n,r,c,i,e[t+4],20,-405537848),i=l(i,n,r,c,e[t+9],5,568446438),c=l(c,i,n,r,e[t+14],9,-1019803690),r=l(r,c,i,n,e[t+3],14,-187363961),n=l(n,r,c,i,e[t+8],20,1163531501),i=l(i,n,r,c,e[t+13],5,-1444681467),c=l(c,i,n,r,e[t+2],9,-51403784),r=l(r,c,i,n,e[t+7],14,1735328473),n=l(n,r,c,i,e[t+12],20,-1926607734),i=a(i,n,r,c,e[t+5],4,-378558),c=a(c,i,n,r,e[t+8],11,-2022574463),r=a(r,c,i,n,e[t+11],16,1839030562),n=a(n,r,c,i,e[t+14],23,-35309556),i=a(i,n,r,c,e[t+1],4,-1530992060),c=a(c,i,n,r,e[t+4],11,1272893353),r=a(r,c,i,n,e[t+7],16,-155497632),n=a(n,r,c,i,e[t+10],23,-1094730640),i=a(i,n,r,c,e[t+13],4,681279174),c=a(c,i,n,r,e[t],11,-358537222),r=a(r,c,i,n,e[t+3],16,-722521979),n=a(n,r,c,i,e[t+6],23,76029189),i=a(i,n,r,c,e[t+9],4,-640364487),c=a(c,i,n,r,e[t+12],11,-421815835),r=a(r,c,i,n,e[t+15],16,530742520),n=a(n,r,c,i,e[t+2],23,-995338651),i=h(i,n,r,c,e[t],6,-198630844),c=h(c,i,n,r,e[t+7],10,1126891415),r=h(r,c,i,n,e[t+14],15,-1416354905),n=h(n,r,c,i,e[t+5],21,-57434055),i=h(i,n,r,c,e[t+12],6,1700485571),c=h(c,i,n,r,e[t+3],10,-1894986606),r=h(r,c,i,n,e[t+10],15,-1051523),n=h(n,r,c,i,e[t+1],21,-2054922799),i=h(i,n,r,c,e[t+8],6,1873313359),c=h(c,i,n,r,e[t+15],10,-30611744),r=h(r,c,i,n,e[t+6],15,-1560198380),n=h(n,r,c,i,e[t+13],21,1309151649),i=h(i,n,r,c,e[t+4],6,-145523070),c=h(c,i,n,r,e[t+11],10,-1120210379),r=h(r,c,i,n,e[t+2],15,718787259),n=h(n,r,c,i,e[t+9],21,-343485551),i=s(i,u),n=s(n,p),r=s(r,f),c=s(c,m)}return[i,n,r,c]}function u(e,t=n.Hex){let i=t||n.Base64,s=c(function(e){let t=[];for(let i=0,n=8*e.length;i<n;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case n.Raw:return s;case n.Hex:return function(e){let t="0123456789abcdef",i=[];for(let n=0,s=4*e.length;n<s;n++)i.push(t.charAt(e[n>>2]>>n%4*8+4&15)+t.charAt(e[n>>2]>>n%4*8&15));return i.join("")}(s);case n.String:return function(e){let t=[];for(let i=0,n=32*e.length;i<n;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(s);case n.Base64:return function(e){let t=[];for(let i=0,n=4*e.length;i<n;i+=3){let n=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let s=0;s<4;s++)8*i+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-s)&63))}return t.join("")}(s)}}i.d(t,["T",0,n])},87024(e,t,i){i.d(t,{P:()=>f});var n=i(49186),s=i(80200),r=i(76553),o=i(84952),l=i(13069),a=i(96156),h=i(35666),c=i(10107),u=i(85648),p=i(97159);function f(e){let t=e?.origins??[void 0];return(i,n)=>{let s=function(e,t,i){if("resource"===e?.type)return function(e,t,i){let n=(0,a.z4)(t,i);return{type:String,read:(e,t,i)=>{let s=(0,p.r)(e,t,i);return n.type===String?s:"function"==typeof n.type?new n.type({url:s}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,s,l,a){if(!a?.resources)return"string"==typeof t?void(s[l]=(0,p.t)(t,a)):void(s[l]=t.write({},a));let c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),f=(0,p.t)(c,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),g=n.type!==String&&(!(0,r.H)(this)||a?.origin&&this.originIdOf(i)>(0,h.aB)(a.origin)),_={object:this,propertyName:i,value:t,targetUrl:f,dest:s,targetPropertyName:l,context:a,params:e};a?.portalItem&&f&&!(0,o.oP)(f)?g&&e?.contentAddressed?m(_):g?function(e){let{context:t,targetUrl:i,params:n,value:s,dest:r,targetPropertyName:l}=e;if(!t.portalItem)return;let a=t.portalItem.resourceFromPath(i),h=y(s,i,t),c=(0,u.n)(h),p=(0,o.Zo)(a.path),f=n?.compress??!1;c===p?(t.resources&&d({...e,resource:a,content:h,compress:f,updates:t.resources.toUpdate}),r[l]=i):m(e)}(_):function({context:e,targetUrl:t,dest:i,targetPropertyName:n}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[n]=t)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,o.w8)(f)||g)?m(_):s[l]=f}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,i,n);for(let e of t){let t=(0,c.rM)(i,e,n);for(let e in s)t[e]=s[e]}}}function m(e){let{targetUrl:t,params:i,value:r,context:a,dest:h,targetPropertyName:c}=e;if(!a.portalItem)return;let f=(0,p.p)(t),m=y(r,t,a);if(i?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));let g=i?.contentAddressed&&"json"===m.type?(0,s.d)(m.jsonString):f?.filename??(0,l.lk)(),_=i?.prefix??f?.prefix,x=(0,o.fj)(_,g),w=`${x}.${(0,u.n)(m)}`;if(i?.contentAddressed&&a.resources&&"json"===m.type){let e=a.resources.toKeep.find(({resource:e})=>e.path===w)??a.resources.toAdd.find(({resource:e})=>e.path===w);if(e)return void(h[c]=e.resource.itemRelativeUrl)}let v=a.portalItem.resourceFromPath(w);(0,o.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(t).then(e=>{v.path=`${x}.${(0,u.n)({type:"blob",blob:e})}`,h[c]=v.itemRelativeUrl}).catch(()=>{}));let C=i?.compress??!1;a.resources&&d({...e,resource:v,content:m,compress:C,updates:a.resources.toAdd}),h[c]=v.itemRelativeUrl}function d({object:e,propertyName:t,updates:i,resource:n,content:s,compress:r}){i.push({resource:n,content:s,compress:r,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function y(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},83027(e,t,i){const n=i(29953).ho;i.d(t,["h",0,n])},35982(e,t,i){i.d(t,{B:()=>c});var n=i(4576),s=i(71511),r=i(36563),o=i(53966),l=i(97768),a=i(17676),h=i(83027);class c{constructor(e,t,i,n,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(e,{...s,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{s.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(let t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){let i=new u(e,t);return this._listeners.push(i),this._connectListener(i),(0,r.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,l.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){return this._invokeMethod(e,[t],i,n)}invokeMethodWithArgs(e,t,i,n){return this._invokeMethod(e,t,i,n)}_invokeMethod(e,t,i,n){if(this._thread){let s=this._transferLists[e],r=s?s(...t):[];return this._thread.apply(e,t,{transferList:r,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,a.Te)(i),this._invokeMethod(e,t,i,n))):Promise.reject((0,a.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(p):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class u{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new s.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function p(){}},89056(e,t,i){i.d(t,{b3:()=>u,jZ:()=>c});var n=i(12195),s=i(19419),r=i(537),o=i(95108),l=i(60408),a=i(80754),h=i(21325);function c(e){return p(e,!0)}function u(e){return p(e,!1)}function p(e,t){if(null==e)return null;let i=e.spatialReference,s=(0,h.Vp)(i),o=(0,n.W)(e)?e.toJSON():e;if(!s)return o;let c=(0,h.K8)(i)?102100:4326,u=a.j7[c].maxX,p=a.j7[c].minX;if((0,l.fT)(o))return m(o,u,p);if((0,l.U9)(o))return o.points=o.points.map(e=>m(e,u,p)),o;if((0,l.ZC)(o))return f(o,s);if((0,l.Bi)(o)||(0,l.Rg)(o)){let e=(0,r.Rg)(w,o),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},n=(0,a.kd)(i.xmin,p),s=2*u*n,l=0===s?o:(0,a.kS)(o,s);return i.xmin+=s,i.xmax+=s,i.xmax>u?_(l,u,t):i.xmin<p?_(l,p,t):l}return o}function f(e,t){if(!t)return e;let i=function(e,t){let i=[],{ymin:n,ymax:s,xmin:r,xmax:o}=e,l=e.xmax-e.xmin,[a,h]=t.valid,{x:c,frameId:u}=d(e.xmin,t),{x:p,frameId:f}=d(e.xmax,t),m=c===p&&l>0;if(l>2*h){let e={xmin:r<o?c:p,ymin:n,xmax:h,ymax:s},t={xmin:a,ymin:n,xmax:r<o?p:c,ymax:s},l={xmin:0,ymin:n,xmax:h,ymax:s},m={xmin:a,ymin:n,xmax:0,ymax:s},d=[],g=[];y(e,l)&&d.push(u),y(e,m)&&g.push(u),y(t,l)&&d.push(f),y(t,m)&&g.push(f);for(let e=u+1;e<f;e++)d.push(e),g.push(e);i.push(new x(e,[u]),new x(t,[f]),new x(l,d),new x(m,g))}else c>p||m?i.push(new x({xmin:c,ymin:n,xmax:h,ymax:s},[u]),new x({xmin:a,ymin:n,xmax:p,ymax:s},[f])):i.push(new x({xmin:c,ymin:n,xmax:p,ymax:s},[u]));return i}(e,t).map(e=>e.extent);return i.length<2?i[0]||e:i.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:i.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function m(e,t,i){if(Array.isArray(e)){let n=e[0];if(n>t){let i=(0,a.kd)(n,t);e[0]=n+-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e[0]=n+-2*i*t}}else{let n=e.x;if(n>t){let i=(0,a.kd)(n,t);e.x+=-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e.x+=-2*i*t}}return e}function d(e,t){let i,[n,s]=t.valid,r=2*s,o=0;return e>s?(i=Math.ceil(Math.abs(e-s)/r),e-=i*r,o=i):e<n&&(i=Math.ceil(Math.abs(e-n)/r),e+=i*r,o=-i),{x:e,frameId:o}}function y(e,t){let{xmin:i,ymin:n,xmax:s,ymax:r}=t;return g(e,i,n)&&g(e,i,r)&&g(e,s,r)&&g(e,s,n)}function g(e,t,i){return t>=e.xmin&&t<=e.xmax&&i>=e.ymin&&i<=e.ymax}function _(e,t,i=!0){let n=!(0,l.Rg)(e);if(n&&(0,o.m3)(e),i)return(new v).cut(e,t);let s=n?e.rings:e.paths,r=n?4:2,a=s.length,h=-2*t;for(let e=0;e<a;e++){let t=s[e];if(t&&t.length>=r){let e=[];for(let[i,...n]of t)e.push([i+h,...n]);s.push(e)}}return n?e.rings=s:e.paths=s,e}class x{constructor(e,t){this.extent=e,this.frameIds=t}}const w=(0,s.vt)();class v{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let i;if(this._xCut=t,e.rings)this._closed=!0,i=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,i=e.paths,this._minPts=2}for(let e of i){if(!e||e.length<this._minPts)continue;let t=!0;for(let i of e)t?(this.moveTo(i),t=!1):this.lineTo(i);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),i=[];for(let e of this._linesIn)e&&e.length>=this._minPts&&i.push(e);let n=-2*this._xCut;for(let e of this._linesOut)if(e&&e.length>=this._minPts){for(let t of e)t[0]+=n;i.push(e)}return this._closed?e.rings=i:e.paths=i,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e,this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){let t=this._side(e[0]);if(t*this._prevSide===-1){let i=this._intersect(this._prevPt,e);this._lineTo(i,0),this._prevSide=0,this._lineTo(e,t)}else this._lineTo(e,t);this._prevSide=t,this._prevPt=e}close(){let e=this._firstPt,t=this._prevPt;(e[0]!==t[0]||e[1]!==t[1])&&this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t){this._closed?(this._lineIn.push(C(e,t<=0?e[0]:this._xCut)),this._lineOut.push(C(e,t>=0?e[0]:this._xCut))):(t<=0&&this._lineIn.push(e.slice()),t>=0&&this._lineOut.push(e.slice()))}_lineTo(e,t){this._closed?(S(this._lineIn,e,t<=0?e[0]:this._xCut),S(this._lineOut,e,t>=0?e[0]:this._xCut)):t<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(e.slice())):t>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(e.slice())):this._prevSide<0?(this._lineIn.push(e.slice()),this._lineOut.push(e.slice())):this._prevSide>0&&(this._lineOut.push(e.slice()),this._lineIn.push(e.slice()))}_checkClosingPt(e){let t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0]=e[t-2].slice(),e.pop())}_side(e){return e<this._xCut?-1:+(e>this._xCut)}_intersect(e,t){let i=(this._xCut-e[0])/(t[0]-e[0]),n=[this._xCut,e[1]+i*(t[1]-e[1])],s=Math.min(e.length,t.length);for(let r=2;r<s;r++)n.push(e[r]+i*(t[r]-e[r]));return n}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function C(e,t){let i=e.slice();return i[0]=t,i}function S(e,t,i){let n=e.length;n>1&&e[n-1][0]===i&&e[n-2][0]===i?e[n-1]=C(t,i):e.push(C(t,i))}},10292(e,t,i){i.d(t,{q:()=>l});var n=i(48526),s=i(86738),r=i(82799),o=i(99917);class l{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){let t=new l(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,o.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});let i=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),s=(0,o.project)(i,e);if(!s)return null;let r=this.coordinates.map((e,t)=>{let i=e.clone(),n=s.points[t];return i.x=n[0],i.y=n[1],i}),l=this.clone(r);return l.spatialReference=e,l}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,o.project)(t,e);if(!i)return null;let s=this.coordinates.map((e,t)=>{let n=e.clone(),s=i.points[t];return n.x=s[0],n.y=s[1],n}),r=this.clone(s);return r.spatialReference=e,r}static fromGeometry(e){let t=new l(e);if(e instanceof l)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,i)=>{let n=e.clone(t);return n.spatialReference=i,n},t;switch(e.type){case"point":{let i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?[new a(i.x,i.y,i.z,i.m)]:n?[new a(i.x,i.y,i.z)]:r?[new a(i.x,i.y,null,i.m)]:[new a(i.x,i.y)],t._exporter=(t,i)=>e.hasM?new s.A(t[0].x,t[0].y,t[0].z,t[0].m,i):new s.A(t[0].x,t[0].y,t[0].z,i),t}case"multipoint":{let i=e,{hasZ:s,hasM:r}=i;return t.coordinates=s&&r?i.points.map(e=>new a(e[0],e[1],e[2],e[3])):s?i.points.map(e=>new a(e[0],e[1],e[2])):r?i.points.map(e=>new a(e[0],e[1],null,e[2])):i.points.map(e=>new a(e[0],e[1])),t._exporter=(t,i)=>e.hasM?new n.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:i}):new n.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:i}),t}case"polyline":{let i=e,n=[],s=[],{hasZ:o,hasM:l}=e,h=0;for(let e of i.paths)if(s.push([h,h+e.length]),h+=e.length,o&&l)for(let t of e)n.push(new a(t[0],t[1],t[2],t[3]));else if(o)for(let t of e)n.push(new a(t[0],t[1],t[2]));else if(l)for(let t of e)n.push(new a(t[0],t[1],null,t[2]));else for(let t of e)n.push(new a(t[0],t[1]));return t.coordinates=n,t._exporter=(t,i)=>{let n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=s.map(e=>n.slice(e[0],e[1]));return new r.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:i})},t}}}}class a{constructor(e,t,i=null,n=null,s=null,r=null){this.x=e,this.y=t,this.z=i,this.m=n,this.tile=s,this.elevationTile=r}clone(){return new a(this.x,this.y,this.z,this.m)}}},58325(e,t,i){i.d(t,{A:()=>S});var n,s=i(32198),r=i(56507),o=i(7762),l=i(25482),a=i(84952),h=i(91429),c=i(4718),u=i(67076),p=i(87024),f=i(39829),m=i(99917),d=i(16930),y=i(21325),g=i(88546),_=i(72772),x=i(98697),w=i(43937);let v=n=class extends l.o{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,i,n){if(this._needWGS84Conversion(n))this._doWGS84Conversion(t,i,n);else if(n.layer?.spatialReference&&!n.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(e.spatialReference,n.layer.spatialReference))return void(n?.messages&&n.messages.push(new u.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:n.layer.spatialReference,context:n})));let s=new f.A;(0,m.projectPolygon)(e,s,n.layer.spatialReference),t[i]=s.toJSON(n)}else t[i]=e.toJSON(n)}_needWGS84Conversion(e){if("integrated-mesh-3dtiles"===e.layer?.type){let t=e.layer;return!t.esriCrsSpatialReference||!(0,y.aI)(t.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(e,t,i){let n=!0;if((0,_.isInitialized)()){let s=[this],r=(0,x.Ir)(null,s,d.A.WGS84);if(r.length>1){let s=(0,_.switchMeshModificationPolygonVCSSync)({modifications:r,inVCS:5773});if(s.success&&s.modifications){let r=[this.clone()];(0,x.H1)(s.modifications,r),1===r.length&&r[0].geometry&&(r[0].geometry.spatialReference=g.Zx,e[t]=r[0].geometry.toJSON(i),n=!1)}}}n&&i?.messages&&i.messages.push(new u.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:i}))}clone(){return new n({geometry:(0,c.o8)(this.geometry),type:this.type})}};var C;(0,s.Cg)([(0,h.MZ)({type:f.A}),(0,p.P)()],v.prototype,"geometry",void 0),(0,s.Cg)([(0,w.K)(["web-scene","portal-item"],"geometry")],v.prototype,"writeGeometry",null),(0,s.Cg)([(0,h.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],v.prototype,"type",void 0),v=n=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModification")],v);let S=C=class extends((0,l.T)(o.A.ofType(v))){constructor(e){super(e),this.url=null}clone(){return new C({url:this.url,items:this.items.map(e=>e.clone())})}toJSON(e){return this.toArray().map(t=>t.toJSON(e)).filter(e=>!!e.geometry)}static fromJSON(e,t){let i=new C;for(let n of e)i.add(v.fromJSON(n,t));return i}static async fromUrl(e,t,i,n=!1){let s={url:(0,a.An)(e),origin:"service"},o=await(0,r.A)(e,{responseType:"json",signal:i?.signal}),l=t.toJSON(),h=[];for(let e of o.data){let t=l;n&&e.geometry.spatialReference&&(t=e.geometry.spatialReference),h.push(v.fromJSON({...e,geometry:{spatialReference:t,...e.geometry}},s))}return new C({url:e,items:h})}};(0,s.Cg)([(0,h.MZ)({type:String})],S.prototype,"url",void 0),S=C=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModifications")],S)},85648(e,t,i){i.d(t,{n:()=>s});var n=i(84952);function s(e){return r[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){let t=(0,n.Zo)(e);return a[t]||o}(e.url)}(e)]||l}const r={},o="text/plain",l=r[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let e in a)r[a[e]]=e},80215(e,t,i){i.d(t,{Q:()=>s});const n=Symbol("GroundInstance");function s(e){return"object"==typeof e&&!!e&&n in e}},72772(e,t,i){i.r(t),i.d(t,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>c,initialize:()=>u,isInitialized:()=>p,process:()=>l,switchMeshModificationPolygonVCSSync:()=>h});var n=i(2741);function s(e){return(0,n.s)(`esri/libs/lyr3d/${e}`)}i(49186),new Map;let r,o=null;async function l(e){await u();let t={status:1,error:"",jobDescJson:"",data:new Uint8Array,missingInputs:[]};if(e.inputs.length<1)return{result:t,transferList:[]};let i={ptrs:[],sizes:[]};for(let t of e.inputs){let e=o._malloc(t.byteLength);new Uint8Array(o.HEAPU8.buffer,e,t.byteLength).set(new Uint8Array(t)),i.ptrs.push(e),i.sizes.push(t.byteLength)}let n=o.process(e.jobDescJson,e.id,i,e.isMissingResourceCase);t.status=n.status,t.missingInputs=n.missingInputs.slice();let s=0===n.status&&n.data,r=2===t.status&&t.missingInputs.length>0;t.jobDescJson=n.jobDescJson.slice(),t.error=n.error.slice(),s?t.data=n.data.slice():r&&(t.originalInputs=e.inputs.slice());for(let e=0;e<i.ptrs.length;++e)o._free(i.ptrs[e]);let l=[];if(s)l.push(t.data.buffer);else if(r)for(let t of e.inputs)l.push(t);return{result:t,transferList:l}}async function a(e){await u(),o.add_spatial_reference_info(e.sr,e.isGCS,e.toMetersXY,e.toMetersZ)}function h(e){if(!o)return{success:!1,modifications:null};let t=o._malloc(8*e.modifications.length),i=new Float64Array(o.HEAPF64.buffer,t,e.modifications.length);i.set(e.modifications);let n=o.switch_mesh_modification_polygon_vcs(t,e.modifications.length,e.inVCS),s=null;return n&&(s=i.slice()),o._free(t),{success:n,modifications:s}}function c(){o&&=(o.uninitialize_lyr3d_worker_wasm(),null)}function u(){return p()?Promise.resolve():(r||=async function(){let{default:e}=await i.e(2343).then(()=>i(2343));return async function(e,t){return t({locateFile:s})}(0,e)}().then(e=>{o=e,o.initialize_lyr3d_worker_wasm(),r=null}),r)}function p(){return null!==o}},98697(e,t,i){i.d(t,{Cm:()=>f,H1:()=>x,Ir:()=>y,_b:()=>u,sQ:()=>p});var n=i(53966),s=i(15142),r=i(51850),o=i(35982),l=i(39829),a=i(99917),h=i(27993),c=i(89056);class u{constructor(e,t,i,n,s,r){this.layout=e,this.interleavedVertexData=t,this.indices=i,this.hasColors=n,this.hasModifications=s,this.positionData=r}}class p{constructor(e,t,i,n,s,r,o,l,a){this.componentOffsets=e,this.featureIds=t,this.anchorIds=i,this.anchors=n,this.transformedGeometry=s,this.globalTrafo=r,this.obb=o,this.geometryMinElevation=l,this.geometryMaxElevation=a}}class f extends o.B{constructor(e){super("SceneLayerWorker","process",{process:e=>[e.geometryBuffer],project:e=>[e.positions.buffer],transformNormals:e=>[e.normals.buffer]},e,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(e){for(let[t,i]of this._schemasByContext)e.invoke("setLegacySchema",{context:t,jsonSchema:i}).catch(()=>{});for(let t of this._modificationsByContext.values())e.invoke("setModifications",t).catch(()=>{})}setModifications(e,t,i){let n={context:e,modifications:t,isGeodetic:i};return this._modificationsByContext.set(e,n),this.broadcast(n,"setModifications")}setLegacySchema(e,t){let i=JSON.stringify(t);return this._schemasByContext.set(e,i),this.broadcast({context:e,jsonSchema:i},"setLegacySchema")}destroyContext(e){return this._schemasByContext.delete(e),this._modificationsByContext.delete(e),this.broadcast(e,"destroyContext")}async destroyContextAndSelf(e){await this.destroyContext(e),this.destroy()}project(e,t){return this.invokeMethod("project",e,t)}transformNormals(e,t){return this.invokeMethod("transformNormals",e,t)}}const m=new s.A({deallocator:null}),d=(0,r.vt)();function y(e,t,i,s=!1){m.clear();let r=1/0,o=1/0,h=-1/0,u=-1/0,p=!1;for(let e of t){let t="clip"===e.type?2:+("mask"===e.type),f=e.geometry,d=f.spatialReference??i;if(d!==i&&!(0,a.canProjectWithoutEngine)(d,i)){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}let y=f.rings;if(d!==i){let e=g(f.rings,d,i);if(null==e){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}y=e}let x=y;if(s){let e=(0,c.jZ)(new l.A({rings:y,spatialReference:i}));null!=e&&(y=e.rings)}let w=1===x.length&&y.length>1?[...y.map(e=>[e]),x]:[y];if(w.some(e=>0===e.length||e.some(e=>e.length<3||e.some(e=>!_(e)))))n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:f});else{p||=1===t;for(let e of w){m.push(t),m.push(e.length);for(let t of e){m.push(t.length);for(let e of t){let t=e[2]??0;m.push(e[0]),m.push(e[1]),m.push(t),r=Math.min(r,e[0]),o=Math.min(o,e[1]),h=Math.max(h,e[0]),u=Math.max(u,e[1])}}}}}if(null!=e)if(p){let t=1e-4;m.push(2),m.push(2),m.push(4),m.push(r-t),m.push(o-t),m.push(0),m.push(h+t),m.push(o-t),m.push(0),m.push(h+t),m.push(u+t),m.push(0),m.push(r-t),m.push(u+t),m.push(0),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0)}else m.push(1),m.push(1),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0);m.push(3);let f=new Float64Array(m.length);for(let e=0;e<m.length;++e)f[e]=m.at(e);return f}function g(e,t,i){let n=[];for(let s of e){let e=[];for(let n of s){if(!(0,h.F)(n,t,d,i)||!_(d))return null;e.push([d[0],d[1],d[2]])}n.push(e)}return n}function _(e){return Number.isFinite(e[0])&&Number.isFinite(e[1])&&(null==e[2]||Number.isFinite(e[2]))}function x(e,t){let i=0;for(let n of t){let t=n.geometry,s=t.rings.length,r=t.rings.some(e=>e.length<3);if(0!==s&&!r){i+=1,i+=1;for(let n=0;n<t.rings.length;++n){let s=t.rings[n];i+=1;for(let r=0;r<s.length;++r){let s=[e[i+0],e[i+1],e[i+2]];i+=3,t.setPoint(n,r,s)}}}}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,9940],{80200(e,t,i){i.d(t,{d:()=>u});const n={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function r(e,t,i,n,r,o){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(n,o)),r),i)}function o(e,t,i,n,s,o,l){return r(t&i|~t&n,e,t,s,o,l)}function l(e,t,i,n,s,o,l){return r(t&n|i&~n,e,t,s,o,l)}function a(e,t,i,n,s,o,l){return r(t^i^n,e,t,s,o,l)}function h(e,t,i,n,s,o,l){return r(i^(t|~n),e,t,s,o,l)}function c(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,n=-271733879,r=-1732584194,c=271733878;for(let t=0;t<e.length;t+=16){let u=i,p=n,f=r,m=c;i=o(i,n,r,c,e[t],7,-680876936),c=o(c,i,n,r,e[t+1],12,-389564586),r=o(r,c,i,n,e[t+2],17,606105819),n=o(n,r,c,i,e[t+3],22,-1044525330),i=o(i,n,r,c,e[t+4],7,-176418897),c=o(c,i,n,r,e[t+5],12,1200080426),r=o(r,c,i,n,e[t+6],17,-1473231341),n=o(n,r,c,i,e[t+7],22,-45705983),i=o(i,n,r,c,e[t+8],7,1770035416),c=o(c,i,n,r,e[t+9],12,-1958414417),r=o(r,c,i,n,e[t+10],17,-42063),n=o(n,r,c,i,e[t+11],22,-1990404162),i=o(i,n,r,c,e[t+12],7,1804603682),c=o(c,i,n,r,e[t+13],12,-40341101),r=o(r,c,i,n,e[t+14],17,-1502002290),n=o(n,r,c,i,e[t+15],22,1236535329),i=l(i,n,r,c,e[t+1],5,-165796510),c=l(c,i,n,r,e[t+6],9,-1069501632),r=l(r,c,i,n,e[t+11],14,643717713),n=l(n,r,c,i,e[t],20,-373897302),i=l(i,n,r,c,e[t+5],5,-701558691),c=l(c,i,n,r,e[t+10],9,38016083),r=l(r,c,i,n,e[t+15],14,-660478335),n=l(n,r,c,i,e[t+4],20,-405537848),i=l(i,n,r,c,e[t+9],5,568446438),c=l(c,i,n,r,e[t+14],9,-1019803690),r=l(r,c,i,n,e[t+3],14,-187363961),n=l(n,r,c,i,e[t+8],20,1163531501),i=l(i,n,r,c,e[t+13],5,-1444681467),c=l(c,i,n,r,e[t+2],9,-51403784),r=l(r,c,i,n,e[t+7],14,1735328473),n=l(n,r,c,i,e[t+12],20,-1926607734),i=a(i,n,r,c,e[t+5],4,-378558),c=a(c,i,n,r,e[t+8],11,-2022574463),r=a(r,c,i,n,e[t+11],16,1839030562),n=a(n,r,c,i,e[t+14],23,-35309556),i=a(i,n,r,c,e[t+1],4,-1530992060),c=a(c,i,n,r,e[t+4],11,1272893353),r=a(r,c,i,n,e[t+7],16,-155497632),n=a(n,r,c,i,e[t+10],23,-1094730640),i=a(i,n,r,c,e[t+13],4,681279174),c=a(c,i,n,r,e[t],11,-358537222),r=a(r,c,i,n,e[t+3],16,-722521979),n=a(n,r,c,i,e[t+6],23,76029189),i=a(i,n,r,c,e[t+9],4,-640364487),c=a(c,i,n,r,e[t+12],11,-421815835),r=a(r,c,i,n,e[t+15],16,530742520),n=a(n,r,c,i,e[t+2],23,-995338651),i=h(i,n,r,c,e[t],6,-198630844),c=h(c,i,n,r,e[t+7],10,1126891415),r=h(r,c,i,n,e[t+14],15,-1416354905),n=h(n,r,c,i,e[t+5],21,-57434055),i=h(i,n,r,c,e[t+12],6,1700485571),c=h(c,i,n,r,e[t+3],10,-1894986606),r=h(r,c,i,n,e[t+10],15,-1051523),n=h(n,r,c,i,e[t+1],21,-2054922799),i=h(i,n,r,c,e[t+8],6,1873313359),c=h(c,i,n,r,e[t+15],10,-30611744),r=h(r,c,i,n,e[t+6],15,-1560198380),n=h(n,r,c,i,e[t+13],21,1309151649),i=h(i,n,r,c,e[t+4],6,-145523070),c=h(c,i,n,r,e[t+11],10,-1120210379),r=h(r,c,i,n,e[t+2],15,718787259),n=h(n,r,c,i,e[t+9],21,-343485551),i=s(i,u),n=s(n,p),r=s(r,f),c=s(c,m)}return[i,n,r,c]}function u(e,t=n.Hex){let i=t||n.Base64,s=c(function(e){let t=[];for(let i=0,n=8*e.length;i<n;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case n.Raw:return s;case n.Hex:return function(e){let t="0123456789abcdef",i=[];for(let n=0,s=4*e.length;n<s;n++)i.push(t.charAt(e[n>>2]>>n%4*8+4&15)+t.charAt(e[n>>2]>>n%4*8&15));return i.join("")}(s);case n.String:return function(e){let t=[];for(let i=0,n=32*e.length;i<n;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(s);case n.Base64:return function(e){let t=[];for(let i=0,n=4*e.length;i<n;i+=3){let n=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let s=0;s<4;s++)8*i+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-s)&63))}return t.join("")}(s)}}i.d(t,["T",0,n])},87024(e,t,i){i.d(t,{P:()=>f});var n=i(49186),s=i(80200),r=i(76553),o=i(84952),l=i(13069),a=i(96156),h=i(35666),c=i(10107),u=i(85648),p=i(97159);function f(e){let t=e?.origins??[void 0];return(i,n)=>{let s=function(e,t,i){if("resource"===e?.type)return function(e,t,i){let n=(0,a.z4)(t,i);return{type:String,read:(e,t,i)=>{let s=(0,p.r)(e,t,i);return n.type===String?s:"function"==typeof n.type?new n.type({url:s}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,s,l,a){if(!a?.resources)return"string"==typeof t?void(s[l]=(0,p.t)(t,a)):void(s[l]=t.write({},a));let c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),f=(0,p.t)(c,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),g=n.type!==String&&(!(0,r.H)(this)||a?.origin&&this.originIdOf(i)>(0,h.aB)(a.origin)),_={object:this,propertyName:i,value:t,targetUrl:f,dest:s,targetPropertyName:l,context:a,params:e};a?.portalItem&&f&&!(0,o.oP)(f)?g&&e?.contentAddressed?m(_):g?function(e){let{context:t,targetUrl:i,params:n,value:s,dest:r,targetPropertyName:l}=e;if(!t.portalItem)return;let a=t.portalItem.resourceFromPath(i),h=y(s,i,t),c=(0,u.n)(h),p=(0,o.Zo)(a.path),f=n?.compress??!1;c===p?(t.resources&&d({...e,resource:a,content:h,compress:f,updates:t.resources.toUpdate}),r[l]=i):m(e)}(_):function({context:e,targetUrl:t,dest:i,targetPropertyName:n}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[n]=t)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,o.w8)(f)||g)?m(_):s[l]=f}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,i,n);for(let e of t){let t=(0,c.rM)(i,e,n);for(let e in s)t[e]=s[e]}}}function m(e){let{targetUrl:t,params:i,value:r,context:a,dest:h,targetPropertyName:c}=e;if(!a.portalItem)return;let f=(0,p.p)(t),m=y(r,t,a);if(i?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));let g=i?.contentAddressed&&"json"===m.type?(0,s.d)(m.jsonString):f?.filename??(0,l.lk)(),_=i?.prefix??f?.prefix,x=(0,o.fj)(_,g),w=`${x}.${(0,u.n)(m)}`;if(i?.contentAddressed&&a.resources&&"json"===m.type){let e=a.resources.toKeep.find(({resource:e})=>e.path===w)??a.resources.toAdd.find(({resource:e})=>e.path===w);if(e)return void(h[c]=e.resource.itemRelativeUrl)}let v=a.portalItem.resourceFromPath(w);(0,o.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(t).then(e=>{v.path=`${x}.${(0,u.n)({type:"blob",blob:e})}`,h[c]=v.itemRelativeUrl}).catch(()=>{}));let C=i?.compress??!1;a.resources&&d({...e,resource:v,content:m,compress:C,updates:a.resources.toAdd}),h[c]=v.itemRelativeUrl}function d({object:e,propertyName:t,updates:i,resource:n,content:s,compress:r}){i.push({resource:n,content:s,compress:r,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function y(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},83027(e,t,i){const n=i(29953).ho;i.d(t,["h",0,n])},35982(e,t,i){i.d(t,{B:()=>c});var n=i(4576),s=i(71511),r=i(36563),o=i(53966),l=i(97768),a=i(17676),h=i(83027);class c{constructor(e,t,i,n,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(e,{...s,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{s.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(let t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){let i=new u(e,t);return this._listeners.push(i),this._connectListener(i),(0,r.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,l.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){return this._invokeMethod(e,[t],i,n)}invokeMethodWithArgs(e,t,i,n){return this._invokeMethod(e,t,i,n)}_invokeMethod(e,t,i,n){if(this._thread){let s=this._transferLists[e],r=s?s(...t):[];return this._thread.apply(e,t,{transferList:r,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,a.Te)(i),this._invokeMethod(e,t,i,n))):Promise.reject((0,a.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(p):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class u{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new s.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function p(){}},89056(e,t,i){i.d(t,{b3:()=>u,jZ:()=>c});var n=i(12195),s=i(19419),r=i(537),o=i(95108),l=i(60408),a=i(80754),h=i(21325);function c(e){return p(e,!0)}function u(e){return p(e,!1)}function p(e,t){if(null==e)return null;let i=e.spatialReference,s=(0,h.Vp)(i),o=(0,n.W)(e)?e.toJSON():e;if(!s)return o;let c=(0,h.K8)(i)?102100:4326,u=a.j7[c].maxX,p=a.j7[c].minX;if((0,l.fT)(o))return m(o,u,p);if((0,l.U9)(o))return o.points=o.points.map(e=>m(e,u,p)),o;if((0,l.ZC)(o))return f(o,s);if((0,l.Bi)(o)||(0,l.Rg)(o)){let e=(0,r.Rg)(w,o),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},n=(0,a.kd)(i.xmin,p),s=2*u*n,l=0===s?o:(0,a.kS)(o,s);return i.xmin+=s,i.xmax+=s,i.xmax>u?_(l,u,t):i.xmin<p?_(l,p,t):l}return o}function f(e,t){if(!t)return e;let i=function(e,t){let i=[],{ymin:n,ymax:s,xmin:r,xmax:o}=e,l=e.xmax-e.xmin,[a,h]=t.valid,{x:c,frameId:u}=d(e.xmin,t),{x:p,frameId:f}=d(e.xmax,t),m=c===p&&l>0;if(l>2*h){let e={xmin:r<o?c:p,ymin:n,xmax:h,ymax:s},t={xmin:a,ymin:n,xmax:r<o?p:c,ymax:s},l={xmin:0,ymin:n,xmax:h,ymax:s},m={xmin:a,ymin:n,xmax:0,ymax:s},d=[],g=[];y(e,l)&&d.push(u),y(e,m)&&g.push(u),y(t,l)&&d.push(f),y(t,m)&&g.push(f);for(let e=u+1;e<f;e++)d.push(e),g.push(e);i.push(new x(e,[u]),new x(t,[f]),new x(l,d),new x(m,g))}else c>p||m?i.push(new x({xmin:c,ymin:n,xmax:h,ymax:s},[u]),new x({xmin:a,ymin:n,xmax:p,ymax:s},[f])):i.push(new x({xmin:c,ymin:n,xmax:p,ymax:s},[u]));return i}(e,t).map(e=>e.extent);return i.length<2?i[0]||e:i.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:i.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function m(e,t,i){if(Array.isArray(e)){let n=e[0];if(n>t){let i=(0,a.kd)(n,t);e[0]=n+-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e[0]=n+-2*i*t}}else{let n=e.x;if(n>t){let i=(0,a.kd)(n,t);e.x+=-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e.x+=-2*i*t}}return e}function d(e,t){let i,[n,s]=t.valid,r=2*s,o=0;return e>s?(i=Math.ceil(Math.abs(e-s)/r),e-=i*r,o=i):e<n&&(i=Math.ceil(Math.abs(e-n)/r),e+=i*r,o=-i),{x:e,frameId:o}}function y(e,t){let{xmin:i,ymin:n,xmax:s,ymax:r}=t;return g(e,i,n)&&g(e,i,r)&&g(e,s,r)&&g(e,s,n)}function g(e,t,i){return t>=e.xmin&&t<=e.xmax&&i>=e.ymin&&i<=e.ymax}function _(e,t,i=!0){let n=!(0,l.Rg)(e);if(n&&(0,o.m3)(e),i)return(new v).cut(e,t);let s=n?e.rings:e.paths,r=n?4:2,a=s.length,h=-2*t;for(let e=0;e<a;e++){let t=s[e];if(t&&t.length>=r){let e=[];for(let[i,...n]of t)e.push([i+h,...n]);s.push(e)}}return n?e.rings=s:e.paths=s,e}class x{constructor(e,t){this.extent=e,this.frameIds=t}}const w=(0,s.vt)();class v{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let i;if(this._xCut=t,e.rings)this._closed=!0,i=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,i=e.paths,this._minPts=2}for(let e of i){if(!e||e.length<this._minPts)continue;let t=!0;for(let i of e)t?(this.moveTo(i),t=!1):this.lineTo(i);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),i=[];for(let e of this._linesIn)e&&e.length>=this._minPts&&i.push(e);let n=-2*this._xCut;for(let e of this._linesOut)if(e&&e.length>=this._minPts){for(let t of e)t[0]+=n;i.push(e)}return this._closed?e.rings=i:e.paths=i,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e,this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){let t=this._side(e[0]);if(t*this._prevSide===-1){let i=this._intersect(this._prevPt,e);this._lineTo(i,0),this._prevSide=0,this._lineTo(e,t)}else this._lineTo(e,t);this._prevSide=t,this._prevPt=e}close(){let e=this._firstPt,t=this._prevPt;(e[0]!==t[0]||e[1]!==t[1])&&this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t){this._closed?(this._lineIn.push(C(e,t<=0?e[0]:this._xCut)),this._lineOut.push(C(e,t>=0?e[0]:this._xCut))):(t<=0&&this._lineIn.push(e.slice()),t>=0&&this._lineOut.push(e.slice()))}_lineTo(e,t){this._closed?(S(this._lineIn,e,t<=0?e[0]:this._xCut),S(this._lineOut,e,t>=0?e[0]:this._xCut)):t<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(e.slice())):t>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(e.slice())):this._prevSide<0?(this._lineIn.push(e.slice()),this._lineOut.push(e.slice())):this._prevSide>0&&(this._lineOut.push(e.slice()),this._lineIn.push(e.slice()))}_checkClosingPt(e){let t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0]=e[t-2].slice(),e.pop())}_side(e){return e<this._xCut?-1:+(e>this._xCut)}_intersect(e,t){let i=(this._xCut-e[0])/(t[0]-e[0]),n=[this._xCut,e[1]+i*(t[1]-e[1])],s=Math.min(e.length,t.length);for(let r=2;r<s;r++)n.push(e[r]+i*(t[r]-e[r]));return n}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function C(e,t){let i=e.slice();return i[0]=t,i}function S(e,t,i){let n=e.length;n>1&&e[n-1][0]===i&&e[n-2][0]===i?e[n-1]=C(t,i):e.push(C(t,i))}},10292(e,t,i){i.d(t,{q:()=>l});var n=i(48526),s=i(86738),r=i(82799),o=i(99917);class l{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){let t=new l(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,o.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});let i=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),s=(0,o.project)(i,e);if(!s)return null;let r=this.coordinates.map((e,t)=>{let i=e.clone(),n=s.points[t];return i.x=n[0],i.y=n[1],i}),l=this.clone(r);return l.spatialReference=e,l}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,o.project)(t,e);if(!i)return null;let s=this.coordinates.map((e,t)=>{let n=e.clone(),s=i.points[t];return n.x=s[0],n.y=s[1],n}),r=this.clone(s);return r.spatialReference=e,r}static fromGeometry(e){let t=new l(e);if(e instanceof l)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,i)=>{let n=e.clone(t);return n.spatialReference=i,n},t;switch(e.type){case"point":{let i=e,{hasZ:n,hasM:r}=i;return t.coordinates=n&&r?[new a(i.x,i.y,i.z,i.m)]:n?[new a(i.x,i.y,i.z)]:r?[new a(i.x,i.y,null,i.m)]:[new a(i.x,i.y)],t._exporter=(t,i)=>e.hasM?new s.A({x:t[0].x,y:t[0].y,z:t[0].z,m:t[0].m,spatialReference:i}):new s.A({x:t[0].x,y:t[0].y,z:t[0].z,spatialReference:i}),t}case"multipoint":{let i=e,{hasZ:s,hasM:r}=i;return t.coordinates=s&&r?i.points.map(e=>new a(e[0],e[1],e[2],e[3])):s?i.points.map(e=>new a(e[0],e[1],e[2])):r?i.points.map(e=>new a(e[0],e[1],null,e[2])):i.points.map(e=>new a(e[0],e[1])),t._exporter=(t,i)=>e.hasM?new n.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:i}):new n.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:i}),t}case"polyline":{let i=e,n=[],s=[],{hasZ:o,hasM:l}=e,h=0;for(let e of i.paths)if(s.push([h,h+e.length]),h+=e.length,o&&l)for(let t of e)n.push(new a(t[0],t[1],t[2],t[3]));else if(o)for(let t of e)n.push(new a(t[0],t[1],t[2]));else if(l)for(let t of e)n.push(new a(t[0],t[1],null,t[2]));else for(let t of e)n.push(new a(t[0],t[1]));return t.coordinates=n,t._exporter=(t,i)=>{let n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=s.map(e=>n.slice(e[0],e[1]));return new r.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:i})},t}}}}class a{constructor(e,t,i=null,n=null,s=null,r=null){this.x=e,this.y=t,this.z=i,this.m=n,this.tile=s,this.elevationTile=r}clone(){return new a(this.x,this.y,this.z,this.m)}}},58325(e,t,i){i.d(t,{A:()=>S});var n,s=i(32198),r=i(56507),o=i(7762),l=i(25482),a=i(84952),h=i(91429),c=i(4718),u=i(67076),p=i(87024),f=i(39829),m=i(99917),d=i(16930),y=i(21325),g=i(88546),_=i(72772),x=i(98697),w=i(43937);let v=n=class extends l.o{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,i,n){if(this._needWGS84Conversion(n))this._doWGS84Conversion(t,i,n);else if(n.layer?.spatialReference&&!n.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(e.spatialReference,n.layer.spatialReference))return void(n?.messages&&n.messages.push(new u.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:n.layer.spatialReference,context:n})));let s=new f.A;(0,m.projectPolygon)(e,s,n.layer.spatialReference),t[i]=s.toJSON(n)}else t[i]=e.toJSON(n)}_needWGS84Conversion(e){if("integrated-mesh-3dtiles"===e.layer?.type){let t=e.layer;return!t.esriCrsSpatialReference||!(0,y.aI)(t.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(e,t,i){let n=!0;if((0,_.isInitialized)()){let s=[this],r=(0,x.Ir)(null,s,d.A.WGS84);if(r.length>1){let s=(0,_.switchMeshModificationPolygonVCSSync)({modifications:r,inVCS:5773});if(s.success&&s.modifications){let r=[this.clone()];(0,x.H1)(s.modifications,r),1===r.length&&r[0].geometry&&(r[0].geometry.spatialReference=g.Zx,e[t]=r[0].geometry.toJSON(i),n=!1)}}}n&&i?.messages&&i.messages.push(new u.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:i}))}clone(){return new n({geometry:(0,c.o8)(this.geometry),type:this.type})}};var C;(0,s.Cg)([(0,h.MZ)({type:f.A}),(0,p.P)()],v.prototype,"geometry",void 0),(0,s.Cg)([(0,w.K)(["web-scene","portal-item"],"geometry")],v.prototype,"writeGeometry",null),(0,s.Cg)([(0,h.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],v.prototype,"type",void 0),v=n=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModification")],v);let S=C=class extends((0,l.T)(o.A.ofType(v))){constructor(e){super(e),this.url=null}clone(){let e=new C(this.items.map(e=>e.clone()));return e.url=this.url,e}toJSON(e){return this.toArray().map(t=>t.toJSON(e)).filter(e=>!!e.geometry)}static fromJSON(e,t){let i=new C;for(let n of e)i.add(v.fromJSON(n,t));return i}static async fromUrl(e,t,i,n=!1){let s={url:(0,a.An)(e),origin:"service"},o=await(0,r.A)(e,{responseType:"json",signal:i?.signal}),l=t.toJSON(),h=[];for(let e of o.data){let t=l;n&&e.geometry.spatialReference&&(t=e.geometry.spatialReference),h.push(v.fromJSON({...e,geometry:{spatialReference:t,...e.geometry}},s))}let c=new C(h);return c.url=e,c}};(0,s.Cg)([(0,h.MZ)({type:String})],S.prototype,"url",void 0),S=C=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModifications")],S)},85648(e,t,i){i.d(t,{n:()=>s});var n=i(84952);function s(e){return r[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){let t=(0,n.Zo)(e);return a[t]||o}(e.url)}(e)]||l}const r={},o="text/plain",l=r[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let e in a)r[a[e]]=e},80215(e,t,i){i.d(t,{Q:()=>s});const n=Symbol("GroundInstance");function s(e){return"object"==typeof e&&!!e&&n in e}},72772(e,t,i){i.r(t),i.d(t,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>c,initialize:()=>u,isInitialized:()=>p,process:()=>l,switchMeshModificationPolygonVCSSync:()=>h});var n=i(2741);function s(e){return(0,n.s)(`esri/libs/lyr3d/${e}`)}i(49186),new Map;let r,o=null;async function l(e){await u();let t={status:1,error:"",jobDescJson:"",data:new Uint8Array,missingInputs:[]};if(e.inputs.length<1)return{result:t,transferList:[]};let i={ptrs:[],sizes:[]};for(let t of e.inputs){let e=o._malloc(t.byteLength);new Uint8Array(o.HEAPU8.buffer,e,t.byteLength).set(new Uint8Array(t)),i.ptrs.push(e),i.sizes.push(t.byteLength)}let n=o.process(e.jobDescJson,e.id,i,e.isMissingResourceCase);t.status=n.status,t.missingInputs=n.missingInputs.slice();let s=0===n.status&&n.data,r=2===t.status&&t.missingInputs.length>0;t.jobDescJson=n.jobDescJson.slice(),t.error=n.error.slice(),s?t.data=n.data.slice():r&&(t.originalInputs=e.inputs.slice());for(let e=0;e<i.ptrs.length;++e)o._free(i.ptrs[e]);let l=[];if(s)l.push(t.data.buffer);else if(r)for(let t of e.inputs)l.push(t);return{result:t,transferList:l}}async function a(e){await u(),o.add_spatial_reference_info(e.sr,e.isGCS,e.toMetersXY,e.toMetersZ)}function h(e){if(!o)return{success:!1,modifications:null};let t=o._malloc(8*e.modifications.length),i=new Float64Array(o.HEAPF64.buffer,t,e.modifications.length);i.set(e.modifications);let n=o.switch_mesh_modification_polygon_vcs(t,e.modifications.length,e.inVCS),s=null;return n&&(s=i.slice()),o._free(t),{success:n,modifications:s}}function c(){o&&=(o.uninitialize_lyr3d_worker_wasm(),null)}function u(){return p()?Promise.resolve():(r||=async function(){let{default:e}=await i.e(2343).then(()=>i(2343));return async function(e,t){return t({locateFile:s})}(0,e)}().then(e=>{o=e,o.initialize_lyr3d_worker_wasm(),r=null}),r)}function p(){return null!==o}},98697(e,t,i){i.d(t,{Cm:()=>f,H1:()=>x,Ir:()=>y,_b:()=>u,sQ:()=>p});var n=i(53966),s=i(15142),r=i(51850),o=i(35982),l=i(39829),a=i(99917),h=i(27993),c=i(89056);class u{constructor(e,t,i,n,s,r){this.layout=e,this.interleavedVertexData=t,this.indices=i,this.hasColors=n,this.hasModifications=s,this.positionData=r}}class p{constructor(e,t,i,n,s,r,o,l,a){this.componentOffsets=e,this.featureIds=t,this.anchorIds=i,this.anchors=n,this.transformedGeometry=s,this.globalTrafo=r,this.obb=o,this.geometryMinElevation=l,this.geometryMaxElevation=a}}class f extends o.B{constructor(e){super("SceneLayerWorker","process",{process:e=>[e.geometryBuffer],project:e=>[e.positions.buffer],transformNormals:e=>[e.normals.buffer]},e,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(e){for(let[t,i]of this._schemasByContext)e.invoke("setLegacySchema",{context:t,jsonSchema:i}).catch(()=>{});for(let t of this._modificationsByContext.values())e.invoke("setModifications",t).catch(()=>{})}setModifications(e,t,i){let n={context:e,modifications:t,isGeodetic:i};return this._modificationsByContext.set(e,n),this.broadcast(n,"setModifications")}setLegacySchema(e,t){let i=JSON.stringify(t);return this._schemasByContext.set(e,i),this.broadcast({context:e,jsonSchema:i},"setLegacySchema")}destroyContext(e){return this._schemasByContext.delete(e),this._modificationsByContext.delete(e),this.broadcast(e,"destroyContext")}async destroyContextAndSelf(e){await this.destroyContext(e),this.destroy()}project(e,t){return this.invokeMethod("project",e,t)}transformNormals(e,t){return this.invokeMethod("transformNormals",e,t)}}const m=new s.A({deallocator:null}),d=(0,r.vt)();function y(e,t,i,s=!1){m.clear();let r=1/0,o=1/0,h=-1/0,u=-1/0,p=!1;for(let e of t){let t="clip"===e.type?2:+("mask"===e.type),f=e.geometry,d=f.spatialReference??i;if(d!==i&&!(0,a.canProjectWithoutEngine)(d,i)){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}let y=f.rings;if(d!==i){let e=g(f.rings,d,i);if(null==e){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}y=e}let x=y;if(s){let e=(0,c.jZ)(new l.A({rings:y,spatialReference:i}));null!=e&&(y=e.rings)}let w=1===x.length&&y.length>1?[...y.map(e=>[e]),x]:[y];if(w.some(e=>0===e.length||e.some(e=>e.length<3||e.some(e=>!_(e)))))n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:f});else{p||=1===t;for(let e of w){m.push(t),m.push(e.length);for(let t of e){m.push(t.length);for(let e of t){let t=e[2]??0;m.push(e[0]),m.push(e[1]),m.push(t),r=Math.min(r,e[0]),o=Math.min(o,e[1]),h=Math.max(h,e[0]),u=Math.max(u,e[1])}}}}}if(null!=e)if(p){let t=1e-4;m.push(2),m.push(2),m.push(4),m.push(r-t),m.push(o-t),m.push(0),m.push(h+t),m.push(o-t),m.push(0),m.push(h+t),m.push(u+t),m.push(0),m.push(r-t),m.push(u+t),m.push(0),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0)}else m.push(1),m.push(1),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0);m.push(3);let f=new Float64Array(m.length);for(let e=0;e<m.length;++e)f[e]=m.at(e);return f}function g(e,t,i){let n=[];for(let s of e){let e=[];for(let n of s){if(!(0,h.F)(n,t,d,i)||!_(d))return null;e.push([d[0],d[1],d[2]])}n.push(e)}return n}function _(e){return Number.isFinite(e[0])&&Number.isFinite(e[1])&&(null==e[2]||Number.isFinite(e[2]))}function x(e,t){let i=0;for(let n of t){let t=n.geometry,s=t.rings.length,r=t.rings.some(e=>e.length<3);if(0!==s&&!r){i+=1,i+=1;for(let n=0;n<t.rings.length;++n){let s=t.rings[n];i+=1;for(let r=0;r<s.length;++r){let s=[e[i+0],e[i+1],e[i+2]];i+=3,t.setPoint(n,r,s)}}}}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7865],{58083(t,a,r){r.d(a,{$0:()=>p,$h:()=>O,B8:()=>l,C:()=>s,D_:()=>h,N9:()=>y,O7:()=>S,Qw:()=>u,Tl:()=>M,X_:()=>v,e$:()=>b,eL:()=>m,hM:()=>g,hZ:()=>o,hs:()=>f,kN:()=>d,l:()=>R,lw:()=>c,mg:()=>i,o1:()=>q,sC:()=>w,t2:()=>T,t5:()=>k,tZ:()=>F,ut:()=>D});var e=r(51850),n=r(34304);function s(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t}function o(t,a,r,e,n,s,o,h,i,u,l,c,M,f,b,m,d){return t[0]=a,t[1]=r,t[2]=e,t[3]=n,t[4]=s,t[5]=o,t[6]=h,t[7]=i,t[8]=u,t[9]=l,t[10]=c,t[11]=M,t[12]=f,t[13]=b,t[14]=m,t[15]=d,t}function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function i(t,a){if(t===a){let r=a[1],e=a[2],n=a[3],s=a[6],o=a[7],h=a[11];t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=r,t[6]=a[9],t[7]=a[13],t[8]=e,t[9]=s,t[11]=a[14],t[12]=n,t[13]=o,t[14]=h}else t[0]=a[0],t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=a[1],t[5]=a[5],t[6]=a[9],t[7]=a[13],t[8]=a[2],t[9]=a[6],t[10]=a[10],t[11]=a[14],t[12]=a[3],t[13]=a[7],t[14]=a[11],t[15]=a[15];return t}function u(t,a){return l(t,a)||h(t),t}function l(t,a){let r=a[0],e=a[1],n=a[2],s=a[3],o=a[4],h=a[5],i=a[6],u=a[7],l=a[8],c=a[9],M=a[10],f=a[11],b=a[12],m=a[13],d=a[14],p=a[15],g=r*h-e*o,y=r*i-n*o,x=r*u-s*o,_=e*i-n*h,w=e*u-s*h,v=n*u-s*i,R=l*m-c*b,q=l*d-M*b,S=l*p-f*b,O=c*d-M*m,k=c*p-f*m,N=M*p-f*d,T=g*N-y*k+x*O+_*S-w*q+v*R;return T?(T=1/T,t[0]=(h*N-i*k+u*O)*T,t[1]=(n*k-e*N-s*O)*T,t[2]=(m*v-d*w+p*_)*T,t[3]=(M*w-c*v-f*_)*T,t[4]=(i*S-o*N-u*q)*T,t[5]=(r*N-n*S+s*q)*T,t[6]=(d*x-b*v-p*y)*T,t[7]=(l*v-M*x+f*y)*T,t[8]=(o*k-h*S+u*R)*T,t[9]=(e*S-r*k-s*R)*T,t[10]=(b*w-m*x+p*g)*T,t[11]=(c*x-l*w-f*g)*T,t[12]=(h*q-o*O-i*R)*T,t[13]=(r*O-e*q+n*R)*T,t[14]=(m*y-b*_-d*g)*T,t[15]=(l*_-c*y+M*g)*T,t):null}function c(t,a,r){let e=a[0],n=a[1],s=a[2],o=a[3],h=a[4],i=a[5],u=a[6],l=a[7],c=a[8],M=a[9],f=a[10],b=a[11],m=a[12],d=a[13],p=a[14],g=a[15],y=r[0],x=r[1],_=r[2],w=r[3];return t[0]=y*e+x*h+_*c+w*m,t[1]=y*n+x*i+_*M+w*d,t[2]=y*s+x*u+_*f+w*p,t[3]=y*o+x*l+_*b+w*g,y=r[4],x=r[5],_=r[6],w=r[7],t[4]=y*e+x*h+_*c+w*m,t[5]=y*n+x*i+_*M+w*d,t[6]=y*s+x*u+_*f+w*p,t[7]=y*o+x*l+_*b+w*g,y=r[8],x=r[9],_=r[10],w=r[11],t[8]=y*e+x*h+_*c+w*m,t[9]=y*n+x*i+_*M+w*d,t[10]=y*s+x*u+_*f+w*p,t[11]=y*o+x*l+_*b+w*g,y=r[12],x=r[13],_=r[14],w=r[15],t[12]=y*e+x*h+_*c+w*m,t[13]=y*n+x*i+_*M+w*d,t[14]=y*s+x*u+_*f+w*p,t[15]=y*o+x*l+_*b+w*g,t}function M(t,a,r){let e=r[0],n=r[1],s=r[2];if(a===t)t[12]=a[0]*e+a[4]*n+a[8]*s+a[12],t[13]=a[1]*e+a[5]*n+a[9]*s+a[13],t[14]=a[2]*e+a[6]*n+a[10]*s+a[14],t[15]=a[3]*e+a[7]*n+a[11]*s+a[15];else{let r=a[0],o=a[1],h=a[2],i=a[3],u=a[4],l=a[5],c=a[6],M=a[7],f=a[8],b=a[9],m=a[10],d=a[11];t[0]=r,t[1]=o,t[2]=h,t[3]=i,t[4]=u,t[5]=l,t[6]=c,t[7]=M,t[8]=f,t[9]=b,t[10]=m,t[11]=d,t[12]=r*e+u*n+f*s+a[12],t[13]=o*e+l*n+b*s+a[13],t[14]=h*e+c*n+m*s+a[14],t[15]=i*e+M*n+d*s+a[15]}return t}function f(t,a,r){let e=r[0],n=r[1],s=r[2];return t[0]=a[0]*e,t[1]=a[1]*e,t[2]=a[2]*e,t[3]=a[3]*e,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*s,t[9]=a[9]*s,t[10]=a[10]*s,t[11]=a[11]*s,t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t}function b(t,a,r,e){let o=e[0],h=e[1],i=e[2],u=Math.sqrt(o*o+h*h+i*i);if(u<=(0,n.FD)())return void s(t,a);u=1/u,o*=u,h*=u,i*=u;let l=Math.sin(r),c=Math.cos(r),M=1-c,f=a[0],b=a[1],m=a[2],d=a[3],p=a[4],g=a[5],y=a[6],x=a[7],_=a[8],w=a[9],v=a[10],R=a[11],q=o*o*M+c,S=h*o*M+i*l,O=i*o*M-h*l,k=o*h*M-i*l,N=h*h*M+c,T=i*h*M+o*l,D=o*i*M+h*l,F=h*i*M-o*l,Z=i*i*M+c;t[0]=f*q+p*S+_*O,t[1]=b*q+g*S+w*O,t[2]=m*q+y*S+v*O,t[3]=d*q+x*S+R*O,t[4]=f*k+p*N+_*T,t[5]=b*k+g*N+w*T,t[6]=m*k+y*N+v*T,t[7]=d*k+x*N+R*T,t[8]=f*D+p*F+_*Z,t[9]=b*D+g*F+w*Z,t[10]=m*D+y*F+v*Z,t[11]=d*D+x*F+R*Z,a!==t&&(t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15])}function m(t,a,r){let e=Math.sin(r),n=Math.cos(r),s=a[4],o=a[5],h=a[6],i=a[7],u=a[8],l=a[9],c=a[10],M=a[11];return a!==t&&(t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[4]=s*n+u*e,t[5]=o*n+l*e,t[6]=h*n+c*e,t[7]=i*n+M*e,t[8]=u*n-s*e,t[9]=l*n-o*e,t[10]=c*n-h*e,t[11]=M*n-i*e,t}function d(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}function p(t,a,r){if(0===a)return h(t);let e=r[0],s=r[1],o=r[2],i=Math.sqrt(e*e+s*s+o*o);if(i<=(0,n.FD)())return null;i=1/i,e*=i,s*=i,o*=i;let u=Math.sin(a),l=Math.cos(a),c=1-l;return t[0]=e*e*c+l,t[1]=s*e*c+o*u,t[2]=o*e*c-s*u,t[3]=0,t[4]=e*s*c-o*u,t[5]=s*s*c+l,t[6]=o*s*c+e*u,t[7]=0,t[8]=e*o*c+s*u,t[9]=s*o*c-e*u,t[10]=o*o*c+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,a){let r=Math.sin(a),e=Math.cos(a);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,a){let r=Math.sin(a),e=Math.cos(a);return t[0]=e,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function x(t,a,r){let e=a[0],n=a[1],s=a[2],o=a[3],h=e+e,i=n+n,u=s+s,l=e*h,c=e*i,M=e*u,f=n*i,b=n*u,m=s*u,d=o*h,p=o*i,g=o*u;return t[0]=1-(f+m),t[1]=c+g,t[2]=M-p,t[3]=0,t[4]=c-g,t[5]=1-(l+m),t[6]=b+d,t[7]=0,t[8]=M+p,t[9]=b-d,t[10]=1-(l+f),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const _=(0,e.vt)();function w(t,a){return t[0]=a[12],t[1]=a[13],t[2]=a[14],t}function v(t,a){let r=a[0],e=a[1],n=a[2],s=a[4],o=a[5],h=a[6],i=a[8],u=a[9],l=a[10];return t[0]=Math.sqrt(r*r+e*e+n*n),t[1]=Math.sqrt(s*s+o*o+h*h),t[2]=Math.sqrt(i*i+u*u+l*l),t}function R(t,a){let r=a[0]+a[5]+a[10],e=0;return r>0?(e=2*Math.sqrt(r+1),t[3]=.25*e,t[0]=(a[6]-a[9])/e,t[1]=(a[8]-a[2])/e,t[2]=(a[1]-a[4])/e):a[0]>a[5]&&a[0]>a[10]?(e=2*Math.sqrt(1+a[0]-a[5]-a[10]),t[3]=(a[6]-a[9])/e,t[0]=.25*e,t[1]=(a[1]+a[4])/e,t[2]=(a[8]+a[2])/e):a[5]>a[10]?(e=2*Math.sqrt(1+a[5]-a[0]-a[10]),t[3]=(a[8]-a[2])/e,t[0]=(a[1]+a[4])/e,t[1]=.25*e,t[2]=(a[6]+a[9])/e):(e=2*Math.sqrt(1+a[10]-a[0]-a[5]),t[3]=(a[1]-a[4])/e,t[0]=(a[8]+a[2])/e,t[1]=(a[6]+a[9])/e,t[2]=.25*e),t}function q(t,a,r,e){let n=a[0],s=a[1],o=a[2],h=a[3],i=n+n,u=s+s,l=o+o,c=n*i,M=n*u,f=n*l,b=s*u,m=s*l,d=o*l,p=h*i,g=h*u,y=h*l,x=e[0],_=e[1],w=e[2];return t[0]=(1-(b+d))*x,t[1]=(M+y)*x,t[2]=(f-g)*x,t[3]=0,t[4]=(M-y)*_,t[5]=(1-(c+d))*_,t[6]=(m+p)*_,t[7]=0,t[8]=(f+g)*w,t[9]=(m-p)*w,t[10]=(1-(c+b))*w,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function S(t,a,r,e,n){let s=a[0],o=a[1],h=a[2],i=a[3],u=s+s,l=o+o,c=h+h,M=s*u,f=s*l,b=s*c,m=o*l,d=o*c,p=h*c,g=i*u,y=i*l,x=i*c,_=e[0],w=e[1],v=e[2],R=n[0],q=n[1],S=n[2],O=(1-(m+p))*_,k=(f+x)*_,N=(b-y)*_,T=(f-x)*w,D=(1-(M+p))*w,F=(d+g)*w,Z=(b+y)*v,I=(d-g)*v,P=(1-(M+m))*v;return t[0]=O,t[1]=k,t[2]=N,t[3]=0,t[4]=T,t[5]=D,t[6]=F,t[7]=0,t[8]=Z,t[9]=I,t[10]=P,t[11]=0,t[12]=r[0]+R-(O*R+T*q+Z*S),t[13]=r[1]+q-(k*R+D*q+I*S),t[14]=r[2]+S-(N*R+F*q+P*S),t[15]=1,t}function O(t,a,r,e,n,s,o){let h=1/(r-a),i=1/(n-e),u=1/(s-o);return t[0]=2*s*h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*i,t[6]=0,t[7]=0,t[8]=(r+a)*h,t[9]=(n+e)*i,t[10]=(o+s)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*u,t[15]=0,t}function k(t,a,r,e){let s=a[0],o=a[1],i=a[2],u=s-r[0],l=o-r[1],c=i-r[2],M=(0,n.FD)();if(Math.abs(u)<M&&Math.abs(l)<M&&Math.abs(c)<M)return void h(t);let f=1/Math.sqrt(u*u+l*l+c*c);u*=f,l*=f,c*=f;let b=e[0],m=e[1],d=e[2],p=m*c-d*l,g=d*u-b*c,y=b*l-m*u;f=Math.sqrt(p*p+g*g+y*y),f?(f=1/f,p*=f,g*=f,y*=f):(p=0,g=0,y=0);let x=l*y-c*g,_=c*p-u*y,w=u*g-l*p;f=Math.sqrt(x*x+_*_+w*w),f?(f=1/f,x*=f,_*=f,w*=f):(x=0,_=0,w=0),t[0]=p,t[1]=x,t[2]=u,t[3]=0,t[4]=g,t[5]=_,t[6]=l,t[7]=0,t[8]=y,t[9]=w,t[10]=c,t[11]=0,t[12]=-(p*s+g*o+y*i),t[13]=-(x*s+_*o+w*i),t[14]=-(u*s+l*o+c*i),t[15]=1}function N(t,a,r){return t[0]=a[0]-r[0],t[1]=a[1]-r[1],t[2]=a[2]-r[2],t[3]=a[3]-r[3],t[4]=a[4]-r[4],t[5]=a[5]-r[5],t[6]=a[6]-r[6],t[7]=a[7]-r[7],t[8]=a[8]-r[8],t[9]=a[9]-r[9],t[10]=a[10]-r[10],t[11]=a[11]-r[11],t[12]=a[12]-r[12],t[13]=a[13]-r[13],t[14]=a[14]-r[14],t[15]=a[15]-r[15],t}function T(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]&&t[9]===a[9]&&t[10]===a[10]&&t[11]===a[11]&&t[12]===a[12]&&t[13]===a[13]&&t[14]===a[14]&&t[15]===a[15]}function D(t){let a=(0,n.FD)(),r=t[0],e=t[1],s=t[2],o=t[4],h=t[5],i=t[6],u=t[8],l=t[9],c=t[10];return Math.abs(1-(r*r+o*o+u*u))<=a&&Math.abs(1-(e*e+h*h+l*l))<=a&&Math.abs(1-(s*s+i*i+c*c))<=a}function F(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const Z=c,I=N;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,a,r){return t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t[3]=a[3]+r[3],t[4]=a[4]+r[4],t[5]=a[5]+r[5],t[6]=a[6]+r[6],t[7]=a[7]+r[7],t[8]=a[8]+r[8],t[9]=a[9]+r[9],t[10]=a[10]+r[10],t[11]=a[11]+r[11],t[12]=a[12]+r[12],t[13]=a[13]+r[13],t[14]=a[14]+r[14],t[15]=a[15]+r[15],t},adjoint:function(t,a){let r=a[0],e=a[1],n=a[2],s=a[3],o=a[4],h=a[5],i=a[6],u=a[7],l=a[8],c=a[9],M=a[10],f=a[11],b=a[12],m=a[13],d=a[14],p=a[15];return t[0]=h*(M*p-f*d)-c*(i*p-u*d)+m*(i*f-u*M),t[1]=-(e*(M*p-f*d)-c*(n*p-s*d)+m*(n*f-s*M)),t[2]=e*(i*p-u*d)-h*(n*p-s*d)+m*(n*u-s*i),t[3]=-(e*(i*f-u*M)-h*(n*f-s*M)+c*(n*u-s*i)),t[4]=-(o*(M*p-f*d)-l*(i*p-u*d)+b*(i*f-u*M)),t[5]=r*(M*p-f*d)-l*(n*p-s*d)+b*(n*f-s*M),t[6]=-(r*(i*p-u*d)-o*(n*p-s*d)+b*(n*u-s*i)),t[7]=r*(i*f-u*M)-o*(n*f-s*M)+l*(n*u-s*i),t[8]=o*(c*p-f*m)-l*(h*p-u*m)+b*(h*f-u*c),t[9]=-(r*(c*p-f*m)-l*(e*p-s*m)+b*(e*f-s*c)),t[10]=r*(h*p-u*m)-o*(e*p-s*m)+b*(e*u-s*h),t[11]=-(r*(h*f-u*c)-o*(e*f-s*c)+l*(e*u-s*h)),t[12]=-(o*(c*d-M*m)-l*(h*d-i*m)+b*(h*M-i*c)),t[13]=r*(c*d-M*m)-l*(e*d-n*m)+b*(e*M-n*c),t[14]=-(r*(h*d-i*m)-o*(e*d-n*m)+b*(e*i-n*h)),t[15]=r*(h*M-i*c)-o*(e*M-n*c)+l*(e*i-n*h),t},copy:s,determinant:function(t){let a=t[0],r=t[1],e=t[2],n=t[3],s=t[4],o=t[5],h=t[6],i=t[7],u=t[8],l=t[9],c=t[10],M=t[11],f=t[12],b=t[13],m=t[14],d=t[15];return(a*o-r*s)*(c*d-M*m)-(a*h-e*s)*(l*d-M*b)+(a*i-n*s)*(l*m-c*b)+(r*h-e*o)*(u*d-M*f)-(r*i-n*o)*(u*m-c*f)+(e*i-n*h)*(u*b-l*f)},equals:function(t,a){if(t===a)return!0;let r=t[0],e=t[1],s=t[2],o=t[3],h=t[4],i=t[5],u=t[6],l=t[7],c=t[8],M=t[9],f=t[10],b=t[11],m=t[12],d=t[13],p=t[14],g=t[15],y=a[0],x=a[1],_=a[2],w=a[3],v=a[4],R=a[5],q=a[6],S=a[7],O=a[8],k=a[9],N=a[10],T=a[11],D=a[12],F=a[13],Z=a[14],I=a[15],P=(0,n.FD)();return Math.abs(r-y)<=P*Math.max(1,Math.abs(r),Math.abs(y))&&Math.abs(e-x)<=P*Math.max(1,Math.abs(e),Math.abs(x))&&Math.abs(s-_)<=P*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(o-w)<=P*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(h-v)<=P*Math.max(1,Math.abs(h),Math.abs(v))&&Math.abs(i-R)<=P*Math.max(1,Math.abs(i),Math.abs(R))&&Math.abs(u-q)<=P*Math.max(1,Math.abs(u),Math.abs(q))&&Math.abs(l-S)<=P*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(c-O)<=P*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(M-k)<=P*Math.max(1,Math.abs(M),Math.abs(k))&&Math.abs(f-N)<=P*Math.max(1,Math.abs(f),Math.abs(N))&&Math.abs(b-T)<=P*Math.max(1,Math.abs(b),Math.abs(T))&&Math.abs(m-D)<=P*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(d-F)<=P*Math.max(1,Math.abs(d),Math.abs(F))&&Math.abs(p-Z)<=P*Math.max(1,Math.abs(p),Math.abs(Z))&&Math.abs(g-I)<=P*Math.max(1,Math.abs(g),Math.abs(I))},exactEquals:T,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,a){let r=a[0],e=a[1],n=a[2],s=a[3],o=r+r,h=e+e,i=n+n,u=r*o,l=e*o,c=e*h,M=n*o,f=n*h,b=n*i,m=s*o,d=s*h,p=s*i;return t[0]=1-c-b,t[1]=l+p,t[2]=M-d,t[3]=0,t[4]=l-p,t[5]=1-u-b,t[6]=f+m,t[7]=0,t[8]=M+d,t[9]=f-m,t[10]=1-u-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,a){let r=_,e=-a[0],n=-a[1],s=-a[2],o=a[3],h=a[4],i=a[5],u=a[6],l=a[7],c=e*e+n*n+s*s+o*o;return c>0?(r[0]=2*(h*o+l*e+i*s-u*n)/c,r[1]=2*(i*o+l*n+u*e-h*s)/c,r[2]=2*(u*o+l*s+h*n-i*e)/c):(r[0]=2*(h*o+l*e+i*s-u*n),r[1]=2*(i*o+l*n+u*e-h*s),r[2]=2*(u*o+l*s+h*n-i*e)),x(t,a,r),t},fromRotation:p,fromRotationTranslation:x,fromRotationTranslationScale:q,fromRotationTranslationScaleOrigin:S,fromScaling:function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=a[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:g,fromYRotation:function(t,a){let r=Math.sin(a),e=Math.cos(a);return t[0]=e,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:O,getRotation:R,getScale:v,getTranslation:w,hasIdentityRotation:F,identity:h,invert:l,invertOrIdentity:u,isOrthoNormal:D,lookAt:k,mul:Z,multiply:c,multiplyScalar:function(t,a,r){return t[0]=a[0]*r,t[1]=a[1]*r,t[2]=a[2]*r,t[3]=a[3]*r,t[4]=a[4]*r,t[5]=a[5]*r,t[6]=a[6]*r,t[7]=a[7]*r,t[8]=a[8]*r,t[9]=a[9]*r,t[10]=a[10]*r,t[11]=a[11]*r,t[12]=a[12]*r,t[13]=a[13]*r,t[14]=a[14]*r,t[15]=a[15]*r,t},multiplyScalarAndAdd:function(t,a,r,e){return t[0]=a[0]+r[0]*e,t[1]=a[1]+r[1]*e,t[2]=a[2]+r[2]*e,t[3]=a[3]+r[3]*e,t[4]=a[4]+r[4]*e,t[5]=a[5]+r[5]*e,t[6]=a[6]+r[6]*e,t[7]=a[7]+r[7]*e,t[8]=a[8]+r[8]*e,t[9]=a[9]+r[9]*e,t[10]=a[10]+r[10]*e,t[11]=a[11]+r[11]*e,t[12]=a[12]+r[12]*e,t[13]=a[13]+r[13]*e,t[14]=a[14]+r[14]*e,t[15]=a[15]+r[15]*e,t},ortho:function(t,a,r,e,n,s,o){let h=1/(a-r),i=1/(e-n),u=1/(s-o);return t[0]=-2*h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(a+r)*h,t[13]=(n+e)*i,t[14]=(o+s)*u,t[15]=1,t},perspective:function(t,a,r,e,n){let s,o=1/Math.tan(a/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=n&&n!==1/0?(s=1/(e-n),t[10]=(n+e)*s,t[14]=2*n*e*s):(t[10]=-1,t[14]=-2*e),t},perspectiveFromFieldOfView:function(t,a,r,e){let n=Math.tan(a.upDegrees*Math.PI/180),s=Math.tan(a.downDegrees*Math.PI/180),o=Math.tan(a.leftDegrees*Math.PI/180),h=Math.tan(a.rightDegrees*Math.PI/180),i=2/(o+h),u=2/(n+s);return t[0]=i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-h)*i*.5,t[9]=(n-s)*u*.5,t[10]=e/(r-e),t[11]=-1,t[12]=0,t[13]=0,t[14]=e*r/(r-e),t[15]=0,t},rotate:b,rotateX:m,rotateY:function(t,a,r){let e=Math.sin(r),n=Math.cos(r),s=a[0],o=a[1],h=a[2],i=a[3],u=a[8],l=a[9],c=a[10],M=a[11];return a!==t&&(t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=s*n-u*e,t[1]=o*n-l*e,t[2]=h*n-c*e,t[3]=i*n-M*e,t[8]=s*e+u*n,t[9]=o*e+l*n,t[10]=h*e+c*n,t[11]=i*e+M*n,t},rotateZ:function(t,a,r){let e=Math.sin(r),n=Math.cos(r),s=a[0],o=a[1],h=a[2],i=a[3],u=a[4],l=a[5],c=a[6],M=a[7];return a!==t&&(t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=s*n+u*e,t[1]=o*n+l*e,t[2]=h*n+c*e,t[3]=i*n+M*e,t[4]=u*n-s*e,t[5]=l*n-o*e,t[6]=c*n-h*e,t[7]=M*n-i*e,t},scale:f,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:I,subtract:N,targetTo:function(t,a,r,e){let n=a[0],s=a[1],o=a[2],h=e[0],i=e[1],u=e[2],l=n-r[0],c=s-r[1],M=o-r[2],f=l*l+c*c+M*M;f>0&&(f=1/Math.sqrt(f),l*=f,c*=f,M*=f);let b=i*M-u*c,m=u*l-h*M,d=h*c-i*l;return f=b*b+m*m+d*d,f>0&&(f=1/Math.sqrt(f),b*=f,m*=f,d*=f),t[0]=b,t[1]=m,t[2]=d,t[3]=0,t[4]=c*d-M*m,t[5]=M*b-l*d,t[6]=l*m-c*b,t[7]=0,t[8]=l,t[9]=c,t[10]=M,t[11]=0,t[12]=n,t[13]=s,t[14]=o,t[15]=1,t},translate:M,transpose:i},Symbol.toStringTag,{value:"Module"}))},59247(t,a,r){r.d(a,{bv:()=>i,Fk:()=>u,yG:()=>l,$b:()=>c,Nd:()=>M,jm:()=>f,sK:()=>d});var e=r(40876),n=r(90629);function s(){let t=new Float32Array(16);return t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}const o=s();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){let a=new Float32Array(16);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a[9]=t[9],a[10]=t[10],a[11]=t[11],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15],a},create:s,fromValues:function(t,a,r,e,n,s,o,h,i,u,l,c,M,f,b,m){let d=new Float32Array(16);return d[0]=t,d[1]=a,d[2]=r,d[3]=e,d[4]=n,d[5]=s,d[6]=o,d[7]=h,d[8]=i,d[9]=u,d[10]=l,d[11]=c,d[12]=M,d[13]=f,d[14]=b,d[15]=m,d}},Symbol.toStringTag,{value:"Module"}));var h=r(58083);class i{constructor(t,a,r){this.strength=t,this.radius=a,this.threshold=r,this.type="bloom"}interpolate(t,a,r){this.strength=b(t.strength,a.strength,r),this.radius=b(t.radius,a.radius,r),this.threshold=b(t.threshold,a.threshold,r)}clone(){return new i(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:m(this.radius),strength:this.strength,threshold:this.threshold}}}class u{constructor(t){this.radius=t,this.type="blur"}interpolate(t,a,r){this.radius=Math.round(b(t.radius,a.radius,r))}clone(){return new u(this.radius)}toJSON(){return{type:"blur",radius:m(this.radius)}}}class l{constructor(t,a){this.type=t,this.amount=a,("invert"===this.type||"grayscale"===this.type||"sepia"===this.type)&&(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,a,r){this.amount=b(t.amount,a.amount,r),this._updateMatrix()}clone(){return new l(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){let t=this._colorMatrix||s();switch(this.type){case"brightness":this._colorMatrix=((t,a)=>{let r=(0,h.hZ)(t,a,0,0,0,0,a,0,0,0,0,a,0,0,0,0,1);return(0,h.mg)(r,r)})(t,this.amount);break;case"contrast":this._colorMatrix=((t,a)=>{let r=(0,h.hZ)(t,a,0,0,.5-.5*a,0,a,0,.5-.5*a,0,0,a,.5-.5*a,0,0,0,1);return(0,h.mg)(r,r)})(t,this.amount);break;case"grayscale":this._colorMatrix=(t=>{let a=1-this.amount,r=(0,h.hZ)(t,.2126+.7874*a,.7152-.7152*a,.0722-.0722*a,0,.2126-.2126*a,.7152+.2848*a,.0722-.0722*a,0,.2126-.2126*a,.7152-.7152*a,.0722+.9278*a,0,0,0,0,1);return(0,h.mg)(r,r)})(t);break;case"invert":this._colorMatrix=((t,a)=>{let r=1-2*a,e=a,n=(0,h.hZ)(t,r,0,0,e,0,r,0,e,0,0,r,e,0,0,0,1);return(0,h.mg)(n,n)})(t,this.amount);break;case"saturate":this._colorMatrix=(t=>{let a=this.amount,r=(0,h.hZ)(t,.213+.787*a,.715-.715*a,.072-.072*a,0,.213-.213*a,.715+.285*a,.072-.072*a,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,1);return(0,h.mg)(r,r)})(t);break;case"sepia":this._colorMatrix=(t=>{let a=1-this.amount,r=(0,h.hZ)(t,.393+.607*a,.769-.769*a,.189-.189*a,0,.349-.349*a,.686+.314*a,.168-.168*a,0,.272-.272*a,.534-.534*a,.131+.869*a,0,0,0,0,1);return(0,h.mg)(r,r)})(t)}}}class c{constructor(t,a,r,e){this.offsetX=t,this.offsetY=a,this.blurRadius=r,this.color=e,this.type="drop-shadow"}interpolate(t,a,r){this.offsetX=b(t.offsetX,a.offsetX,r),this.offsetY=b(t.offsetY,a.offsetY,r),this.blurRadius=b(t.blurRadius,a.blurRadius,r),this.color[0]=Math.round(b(t.color[0],a.color[0],r)),this.color[1]=Math.round(b(t.color[1],a.color[1],r)),this.color[2]=Math.round(b(t.color[2],a.color[2],r)),this.color[3]=b(t.color[3],a.color[3],r)}clone(){return new c(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){let t=[...this.color];return t[3]*=255,{type:"drop-shadow",xoffset:m(this.offsetX),yoffset:m(this.offsetY),blurRadius:m(this.blurRadius),color:t}}}class M{constructor(t){this.angle=t,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,a,r){this.angle=b(t.angle,a.angle,r),this._updateMatrix()}clone(){return new M(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){let t=this._colorMatrix||s();this._colorMatrix=((t,a)=>{let r=Math.sin(a*Math.PI/180),e=Math.cos(a*Math.PI/180),n=(0,h.hZ)(t,.213+.787*e-.213*r,.715-.715*e-.715*r,.072-.072*e+.928*r,0,.213-.213*e+.143*r,.715+.285*e+.14*r,.072-.072*e-.283*r,0,.213-.213*e-.787*r,.715-.715*e+.715*r,.072+.928*e+.072*r,0,0,0,0,1);return(0,h.mg)(n,n)})(t,this.angle)}}class f{constructor(t){this.amount=t,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(t,a,r){this.amount=b(t.amount,a.amount,r)}clone(){return new f(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function b(t,a,r){return t+(a-t)*r}function m(t){return Math.round(1e3*(0,n.PN)(t))/1e3}function d(t){switch(t.type){case"grayscale":case"sepia":case"invert":return new l(t.type,0);case"saturate":case"brightness":case"contrast":return new l(t.type,1);case"opacity":return new f(1);case"hue-rotate":return new M(0);case"blur":return new u(0);case"drop-shadow":return new c(0,0,0,[...(0,e.TS)("transparent")]);case"bloom":return new i(0,0,1)}}},27865(t,a,r){r.d(a,{O9:()=>s,dw:()=>o,mj:()=>n});var e=r(59247);function n(t,a){let r=t.length>a.length?t:a;return(t.length>a.length?a:t).every((t,a)=>t.type===r[a].type)}function s(t,a){let r=t.length>a.length?t:a,n=t.length>a.length?a:t;for(let t=n.length;t<r.length;t++)n.push((0,e.sK)(r[t]))}function o(t){let a=t[0];return!!a&&"type"in a}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7865],{58083(t,a,r){r.d(a,{$0:()=>p,$h:()=>O,B8:()=>l,C:()=>s,D_:()=>h,N9:()=>y,O7:()=>S,Qw:()=>u,Tl:()=>M,X_:()=>v,e$:()=>b,eL:()=>m,hM:()=>g,hZ:()=>o,hs:()=>f,kN:()=>d,l:()=>R,lw:()=>c,mg:()=>i,o1:()=>q,sC:()=>w,t2:()=>T,t5:()=>k,tZ:()=>F,ut:()=>D});var e=r(51850),n=r(34304);function s(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t}function o(t,a,r,e,n,s,o,h,i,u,l,c,M,f,b,m,d){return t[0]=a,t[1]=r,t[2]=e,t[3]=n,t[4]=s,t[5]=o,t[6]=h,t[7]=i,t[8]=u,t[9]=l,t[10]=c,t[11]=M,t[12]=f,t[13]=b,t[14]=m,t[15]=d,t}function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function i(t,a){if(t===a){let r=a[1],e=a[2],n=a[3],s=a[6],o=a[7],h=a[11];t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=r,t[6]=a[9],t[7]=a[13],t[8]=e,t[9]=s,t[11]=a[14],t[12]=n,t[13]=o,t[14]=h}else t[0]=a[0],t[1]=a[4],t[2]=a[8],t[3]=a[12],t[4]=a[1],t[5]=a[5],t[6]=a[9],t[7]=a[13],t[8]=a[2],t[9]=a[6],t[10]=a[10],t[11]=a[14],t[12]=a[3],t[13]=a[7],t[14]=a[11],t[15]=a[15];return t}function u(t,a){return l(t,a)||h(t),t}function l(t,a){let r=a[0],e=a[1],n=a[2],s=a[3],o=a[4],h=a[5],i=a[6],u=a[7],l=a[8],c=a[9],M=a[10],f=a[11],b=a[12],m=a[13],d=a[14],p=a[15],g=r*h-e*o,y=r*i-n*o,x=r*u-s*o,_=e*i-n*h,w=e*u-s*h,v=n*u-s*i,R=l*m-c*b,q=l*d-M*b,S=l*p-f*b,O=c*d-M*m,k=c*p-f*m,N=M*p-f*d,T=g*N-y*k+x*O+_*S-w*q+v*R;return T?(T=1/T,t[0]=(h*N-i*k+u*O)*T,t[1]=(n*k-e*N-s*O)*T,t[2]=(m*v-d*w+p*_)*T,t[3]=(M*w-c*v-f*_)*T,t[4]=(i*S-o*N-u*q)*T,t[5]=(r*N-n*S+s*q)*T,t[6]=(d*x-b*v-p*y)*T,t[7]=(l*v-M*x+f*y)*T,t[8]=(o*k-h*S+u*R)*T,t[9]=(e*S-r*k-s*R)*T,t[10]=(b*w-m*x+p*g)*T,t[11]=(c*x-l*w-f*g)*T,t[12]=(h*q-o*O-i*R)*T,t[13]=(r*O-e*q+n*R)*T,t[14]=(m*y-b*_-d*g)*T,t[15]=(l*_-c*y+M*g)*T,t):null}function c(t,a,r){let e=a[0],n=a[1],s=a[2],o=a[3],h=a[4],i=a[5],u=a[6],l=a[7],c=a[8],M=a[9],f=a[10],b=a[11],m=a[12],d=a[13],p=a[14],g=a[15],y=r[0],x=r[1],_=r[2],w=r[3];return t[0]=y*e+x*h+_*c+w*m,t[1]=y*n+x*i+_*M+w*d,t[2]=y*s+x*u+_*f+w*p,t[3]=y*o+x*l+_*b+w*g,y=r[4],x=r[5],_=r[6],w=r[7],t[4]=y*e+x*h+_*c+w*m,t[5]=y*n+x*i+_*M+w*d,t[6]=y*s+x*u+_*f+w*p,t[7]=y*o+x*l+_*b+w*g,y=r[8],x=r[9],_=r[10],w=r[11],t[8]=y*e+x*h+_*c+w*m,t[9]=y*n+x*i+_*M+w*d,t[10]=y*s+x*u+_*f+w*p,t[11]=y*o+x*l+_*b+w*g,y=r[12],x=r[13],_=r[14],w=r[15],t[12]=y*e+x*h+_*c+w*m,t[13]=y*n+x*i+_*M+w*d,t[14]=y*s+x*u+_*f+w*p,t[15]=y*o+x*l+_*b+w*g,t}function M(t,a,r){let e=r[0],n=r[1],s=r[2];if(a===t)t[12]=a[0]*e+a[4]*n+a[8]*s+a[12],t[13]=a[1]*e+a[5]*n+a[9]*s+a[13],t[14]=a[2]*e+a[6]*n+a[10]*s+a[14],t[15]=a[3]*e+a[7]*n+a[11]*s+a[15];else{let r=a[0],o=a[1],h=a[2],i=a[3],u=a[4],l=a[5],c=a[6],M=a[7],f=a[8],b=a[9],m=a[10],d=a[11];t[0]=r,t[1]=o,t[2]=h,t[3]=i,t[4]=u,t[5]=l,t[6]=c,t[7]=M,t[8]=f,t[9]=b,t[10]=m,t[11]=d,t[12]=r*e+u*n+f*s+a[12],t[13]=o*e+l*n+b*s+a[13],t[14]=h*e+c*n+m*s+a[14],t[15]=i*e+M*n+d*s+a[15]}return t}function f(t,a,r){let e=r[0],n=r[1],s=r[2];return t[0]=a[0]*e,t[1]=a[1]*e,t[2]=a[2]*e,t[3]=a[3]*e,t[4]=a[4]*n,t[5]=a[5]*n,t[6]=a[6]*n,t[7]=a[7]*n,t[8]=a[8]*s,t[9]=a[9]*s,t[10]=a[10]*s,t[11]=a[11]*s,t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t}function b(t,a,r,e){let o=e[0],h=e[1],i=e[2],u=Math.sqrt(o*o+h*h+i*i);if(u<=(0,n.FD)())return void s(t,a);u=1/u,o*=u,h*=u,i*=u;let l=Math.sin(r),c=Math.cos(r),M=1-c,f=a[0],b=a[1],m=a[2],d=a[3],p=a[4],g=a[5],y=a[6],x=a[7],_=a[8],w=a[9],v=a[10],R=a[11],q=o*o*M+c,S=h*o*M+i*l,O=i*o*M-h*l,k=o*h*M-i*l,N=h*h*M+c,T=i*h*M+o*l,D=o*i*M+h*l,F=h*i*M-o*l,Z=i*i*M+c;t[0]=f*q+p*S+_*O,t[1]=b*q+g*S+w*O,t[2]=m*q+y*S+v*O,t[3]=d*q+x*S+R*O,t[4]=f*k+p*N+_*T,t[5]=b*k+g*N+w*T,t[6]=m*k+y*N+v*T,t[7]=d*k+x*N+R*T,t[8]=f*D+p*F+_*Z,t[9]=b*D+g*F+w*Z,t[10]=m*D+y*F+v*Z,t[11]=d*D+x*F+R*Z,a!==t&&(t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15])}function m(t,a,r){let e=Math.sin(r),n=Math.cos(r),s=a[4],o=a[5],h=a[6],i=a[7],u=a[8],l=a[9],c=a[10],M=a[11];return a!==t&&(t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[4]=s*n+u*e,t[5]=o*n+l*e,t[6]=h*n+c*e,t[7]=i*n+M*e,t[8]=u*n-s*e,t[9]=l*n-o*e,t[10]=c*n-h*e,t[11]=M*n-i*e,t}function d(t,a){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}function p(t,a,r){if(0===a)return h(t);let e=r[0],s=r[1],o=r[2],i=Math.sqrt(e*e+s*s+o*o);if(i<=(0,n.FD)())return null;i=1/i,e*=i,s*=i,o*=i;let u=Math.sin(a),l=Math.cos(a),c=1-l;return t[0]=e*e*c+l,t[1]=s*e*c+o*u,t[2]=o*e*c-s*u,t[3]=0,t[4]=e*s*c-o*u,t[5]=s*s*c+l,t[6]=o*s*c+e*u,t[7]=0,t[8]=e*o*c+s*u,t[9]=s*o*c-e*u,t[10]=o*o*c+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,a){let r=Math.sin(a),e=Math.cos(a);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,a){let r=Math.sin(a),e=Math.cos(a);return t[0]=e,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function x(t,a,r){let e=a[0],n=a[1],s=a[2],o=a[3],h=e+e,i=n+n,u=s+s,l=e*h,c=e*i,M=e*u,f=n*i,b=n*u,m=s*u,d=o*h,p=o*i,g=o*u;return t[0]=1-(f+m),t[1]=c+g,t[2]=M-p,t[3]=0,t[4]=c-g,t[5]=1-(l+m),t[6]=b+d,t[7]=0,t[8]=M+p,t[9]=b-d,t[10]=1-(l+f),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const _=(0,e.vt)();function w(t,a){return t[0]=a[12],t[1]=a[13],t[2]=a[14],t}function v(t,a){let r=a[0],e=a[1],n=a[2],s=a[4],o=a[5],h=a[6],i=a[8],u=a[9],l=a[10];return t[0]=Math.sqrt(r*r+e*e+n*n),t[1]=Math.sqrt(s*s+o*o+h*h),t[2]=Math.sqrt(i*i+u*u+l*l),t}function R(t,a){let r=a[0]+a[5]+a[10],e=0;return r>0?(e=2*Math.sqrt(r+1),t[3]=.25*e,t[0]=(a[6]-a[9])/e,t[1]=(a[8]-a[2])/e,t[2]=(a[1]-a[4])/e):a[0]>a[5]&&a[0]>a[10]?(e=2*Math.sqrt(1+a[0]-a[5]-a[10]),t[3]=(a[6]-a[9])/e,t[0]=.25*e,t[1]=(a[1]+a[4])/e,t[2]=(a[8]+a[2])/e):a[5]>a[10]?(e=2*Math.sqrt(1+a[5]-a[0]-a[10]),t[3]=(a[8]-a[2])/e,t[0]=(a[1]+a[4])/e,t[1]=.25*e,t[2]=(a[6]+a[9])/e):(e=2*Math.sqrt(1+a[10]-a[0]-a[5]),t[3]=(a[1]-a[4])/e,t[0]=(a[8]+a[2])/e,t[1]=(a[6]+a[9])/e,t[2]=.25*e),t}function q(t,a,r,e){let n=a[0],s=a[1],o=a[2],h=a[3],i=n+n,u=s+s,l=o+o,c=n*i,M=n*u,f=n*l,b=s*u,m=s*l,d=o*l,p=h*i,g=h*u,y=h*l,x=e[0],_=e[1],w=e[2];return t[0]=(1-(b+d))*x,t[1]=(M+y)*x,t[2]=(f-g)*x,t[3]=0,t[4]=(M-y)*_,t[5]=(1-(c+d))*_,t[6]=(m+p)*_,t[7]=0,t[8]=(f+g)*w,t[9]=(m-p)*w,t[10]=(1-(c+b))*w,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function S(t,a,r,e,n){let s=a[0],o=a[1],h=a[2],i=a[3],u=s+s,l=o+o,c=h+h,M=s*u,f=s*l,b=s*c,m=o*l,d=o*c,p=h*c,g=i*u,y=i*l,x=i*c,_=e[0],w=e[1],v=e[2],R=n[0],q=n[1],S=n[2],O=(1-(m+p))*_,k=(f+x)*_,N=(b-y)*_,T=(f-x)*w,D=(1-(M+p))*w,F=(d+g)*w,Z=(b+y)*v,I=(d-g)*v,P=(1-(M+m))*v;return t[0]=O,t[1]=k,t[2]=N,t[3]=0,t[4]=T,t[5]=D,t[6]=F,t[7]=0,t[8]=Z,t[9]=I,t[10]=P,t[11]=0,t[12]=r[0]+R-(O*R+T*q+Z*S),t[13]=r[1]+q-(k*R+D*q+I*S),t[14]=r[2]+S-(N*R+F*q+P*S),t[15]=1,t}function O(t,a,r,e,n,s,o){let h=1/(r-a),i=1/(n-e),u=1/(s-o);return t[0]=2*s*h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*i,t[6]=0,t[7]=0,t[8]=(r+a)*h,t[9]=(n+e)*i,t[10]=(o+s)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*u,t[15]=0,t}function k(t,a,r,e){let s=a[0],o=a[1],i=a[2],u=s-r[0],l=o-r[1],c=i-r[2],M=(0,n.FD)();if(Math.abs(u)<M&&Math.abs(l)<M&&Math.abs(c)<M)return void h(t);let f=1/Math.sqrt(u*u+l*l+c*c);u*=f,l*=f,c*=f;let b=e[0],m=e[1],d=e[2],p=m*c-d*l,g=d*u-b*c,y=b*l-m*u;f=Math.sqrt(p*p+g*g+y*y),f?(f=1/f,p*=f,g*=f,y*=f):(p=0,g=0,y=0);let x=l*y-c*g,_=c*p-u*y,w=u*g-l*p;f=Math.sqrt(x*x+_*_+w*w),f?(f=1/f,x*=f,_*=f,w*=f):(x=0,_=0,w=0),t[0]=p,t[1]=x,t[2]=u,t[3]=0,t[4]=g,t[5]=_,t[6]=l,t[7]=0,t[8]=y,t[9]=w,t[10]=c,t[11]=0,t[12]=-(p*s+g*o+y*i),t[13]=-(x*s+_*o+w*i),t[14]=-(u*s+l*o+c*i),t[15]=1}function N(t,a,r){return t[0]=a[0]-r[0],t[1]=a[1]-r[1],t[2]=a[2]-r[2],t[3]=a[3]-r[3],t[4]=a[4]-r[4],t[5]=a[5]-r[5],t[6]=a[6]-r[6],t[7]=a[7]-r[7],t[8]=a[8]-r[8],t[9]=a[9]-r[9],t[10]=a[10]-r[10],t[11]=a[11]-r[11],t[12]=a[12]-r[12],t[13]=a[13]-r[13],t[14]=a[14]-r[14],t[15]=a[15]-r[15],t}function T(t,a){return t[0]===a[0]&&t[1]===a[1]&&t[2]===a[2]&&t[3]===a[3]&&t[4]===a[4]&&t[5]===a[5]&&t[6]===a[6]&&t[7]===a[7]&&t[8]===a[8]&&t[9]===a[9]&&t[10]===a[10]&&t[11]===a[11]&&t[12]===a[12]&&t[13]===a[13]&&t[14]===a[14]&&t[15]===a[15]}function D(t){let a=(0,n.FD)(),r=t[0],e=t[1],s=t[2],o=t[4],h=t[5],i=t[6],u=t[8],l=t[9],c=t[10];return Math.abs(1-(r*r+o*o+u*u))<=a&&Math.abs(1-(e*e+h*h+l*l))<=a&&Math.abs(1-(s*s+i*i+c*c))<=a}function F(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const Z=c,I=N;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,a,r){return t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t[3]=a[3]+r[3],t[4]=a[4]+r[4],t[5]=a[5]+r[5],t[6]=a[6]+r[6],t[7]=a[7]+r[7],t[8]=a[8]+r[8],t[9]=a[9]+r[9],t[10]=a[10]+r[10],t[11]=a[11]+r[11],t[12]=a[12]+r[12],t[13]=a[13]+r[13],t[14]=a[14]+r[14],t[15]=a[15]+r[15],t},adjoint:function(t,a){let r=a[0],e=a[1],n=a[2],s=a[3],o=a[4],h=a[5],i=a[6],u=a[7],l=a[8],c=a[9],M=a[10],f=a[11],b=a[12],m=a[13],d=a[14],p=a[15];return t[0]=h*(M*p-f*d)-c*(i*p-u*d)+m*(i*f-u*M),t[1]=-(e*(M*p-f*d)-c*(n*p-s*d)+m*(n*f-s*M)),t[2]=e*(i*p-u*d)-h*(n*p-s*d)+m*(n*u-s*i),t[3]=-(e*(i*f-u*M)-h*(n*f-s*M)+c*(n*u-s*i)),t[4]=-(o*(M*p-f*d)-l*(i*p-u*d)+b*(i*f-u*M)),t[5]=r*(M*p-f*d)-l*(n*p-s*d)+b*(n*f-s*M),t[6]=-(r*(i*p-u*d)-o*(n*p-s*d)+b*(n*u-s*i)),t[7]=r*(i*f-u*M)-o*(n*f-s*M)+l*(n*u-s*i),t[8]=o*(c*p-f*m)-l*(h*p-u*m)+b*(h*f-u*c),t[9]=-(r*(c*p-f*m)-l*(e*p-s*m)+b*(e*f-s*c)),t[10]=r*(h*p-u*m)-o*(e*p-s*m)+b*(e*u-s*h),t[11]=-(r*(h*f-u*c)-o*(e*f-s*c)+l*(e*u-s*h)),t[12]=-(o*(c*d-M*m)-l*(h*d-i*m)+b*(h*M-i*c)),t[13]=r*(c*d-M*m)-l*(e*d-n*m)+b*(e*M-n*c),t[14]=-(r*(h*d-i*m)-o*(e*d-n*m)+b*(e*i-n*h)),t[15]=r*(h*M-i*c)-o*(e*M-n*c)+l*(e*i-n*h),t},copy:s,determinant:function(t){let a=t[0],r=t[1],e=t[2],n=t[3],s=t[4],o=t[5],h=t[6],i=t[7],u=t[8],l=t[9],c=t[10],M=t[11],f=t[12],b=t[13],m=t[14],d=t[15];return(a*o-r*s)*(c*d-M*m)-(a*h-e*s)*(l*d-M*b)+(a*i-n*s)*(l*m-c*b)+(r*h-e*o)*(u*d-M*f)-(r*i-n*o)*(u*m-c*f)+(e*i-n*h)*(u*b-l*f)},equals:function(t,a){if(t===a)return!0;let r=t[0],e=t[1],s=t[2],o=t[3],h=t[4],i=t[5],u=t[6],l=t[7],c=t[8],M=t[9],f=t[10],b=t[11],m=t[12],d=t[13],p=t[14],g=t[15],y=a[0],x=a[1],_=a[2],w=a[3],v=a[4],R=a[5],q=a[6],S=a[7],O=a[8],k=a[9],N=a[10],T=a[11],D=a[12],F=a[13],Z=a[14],I=a[15],P=(0,n.FD)();return Math.abs(r-y)<=P*Math.max(1,Math.abs(r),Math.abs(y))&&Math.abs(e-x)<=P*Math.max(1,Math.abs(e),Math.abs(x))&&Math.abs(s-_)<=P*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(o-w)<=P*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(h-v)<=P*Math.max(1,Math.abs(h),Math.abs(v))&&Math.abs(i-R)<=P*Math.max(1,Math.abs(i),Math.abs(R))&&Math.abs(u-q)<=P*Math.max(1,Math.abs(u),Math.abs(q))&&Math.abs(l-S)<=P*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(c-O)<=P*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(M-k)<=P*Math.max(1,Math.abs(M),Math.abs(k))&&Math.abs(f-N)<=P*Math.max(1,Math.abs(f),Math.abs(N))&&Math.abs(b-T)<=P*Math.max(1,Math.abs(b),Math.abs(T))&&Math.abs(m-D)<=P*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(d-F)<=P*Math.max(1,Math.abs(d),Math.abs(F))&&Math.abs(p-Z)<=P*Math.max(1,Math.abs(p),Math.abs(Z))&&Math.abs(g-I)<=P*Math.max(1,Math.abs(g),Math.abs(I))},exactEquals:T,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,a){let r=a[0],e=a[1],n=a[2],s=a[3],o=r+r,h=e+e,i=n+n,u=r*o,l=e*o,c=e*h,M=n*o,f=n*h,b=n*i,m=s*o,d=s*h,p=s*i;return t[0]=1-c-b,t[1]=l+p,t[2]=M-d,t[3]=0,t[4]=l-p,t[5]=1-u-b,t[6]=f+m,t[7]=0,t[8]=M+d,t[9]=f-m,t[10]=1-u-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,a){let r=_,e=-a[0],n=-a[1],s=-a[2],o=a[3],h=a[4],i=a[5],u=a[6],l=a[7],c=e*e+n*n+s*s+o*o;return c>0?(r[0]=2*(h*o+l*e+i*s-u*n)/c,r[1]=2*(i*o+l*n+u*e-h*s)/c,r[2]=2*(u*o+l*s+h*n-i*e)/c):(r[0]=2*(h*o+l*e+i*s-u*n),r[1]=2*(i*o+l*n+u*e-h*s),r[2]=2*(u*o+l*s+h*n-i*e)),x(t,a,r),t},fromRotation:p,fromRotationTranslation:x,fromRotationTranslationScale:q,fromRotationTranslationScaleOrigin:S,fromScaling:function(t,a){return t[0]=a[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=a[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:g,fromYRotation:function(t,a){let r=Math.sin(a),e=Math.cos(a);return t[0]=e,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:O,getRotation:R,getScale:v,getTranslation:w,hasIdentityRotation:F,identity:h,invert:l,invertOrIdentity:u,isOrthoNormal:D,lookAt:k,mul:Z,multiply:c,multiplyScalar:function(t,a,r){return t[0]=a[0]*r,t[1]=a[1]*r,t[2]=a[2]*r,t[3]=a[3]*r,t[4]=a[4]*r,t[5]=a[5]*r,t[6]=a[6]*r,t[7]=a[7]*r,t[8]=a[8]*r,t[9]=a[9]*r,t[10]=a[10]*r,t[11]=a[11]*r,t[12]=a[12]*r,t[13]=a[13]*r,t[14]=a[14]*r,t[15]=a[15]*r,t},multiplyScalarAndAdd:function(t,a,r,e){return t[0]=a[0]+r[0]*e,t[1]=a[1]+r[1]*e,t[2]=a[2]+r[2]*e,t[3]=a[3]+r[3]*e,t[4]=a[4]+r[4]*e,t[5]=a[5]+r[5]*e,t[6]=a[6]+r[6]*e,t[7]=a[7]+r[7]*e,t[8]=a[8]+r[8]*e,t[9]=a[9]+r[9]*e,t[10]=a[10]+r[10]*e,t[11]=a[11]+r[11]*e,t[12]=a[12]+r[12]*e,t[13]=a[13]+r[13]*e,t[14]=a[14]+r[14]*e,t[15]=a[15]+r[15]*e,t},ortho:function(t,a,r,e,n,s,o){let h=1/(a-r),i=1/(e-n),u=1/(s-o);return t[0]=-2*h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(a+r)*h,t[13]=(n+e)*i,t[14]=(o+s)*u,t[15]=1,t},perspective:function(t,a,r,e,n){let s,o=1/Math.tan(a/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=n&&n!==1/0?(s=1/(e-n),t[10]=(n+e)*s,t[14]=2*n*e*s):(t[10]=-1,t[14]=-2*e),t},perspectiveFromFieldOfView:function(t,a,r,e){let n=Math.tan(a.upDegrees*Math.PI/180),s=Math.tan(a.downDegrees*Math.PI/180),o=Math.tan(a.leftDegrees*Math.PI/180),h=Math.tan(a.rightDegrees*Math.PI/180),i=2/(o+h),u=2/(n+s);return t[0]=i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-h)*i*.5,t[9]=(n-s)*u*.5,t[10]=e/(r-e),t[11]=-1,t[12]=0,t[13]=0,t[14]=e*r/(r-e),t[15]=0,t},rotate:b,rotateX:m,rotateY:function(t,a,r){let e=Math.sin(r),n=Math.cos(r),s=a[0],o=a[1],h=a[2],i=a[3],u=a[8],l=a[9],c=a[10],M=a[11];return a!==t&&(t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=s*n-u*e,t[1]=o*n-l*e,t[2]=h*n-c*e,t[3]=i*n-M*e,t[8]=s*e+u*n,t[9]=o*e+l*n,t[10]=h*e+c*n,t[11]=i*e+M*n,t},rotateZ:function(t,a,r){let e=Math.sin(r),n=Math.cos(r),s=a[0],o=a[1],h=a[2],i=a[3],u=a[4],l=a[5],c=a[6],M=a[7];return a!==t&&(t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15]),t[0]=s*n+u*e,t[1]=o*n+l*e,t[2]=h*n+c*e,t[3]=i*n+M*e,t[4]=u*n-s*e,t[5]=l*n-o*e,t[6]=c*n-h*e,t[7]=M*n-i*e,t},scale:f,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:I,subtract:N,targetTo:function(t,a,r,e){let n=a[0],s=a[1],o=a[2],h=e[0],i=e[1],u=e[2],l=n-r[0],c=s-r[1],M=o-r[2],f=l*l+c*c+M*M;f>0&&(f=1/Math.sqrt(f),l*=f,c*=f,M*=f);let b=i*M-u*c,m=u*l-h*M,d=h*c-i*l;return f=b*b+m*m+d*d,f>0&&(f=1/Math.sqrt(f),b*=f,m*=f,d*=f),t[0]=b,t[1]=m,t[2]=d,t[3]=0,t[4]=c*d-M*m,t[5]=M*b-l*d,t[6]=l*m-c*b,t[7]=0,t[8]=l,t[9]=c,t[10]=M,t[11]=0,t[12]=n,t[13]=s,t[14]=o,t[15]=1,t},translate:M,translateAffine:function(t,a,r){let e=r[0],n=r[1],o=r[2];return t!==a&&s(t,a),t[12]+=e,t[13]+=n,t[14]+=o,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},59247(t,a,r){r.d(a,{bv:()=>i,Fk:()=>u,yG:()=>l,$b:()=>c,Nd:()=>M,jm:()=>f,sK:()=>d});var e=r(40876),n=r(90629);function s(){let t=new Float32Array(16);return t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}const o=s();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){let a=new Float32Array(16);return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[8]=t[8],a[9]=t[9],a[10]=t[10],a[11]=t[11],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15],a},create:s,fromValues:function(t,a,r,e,n,s,o,h,i,u,l,c,M,f,b,m){let d=new Float32Array(16);return d[0]=t,d[1]=a,d[2]=r,d[3]=e,d[4]=n,d[5]=s,d[6]=o,d[7]=h,d[8]=i,d[9]=u,d[10]=l,d[11]=c,d[12]=M,d[13]=f,d[14]=b,d[15]=m,d}},Symbol.toStringTag,{value:"Module"}));var h=r(58083);class i{constructor(t,a,r){this.strength=t,this.radius=a,this.threshold=r,this.type="bloom"}interpolate(t,a,r){this.strength=b(t.strength,a.strength,r),this.radius=b(t.radius,a.radius,r),this.threshold=b(t.threshold,a.threshold,r)}clone(){return new i(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:m(this.radius),strength:this.strength,threshold:this.threshold}}}class u{constructor(t){this.radius=t,this.type="blur"}interpolate(t,a,r){this.radius=Math.round(b(t.radius,a.radius,r))}clone(){return new u(this.radius)}toJSON(){return{type:"blur",radius:m(this.radius)}}}class l{constructor(t,a){this.type=t,this.amount=a,("invert"===this.type||"grayscale"===this.type||"sepia"===this.type)&&(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,a,r){this.amount=b(t.amount,a.amount,r),this._updateMatrix()}clone(){return new l(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){let t=this._colorMatrix||s();switch(this.type){case"brightness":this._colorMatrix=((t,a)=>{let r=(0,h.hZ)(t,a,0,0,0,0,a,0,0,0,0,a,0,0,0,0,1);return(0,h.mg)(r,r)})(t,this.amount);break;case"contrast":this._colorMatrix=((t,a)=>{let r=(0,h.hZ)(t,a,0,0,.5-.5*a,0,a,0,.5-.5*a,0,0,a,.5-.5*a,0,0,0,1);return(0,h.mg)(r,r)})(t,this.amount);break;case"grayscale":this._colorMatrix=(t=>{let a=1-this.amount,r=(0,h.hZ)(t,.2126+.7874*a,.7152-.7152*a,.0722-.0722*a,0,.2126-.2126*a,.7152+.2848*a,.0722-.0722*a,0,.2126-.2126*a,.7152-.7152*a,.0722+.9278*a,0,0,0,0,1);return(0,h.mg)(r,r)})(t);break;case"invert":this._colorMatrix=((t,a)=>{let r=1-2*a,e=a,n=(0,h.hZ)(t,r,0,0,e,0,r,0,e,0,0,r,e,0,0,0,1);return(0,h.mg)(n,n)})(t,this.amount);break;case"saturate":this._colorMatrix=(t=>{let a=this.amount,r=(0,h.hZ)(t,.213+.787*a,.715-.715*a,.072-.072*a,0,.213-.213*a,.715+.285*a,.072-.072*a,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,1);return(0,h.mg)(r,r)})(t);break;case"sepia":this._colorMatrix=(t=>{let a=1-this.amount,r=(0,h.hZ)(t,.393+.607*a,.769-.769*a,.189-.189*a,0,.349-.349*a,.686+.314*a,.168-.168*a,0,.272-.272*a,.534-.534*a,.131+.869*a,0,0,0,0,1);return(0,h.mg)(r,r)})(t)}}}class c{constructor(t,a,r,e){this.offsetX=t,this.offsetY=a,this.blurRadius=r,this.color=e,this.type="drop-shadow"}interpolate(t,a,r){this.offsetX=b(t.offsetX,a.offsetX,r),this.offsetY=b(t.offsetY,a.offsetY,r),this.blurRadius=b(t.blurRadius,a.blurRadius,r),this.color[0]=Math.round(b(t.color[0],a.color[0],r)),this.color[1]=Math.round(b(t.color[1],a.color[1],r)),this.color[2]=Math.round(b(t.color[2],a.color[2],r)),this.color[3]=b(t.color[3],a.color[3],r)}clone(){return new c(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){let t=[...this.color];return t[3]*=255,{type:"drop-shadow",xoffset:m(this.offsetX),yoffset:m(this.offsetY),blurRadius:m(this.blurRadius),color:t}}}class M{constructor(t){this.angle=t,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(t,a,r){this.angle=b(t.angle,a.angle,r),this._updateMatrix()}clone(){return new M(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){let t=this._colorMatrix||s();this._colorMatrix=((t,a)=>{let r=Math.sin(a*Math.PI/180),e=Math.cos(a*Math.PI/180),n=(0,h.hZ)(t,.213+.787*e-.213*r,.715-.715*e-.715*r,.072-.072*e+.928*r,0,.213-.213*e+.143*r,.715+.285*e+.14*r,.072-.072*e-.283*r,0,.213-.213*e-.787*r,.715-.715*e+.715*r,.072+.928*e+.072*r,0,0,0,0,1);return(0,h.mg)(n,n)})(t,this.angle)}}class f{constructor(t){this.amount=t,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(t,a,r){this.amount=b(t.amount,a.amount,r)}clone(){return new f(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function b(t,a,r){return t+(a-t)*r}function m(t){return Math.round(1e3*(0,n.PN)(t))/1e3}function d(t){switch(t.type){case"grayscale":case"sepia":case"invert":return new l(t.type,0);case"saturate":case"brightness":case"contrast":return new l(t.type,1);case"opacity":return new f(1);case"hue-rotate":return new M(0);case"blur":return new u(0);case"drop-shadow":return new c(0,0,0,[...(0,e.TS)("transparent")]);case"bloom":return new i(0,0,1)}}},27865(t,a,r){r.d(a,{O9:()=>s,dw:()=>o,mj:()=>n});var e=r(59247);function n(t,a){let r=t.length>a.length?t:a;return(t.length>a.length?a:t).every((t,a)=>t.type===r[a].type)}function s(t,a){let r=t.length>a.length?t:a,n=t.length>a.length?a:t;for(let t=n.length;t<r.length;t++)n.push((0,e.sK)(r[t]))}function o(t){let a=t[0];return!!a&&"type"in a}}}]);