@arcgis/core 5.0.0-next.59 → 5.0.0-next.60
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.
- package/analysis/Analysis.d.ts +2 -3
- package/analysis/ElevationProfile/ElevationProfileLine.d.ts +1 -1
- package/analysis/ElevationProfile/ElevationProfileLineQuery.d.ts +1 -3
- package/analysis/ElevationProfile/{elevationProfileLineTypes.d.ts → types.d.ts} +2 -2
- package/analysis/ElevationProfileAnalysis.d.ts +1 -1
- package/analysis/LengthDimension.d.ts +1 -1
- package/analysis/LineOfSightAnalysisObserver.d.ts +1 -1
- package/analysis/LineOfSightAnalysisTarget.d.ts +1 -1
- package/analysis/Slice/SliceAnalysisExcludedLayer.js +5 -0
- package/analysis/Slice/types.d.ts +4 -0
- package/analysis/SliceAnalysis.d.ts +1 -4
- package/analysis/SliceAnalysis.js +1 -1
- package/analysis/Viewshed.d.ts +1 -1
- package/analysis/VolumeMeasurementAnalysis.d.ts +1 -1
- package/analysis/VolumeMeasurementAnalysis.js +1 -1
- package/analysis/types.d.ts +22 -1
- package/applications/KnowledgeStudio/generalSdkInternalAccess.d.ts +6 -0
- package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +4 -1
- package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +11 -1
- package/applications/KnowledgeStudio/layerInternalAccessUtils.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade.d.ts +27 -4
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02cd179176fee25d09a8.js +1 -0
- package/assets/esri/core/workers/chunks/0367a8580fede8f804f9.js +1 -0
- package/assets/esri/core/workers/chunks/0483a2cfdb8c7158e73a.js +1 -0
- package/assets/esri/core/workers/chunks/{73f9cbf0f919b6adc2d5.js → 05ab54b81c366e98138f.js} +1 -1
- package/assets/esri/core/workers/chunks/108a4ab28b6586e281d9.js +1 -0
- package/assets/esri/core/workers/chunks/14f4f5b7549cea7b5a6a.js +1 -0
- package/assets/esri/core/workers/chunks/1b475593c80d7bccdda5.js +1 -0
- package/assets/esri/core/workers/chunks/{de05c59da6d67716795d.js → 1c350a2c4014146dbcd9.js} +1 -1
- package/assets/esri/core/workers/chunks/{b2425f6af7df6902dfc4.js → 1e8ceed33a3657ac02b3.js} +1 -1
- package/assets/esri/core/workers/chunks/{2d61b6efa17e8c5832da.js → 21ebd234cf32ae52b3ea.js} +1 -1
- package/assets/esri/core/workers/chunks/27ec8688f72130239b98.js +1 -0
- package/assets/esri/core/workers/chunks/{087cf25ca211836a084a.js → 2a6231db5ee6cbfd59a5.js} +1 -1
- package/assets/esri/core/workers/chunks/2d8dca9a4a58469ddd05.js +1 -0
- package/assets/esri/core/workers/chunks/2e6bd743b88e83d43137.js +1 -0
- package/assets/esri/core/workers/chunks/2f6fa33692478e99d24b.js +1 -0
- package/assets/esri/core/workers/chunks/31eda00e6842005d0ec8.js +1 -0
- package/assets/esri/core/workers/chunks/{ce90e8489143228262e7.js → 33a13e80badd20ed8de2.js} +1 -1
- package/assets/esri/core/workers/chunks/{01d38a9ca9e88c38aab9.js → 34178ace79e8dea3567d.js} +1 -1
- package/assets/esri/core/workers/chunks/37a3e91791a18ed8b8da.js +1 -0
- package/assets/esri/core/workers/chunks/{47338472f5a8e004a671.js → 37e46461da3000949a26.js} +1 -1
- package/assets/esri/core/workers/chunks/{c531c0e3d420a1be0ad2.js → 3d1a5a3467f3a6585b3e.js} +1 -1
- package/assets/esri/core/workers/chunks/{be6a05d5375e80968877.js → 47e5149765beee46f208.js} +1 -1
- package/assets/esri/core/workers/chunks/{44fb1184eeed0636704a.js → 4b088260252787734c00.js} +1 -1
- package/assets/esri/core/workers/chunks/4cbe78d6a5ff617e15d6.js +1 -0
- package/assets/esri/core/workers/chunks/509065a27bd07bd32475.js +1 -0
- package/assets/esri/core/workers/chunks/{c09cba77ee60a3d765e2.js → 522a6787d9e0f520ac79.js} +1 -1
- package/assets/esri/core/workers/chunks/5686220aed9a74dbd2b1.js +1 -0
- package/assets/esri/core/workers/chunks/584c4602d97a008afb83.js +1 -0
- package/assets/esri/core/workers/chunks/{60954ab810dbbf36e5e1.js → 5a66b7f1f4da75da8e7f.js} +1 -1
- package/assets/esri/core/workers/chunks/{10094eb2b94e98dd4a8a.js → 5dc2f2e28c30386efadf.js} +1 -1
- package/assets/esri/core/workers/chunks/668a868fe2dcb6384ac9.js +1 -0
- package/assets/esri/core/workers/chunks/68cb43f2fa8cc826e99b.js +1 -0
- package/assets/esri/core/workers/chunks/68ee11589de0da7fed08.js +1 -0
- package/assets/esri/core/workers/chunks/{d42273394f575e71dd55.js → 73bee5659414b3687cfc.js} +1 -1
- package/assets/esri/core/workers/chunks/{090dad5579f0148d6486.js → 76dbaef0d0794913f36f.js} +1 -1
- package/assets/esri/core/workers/chunks/{09bd9bd37a339802907a.js → 7bf30c254228f9b7f224.js} +1 -1
- package/assets/esri/core/workers/chunks/7c5218eae13d3bd30598.js +1 -0
- package/assets/esri/core/workers/chunks/7fc09382f934e9223a9b.js +1 -0
- package/assets/esri/core/workers/chunks/{472d290f8eb1c1a85724.js → 8195310b4c53db902fc1.js} +1 -1
- package/assets/esri/core/workers/chunks/831b8282380844a7c4d5.js +1 -0
- package/assets/esri/core/workers/chunks/83c5dea24e36ac2e3497.js +1 -0
- package/assets/esri/core/workers/chunks/{49df576f0215618aa651.js → 84440efe2cc337dab81f.js} +1 -1
- package/assets/esri/core/workers/chunks/852007720e3bc29532db.js +1 -0
- package/assets/esri/core/workers/chunks/87c6470ee295d736b06d.js +1 -0
- package/assets/esri/core/workers/chunks/89853fccdf2bfcc290c0.js +1 -0
- package/assets/esri/core/workers/chunks/{1e152a34e368bd810a0f.js → 8d58e59ea13ecafdd45c.js} +1 -1
- package/assets/esri/core/workers/chunks/{a2442549c5daf3653eb4.js → 8d6641d0f7c93f83c414.js} +1 -1
- package/assets/esri/core/workers/chunks/8db723b8468e408dda46.js +1 -0
- package/assets/esri/core/workers/chunks/92a4f56232f81ca457fa.js +1 -0
- package/assets/esri/core/workers/chunks/{8a132d91077ecf849248.js → 92ef6071ea87b7f940e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{bb4aefaf9b0327dda738.js → 942c80c425b1f13cced5.js} +1 -1
- package/assets/esri/core/workers/chunks/980313a6c35e79812d17.js +1 -0
- package/assets/esri/core/workers/chunks/{e6bab7b739bfbb39f6cd.js → 988f5e003377d734d282.js} +1 -1
- package/assets/esri/core/workers/chunks/{7364fb5e99933533890d.js → 9ba8a2e1c0fb4e1efc7c.js} +1 -1
- package/assets/esri/core/workers/chunks/9c157c0eeadb824ad01e.js +1 -0
- package/assets/esri/core/workers/chunks/a39ac9127a215d14d412.js +1 -0
- package/assets/esri/core/workers/chunks/{63cf702cde83692126be.js → a6f29d1a6356e2de5a79.js} +1 -1
- package/assets/esri/core/workers/chunks/a94dd0f5839b6e2bb2d2.js +1 -0
- package/assets/esri/core/workers/chunks/ab0275669e28e7a34c38.js +1 -0
- package/assets/esri/core/workers/chunks/abc8015e13b1395b8d64.js +1 -0
- package/assets/esri/core/workers/chunks/abcee7cfd53cfe1d91e9.js +1 -0
- package/assets/esri/core/workers/chunks/acdbe0299024d58e1421.js +1 -0
- package/assets/esri/core/workers/chunks/{63c91421a71ae3b3599e.js → adff1791ae44631ad34a.js} +1 -1
- package/assets/esri/core/workers/chunks/{0eb6b9c638a5fcfe9bab.js → b4a59dd11d75df7bd510.js} +1 -1
- package/assets/esri/core/workers/chunks/{224f01b11fdba9250b1e.js → b64cfd86d9204be743c6.js} +1 -1
- package/assets/esri/core/workers/chunks/b7f2fb6684cf684b0bce.js +1 -0
- package/assets/esri/core/workers/chunks/b9f0d313f59fc7c43560.js +1 -0
- package/assets/esri/core/workers/chunks/bb5373ff7cdad7270095.js +1 -0
- package/assets/esri/core/workers/chunks/bb92a9daa0c5b019561f.js +1 -0
- package/assets/esri/core/workers/chunks/bbe2eaef7edfa33b6eea.js +1 -0
- package/assets/esri/core/workers/chunks/bddaa83fcb9fdb1e1856.js +1 -0
- package/assets/esri/core/workers/chunks/bfdf646d4c8f175a4236.js +1 -0
- package/assets/esri/core/workers/chunks/{0000781c850b1b4828b3.js → bfe052b386ec4874f350.js} +1 -1
- package/assets/esri/core/workers/chunks/{aa297e0931213341f51b.js → c3272b09bff886b08ce1.js} +1 -1
- package/assets/esri/core/workers/chunks/c38a07e936226b361b63.js +1 -0
- package/assets/esri/core/workers/chunks/{0d9904ba62558686c289.js → c743e561e7d73a100576.js} +1 -1
- package/assets/esri/core/workers/chunks/{b907d16e82ac908bb896.js → c96083838f919a8f64cd.js} +1 -1
- package/assets/esri/core/workers/chunks/{be80ed6e2955eabe912f.js → ca761dc5f45cafef313e.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a6e50d95539b46f629c.js → cad1d7e5ce89f51b3ac9.js} +1 -1
- package/assets/esri/core/workers/chunks/{dbe55d4731227d6e9571.js → ccc743e41854eb225c23.js} +1 -1
- package/assets/esri/core/workers/chunks/cf3a9ead26629f3508b3.js +1 -0
- package/assets/esri/core/workers/chunks/{3a612f873e29348370b2.js → d129a5a34e9ad09bd39e.js} +1 -1
- package/assets/esri/core/workers/chunks/{461093ce28ceadd7853d.js → d14e75b160aa432233c6.js} +1 -1
- package/assets/esri/core/workers/chunks/{e668ddc7332e5e560e78.js → d2abfcb0c8bf894c7f72.js} +1 -1
- package/assets/esri/core/workers/chunks/d749aa62ad694147aebe.js +1 -0
- package/assets/esri/core/workers/chunks/{f142c5cbdd16f1768275.js → d77f56576a49a998164a.js} +1 -1
- package/assets/esri/core/workers/chunks/{044a0ccd89741c1ae770.js → d79d29b52a65fb6bf94d.js} +1 -1
- package/assets/esri/core/workers/chunks/da7685ec2b6eaf00fd2d.js +1 -0
- package/assets/esri/core/workers/chunks/dae09fb8da0faa6dede4.js +1 -0
- package/assets/esri/core/workers/chunks/e16e88de4e93b0f48b2c.js +1 -0
- package/assets/esri/core/workers/chunks/e8bf362b2631f977b1cb.js +1 -0
- package/assets/esri/core/workers/chunks/ec5f83aa752c39a96609.js +1 -0
- package/assets/esri/core/workers/chunks/ed7e353e290b3a272457.js +1 -0
- package/assets/esri/core/workers/chunks/ef9a23d41acb5ad36426.js +1 -0
- package/assets/esri/core/workers/chunks/{33154a245eeca4ba38c6.js → f3437ae6bba846b524d3.js} +1 -1
- package/assets/esri/core/workers/chunks/{cfd2839e218610a222e5.js → f54ec21fa67db6fef5a6.js} +1 -1
- package/assets/esri/core/workers/chunks/{58242447b72cc60a5040.js → f91e63d7842c427c7f72.js} +1 -1
- package/assets/esri/core/workers/chunks/{914746077017fa50933f.js → fa0bbf0d7eadb924c473.js} +1 -1
- package/assets/esri/core/workers/chunks/fbd577f56529063ce491.js +1 -0
- package/assets/esri/core/workers/chunks/fe33b11ec3f58a0f541a.js +1 -0
- package/assets/esri/core/workers/chunks/fe5d2735f057c7789f4b.js +1 -0
- package/assets/esri/core/workers/chunks/ff7df6fb78fa2c0e9247.js +1 -0
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology.json +1 -1
- package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_en.json +1 -1
- package/chunks/bundle.js +1 -1
- package/config.js +1 -1
- package/core/memoryEstimations.js +1 -1
- package/core/promiseUtils.d.ts +1 -1
- package/core/units.d.ts +2 -0
- package/geometry/FlatGeometry.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/interfaces.d.ts +29 -31
- package/kernel.js +1 -1
- package/layers/FeatureLayer.d.ts +3 -3
- package/layers/GeoJSONLayer.d.ts +1 -1
- package/layers/ImageryTileLayer.d.ts +1 -1
- package/layers/OGCFeatureLayer.d.ts +1 -1
- package/layers/ParquetLayer.d.ts +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/SceneLayer.d.ts +1 -1
- package/layers/StreamLayer.d.ts +8 -7
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/WCSLayer.d.ts +1 -1
- package/layers/WFSLayer.d.ts +1 -1
- package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +1 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
- package/layers/graphics/FlatFeature.js +5 -0
- package/layers/graphics/FlatFeatureSet.js +5 -0
- package/layers/graphics/data/FlatFeatureStore.js +5 -0
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/flatFeatureQueryEngineAdapter.js +5 -0
- package/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +1 -1
- package/layers/mixins/ArcGISImageService.d.ts +1 -1
- package/layers/mixins/ImageryTileMixin.d.ts +1 -1
- package/layers/ogc/ogcFeatureUtils.d.ts +57 -0
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/layers/ogc/types.d.ts +73 -0
- package/layers/raster/functions/creators/createDataManagementFunctions.d.ts +1 -1
- package/layers/raster/functions/creators/createSurfaceFunctions.d.ts +1 -1
- package/layers/support/FeatureReductionBinning.d.ts +1 -1
- package/layers/support/FeatureReductionCluster.d.ts +1 -1
- package/layers/support/StreamConnection.d.ts +37 -4
- package/layers/support/Sublayer.d.ts +1 -1
- package/layers/support/TrackPartInfo.d.ts +1 -1
- package/layers/support/fieldUtils.d.ts +1 -1
- package/layers/support/parquetUtils.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +1 -1
- package/pointCloudRenderers.d.ts +1 -1
- package/portal/jsonTypes.d.ts +6 -0
- package/renderers/DictionaryRenderer.d.ts +2 -5
- package/renderers/PointCloudClassBreaksRenderer.d.ts +2 -1
- package/renderers/PointCloudRenderer.d.ts +3 -6
- package/renderers/PointCloudStretchRenderer.d.ts +2 -1
- package/renderers/PointCloudUniqueValueRenderer.d.ts +2 -1
- package/renderers/RasterShadedReliefRenderer.d.ts +2 -3
- package/renderers/RasterStretchRenderer.d.ts +1 -1
- package/renderers/Renderer.d.ts +2 -2
- package/renderers/VectorFieldRenderer.d.ts +4 -3
- package/renderers/support/AuthoringInfo.d.ts +2 -25
- package/renderers/support/AuthoringInfoVisualVariable.d.ts +2 -17
- package/renderers/support/RasterPresetRenderer.d.ts +1 -1
- package/renderers/support/RendererLegendOptions.d.ts +1 -4
- package/renderers/support/jsonUtils.d.ts +1 -1
- package/renderers/support/pointCloud/types.d.ts +10 -0
- package/renderers/support/raster/types.d.ts +54 -0
- package/renderers/support/types.d.ts +44 -0
- package/renderers/support/utils.d.ts +1 -1
- package/renderers/types.d.ts +16 -6
- package/renderers.d.ts +1 -1
- package/rest/knowledgeGraph/GraphObject.d.ts +1 -1
- package/rest/knowledgeGraph/GraphObject.js +1 -1
- package/smartMapping/labels/bins.d.ts +1 -1
- package/smartMapping/popup/clusters.d.ts +1 -1
- package/smartMapping/popup/templates.d.ts +1 -1
- package/smartMapping/raster/renderers/classBreaks.d.ts +1 -1
- package/smartMapping/raster/renderers/rgb.d.ts +1 -1
- package/smartMapping/raster/renderers/stretch.d.ts +1 -1
- package/smartMapping/raster/support/utils.d.ts +1 -1
- package/smartMapping/renderers/color.d.ts +1 -2
- package/smartMapping/renderers/pieChart.d.ts +1 -1
- package/smartMapping/renderers/predominance.d.ts +1 -1
- package/smartMapping/renderers/size.d.ts +1 -2
- package/smartMapping/renderers/support/rendererUtils.d.ts +1 -1
- package/smartMapping/renderers/univariateColorSize.d.ts +1 -1
- package/support/revision.js +1 -1
- package/unionTypes.d.ts +23 -7
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/TileContainer.js +1 -1
- package/views/2d/engine/webgl/WGLContainer.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/templateUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BloomShader.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorkerProxy.d.ts +2 -2
- package/views/2d/layers/features/FeatureStoreQueryAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ParquetSourceChunk.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/2d/layers/features/support/Tile.js +1 -1
- package/views/2d/layers/graphics/AGraphicContainer.js +1 -1
- package/views/2d/layers/graphics/GraphicContainer.js +1 -1
- package/views/2d/layers/support/DebouncedFeatureOverride.js +1 -1
- package/views/2d/layers/support/DebugOverlay.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.d.ts +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
- package/views/3d/layers/graphics/pipeline/featureSet/TiledFeatureStore.js +1 -1
- package/views/3d/layers/i3s/I3SQueryFeatureAdapter.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/BreakpointsOwner.d.ts +26 -21
- package/views/DOMContainer.d.ts +2 -1
- package/views/MapView.d.ts +3 -3
- package/views/SceneView.d.ts +3 -3
- package/views/View.d.ts +2 -2
- package/views/View2D.js +1 -1
- package/views/Viewport2DMixin.d.ts +3 -2
- package/views/analysis/ElevationProfile/ElevationProfileResult.d.ts +1 -1
- package/views/interactive/snapping/LineSnapper.js +1 -1
- package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
- package/views/interactive/snapping/RightAngleSnapper.js +1 -1
- package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/layers/BuildingSceneLayerView.d.ts +1 -1
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.d.ts +2 -2
- package/widgets/Features/FeaturesViewModel.d.ts +1 -1
- package/widgets/Home/HomeViewModel.d.ts +1 -1
- package/widgets/Locate/LocateViewModel.d.ts +2 -2
- package/widgets/Slice/SliceViewModel.d.ts +2 -1
- package/widgets/TimeSlider/TimeSliderViewModel.d.ts +1 -1
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
- package/widgets/types.d.ts +1 -1
- package/analysis/FeatureReference.d.ts +0 -19
- package/analysis/VolumeMeasurement/volumeMeasurementUtils.js +0 -5
- package/analysis/support/SliceAnalysisExcludedLayer.js +0 -5
- package/assets/esri/core/workers/chunks/00f044370bf3bb6b24d7.js +0 -1
- package/assets/esri/core/workers/chunks/0136cd1a5da204b6daeb.js +0 -1
- package/assets/esri/core/workers/chunks/097001462d93b78b64f4.js +0 -1
- package/assets/esri/core/workers/chunks/0fcb40204db8ee5571c3.js +0 -1
- package/assets/esri/core/workers/chunks/13167bdd486b41163147.js +0 -1
- package/assets/esri/core/workers/chunks/1363345f31f4f5051132.js +0 -1
- package/assets/esri/core/workers/chunks/13be94357dcf5afc4fcb.js +0 -1
- package/assets/esri/core/workers/chunks/1693f19f1c37e0a2087e.js +0 -1
- package/assets/esri/core/workers/chunks/18c4cd160a4052b05831.js +0 -1
- package/assets/esri/core/workers/chunks/18ce7b1559a45d017c45.js +0 -1
- package/assets/esri/core/workers/chunks/1dc3ab52fcde7bff0f23.js +0 -1
- package/assets/esri/core/workers/chunks/27794d48c04a5875fd22.js +0 -1
- package/assets/esri/core/workers/chunks/2a66841243975cac3e3c.js +0 -1
- package/assets/esri/core/workers/chunks/2c12848e4934e9bb2bd0.js +0 -1
- package/assets/esri/core/workers/chunks/311c4914a4f69f3c1525.js +0 -1
- package/assets/esri/core/workers/chunks/35cbc61a006351620ead.js +0 -1
- package/assets/esri/core/workers/chunks/36a04be40369111a633d.js +0 -1
- package/assets/esri/core/workers/chunks/3b5e71b156244789f624.js +0 -1
- package/assets/esri/core/workers/chunks/3dd0db77a05263000bd8.js +0 -1
- package/assets/esri/core/workers/chunks/5047acfd66539eefe353.js +0 -1
- package/assets/esri/core/workers/chunks/51fd6662245b920af652.js +0 -1
- package/assets/esri/core/workers/chunks/58419d362f24b35003c1.js +0 -1
- package/assets/esri/core/workers/chunks/58cf5b9a6aa685fc3367.js +0 -1
- package/assets/esri/core/workers/chunks/5ffeb8fb58d59bad68c3.js +0 -1
- package/assets/esri/core/workers/chunks/6d09965ab2bff9da88b6.js +0 -1
- package/assets/esri/core/workers/chunks/700122f775b98a7ed353.js +0 -1
- package/assets/esri/core/workers/chunks/7353d78feba7e6302b6e.js +0 -1
- package/assets/esri/core/workers/chunks/7737e69da604d2521da8.js +0 -1
- package/assets/esri/core/workers/chunks/7ba31425caa404f86424.js +0 -1
- package/assets/esri/core/workers/chunks/7cd0ab01933bfb2c6e43.js +0 -1
- package/assets/esri/core/workers/chunks/80c36f1786ae0be00962.js +0 -1
- package/assets/esri/core/workers/chunks/81c2cc77c275a5b555c0.js +0 -1
- package/assets/esri/core/workers/chunks/8892bf3d2367e35de001.js +0 -1
- package/assets/esri/core/workers/chunks/8d941204425571b656ec.js +0 -1
- package/assets/esri/core/workers/chunks/973bf2ed34d57f299472.js +0 -1
- package/assets/esri/core/workers/chunks/9b6e2099aabf67b9f9f2.js +0 -1
- package/assets/esri/core/workers/chunks/a6b1e3ec30f6d641aea9.js +0 -1
- package/assets/esri/core/workers/chunks/a8f7e44657083f6aa3fd.js +0 -1
- package/assets/esri/core/workers/chunks/b648a1e641cf5c772d67.js +0 -1
- package/assets/esri/core/workers/chunks/b91c13f44f4d1bac5799.js +0 -1
- package/assets/esri/core/workers/chunks/be6cc8a1485961f22372.js +0 -1
- package/assets/esri/core/workers/chunks/c91201b37d1cb3875fb4.js +0 -1
- package/assets/esri/core/workers/chunks/d22e0d733bfe821c0510.js +0 -1
- package/assets/esri/core/workers/chunks/d54988c21ea5667d00b7.js +0 -1
- package/assets/esri/core/workers/chunks/d62193323c67b379dee3.js +0 -1
- package/assets/esri/core/workers/chunks/d65ca3b8fccae8c3c3fa.js +0 -1
- package/assets/esri/core/workers/chunks/d8dc130ea559be1f68c6.js +0 -1
- package/assets/esri/core/workers/chunks/dcf6f7001f470f76bd3e.js +0 -1
- package/assets/esri/core/workers/chunks/e00d56ae5e68267fe269.js +0 -1
- package/assets/esri/core/workers/chunks/e2c7c269be93c552dc5b.js +0 -1
- package/assets/esri/core/workers/chunks/e4d593ddcbcf06010ab0.js +0 -1
- package/assets/esri/core/workers/chunks/f286f13686f003c5eec5.js +0 -1
- package/assets/esri/core/workers/chunks/fb6670a929b7333f1764.js +0 -1
- package/assets/esri/core/workers/chunks/fbdf553253cf8f22c022.js +0 -1
- package/assets/esri/core/workers/chunks/fc10c738bae304721ab2.js +0 -1
- package/assets/esri/core/workers/chunks/ff79c2cb28db7e0a1fc4.js +0 -1
- package/assets/esri/core/workers/chunks/ffdf1cbc1e54414d0f96.js +0 -1
- package/renderers/support/colorRampUtils.d.ts +0 -4
- package/renderers/support/pointCloudTypeUtils.d.ts +0 -6
- package/renderers/support/rasterRendererHelper.d.ts +0 -37
- package/renderers/support/rasterTypeUtils.d.ts +0 -9
- package/renderers/support/typeUtils.d.ts +0 -11
- /package/analysis/{dimensionUtils.d.ts → Dimension/types.d.ts} +0 -0
- /package/analysis/VolumeMeasurement/{volumeMeasurementUtils.d.ts → types.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,6061,8541,9265],{4197:(t,e,n)=>{n.d(e,{Vj:()=>c,cj:()=>h,jh:()=>s,l5:()=>u,xm:()=>o});var r=n(34275),i=n(9093);function s(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function h(t){return[...t]}function c(t){const e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,e,n,r,i,s,o,u,h,c,a,f,l,m,d,g){return[t,e,n,r,i,s,o,u,h,c,a,f,l,m,d,g]}},Symbol.toStringTag,{value:"Module"}))},22802:(t,e,n)=>{n.d(e,{O:()=>i});var r=n(15756);class i extends r.n{getOperatorType(){return 7}execute(t,e,n,i){return(0,r.r)(t,e,n,2,i)}}},69397:(t,e,n)=>{n.d(e,{$B:()=>i,Qf:()=>c,Qh:()=>u,RS:()=>s,ez:()=>l,lM:()=>o,qK:()=>f});var r=n(34275);function i(t){return 32+t.length}const s=16;function o(t){if(!t)return 0;let e=f;for(const n in t)t.hasOwnProperty(n)&&(e+=h(t[n],!1));return e}function u(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let n=l;for(let r=0;r<e;r++)n+=h(t[r]);return n}(t);let e=f;for(const n in t)t.hasOwnProperty(n)&&(e+=h(t[n]));return e}function h(t,e=!0){switch(typeof t){case"object":return e?u(t):f;case"string":return i(t);case"number":return s;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+m:Array.isArray(e)?a(e,s):0:0),0)}function a(t,e){return l+t.length*e}const f=32,l=16,m=145},70328:(t,e,n)=>{n.d(e,{BI:()=>I,DC:()=>f,Ej:()=>m,Ie:()=>x,Jt:()=>M,Ne:()=>d,RF:()=>a,aI:()=>b,fA:()=>o,gE:()=>h,hZ:()=>y,iT:()=>l,is:()=>A,qv:()=>w,vI:()=>g,vY:()=>u,v_:()=>G,vt:()=>s,w1:()=>c});var r=n(5443),i=(n(19419),n(4197));function s(t=G){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,i,o,u=s()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=i,u[5]=o,u}function u(t,e=s()){return function(t,e,n,r=s()){return y(r,w),function(t,e,n=0,r=e.length/3){let i=t[0],s=t[1],o=t[2],u=t[3],h=t[4],c=t[5];for(let t=0;t<r;t++)i=Math.min(i,e[n+3*t]),s=Math.min(s,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),u=Math.max(u,e[n+3*t]),h=Math.max(h,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=u,t[4]=h,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function h(t,e=(0,i.jh)(24)){const[n,r,s,o,u,h]=t;return e[0]=n,e[1]=r,e[2]=s,e[3]=n,e[4]=r,e[5]=h,e[6]=n,e[7]=u,e[8]=s,e[9]=n,e[10]=u,e[11]=h,e[12]=o,e[13]=r,e[14]=s,e[15]=o,e[16]=r,e[17]=h,e[18]=o,e[19]=u,e[20]=s,e[21]=o,e[22]=u,e[23]=h,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function a(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function d(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function g(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function x(t){return t?y(t,w):s(w)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function I(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function A(t){return 6===t.length}function b(t,e,n){if(null==t||null==e)return t===e;if(!A(t)||!A(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],G=[0,0,0,0,0,0];s()},76061:(t,e,n)=>{n.d(e,{G:()=>r,S:()=>i});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class i extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},85445:(t,e,n)=>{n.r(e),n.d(e,{execute:()=>o});var r=n(22802),i=n(34772);const s=new r.O;function o(t,e){const n=(0,i.fromGeometry)(t);return s.execute(n.getGeometry(),(0,i.fromGeometryToGXGeometry)(e),n.getSpatialReference(),null)}},92722:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(69397);class i{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new i(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const s=n-t,o=r-e;return new i([5],[t,e,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let i=this.coords[r*e],s=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),u=this.coords[n],h=this.coords[n+1];t+=-.5*(u-i)*(h+s),i=u,s=h}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let i=0;i<r;i++){const r=n*(e+i);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:i}=this;for(const t of n){for(let n=1;n<t;n++){const t=i*(r+n);e[t]+=e[t-i],e[t+1]+=e[t+1-i]}r+=t}return t}clone(t){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,s=this.coords.slice(0,r*n);return t?(t.set(s),new i(e,t)):new i(e,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new i(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3169,4161,4741,6061,7373,8125],{4197:(t,e,n)=>{n.d(e,{Vj:()=>a,cj:()=>c,jh:()=>o,l5:()=>u,xm:()=>i});var r=n(34275),s=n(9093);function o(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function c(t){return[...t]}function a(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:s,create:r,fromValues:function(t,e,n,r,s,o,i,u,c,a,h,l,m,f,y,g){return[t,e,n,r,s,o,i,u,c,a,h,l,m,f,y,g]}},Symbol.toStringTag,{value:"Module"}))},37817:(t,e,n)=>{n.d(e,{execute:()=>r.e}),n(4576),n(90756),n(78125);var r=n(68925)},68925:(t,e,n)=>{n.d(e,{c:()=>c,e:()=>i});var r=n(4576),s=n(90756),o=n(78125);function i(t,e){const n=(0,o.getSpatialReference)(t);return(0,s.g)((0,o.fromGeometry)(t),(0,o.fromPolyline)(e),(0,o.fromSpatialReference)(n)).map(t=>(0,o.toGeometry)(t,n)).filter(r.Ru)}const u=(0,s.f)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},69397:(t,e,n)=>{n.d(e,{$B:()=>s,Qf:()=>a,Qh:()=>u,RS:()=>o,ez:()=>m,lM:()=>i,qK:()=>l});var r=n(34275);function s(t){return 32+t.length}const o=16;function i(t){if(!t)return 0;let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=c(t[n],!1));return e}function u(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=m;for(let r=0;r<e;r++)n+=c(t[r]);return n}(t);let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=c(t[n]));return e}function c(t,e=!0){switch(typeof t){case"object":return e?u(t):l;case"string":return s(t);case"number":return o;case"boolean":return 4;default:return 8}}function a(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,o):0:0),0)}function h(t,e){return m+t.length*e}const l=32,m=16,f=145},70328:(t,e,n)=>{n.d(e,{BI:()=>x,DC:()=>l,Ej:()=>f,Ie:()=>p,Jt:()=>_,Ne:()=>y,RF:()=>h,aI:()=>G,fA:()=>i,gE:()=>c,hZ:()=>d,iT:()=>m,is:()=>C,qv:()=>v,vI:()=>g,vY:()=>u,v_:()=>M,vt:()=>o,w1:()=>a});var r=n(5443),s=(n(19419),n(4197));function o(t=M){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,n,r,s,i,u=o()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=s,u[5]=i,u}function u(t,e=o()){return function(t,e,n,r=o()){return d(r,v),function(t,e,n=0,r=e.length/3){let s=t[0],o=t[1],i=t[2],u=t[3],c=t[4],a=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),i=Math.min(i,e[n+3*t+2]),u=Math.max(u,e[n+3*t]),c=Math.max(c,e[n+3*t+1]),a=Math.max(a,e[n+3*t+2]);t[0]=s,t[1]=o,t[2]=i,t[3]=u,t[4]=c,t[5]=a}(r,t,e,n),r}(t,0,t.length/3,e)}function c(t,e=(0,s.jh)(24)){const[n,r,o,i,u,c]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=c,e[6]=n,e[7]=u,e[8]=o,e[9]=n,e[10]=u,e[11]=c,e[12]=i,e[13]=r,e[14]=o,e[15]=i,e[16]=r,e[17]=c,e[18]=i,e[19]=u,e[20]=o,e[21]=i,e[22]=u,e[23]=c,e}function a(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function y(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function g(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,v):o(v)}function _(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function x(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function C(t){return 6===t.length}function G(t,e,n){if(null==t||null==e)return t===e;if(!C(t)||!C(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];o()},76061:(t,e,n)=>{n.d(e,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class s extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,n)=>{n.r(e),n.d(e,{fromExtent:()=>_,fromGeometry:()=>p,fromMultipoint:()=>x,fromPoint:()=>C,fromPolygon:()=>G,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>w,getSpatialReference:()=>d,toExtent:()=>P,toGeometry:()=>E,toMultipoint:()=>I,toPoint:()=>V,toPolygon:()=>A,toPolyline:()=>b});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),i=n(88885),u=n(5443),c=n(48526),a=n(86738),h=n(39829),l=n(82799),m=(n(90293),n(34772));const f="_gxVersion",y=2,g=1;function d(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return C(t);case"multipoint":return x(t);case"polyline":return v(t);case"polygon":return G(t);case"extent":return _(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function _(t){if(!t.getCacheValue(f)){const e=new o.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(y,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(g,0,t.zmin,t.zmax),t.setCacheValue(f,e)}return t.getCacheValue(f)}function x(t){if(!t.getCacheValue(f)){const e=new i.M,n=new o.P,r=t.points,s=t.hasM,u=t.hasZ,c=u?3:2;for(let t=0,o=r.length;t<o;t++){const o=r[t];n.setXYCoords(o[0],o[1]),u&&n.setZ(o[2]??0),s&&n.setM(o[c]??NaN),e.add(n)}t.setCacheValue(f,e)}return t.getCacheValue(f)}function C(t){if(!t.getCacheValue(f)){const e=new o.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(f,e)}return t.getCacheValue(f)}function G(t){if(!t.getCacheValue(f)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,o=(0,m.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(f,o)}return t.getCacheValue(f)}function v(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,o=(0,m.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,o)}return t.getCacheValue(f)}function M(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,o=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,o)}return t.getCacheValue(f)}function w(t){return(0,m.fromSpatialReference)(t)}function E(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return V(t,e);case s.G.enumEnvelope:return P(t,e);case s.G.enumMultiPoint:return I(t,e);case s.G.enumPolyline:return b(t,e);case s.G.enumPolygon:return A(t,e)}return null}function P(t,e){if(t.isEmpty())return null;const n=new u.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(y,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(g,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(f,t),n}function I(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],u=new o.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,u);const n=[u.getX(),u.getY()];s&&n.push(u.getZ()),r&&n.push(u.getM()),i.push(n)}const a=new c.A({hasM:r,hasZ:s,points:i,spatialReference:e});return a.setCacheValue(f,t),a}function V(t,e){if(t instanceof r.P)return new a.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new a.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(f,t),n}function A(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}function b(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}},90756:(t,e,n)=>{n.d(e,{g:()=>m,f:()=>f});var r=n(76061),s=n(55537),o=n(88885),i=n(95213),u=n(15756),c=u.C;function a(t,e){return{m_geometry:t,m_side:e}}class h extends r.G{constructor(t,e,n,r,s){super(),this.m_cutIndex=-1,this.m_cuts=[],this.m_progressTracker=s,this.m_cuttee=e.clone(),this.m_cutter=new o.P({copy:n}),this.m_bConsiderTouch=t;const u=(0,i.g)(e,n);this.m_tolerance=(0,i.c)(r,u,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return this.m_cutIndex}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case s.G.enumPolyline:this.generatePolylineCuts();break;case s.G.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const t=new o.P,e=new o.P,n=new o.P;this.m_cuts.length=0,this.m_cuts.push(t),this.m_cuts.push(e);const r=[];!function(t,e,n,r,s,i){if(e.isEmpty()){const t=a(e,0);return void s.push(t)}if(n.isEmpty()){const t=a(e,0);return void s.push(t)}const h=[],l=new o.E;{const o=l.createGeometryUserIndex(),m=l.addGeometry(e),f=l.addGeometry(n),y=new u.T(i);let g=0,d=null;if(l.hasCurves()){d=new c;const t=l.getEnvelope2D(i);g=(0,u.u)(r.total());const e=(0,u.v)(r.total(),t);(0,u.w)(l,e,r.total(),12e3,d,null,i)}l.dbgVerifyCurves(),y.setEditShapeCrackAndCluster(l,r),y.cut(t,o,m,f,h);for(const t of h){null!==d&&d.stitchCurves(l,t,g,!1);const e=a(l.getGeometry(t),(0,u.x)(l.getGeometryUserIndex(t,o)));s.push(e)}null!==d&&d.clearStitcher(l)}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?t.add(i.m_geometry,!1):2===i.m_side||4===i.m_side?e.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}n.isEmpty()||t.isEmpty()&&e.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),t.isEmpty()&&e.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const t=new o.a,e=new o.a,n=new o.a;this.m_cuts.length=0,this.m_cuts.push(t),this.m_cuts.push(e);const r=[];!function(t,e,n,r,s,i){if(e.isEmpty()){const t=a(e,0);return void s.push(t)}if(n.isEmpty()){const t=a(e,0);return void s.push(t)}const h=[],l=new o.E;{const t=l.createGeometryUserIndex(),m=l.addGeometry(e),f=l.addGeometry(n),y=new u.T(i);let g=0,d=null;if(l.hasCurves()){d=new c;const t=l.getEnvelope2D(i);g=(0,u.u)(r.total());const e=(0,u.v)(r.total(),t);(0,u.w)(l,e,r.total(),12e3,d,null,i)}l.dbgVerifyCurves(),y.setEditShapeCrackAndCluster(l,r),y.cut(!1,t,m,f,h),null!==d&&d.stitchCurves(l,o.n,g,!0);let p=l.getGeometry(m);const _=new o.a,x=new o.a,C=[];for(let e=0;e<h.length;e++){let n=null;{const s=new o.E,c=s.addGeometry(p),a=s.addGeometry(l.getGeometry(h[e]));if(s.hasCurves()){const t=s.getEnvelope2D(i);g=(0,u.u)(r.total());const e=(0,u.v)(r.total(),t);(0,u.w)(s,e,r.total(),12e3,d,null,i)}y.setEditShapeCrackAndCluster(s,r);const m=y.intersection(c,a);if(null!==d&&d.stitchCurves(s,o.n,g,!0),n=s.getGeometry(m),n.isEmpty())continue;const f=l.getGeometryUserIndex(h[e],t);2===f?_.add(n,!1):1===f?x.add(n,!1):C.push(n)}{const t=new o.E,n=t.addGeometry(p),s=t.addGeometry(l.getGeometry(h[e]));if(t.hasCurves()){const e=t.getEnvelope2D(i);g=(0,u.u)(r.total());const n=(0,u.v)(r.total(),e);(0,u.w)(t,n,r.total(),12e3,d,null,i)}y.setEditShapeCrackAndCluster(t,r);const c=y.difference(n,s);null!==d&&d.stitchCurves(t,o.n,g,!0),p=t.getGeometry(c)}}if(!p.isEmpty()&&h.length>0&&C.push(p),_.isEmpty()&&x.isEmpty())return;if(!_.isEmpty()){const t=a(_,1);s.push(t)}if(!x.isEmpty()){const t=a(x,2);s.push(t)}for(let t=0,e=C.length;t<e;++t){const e=a(C[t],3);s.push(e)}}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?t.add(i.m_geometry,!1):2===i.m_side?e.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}(0,s.g)(n.isEmpty()||1===r.length),t.isEmpty()&&e.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const l=new class{getOperatorType(){return 10005}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}execute(t,e,n,r,s){return new h(t,e,n,r,s)}};function m(t,e,n){const r=l.execute(!0,t,e,n,null);return Array.from(r)}function f(){return l.supportsCurves()}},92722:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const o=n-t,i=r-e;return new s([5],[t,e,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],o=this.coords[r*e+1];for(let i=1;i<n;i+=1){const n=r*(e+i),u=this.coords[n],c=this.coords[n+1];t+=-.5*(u-s)*(c+o),s=u,o=c}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,o=this.coords.slice(0,r*n);return t?(t.set(o),new s(e,t)):new s(e,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[708],{27647:(t,e,r)=>{r.d(e,{Q:()=>s});var n=r(92722);function o(t,e){return t?e?4:3:e?3:2}function s(t){if(null==t)return null;if(!t?.lengths.length)return null;const{lengths:e,coords:r,stride:o,hasZ:s,hasM:c}=t,l=new n.A([],[],s,!1),h=l.coords,f=[],a=s?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];let d=0;for(const t of e){const e=i(a,r,d,t,s,c);e&&f.push(e),d+=t*o}if(f.sort((t,e)=>{let r=t[2]-e[2];return 0===r&&s&&(r=t[4]-e[4]),r}),f.length){let t=6*f[0][2];h[0]=f[0][0]/t,h[1]=f[0][1]/t,s&&(t=6*f[0][4],h[2]=0!==t?f[0][3]/t:0),(h[0]<a[0]||h[0]>a[1]||h[1]<a[2]||h[1]>a[3]||s&&(h[2]<a[4]||h[2]>a[5]))&&(h.length=0)}if(!h.length){const n=t.lengths[0]?u(r,0,e[0],s,c):null;if(!n)return null;h[0]=n[0],h[1]=n[1],s&&(h[2]=n[2]??0)}return l}function i(t,e,r,n,s,i){const u=o(s,i);let c=r,l=r+u,h=0,f=0,a=0,d=0,m=0;for(let r=0,o=n-1;r<o;r++,c+=u,l+=u){const r=e[c],n=e[c+1],o=e[c+2],i=e[l],u=e[l+1],g=e[l+2];let y=r*u-i*n;d+=y,h+=(r+i)*y,f+=(n+u)*y,s&&(y=r*g-i*o,a+=(o+g)*y,m+=y),r<t[0]&&(t[0]=r),r>t[1]&&(t[1]=r),n<t[2]&&(t[2]=n),n>t[3]&&(t[3]=n),s&&(o<t[4]&&(t[4]=o),o>t[5]&&(t[5]=o))}if(d>0&&(d*=-1),m>0&&(m*=-1),!d)return null;const g=[h,f,.5*d];return s&&(g[3]=a,g[4]=.5*m),g}function u(t,e,r,n,s){const i=o(n,s);let u=e,a=e+i,d=0,m=0,g=0,y=0;for(let e=0,o=r-1;e<o;e++,u+=i,a+=i){const e=t[u],r=t[u+1],o=t[u+2],s=t[a],i=t[a+1],p=t[a+2],I=n?l(e,r,o,s,i,p):c(e,r,s,i);if(I)if(d+=I,n){const t=f(e,r,o,s,i,p);m+=I*t[0],g+=I*t[1],y+=I*t[2]}else{const t=h(e,r,s,i);m+=I*t[0],g+=I*t[1]}}return d>0?n?[m/d,g/d,y/d]:[m/d,g/d]:r>0?n?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function c(t,e,r,n){const o=r-t,s=n-e;return Math.sqrt(o*o+s*s)}function l(t,e,r,n,o,s){const i=n-t,u=o-e,c=s-r;return Math.sqrt(i*i+u*u+c*c)}function h(t,e,r,n){return[t+.5*(r-t),e+.5*(n-e)]}function f(t,e,r,n,o,s){return[t+.5*(n-t),e+.5*(o-e),r+.5*(s-r)]}},43334:(t,e,r)=>{r.d(e,{N3:()=>u,Om:()=>i});var n=r(69397),o=r(27647),s=r(92722);class i{constructor(t=null,e={},r,n,o=0){this.geometry=t,this.attributes=e,this.centroid=r,this.objectId=n,this.displayId=o}static fromJSON(t){const e=t.geometry?s.A.fromJSON(t.geometry):null,r=t.centroid?s.A.fromJSON(t.centroid):null,n=t.objectId;return new i(e,t.attributes,r,n)}weakClone(){const t=new i(this.geometry,this.attributes,this.centroid,this.objectId);return t.displayId=this.displayId,t}clone(){const t=this.geometry?.clone(),e=new i(t,{...this.attributes},this.centroid?.clone(),this.objectId);return e.displayId=this.displayId,e}ensureCentroid(t){return this.centroid??=(0,o.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,n.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function u(t){return!!t.geometry?.coords?.length}},58512:(t,e,r)=>{r.d(e,{A:()=>n});class n{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const t=new n;return t.globalIdFieldName=this.globalIdFieldName,t.geohashFieldName=this.geohashFieldName,t.geometryProperties=this.geometryProperties,t.geometryType=this.geometryType,t.spatialReference=this.spatialReference,t.hasZ=this.hasZ,t.hasM=this.hasM,t.features=this.features,t.fields=this.fields,t.transform=this.transform,t.exceededTransferLimit=this.exceededTransferLimit,t.uniqueIdField=this.uniqueIdField,t.queryGeometry=this.queryGeometry,t.queryGeometryType=this.queryGeometryType,t}}},69397:(t,e,r)=>{r.d(e,{$B:()=>o,Qf:()=>l,Qh:()=>u,RS:()=>s,ez:()=>a,lM:()=>i,qK:()=>f});var n=r(34275);function o(t){return 32+t.length}const s=16;function i(t){if(!t)return 0;let e=f;for(const r in t)t.hasOwnProperty(r)&&(e+=c(t[r],!1));return e}function u(t){if(!t)return 0;if("number"==typeof t[0])return l(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=a;for(let n=0;n<e;n++)r+=c(t[n]);return r}(t);let e=f;for(const r in t)t.hasOwnProperty(r)&&(e+=c(t[r]));return e}function c(t,e=!0){switch(typeof t){case"object":return e?u(t):f;case"string":return o(t);case"number":return s;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+d:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return a+t.length*e}const f=32,a=16,d=145},90708:(t,e,r)=>{r.d(e,{Ap:()=>F,B2:()=>y,DF:()=>T,Di:()=>q,E2:()=>k,IE:()=>g,Nl:()=>C,PR:()=>G,Rk:()=>J,Ux:()=>x,Ye:()=>E,ZF:()=>S,aQ:()=>$,eY:()=>_,hK:()=>K,jH:()=>L,jQ:()=>U,kz:()=>j,oN:()=>Y,q3:()=>W,qN:()=>P,zv:()=>V});var n=r(49186),o=r(53966),s=r(97768),i=r(70328),u=r(19419),c=r(60408),l=r(43334),h=r(58512),f=r(92722),a=r(54339);const d=()=>o.A.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0};function g({scale:t,translate:e},r){return Math.round((r-e[0])/t[0])}function y({scale:t,translate:e},r){return Math.round((e[1]-r)/t[1])}function p({scale:t,translate:e},r){return Math.round((r-e[0])/t[0])}function I({scale:t,translate:e},r){return Math.round((r-e[1])/t[1])}function N({scale:t,translate:e},r,n){return r*t[n]+e[n]}function b(t,e,r){return e&&(t.hasZ=!0),r&&(t.hasM=!0),t}function w(t,e,r,n){if(e&&n&&t!==r)return(e,r,n,o)=>{n[o++]=e[r++],n[o++]=e[r++],t?r++:n[o++]=0,n[o++]=e[r++]??0};const o=2+(r?1:0)+(n?1:0),s=o-((!t&&r?1:0)+(!e&&n?1:0));return(t,e,r,n)=>{for(let i=0;i<o;++i)r[n++]=i<s?t[e++]??0:0}}function T(t,e,r){if(!t)return null;const{coords:n,hasZ:o,hasM:s}=t,[i,u]=n,c=o?n[2]:0,l=s?n[2+(o?1:0)]:0;return{x:i,y:u,z:e?c:void 0,m:r?l:void 0}}function P(t,e=(0,c.Pv)(t),r=(0,c.W0)(t)){const{x:n,y:o,z:s,m:i}=t,u=[n,o];return e&&u.push(s??0),r&&u.push(i??0),new f.A([],u,e,r)}function M(t,e,r){if(null==t)return null;const{coords:n,stride:o,hasZ:s,hasM:i}=t,u=w(s,i,e,r),c=[];for(let t=0;t<n.length;t+=o){const e=[];u(n,t,e,0),c.push(e)}return b({points:c},e,r)}function G(t,e=(0,c.Pv)(t),r=(0,c.W0)(t)){const{points:n,hasZ:o,hasM:s}=t,i=new f.A([n.length],[],e,r),{coords:u,stride:l}=i;let h=0;const a=w(o??!1,s??!1,e,r);for(const t of n)a(t,0,u,h),h+=l;return i}function A(t,e,r){if(!t)return null;const{coords:n,lengths:o,stride:s,hasZ:i,hasM:u}=t;let c=0;const l=w(i,u,e,r),h=[];for(const t of o){const e=[];for(let r=0;r<t;r++){const t=[];l(n,c,t,0),c+=s,e.push(t)}h.push(e)}return b({paths:h},e,r)}function F(t,e=(0,c.Pv)(t),r=(0,c.W0)(t)){const{paths:n,hasZ:o,hasM:s}=t,i=w(o??!1,s??!1,e,r),u=new f.A([],[],e,r),{lengths:l,coords:h,stride:a}=u;let d=0;for(const t of n){for(const e of t)i(e,0,h,d),d+=a;l.push(t.length)}return u}function v(t,e,r){if(!t)return null;const{coords:n,lengths:o,stride:s,hasZ:i,hasM:u}=t;let c=0;const l=w(i,u,e,r),h=[];for(const t of o){const e=[];for(let r=0;r<t;r++){const t=[];l(n,c,t,0),c+=s,e.push(t)}h.push(e)}return b({rings:h},e,r)}function E(t,e=(0,c.Pv)(t),r=(0,c.W0)(t)){const{rings:n,hasZ:o,hasM:s}=t,i=new f.A([],[],e,r),{lengths:u,coords:l,stride:h}=i;let a=0;const d=w(o??!1,s??!1,e,r);for(const t of n){for(const e of t)d(e,0,l,a),a+=h;u.push(t.length)}return i}const Z=[],O=[];function k(t,e,r,n,o){Z[0]=t;const[s]=q(O,Z,e,r,n,o);return H(Z),H(O),s}function q(t,e,r,o,s,i){if(H(t),!r){for(const r of e){const e=(0,a.W)(r,i);t.push(new l.Om(null,r.attributes,null,e))}return t}switch(r){case"esriGeometryPoint":return function(t,e,r,n,o){for(const s of e){const{geometry:e,attributes:i,centroid:u}=s,h=(0,c.Pv)(e),f=(0,c.W0)(e);t.push(new l.Om(e?P(e,r&&h,n&&f):null,i,u?P(u,!1,!1):null,(0,a.W)(s,o)))}return t}(t,e,o,s,i);case"esriGeometryMultipoint":return function(t,e,r,n,o){for(const s of e){const{geometry:e,attributes:i}=s,u=(0,c.Pv)(e),h=(0,c.W0)(e);t.push(new l.Om(e?G(e,r&&u,n&&h):null,i,null,(0,a.W)(s,o)))}return t}(t,e,o,s,i);case"esriGeometryPolyline":return function(t,e,r,n,o){for(const s of e){const{geometry:e,attributes:i,centroid:u}=s,h=(0,c.Pv)(e),f=(0,c.W0)(e);t.push(new l.Om(e?F(e,r&&h,n&&f):null,i,u?P(u,!1,!1):null,(0,a.W)(s,o)))}return t}(t,e,o,s,i);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(t,e,r,n,o){for(const s of e){const{geometry:e,attributes:i,centroid:u}=s,h=(0,c.Pv)(e),f=(0,c.W0)(e);t.push(new l.Om(e?E(e,r&&h,n&&f):null,i,u?P(u,!1,!1):null,(0,a.W)(s,o)))}return t}(t,e,o,s,i);default:d().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${r}'`)),H(t)}return t}function Y(t,e,r,n){O[0]=t,R(Z,O,e,r,n);const o=Z[0];return H(Z),H(O),o}function x(t,e=(0,c.Pv)(t),r=(0,c.W0)(t)){return null==t?null:(0,c.fT)(t)?P(t,e,r):(0,c.Bi)(t)?E(t,e,r):(0,c.Rg)(t)?F(t,e,r):(0,c.U9)(t)?G(t,e,r):void d().error("convertFromGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${t}'`))}function V(t,e,r,o){if(null==t)return null;const s="coords"in t?t:t.geometry;if(null==s)return null;switch(e){case"esriGeometryPoint":return T(s,r,o);case"esriGeometryMultipoint":return M(s,r,o);case"esriGeometryPolyline":return A(s,r,o);case"esriGeometryPolygon":return v(s,r,o);default:return d().error("convertToGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${e}'`)),null}}function R(t,e,r,o,s){if(H(t),null==r)return function(t,e){for(const r of e)t.push({attributes:r.attributes});return t}(t,e);switch(r){case"esriGeometryPoint":return function(t,e,r,n){for(const{geometry:o,attributes:s}of e)t.push({attributes:s,geometry:T(o,r,n)});return t}(t,e,o,s);case"esriGeometryMultipoint":return function(t,e,r,n){for(const{geometry:o,attributes:s}of e)t.push({geometry:o&&M(o,r,n),attributes:s});return t}(t,e,o,s);case"esriGeometryPolyline":return function(t,e,r,n){for(const{geometry:o,attributes:s}of e)t.push({geometry:o&&A(o,r,n),attributes:s});return t}(t,e,o,s);case"esriGeometryPolygon":return function(t,e,r,n){for(const{geometry:o,attributes:s,centroid:i}of e){const e=v(o,r,n),u=T(i,!1,!1);t.push(i?{geometry:e,attributes:s,centroid:u}:{geometry:e,attributes:s})}return t}(t,e,o,s);default:d().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${r}'`))}return t}function S(t){const{spatialReference:e,transform:r,fields:n,hasM:o,hasZ:s,features:i,geometryType:u,exceededTransferLimit:c,queryGeometry:l,queryGeometryType:h}=t,f={features:R([],i,u,s,o),fields:n,geometryType:u,spatialReference:e,queryGeometry:V(l,h,s,o)};return r&&(f.transform=r),c&&(f.exceededTransferLimit=c),o&&(f.hasM=o),s&&(f.hasZ=s),f}function W(t,e){const r=new h.A,{hasM:n,hasZ:o,features:s,spatialReference:i,geometryType:u,exceededTransferLimit:c,transform:l,fields:f}=t;return f&&(r.fields=f),r.geometryType=u??null,r.spatialReference=i??null,s&&q(r.features,s,u,o,n,e),c&&(r.exceededTransferLimit=c),n&&(r.hasM=n),o&&(r.hasZ=o),l&&(r.transform=l),r}function _(t){const{transform:e,features:r}=t;if(!e)return t;for(const t of r)null!=t.geometry&&$(t.geometry,e),null!=t.centroid&&$(t.centroid,e);return t.transform=null,t}function L(t,e){const{geometryType:r,features:n}=e;if(!t)return e;for(let e=0;e<n.length;e++){const o=n[e],s=o.weakClone();s.geometry=C(o.geometry,r,t),s.centroid=C(o.centroid,"esriGeometryPoint",t),n[e]=s}return e.transform=t,e}function C(t,e,r,n,o){if(null==t)return null;if(!t?.coords.length)return null;const s=m[e],{coords:i,lengths:u,stride:c,hasZ:l,hasM:h}=t;n??=l,o??=h;const a=new f.A([],[],n,o),d=a.stride,p=w(l,h,n,o);let I=0;const N=[0,0,0,0].slice(d);function b(){p(i,I,N,0),I+=c,N[0]=g(r,N[0]),N[1]=y(r,N[1])}if(t.isPoint)return b(),a.coords.push(...N),a;let T=0;for(const t of u){if(t<s)continue;let e=1;b(),a.coords.push(...N);let[r,n]=N;for(let o=1;o<t;o++){b();const[t,o]=N;r===t&&n===o||(N[0]-=r,N[1]-=n,a.coords.push(...N),r=t,n=o,e++)}e>=s?(a.lengths.push(e),T=a.coords.length):H(a.coords,T)}return H(a.coords,T),a.coords.length?a:null}function j(t,e,r,n=t.hasZ,o=t.hasM){if(!t.coords.length)return null;const s=m[e],{coords:i,lengths:u,stride:c,hasZ:l,hasM:h}=t,a=new f.A([],[],n,o),d=a.stride,g=w(l,h,n,o);if(t.isPoint)return g(i,0,a.coords,0),a;let y=0;const p=r*r;for(const t of u){if(t<s){y+=t*c;continue}const e=a.coords.length/d,r=y,n=y+(t-1)*c;g(i,r,a.coords,a.coords.length),Q(a.coords,i,c,p,g,r,n),g(i,n,a.coords,a.coords.length);const o=a.coords.length/d-e;o>=s?a.lengths.push(o):H(a.coords,e*d),y+=t*c}return a.coords.length?a:null}function z(t,e,r,n){const o=t[e],s=t[e+1],i=t[r],u=t[r+1],c=t[n],l=t[n+1];let h=i,f=u,a=c-h,d=l-f;if(0!==a||0!==d){const t=((o-h)*a+(s-f)*d)/(a*a+d*d);t>1?(h=c,f=l):t>0&&(h+=a*t,f+=d*t)}return a=o-h,d=s-f,a*a+d*d}function Q(t,e,r,n,o,s,i){let u,c=n,l=0;for(let t=s+r;t<i;t+=r)u=z(e,t,s,i),u>c&&(l=t,c=u);c>n&&(l-s>r&&Q(t,e,r,n,o,s,l),o(e,l,t,t.length),i-l>r&&Q(t,e,r,n,o,l,i))}function U(t,e){if(!e?.coords?.length)return null;let r=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY;if(e&&e.coords){const{coords:t,stride:i}=e;for(let e=0;e<t.length;e+=i){const i=t[e],u=t[e+1];r=Math.min(r,i),o=Math.max(o,i),n=Math.min(n,u),s=Math.max(s,u)}}return(0,i.is)(t)?(0,i.BI)(t,r,n,o,s):(0,u.fA)(r,n,o,s,t),t}function $(t,e){const{coords:r,lengths:n,stride:o}=t;if(!r.length)return void(n.length=0);(0,s.Lw)(e);const{originPosition:i,scale:u,translate:c}=e,l=X;l.originPosition=i;const h=l.scale;h[0]=u[0]??1,h[1]=-(u[1]??1),h[2]=u[2]??1,h[3]=u[3]??1;const f=l.translate;if(f[0]=c[0]??0,f[1]=c[1]??0,f[2]=c[2]??0,f[3]=c[3]??0,!n.length){for(let t=0;t<o;++t)r[t]=N(l,r[t],t);return void(n.length=0)}let a=0;for(let t=0;t<n.length;t++){const e=n[t];n[t]=e;for(let t=0;t<o;++t)r[a+t]=N(l,r[a+t],t);let s=r[a],i=r[a+1];a+=o;for(let t=1;t<e;t++,a+=o){s+=r[a]*h[0],i+=r[a+1]*h[1],r[a]=s,r[a+1]=i;for(let t=2;t<o;++t)r[a+t]=N(l,r[a+t],t)}}}function B(t,e,r,n){let o=0,s=t[n*e],i=t[n*(e+1)];for(let u=1;u<r;u++){const r=s+t[n*(e+u)],c=i+t[n*(e+u)+1],l=(r-s)*(c+i);s=r,i=c,o+=l}return.5*o}function J(t,e){const{coords:r,lengths:n}=t;let o=0,s=0;for(let t=0;t<n.length;t++){const i=n[t];s+=B(r,o,i,e),o+=i}return Math.abs(s)}function D(t,e,r,n){return 0===t*n-r*e&&t*r+e*n>0}function K(t,e,r){const{stride:n}=t;if(t.isPoint){if(t.coords.length<2)return null;const[r,n]=t.coords,o=p(e,r),s=I(e,n);return new f.A([],[o,s])}const o=new f.A([],[0,0]),s=m[r],i="esriGeometryPolygon"===r||"esriGeometryPolyline"===r;let u=0,c=0;for(let r=0;r<t.lengths.length;r++){const l=t.lengths[r],h=c;let f=p(e,t.coords[n*u]),a=I(e,t.coords[n*u+1]);o.coords[c++]=f,o.coords[c++]=a;let d=0,m=0,g=1;for(let r=1;r<l;r++){const s=p(e,t.coords[n*(r+u)]),l=I(e,t.coords[n*(r+u)+1]);if(s!==f||l!==a){const t=s-f,e=l-a;i&&D(d,m,t,e)?(o.coords[c-2]+=t,o.coords[c-1]+=e,f+=t,a+=e):(o.coords[c++]=s,o.coords[c++]=l,f=s,a=l,d=t,m=e,g+=1)}}g<s?c=h:o.lengths.push(g),u+=l}return 0===o.lengths.length?null:o}function H(t,e=0){t.length!==e&&(t.length=e)}const X={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},92722:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(69397);class o{constructor(t=[],e=[],r=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:n}){return new o(t,e,r||!1,n||!1)}static fromRect([t,e,r,n]){const s=r-t,i=n-e;return new o([5],[t,e,s,0,0,i,-s,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let o=this.coords[n*e],s=this.coords[n*e+1];for(let i=1;i<r;i+=1){const r=n*(e+i),u=this.coords[r],c=this.coords[r+1];t+=-.5*(u-o)*(c+s),o=u,s=c}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let o=0;o<n;o++){const n=r*(e+o);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let n=0;const{stride:o}=this;for(const t of r){for(let r=1;r<t;r++){const t=o*(n+r);e[t]+=e[t-o],e[t+1]+=e[t+1-o]}n+=t}return t}clone(t){if(this.isPoint)return new o([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:n}=this,s=this.coords.slice(0,n*r);return t?(t.set(s),new o(e,t)):new o(e,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,n=0;e<r.length;e+=t)r[n++]=this.coords[e],r[n++]=this.coords[e+1];return new o(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,6061,7271],{4197:(t,n,e)=>{e.d(n,{Vj:()=>h,cj:()=>c,jh:()=>i,l5:()=>u,xm:()=>s});var r=e(34275),o=e(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function s(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function c(t){return[...t]}function h(t){const n=(0,o.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,n,e,r,o,i,s,u,c,h,a,f,l,m,g,d){return[t,n,e,r,o,i,s,u,c,h,a,f,l,m,g,d]}},Symbol.toStringTag,{value:"Module"}))},33708:(t,n,e)=>{e.d(n,{Sg:()=>s,fz:()=>h,g7:()=>u,zo:()=>c});var r=e(76061),o=(e(55537),e(15756));e(88885),e(95213);const i=new o.k;function s(t,n){return i.accelerateGeometry(t,n,1)}function u(t,n,e){return i.execute(t,n,e,null)}function c(t,n,e,o){const s=i.executeMany(new r.S(t),new r.S([n]),e,null,o);return Array.from(s)}function h(){return i.supportsCurves()}},49263:(t,n,e)=>{e.d(n,{execute:()=>i}),e(4576);var r=e(33708),o=e(34772);function i(t,n){const e=(0,o.fromGeometry)(t),i=e.getSpatialReference();return(0,o.toGeometry)((0,r.g7)(e.getGeometry(),(0,o.fromGeometryToGXGeometry)(n),i),i)}},69397:(t,n,e)=>{e.d(n,{$B:()=>o,Qf:()=>h,Qh:()=>u,RS:()=>i,ez:()=>l,lM:()=>s,qK:()=>f});var r=e(34275);function o(t){return 32+t.length}const i=16;function s(t){if(!t)return 0;let n=f;for(const e in t)t.hasOwnProperty(e)&&(n+=c(t[e],!1));return n}function u(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const n=t.length;if(0===n||"number"==typeof t[0])return a(t,8);let e=l;for(let r=0;r<n;r++)e+=c(t[r]);return e}(t);let n=f;for(const e in t)t.hasOwnProperty(e)&&(n+=c(t[e]));return n}function c(t,n=!0){switch(typeof t){case"object":return n?u(t):f;case"string":return o(t);case"number":return i;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,n)=>t+(n?(0,r.iu)(n)?n.byteLength+m:Array.isArray(n)?a(n,i):0:0),0)}function a(t,n){return l+t.length*n}const f=32,l=16,m=145},70328:(t,n,e)=>{e.d(n,{BI:()=>I,DC:()=>f,Ej:()=>m,Ie:()=>M,Jt:()=>x,Ne:()=>g,RF:()=>a,aI:()=>A,fA:()=>s,gE:()=>c,hZ:()=>y,iT:()=>l,is:()=>w,qv:()=>G,vI:()=>d,vY:()=>u,v_:()=>b,vt:()=>i,w1:()=>h});var r=e(5443),o=(e(19419),e(4197));function i(t=b){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function s(t,n,e,r,o,s,u=i()){return u[0]=t,u[1]=n,u[2]=e,u[3]=r,u[4]=o,u[5]=s,u}function u(t,n=i()){return function(t,n,e,r=i()){return y(r,G),function(t,n,e=0,r=n.length/3){let o=t[0],i=t[1],s=t[2],u=t[3],c=t[4],h=t[5];for(let t=0;t<r;t++)o=Math.min(o,n[e+3*t]),i=Math.min(i,n[e+3*t+1]),s=Math.min(s,n[e+3*t+2]),u=Math.max(u,n[e+3*t]),c=Math.max(c,n[e+3*t+1]),h=Math.max(h,n[e+3*t+2]);t[0]=o,t[1]=i,t[2]=s,t[3]=u,t[4]=c,t[5]=h}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,o.jh)(24)){const[e,r,i,s,u,c]=t;return n[0]=e,n[1]=r,n[2]=i,n[3]=e,n[4]=r,n[5]=c,n[6]=e,n[7]=u,n[8]=i,n[9]=e,n[10]=u,n[11]=c,n[12]=s,n[13]=r,n[14]=i,n[15]=s,n[16]=r,n[17]=c,n[18]=s,n[19]=u,n[20]=i,n[21]=s,n[22]=u,n[23]=c,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function a(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[3]),t[4]=Math.max(t[4],n[4]),t[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[0]),t[4]=Math.max(t[4],n[1]),t[5]=Math.max(t[5],n[2])}function m(t,n=[0,0,0]){return n[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),n[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),n[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),n}function g(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function d(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function y(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function M(t){return t?y(t,G):i(G)}function x(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function I(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=o,t[5]=Number.POSITIVE_INFINITY,t}function w(t){return 6===t.length}function A(t,n,e){if(null==t||null==n)return t===n;if(!w(t)||!w(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const G=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];i()},76061:(t,n,e)=>{e.d(n,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class o extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},92722:(t,n,e)=>{e.d(n,{A:()=>o});var r=e(69397);class o{constructor(t=[],n=[],e=!1,r=!1){this.lengths=t??[],this.coords=n??[],this.hasZ=e,this.hasM=r}static fromJSON({lengths:t,coords:n,hasZ:e,hasM:r}){return new o(t,n,e||!1,r||!1)}static fromRect([t,n,e,r]){const i=e-t,s=r-n;return new o([5],[t,n,i,0,0,s,-i,0,0,-s])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,n)=>t+n,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,n=0;for(const e of this.lengths){if(e<3)continue;const{stride:r}=this;let o=this.coords[r*n],i=this.coords[r*n+1];for(let s=1;s<e;s+=1){const e=r*(n+s),u=this.coords[e],c=this.coords[e+1];t+=-.5*(u-o)*(c+i),o=u,i=c}n+=e}return t}forEachVertex(t){let n=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:e}=this;for(const r of this.lengths){for(let o=0;o<r;o++){const r=e*(n+o);t(this.coords[r],this.coords[r+1])}n+=r}}deltaDecode(){const t=this.clone(),{coords:n,lengths:e}=t;let r=0;const{stride:o}=this;for(const t of e){for(let e=1;e<t;e++){const t=o*(r+e);n[t]+=n[t-o],n[t+1]+=n[t+1-o]}r+=t}return t}clone(t){if(this.isPoint)return new o([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const n=Array.from(this.lengths),{stride:e,size:r}=this,i=this.coords.slice(0,r*e);return t?(t.set(i),new o(n,t)):new o(n,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:n}=this;if(2===t)return this;const e=new Array(n*t);for(let n=0,r=0;n<e.length;n+=t)e[r++]=this.coords[n],e[r++]=this.coords[n+1];return new o(this.lengths,e,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,413,3169,4161,6061,7373,8125],{4197:(e,t,n)=>{n.d(t,{Vj:()=>c,cj:()=>a,jh:()=>s,l5:()=>u,xm:()=>i});var r=n(34275),o=n(9093);function s(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function i(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function u(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function c(e){const t=(0,o.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>o,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,fromValues:function(e,t,n,r,o,s,i,u,a,c,h,l,m,f,g,y){return[e,t,n,r,o,s,i,u,a,c,h,l,m,f,g,y]}},Symbol.toStringTag,{value:"Module"}))},68613:(e,t,n)=>{n.d(t,{fz:()=>y,g7:()=>f,zo:()=>g});var r=n(76061),o=n(55537),s=n(83661),i=n(88885),u=n(79187),a=n(95213),c=n(15756);function h(e,t,n,r){const o=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),c=t.getXY(),h=e.createInstance(),l=(0,a.e)(n),m=new u.Envelope2D;if(e.queryEnvelope(m),m.inflateCoords(l,l),m.contains(c)){const n=l*l;let r=!1;const u=(0,s.d)(i,!1);for(let e=0;e<i;e++){const t=o.read(2*e),s=o.read(2*e+1),i=t-c.x,a=s-c.y;i*i+a*a<=n&&(r=!0,u[e]=!0)}if(r)for(let t=0;t<i;t++)u[t]||h.addPoints(e,t,t+1);else h.addPoints(e,0,i),h.add(t)}else h.addPoints(e,0,i),h.add(t);return h}class l extends r.G{constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,o.c)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?((0,o.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){const l=e.getDimension(),m=t.getDimension();if(l!==m)return l>m?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const f=new u.Envelope2D,g=new u.Envelope2D,y=new u.Envelope2D;e.queryEnvelope(f),t.queryEnvelope(g),y.setCoords({env2D:f}),y.mergeEnvelope2D(g);const p=(0,a.c)(n,y,!0),d=e.getGeometryType(),x=t.getGeometryType();return d===o.G.enumPoint&&x===o.G.enumPoint?function(e,t,n){const r=(0,a.e)(n),o=r*r,u=e.getXY(),c=t.getXY(),h=new i.M({vd:e.getDescription()});return s.P.sqrDistance(u,c)>o&&(h.add(e),h.add(t)),h}(e,t,p):d===o.G.enumPoint&&x===o.G.enumMultiPoint?h(t,e,p):d===o.G.enumMultiPoint&&x===o.G.enumPoint?h(e,t,p):(0,c.as)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const m=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new l(e,t,n,r)}execute(e,t,n,s){const i=new r.S([e]),u=new r.S([t]),a=this.executeMany(i,u,n,s).next();return a||(0,o.d)("null output"),a}};function f(e,t,n){return m.execute(e,t,n,null)}function g(e,t,n){const o=m.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(o)}function y(){return m.supportsCurves()}},69397:(e,t,n)=>{n.d(t,{$B:()=>o,Qf:()=>c,Qh:()=>u,RS:()=>s,ez:()=>m,lM:()=>i,qK:()=>l});var r=n(34275);function o(e){return 32+e.length}const s=16;function i(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n],!1));return t}function u(e){if(!e)return 0;if("number"==typeof e[0])return c(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let n=m;for(let r=0;r<t;r++)n+=a(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=a(e[n]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?u(e):l;case"string":return o(e);case"number":return s;case"boolean":return 4;default:return 8}}function c(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?h(t,s):0:0),0)}function h(e,t){return m+e.length*t}const l=32,m=16,f=145},70328:(e,t,n)=>{n.d(t,{BI:()=>M,DC:()=>l,Ej:()=>f,Ie:()=>d,Jt:()=>x,Ne:()=>g,RF:()=>h,aI:()=>v,fA:()=>i,gE:()=>a,hZ:()=>p,iT:()=>m,is:()=>G,qv:()=>P,vI:()=>y,vY:()=>u,v_:()=>w,vt:()=>s,w1:()=>c});var r=n(5443),o=(n(19419),n(4197));function s(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function i(e,t,n,r,o,i,u=s()){return u[0]=e,u[1]=t,u[2]=n,u[3]=r,u[4]=o,u[5]=i,u}function u(e,t=s()){return function(e,t,n,r=s()){return p(r,P),function(e,t,n=0,r=t.length/3){let o=e[0],s=e[1],i=e[2],u=e[3],a=e[4],c=e[5];for(let e=0;e<r;e++)o=Math.min(o,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),i=Math.min(i,t[n+3*e+2]),u=Math.max(u,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),c=Math.max(c,t[n+3*e+2]);e[0]=o,e[1]=s,e[2]=i,e[3]=u,e[4]=a,e[5]=c}(r,e,t,n),r}(e,0,e.length/3,t)}function a(e,t=(0,o.jh)(24)){const[n,r,s,i,u,a]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=a,t[6]=n,t[7]=u,t[8]=s,t[9]=n,t[10]=u,t[11]=a,t[12]=i,t[13]=r,t[14]=s,t[15]=i,t[16]=r,t[17]=a,t[18]=i,t[19]=u,t[20]=s,t[21]=i,t[22]=u,t[23]=a,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function g(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function y(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function d(e){return e?p(e,P):s(P)}function x(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function M(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=o,e[5]=Number.POSITIVE_INFINITY,e}function G(e){return 6===e.length}function v(e,t,n){if(null==e||null==t)return e===t;if(!G(e)||!G(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const P=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];s()},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>x,fromGeometry:()=>d,fromMultipoint:()=>M,fromPoint:()=>G,fromPolygon:()=>v,fromPolyline:()=>P,fromPolylineUsingImportOperator:()=>w,fromSpatialReference:()=>_,getSpatialReference:()=>p,toExtent:()=>I,toGeometry:()=>C,toMultipoint:()=>E,toPoint:()=>V,toPolygon:()=>A,toPolyline:()=>R});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),i=n(88885),u=n(5443),a=n(48526),c=n(86738),h=n(39829),l=n(82799),m=(n(90293),n(34772));const f="_gxVersion",g=2,y=1;function p(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function d(e){switch(e.type){case"point":return G(e);case"multipoint":return M(e);case"polyline":return P(e);case"polygon":return v(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(f)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(g,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function M(e){if(!e.getCacheValue(f)){const t=new i.M,n=new s.P,r=e.points,o=e.hasM,u=e.hasZ,a=u?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),u&&n.setZ(s[2]??0),o&&n.setM(s[a]??NaN),t.add(n)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function G(e){if(!e.getCacheValue(f)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(f,t)}return e.getCacheValue(f)}function v(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,m.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function P(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,m.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function w(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function _(e){return(0,m.fromSpatialReference)(e)}function C(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return V(e,t);case o.G.enumEnvelope:return I(e,t);case o.G.enumMultiPoint:return E(e,t);case o.G.enumPolyline:return R(e,t);case o.G.enumPolygon:return A(e,t)}return null}function I(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(g,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(f,e),n}function E(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),i=[],u=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];o&&n.push(u.getZ()),r&&n.push(u.getM()),i.push(n)}const c=new a.A({hasM:r,hasZ:o,points:i,spatialReference:t});return c.setCacheValue(f,e),c}function V(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(f,e),n}function A(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(f,e),n}function R(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(f,e),n}},89041:(e,t,n)=>{n.d(t,{execute:()=>r.e}),n(4576),n(68613),n(78125);var r=n(96957)},92722:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(69397);class o{constructor(e=[],t=[],n=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:n,hasM:r}){return new o(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const s=n-e,i=r-t;return new o([5],[e,t,s,0,0,i,-s,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let o=this.coords[r*t],s=this.coords[r*t+1];for(let i=1;i<n;i+=1){const n=r*(t+i),u=this.coords[n],a=this.coords[n+1];e+=-.5*(u-o)*(a+s),o=u,s=a}t+=n}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let o=0;o<r;o++){const r=n*(t+o);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;const{stride:o}=this;for(const e of n){for(let n=1;n<e;n++){const e=o*(r+n);t[e]+=t[e-o],t[e+1]+=t[e+1-o]}r+=e}return e}clone(e){if(this.isPoint)return new o([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,s=this.coords.slice(0,r*n);return e?(e.set(s),new o(t,e)):new o(t,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const n=new Array(t*e);for(let t=0,r=0;t<n.length;t+=e)n[r++]=this.coords[t],n[r++]=this.coords[t+1];return new o(this.lengths,n,!1,!1)}}},96957:(e,t,n)=>{n.d(t,{e:()=>i,s:()=>a});var r=n(4576),o=n(68613),s=n(78125);function i(e,t){const n=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,o.g7)((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(n)),n)}const u=(0,o.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:function(e,t){const n=e.map(s.fromGeometry),i=(0,s.getSpatialReference)(e);return(0,o.zo)(n,(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(i)).map(e=>(0,s.toGeometry)(e,i)).filter(r.Ru)},supportsCurves:u},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3169,4140,4161,5867,6061,7373,8125],{4197:(t,e,n)=>{n.d(e,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>a,xm:()=>i});var r=n(34275),o=n(9093);function s(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function u(t){return[...t]}function c(t){const e=(0,o.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,fromValues:function(t,e,n,r,o,s,i,a,u,c,h,l,f,m,g,y){return[t,e,n,r,o,s,i,a,u,c,h,l,f,m,g,y]}},Symbol.toStringTag,{value:"Module"}))},49074:(t,e,n)=>{n.d(e,{fz:()=>u,g7:()=>i,zo:()=>a});var r=n(76061),o=(n(55537),n(15756));n(83661),n(88885),n(79187),n(95213);const s=new o.o;function i(t,e,n){return s.execute(t,e,n,null)}function a(t,e,n){const o=s.executeMany(new r.S(t),new r.S([e]),n,null);return Array.from(o)}function u(){return s.supportsCurves()}},69397:(t,e,n)=>{n.d(e,{$B:()=>o,Qf:()=>c,Qh:()=>a,RS:()=>s,ez:()=>f,lM:()=>i,qK:()=>l});var r=n(34275);function o(t){return 32+t.length}const s=16;function i(t){if(!t)return 0;let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=u(t[n],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=f;for(let r=0;r<e;r++)n+=u(t[r]);return n}(t);let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=u(t[n]));return e}function u(t,e=!0){switch(typeof t){case"object":return e?a(t):l;case"string":return o(t);case"number":return s;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+m:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return f+t.length*e}const l=32,f=16,m=145},70328:(t,e,n)=>{n.d(e,{BI:()=>d,DC:()=>l,Ej:()=>m,Ie:()=>M,Jt:()=>x,Ne:()=>g,RF:()=>h,aI:()=>v,fA:()=>i,gE:()=>u,hZ:()=>p,iT:()=>f,is:()=>G,qv:()=>C,vI:()=>y,vY:()=>a,v_:()=>w,vt:()=>s,w1:()=>c});var r=n(5443),o=(n(19419),n(4197));function s(t=w){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,n,r,o,i,a=s()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=o,a[5]=i,a}function a(t,e=s()){return function(t,e,n,r=s()){return p(r,C),function(t,e,n=0,r=e.length/3){let o=t[0],s=t[1],i=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)o=Math.min(o,e[n+3*t]),s=Math.min(s,e[n+3*t+1]),i=Math.min(i,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=o,t[1]=s,t[2]=i,t[3]=a,t[4]=u,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,o.jh)(24)){const[n,r,s,i,a,u]=t;return e[0]=n,e[1]=r,e[2]=s,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=s,e[9]=n,e[10]=a,e[11]=u,e[12]=i,e[13]=r,e[14]=s,e[15]=i,e[16]=r,e[17]=u,e[18]=i,e[19]=a,e[20]=s,e[21]=i,e[22]=a,e[23]=u,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function y(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function M(t){return t?p(t,C):s(C)}function x(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function d(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=o,t[5]=Number.POSITIVE_INFINITY,t}function G(t){return 6===t.length}function v(t,e,n){if(null==t||null==e)return t===e;if(!G(t)||!G(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];s()},70722:(t,e,n)=>{n.d(e,{d:()=>a,e:()=>s});var r=n(49074),o=n(78125);function s(t,e){const n=(0,o.getSpatialReference)(t);return(0,o.toGeometry)((0,r.g7)((0,o.fromGeometry)(t),(0,o.fromGeometry)(e),(0,o.fromSpatialReference)(n)),n)}const i=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:s,executeMany:function(t,e){const n=t.map(o.fromGeometry),s=(0,o.getSpatialReference)(t);return(0,r.zo)(n,(0,o.fromGeometry)(e),(0,o.fromSpatialReference)(s)).map(t=>(0,o.toGeometry)(t,s))},supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},76061:(t,e,n)=>{n.d(e,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class o extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,n)=>{n.r(e),n.d(e,{fromExtent:()=>x,fromGeometry:()=>M,fromMultipoint:()=>d,fromPoint:()=>G,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>w,fromSpatialReference:()=>P,getSpatialReference:()=>p,toExtent:()=>I,toGeometry:()=>V,toMultipoint:()=>A,toPoint:()=>R,toPolygon:()=>Z,toPolyline:()=>_});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),h=n(39829),l=n(82799),f=(n(90293),n(34772));const m="_gxVersion",g=2,y=1;function p(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function M(t){switch(t.type){case"point":return G(t);case"multipoint":return d(t);case"polyline":return C(t);case"polygon":return v(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(m)){const e=new s.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(g,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(y,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function d(t){if(!t.getCacheValue(m)){const e=new i.M,n=new s.P,r=t.points,o=t.hasM,a=t.hasZ,u=a?3:2;for(let t=0,s=r.length;t<s;t++){const s=r[t];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),o&&n.setM(s[u]??NaN),e.add(n)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function G(t){if(!t.getCacheValue(m)){const e=new s.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function v(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:n,hasZ:r,rings:o}=t,s=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:o});t.setCacheValue(m,s)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:o}=t,s=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:o});t.setCacheValue(m,s)}return t.getCacheValue(m)}function w(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:o}=t,s=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:o});t.setCacheValue(m,s)}return t.getCacheValue(m)}function P(t){return(0,f.fromSpatialReference)(t)}function V(t,e){if(t)switch(t.getGeometryType()){case o.G.enumPoint:return R(t,e);case o.G.enumEnvelope:return I(t,e);case o.G.enumMultiPoint:return A(t,e);case o.G.enumPolyline:return _(t,e);case o.G.enumPolygon:return Z(t,e)}return null}function I(t,e){if(t.isEmpty())return null;const n=new a.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(g,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(y,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(m,t),n}function A(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),o=n.hasZ(),i=[],a=new s.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,a);const n=[a.getX(),a.getY()];o&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:o,points:i,spatialReference:e});return c.setCacheValue(m,t),c}function R(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),o=t.getDescription();return o.hasM()&&(n.m=t.getM()),o.hasZ()&&(n.z=t.getZ()),n.setCacheValue(m,t),n}function Z(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}function _(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}},92722:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(69397);class o{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new o(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const s=n-t,i=r-e;return new o([5],[t,e,s,0,0,i,-s,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let o=this.coords[r*e],s=this.coords[r*e+1];for(let i=1;i<n;i+=1){const n=r*(e+i),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-o)*(u+s),o=a,s=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let o=0;o<r;o++){const r=n*(e+o);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:o}=this;for(const t of n){for(let n=1;n<t;n++){const t=o*(r+n);e[t]+=e[t-o],e[t+1]+=e[t+1-o]}r+=t}return t}clone(t){if(this.isPoint)return new o([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,s=this.coords.slice(0,r*n);return t?(t.set(s),new o(e,t)):new o(e,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new o(this.lengths,n,!1,!1)}}},93054:(t,e,n)=>{n.d(e,{execute:()=>r.e}),n(49074),n(78125);var r=n(70722)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8948],{6518:(e,t,i)=>{i.d(t,{F:()=>a});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((i,n)=>{e[t++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,s.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},8460:(e,t,i)=>{i.d(t,{$C:()=>y,Hh:()=>o,Tu:()=>c,Wg:()=>h,Xq:()=>f,i6:()=>g,pM:()=>u,vJ:()=>m});var n=i(2741);let r,s=null;function o(){return r||(r=i.e(3666).then(i.bind(i,3666)).then(e=>e.l).then(({default:e})=>e({locateFile:e=>(0,n.s)(`esri/libs/linkchartlayout/${e}`)})).then(e=>{!function(e){s=e}(e)}),r)}const a={right:0,left:1,top:2,bottom:3},l={none:0,"start-only":1,"start-and-end":2};function p(e){const t={timeDirection:"right",timeBannerUTCOffsetInMinutes:0,eventsTicksVisualization:"start-and-end",showDurationLineForNonZeroDurationEntityEvents:!0,durationLineWidth:5,entityPositionAtDurationRatio:1,showNonZeroDurationIntervalBounds:!1,separateTimeOverlaps:!0,separateTimelineOverlaps:!0,moveFirstBends:!0,secondBendRatio:.3,lineSeparationMultiplier:1,spaceSeparatedLinesEvenly:!1,useBezierCurves:!1,separatedLineShapeRatio:0,...e?.toJSON(),eventsTicksVisualization:e?.eventsTicksVisualization??"start-and-end"};return{...t,timeDirection:{value:a[t.timeDirection]??a.right},eventsTicksVisualization:{value:l[t.eventsTicksVisualization]??l["start-and-end"]}}}function d(e,t,i,n,r,o){const a=i.length,l=r.length,p=Float64Array.BYTES_PER_ELEMENT,d=Uint32Array.BYTES_PER_ELEMENT,u=Uint8Array.BYTES_PER_ELEMENT,c=16+a*(u+2*p)+l*(2*d),h=s._malloc(c);try{const u=h+16-h%16,c=u+a*p,y=c+a*p,m=y+l*d,f=m+l*d,g=()=>[s.HEAPF64.subarray(u>>3,(u>>3)+a),s.HEAPF64.subarray(c>>3,(c>>3)+a),s.HEAPU32.subarray(y>>2,(y>>2)+l),s.HEAPU32.subarray(m>>2,(m>>2)+l),s.HEAPU8.subarray(f,f+a)],[b,w,_,M,I]=g();b.set(i),w.set(n),_.set(r),M.set(o),I.set(t);const T=e(a,f,u,c,l,y,m);let C=null,v=null;if(0===T.value){const e=s.getLayoutLinksTypes(),t=s.getLayoutLinksVerticesEndIndices(),i=s.getLayoutLinksVertices(),n=s.countLayoutLinksVertices();!l||e&&t?n&&!i?T.value=1:(C={types:new Uint8Array(s.HEAPU8.subarray(e,e+l)),vertexEndIndex:new Uint32Array(s.HEAPU32.subarray(t>>2,(t>>2)+l)),vertices:new Float64Array(s.HEAPF64.subarray(i>>3,(i>>3)+2*n))},v=s.getAuxiliaryGraphicElements()):T.value=1}const[A,E,S,x,k]=g();return i.set(A),n.set(E),r.set(S),o.set(x),t.set(k),{status:T.value,links:C,graphics:v}}finally{s._free(h),s.cleanupLayout()}}var u,c,h,y,m,f,g,b;(b=u||(u={})).getMinIdealEdgeLength=function(){return s.getMinIdealEdgeLength()},b.apply=function(e,t,i,n,r,o,a=2,l=1,p=-1){return d((t,i,n,r,o,d,u)=>s.applyForceDirectedLayout(e,t,i,n,r,o,d,u,a,l,p),t,i,n,r,o)},function(e){e.apply=function(e,t,i,n,r,o,a=2,l=1,p=-1){return d((t,i,n,r,o,d,u)=>s.applyCommunityLayout(e,t,i,n,r,o,d,u,a,l,p),t,i,n,r,o)}}(c||(c={})),function(e){e.apply=function(e,t,i,n,r,o){return d((t,i,n,r,o,a,l)=>s.applySimpleLayout(e,t,i,n,r,o,a,l),t,i,n,r,o)}}(h||(h={})),function(e){e.apply=function(e,t,i,n,r,o){return d((t,i,n,r,o,a,l)=>s.applyHierarchicalLayout(e,t,i,n,r,o,a,l),t,i,n,r,o)}}(y||(y={})),function(e){e.apply=function(e,t,i,n,r,o){return d((t,i,n,r,o,a,l)=>s.applyRadialTreeLayout(e,t,i,n,r,o,a,l),t,i,n,r,o)}}(m||(m={})),function(e){e.apply=function(e,t,i,n,r,o){return d((t,i,n,r,o,a,l)=>s.applySmartTreeLayout(e,t,i,n,r,o,a,l),t,i,n,r,o)}}(f||(f={})),function(e){e.apply=function(e,t,i,n,r,o,a,l,u,c,h,y){return d((t,i,n,a,l,d,m)=>{if(r.length!==t)return{value:1};if(o.length!==t)return{value:1};if(u.length!==l)return{value:1};if(c.length!==l)return{value:1};const f=Float64Array.BYTES_PER_ELEMENT,g=16,b=s._malloc(g+t*f),w=s._malloc(g+t*f),_=s._malloc(g+l*f),M=s._malloc(g+l*f),I=b+g-b%g,T=w+g-w%g,C=_+g-_%g,v=M+g-M%g;try{return s.HEAPF64.subarray(I>>3,(I>>3)+t).set(r),s.HEAPF64.subarray(T>>3,(T>>3)+t).set(o),s.HEAPF64.subarray(C>>3,(C>>3)+l).set(u),s.HEAPF64.subarray(v>>3,(v>>3)+l).set(c),s.applyChronologicalLayout(e,t,i,n,a,I,T,l,d,m,C,v,h,p(y))}finally{s._free(b),s._free(w),s._free(_),s._free(M)}},t,i,n,a,l)}}(g||(g={}))},10407:(e,t,i)=>{i.d(t,{It:()=>h,LG:()=>o,OM:()=>p,Sm:()=>d,Y:()=>a,bK:()=>l,mm:()=>c,sQ:()=>u});var n=i(91218),r=i(16930),s=i(28735);function o(e,t){if(!a(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,c.HOSTED_SERVICE)}function p(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function d(e,t,i){i?o(e,t):p(e,t)}async function u(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const i=r.A.WGS84;return await(0,n.initializeProjection)(t,i),(0,n.project)(e,i)}(i)}const c={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(e){const{portal:t,isOrgItem:i,itemControl:n}=e,r=t.user?.privileges;let s=!r||r.includes("features:user:edit"),o=!!i&&!!r?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}},15375:(e,t,i)=>{i.d(t,{BL:()=>l,Cz:()=>r,KQ:()=>s,M1:()=>a,T1:()=>o,dr:()=>n});const n="ESRI__ID",r="ESRI__OriginID",s="ESRI__DestID",o="ESRI__LayoutGeometry",a="ESRI__AggregationCount",l="LC.ESRI__IsSpatial"},23150:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(31635),r=i(91429),s=i(82799),o=i(54238);let a=class extends o.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"originId",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"destinationId",void 0),(0,n.Cg)([(0,r.MZ)({type:s.A,json:{write:!0}})],a.prototype,"layoutGeometry",void 0),a=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.Relationship")],a)},24137:(e,t,i)=>{i.d(t,{P:()=>I});var n=i(31635),r=i(69622),s=i(49186),o=i(53966),a=i(91869),l=i(74887),p=i(39516),d=i(91429),u=i(5443),c=i(39829),h=i(91218),y=i(21325),m=i(15375);const f=(e,t)=>{if("column-reference"===e.type)return e.column===t.systemOidFieldName?"ID(n)":`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&t.supportedSqlTypes.has(e.left.type)&&t.supportedSqlTypes.has(e.right.type)&&t.supportedSqlOperators.has(e.operator))return`${f(e.left,t)} ${e.operator} ${f(e.right,t)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let i="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)i+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return t.unsupportedOperationFound=!0,"";i+=`lower(n.${e.left.column})`}if(i+=" CONTAINS (","string"!==e.right.type)return t.unsupportedOperationFound=!0,"";{let t=e.right.value;t.startsWith("%")&&(t=t.slice(1)),t.endsWith("%")&&(t=t.slice(0,-1)),i+=`'${t.toLowerCase()}')`}return i}return t.unsupportedOperationFound=!0,""};var g=i(69860),b=i(30504),w=i(48441),_=i(42538),M=i(61956);let I=class extends r.A{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;const t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach(i=>{i.name&&(t.set(i.name,"entity"),this._processingCacheUpdatesLookup.set(i.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.entityTypeNames.add(i.name),i.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(i.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.knowledgeGraph.dataModel.relationshipTypes?.forEach(i=>{i.name&&(t.set(i.name,"relationship"),this._processingCacheUpdatesLookup.set(i.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.relationshipTypeNames.add(i.name),i.properties?.forEach(e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(i.name,{name:e.name??"",geometryType:e.geometryType})}))}),e.inclusionModeDefinition?.namedTypeDefinitions.forEach((i,n)=>{if("entity"===t.get(n))this.entityTypeNames.add(n);else{if("relationship"!==t.get(n))return o.A.getLogger(this).warn(`A named type, ${n}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(n);this.relationshipTypeNames.add(n)}const r=new Map;i.members?.forEach(e=>{(0,a.tE)(this.memberIdTypeLookup,e.id,()=>new Set).add(n)}),this.sublayerCaches.set(n,r)})}addToLayer(e){e.forEach(({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new s.A("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){const i=this.inclusionModeDefinition.namedTypeDefinitions.get(e);i.members||(i.members=new Map),i.members.set(t,{id:t}),(0,a.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}}else{const i=new Map;i.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:i}),(0,a.tE)(this.memberIdTypeLookup,t,()=>new Set).add(e)}})}getById(e){return g.A.getInstance().readFromStoreById(e)}async getData(e,t,i){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return[];let n;if(n=e||new M.A({where:"1=1",outFields:["*"]}),"link-chart"===t.parentCompositeLayer.type){const e=t.parentCompositeLayer,i=this._processingCacheUpdatesLookup.get(t.objectType.name??""),r=n.outFields;r&&1===r.length&&r[0]===m.dr&&"1=1"===n.where||await Promise.all(i??[]);const s=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],o=[];return s.forEach(i=>{if(this.relationshipTypeNames.has(t.objectType.name)){i.geometry=e.relationshipLinkChartDiagramLookup.get(i.attributes[t.objectIdField]);const n=this.memberIdTypeLookup.get(i.attributes[m.Cz]),r=this.memberIdTypeLookup.get(i.attributes[m.KQ]),s=this._isEndEntitySpatial(n,i,m.Cz),o=this._isEndEntitySpatial(r,i,m.KQ);i.attributes[m.BL]=Number(s&&o)}else{i.geometry=e.entityLinkChartDiagramLookup.get(i.attributes[t.objectIdField]);const n=this.geographicLookup.get(t.objectType.name);n&&i.attributes[n.name]?i.attributes[m.BL]=1:i.attributes[m.BL]=0}i.attributes[m.T1]=i.geometry,o.push(i)}),o}return this.retrieveDataFromService(n,t,i)}async getConnectedRecordIds(e,t,i){const n=[];let r="";const s=this._getNamedTypeIdMapFromNodeIds(e);if(t&&0!==t?.length){for(const e of t)r=r+e+"|";r=r.slice(0,-1)}const o={},a=[];for(const[e,i]of s){const n=`${e}_ids`;o[n]=i,t&&0!==t?.length?a.push(`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r:${r}]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`):a.push(`MATCH (n:${e}) WHERE id(n) IN $${n} WITH n MATCH (n)-[r]-(m) RETURN id(r), type(r), id(m), labels(m)[0]`)}if(!a.length)return n;const l=a.join(" UNION "),p=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:l,bindParameters:o}),{signal:i?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){const i=t[e];n.push({id:i[0],typeName:i[1]}),n.push({id:i[2],typeName:i[3]})}}return n}async getRelationshipsBetweenNodes(e,t,i){const n=this._getNamedTypeIdMapFromNodeIds(e);if(0===n.size)return[];const r={relationshipExclusionIds:t,possibleConnectionEntityIds:e},s=[];for(const[e,t]of n.entries()){const i=`${e}_ids`;r[i]=t,s.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r]->(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}const o=s.join(" UNION "),a=[],l=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:o,bindParameters:r}),{signal:i?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await l.read();if(e)break;for(let e=0;e<t.length;e++){const i=t[e];a.push({id:i[0],typeName:i[1]})}}return a}async getRelationshipsFromNodes(e,t,i,n){const r=this._getNamedTypeIdMapFromNodeIds(e);if(0===r.size||0===t.length)return[];const s={relationshipExclusionIds:i,possibleConnectionEntityIds:t},o=[];for(const[e,t]of r.entries()){const i=`${e}_ids`;s[i]=t,o.push(`MATCH (n:${e}) WHERE id(n) IN $${i} WITH n MATCH (n)-[r]-(m) WHERE id(m) IN $possibleConnectionEntityIds AND NOT id(r) IN $relationshipExclusionIds RETURN id(r), type(r)`)}const a=o.join(" UNION "),l=new Map,p=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,new _.A({openCypherQuery:a,bindParameters:s}),{signal:n?.signal})).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await p.read();if(e)break;for(let e=0;e<t.length;e++){const i=t[e];let n=l.get(i[1]);n||(n=new Set,l.set(i[1],n)),n.add(i[0])}}const d=[];for(const[e,t]of l)for(const i of t)d.push({id:i,typeName:e});return d}async refreshCacheContent(e,t,i,n=!0,r){const o=g.A.getInstance(),p=[],d=new Map,u=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&u.set(e.name,e)}),this.knowledgeGraph.dataModel.relationshipTypes?.forEach(e=>{e.name&&u.set(e.name,e)}),e||this.inclusionModeDefinition?e?e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e))d.has(t)?d.get(t)?.push(e):d.set(t,[e])}):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{e.useAllData?d.set(t,null):e.members&&e.members.forEach(e=>{d.has(t)&&null!==d.get(t)?d.get(t)?.push(e.id):d.set(t,[e.id])})}):(this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&d.set(e.name,null)}),this.knowledgeGraph.dataModel.entityTypes?.forEach(e=>{e.name&&d.set(e.name,null)}));for(const[e,l]of d){const d=new Set(l),c=new Promise((p,c)=>{(async()=>{const p=new Set,c=[];let h,y="",f=!1;if(t||u.get(e)?.properties?.forEach(e=>{e.name&&p.add(e.name)}),i&&this.geographicLookup.has(e)){const t=this.geographicLookup.get(e)?.name;t&&p.add(t)}if(this.entityTypeNames.has(e))y=`MATCH (n:${e}) ${l?"WHERE id(n) IN $ids ":""}return ID(n)`,p.forEach(e=>{y+=`, n.${e}`,c.push(e)});else{if(!this.relationshipTypeNames.has(e))throw new s.A("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);f=!0,y=`MATCH ()-[n:${e}]->() ${l?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,p.forEach(e=>{y+=`, n.${e}`,c.push(e)})}h=new _.A(l?{openCypherQuery:y,bindParameters:{ids:l}}:{openCypherQuery:y});const g=(await(0,w.executeQueryStreaming)(this.knowledgeGraph,h,{signal:r?.signal})).resultRowsStream.getReader();for(;;){const{done:t,value:i}=await g.read();if(t)break;const r=[];for(let e=0;e<i.length;e++){const t=i[e];let n=0,s=0;const o={properties:{}};for(o.id=t[n],n++,s++,f&&(o.originId=t[n],n++,s++,o.destinationId=t[n],n++,s++,(0,a.tE)(this.nodeConnectionsLookup,o.originId,()=>new Set).add(o.id),(0,a.tE)(this.nodeConnectionsLookup,o.destinationId,()=>new Set).add(o.id),(0,a.tE)(this.relationshipConnectionsLookup,o.id,()=>[o.originId,o.destinationId]));n<t.length;n++)o.properties[c[n-s]]=t[n];d.delete(o.id),r.push(o)}const s=o.writeToStore(r,m.dr,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),n&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),n&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);const l=this.sublayerCaches.get(e);s.forEach(t=>{l?.set(t.attributes[m.dr],t),n&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[m.dr])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[m.dr],{id:t.attributes[m.dr]}),(0,a.tE)(this.memberIdTypeLookup,t.attributes[m.dr],()=>new Set).add(e))})}const b=this.inclusionModeDefinition?.namedTypeDefinitions.get(e);if(b)for(const e of d)b.members?.delete(e)})().then(()=>{p(null)}).catch(e=>{"AbortError"===e.name?p(null):c(e)})});p.push(c),this._processingCacheUpdatesLookup.get(e)?.push(c)}if(await Promise.all(p),r?.signal?.aborted)throw(0,l.NK)()}removeFromLayer(e){const t=new Set,i=new Set(e.map(e=>e.id));for(const i of e)t.add(i.typeName),1===this.memberIdTypeLookup.get(i.id)?.size?this.memberIdTypeLookup.delete(i.id):this.memberIdTypeLookup.get(i.id)?.delete(i.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach((e,t)=>{t===i.typeName&&e.members?.has(i.id)&&e.members.delete(i.id)});t.forEach(e=>{this.sublayerCaches.get(e)?.forEach((t,n)=>{i.has(n)&&this.sublayerCaches.get(e)?.delete(n)})})}async retrieveDataFromService(e,t,i){const n=g.A.getInstance(),r=new Set,o=[];let a,l="",d=[];const M="relationship"===t.graphType,I=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,T=t.parentCompositeLayer.sublayerIdsCache.get(t.objectType.name);let C=!I&&T?Array.from(T).sort():null;if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(C=e.objectIds);else if(null!=e.objectIds&&C&&C.length>0){const t=e.objectIds;e.objectIds=C.filter(e=>t.includes(e))}else if(null!=e.objectIds)C=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],[];e.objectIds=C}if(null!=e.outFields){const i=e.outFields;i.includes("*")?t.fields.forEach(e=>{r.add(e.name)}):i.forEach(e=>{e!==m.dr&&e!==t.geometryFieldName&&r.add(e)})}if(null!=e.geometry){const i=e.geometry;let n;const d=t.parentCompositeLayer.dataManager.knowledgeGraph.serviceDefinition,m=d?.spatialReference,f=d?.serviceCapabilities?.geometryCapabilities;let g=f?.geometryMaxBoundingRectangleSizeX,w=f?.geometryMaxBoundingRectangleSizeY;if("point"===i.type){let e=i;e.spatialReference?.isWGS84||(await(0,h.initializeProjection)(e.spatialReference,y.KK),e=(0,h.project)(e,y.KK)),n=new u.A({spatialReference:y.KK,xmin:e.x-1e-4,ymin:e.y-1e-4,xmax:e.x+1e-4,ymax:e.y+1e-4})}else i?.extent?.spatialReference&&!i.spatialReference?.isWGS84?(await(0,h.initializeProjection)(i.extent.spatialReference,y.KK),n=(0,h.project)(i.extent,y.KK)):n=i.extent;if(g&&w&&m){if(4326!==m.wkid){const e=new u.A({spatialReference:m,xmax:g,ymax:w}),t=(0,h.project)(e,y.KK);g=t.xmax,w=t.ymax}if(n.xmax-n.xmin>g)throw new s.A("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${g}° latitude, limit exceeded`);if(n.ymax-n.ymin>w)throw new s.A("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${w}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){const i=await(0,p.GP)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach(e=>{i.fieldNames.includes(e.name)&&r.add(e.name)})}l=M?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&r.add(t.geometryFieldName),r.forEach(e=>{l+=`, n.${e}`,o.push(e)}),a=new _.A({openCypherQuery:l,bindParameters:{param_filter_geom:new c.A({rings:(0,b.Wq)(n)})}})}else{let i="";if(null!=e.where&&"1=1"!==e.where){const n=await(0,p.GP)(e.where,t.fieldsIndex);t.fields.forEach(e=>{n.fieldNames.includes(e.name)&&r.add(e.name)});const s={systemOidFieldName:m.dr,supportedSqlTypes:new Set(["column-reference","string","number","binary-expression"]),supportedSqlOperators:new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]),unsupportedOperationFound:!1};i=f(n.parseTree,s),s.unsupportedOperationFound&&(i="")}let n="";n=M?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let s=!1;C&&(s=!0,n+=" WHERE ID(n) IN $ids"),i&&(n+=s?" AND":" WHERE",n+=` ${i}`),n+=" return ID(n)",M&&(n+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&r.add(t.geometryFieldName),r.forEach(e=>{n+=`, n.${e}`,o.push(e)}),a=new _.A(C?{openCypherQuery:n,bindParameters:{ids:C}}:{openCypherQuery:n})}const v=(await(0,w.executeQueryStreaming)(t.parentCompositeLayer.dataManager.knowledgeGraph,a,i)).resultRowsStream.getReader();for(;;){const{done:e,value:i}=await v.read();if(e)break;const r=[];for(let e=0;e<i.length;e++){const t=i[e];let n=0,s=0;const a={properties:{}};for(a.id=t[n],n++,s++,M&&(a.originId=t[n],n++,s++,a.destinationId=t[n],n++,s++);n<t.length;n++)a.properties[o[n-s]]=t[n];r.push(a)}d=d.concat(n.writeToStore(r,m.dr,t.parentCompositeLayer.dataManager.geographicLookup.get(t.objectType.name)?.name))}return d}_isEndEntitySpatial(e,t,i){for(const n of e??[])if(this.entityTypeNames.has(n)){const e=this.geographicLookup.get(n),r=e&&this.sublayerCaches.get(n)?.get(t.attributes[i]);if(e&&r?.attributes[e.name])return!0}return!1}_getNamedTypeIdMapFromNodeIds(e){const t=new Map;return e.forEach(e=>{if(this.memberIdTypeLookup.has(e))for(const i of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(i))return;t.has(i)?t.get(i)?.push(e):t.set(i,[e])}}),t}};(0,n.Cg)([(0,d.MZ)()],I.prototype,"knowledgeGraph",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"inclusionModeDefinition",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"entityTypeNames",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"relationshipTypeNames",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"geographicLookup",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"sublayerCaches",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"nodeConnectionsLookup",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"relationshipConnectionsLookup",void 0),(0,n.Cg)([(0,d.MZ)()],I.prototype,"memberIdTypeLookup",void 0),I=(0,n.Cg)([(0,d.$K)("esri.layers.knowledgeGraph.KnowledgeGraphLayerDataManager")],I)},25927:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(31635),r=i(91429),s=i(86738),o=i(54238);let a=class extends o.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n.Cg)([(0,r.MZ)({type:s.A,json:{write:!0}})],a.prototype,"layoutGeometry",void 0),a=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.Entity")],a)},30504:(e,t,i)=>{i.d(t,{k5:()=>p,aq:()=>l,Wq:()=>d}),i(52106);var n=i(49186),r=(i(86738),i(39829),i(82799),i(94194),i(69860),i(8460),i(66552));(0,r.O)()({none:"none",startAndEnd:"start-and-end",startOnly:"start-only"}),(0,r.O)()({absoluteValue:"absolute-value",multiplier:"multiplier"});const s=new Map([["basic-grid","basic-grid"],["geographic-organic-standard","geographic-organic-standard"],["hierarchical-bottom-to-top","hierarchical-bottom-to-top"],["hierarchical-top-to-bottom","hierarchical-bottom-to-top"],["organic-community","organic-community"],["organic-fusiform","organic-standard"],["organic-leaf-circle","organic-standard"],["organic-standard","organic-standard"],["radial-node-centric","radial-root-centric"],["radial-root-centric","radial-root-centric"],["tree-bottom-to-top","tree-left-to-right"],["tree-left-to-right","tree-left-to-right"],["tree-right-to-left","tree-left-to-right"],["tree-top-to-bottom","tree-left-to-right"],["chronological-mono-timeline","chronological-mono-timeline"],["chronological-multi-timeline","chronological-multi-timeline"]]);var o=i(48441),a=i(42538);async function l(e,t,i){const n=[],r=function(e,t){const i=new Map;if(t.dataModel?.relationshipTypes)for(const e of t.dataModel.relationshipTypes)e.name&&i.set(e.name,[]);for(const t of e)i.has(t.typeName)&&i.get(t.typeName)?.push(t.id);return i}(e,t),s={},l=[];for(const[e,t]of r){if(t.length<1)continue;const i=`${e}_ids`;s[i]=t,l.push(`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $${i} RETURN id(n), labels(n)[0], id(m), labels(m)[0]`)}if(0===l.length)return[];const p=l.join(" UNION "),d=new a.A({openCypherQuery:p,bindParameters:s}),u=(await(0,o.executeQueryStreaming)(t,d,i?.requestOptions)).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await u.read();if(e)break;for(const e of t)n.push({id:e[0],typeName:e[1]}),n.push({id:e[2],typeName:e[3]})}return n}i(40863),i(94985),i(68249);const p=e=>s.get(e)??"radial-root-centric";function d(e){if(!e.spatialReference.isWGS84)throw new n.A("knowledge-graph:layer-support-utils","The utilsExtentToInBoundsRings function only supports WGS84 spatial references.");return e.clone().normalize().map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}},37531:(e,t,i)=>{i.d(t,{dt:()=>c,GG:()=>g,UQ:()=>f,Sx:()=>d});var n=i(68197),r=i(60999),s=(i(44208),i(51850)),o=(i(76369),i(62046)),a=(i(2741),i(11254),i(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new a.q(1e3),new n.A([128,128,128]);var l=i(28975),p=i(33910);function d(e,t){if(!e)return null;let i=null;return(0,p.wk)(e)?i=function(e){const t=e.symbolLayers;if(!t)return null;let i=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(i="water"===e.type?e.color:e.material?e.material.color:null)}),i?new n.A(i):null}(e):(0,p.$y)(e)&&(i="cim"===e.type?(0,o.Nk)(e):e.color?new n.A(e.color):null),i?u(i,t):null}function u(e,t){if(null==t||null==e)return e;const i=e.toRgba();return i[3]=i[3]*t,new n.A(i)}function c(e,t,i){e&&(t||null!=i)&&(t&&(t=new n.A(t)),(0,p.wk)(e)?function(e,t,i){const r=e.symbolLayers;if(!r)return;const s=(e,r=!1)=>{let s=t??e??null;return null!=i?.override&&(!s&&r&&(s=new n.A([255,255,255])),s&&(s.a=i.override)),u(s,i?.add)};r.forEach(e=>{if("water"===e.type)return void(e.color=u(e.color,i?.add));const t=null!=e.material?e.material.color:null,n=s(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new l.N({color:n}):e.material.color=n,"outline"in e&&e.outline?.color&&null!=i?.add&&(e.outline.color=u(e.outline.color,i.add)),"marker"in e&&null!=e.marker&&(e.marker.color=s(e.marker.color))})}(e,t,i):(0,p.$y)(e)&&function(e,t,i){t=t??e.color,null!=i?.override&&t&&(t.a=i.override),t&&(e.color=u(t,i?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=u(e.outline.color,i?.add))}(e,t,i))}function h(e){for(const t of e)if("number"==typeof t)return t;return null}function y(e,t,i){for(let n=0;n<3;n++){const r=e[n];switch(r){case"symbol-value":{const e=i[n];return null!=e?e/t[n]:1}case"proportional":break;default:if(r&&t[n])return r/t[n]}}return null}function m(e,t,i,n){switch(e){case"proportional":return i*n;case"symbol-value":return null!=t?t:i;default:return e}}async function f(e,t){if(e&&t)return(0,p.wk)(e)?async function(e,t){const n=e.symbolLayers;n&&await(0,r.jJ)(n,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){const i=t[2];"number"==typeof i&&(e.size=i)}(e,t);break;case"icon":case"line":case"text":!function(e,t){const i=h(t);null!=i&&(e.size=i)}(e,t);break;case"path":!function(e,t){const i=y(t,s.Un,[e.width,void 0,e.height]);null!=i&&(e.width=m(t[0],e.width,1,i),e.height=m(t[2],e.height,1,i))}(e,t);break;case"object":await async function(e,t){const{resourceSize:n,symbolSize:r}=await async function(e){const{computeObjectLayerResourceSize:t}=await i.e(5404).then(i.bind(i,95404)),n=await t(e,10),{width:r,height:s,depth:o}=e,a=[r,o,s];let l=1;for(let e=0;e<3;e++){const t=a[e];if(null!=t){l=t/n[e];break}}for(let e=0;e<3;e++)null==a[e]&&(a[e]=n[e]*l);return{resourceSize:n,symbolSize:a}}(e),s=y(t,n,r);null!=s&&(e.width=m(t[0],r[0],n[0],s),e.depth=m(t[1],r[1],n[1],s),e.height=m(t[2],r[2],n[2],s))}(e,t)}}(e,t))}(e,t):void((0,p.$y)(e)&&function(e,t){const i=h(t);if(null!=i)switch(e.type){case"simple-marker":e.size=i;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=i,e.height=i*t):(e.width=i*t,e.height=i);break}case"simple-line":e.width=i;break;case"text":e.font.size=i}}(e,t))}function g(e,t,i){if(e&&null!=t)if((0,p.wk)(e)){const n=e.symbolLayers;n&&n.forEach(e=>{if("object"===e.type)switch(i){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,p.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,o.KU)(e,t,!0)}}},37730:(e,t,i)=>{i.d(t,{T:()=>r});var n=i(43334);const r={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new n.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},40662:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(31635),r=i(91429),s=i(77901);let o=class extends s.A{constructor(e){super(e)}};o=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.ObjectValue")],o)},42095:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(31635),r=i(25482),s=i(91429),o=i(77901);let a=class extends r.o{constructor(e){super(e),this.path=[]}};(0,n.Cg)([(0,s.MZ)({type:[o.A],json:{write:!0}})],a.prototype,"path",void 0),a=(0,n.Cg)([(0,s.$K)("esri.rest.knowledgeGraph.Path")],a)},42538:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(31635),r=i(91429),s=i(16930),o=i(69622);let a=class extends o.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n.Cg)([(0,r.MZ)()],a.prototype,"openCypherQuery",void 0),a=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.GraphQuery")],a);let l=class extends a{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n.Cg)([(0,r.MZ)()],l.prototype,"bindParameters",void 0),(0,n.Cg)([(0,r.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,n.Cg)([(0,r.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,n.Cg)([(0,r.MZ)({type:s.A})],l.prototype,"outputSpatialReference",void 0),(0,n.Cg)([(0,r.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},54238:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(31635),r=i(91429),s=i(77901);let o=class extends s.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],o.prototype,"typeName",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],o.prototype,"id",void 0),o=(0,n.Cg)([(0,r.$K)("esri.rest.knowledgeGraph.GraphNamedObject")],o)},54898:(e,t,i)=>{i.d(t,{Gz:()=>H,O9:()=>Q,hZ:()=>z,CP:()=>W,dD:()=>Y,UT:()=>P,MY:()=>G,Td:()=>O,iW:()=>Z,e$:()=>$,N1:()=>U,qN:()=>F});var n=i(68197),r=i(92602),s=i(70333),o=i(49186),a=i(91869),l=i(74887),p=(i(85105),i(58769));i(39410),i(33421),i(21774),i(93885);const d=p.A;var u=i(965),c=i(91218),h=i(16930),y=i(17136),m=i(99352),f=i(15375),g=i(29005),b=i(46499),w=i(73913),_=i(77548),M=i(80812),I=i(10407),T=i(48441),C=i(25927),v=i(31635),A=i(69622),E=i(91429);let S=class extends A.A{constructor(e){super(e),this.entityAdds=void 0,this.entityUpdates=void 0,this.entityDeletes=void 0,this.relationshipAdds=void 0,this.relationshipUpdates=void 0,this.relationshipDeletes=void 0,this.options=void 0}};(0,v.Cg)([(0,E.MZ)()],S.prototype,"entityAdds",void 0),(0,v.Cg)([(0,E.MZ)()],S.prototype,"entityUpdates",void 0),(0,v.Cg)([(0,E.MZ)()],S.prototype,"entityDeletes",void 0),(0,v.Cg)([(0,E.MZ)()],S.prototype,"relationshipAdds",void 0),(0,v.Cg)([(0,E.MZ)()],S.prototype,"relationshipUpdates",void 0),(0,v.Cg)([(0,E.MZ)()],S.prototype,"relationshipDeletes",void 0),(0,v.Cg)([(0,E.MZ)()],S.prototype,"options",void 0),S=(0,v.Cg)([(0,E.$K)("esri.rest.knowledgeGraph.GraphApplyEdits")],S);var x=i(23150),k=i(54218),L=i(40863),N=i(68249);const R={initializeLayersFromClientData:async(e,t,i)=>{if(t||(t=[...e.layers,...e.tables].map(e=>e.graphTypeName)),0===t?.length)return;const n=new Map;for(const i of t)n.set(i,D(e,i));const r=await(0,T.fetchClientDataAtKeys)(e.dataManager.knowledgeGraph,Array.from(n.values()),{requestOptions:{signal:i?.signal}});for(const t of[...e.layers,...e.tables]){const i=t.objectType.name;if(null==i)continue;const n=r.get(D(e,i));if(n){const e=JSON.parse(n);null===e||"object"!=typeof e||e.hasOwnProperty("showLabels")||(e.showLabels=!1),t.read(e,{origin:"service"})}}},getInclusionDefinitionFromCypherResults:async(e,t,i)=>{const n=K(e.dataModel),r=(await(0,T.executeQueryStreaming)(e,t,i)).resultRowsStream.getReader();for(;;){const{done:e,value:t}=await r.read();if(e)break;for(const e of t)for(const t of e)V(t,n)}return n},getInclusionDefinitionFromIdTypePairs:(e,t)=>{const i=K(e.dataModel);for(const{id:e,typeName:n}of t){const t=i.namedTypeDefinitions.get(n);if(!t)throw new o.A("WebLinkChart:data-model-desync","The provided id-type pairs contained a named type not reflected in the provided knowledge graph data model.");t.members?.set(e,{id:e})}return i},getUserKGSPrivileges:async(e,t,i)=>{let n=!0,o=!1,a=!1;if(!r.A.userPrivilegesApplied)return{edit:n,fullEdit:o,updateItem:a};const l=await(0,_.wI)(t,i);if(!l)return{edit:n,fullEdit:o,updateItem:a};const p=s.id?.getCredential(`${l}/sharing`,{...i,prompt:!1});if(!p)return{edit:n,fullEdit:o,updateItem:a};const d=new M.default({id:e,portal:{url:l}});return await d.load(i),({features:{edit:n,fullEdit:o},content:{updateItem:a}}=(0,I.It)(d)),{edit:n,fullEdit:o,updateItem:a}}},D=(e,t)=>"knowledge-graph"===e.type?`${t}/Map`:`${t}/LinkChart/LinkChartSubLayer`;async function F(e,t,i){return R.initializeLayersFromClientData(e,t,i)}const j=["#4a0932","#b31515","#18382e","#a64f1b","#102432","#8c213f","#ed9310","#2c6954","#144d59","#ffc730","#75351e","#454f4b","#78b1c2","#191921","#8f8f82","#9be0c0","#dbb658","#87b051","#11495c","#c43541","#9c5596","#44498b","#ad9d63","#86afb3","#5c98ca","#b0bfa2","#73241f","#b86b53","#d9d78c","#3e756d","#f260a1","#a0d17d","#c27c30","#eb82eb","#ffdf3c","#ffb259","#ab52b3","#3cccb4","#0095ba","#d92b30"],B="#8f8f82";function O(e){return e<0||e>=j.length?new n.A(B):new n.A(j[e])}function P(e){const t=e.toArray();return new L.A({data:{type:"CIMSymbolReference",symbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,style:"solid",width:.75,color:t},{type:"CIMVectorMarker",enable:!0,size:6,markerPlacement:{type:"CIMMarkerPlacementOnLine",angleToLine:!0,relativeTo:"LineMiddle"},frame:{xmin:-10,ymin:-5,xmax:0,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[-12,-3.47],[-12,3.6],[1.96,-.03],[-12,-3.47]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:t}]}}]}]}}})}function G(e){let t="ESRI__ID",i=4;for(const n of e)if(n.name){if("name"===n.name.toLowerCase()){t=n.name;break}n.name.toLowerCase().includes("name")?(t=n.name,i=2):"esriFieldTypeString"===n.fieldType&&i>3&&(t=n.name,i=3)}return t}function Z(e,t,i){const n={color:[80,80,80],haloColor:[255,255,255],haloSize:.7,font:{size:10,weight:"normal"}},r=new b.A({labelExpressionInfo:new w.A({expression:"ESRI__ID"===i?`${t}`:`$feature.${i}`}),labelPlacement:"above-center",symbol:new N.A(n)}),s=new b.A({labelExpressionInfo:new w.A({expression:`'${t}' + IIf($feature.ESRI__AggregationCount>1, ' (' + $feature.ESRI__AggregationCount + ')', '')`}),labelPlacement:"center-along",labelPosition:"parallel",repeatLabel:!1,symbol:new N.A({...n,yoffset:"12px"})});return"entity"===e?[r]:[s]}function $(e,t,i){const n={color:[255,255,255],haloColor:[0,0,0],haloSize:.7,font:{size:10,weight:"bold"}},r="ESRI__ID"===i?`${e}`:`$feature.${i}`;return"point"===t?[new b.A({labelExpressionInfo:new w.A({expression:r}),labelPlacement:"above-center",symbol:new N.A(n)})]:"polyline"===t?[new b.A({labelExpressionInfo:new w.A({expression:r}),labelPlacement:"center-along",repeatLabel:!0,symbol:new N.A(n)})]:"polygon"===t?[new b.A({labelExpressionInfo:new w.A({expression:r}),labelPlacement:"always-horizontal",symbol:new N.A(n)})]:null}async function U(e,t,i){return R.getUserKGSPrivileges(e,t,i).catch(e=>((0,l.QP)(e),{edit:!0,fullEdit:!1,updateItem:!1}))}const q={capabilities:[],allowGeometryUpdates:!1,serviceCapabilities:{geometryCapabilities:{supportsZValues:!1,supportsMValues:!1}}};function z(e){const{capabilities:t,allowGeometryUpdates:i,serviceCapabilities:{geometryCapabilities:{supportsZValues:n,supportsMValues:r}}}=e?.serviceDefinition||q,s=e?.dataModel.arcgisManaged?t:t.filter(e=>"Query"===e),o=new Set(s);return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:r,supportsTrueCurve:!1,supportsZ:n},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:o.has("Create"),supportsDelete:o.has("Delete"),supportsEditing:o.has("Editing"),supportsChangeTracking:!1,supportsQuery:o.has("Query"),supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:o.has("Update"),supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:m.F,queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:m.P,editing:{supportsGeometryUpdate:!!e?.dataModel.arcgisManaged&&i,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:o.has("Delete"),supportsUpdateByAnonymous:!1,supportsUpdateByOthers:o.has("Update"),supportsAsyncApplyEdits:!1,zDefault:void 0}}}async function Q(e,t){const i=new S,n=t.graphTypeName,r=t.graphType,s="knowledge-graph"===t.parentCompositeLayer.type?t.geometryFieldName:null,o=!!t.fieldsIndex.get(s)?.editable,l=e=>{const i={...e};for(const e of t.fields)e.editable||delete i[e.name];for(const t of Object.keys(e))t.includes("ESRI__")&&delete i[t];return i},p=async e=>{await(0,c.initializeProjection)(e.spatialReference,h.A.WGS84);const t=(0,c.project)(e,h.A.WGS84);return"point"===t.type?t.normalize():(await(0,y.el)(t))[0]};for(const t of e.addFeatures??[]){const e=l(t.attributes);(0,_.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===n&&("entity"===r?(i.entityAdds||(i.entityAdds=[]),s&&t.geometry&&(e[s]=await p(t.geometry)),i.entityAdds.push(new C.A({properties:e,typeName:n}))):(i.relationshipAdds||(i.relationshipAdds=[]),i.relationshipAdds.push(new x.A({properties:e,typeName:n}))))}for(const t of e.updateFeatures??[]){const e=t.attributes[f.dr],a=l(t.attributes);(0,_.UC)(t.sourceLayer)&&t.sourceLayer.graphTypeName===n&&("entity"===r?(i.entityUpdates||(i.entityUpdates=[]),s&&o&&t.geometry&&(a[s]=await p(t.geometry)),i.entityUpdates.push(new C.A({id:e,properties:a,typeName:n}))):(i.relationshipUpdates||(i.relationshipUpdates=[]),i.relationshipUpdates.push(new x.A({id:e,properties:a,typeName:n}))))}const d=new Map;for(const t of e.deleteFeatures??[])if((0,k.DU)(t)){const e=t,i=(0,a.tE)(d,e.sourceLayer.graphTypeName,()=>({typeName:e.sourceLayer.graphTypeName,ids:[]}));e.sourceLayer.graphTypeName===n&&i.ids.push(e.attributes[f.dr])}else t.objectId&&"string"==typeof t.objectId&&(0,a.tE)(d,n,()=>({typeName:n,ids:[]})).ids.push(t.objectId);for(const e of d.values())e.ids.length>0&&("entity"===r?(i.entityDeletes||(i.entityDeletes=[]),i.entityDeletes.push({typeName:e.typeName,ids:e.ids})):(i.relationshipDeletes||(i.relationshipDeletes=[]),i.relationshipDeletes.push({typeName:e.typeName,ids:e.ids})));return i}function H(e,t){const i={addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]};for(const n of e.editResults)if(n.typeName===t){for(const e of n.adds)i.addFeatureResults.push({objectId:e.id,globalId:e.id});for(const e of n.updates)i.updateFeatureResults.push({objectId:e.id,globalId:e.id});for(const e of n.deletes)i.deleteFeatureResults.push({objectId:e.id,globalId:e.id})}return i}function Y(e){if(!e.objectType)return null;const t=[];for(const i of e.fields)!i.name.includes("ESRI__")&&i.editable&&"geometry"!==i.type&&t.push(new d({fieldName:i.name}));return new u.A({elements:t})}function W(e){if(!e.objectType)return null;let t=null;switch(e.geometryType){case"point":case"multipoint":t="point";break;case"polyline":t="line";break;case"polygon":t="polygon";break;default:t=null}return[new g.A({name:e.graphTypeName,drawingTool:t,prototype:{}})]}function K(e){const t={namedTypeDefinitions:new Map,generateAllSublayers:!1},{entityTypes:i,relationshipTypes:n}=e,r=[...i,...n];for(const e of r)t.namedTypeDefinitions.set(e.name,{useAllData:!1,members:new Map});return t}function V(e,t){if(e&&"object"==typeof e)if(function(e){return!(!e||"object"!=typeof e||Array.isArray(e))&&"id"in e&&"typeName"in e}(e)){const i=t.namedTypeDefinitions.get(e.typeName);if(!i)throw new o.A("WebLinkChart:data-model-desync","The query result contained a named type not reflected in the provided knowledge graph data model.");i.members.set(e.id,{id:e.id})}else if(function(e){return!(!e||"object"!=typeof e||Array.isArray(e))&&e&&"path"in e&&Array.isArray(e.path)}(e))for(const i of e.path)V(i,t);else if(Array.isArray(e))for(const i of e)V(i,t);else if(function(e){return!(!e||"object"!=typeof e||Array.isArray(e)||"id"in e)&&"properties"in e&&"object"==typeof e.properties}(e))for(const i of Object.values(e.properties??{}))V(i,t)}},62046:(e,t,i)=>{i.d(t,{Fe:()=>d,KU:()=>y,Nk:()=>s});var n=i(68197),r=i(93397);function s(e){const t=[];return o((0,r.lW)(e),t),t.length?new n.A((0,r.e6)(t[0])):null}function o(e,t){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;const n="CIMPolygonSymbol"===e.type;if(i?.symbolLayers)for(const e of i.symbolLayers)if(!(e.colorLocked||n&&((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&a(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{o(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":a(t,e.color);break;case"CIMGradientFill":l(t,e);break;case"CIMHatchFill":o(e.lineSymbol,t)}}function a(e,t){for(const i of e)if(i.join(".")===t.join("."))return;e.push(t)}function l(e,t){const i=t.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&p(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":p(e,t.colorRamp)}}function p(e,t){t&&(t.fromColor&&a(e,t.fromColor),t.toColor&&a(e,t.toColor))}function d(e,t,i){t instanceof n.A||(t=new n.A(t));const s=(0,r.lW)(e);s&&u(s,t,i)}function u(e,t,i){if(!e)return;let n;n="CIMTextSymbol"===e.type?e.symbol:e;const s="CIMPolygonSymbol"===n?.type;if(n?.symbolLayers)for(const e of n.symbolLayers){if(e.colorLocked)continue;if(s)if(i){const{layersToColor:t}=i;if(((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))&&"fill"===t||(0,r.jn)(e)&&"outline"===t)continue}else if((0,r.mA)(e)||(0,r.MM)(e)&&e.markerPlacement&&(0,r.zr)(e.markerPlacement))continue;const n=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=n;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{u(e.symbol,t,i)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=n;break;case"CIMGradientFill":c(e,t);break;case"CIMHatchFill":u(e.lineSymbol,t,i)}}}function c(e,t){const i=e.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&h(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":h(e.colorRamp,t)}}function h(e,t){if(e&&(e.fromColor&&(e.fromColor=t.toArray()),e.toColor)){const i=t.clone();i.a=0,e.toColor=i.toArray()}}function y(e,t,i=!1){const n=(0,r.lW)(e);if(i&&(t=360-t),"CIMTextSymbol"!==n?.type){if("CIMPointSymbol"===n?.type&&n.symbolLayers){const e=t-(n.angle||0);for(const t of n.symbolLayers)if((0,r.MM)(t)){let i=t.rotation||0;t.rotateClockwise?i-=e:i+=e,t.rotation=i}n.angle=t}}else n.angle=t}},62796:(e,t,i)=>{i.d(t,{A:()=>me});var n=i(31635),r=i(37838),s=i(49186),o=i(4718),a=i(53966),l=i(25728),p=i(91429),d=(i(29953),i(965)),u=i(5443),c=i(86738),h=i(39829),y=i(82799),m=i(91218),f=i(16930),g=i(21325),b=i(50498),w=i(55156),_=i(60950),M=i(89808),I=i(99959);const T=Symbol("isKnowledgeGraphGraphicOriginSymbol");var C;class v extends I.A{get[(C=T,_.ym)](){return this.sublayer}get[w.e](){return this.sublayer}get[M.Q](){return this.sublayer}constructor(e,t){super(),this[C]=!0,this.type="knowledge-graph",this.layer=e,this.sublayer=t}get id(){return this.layer.id}}const A=Symbol("isLinkChartGraphicOriginSymbol");var E;class S extends I.A{get[(E=A,M.Q)](){return this.layer}constructor(e,t){super(),this[E]=!0,this.type="link-chart",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var x=i(4146),k=i(83221),L=i(56390),N=i(64714),R=i(15375);const D=(0,i(17036).p)(),F=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,n.Cg)([(0,p.MZ)(D.fields)],i.prototype,"fields",void 0),(0,n.Cg)([(0,p.MZ)(D.fieldsIndex)],i.prototype,"fieldsIndex",void 0),i=(0,n.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayerBase")],i),i};var j=i(54898),B=i(63074),O=i(6455),P=i(87718),G=i(56658),Z=i(32756),$=i(54310),U=i(25036),q=i(82935),z=i(10873),Q=i(13213),H=i(29005),Y=i(20437),W=i(30524),K=i(46499),V=i(39383),X=i(96184),J=i(96576),ee=i(65494),te=i(41214),ie=i(48441),ne=i(22671),re=i(61956),se=i(30291),oe=i(88625),ae=i(37531),le=i(61322),pe=i(43937);function de(e){if(!e.json)return e;e.json.write=ue(e.json.write);const t=e.json.origins;if(!t)return e;let i;for(i in t){const e=t[i];e&&(e.write=ue(e.write))}return e}function ue(e){return"object"==typeof e&&e?(!1!==e.enabled&&(e.overridePolicy=function(e){const{target:t,writer:i,overridePolicy:n,...r}=e;return function(e,t){const i=he.call(this,e,t);return i.enabled?{...r,...i}:i}}(e)),e):!0===e?ce():e}function ce(){return{overridePolicy:he}}function he(e,t){const i=!!this.geometryType;let n={enabled:i};return i&&(n={...n,...ye.call(this,e,t)}),n}function ye(e,t){return{ignoreOrigin:this.originIdOf(t)>0}}let me=class extends(F((0,O.FJ)((0,G.J)((0,P.F)((0,B.dM)((0,Z.fY)((0,q.e)((0,U.j)((0,$.J)((0,l.P)(x.A))))))))))){constructor(e){super(e),this.blendMode="normal",this.charts=null,this.definitionExpression=null,this.displayFilterEnabled=!0,this.displayFilterInfo=null,this.effect=null,this.elevationInfo=null,this.featureEffect=null,this.graphType=null,this.labelsVisible=!0,this.layerType=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.objectIdField=R.dr,this.objectType=null,this.opacity=1,this.orderBy=null,this.parent=null,this.parentCompositeLayer=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.refreshInterval=0,this.source={openPorts:()=>this.load().then(()=>{const e=new MessageChannel;return new le.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{const i=re.A.fromJSON(e);return this.queryFeaturesJSON(i,t)}}}),[e.port2]})},this.type="knowledge-graph-sublayer",this.useViewTime=!0,this.visible=!0}get capabilities(){return this.parent?this.parent.sublayerCapabilities:(0,j.hZ)(null)}get isTable(){return"link-chart"!==this.parentCompositeLayer?.type&&null==this.geometryFieldName}get defaultPopupTemplate(){return this.createPopupTemplate()}get editingEnabled(){return this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveCapabilities(){const e=(0,o.o8)(this.capabilities),{operations:t,editing:i}=e;return this.userHasUpdateItemPrivileges&&(t.supportsAdd=t.supportsDelete=t.supportsEditing=t.supportsQuery=t.supportsUpdate=i.supportsDeleteByOthers=i.supportsGeometryUpdate=i.supportsUpdateByOthers=!0),this.userHasFullEditingPrivileges&&t.supportsEditing&&(t.supportsAdd=t.supportsDelete=t.supportsUpdate=i.supportsGeometryUpdate=!0),e}get effectiveEditingEnabled(){return this.userHasUpdateItemPrivileges||this.editingEnabled}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}get fields(){const e=[],t=new Map;for(const e of this.parent?.knowledgeGraph.dataModel.domains??[])t.set(e.name,e);return this.objectType?.properties?.forEach(i=>{const n="esriFieldTypeOID"===i.fieldType?"esriFieldTypeInteger":i.fieldType,r=Y.A.fromJSON({name:i.name,type:n,alias:i.alias,defaultValue:i.defaultValue,editable:i.editable,nullable:i.nullable,domain:i.domain&&t.has(i.domain)?t.get(i.domain).toJSON():void 0});e.push(r)}),e.push(Y.A.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1}),Y.A.fromJSON({name:R.M1,type:"esriFieldTypeInteger",alias:R.M1,editable:!1}),Y.A.fromJSON({name:R.BL,type:"esriFieldTypeInteger",alias:R.BL,editable:!1})),e}get formTemplate(){return this._isOverridden("formTemplate")?this._get("formTemplate"):(0,j.dD)(this)}set formTemplate(e){this._overrideIfSome("formTemplate",e)}get geometryType(){if("link-chart"===this.parentCompositeLayer?.type)return"relationship"===this.graphType?"polyline":"point";const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.geometryType;return t&&"esriGeometryNull"!==t?b.gy.fromJSON(t):null}get geometryFieldName(){if("link-chart"===this.parentCompositeLayer?.type)return R.T1;const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name);return e?.name??null}get graphicOrigin(){if(!this.parent)return null;switch(this.parent.type){case"knowledge-graph":return new v(this.parent,this);case"link-chart":return new S(this.parent,this)}}get graphTypeName(){return this.objectType?.name}set graphTypeName(e){this._set("graphTypeName",e)}get hasM(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,i=t?this.objectType?.properties?.[t]:null;return i?.hasM??!1}get hasZ(){const e=this.parentCompositeLayer?.dataManager.geographicLookup.get(this.objectType?.name),t=e?.name,i=t?this.objectType?.properties?.[t]:null;return i?.hasZ??!1}set labelingInfo(e){this._set("labelingInfo",e)}get labelingInfo(){if(this._isOverridden("labelingInfo"))return this._get("labelingInfo");if(!this.objectType||!this.parentCompositeLayer||!this.graphTypeName)return null;const e=this.objectType.properties?(0,j.MY)(this.objectType.properties):"ESRI__ID";return"link-chart"===this.parentCompositeLayer.type?(0,j.iW)(this.graphType,this.graphTypeName,e):(0,j.e$)(this.graphTypeName,this.geometryType,e)}set renderer(e){(0,W.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");const e=this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel,t=[...e?.entityTypes??[],...e?.relationshipTypes??[]].map(e=>e.name).indexOf(this.graphTypeName),i=(0,j.Td)(t);if("link-chart"===this.parentCompositeLayer?.type){if("relationship"===this.graphType)return new J.A({type:"simple",symbol:(0,j.UT)(i)});const e=(0,ee.r)((0,N.F0)(b.gy.toJSON("point")).renderer);return(0,ae.dt)(e.symbol,i),e}const n=(0,ee.r)((0,N.F0)(b.gy.toJSON(this.geometryType)).renderer);return(0,ae.dt)(n.symbol,i),n}get spatialReference(){return this.parentCompositeLayer?.dataManager?.knowledgeGraph?.dataModel?.spatialReference??f.A.WGS84}get templates(){return this._isOverridden("templates")?this._get("templates"):(0,j.CP)(this)}set templates(e){this._overrideIfSome("templates",e)}set timeInfo(e){this._set("timeInfo",e)}get title(){return this._isOverridden("title")?this._get("title"):this.graphTypeName}set title(e){this._set("title",e)}writeTitle(e,t){t.title=e??"Layer"}get userHasEditingPrivileges(){return!this.parent||this.parent.userHasEditingPrivileges}get userHasFullEditingPrivileges(){return!!this.parent&&this.parent.userHasFullEditingPrivileges}get userHasUpdateItemPrivileges(){return!!this.parent&&this.parent.userHasUpdateItemPrivileges}createPopupTemplate(e){return(0,se.tn)(this,e)}createQuery(){return new re.A({where:"1=1",outFields:["*"]})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){return this.fields.find(t=>t.name===e)?.domain||null}async queryFeatures(e,t){await this.load();const{resolvedQuery:i,queryEngine:n}=await this._setupQueryObjects(e),r=this.graphicOrigin,s=ne.A.fromJSON(await n.executeQuery(i.toJSON(),t?.signal));return s.features.forEach(e=>{e.sourceLayer=this,e.origin=r}),s}async queryFeaturesJSON(e,t){await this.load();const{resolvedQuery:i,queryEngine:n}=await this._setupQueryObjects(e);return await n.executeQuery(i.toJSON(),t?.signal)}async queryFeatureCount(e,t){await this.load();const{resolvedQuery:i,queryEngine:n}=await this._setupQueryObjects(e);return n.executeQueryForCount(i.toJSON(),t?.signal)}async queryExtent(e={},t){await this.load();const i={...e,returnGeometry:!0},{resolvedQuery:n,queryEngine:r}=await this._setupQueryObjects(i),s=await r.executeQueryForExtent(n.toJSON(),t?.signal);let o;return o=null!=s.extent?.xmin&&null!=s.extent?.xmax&&null!=s.extent?.ymin&&null!=s.extent?.ymax?new u.A(s.extent):new u.A,{count:s.count,extent:o}}async queryObjectIds(e,t){await this.load();const i=re.A.from(e);let n;if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)n=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(i,this,t);n=this.loadQueryEngine(e)}return await n.executeQueryForIds(i.toJSON(),t?.signal)}async applyEdits(e){if(!this.parentCompositeLayer.dataManager.knowledgeGraph)throw new s.A("knowledge-graph-sublayer:no-knowledge-graph","ApplyEdits cannot be executed because the parent does not have a Knowledge Graph model. This is usually caused by the layer not yet being loaded");const t=await(0,j.O9)(e,this);t.options={cascadeDelete:!0,cascadeProvenanceDelete:!!this.parent?.knowledgeGraph.serviceDefinition.supportsProvenance||void 0};const i=await(0,ie.executeApplyEdits)(this.parentCompositeLayer.dataManager.knowledgeGraph,t),n=(0,j.Gz)(i,this.graphTypeName),r={addedFeatures:n.addFeatureResults,updatedFeatures:n.updateFeatureResults,deletedFeatures:n.deleteFeatureResults,addedAttachments:n.addAttachmentResults,deletedAttachments:n.deleteAttachmentResults,updatedAttachments:n.updateAttachmentResults,exceededTransferLimit:!1,historicMoment:new Date,edits:void 0};return this.emit("edits",r),this.emit("apply-edits",{result:Promise.resolve(r)}),"link-chart"===this.parentCompositeLayer.type&&await this.parentCompositeLayer.refreshLinkChartCache([...r.addedFeatures.map(e=>e.globalId),...r.updatedFeatures.map(e=>e.globalId),...r.deletedFeatures.map(e=>e.globalId)]),n}loadQueryEngine(e){const t=new k.A({geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),i=new L.do({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:b.gy.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,featureIdInfo:{type:"object-id",fieldName:this.objectIdField},spatialReference:this.spatialReference.toJSON(),timeInfo:this.timeInfo?.toJSON(),featureStore:t});return i.featureStore.addMany(e),i}async refreshCachedQueryEngine(){const e=await this.parentCompositeLayer.dataManager.getData(new re.A({where:"1=1",outFields:[R.dr]}),this);this._cachedQueryEngine=this.loadQueryEngine(e)}load(e){return this.addResolvingPromise(this.parent.load(e).then(()=>(0,W.sv)(this.timeInfo,this.fieldsIndex))),Promise.resolve(this)}async _setupQueryObjects(e,t){const i=re.A.from(e),n=i.geometry;if(n&&!n.spatialReference?.isWGS84&&(await(0,m.initializeProjection)(n.spatialReference,g.KK),i.geometry=(0,m.project)(n instanceof h.A||n instanceof y.A||n instanceof c.A?n:n.extent,g.KK)),"link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)return{resolvedQuery:i,queryEngine:this._cachedQueryEngine};const r=await this.parentCompositeLayer.dataManager.getData(i,this,t);return{resolvedQuery:i,queryEngine:this.loadQueryEngine(r)}}};(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(B.sU)))],me.prototype,"blendMode",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"capabilities",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"isTable",null),(0,n.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:ce()}})],me.prototype,"charts",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1}},name:"layerDefinition.definitionExpression",write:{ignoreOrigin:!0}}})],me.prototype,"definitionExpression",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(O.Dp)))],me.prototype,"displayFilterEnabled",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(O.KV)))],me.prototype,"displayFilterInfo",void 0),(0,n.Cg)([(0,p.MZ)()],me.prototype,"editingEnabled",null),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(B.LF)))],me.prototype,"effect",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"effectiveCapabilities",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"effectiveEditingEnabled",null),(0,n.Cg)([(0,p.MZ)({type:oe.A})],me.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(P.Y)))],me.prototype,"featureEffect",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(Q.d)))],me.prototype,"featureReduction",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"fields",null),(0,n.Cg)([(0,p.MZ)({type:d.A})],me.prototype,"formTemplate",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"geometryType",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"geometryFieldName",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"graphicOrigin",null),(0,n.Cg)([(0,p.MZ)({type:["entity","relationship"],nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],me.prototype,"graphType",void 0),(0,n.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0,ignoreOrigin:!0}}})],me.prototype,"graphTypeName",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"hasM",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"hasZ",null),(0,n.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],me.prototype,"id",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",default:!1,write:{overridePolicy(){return{enabled:!!this.geometryType,alwaysWriteDefaults:!0,ignoreOrigin:!0}}}}})],me.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,p.MZ)({type:[K.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:function(e,t,i){const n=[["ESRI__AGGREGATION_COUNT",R.M1],["ESRI__ORIGIN_ID",R.Cz],["ESRI__DESTINATION_ID",R.KQ],["ESRI__LAYOUT_GEOMETRY",R.T1]];try{for(const t of e)for(const[e,i]of n)t.labelExpression=t.labelExpression?.replaceAll(e,i),t.labelExpressionInfo?.expression&&(t.labelExpressionInfo.expression=t.labelExpressionInfo.expression.replaceAll(e,i))}catch(e){a.A.getLogger(this).warn("Error updating labelingInfo",e)}return(0,V.w)(e,t,i)},write:ce()}})],me.prototype,"labelingInfo",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:{writer(e,t){switch(this.parentCompositeLayer?.type){case"link-chart":t.layerType="LinkChartSubLayer";break;case"knowledge-graph":t.layerType=this.geometryType?"KnowledgeGraphSubLayer":"KnowledgeGraphSubTable"}},isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],me.prototype,"layerType",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(z.fV)))],me.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(z.hG)))],me.prototype,"maxScale",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(z.hn)))],me.prototype,"minScale",void 0),(0,n.Cg)([(0,p.MZ)()],me.prototype,"objectIdField",void 0),(0,n.Cg)([(0,p.MZ)()],me.prototype,"objectType",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(z.ke)))],me.prototype,"opacity",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(Z.ne)))],me.prototype,"orderBy",void 0),(0,n.Cg)([(0,p.MZ)({clonable:!1})],me.prototype,"parent",void 0),(0,n.Cg)([(0,p.MZ)()],me.prototype,"parentCompositeLayer",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(z.M6)))],me.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:r.A,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],me.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:ye}}})],me.prototype,"refreshInterval",void 0),(0,n.Cg)([(0,p.MZ)({types:te.Hg,json:{name:"layerDefinition.drawingInfo.renderer",write:ce()}})],me.prototype,"renderer",null),(0,n.Cg)([(0,p.MZ)()],me.prototype,"source",void 0),(0,n.Cg)([(0,p.MZ)()],me.prototype,"spatialReference",null),(0,n.Cg)([(0,p.MZ)({type:H.A})],me.prototype,"templates",null),(0,n.Cg)([(0,p.MZ)({type:X.A,json:{name:"layerDefinition.timeInfo",write:{overridePolicy:ye},origins:{"web-document":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:ye}},"portal-item":{name:"layerDefinition.timeInfo",read:!0,write:{overridePolicy:ye}}}}})],me.prototype,"timeInfo",null),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],me.prototype,"title",null),(0,n.Cg)([(0,pe.K)("title")],me.prototype,"writeTitle",null),(0,n.Cg)([(0,p.MZ)({json:{read:!1}})],me.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)(de((0,o.o8)(q.B)))],me.prototype,"useViewTime",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"userHasEditingPrivileges",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"userHasFullEditingPrivileges",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"userHasUpdateItemPrivileges",null),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:ce()}})],me.prototype,"visible",void 0),me=(0,n.Cg)([(0,p.$K)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],me)},64714:(e,t,i)=>{i.d(t,{F0:()=>a,Vx:()=>d,e2:()=>c,f:()=>h});var n=i(44208),r=i(4718),s=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function d(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let i=`this${u(t)} = null;`;for(const t in e)i+=`this${u(t)} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new n}catch(i){return()=>({[t]:null,...e})}}function u(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}function h(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},67996:(e,t,i)=>{i.d(t,{cZ:()=>x,XW:()=>R,fe:()=>k});var n=i(11254),r=i(49186),s=i(91869),o=(i(90708),i(92722)),a=i(16930);class l{constructor(){this.version="",this.queryResult=new p}}class p{constructor(){this.featureResult=new d}}class d{constructor(){this.objectIdFieldName="",this.uniqueIdField=new u,this.globalIdFieldName="",this.geohashFieldName="",this.geometryProperties=new c,this.geometryType=null,this.spatialReference=new a.A,this.exceededTransferLimit=!1,this.hasZ=!1,this.hasM=!1,this.transform=new h,this.fields=[],this.fieldNameToAttributeIndexMap={},this.values=[],this.features=[],this.geometryFields=[]}}class u{constructor(){this.name="",this.isSystemMaintained=!1}}class c{constructor(){this.shapeAreaFieldName="",this.shapeLengthFieldName="",this.units=""}}class h{constructor(){this.quantizeOriginPosition="upperLeft",this.scale=new y,this.translate=new m}}class y{constructor(){this.xScale=0,this.yScale=0,this.mScale=0,this.zScale=0}}class m{constructor(){this.xTranslate=0,this.yTranslate=0,this.mTranslate=0,this.zTranslate=0}}class f{constructor(){this.name="",this.fieldType="esriFieldTypeString",this.alias="",this.sqlType="sqlTypeVarchar",this.domain="",this.defaultValue=""}}class g{constructor(){this.attributes=[],this.compressedGeometry=new b,this.centroid=new b,this.aggregateGeometries=[]}}class b{constructor(){this.geometryType=null,this.lengths=[],this.coords=[]}}const w=["ELEMENTUID","TYPENAME"];var _=i(45724),M=i(35448);const I={upperLeft:0,lowerLeft:1},T={sqlTypeBigInt:0,sqlTypeBinary:1,sqlTypeBit:2,sqlTypeChar:3,sqlTypeDate:4,sqlTypeDecimal:5,sqlTypeDouble:6,sqlTypeFloat:7,sqlTypeGeometry:8,sqlTypeGUID:9,sqlTypeInteger:10,sqlTypeLongNVarchar:11,sqlTypeLongVarbinary:12,sqlTypeLongVarchar:13,sqlTypeNChar:14,sqlTypeNVarChar:15,sqlTypeOther:16,sqlTypeReal:17,sqlTypeSmallInt:18,sqlTypeSqlXml:19,sqlTypeTime:20,sqlTypeTimestamp:21,sqlTypeTimestamp2:22,sqlTypeTinyInt:23,sqlTypeVarbinary:24,sqlTypeVarchar:25};var C=i(93637);function v(e){const t=new b;t.geometryType=(0,C.i7)(M.bV,e.geometry_type.value);const i=[],n=[];for(let t=0;t<e.lengths.length;t++)i.push(e.lengths[t]);for(let t=0;t<e.coords.length;t++)n.push(e.coords[t]);return t.lengths=i,t.coords=n,t}function A(e){const t=new f;return t.name=e.name,t.alias=e.alias,t.fieldType=(0,C.i7)(M.r5,e.field_type.value),t.sqlType=(0,C.i7)(T,e.sql_type.value),t.domain=e.domain,t.defaultValue=e.default_value,t}function E(e){const t=A(e);return t.geometryType=(0,C.i7)(M.bV,e.geometry_type.value),t}function S(e){const t=new h;t.quantizeOriginPosition=(0,C.i7)(I,e.quantizeOriginPosition.value);const i=t.scale,n=e.scale;i.xScale=n.xScale,i.yScale=n.yScale,i.mScale=n.mScale,i.zScale=n.zScale;const r=t.translate,s=e.translate;return r.xTranslate=s.xTranslate,r.yTranslate=s.yTranslate,r.mTranslate=s.mTranslate,r.zTranslate=s.zTranslate,t}async function x(e,t,i){t??=!1;const o={generateAllSublayers:t,namedTypeDefinitions:new Map};return await async function(e,t){const i=await(0,n.A)(e,{responseType:"array-buffer",signal:t?.signal}),s=await i.data;return async function(e){const t=new((await(0,_.I)()).MapOfObjectIdentifierSetsDecoder),i=t.decode(new Uint8Array(e)),n=new Map;if(0!==i.error_code)throw new r.A("knowledge-graph:layer-support-utils",i.error_message);const s=t.get_map_of_identifier_sets(),o=s.keys,a=o.size();for(let e=0;e<a;e++){const t=o.get(e),i=s.query_identifier_set(t),a=[];if(1===i.id_array_type.value){const e=i.get_globalid_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_globalid_at(i))}else if(3===i.id_array_type.value){const e=i.get_identifier_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_identifier_at(i).toString())}else if(2===i.id_array_type.value){const e=i.get_string_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_string_at(i))}else{if(0!==i.id_array_type.value)throw new r.A("knowledge-graph:layer-support-utils","Tried to encode an unexpected ID Array type.");{const e=i.get_oid_array(),t=e.count();for(let i=0;i<t;i++)a.push(e.get_objectid_at(i).toString())}}n.set(t,a)}return t.delete(),n}(new Uint8Array(s))}(e,i).then(e=>{!function(e,t){for(const[i,n]of e){const e=(0,s.tE)(t.namedTypeDefinitions,i,()=>({useAllData:!1,members:new Map}));for(const t of n)e.members.has(t)||e.members.set(t,{id:t})}}(e,o)}),o}async function k(e){const t=await(0,_.I)(),i=new t.MapOfObjectIdentifierSets;!function(e,t,i){for(const[n,r]of i.namedTypeDefinitions){if(!r.members||r.useAllData)continue;const i=r.members.keys();let s=!1,o=!0;const a=new t.ObjectIdArray,l=new t.StringArray,p=new t.GlobalIdArray,d=new t.IdentifierArray,u=new t.ObjectIdentifierSet;for(const e of i)o&&(s=!isNaN(Number(e)),o=!1),s?a.add_objectid(Number(e)):(l.add_string(e),p.add_globalid(e)),d.add_identifier(e);u.set_oid_array(a),u.set_string_array(l),u.set_globalid_array(p),u.set_identifier_array(d),a.delete(),l.delete(),p.delete(),d.delete(),e.put_identifier_set(n,u),u.delete()}}(i,t,e);const n=new t.MapOfObjectIdentifierSetsEncoder;try{n.set_map_of_identifier_sets(i),n.encode();const e=n.get_encoding_result();if(0!==e.error.error_code)throw new r.A("knowledge-graph:layer-support-utils",e.error.error_message);const t=structuredClone(e.get_byte_buffer());return n.delete(),t}finally{i.delete()}}async function L(e,t){const i=await(0,n.A)(e,{responseType:"array-buffer",signal:t?.signal});return async function(e){const t=new((await(0,_.I)()).FeatureCollectionDecoder),i=t.decode(new Uint8Array(e));if(0!==i.error_code)throw new r.A("knowledge-graph:layer-support-utils",i.error_message);const n=function(e){const t=new l;t.version=e.version;const i=e.get_query_result();if(0!==i.results_type.value)throw new Error("Got a non-feature collection type");const n=i.get_feature_result(),r=t.queryResult.featureResult;r.objectIdFieldName=n.objectid_field_name,r.exceededTransferLimit=n.exceeded_transfer_limit,r.hasM=n.has_m,r.hasZ=n.has_z,r.geometryType=(0,C.i7)(M.bV,n.geometry_type.value),r.globalIdFieldName=n.globalid_field_name,r.geohashFieldName=n.geohash_field_name;const s=r.uniqueIdField,o=n.unique_id_field;s.name=o.name,s.isSystemMaintained=o.isSystemMaintained;const a=r.geometryProperties,p=n.geometry_properties;a.shapeAreaFieldName=p.shapeAreaFieldName,a.shapeLengthFieldName=p.shapeLengthFieldName,a.units=p.units;const d=r.spatialReference,u=n.spatial_reference;d.wkid=u.wkid,d.latestWkid=u.latestWkid,d.vcsWkid=u.vcsWkid,d.latestVcsWkid=u.latestVcsWkid,d.wkt=u.wkt,r.transform=S(n.transform);const c=r.fields,h=r.fieldNameToAttributeIndexMap,y=n.fields,m=y.size();for(let e=0;e<m;e++){const t=y.get(e),i=A(t);c.push(i),h[i.name]=e,t.delete()}y.delete();const f=r.values,b=n.values_count();for(let e=0;e<b;e++)f.push(n.get_value_at(e));const _=r.features,I=n.features,T=I.size();if(T>0)for(const e of w)if(void 0===h[e])throw new Error(`Feature collection missing required attribute: ${e}`);for(let e=0;e<T;e++){const t=new g,i=I.get(e),n=t.attributes,r=i.attributes_count();for(let e=0;e<r;e++)n.push(i.get_attribute_at(e));const s=i.get_compressed_geometry();s&&(t.compressedGeometry=v(s),t.centroid=v(i.get_centroid()));const o=t.aggregateGeometries,a=i.aggregate_geometries,l=a.size();for(let e=0;e<l;e++){const t=a.get(e),i=v(t);o.push(i),t.delete()}a.delete(),_.push(t),i.delete()}I.delete();const x=r.geometryFields,k=n.geometry_fields,L=k.size();for(let e=0;e<L;e++){const t=k.get(e),i=E(t);x.push(i),t.delete()}return k.delete(),t}(t.get_feature_collection());return t.delete(),n}(await i.data)}function N(e,t){if(!e?.queryResult?.featureResult)return t;const{hasZ:i,hasM:n}=e.queryResult.featureResult,r=e.queryResult.featureResult.fieldNameToAttributeIndexMap;for(const a of e.queryResult.featureResult.features){const e=a.attributes[r.TYPENAME],l=(0,s.tE)(t.namedTypeDefinitions,e,()=>({useAllData:!1,members:new Map})),p=a.attributes[r.ELEMENTUID];if(a.compressedGeometry?.coords?.length>0){let e=a.compressedGeometry.lengths;"esriGeometryPoint"===a.compressedGeometry.geometryType&&(e=[]),l.members.set(p,{id:p,linkChartLocation:new o.A(e,a.compressedGeometry.coords,i,n)})}else l.members.set(p,{id:p})}return t}const R={fetchAndConvertSerializedLinkChart:(e,t)=>async function(e,t){const i=[],n={generateAllSublayers:!1,namedTypeDefinitions:new Map};return e.entitiesUrl&&i.push(L(e.entitiesUrl,t).then(e=>{N(e,n)})),e.relationshipsUrl&&i.push(L(e.relationshipsUrl,t).then(e=>{N(e,n)})),await Promise.all(i),n}(e,t)}},69860:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(65864),r=i(90708),s=i(43334),o=i(15375);class a{constructor(){this._featureLookup=new Map}static getInstance(){return a.instance||(a.instance=new a),a.instance}static resetInstance(){a.instance&&(a.instance=null)}deleteFromStore(e){e.forEach(e=>{this._featureLookup.delete(e)})}readFromStoreByList(e){const t=[];return e.forEach(e=>{const i=this.readFromStoreById(e);i&&t.push(i)}),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,i){const a=[];return e.forEach(e=>{if(!e?.id)return;e.properties||(e.properties=[]);let l=null;i&&e.properties[i]&&(l=(0,r.Ux)(e.properties[i])),"originId"in e&&"destinationId"in e&&(e.properties[o.Cz]=e.originId,e.properties[o.KQ]=e.destinationId),e.properties[t]=e.id;let p=e.properties;if(e.id){const t=this._featureLookup.get(e.id);if(t?.attributes){p={...t.attributes,...p};const e=i&&p[i];null!=e&&(p[i]=(0,n.rS)(e)),l=l??t.geometry}}const d=new s.Om(l?.clone(),p,null,e.id);this._featureLookup.set(`${e.typeName?`${e.typeName}__${e.id}`:e.id}`,d),a.push(d)}),a}}},75503:(e,t,i)=>{i.d(t,{EC:()=>v,wq:()=>a});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=c,this._compareMinY=h,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),M.prune(),I.prune(),T.prune(),C.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data;const n=this._toBBox;if(w(e,i))for(M.clear();i;){for(let r=0,s=i.children.length;r<s;r++){const s=i.children[r],o=i.leaf?n(s):s;w(e,o)&&(i.leaf?t(s):b(e,o)?l(s,t):M.push(s))}i=M.pop()}}collides(e){let t=this._data;const i=this._toBBox;if(!w(e,t))return!1;for(M.clear();t;){for(let n=0,r=t.children.length;n<r;n++){const r=t.children[n],s=t.leaf?i(r):r;if(w(e,s)){if(t.leaf||b(e,s))return!0;M.push(r)}}t=M.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new E([]),this}remove(e){if(!e)return this;let t,i=this._data,s=null,o=0,a=!1;const l=this._toBBox(e);for(T.clear(),C.clear();i||T.length>0;){if(i||(i=T.pop(),s=T.data[T.length-1],o=C.pop()??0,a=!0),i.leaf&&(t=(0,n.qh)(i.children,(0,r.zI)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),T.push(i),this._condense(T),this;a||i.leaf||!b(i,l)?s?(o++,i=s.children[o],a=!1):i=null:(T.push(i),C.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,n){const r=i-t+1;let s=this._maxEntries;if(r<=s){const n=new E(e.slice(t,i+1));return p(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));const o=new S([]);o.height=n;const a=Math.ceil(r/s),l=a*Math.ceil(Math.sqrt(s));_(e,t,i,l,this._compareMinX);for(let r=t;r<=i;r+=l){const t=Math.min(r+l-1,i);_(e,r,t,a,this._compareMinY);for(let i=r;i<=t;i+=a){const r=Math.min(i+a-1,t);o.children.push(this._build(e,i,r,n-1))}}return p(o,this._toBBox),o}_insert(e,t,i){const n=this._toBBox,r=i?e:n(e);T.clear();const s=function(e,t,i,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){const o=t.children[s],a=y(o),l=f(e,o)-a;l<r?(r=l,n=a<n?a:n,i=o):l===r&&a<n&&(n=a,i=o)}t=i||t.children[0]}return t}(r,this._data,t,T);for(s.children.push(e),u(s,r);t>=0&&T.data[t].children.length>this._maxEntries;)this._split(T,t),t--;!function(e,t,i){for(let n=i;n>=0;n--)u(t.data[n],e)}(r,T,t)}_split(e,t){const i=e.data[t],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);const s=this._chooseSplitIndex(i,r,n);if(!s)return;const o=i.children.splice(s,i.children.length-s),a=i.leaf?new E(o):new S(o);a.height=i.height,p(i,this._toBBox),p(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new S([e,t]),this._data.height=e.height+1,p(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let n,r,s;n=r=1/0;for(let o=t;o<=i-t;o++){const t=d(e,0,o,this._toBBox),a=d(e,o,i,this._toBBox),l=g(t,a),p=y(t)+y(a);l<n?(n=l,s=o,r=p<r?p:r):l===n&&p<r&&(r=p,s=o)}return s}_chooseSplitAxis(e,t,i){const n=e.leaf?this._compareMinX:c,r=e.leaf?this._compareMinY:h;this._allDistMargin(e,t,i,n)<this._allDistMargin(e,t,i,r)&&e.children.sort(n)}_allDistMargin(e,t,i,n){e.children.sort(n);const r=this._toBBox,s=d(e,0,t,r),o=d(e,i-t,i,r);let a=m(s)+m(o);for(let n=t;n<i-t;n++){const t=e.children[n];u(s,e.leaf?r(t):t),a+=m(s)}for(let n=i-t-1;n>=t;n--){const t=e.children[n];u(o,e.leaf?r(t):t),a+=m(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const r=e.data[t-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else p(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(I.clear();i;){if(!0===i.leaf)for(const e of i.children)t((0,r.zI)(e));else I.pushArray(i.children);i=I.pop()??null}}function p(e,t){d(e,0,e.children.length,t,e)}function d(e,t,i,n,r){r||(r=new E([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<i;o++)s=e.children[o],u(r,e.leaf?n(s):s);return r}function u(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function h(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const i=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function b(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function w(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function _(e,t,i,n,r){const s=[t,i];for(;s.length;){const t=s.pop(),i=s.pop();if(t-i<=n)continue;const a=i+Math.ceil((t-i)/n/2)*n;(0,o.q)(e,a,i,t,r),s.push(i,a,a,t)}}const M=new s.A,I=new s.A,T=new s.A,C=new s.A({deallocator:void 0});class v{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends v{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class E extends A{constructor(e){super(),this.children=e,this.leaf=!0}}class S extends A{constructor(e){super(),this.children=e,this.leaf=!1}}},77901:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(31635),r=i(25482),s=i(91429);let o=class extends r.o{constructor(e){super(e),this.properties=null}};(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],o.prototype,"properties",void 0),o=(0,n.Cg)([(0,s.$K)("esri.rest.knowledgeGraph.GraphObject")],o)},83221:(e,t,i)=>{i.d(t,{A:()=>y});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),a=i(70328),l=i(19419),p=i(90708),d=i(6518),u=i(51441),c=i(37730);const h=(0,a.vt)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new d.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,i,n,r]=this.fullBounds;return{xmin:t,ymin:i,xmax:n,ymax:r,spatialReference:(0,u.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(h,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let n;if(i?(e.displayId=i.displayId,n=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);n=(0,p.jQ)(null!=n?n:(0,l.vt)(),e.geometry),null!=n&&this._boundsStore.set(t,n),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;const{geometry:n,attributes:s}=e;for(const e in s)i.attributes[e]=s[e];return n&&(i.geometry=n,this._boundsStore.set(t,(0,p.jQ)((0,l.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,2406,3169,4161,6061,7373,8125],{4197:(e,t,n)=>{n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>a,xm:()=>i});var r=n(34275),o=n(9093);function s(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function i(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e){return[...e]}function c(e){const t=(0,o.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>o,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,fromValues:function(e,t,n,r,o,s,i,a,u,c,l,h,m,f,g,d){return[e,t,n,r,o,s,i,a,u,c,l,h,m,f,g,d]}},Symbol.toStringTag,{value:"Module"}))},36633:(e,t,n)=>{n.d(t,{O:()=>m});var r=n(55537),o=n(79187),s=n(83661),i=n(15756);function a(){return u(new s.P,-1,Number.NaN)}function u(e,t,n){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function l(e,t,n=-1,a=-1){if(e.isEmpty())return 3;const u=e.getGeometryType();if((0,r.f)(u))return function(e,t,n,o){if(n>=0||o>=0)return(0,r.a)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const n=s.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return n<0?1:n>0?0:2}const i=e.getClosestCoordinate(t,!1),a=e.getTangent(i),u=e.getCoord2D(i),c=s.P.orientationRobust(t,u,u.add(a));return c<0?1:c>0?0:2}(e,t,n,a);if(u===r.G.enumPolygon)return function(e,t,n,s){(n>=0||s>=0)&&(0,r.a)("");const a=new o.Envelope2D;e.queryEnvelope(a);const u=(0,i.l)(e,t,0);return 0===u?0:1===u?1:2}(e,t,n,a);if(u===r.G.enumPolyline)return function(e,t,n,o){(n<0&&o>=0||n>=0&&o<0)&&(0,r.a)("");const i=e.querySegmentIterator();if(n<0){let e=Number.MAX_VALUE,r=0;for(;i.nextPath();)for(;i.hasNextSegment();){const a=i.nextSegment(),u=a.getClosestCoordinate(t,!1),c=a.getCoord2D(u),l=s.P.sqrDistance(c,t);l<e?(r=1,n=i.getStartPointIndex(),o=i.getPathIndex(),e=l):l===e&&r++}if(0===r)return 3;if(1===r)return i.resetToVertex(n,o),l(i.nextSegment(),t)}const a=function(e,t,n,r){const o={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(o.i1=function(e,t,n){for(e.resetToVertex(t,n);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,n);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,n,r),-1!==o.i1){t.resetToVertex(o.i1,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r),a=s.P.sqrDistance(i,e);{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight1=t.crossProduct(r)<0}if(o.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,o.i1),-1!==o.i2){t.resetToVertex(o.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(s.P.sqrDistance(i,e)>a)o.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight2=t.crossProduct(r)<0}}if(-1===o.i2&&(o.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,o.i1),-1!==o.i2)){t.resetToVertex(o.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(s.P.sqrDistance(i,e)>a)o.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight2=t.crossProduct(r)<0;const s=o.i1;o.i1=o.i2,o.i2=s;const a=o.bRight1;o.bRight1=o.bRight2,o.bRight2=a}}}return o}(t,i,n,o);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{i.resetToVertex(a.i1,-1);const e=i.nextSegment().getTangent(1);i.resetToVertex(a.i2,-1);const t=i.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return i.resetToVertex(n,o),l(i.nextSegment(),t)}(e,t,n,a);if(u===r.G.enumEnvelope){const n=new o.Envelope2D;return e.queryEnvelope(n),n.contains(t)?n.containsExclusive(t)?1:2:0}return 3}var h=n(95213);class m{getOperatorType(){return 10500}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,n,o){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case r.G.enumPolyline:case r.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,n,o);default:(0,r.t)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,r.t)("")}}getNearestVertices(e,t,n,o){if(0===o&&(0,r.a)(""),t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertices(e,t,n,o);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,n,o);default:(0,r.t)("")}}multiPathGetNearestCoordinate(e,t,n,a){if(e.getGeometryType()===r.G.enumPolygon&&n){const n=new o.Envelope2D;e.queryEnvelope(n);const r=(0,h.a)(null,n,!1);let s;if(s=(0,i.l)(e,t,a?0:r),0!==s){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),m=new s.P;let f=-1,g=-1,d=Number.MAX_VALUE,y=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),n=e.getClosestCoordinate(t,!1),r=e.getCoord2D(n),o=s.P.sqrDistance(r,t);o<d?(y=1,m.assign(r),f=c.getStartPointIndex(),g=c.getPathIndex(),d=o):o===d&&y++}-1===f&&(0,r.a)("");const x=u(m,f,Math.sqrt(d));if(a)if(e.getGeometryType()!==r.G.enumPolygon){let n=!1;if(y>1){const r=l(e,t,f,g);n=0!==r&&3!==r}else c.resetToVertex(f,g),n=0!==l(c.nextSegment(),t);x.m_bRightSide=n}else n||0!==(0,i.l)(e,t,0)&&(x.m_bRightSide=!0);return x}pointGetNearestVertex(e,t){const n=e.getXY();return u(n,0,s.P.distance(n,t))}multiVertexGetNearestVertex(e,t){const n=e.getAttributeStreamRef(0),r=e.getPointCount();let o=-1;const i=new s.P;let a=Number.MAX_VALUE;const c=new s.P;for(let e=0;e<r;e++){n.queryPoint2D(2*e,c);const r=s.P.sqrDistance(c,t);r<a&&(i.assign(c),o=e,a=r)}return u(i,o,Math.sqrt(a))}pointGetNearestVertices(e,t,n,r){const o=[];if(0!==r){const r=n*n,i=e.getXY(),a=s.P.sqrDistance(i,t);a<=r&&o.push(u(i,0,Math.sqrt(a)))}return o}multiVertexGetNearestVertices(e,t,n,r){const o=[];if(0!==r){const i=e.getAttributeStreamRef(0),a=e.getPointCount();o.length=r+1;const c=n*n;for(let e=0;e<a;e++){const n=i.read(2*e),r=i.read(2*e+1),a=t.x-n,l=t.y-r,h=a*a+l*l;h<=c&&o.push(u(s.P.construct(n,r),e,Math.sqrt(h)))}o.sort((e,t)=>e.m_distance-t.m_distance)}return o.slice(0,r)}}},48032:(e,t,n)=>{n.d(t,{getNearestCoordinate:()=>r.g}),n(36633),n(86211),n(78125),n(79533);var r=n(59260)},59260:(e,t,n)=>{n.d(t,{g:()=>u,p:()=>l});var r=n(36633),o=n(86211),s=n(78125),i=n(79533);const a=new r.O;function u(e,t,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:u=!0,unit:c}=n,l=a.getNearestCoordinate((0,s.fromGeometry)(e),(0,s.fromPoint)(t).getXY(),u,r);if(c&&l.m_distance){const t=(0,s.getSpatialReference)(e);l.m_distance=(0,o.PQ)(l.m_distance,t,c)}return(0,i.C)(l,e,r)}const c=a.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:u,getNearestVertex:function(e,t,n={}){const{unit:r}=n,u=a.getNearestVertex((0,s.fromGeometry)(e),(0,s.fromPoint)(t).getXY());if(r&&u.m_distance){const t=(0,s.getSpatialReference)(e);u.m_distance=(0,o.PQ)(u.m_distance,t,r)}return(0,i.C)(u,e)},getNearestVertices:function(e,t,n,r,u={}){const{unit:c}=u,l=(0,s.getSpatialReference)(e);return c&&n&&(n=(0,o.UW)(n,c,l)),a.getNearestVertices((0,s.fromGeometry)(e),(0,s.fromPoint)(t).getXY(),n,r).map(t=>(c&&t.m_distance&&(t.m_distance=(0,o.PQ)(t.m_distance,l,c)),(0,i.C)(t,e)))},supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},69397:(e,t,n)=>{n.d(t,{$B:()=>o,Qf:()=>c,Qh:()=>a,RS:()=>s,ez:()=>m,lM:()=>i,qK:()=>h});var r=n(34275);function o(e){return 32+e.length}const s=16;function i(e){if(!e)return 0;let t=h;for(const n in e)e.hasOwnProperty(n)&&(t+=u(e[n],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return c(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let n=m;for(let r=0;r<t;r++)n+=u(e[r]);return n}(e);let t=h;for(const n in e)e.hasOwnProperty(n)&&(t+=u(e[n]));return t}function u(e,t=!0){switch(typeof e){case"object":return t?a(e):h;case"string":return o(e);case"number":return s;case"boolean":return 4;default:return 8}}function c(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?l(t,s):0:0),0)}function l(e,t){return m+e.length*t}const h=32,m=16,f=145},70328:(e,t,n)=>{n.d(t,{BI:()=>P,DC:()=>h,Ej:()=>f,Ie:()=>x,Jt:()=>p,Ne:()=>g,RF:()=>l,aI:()=>N,fA:()=>i,gE:()=>u,hZ:()=>y,iT:()=>m,is:()=>G,qv:()=>V,vI:()=>d,vY:()=>a,v_:()=>M,vt:()=>s,w1:()=>c});var r=n(5443),o=(n(19419),n(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function i(e,t,n,r,o,i,a=s()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=o,a[5]=i,a}function a(e,t=s()){return function(e,t,n,r=s()){return y(r,V),function(e,t,n=0,r=t.length/3){let o=e[0],s=e[1],i=e[2],a=e[3],u=e[4],c=e[5];for(let e=0;e<r;e++)o=Math.min(o,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),i=Math.min(i,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),c=Math.max(c,t[n+3*e+2]);e[0]=o,e[1]=s,e[2]=i,e[3]=a,e[4]=u,e[5]=c}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,o.jh)(24)){const[n,r,s,i,a,u]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=a,t[8]=s,t[9]=n,t[10]=a,t[11]=u,t[12]=i,t[13]=r,t[14]=s,t[15]=i,t[16]=r,t[17]=u,t[18]=i,t[19]=a,t[20]=s,t[21]=i,t[22]=a,t[23]=u,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function g(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function d(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function x(e){return e?y(e,V):s(V)}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function P(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=o,e[5]=Number.POSITIVE_INFINITY,e}function G(e){return 6===e.length}function N(e,t,n){if(null==e||null==t)return e===t;if(!G(e)||!G(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const V=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>p,fromGeometry:()=>x,fromMultipoint:()=>P,fromPoint:()=>G,fromPolygon:()=>N,fromPolyline:()=>V,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>C,getSpatialReference:()=>y,toExtent:()=>b,toGeometry:()=>S,toMultipoint:()=>v,toPoint:()=>_,toPolygon:()=>R,toPolyline:()=>I});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),l=n(39829),h=n(82799),m=(n(90293),n(34772));const f="_gxVersion",g=2,d=1;function y(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return G(e);case"multipoint":return P(e);case"polyline":return V(e);case"polygon":return N(e);case"extent":return p(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function p(e){if(!e.getCacheValue(f)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(g,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(d,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function P(e){if(!e.getCacheValue(f)){const t=new i.M,n=new s.P,r=e.points,o=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),o&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function G(e){if(!e.getCacheValue(f)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(f,t)}return e.getCacheValue(f)}function N(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,m.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function V(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,m.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function M(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function C(e){return(0,m.fromSpatialReference)(e)}function S(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return _(e,t);case o.G.enumEnvelope:return b(e,t);case o.G.enumMultiPoint:return v(e,t);case o.G.enumPolyline:return I(e,t);case o.G.enumPolygon:return R(e,t)}return null}function b(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(g,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(d,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(f,e),n}function v(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),i=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];o&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:o,points:i,spatialReference:t});return c.setCacheValue(f,e),c}function _(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(f,e),n}function R(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(f,e),n}function I(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(f,e),n}},79533:(e,t,n)=>{n.d(t,{C:()=>o});var r=n(78125);function o(e,t,n=!1){const o=(0,r.toPoint)(e.m_coordinate,(0,r.getSpatialReference)(t)),s=e.m_distance,i=e.isEmpty(),a=e.m_bRightSide;return{coordinate:o,distance:s,isEmpty:i,...n&&{isRightSide:a},vertexIndex:e.m_vertexIndex}}},92722:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(69397);class o{constructor(e=[],t=[],n=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:n,hasM:r}){return new o(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const s=n-e,i=r-t;return new o([5],[e,t,s,0,0,i,-s,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let o=this.coords[r*t],s=this.coords[r*t+1];for(let i=1;i<n;i+=1){const n=r*(t+i),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-o)*(u+s),o=a,s=u}t+=n}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let o=0;o<r;o++){const r=n*(t+o);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;const{stride:o}=this;for(const e of n){for(let n=1;n<e;n++){const e=o*(r+n);t[e]+=t[e-o],t[e+1]+=t[e+1-o]}r+=e}return e}clone(e){if(this.isPoint)return new o([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,s=this.coords.slice(0,r*n);return e?(e.set(s),new o(t,e)):new o(t,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const n=new Array(t*e);for(let t=0,r=0;t<n.length;t+=e)n[r++]=this.coords[t],n[r++]=this.coords[t+1];return new o(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3637,4377,6061],{3637:(t,n,e)=>{e.r(n),e.d(n,{execute:()=>o,executeMany:()=>s,isSimple:()=>u});var r=e(81150),i=e(34772);function o(t){const n=(0,i.fromGeometry)(t),e=n.getSpatialReference();return(0,i.toGeometry)((0,r.g7)(n.getGeometry(),e,!1),e)}function s(t){const[n,e]=(0,i.fromGeometries)(t);return(0,r.zo)(n,e,!1).map(t=>(0,i.toGeometry)(t,e))}function u(t){const n=(0,i.fromGeometry)(t);return(0,r.Pg)(n.getGeometry(),n.getSpatialReference(),!1)}},4197:(t,n,e)=>{e.d(n,{Vj:()=>h,cj:()=>c,jh:()=>o,l5:()=>u,xm:()=>s});var r=e(34275),i=e(9093);function o(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function s(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function c(t){return[...t]}function h(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,n,e,r,i,o,s,u,c,h,a,f,l,m,g,y){return[t,n,e,r,i,o,s,u,c,h,a,f,l,m,g,y]}},Symbol.toStringTag,{value:"Module"}))},69397:(t,n,e)=>{e.d(n,{$B:()=>i,Qf:()=>h,Qh:()=>u,RS:()=>o,ez:()=>l,lM:()=>s,qK:()=>f});var r=e(34275);function i(t){return 32+t.length}const o=16;function s(t){if(!t)return 0;let n=f;for(const e in t)t.hasOwnProperty(e)&&(n+=c(t[e],!1));return n}function u(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const n=t.length;if(0===n||"number"==typeof t[0])return a(t,8);let e=l;for(let r=0;r<n;r++)e+=c(t[r]);return e}(t);let n=f;for(const e in t)t.hasOwnProperty(e)&&(n+=c(t[e]));return n}function c(t,n=!0){switch(typeof t){case"object":return n?u(t):f;case"string":return i(t);case"number":return o;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,n)=>t+(n?(0,r.iu)(n)?n.byteLength+m:Array.isArray(n)?a(n,o):0:0),0)}function a(t,n){return l+t.length*n}const f=32,l=16,m=145},70328:(t,n,e)=>{e.d(n,{BI:()=>I,DC:()=>f,Ej:()=>m,Ie:()=>M,Jt:()=>x,Ne:()=>g,RF:()=>a,aI:()=>p,fA:()=>s,gE:()=>c,hZ:()=>d,iT:()=>l,is:()=>A,qv:()=>G,vI:()=>y,vY:()=>u,v_:()=>w,vt:()=>o,w1:()=>h});var r=e(5443),i=(e(19419),e(4197));function o(t=w){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function s(t,n,e,r,i,s,u=o()){return u[0]=t,u[1]=n,u[2]=e,u[3]=r,u[4]=i,u[5]=s,u}function u(t,n=o()){return function(t,n,e,r=o()){return d(r,G),function(t,n,e=0,r=n.length/3){let i=t[0],o=t[1],s=t[2],u=t[3],c=t[4],h=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),o=Math.min(o,n[e+3*t+1]),s=Math.min(s,n[e+3*t+2]),u=Math.max(u,n[e+3*t]),c=Math.max(c,n[e+3*t+1]),h=Math.max(h,n[e+3*t+2]);t[0]=i,t[1]=o,t[2]=s,t[3]=u,t[4]=c,t[5]=h}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,i.jh)(24)){const[e,r,o,s,u,c]=t;return n[0]=e,n[1]=r,n[2]=o,n[3]=e,n[4]=r,n[5]=c,n[6]=e,n[7]=u,n[8]=o,n[9]=e,n[10]=u,n[11]=c,n[12]=s,n[13]=r,n[14]=o,n[15]=s,n[16]=r,n[17]=c,n[18]=s,n[19]=u,n[20]=o,n[21]=s,n[22]=u,n[23]=c,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function a(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[3]),t[4]=Math.max(t[4],n[4]),t[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[0]),t[4]=Math.max(t[4],n[1]),t[5]=Math.max(t[5],n[2])}function m(t,n=[0,0,0]){return n[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),n[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),n[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),n}function g(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function y(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function d(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function M(t){return t?d(t,G):o(G)}function x(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function I(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function A(t){return 6===t.length}function p(t,n,e){if(null==t||null==n)return t===n;if(!A(t)||!A(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const G=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];o()},76061:(t,n,e)=>{e.d(n,{G:()=>r,S:()=>i});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class i extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},81150:(t,n,e)=>{e.d(n,{Pg:()=>c,fz:()=>h,g7:()=>s,zo:()=>u});var r=e(76061),i=(e(55537),e(88885),e(15756));e(95213);const o=new i.f;function s(t,n,e){return o.execute(t,n,e,null)}function u(t,n,e){const i=o.executeMany(new r.S(t),n,e,null);return Array.from(i)}function c(t,n,e){return o.isSimpleAsFeature(t,n,e,null,null)}function h(){return o.supportsCurves()}},92722:(t,n,e)=>{e.d(n,{A:()=>i});var r=e(69397);class i{constructor(t=[],n=[],e=!1,r=!1){this.lengths=t??[],this.coords=n??[],this.hasZ=e,this.hasM=r}static fromJSON({lengths:t,coords:n,hasZ:e,hasM:r}){return new i(t,n,e||!1,r||!1)}static fromRect([t,n,e,r]){const o=e-t,s=r-n;return new i([5],[t,n,o,0,0,s,-o,0,0,-s])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,n)=>t+n,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,n=0;for(const e of this.lengths){if(e<3)continue;const{stride:r}=this;let i=this.coords[r*n],o=this.coords[r*n+1];for(let s=1;s<e;s+=1){const e=r*(n+s),u=this.coords[e],c=this.coords[e+1];t+=-.5*(u-i)*(c+o),i=u,o=c}n+=e}return t}forEachVertex(t){let n=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:e}=this;for(const r of this.lengths){for(let i=0;i<r;i++){const r=e*(n+i);t(this.coords[r],this.coords[r+1])}n+=r}}deltaDecode(){const t=this.clone(),{coords:n,lengths:e}=t;let r=0;const{stride:i}=this;for(const t of e){for(let e=1;e<t;e++){const t=i*(r+e);n[t]+=n[t-i],n[t+1]+=n[t+1-i]}r+=t}return t}clone(t){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const n=Array.from(this.lengths),{stride:e,size:r}=this,o=this.coords.slice(0,r*e);return t?(t.set(o),new i(n,t)):new i(n,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:t,size:n}=this;if(2===t)return this;const e=new Array(n*t);for(let n=0,r=0;n<e.length;n+=t)e[r++]=this.coords[n],e[r++]=this.coords[n+1];return new i(this.lengths,e,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,2163,6061],{4197:(t,n,e)=>{e.d(n,{Vj:()=>h,cj:()=>c,jh:()=>s,l5:()=>u,xm:()=>o});var r=e(34275),i=e(9093);function s(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function c(t){return[...t]}function h(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r,i,s,o,u,c,h,a,f,l,m,d,g){return[t,n,e,r,i,s,o,u,c,h,a,f,l,m,d,g]}},Symbol.toStringTag,{value:"Module"}))},28298:(t,n,e)=>{e.d(n,{fz:()=>c,g7:()=>o,zo:()=>u});var r=e(76061),i=(e(55537),e(83661),e(88885),e(79187),e(15756));e(95213);const s=new i.p;function o(t,n,e){return s.execute(t,n,e,null)}function u(t,n){return s.executeMany(new r.S(t),n,null).next()}function c(){return s.supportsCurves()}},56339:(t,n,e)=>{e.d(n,{executeMany:()=>s});var r=e(28298),i=e(34772);function s(t){const[n,e]=(0,i.fromGeometries)(t);return(0,i.toGeometry)((0,r.zo)(n,e),e)}},69397:(t,n,e)=>{e.d(n,{$B:()=>i,Qf:()=>h,Qh:()=>u,RS:()=>s,ez:()=>l,lM:()=>o,qK:()=>f});var r=e(34275);function i(t){return 32+t.length}const s=16;function o(t){if(!t)return 0;let n=f;for(const e in t)t.hasOwnProperty(e)&&(n+=c(t[e],!1));return n}function u(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const n=t.length;if(0===n||"number"==typeof t[0])return a(t,8);let e=l;for(let r=0;r<n;r++)e+=c(t[r]);return e}(t);let n=f;for(const e in t)t.hasOwnProperty(e)&&(n+=c(t[e]));return n}function c(t,n=!0){switch(typeof t){case"object":return n?u(t):f;case"string":return i(t);case"number":return s;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,n)=>t+(n?(0,r.iu)(n)?n.byteLength+m:Array.isArray(n)?a(n,s):0:0),0)}function a(t,n){return l+t.length*n}const f=32,l=16,m=145},70328:(t,n,e)=>{e.d(n,{BI:()=>I,DC:()=>f,Ej:()=>m,Ie:()=>M,Jt:()=>x,Ne:()=>d,RF:()=>a,aI:()=>A,fA:()=>o,gE:()=>c,hZ:()=>y,iT:()=>l,is:()=>w,qv:()=>b,vI:()=>g,vY:()=>u,v_:()=>_,vt:()=>s,w1:()=>h});var r=e(5443),i=(e(19419),e(4197));function s(t=_){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,n,e,r,i,o,u=s()){return u[0]=t,u[1]=n,u[2]=e,u[3]=r,u[4]=i,u[5]=o,u}function u(t,n=s()){return function(t,n,e,r=s()){return y(r,b),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],o=t[2],u=t[3],c=t[4],h=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),s=Math.min(s,n[e+3*t+1]),o=Math.min(o,n[e+3*t+2]),u=Math.max(u,n[e+3*t]),c=Math.max(c,n[e+3*t+1]),h=Math.max(h,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=u,t[4]=c,t[5]=h}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,i.jh)(24)){const[e,r,s,o,u,c]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=c,n[6]=e,n[7]=u,n[8]=s,n[9]=e,n[10]=u,n[11]=c,n[12]=o,n[13]=r,n[14]=s,n[15]=o,n[16]=r,n[17]=c,n[18]=o,n[19]=u,n[20]=s,n[21]=o,n[22]=u,n[23]=c,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function a(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[3]),t[4]=Math.max(t[4],n[4]),t[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[0]),t[4]=Math.max(t[4],n[1]),t[5]=Math.max(t[5],n[2])}function m(t,n=[0,0,0]){return n[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),n[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),n[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),n}function d(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function g(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function y(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function M(t){return t?y(t,b):s(b)}function x(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function I(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function w(t){return 6===t.length}function A(t,n,e){if(null==t||null==n)return t===n;if(!w(t)||!w(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const b=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];s()},76061:(t,n,e)=>{e.d(n,{G:()=>r,S:()=>i});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class i extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},92722:(t,n,e)=>{e.d(n,{A:()=>i});var r=e(69397);class i{constructor(t=[],n=[],e=!1,r=!1){this.lengths=t??[],this.coords=n??[],this.hasZ=e,this.hasM=r}static fromJSON({lengths:t,coords:n,hasZ:e,hasM:r}){return new i(t,n,e||!1,r||!1)}static fromRect([t,n,e,r]){const s=e-t,o=r-n;return new i([5],[t,n,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,n)=>t+n,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,n=0;for(const e of this.lengths){if(e<3)continue;const{stride:r}=this;let i=this.coords[r*n],s=this.coords[r*n+1];for(let o=1;o<e;o+=1){const e=r*(n+o),u=this.coords[e],c=this.coords[e+1];t+=-.5*(u-i)*(c+s),i=u,s=c}n+=e}return t}forEachVertex(t){let n=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:e}=this;for(const r of this.lengths){for(let i=0;i<r;i++){const r=e*(n+i);t(this.coords[r],this.coords[r+1])}n+=r}}deltaDecode(){const t=this.clone(),{coords:n,lengths:e}=t;let r=0;const{stride:i}=this;for(const t of e){for(let e=1;e<t;e++){const t=i*(r+e);n[t]+=n[t-i],n[t+1]+=n[t+1-i]}r+=t}return t}clone(t){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const n=Array.from(this.lengths),{stride:e,size:r}=this,s=this.coords.slice(0,r*e);return t?(t.set(s),new i(n,t)):new i(n,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:t,size:n}=this;if(2===t)return this;const e=new Array(n*t);for(let n=0,r=0;n<e.length;n+=t)e[r++]=this.coords[n],e[r++]=this.coords[n+1];return new i(this.lengths,e,!1,!1)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3149,3169,4161,6061,7373,8125],{4197:(t,e,n)=>{n.d(e,{Vj:()=>c,cj:()=>i,jh:()=>s,l5:()=>u,xm:()=>a});var r=n(34275),o=n(9093);function s(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function a(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function i(t){return[...t]}function c(t){const e=(0,o.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,fromValues:function(t,e,n,r,o,s,a,u,i,c,l,h,f,m,g,d){return[t,e,n,r,o,s,a,u,i,c,l,h,f,m,g,d]}},Symbol.toStringTag,{value:"Module"}))},15546:(t,e,n)=>{n.d(e,{a:()=>a,c:()=>s});var r=n(55537),o=n(83661);function s(t,e){if(!t.isEmpty())switch(t.getGeometryType()){case r.G.enumPolygon:return u(t);case r.G.enumPolyline:return h(t.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(t){const e=t.calculateLength2D();return 0===e?t.getStartXY():t.calculateWeightedCentroid2D().mul(1/e)}(t);case r.G.enumMultiPoint:return function(t){const e=new o.K(0),n=new o.K(0),r=t.getImpl(),s=r.getAttributeStreamRef(0),a=r.getPointCount(),u=new o.P;for(let t=0;t<a;t++)s.queryPoint2D(2*t,u),e.add(u.x),n.add(u.y);const i=new o.P;return i.setCoords(e.getResult(),n.getResult()),i.divThis(a)}(t);case r.G.enumEnvelope:return t.getCenterXY();case r.G.enumPoint:return t.getXY();default:return o.P.construct(Number.NaN,Number.NaN)}return o.P.construct(Number.NaN,Number.NaN)}function a(t,e){return u(t,e)}function u(t,e=-1){const n=new o.K(0),r=new o.K(0),s=t.getImpl();let a;const u=s.hasNonLinearSegments();let h;const f=s.getXY(0);if(-1===e){if(h=s.calculateArea2D(),0===h)return l(t);u&&(a=s.querySegmentIterator());for(let t=0,e=s.getPathCount();t<e;t++)i(f,s,t,n,r),u&&c(f,a,n,r)}else{if(h=s.calculateRingArea2D(e),0===h)return l(t,e);u&&(a=s.querySegmentIterator(),a.resetToPath(e)),i(f,s,e,n,r),u&&c(f,a,n,r)}const m=new o.P,g=new o.P;return m.setCoords(n.getResult(),r.getResult()),g.assign(m.mul(1/h).add(f)),g}function i(t,e,n,r,s){const a=e.getPathStart(n),u=e.getPathEnd(n);if(u-a<3)return;const i=e.getAttributeStreamRef(0),c=i.readPoint2D(2*a),l=i.readPoint2D(2*(a+1));l.subThis(c);const h=new o.K(0),f=e.hasNonLinearSegments(),m=1/3,g=new o.P;for(let t=a+2;t<u;t++){i.queryPoint2D(2*t,g),g.subThis(c);const e=.5*g.crossProduct(l);f&&h.add(e);const n=m*e;r.add((l.x+g.x)*n),s.add((l.y+g.y)*n),l.setCoordsPoint2D(g)}const d=f?h.getResult():e.calculateRingArea2D(n),y=c.sub(t).mul(d);r.add(y.x),s.add(y.y)}function c(t,e,n,o){let s;for(e.nextPath()||(0,r.d)("centroid");null!==(s=e.nextCurve());){const e=s.calculateWeightedAreaCentroid2D(t);n.add(e.x),o.add(e.y)}}function l(t,e=-1){return h(t.getImpl(),e)}function h(t,e=-1){const n=-1===e?t.calculateLength2D():t.calculatePathLength2D(e);if(0===n)return function(t,e=-1){if(-1!==e)return t.getXY(t.getPathStart(e));const n=new o.K(0),r=new o.K(0);for(let e=0;e<t.getPathCount();++e){const o=t.getXY(t.getPathStart(e));n.add(o.x),r.add(o.y)}return o.P.construct(n.getResult(),r.getResult()).mul(1/t.getPathCount())}(t,e);const r=new o.K(0),s=new o.K(0),a=t.querySegmentIterator();for(-1!==e&&a.resetToPath(e);a.nextPath();){const n=a.getPathIndex(),o=t.getXY(t.getPathStart(n));for(;a.hasNextSegment();){const t=a.nextSegment(),e=t.calculateLength2D();if(0===e)continue;const n=t.calculateWeightedCentroid2D().sub(o.mul(e));r.add(n.x),s.add(n.y)}const u=o.mul(t.calculatePathLength2D(n));if(r.add(u.x),s.add(u.y),-1!==e)break}const u=new o.P;return u.setCoords(r.getResult(),s.getResult()),u.mul(1/n)}},17077:(t,e,n)=>{n.d(e,{execute:()=>r.e});var r=n(48265);n(78125)},48265:(t,e,n)=>{n.d(e,{c:()=>i,e:()=>a});var r=n(15546),o=n(78125);const s=new class{getOperatorType(){return 10205}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}execute(t,e){return(0,r.c)(t)}};function a(t){const e=s.execute((0,o.fromGeometry)(t),null);return(0,o.toPoint)(e,(0,o.getSpatialReference)(t))}const u=s.supportsCurves(),i=Object.freeze(Object.defineProperty({__proto__:null,execute:a,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},69397:(t,e,n)=>{n.d(e,{$B:()=>o,Qf:()=>c,Qh:()=>u,RS:()=>s,ez:()=>f,lM:()=>a,qK:()=>h});var r=n(34275);function o(t){return 32+t.length}const s=16;function a(t){if(!t)return 0;let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=i(t[n],!1));return e}function u(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let n=f;for(let r=0;r<e;r++)n+=i(t[r]);return n}(t);let e=h;for(const n in t)t.hasOwnProperty(n)&&(e+=i(t[n]));return e}function i(t,e=!0){switch(typeof t){case"object":return e?u(t):h;case"string":return o(t);case"number":return s;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+m:Array.isArray(e)?l(e,s):0:0),0)}function l(t,e){return f+t.length*e}const h=32,f=16,m=145},70328:(t,e,n)=>{n.d(e,{BI:()=>P,DC:()=>h,Ej:()=>m,Ie:()=>p,Jt:()=>x,Ne:()=>g,RF:()=>l,aI:()=>C,fA:()=>a,gE:()=>i,hZ:()=>y,iT:()=>f,is:()=>M,qv:()=>w,vI:()=>d,vY:()=>u,v_:()=>G,vt:()=>s,w1:()=>c});var r=n(5443),o=(n(19419),n(4197));function s(t=G){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e,n,r,o,a,u=s()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=a,u}function u(t,e=s()){return function(t,e,n,r=s()){return y(r,w),function(t,e,n=0,r=e.length/3){let o=t[0],s=t[1],a=t[2],u=t[3],i=t[4],c=t[5];for(let t=0;t<r;t++)o=Math.min(o,e[n+3*t]),s=Math.min(s,e[n+3*t+1]),a=Math.min(a,e[n+3*t+2]),u=Math.max(u,e[n+3*t]),i=Math.max(i,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=o,t[1]=s,t[2]=a,t[3]=u,t[4]=i,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function i(t,e=(0,o.jh)(24)){const[n,r,s,a,u,i]=t;return e[0]=n,e[1]=r,e[2]=s,e[3]=n,e[4]=r,e[5]=i,e[6]=n,e[7]=u,e[8]=s,e[9]=n,e[10]=u,e[11]=i,e[12]=a,e[13]=r,e[14]=s,e[15]=a,e[16]=r,e[17]=i,e[18]=a,e[19]=u,e[20]=s,e[21]=a,e[22]=u,e[23]=i,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function d(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?y(t,w):s(w)}function x(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function P(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=o,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],G=[0,0,0,0,0,0];s()},76061:(t,e,n)=>{n.d(e,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class o extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,n)=>{n.r(e),n.d(e,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>P,fromPoint:()=>M,fromPolygon:()=>C,fromPolyline:()=>w,fromPolylineUsingImportOperator:()=>G,fromSpatialReference:()=>I,getSpatialReference:()=>y,toExtent:()=>N,toGeometry:()=>v,toMultipoint:()=>A,toPoint:()=>R,toPolygon:()=>b,toPolyline:()=>V});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),a=n(88885),u=n(5443),i=n(48526),c=n(86738),l=n(39829),h=n(82799),f=(n(90293),n(34772));const m="_gxVersion",g=2,d=1;function y(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return M(t);case"multipoint":return P(t);case"polyline":return w(t);case"polygon":return C(t);case"extent":return x(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function x(t){if(!t.getCacheValue(m)){const e=new s.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(g,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(d,0,t.zmin,t.zmax),t.setCacheValue(m,e)}return t.getCacheValue(m)}function P(t){if(!t.getCacheValue(m)){const e=new a.M,n=new s.P,r=t.points,o=t.hasM,u=t.hasZ,i=u?3:2;for(let t=0,s=r.length;t<s;t++){const s=r[t];n.setXYCoords(s[0],s[1]),u&&n.setZ(s[2]??0),o&&n.setM(s[i]??NaN),e.add(n)}t.setCacheValue(m,e)}return t.getCacheValue(m)}function M(t){if(!t.getCacheValue(m)){const e=new s.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(m,e)}return t.getCacheValue(m)}function C(t){if(!t.getCacheValue(m)){const{curveRings:e,hasM:n,hasZ:r,rings:o}=t,s=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:o});t.setCacheValue(m,s)}return t.getCacheValue(m)}function w(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:o}=t,s=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:o});t.setCacheValue(m,s)}return t.getCacheValue(m)}function G(t){if(!t.getCacheValue(m)){const{curvePaths:e,hasM:n,hasZ:r,paths:o}=t,s=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:o});t.setCacheValue(m,s)}return t.getCacheValue(m)}function I(t){return(0,f.fromSpatialReference)(t)}function v(t,e){if(t)switch(t.getGeometryType()){case o.G.enumPoint:return R(t,e);case o.G.enumEnvelope:return N(t,e);case o.G.enumMultiPoint:return A(t,e);case o.G.enumPolyline:return V(t,e);case o.G.enumPolygon:return b(t,e)}return null}function N(t,e){if(t.isEmpty())return null;const n=new u.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(g,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(d,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(m,t),n}function A(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),o=n.hasZ(),a=[],u=new s.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,u);const n=[u.getX(),u.getY()];o&&n.push(u.getZ()),r&&n.push(u.getM()),a.push(n)}const c=new i.A({hasM:r,hasZ:o,points:a,spatialReference:e});return c.setCacheValue(m,t),c}function R(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),o=t.getDescription();return o.hasM()&&(n.m=t.getM()),o.hasZ()&&(n.z=t.getZ()),n.setCacheValue(m,t),n}function b(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}function V(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(m,t),n}},92722:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(69397);class o{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new o(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const s=n-t,a=r-e;return new o([5],[t,e,s,0,0,a,-s,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let o=this.coords[r*e],s=this.coords[r*e+1];for(let a=1;a<n;a+=1){const n=r*(e+a),u=this.coords[n],i=this.coords[n+1];t+=-.5*(u-o)*(i+s),o=u,s=i}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let o=0;o<r;o++){const r=n*(e+o);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:o}=this;for(const t of n){for(let n=1;n<t;n++){const t=o*(r+n);e[t]+=e[t-o],e[t+1]+=e[t+1-o]}r+=t}return t}clone(t){if(this.isPoint)return new o([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,s=this.coords.slice(0,r*n);return t?(t.set(s),new o(e,t)):new o(e,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new o(this.lengths,n,!1,!1)}}}}]);
|