@arcgis/core 5.2.0-next.81 → 5.2.0-next.83
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/assets/components/assets/icon/deleteAndReplaceFeatures16.json +1 -0
- package/assets/components/assets/icon/deleteAndReplaceFeatures24.json +1 -0
- package/assets/components/assets/icon/deleteAndReplaceFeatures32.json +1 -0
- package/assets/components/assets/icon/moveAndRotate16.json +1 -0
- package/assets/components/assets/icon/moveAndRotate24.json +1 -0
- package/assets/components/assets/icon/moveAndRotate32.json +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{88d6a7ebded4d359deb0.js → 027af54888befb209aaa.js} +1 -1
- package/assets/esri/core/workers/chunks/028bee58f7bc19e5e39e.js +1 -0
- package/assets/esri/core/workers/chunks/{9bd4cda90daf90189bfc.js → 03895d49fbd34ccb3ead.js} +1 -1
- package/assets/esri/core/workers/chunks/{694216224d5fd3a8956d.js → 04f5ff688785a4bd3b03.js} +1 -1
- package/assets/esri/core/workers/chunks/0775d1e3034d5e7ef7bc.js +1 -0
- package/assets/esri/core/workers/chunks/{3adba34224cba869a39c.js → 10ac92dcd3738ec23dfb.js} +1 -1
- package/assets/esri/core/workers/chunks/{4a537054c99cbc492715.js → 11d911f70bf0ca252c19.js} +1 -1
- package/assets/esri/core/workers/chunks/1354b8442c2c501238f1.js +1 -0
- package/assets/esri/core/workers/chunks/{95ff342e5c29bf91a765.js → 13a43c87d7952facbed4.js} +1 -1
- package/assets/esri/core/workers/chunks/{8cfe817299eb16cb2664.js → 1438f571f738e83b4d1c.js} +1 -1
- package/assets/esri/core/workers/chunks/{bfd532e33800755b1f48.js → 14511c92cbbc26d80c86.js} +1 -1
- package/assets/esri/core/workers/chunks/{e59101f1d060d0a30a65.js → 14def8f47ae7265dd71b.js} +1 -1
- package/assets/esri/core/workers/chunks/{fbb0b2f4ec0ba458ddeb.js → 19dac19122eeeb5e36b2.js} +1 -1
- package/assets/esri/core/workers/chunks/1b00789511c9b27da4a7.js +1 -0
- package/assets/esri/core/workers/chunks/1b277311a4beb4243bf8.js +2 -0
- package/assets/esri/core/workers/chunks/1d03db4df18524cf391c.js +1 -0
- package/assets/esri/core/workers/chunks/{f71a3fe5f30aa782193a.js → 20db27d9828397d0b37a.js} +1 -1
- package/assets/esri/core/workers/chunks/24bfe759c8848143361e.js +1 -0
- package/assets/esri/core/workers/chunks/{b3081c0b037abc49d09b.js → 26c12804a0d801df29bf.js} +1 -1
- package/assets/esri/core/workers/chunks/{8006ffa263fb8016afdb.js → 26c8ed0aef59ed6d5267.js} +1 -1
- package/assets/esri/core/workers/chunks/2d1c0d80a9843567df8d.js +1 -0
- package/assets/esri/core/workers/chunks/{2b79b376b0d60d2f0d5c.js → 2d6e1bf7c1981bed4357.js} +1 -1
- package/assets/esri/core/workers/chunks/30dade7bf6032be32599.js +2 -0
- package/assets/esri/core/workers/chunks/{7028671ffdaafe2725bc.js → 33aaa5a49e396a0aca47.js} +1 -1
- package/assets/esri/core/workers/chunks/{dcec7fc66385c12ecdf0.js → 33dc93d82407052fafe1.js} +1 -1
- package/assets/esri/core/workers/chunks/{578904043e873424904c.js → 3a6990058f1003bd2812.js} +1 -1
- package/assets/esri/core/workers/chunks/{0fd7590e545864f5fff4.js → 3ca0d503ce733088a6c2.js} +1 -1
- package/assets/esri/core/workers/chunks/{bfac0f47e81055585002.js → 3f0625c31dd46b563160.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a5894e8ebdf0e97b98f.js → 43122c435497228a7583.js} +1 -1
- package/assets/esri/core/workers/chunks/{8fff4a41a54d39db470a.js → 44d13f65465646e5f6e9.js} +1 -1
- package/assets/esri/core/workers/chunks/{9c17bfbfc347ac289b6e.js → 463b7952a4825541eb13.js} +1 -1
- package/assets/esri/core/workers/chunks/46b3d6814ba4c0a71111.js +1 -0
- package/assets/esri/core/workers/chunks/49784f8e8e5fac0cc5a9.js +1 -0
- package/assets/esri/core/workers/chunks/{1ed6a8bb415999c4e8a6.js → 4cf2c33494cb75942511.js} +1 -1
- package/assets/esri/core/workers/chunks/{d8b38c196b06e801c4e6.js → 5156d94f01b4fbbf8cde.js} +1 -1
- package/assets/esri/core/workers/chunks/{6c372d85b5783dd2a793.js → 52042fd36f4a572938f0.js} +1 -1
- package/assets/esri/core/workers/chunks/{e8a9a686a3c23afc9d1f.js → 5568448e7f51508ffdf5.js} +1 -1
- package/assets/esri/core/workers/chunks/58e4aecabca047f1d229.js +1 -0
- package/assets/esri/core/workers/chunks/598221c7054415b84904.js +1 -0
- package/assets/esri/core/workers/chunks/{89df303abcbc0167e4d2.js → 5a006ff759fad9fc25cb.js} +1 -1
- package/assets/esri/core/workers/chunks/{218ddad849745d652a28.js → 5a3c1fe24814a345ab39.js} +1 -1
- package/assets/esri/core/workers/chunks/5b292831127bf981c1c5.js +1 -0
- package/assets/esri/core/workers/chunks/{40ebe69b08ea54e0e780.js → 5b60fc95757b2a53558a.js} +1 -1
- package/assets/esri/core/workers/chunks/{c336f300fe6100e36592.js → 5c634b3e6dc76299b1df.js} +1 -1
- package/assets/esri/core/workers/chunks/{5a67bd724aa7fcdebe16.js → 5d30accf1dcda0c70f95.js} +1 -1
- package/assets/esri/core/workers/chunks/{dbca32f0e0c2c2e2ccf3.js → 5f13ade03500b39c1720.js} +1 -1
- package/assets/esri/core/workers/chunks/{8d16d53643dd8d489c25.js → 605da92d28e067f4a4c6.js} +1 -1
- package/assets/esri/core/workers/chunks/6154f4d39f9e53fe56cc.js +1 -0
- package/assets/esri/core/workers/chunks/62b116307483d5f0e37d.js +2 -0
- package/assets/esri/core/workers/chunks/6433a623af765b7e53ab.js +1 -0
- package/assets/esri/core/workers/chunks/{5c9a398e659ecd427fb5.js → 657528eb6a3d3b3cb631.js} +1 -1
- package/assets/esri/core/workers/chunks/65eff0ae773505495f21.js +1 -0
- package/assets/esri/core/workers/chunks/{d845f2115848b56c0369.js → 66292e98b4111ea3658d.js} +1 -1
- package/assets/esri/core/workers/chunks/{f57e5e7d0748d9a370f7.js → 680496660b2aaa710099.js} +1 -1
- package/assets/esri/core/workers/chunks/6d11b922898a8039dbe7.js +1 -0
- package/assets/esri/core/workers/chunks/{fbcc346fa603d6edac98.js → 6db4a4f9a9ce7cc738d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{a9e944f28bd573c8230d.js → 6eb28086dc28f6d144ec.js} +1 -1
- package/assets/esri/core/workers/chunks/7188559a685e0ba30c4f.js +1 -0
- package/assets/esri/core/workers/chunks/{a3cbd3e983e21f40b253.js → 724b2631c9ced80a1661.js} +1 -1
- package/assets/esri/core/workers/chunks/7493ce5d02224c07a6d5.js +1 -0
- package/assets/esri/core/workers/chunks/7ad70c8a56f2481adc82.js +1 -0
- package/assets/esri/core/workers/chunks/7bd8ebb321ecf1f06496.js +1 -0
- package/assets/esri/core/workers/chunks/7ca188f824956a5cac35.js +2 -0
- package/assets/esri/core/workers/chunks/{d0aaa4ad7f76f577f117.js → 7d5877eede2f552dea9f.js} +1 -1
- package/assets/esri/core/workers/chunks/{bf5831a7c12b1e42c669.js → 83a77d3f45c8c21cec45.js} +1 -1
- package/assets/esri/core/workers/chunks/852649460d664b0a1a1d.js +1 -0
- package/assets/esri/core/workers/chunks/{d62a5a33a24418a3e283.js → 88771a75adcbd54c4fac.js} +1 -1
- package/assets/esri/core/workers/chunks/{37fb38db03cb39e3c342.js → 8c6a60d96c73982febd2.js} +1 -1
- package/assets/esri/core/workers/chunks/{e63f94c8097555b266ad.js → 8e1b913067b8e88ff365.js} +2 -2
- package/assets/esri/core/workers/chunks/{6065caa7981cef255277.js → 911f3a1b8dd4bc5c9782.js} +1 -1
- package/assets/esri/core/workers/chunks/{70c371c9f133ab9f7925.js → 918577ea025f67ebe372.js} +1 -1
- package/assets/esri/core/workers/chunks/{e3eab61815ef1c521a6c.js → 9568932bafe689c38f63.js} +1 -1
- package/assets/esri/core/workers/chunks/{e72fa08b0bd324514a0e.js → 996ac351e2322298a17d.js} +1 -1
- package/assets/esri/core/workers/chunks/99966339b061eb9945b8.js +1 -0
- package/assets/esri/core/workers/chunks/{d1baf17f3219f70106f7.js → 9be05d32528b395a7d34.js} +1 -1
- package/assets/esri/core/workers/chunks/{552d6aecc7d88d16227b.js → 9d41c02601d0bb75b525.js} +1 -1
- package/assets/esri/core/workers/chunks/{64a1ffc221e5b63b43fb.js → a4bb0951e1389e7b803c.js} +1 -1
- package/assets/esri/core/workers/chunks/{74cd17aca5f7e0caac90.js → a9a1061cdf82b372835f.js} +1 -1
- package/assets/esri/core/workers/chunks/{d2448e26e19005ef9ab2.js → aabffe53508730e504ec.js} +1 -1
- package/assets/esri/core/workers/chunks/{82da6d98bd4980a3d454.js → af88f8dd1a53e4740aa6.js} +1 -1
- package/assets/esri/core/workers/chunks/b61c30cdf698b4d1573a.js +1 -0
- package/assets/esri/core/workers/chunks/{61190c833791f0833a39.js → b7bcc2d0b0fa8e703c83.js} +1 -1
- package/assets/esri/core/workers/chunks/{37a121316d114999ac70.js → ba67aaa08e4f11e1140a.js} +1 -1
- package/assets/esri/core/workers/chunks/bbb97c38d8670329d07e.js +2 -0
- package/assets/esri/core/workers/chunks/{5d50a030bf9f4e94f69d.js → bbeb61d9302323bae9fb.js} +1 -1
- package/assets/esri/core/workers/chunks/bd8b483e70acf0fc601e.js +1 -0
- package/assets/esri/core/workers/chunks/bef32acf368b4d5aba37.js +1 -0
- package/assets/esri/core/workers/chunks/c1f125594e684c1b4ffc.js +1 -0
- package/assets/esri/core/workers/chunks/c90dfdf2302b7db1f6f7.js +1 -0
- package/assets/esri/core/workers/chunks/{09f0805b32e6cab980e6.js → cc1a00694cc9f7c606d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a36b999cbd65dd2f16c.js → d8c3bdc3c6be8ba7c5e6.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc30c0de6dcb106b24a1.js → da233362b06b6db375f1.js} +1 -1
- package/assets/esri/core/workers/chunks/{ce81f29134ab3971bd54.js → dd91824692bec809909c.js} +1 -1
- package/assets/esri/core/workers/chunks/{f9e9e79f78be32e5d475.js → e706c37b44e98fbcb5f7.js} +1 -1
- package/assets/esri/core/workers/chunks/ef269dd559c1c79957e5.js +1 -0
- package/assets/esri/core/workers/chunks/{4a6158994a8cc8b8664f.js → f0692e10af5983f6ad93.js} +1 -1
- package/assets/esri/core/workers/chunks/{40b842d055b87e442156.js → f20b88f5a6d3b988a055.js} +1 -1
- package/assets/esri/core/workers/chunks/{fae32c9ce811934b6a64.js → f6ae0c483579e227a2f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{4c15551e33a3c6cda61d.js → f762f0f6c83748d8e328.js} +1 -1
- package/assets/esri/core/workers/chunks/{4eaa93859ceec1b38530.js → fa29b5064d6626cfc019.js} +1 -1
- package/assets/esri/core/workers/chunks/fcf7299e2ee904ab9882.js +1 -0
- package/assets/esri/core/workers/chunks/{388b71211a0ad5cbd6b9.js → fe06cc2f90b2d551e4c1.js} +1 -1
- package/assets/esri/core/workers/chunks/{86035e46777ed896c658.js → ffad5fd9c5e98f4fe2c3.js} +1 -1
- package/assets/esri/geometry/support/pe-wasm.wasm +0 -0
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
- package/chunks/EmissionComposite.glsl.js +7 -1
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GeodeticUtils.js +1 -1
- package/chunks/GeographicTransformation.js +2 -0
- package/chunks/Geometry.js +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorCrosses.js +1 -1
- package/chunks/OperatorCut.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorGraphicBuffer.js +1 -1
- package/chunks/OperatorIntegrate.js +1 -1
- package/chunks/OperatorIntersects.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorOverlaps.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/OperatorSimplifyOGC.js +1 -1
- package/chunks/OperatorTouches.js +1 -1
- package/chunks/OperatorWithin.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/SideCalculator2D-DX0718xq.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/chunks/containsOperator.js +1 -1
- package/chunks/disjointOperator.js +1 -1
- package/chunks/equalsOperator.js +1 -1
- package/chunks/pe-wasm.js +1 -1
- package/chunks/relateOperator.js +1 -1
- package/config.js +1 -1
- package/geometry/operators/gx/operatorAutoComplete.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorDifference.js +1 -1
- package/geometry/operators/gx/operatorIntersection.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorSimplify.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/gx/operatorUnion.js +1 -1
- package/geometry/operators/json/containsOperator.js +1 -1
- package/geometry/operators/json/disjointOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/support/GeographicTransformation.d.ts +7 -0
- package/geometry/operators/support/GeographicTransformation.js +1 -1
- package/geometry/operators/support/GeographicTransformationStep.d.ts +7 -1
- package/geometry/operators/support/GeographicTransformationStep.js +1 -1
- package/geometry/operators/support/geographicTransformationUtils.d.ts +13 -2
- package/geometry/operators/support/geographicTransformationUtils.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/operators/support/projectionTransformation.js +1 -1
- package/geometry/support/spatialReferenceUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/raster/types.d.ts +1 -1
- package/layers/support/AggregateField.d.ts +9 -3
- package/layers/support/FeatureReductionCluster.d.ts +16 -6
- package/layers/support/I3SExtractChanges.js +2 -0
- package/package.json +4 -4
- package/renderers/UniqueValueRenderer.js +1 -1
- package/renderers/support/AuthoringInfo.d.ts +8 -3
- package/support/revision.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
- package/views/2d/engine/vectorTiles/style/GeoJSONLabelUtils.js +2 -0
- package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightInteractionVisuals.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightPlacementLeafPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
- package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/GroundAndIMSurface.js +2 -0
- package/views/3d/support/PBFDecoder.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/PointOfInterest.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
- package/views/MapView.d.ts +0 -60
- package/views/SceneView.js +1 -1
- package/views/View2D.d.ts +59 -1
- package/views/draw/support/PluginContext.js +1 -1
- package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
- package/views/draw/support/types.d.ts +6 -0
- package/views/interactive/interactiveToolUtils.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/Legend/support/utils.js +1 -1
- package/widgets/Widget.js +1 -1
- package/widgets/support/jsxWidgetSupport.js +1 -1
- package/assets/esri/core/workers/chunks/0dcfd82a2669df6eb5a0.js +0 -1
- package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +0 -1
- package/assets/esri/core/workers/chunks/21f763694a41968ac21a.js +0 -1
- package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +0 -1
- package/assets/esri/core/workers/chunks/25696c194457e42b3bdc.js +0 -1
- package/assets/esri/core/workers/chunks/2f3525df00fb265661fc.js +0 -1
- package/assets/esri/core/workers/chunks/453c69879f4b82ba13a1.js +0 -1
- package/assets/esri/core/workers/chunks/4f36596280142be1c666.js +0 -1
- package/assets/esri/core/workers/chunks/53d80202b5f43542d45b.js +0 -1
- package/assets/esri/core/workers/chunks/540a3685e614bb006744.js +0 -1
- package/assets/esri/core/workers/chunks/61312d3b5477ed9d87d9.js +0 -2
- package/assets/esri/core/workers/chunks/6f08c8a1e8e3ffd0a96a.js +0 -1
- package/assets/esri/core/workers/chunks/71ee7c51d2c60a180f1e.js +0 -1
- package/assets/esri/core/workers/chunks/856dba96332509fb1d7a.js +0 -2
- package/assets/esri/core/workers/chunks/9234a293d61e134f121f.js +0 -1
- package/assets/esri/core/workers/chunks/927582ec15bff2acbb49.js +0 -1
- package/assets/esri/core/workers/chunks/95b9eaf7a49eeb17e62f.js +0 -1
- package/assets/esri/core/workers/chunks/973440553c9e058b0132.js +0 -1
- package/assets/esri/core/workers/chunks/98739b6e7904045edbab.js +0 -1
- package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +0 -1
- package/assets/esri/core/workers/chunks/c5853fbb975e169c44c5.js +0 -1
- package/assets/esri/core/workers/chunks/c899457f19b749516275.js +0 -1
- package/assets/esri/core/workers/chunks/d4b78d11a5ce4320a29a.js +0 -1
- package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +0 -1
- package/assets/esri/core/workers/chunks/e2473de49189d93714d3.js +0 -1
- package/assets/esri/core/workers/chunks/eca0736953a20cfc64ad.js +0 -2
- package/assets/esri/core/workers/chunks/efd176c5ac35f313e7a2.js +0 -1
- package/assets/esri/core/workers/chunks/f2d99f693a590f384315.js +0 -1
- package/assets/esri/core/workers/chunks/fc2234e0d202631f3abf.js +0 -2
- package/assets/esri/core/workers/chunks/fcb943c3b31b1bf62e65.js +0 -2
- package/assets/esri/core/workers/chunks/ffe2cbfea38b92a231d6.js +0 -1
- /package/assets/esri/core/workers/chunks/{eca0736953a20cfc64ad.js.LICENSE.txt → 1b277311a4beb4243bf8.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{856dba96332509fb1d7a.js.LICENSE.txt → 30dade7bf6032be32599.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{fc2234e0d202631f3abf.js.LICENSE.txt → 62b116307483d5f0e37d.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{61312d3b5477ed9d87d9.js.LICENSE.txt → 7ca188f824956a5cac35.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{e63f94c8097555b266ad.js.LICENSE.txt → 8e1b913067b8e88ff365.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{fcb943c3b31b1bf62e65.js.LICENSE.txt → bbb97c38d8670329d07e.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2587],{36745(t,i,s){s.d(i,{z:()=>o});var e=s(4718),h=s(51118),n=s(60408),r=s(92722);class o{static fromOptimized(t,i,s=1){return(new a).initialize(t,i,s)}static fromJSON(t){const[i,s]=l(t),e=(0,n.Pv)(t),h=(0,n.W0)(t);return(new u).initialize(i,s,e,h,1)}static fromOptimizedCIM(t,i,s=1){return(new x).initialize(t,i,s)}static fromJSONCIM(t,i=1){const[s,e]=l(t),h=(0,n.Pv)(t),r=(0,n.W0)(t);return(new y).initialize(s,e,h,r,i)}static fromFeatureSetReader(t){const i=t.readGeometryForDisplay(),s=t.geometryType;return i&&s?this.fromOptimized(i,s):null}static fromFeatureSetReaderCIM(t){const i=t.readGeometryForDisplay(),s=t.geometryType;return i&&s?this.fromOptimizedCIM(i,s):null}static createEmptyOptimized(t,i=!1,s=!1,e=1){return(new x).initialize(new r.A([],[],i,s),t,e)}static createEmptyJSON(t,i=!1,s=!1){return(new u).initialize([],t,i,s,1)}static createEmptyOptimizedCIM(t,i=!1,s=!1,e=1){return(new x).initialize(new r.A([],[],i,s),t,e)}static createEmptyJSONCIM(t,i=!1,s=!1,e=1){return(new y).initialize([],t,i,s,e)}asJSON(){const t=(0,h.x)(this),{hasZ:i,hasM:s}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:i,hasM:s}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:i?t[0][0][2]:void 0,m:s?t[0][0][i?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:i,hasM:s}:{paths:t,hasZ:i,hasM:s}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,i,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,i=this.y;const e=t,h=i;for(;this.nextPoint();)s+=(t-this.x)*(i+this.y),t=this.x,i=this.y;return s+=(t-e)*(i+h),-.5*s}invertY(){this.yFactor*=-1}}class a extends o{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,i,s){return this.geometryType=i,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const i=this._pathOffset+t*this._stride;return i>=0&&i<this._end&&(this._pointOffset=i,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,i=this._geometry.coords,s=this._pathOffset;return(new a).initialize(new r.A([this.pathSize],i.slice(s,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,i=this._stride,s=this._geometry.coords;let e=0;for(let h=this._pathOffset+i;h<t;h+=i){const t=s[h-i],n=s[h-i+1],r=s[h]-t,o=s[h+1]-n;e+=Math.sqrt(r*r+o*o)}return e}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let i=0;i<this._stride;++i)this._geometry.coords.push(t[i]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,i){this._geometry.coords.push(t,i),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const i of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(i[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const i=t.asOptimized();this._geometry.coords.push(...i.coords),this._geometry.lengths.push(...i.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let i=1;i<t.coords.length;i+=this._stride)t.coords[i]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,i=this._pathOffset,s=this._end-this._stride;for(let e=0;e<this._stride;e++)if(t[i+e]!==t[s+e])return!1;return!0}clone(){return(new a).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,i)=>t+i)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function _(t){const i=[t.x,t.y];return t.z&&i.push(t.z),t.m&&i.push(t.m),i}function l(t){return(0,n.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,n.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,n.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,n.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,n.fT)(t)?[[[_(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class u extends o{initialize(t,i,s,e,h){return this._paths=t,this.geometryType=i,this.hasZ=s,this.hasM=e,this._pathIndex=this._pointIndex=-1,this.yFactor=h,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,i=this._currentPath;let s=0;for(let e=1;e<t;e++){const t=i[e-1],h=i[e],n=t[0],r=t[1],o=h[0]-n,a=h[1]-r;s+=Math.sqrt(o*o+a*a)}return s}startPath(){this._paths.push([])}getCurrentPath(){return(new u).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,i){this._paths[this.totalSize-1].push([t,i])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const i=(0,h.x)(t);for(const t of i)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:i}=this,s=new r.A([],[],t,i),{coords:e,lengths:h}=s;if("esriGeometryPoint"===this.geometryType)e.push(...this._paths[0][0]),h.length=0;else for(const s of this._paths){for(const h of s)e.push(h[0]),e.push(h[1]*this.yFactor),t&&e.push(h[2]),i&&e.push(h[this._mIndex]);h.push(s.length)}return s}isClosed(){const t=this._currentPath[0],i=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==i[s])return!1;return!0}clone(){return(new u).initialize((0,e.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,i)=>t+i)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class x extends a{initialize(t,i,s){return super.initialize(t,i,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new x).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class y extends u{initialize(t,i,s,e,h){return super.initialize(t,i,s,e,h)}clone(){return(new y).initialize((0,e.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},6774(t,i,s){s.d(i,{O3:()=>n,Ox:()=>r,bR:()=>e});class e{constructor(t,i){this.x=t,this.y=i}static fromArray(t){return new e(t[0],t[1])}clone(){return new e(this.x,this.y)}equals(t,i){return t===this.x&&i===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,i){return this.x=t,this.y=i,this}normalize(){const t=this.x,i=this.y,s=Math.sqrt(t*t+i*i);return this.x/=s,this.y/=s,this}rightPerpendicular(){const t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){const t=this.x;return this.x=-this.y,this.y=t,this}move(t,i){return this.x+=t,this.y+=i,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,i){return this.x=t.x+i.x,this.y=t.y+i.y,this}assignSub(t,i){return this.x=t.x-i.x,this.y=t.y-i.y,this}rotate(t,i){const s=this.x,e=this.y;return this.x=s*t-e*i,this.y=s*i+e*t,this}rotateReverse(t,i){const s=this.x,e=this.y;return this.x=s*t+e*i,this.y=-s*i+e*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){const t=this.x,i=this.y;return Math.sqrt(t*t+i*i)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,i){const s=i.x-t.x,e=i.y-t.y;return Math.sqrt(s*s+e*e)}static add(t,i){return new e(t.x+i.x,t.y+i.y)}static sub(t,i){return new e(t.x-i.x,t.y-i.y)}}class h{constructor(t,i,s){this.ratio=t,this.x=i,this.y=s}}class n{constructor(t,i,s,e=8,h=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=e,this._pixelMargin=h,this._tileSize=512*e,this._dz=t,this._yPos=i,this._xPos=s}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let i=this._pixelRatio*this._pixelMargin;i/=this._finalRatio;const s=t>>this._dz;i>s&&(i=s),this._margin=i,this._xmin=s*this._xPos-i,this._ymin=s*this._yPos-i,this._xmax=this._xmin+s+2*i,this._ymax=this._ymin+s+2*i}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,i){this._pushLine(),this._prevIsIn=this._isIn(t,i),this._moveTo(t,i,this._prevIsIn),this._prevPt=new e(t,i),this._firstPt=new e(t,i),this._dist=0}lineTo(t,i){const s=this._isIn(t,i),n=new e(t,i),r=e.distance(this._prevPt,n);let o,a,_,l,u,x,y,c;if(s)this._prevIsIn?this._lineTo(t,i,!0):(o=this._prevPt,a=n,_=this._intersect(a,o),this._start=this._dist+r*(1-this._r),this._lineTo(_.x,_.y,!0),this._lineTo(a.x,a.y,!0));else if(this._prevIsIn)a=this._prevPt,o=n,_=this._intersect(a,o),this._lineTo(_.x,_.y,!0),this._lineTo(o.x,o.y,!1);else{const t=this._prevPt,i=n;if(t.x<=this._xmin&&i.x<=this._xmin||t.x>=this._xmax&&i.x>=this._xmax||t.y<=this._ymin&&i.y<=this._ymin||t.y>=this._ymax&&i.y>=this._ymax)this._lineTo(i.x,i.y,!1);else{const s=[];if((t.x<this._xmin&&i.x>this._xmin||t.x>this._xmin&&i.x<this._xmin)&&(l=(this._xmin-t.x)/(i.x-t.x),c=t.y+l*(i.y-t.y),c<=this._ymin?x=!1:c>=this._ymax?x=!0:s.push(new h(l,this._xmin,c))),(t.x<this._xmax&&i.x>this._xmax||t.x>this._xmax&&i.x<this._xmax)&&(l=(this._xmax-t.x)/(i.x-t.x),c=t.y+l*(i.y-t.y),c<=this._ymin?x=!1:c>=this._ymax?x=!0:s.push(new h(l,this._xmax,c))),(t.y<this._ymin&&i.y>this._ymin||t.y>this._ymin&&i.y<this._ymin)&&(l=(this._ymin-t.y)/(i.y-t.y),y=t.x+l*(i.x-t.x),y<=this._xmin?u=!1:y>=this._xmax?u=!0:s.push(new h(l,y,this._ymin))),(t.y<this._ymax&&i.y>this._ymax||t.y>this._ymax&&i.y<this._ymax)&&(l=(this._ymax-t.y)/(i.y-t.y),y=t.x+l*(i.x-t.x),y<=this._xmin?u=!1:y>=this._xmax?u=!0:s.push(new h(l,y,this._ymax))),0===s.length)u?x?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):x?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(s.length>1&&s[0].ratio>s[1].ratio)this._start=this._dist+r*s[1].ratio,this._lineTo(s[1].x,s[1].y,!0),this._lineTo(s[0].x,s[0].y,!0);else{this._start=this._dist+r*s[0].ratio;for(let t=0;t<s.length;t++)this._lineTo(s[t].x,s[t].y,!0)}this._lineTo(i.x,i.y,!1)}}this._dist+=r,this._prevIsIn=s,this._prevPt=n}close(){if(this._line.length>2){const t=this._firstPt,i=this._prevPt;t.x===i.x&&t.y===i.y||this.lineTo(t.x,t.y);const s=this._line;let e=s.length;for(;e>=4&&(s[0].x===s[1].x&&s[0].x===s[e-2].x||s[0].y===s[1].y&&s[0].y===s[e-2].y);)s.pop(),s[0].x=s[e-2].x,s[0].y=s[e-2].y,--e}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw new Error("Only valid for lines");this._pushLine();const t=this._lines,i=t.length;if(0===i)return null;const s=[];for(let e=0;e<i;e++)s.push({line:t[e],start:this._starts[e]||0});return s}_isIn(t,i){return t>=this._xmin&&t<=this._xmax&&i>=this._ymin&&i<=this._ymax}_intersect(t,i){let s,h,n;if(i.x>=this._xmin&&i.x<=this._xmax)h=i.y<=this._ymin?this._ymin:this._ymax,n=(h-t.y)/(i.y-t.y),s=t.x+n*(i.x-t.x);else if(i.y>=this._ymin&&i.y<=this._ymax)s=i.x<=this._xmin?this._xmin:this._xmax,n=(s-t.x)/(i.x-t.x),h=t.y+n*(i.y-t.y);else{h=i.y<=this._ymin?this._ymin:this._ymax,s=i.x<=this._xmin?this._xmin:this._xmax;const e=(s-t.x)/(i.x-t.x),r=(h-t.y)/(i.y-t.y);e<r?(n=e,h=t.y+e*(i.y-t.y)):(n=r,s=t.x+r*(i.x-t.x))}return this._r=n,new e(s,h)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,i,s){3!==this._type?s&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e(t,i))):(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),i<this._ymin&&(i=this._ymin),i>this._ymax&&(i=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.push(new e(t,i)),this._isH=!1,this._isV=!1)}_lineTo(t,i,s){let h,n;if(3!==this._type)if(s){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(h=this._line[this._line.length-1],h.equals(t,i)))return;this._line.push(new e(t,i))}else this._line&&this._line.length>0&&this._pushLine();else if(s||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),i<this._ymin&&(i=this._ymin),i>this._ymax&&(i=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),i=Math.round((i-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){h=this._line[this._line.length-1];const s=h.x===t,r=h.y===i;if(s&&r)return;this._isH&&s||this._isV&&r?(h.x=t,h.y=i,n=this._line[this._line.length-2],n.x===t&&n.y===i?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===i)):(this._isH=n.x===t,this._isV=n.y===i)):(this._line.push(new e(t,i)),this._isH=s,this._isV=r)}else this._line.push(new e(t,i))}}class r{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,i){this._line&&this._lines.push(this._line),this._line=[];const s=this._ratio;this._line.push(new e(t*s,i*s))}lineTo(t,i){const s=this._ratio;this._line.push(new e(t*s,i*s))}close(){const t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,i,s){if(!s)return;const e=-i,h=t+i,n=-i,r=t+i,a=[],_=[],l=s.length;for(let t=0;t<l;++t){const i=s[t];if(!i||i.length<2)continue;let o,l=i[0];const u=i.length;for(let s=1;s<u;++s)o=i[s],l.x===o.x&&(l.x<=e&&(l.y>o.y?(a.push(t),a.push(s),a.push(0),a.push(-1)):(_.push(t),_.push(s),_.push(0),_.push(-1))),l.x>=h&&(l.y<o.y?(a.push(t),a.push(s),a.push(1),a.push(-1)):(_.push(t),_.push(s),_.push(1),_.push(-1)))),l.y===o.y&&(l.y<=n&&(l.x<o.x?(a.push(t),a.push(s),a.push(2),a.push(-1)):(_.push(t),_.push(s),_.push(2),_.push(-1))),l.y>=r&&(l.x>o.x?(a.push(t),a.push(s),a.push(3),a.push(-1)):(_.push(t),_.push(s),_.push(3),_.push(-1)))),l=o}if(0===a.length||0===_.length)return;o.fillParent(s,_,a),o.fillParent(s,a,_);const u=[];o.calcDeltas(u,_,a),o.calcDeltas(u,a,_),o.addDeltas(u,s)}static fillParent(t,i,s){const e=s.length,h=i.length;for(let n=0;n<h;n+=4){const h=i[n],r=i[n+1],o=i[n+2],_=t[h][r-1],l=t[h][r];let u=8092,x=-1;for(let i=0;i<e;i+=4){if(s[i+2]!==o)continue;const e=s[i],h=s[i+1],n=t[e][h-1],r=t[e][h];switch(o){case 0:case 1:if(a(_.y,n.y,r.y)&&a(l.y,n.y,r.y)){const t=Math.abs(r.y-n.y);t<u&&(u=t,x=i)}break;case 2:case 3:if(a(_.x,n.x,r.x)&&a(l.x,n.x,r.x)){const t=Math.abs(r.x-n.x);t<u&&(u=t,x=i)}}}i[n+3]=x}}static calcDeltas(t,i,s){const e=i.length;for(let h=0;h<e;h+=4){const e=[],n=o.calcDelta(h,i,s,e);t.push(i[h]),t.push(i[h+1]),t.push(i[h+2]),t.push(n)}}static calcDelta(t,i,s,e){const h=i[t+3];if(-1===h)return 0;const n=e.length;return n>1&&e[n-2]===h?0:(e.push(h),o.calcDelta(h,s,i,e)+1)}static addDeltas(t,i){const s=t.length;let e=0;for(let i=0;i<s;i+=4){const s=t[i+3];s>e&&(e=s)}for(let h=0;h<s;h+=4){const s=i[t[h]],n=t[h+1],r=e-t[h+3];switch(t[h+2]){case 0:s[n-1].x-=r,s[n].x-=r,1===n&&(s[s.length-1].x-=r),n===s.length-1&&(s[0].x-=r);break;case 1:s[n-1].x+=r,s[n].x+=r,1===n&&(s[s.length-1].x+=r),n===s.length-1&&(s[0].x+=r);break;case 2:s[n-1].y-=r,s[n].y-=r,1===n&&(s[s.length-1].y-=r),n===s.length-1&&(s[0].y-=r);break;case 3:s[n-1].y+=r,s[n].y+=r,1===n&&(s[s.length-1].y+=r),n===s.length-1&&(s[0].y+=r)}}}}const a=(t,i,s)=>t>=i&&t<=s||t>=s&&t<=i},78957(t,i,s){s.d(i,{d:()=>l,R:()=>I});class e{constructor(t=h){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;const{_data:i,_compare:s}=this;i.push(t);let e=i.length-1>>>0;const h=i[e];for(;e>0;){const t=e-1>>1,n=i[t];if(!(s(n,h)<=0))break;i[t]=h,i[e]=n,e=t}}dequeue(){const{_data:t,_compare:i}=this,s=t[0],e=t.pop();if(0===t.length)return s;t[0]=e;let h=0;const n=t.length,r=t[0];let o,a,_=null;for(;;){const s=2*h+1,e=2*h+2;if(_=null,s<n&&(o=t[s],i(o,r)>0&&(_=s)),e<n&&(a=t[e],(null===_&&i(a,r)<=0||null!==_&&i(a,o)<=0)&&(_=e)),null===_)break;t[h]=t[_],t[_]=r,h=_}return s}}const h=(t,i)=>t<i?-1:t>i?1:0;var n=s(19419),r=s(537),o=s(12359),a=s(95108),_=s(12176);function l(t){if(0===t.totalSize)return null;const i=(0,r.z8)(t);if(!i)return null;const s=4*(Math.abs(i[0])+Math.abs(i[2])+Math.abs(i[1])+Math.abs(i[3])+1)*222045e-19;let e=0,h=0;t.reset();for(let i=0;t.nextPath();i++){const s=t.getCurrentRingArea();s>h&&(h=s,e=i)}if(t.seekPath(e),0===t.pathSize)return null;t.seekPathStart();const a=(0,r.B$)(t);if(Math.abs(h)<=2*s*s)return[(a[0]+a[2])/2,(a[1]+a[3])/2];t.seekPathStart();const _=(0,o.w2)(t,(0,n.vt)());if(null===_)return null;if(t.totalPoints<4)return _;const l=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],c=[NaN,NaN,NaN,NaN],p=[NaN,NaN,NaN,NaN];let m=!1,P=x(_,t,!0);0===P.distance&&(m=!0,l[0][0]=_[0],l[0][1]=_[1],P=x(_,t,!1)),c[0]=P.distance,p[0]=0;const I=[NaN,NaN];let N=!1,z=.25,w=-1,M=NaN;do{if(M=NaN,l[1]=y(t,f(a[0],a[2],z),0,i),isNaN(l[1][0])||isNaN(l[1][1])||(P=x(l[1],t,!1),M=P.distance),!isNaN(M)&&M>s&&u(l[1],t))N=!0,c[1]=M,p[1]=d(l[1],_);else if(!isNaN(M)&&M>w&&(w=M,I[0]=l[1][0],I[1]=l[1][1]),z-=.01,z<.1){if(!(w>=0))break;N=!0,c[1]=w,l[1][0]=I[0],l[1][1]=I[1],p[1]=d(l[1],_)}}while(!N);N=!1,z=.5,w=-1;let S=.01,T=1;do{if(M=NaN,l[2]=y(t,f(a[0],a[2],z),0,i),isNaN(l[2][0])||isNaN(l[2][1])||(P=x(l[2],t,!1),M=P.distance),!isNaN(M)&&M>s&&u(l[2],t))N=!0,c[2]=M,p[2]=d(l[2],_);else if(!isNaN(M)&&M>w)w=M,I[0]=l[2][0],I[1]=l[2][1];else if(M>w&&(w=M,I[0]=l[2][0],I[1]=l[2][1]),z=.5+S*T,S+=.01,T*=-1,z<.3||z>.7){if(!(w>=0))break;N=!0,c[2]=w,l[2][0]=I[0],l[2][1]=I[1],p[2]=d(l[2],_)}}while(!N);N=!1,z=.75,w=-1;do{if(M=NaN,l[3]=y(t,f(a[0],a[2],z),0,i),isNaN(l[3][0])||isNaN(l[3][1])||(P=x(l[3],t,!1),M=P.distance),!isNaN(M)&&M>s&&u(l[3],t))N=!0,c[3]=M,p[3]=d(l[3],_);else if(M>w&&(w=M,I[0]=l[3][0],I[1]=l[3][1]),z+=.01,z>.9){if(!(w>=0))break;N=!0,c[3]=w,l[3][0]=I[0],l[3][1]=I[1],p[3]=d(l[3],_)}}while(!N);const O=[0,1,2,3],v=m?0:1;let C;for(let t=v;t<4;t++)for(let t=v;t<3;t++){const i=p[t],s=p[t+1];g(i,s)>0&&(C=O[t],O[t]=O[t+1],O[t+1]=C,p[t]=s,p[t+1]=i)}let b=v,R=0,k=0;for(let t=v;t<4;t++){switch(t){case 0:k=2*c[O[t]];break;case 1:k=1.66666666*c[O[t]];break;case 2:k=1.33333333*c[O[t]];break;case 3:k=c[O[t]]}k>R&&(R=k,b=O[t])}return l[b]}function u(t,i){let s,e,h,n,r=0;for(i.reset();i.nextPath()&&i.nextPoint();)for(s=i.x,e=i.y;i.nextPoint();s=h,e=n)h=i.x,n=i.y,e>t[1]!=n>t[1]&&((h-s)*(t[1]-e)-(n-e)*(t[0]-s)>0?r++:r--);return 0!==r}function x(t,i,s){if(s&&u(t,i))return{coord:t,distance:0};let e=1/0,h=0,n=0,r=[0,0],o=[0,0];const _=[0,0];for(i.reset();i.nextPath()&&i.nextPoint();)if(!(i.pathSize<2))for(r[0]=i.x,r[1]=i.y;i.nextPoint();r=o){o=[i.x,i.y],(0,a.gR)(_,t,r,o);const s=d(t,_);s<e&&(e=s,h=_[0],n=_[1])}return{coord:[h,n],distance:Math.sqrt(e)}}function y(t,i,s,e){const h=[i,0];let r=1/0,o=1/0,a=!1,l=!1;const u=[[i,e[1]-1],[i,e[3]+1]],x=[0,0],y=[0,0],m=[0,0],f=[[0,0],[0,0]],d=(0,n.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(f[0][0]=t.x,f[0][1]=t.y;t.nextPoint();f[0][0]=f[1][0],f[0][1]=f[1][1]){if(f[1][0]=t.x,f[1][1]=t.y,null===c(d,f))continue;if(y[0]=u[0][0],y[1]=u[0][1],m[0]=u[1][0],m[1]=u[1][1],0===p(d,y,m))continue;if(!(0,_.Ql)(u[0],u[1],f[0],f[1],x))continue;const i=x[1];r>o?i<r&&(r=i,a=!0):i<o&&(o=i,l=!0)}return a&&l?h[1]=(r+o)/2:h[0]=h[1]=NaN,h}function c(t,i){if(i.length<2)return null;t||(t=(0,n.vt)());const[s,e]=i[0],[h,r]=i[1];return t[0]=Math.min(s,h),t[1]=Math.min(e,r),t[2]=Math.max(s,h),t[3]=Math.max(e,r),t}function p(t,i,s){let e=m(i,t),h=m(s,t);const n=t[0],r=t[1],o=t[2],a=t[3];if(e&h)return 0;if(!(e|h))return 4;const _=(e?1:0)|(h?2:0);do{const _=s[0]-i[0],l=s[1]-i[1];if(_>l)3&e?(1&e?(i[1]+=l*(n-i[0])/_,i[0]=n):(i[1]+=l*(o-i[0])/_,i[0]=o),e=m(i,t)):3&h?(1&h?(s[1]+=l*(n-s[0])/_,s[0]=n):(s[1]+=l*(o-s[0])/_,s[0]=o),h=m(s,t)):e?(4&e?(i[0]+=_*(r-i[1])/l,i[1]=r):(i[0]+=_*(a-i[1])/l,i[1]=a),e=m(i,t)):(4&h?(s[0]+=_*(r-s[1])/l,s[1]=r):(s[0]+=_*(a-s[1])/l,s[1]=a),h=m(s,t));else if(12&e?(4&e?(i[0]+=_*(r-i[1])/l,i[1]=r):(i[0]+=_*(a-i[1])/l,i[1]=a),e=m(i,t)):12&h?(4&h?(s[0]+=_*(r-s[1])/l,s[1]=r):(s[0]+=_*(a-s[1])/l,s[1]=a),h=m(s,t)):e?(1&e?(i[1]+=l*(n-i[0])/_,i[0]=n):(i[1]+=l*(o-i[0])/_,i[0]=o),e=m(i,t)):(1&h?(s[1]+=l*(n-s[0])/_,s[0]=n):(s[1]+=l*(o-s[0])/_,s[0]=o),h=m(s,t)),e&h)return 0}while(e|h);return _}function m(t,i){return(t[0]<i[0]?1:0)|(t[0]>i[2]?1:0)<<1|(t[1]<i[1]?1:0)<<2|(t[1]>i[3]?1:0)<<3}function f(t,i,s){return t+(i-t)*s}function d(t,i){return(t[0]-i[0])*(t[0]-i[0])+(t[1]-i[1])*(t[1]-i[1])}function g(t,i){if(t<i)return-1;if(t>i)return 1;if(t===i)return 0;const s=isNaN(t),e=isNaN(i);return s<e?-1:s>e?1:0}class P{constructor(t,i,s,e){this.x=t,this.y=i,this.cellSize=s,this.distancefromCellCenter=(0,a.Xf)(t,i,e),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function I(t){if(!t.nextPath()||!t.pathSize)return null;const i=(0,r.B$)(t),s=i[2]-i[0],h=i[3]-i[1];if(0===s||0===h)return[i[0]+s/2,i[1]+h/2];const n=Math.max(Math.min(s,h)/100,1),a=new e((t,i)=>i.maxDistanceToPolygon-t.maxDistanceToPolygon),_=Math.min(s,h);let l=_/2,u=0,x=0;for(u=i[0];u<i[2];u+=_)for(x=i[1];x<i[3];x+=_)a.enqueue(new P(u+l,x+l,l,t));t.reset(),t.nextPath();const y=(0,o.IK)(t);if(null===y)return null;let c,p=new P(y[0],y[1],0,t);for(;a.size>0;)c=a.dequeue(),c.distancefromCellCenter>p.distancefromCellCenter&&(p=c),c.maxDistanceToPolygon-p.distancefromCellCenter<=n||(l=c.cellSize/2,a.enqueue(new P(c.x-l,c.y-l,l,t)),a.enqueue(new P(c.x+l,c.y-l,l,t)),a.enqueue(new P(c.x-l,c.y+l,l,t)),a.enqueue(new P(c.x+l,c.y+l,l,t)));return[p.x,p.y]}},13195(t,i,s){s.d(i,{GW:()=>m,IU:()=>f,Wh:()=>x,cP:()=>P,p6:()=>p,ru:()=>g,s3:()=>d,wV:()=>c,yM:()=>I,z0:()=>y});var e=s(95108),h=s(6774);const n=Number.POSITIVE_INFINITY,r=Math.PI,o=2*r,a=128/r,_=256/360,l=r/180,u=1/Math.LN2;function x(t,i){return(t%=i)>=0?t:t+i}function y(t){return x(t*a,256)}function c(t){return x(t*_,256)}function p(t){return Math.log(t)*u}function m(t,i,s){return t*(1-s)+i*s}function f(t){return 8+Math.max(16*(t-14),0)}function d(t,i,s){let e,h,n,r=0;for(const o of s){e=o.length;for(let s=1;s<e;++s)h=o[s-1],n=o[s],h.y>i!=n.y>i&&((n.x-h.x)*(i-h.y)-(n.y-h.y)*(t-h.x)>0?r++:r--)}return 0!==r}function g(t,i,s,h){let n,r,o,a;const _=h*h;for(const h of s){const s=h.length;if(!(s<2)){n=h[0].x,r=h[0].y;for(let l=1;l<s;++l){if(o=h[l].x,a=h[l].y,(0,e.Ng)(t,i,n,r,o,a)<_)return!0;n=o,r=a}}}return!1}function P(t,i){if(0===i||Number.isNaN(i))return t;const s=[],e=new h.bR(0,0),n=new h.bR(0,0),r=new h.bR(0,0);for(let o=0;o<t.length;o++){const a=t[o],_=[];for(let t=0;t<a.length;t++){const s=a[t-1],o=a[t],l=a[t+1];0===t?e.setCoords(0,0):e.assignSub(o,s).normalize().rightPerpendicular(),t===a.length-1?n.setCoords(0,0):n.assignSub(l,o).normalize().rightPerpendicular(),r.assignAdd(e,n).normalize();const u=r.x*n.x+r.y*n.y;0!==u&&r.scale(1/u),_.push(h.bR.add(o,r.scale(i)))}s.push(_)}return s}function I(t,i,s,e){const n=new h.bR(t[0],t[1]);if(n.scale(e),"viewport"===i){const t=-s*(Math.PI/180),i=Math.cos(t),e=Math.sin(t);n.rotate(i,e)}return n}s.d(i,["Jo",0,r,"MG",0,n,"aA",0,_,"os",0,l,"pJ",0,o])},18989(t,i,s){s.d(i,{A:()=>e});class e{constructor(t=0,i=0,s=0,e=0){this.x=t,this.y=i,this.width=s,this.height=e}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9917],{159(n,e,t){t.d(e,{A:()=>u});var r,l=t(5482),o=t(69540),s=t(25482),a=t(91429),i=t(99157);let u=r=class extends((0,o.OU)(s.o)){constructor(n){super(n),this.steps=[]}get isUsable(){let n=!0;for(let e=0;e<this.steps.length;e++){const t=this.steps[e];if(null==t.isUsable)return t.isUsable;n&&=t.isUsable}return n}getInverse(){const n=new r;for(let e=this.steps.length-1;e>=0;e--){const t=this.steps[e];n.steps.push(t.getInverse())}return n}};(0,l.Cg)([(0,a.MZ)()],u.prototype,"isUsable",null),(0,l.Cg)([(0,a.MZ)({type:[i.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,l.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(n,e,t){t.d(e,{A:()=>i});var r,l=t(5482),o=t(69540),s=t(25482),a=t(91429);let i=r=class extends((0,o.OU)(s.o)){constructor(n){super(n),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,l.Cg)([(0,a.MZ)({json:{name:"transformForward",read:n=>!n,write:(n,e,t)=>{e[t]=!n}}})],i.prototype,"isInverse",void 0),(0,l.Cg)([(0,a.MZ)()],i.prototype,"isUsable",void 0),(0,l.Cg)([(0,a.MZ)({json:{write:!0}})],i.prototype,"wkt",void 0),(0,l.Cg)([(0,a.MZ)({json:{write:!0}})],i.prototype,"wkid",void 0),i=r=(0,l.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],i)},9762(n,e,t){t.r(e),t.d(e,{projectBuffer:()=>l});var r=t(49208);function l(n,e,t,l,o,s,a=Math.floor(n.length/3)){const i=(0,r.jd)(e,o);if(null==i)return!1;if(i===r.pO){if(n===l&&t===s)return!0;const e=t+3*a;for(let r=t,o=s;r<e;r++,o++)l[o]=n[r]??0;return!0}const u=t+3*a;for(let e=t,r=s;e<u;e+=3,r+=3)i(n,e,l,r);return!0}},49208(n,e,t){t.d(e,{Tp:()=>f,jd:()=>c,pO:()=>d});var r=t(34727),l=t(86211),o=t(73941),s=t(79258),a=t(34403),i=t(21325);const u={2:{5:d,7:null,9:null,10:d,1:y,6:null,8:null,0:null,3:g,11:m,2:d,4:P},5:{5:d,7:null,9:null,10:d,1:y,6:null,8:null,0:null,3:g,11:m,2:d,4:P},7:{5:null,7:d,9:null,10:d,1:null,6:j,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:R,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(n,e,t,r){const l=n[e]/U,o=S-2*Math.atan(Math.exp(-n[e+1]/U)),s=U+(n[e+2]??0),a=Math.cos(o)*s;t[r]=Math.cos(l)*a,t[r+1]=Math.sin(l)*a,t[r+2]=Math.sin(o)*s},6:null,8:null,0:null,3:d,11:function(n,e,t,r){h(n,e,t,r),m(t,r,t,r)},2:h,4:function(n,e,t,r){h(n,e,t,r),P(t,r,t,r)}},4:{5:k,7:null,9:null,10:k,1:function(n,e,t,r){k(n,e,t,r),y(t,r,t,r)},6:null,8:null,0:null,3:function(n,e,t,r){k(n,e,t,r),g(t,r,t,r)},11:function(n,e,t,r){k(n,e,t,r),m(t,r,t,r)},2:k,4:d},1:{5:O,7:null,9:null,10:O,1:d,6:null,8:null,0:null,3:function(n,e,t,r){O(n,e,t,r),g(t,r,t,r)},11:function(n,e,t,r){O(n,e,t,r),m(t,r,t,r)},2:O,4:function(n,e,t,r){O(n,e,t,r),P(t,r,t,r)}},6:{5:null,7:I,9:null,10:I,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:v,10:v,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:y,6:j,8:R,0:null,3:g,11:m,2:d,4:P},11:{5:w,7:null,9:null,10:w,1:function(n,e,t,r){w(n,e,t,r),y(t,r,t,r)},6:null,8:null,0:null,3:function(n,e,t,r){w(n,e,t,r),g(t,r,t,r)},11:d,2:w,4:function(n,e,t,r){w(n,e,t,r),P(t,r,t,r)}}};function c(n,e){return f(n,e)?.projector}function f(n,e){if(null==n||null==e)return null;if(x.source.spatialReference===n&&x.dest.spatialReference===e)return x;const t=p(n,x.source),r=p(e,x.dest);return 0===t&&0===r?(0,i.aI)(n,e)?x.projector=d:x.projector=null:x.projector=u[t][r],x}function p(n,e){return n?e.spatialReference===n?e.spatialReferenceId:(e.spatialReference=n,"metersPerUnit"in e&&(e.metersPerUnit=(0,l.GA)(n,1)),(0,o.jA)(n)?e.spatialReferenceId=1:(0,i.oT)(n)?e.spatialReferenceId=2:(0,i.K8)(n)?e.spatialReferenceId=3:(0,i.r1)(n)?e.spatialReferenceId=11:n.wkt===o.Ro.wkt?e.spatialReferenceId=4:4490===n.wkid?e.spatialReferenceId=5:n.wkt===o.FY.wkt?e.spatialReferenceId=6:n.wkt===o.LJ.wkt?e.spatialReferenceId=8:(0,o.q8)(n)?e.spatialReferenceId=7:(0,o.KQ)(n)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function d(n,e,t,r){n!==t&&(t[r++]=n[e++],t[r++]=n[e++],t[r]=n[e]??0)}function h(n,e,t,r){t[r]=C*(n[e]/U),t[r+1]=C*(S-2*Math.atan(Math.exp(-n[e+1]/U))),t[r+2]=n[e+2]??0}function g(n,e,t,l){!function(n,e,t,l,o){const s=.4999999*Math.PI,a=(0,r.qE)(T*n[e+1],-s,s),i=Math.sin(a);t[l++]=T*n[e]*o.radius,t[l++]=o.halfSemiMajorAxis*Math.log((1+i)/(1-i)),t[l]=n[e+2]??0}(n,e,t,l,s.$O)}function m(n,e,t,r){t[r]=n[e]*b,t[r+1]=n[e+1]*b,t[r+2]=n[e+2]??0}function w(n,e,t,r){t[r]=n[e]*Z,t[r+1]=n[e+1]*Z,t[r+2]=n[e+2]??0}function M(n,e,t,r,l){const o=l+(n[e+2]??0),s=T*n[e],a=T*n[e+1],i=Math.cos(a)*o;t[r]=Math.cos(s)*i,t[r+1]=Math.sin(s)*i,t[r+2]=Math.sin(a)*o}function R(n,e,t,r){M(n,e,t,r,s.Sw.radius)}function j(n,e,t,r){M(n,e,t,r,s.sH.radius)}function y(n,e,t,r){M(n,e,t,r,s.$O.radius)}function A(n,e,t,l,o){const s=n[e],a=n[e+1],i=n[e+2]??0,u=Math.sqrt(s*s+a*a+i*i),c=(0,r.YN)(i/(0===u?1:u)),f=Math.atan2(a,s);t[l++]=C*f,t[l++]=C*c,t[l]=u-o}function v(n,e,t,r){A(n,e,t,r,s.Sw.radius)}function I(n,e,t,r){A(n,e,t,r,s.sH.radius)}function O(n,e,t,r){A(n,e,t,r,s.$O.radius)}function P(n,e,t,r){!function(n,e,t,r,l){const o=T*n[e],s=T*n[e+1],a=n[e+2]??0,i=Math.sin(s),u=Math.cos(s),c=l.radius/Math.sqrt(1-l.eccentricitySquared*i*i);t[r++]=(c+a)*u*Math.cos(o),t[r++]=(c+a)*u*Math.sin(o),t[r++]=(c*(1-l.eccentricitySquared)+a)*i}(n,e,t,r,s.$O)}function k(n,e,t,r){const l=a.TP,o=n[e],i=n[e+1],u=n[e+2]??0;let c,f,p,d,h,g,m,w,M,R,j,y,A,v,I,O,P,k,x,T,S;c=Math.abs(u),f=o*o+i*i,p=Math.sqrt(f),d=f+u*u,h=Math.sqrt(d),T=Math.atan2(i,o),g=u*u/d,m=f/d,v=l.a2/h,I=l.a3-l.a4/h,m>.3?(w=c/h*(1+m*(l.a1+v+g*I)/h),x=Math.asin(w),R=w*w,M=Math.sqrt(1-R)):(M=p/h*(1-g*(l.a5-v-m*I)/h),x=Math.acos(M),R=1-M*M,w=Math.sqrt(R)),j=1-s.$O.eccentricitySquared*R,y=s.$O.radius/Math.sqrt(j),A=l.a6*y,v=p-y*M,I=c-A*w,P=M*v+w*I,O=M*I-w*v,k=O/(A/j+P),x+=k,S=P+O*k/2,u<0&&(x=-x),t[r++]=C*T,t[r++]=C*x,t[r]=S}const x={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},T=(0,r.kU)(1),C=(0,r.KJ)(1),S=.5*Math.PI,U=s.$O.radius,b=U*Math.PI/180,Z=180/(U*Math.PI);t.d(e,["w5",0,u])},99917(n,e,t){t.r(e),t.d(e,{canProjectWithoutEngine:()=>E,initializeProjection:()=>W,isEqualBaseGCS:()=>K,isLoaded:()=>x,isLoadedOrLoad:()=>T,isLoadedOrLoadFor:()=>C,load:()=>U,project:()=>b,projectAsync:()=>B,projectExtent:()=>_,projectMany:()=>Z,projectMultipoint:()=>Y,projectOrLoad:()=>L,projectOrLoadMany:()=>$,projectPoint:()=>H,projectPolygon:()=>V,projectPolyline:()=>J,projectWithoutEngine:()=>F,requiresLoad:()=>S,test:()=>G,tryProject:()=>q});var r=t(49186),l=t(17676),o=t(62788),s=t(95488),a=t(51850),i=t(21276),u=t(73941),c=t(5443),f=t(91075),p=t(48526),d=t(86738),h=t(39829),g=t(82799),m=t(16930),w=t(98764),M=t(159),R=t(9762);const j={loadPromise:null,projectOperator:null,jsonProjectOperator:null,geographicTransformationUtils:null,defaultTransformations:{}};var y=t(49208);function A(n,e,t,r,l,o){return v[0]=n,v[1]=e,v[2]=t,(0,R.projectBuffer)(v,r,0,l,o,0)}const v=(0,a.vt)();var I=t(60408),O=t(21325),P=t(52006);const k=new s.I;function x(){const{projectOperator:n,jsonProjectOperator:e,geographicTransformationUtils:t}=j;return!!(n?.isLoaded()&&e?.isLoaded()&&t?.isLoaded())}function T(){return!!x()||((0,o.gc)(k),U(),!1)}function C(n,e){return!n||!e||E(n,e)||T()}function S(n,e){return!E(n,e)&&!x()}async function U(n){null==j.loadPromise&&(j.loadPromise=Promise.all([t.e(3276).then(t.bind(t,83276)).then(n=>(j.projectOperator=n,n.load())),t.e(8377).then(t.bind(t,8377)).then(n=>(j.jsonProjectOperator=n,n.load())),t.e(2158).then(t.bind(t,12158)).then(n=>(j.geographicTransformationUtils=n,n.load()))])),await j.loadPromise,(0,l.Te)(n),k.notify()}function b(n,e,t){return Array.isArray(n)?0===n.length?[]:((0,i.H)(n),Z(n,n[0].spatialReference,e,t)):((0,i.f)(n),Z([n],n.spatialReference,e,t)[0])}function Z(n,e,t,r){if(null==e||null==t)return n;if(E(e,t,r))return n.map(n=>F(n,e,t));if(null==r?.geographicTransformation&&(0,u.jA)(e))return Z(n.map(n=>F(n,e,m.A.WGS84)),m.A.WGS84,t,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(t))return Z(n,e,m.A.WGS84).map(n=>F(n,m.A.WGS84,t));if(!x())throw new z;const{geographicTransformationUtils:l,defaultTransformations:o}=j;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:l.getTransformation(e,t,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){const n=function(n,e){return[n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,t);let s=o[n];s||(s=l.getTransformation(e,t)||new M.A,o[n]=s),r={geographicTransformation:s,zConversionDisabled:r?.zConversionDisabled}}return n[0].spatialReference||(n[0].spatialReference=e),n[0]instanceof f.A?j.projectOperator.executeMany(n,t,r):j.jsonProjectOperator.executeMany(n,t,r)}function q(n,e,t){try{return b(n,e,t)}catch(n){return null}}function L(n,e){const t=$([n],e);return null!=t.pending?{pending:t.pending,geometry:null}:null!=t.geometries?{pending:null,geometry:t.geometries[0]}:{pending:null,geometry:null}}function $(n,e,t){if(!x())for(const t of n)if(null!=t&&!(0,O.aI)(t.spatialReference,e)&&(0,O.fn)(t.spatialReference)&&(0,O.fn)(e)&&!E(t.spatialReference,e))return(0,o.gc)(k),{pending:U(),geometries:null};return{pending:null,geometries:n.map(n=>null==n?null:(0,O.aI)(n.spatialReference,e)?n:(0,O.fn)(n.spatialReference)&&(0,O.fn)(e)?b(n,e,t):null)}}class z extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}const G={get loadPromise(){return j.loadPromise}};async function B(n,e,t){if((0,l.Te)(t),!n)return n;const r=$(Array.isArray(n)?n:[n],e,t);if(r.pending)return await r.pending,(0,l.Te)(t),B(n,e,t);const o=r.geometries??[];return Array.isArray(n)?o:o[0]}function E(n,e,t){return!(t?.areaOfInterestExtent||t?.extendedParams||t?.geographicTransformation)&&(!!(0,O.aI)(n,e)||(0,O.fn)(n)&&(0,O.fn)(e)&&!!(0,y.jd)(n,e))}function K(n,e){if((0,O.aI)(n,e))return!0;if(!(0,O.fn)(n)||!(0,O.fn)(e))return!1;const t=(0,O.oT)(n)||(0,O.K8)(n)||(0,O.x1)(n),r=(0,O.oT)(e)||(0,O.K8)(e)||(0,O.x1)(e);return t&&r}async function W(n,e,t,r){if(x())return(0,l.NO)(r);if(Array.isArray(n)){for(const{source:e,dest:t,options:l}of n)if(e&&t&&!E(e,t,l))return U(r)}else if(n&&e&&!E(n,e,t))return U(r);return(0,l.NO)(r)}function F(n,e,t){return n?(0,I.fT)(n)?D(n,e,new d.A,t,0):(0,I.ZC)(n)?nn(n,e,new c.A,t,0):(0,I.Bi)(n)?X(n,e,new h.A,t,0):(0,I.Rg)(n)?Q(n,e,new g.A,t,0):(0,I.U9)(n)?N(n,e,new p.A,t,0):null:null}function H(n,e,t=e.spatialReference,r=0){return null!=t&&null!=n.spatialReference&&null!=D(n,n.spatialReference,e,t,r)}function D(n,e,t,r,l){ln[0]=n.x,ln[1]=n.y;const o=n.z;return ln[2]=void 0!==o?o:l,(0,R.projectBuffer)(ln,e,0,ln,r,0)?(t.x=ln[0],t.y=ln[1],t.spatialReference=r,void 0!==o||(0,u.xP)(r)?(t.z=ln[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===n.m?(t.m=void 0,t.hasM=!1):(t.m=n.m,t.hasM=!0),t):null}function Y(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=N(n,n.spatialReference,e,t,r)}function N(n,e,t,r,l){const{points:o,hasZ:s,hasM:a}=n,i=[],u=o.length,c=[];for(const n of o)c.push(n[0],n[1],s?n[2]:l);if(!(0,R.projectBuffer)(c,e,0,c,r,0,u))return null;const f=rn(s,r);for(let n=0;n<u;++n){const e=3*n,t=c[e],r=c[e+1];f&&a?i.push([t,r,c[e+2],o[n][3]]):f?i.push([t,r,c[e+2]]):a?i.push([t,r,o[n][2]]):i.push([t,r])}return t.points=i,t.spatialReference=r,t.hasZ=s,t.hasM=a,t}function J(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=Q(n,n.spatialReference,e,t,r)}function Q(n,e,t,r,l){const{curvePaths:o,paths:s,hasZ:a,hasM:i}=n;if(!(o?tn(o,a??!1,i??!1,e,t.curvePaths=[],r,l):en(s,a??!1,i??!1,e,t.paths,r,l)))return null;const u=rn(a,r);return t.spatialReference=r,t.hasZ=u,t.hasM=i,t}function V(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=X(n,n.spatialReference,e,t,r)}function X(n,e,t,r,l){const{curveRings:o,rings:s,hasZ:a,hasM:i}=n;return(o?tn(o,a??!1,i??!1,e,t.curveRings=[],r,l):en(s,a??!1,i??!1,e,t.rings,r,l))?(t.spatialReference=r,t.hasZ=rn(a,r),t.hasM=i,t):null}function _(n,e,t=e.spatialReference,r=0){return null!=n.spatialReference&&null!=t&&null!=nn(n,n.spatialReference,e,t,r)}function nn(n,e,t,r,l){const{xmin:o,ymin:s,xmax:a,ymax:i,hasZ:u,hasM:c}=n;if(!A(o,s,u?n.zmin:l,e,ln,r))return null;const f=rn(u,r);return t.xmin=ln[0],t.ymin=ln[1],f&&(t.zmin=ln[2]),A(a,i,u?n.zmax:l,e,ln,r)?(t.xmax=ln[0],t.ymax=ln[1],f&&(t.zmax=ln[2]),c&&(t.mmin=n.mmin,t.mmax=n.mmax),t.spatialReference=r,t):null}function en(n,e,t,r,l,o,s=0){const a=new Array;for(const t of n)for(const n of t)a.push(n[0],n[1],e?n[2]:s);if(!(0,R.projectBuffer)(a,r,0,a,o,0))return!1;let i=0;l.length=0;const u=e?3:2,c=rn(e,o);for(const e of n){const n=new Array;for(const r of e){const e=a.slice(i,i+=3);c||e.pop(),t&&e.push(r[u]),n.push(e)}l.push(n)}return!0}function tn(n,e,t,r,l,o,s=0){const a=new Array;for(const t of n)for(const n of t){if((0,P.FG)(n))return!1;if((0,P.aO)(n)){const[t,r]=n.c;a.push(t[0],t[1],e?t[2]:s,r[0],r[1],s);continue}if((0,P.n1)(n)){const[t,r,l]=n.b;a.push(t[0],t[1],e?t[2]:s,r[0],r[1],s,l[0],l[1],s);continue}const t=n;a.push(t[0],t[1],e?t[2]:s)}if(!(0,R.projectBuffer)(a,r,0,a,o,0))return!1;let i=0;l.length=0;const u=e?3:2,c=rn(e,o);for(const e of n){const n=new Array;for(const r of e){const e=a.slice(i,i+=3);if(c||e.pop(),t&&e.push((0,P.yP)(r)[u]),(0,P.FG)(r))return!1;if((0,P.aO)(r)){const t=a[i++],r=a[i++];++i,n.push({c:[e,[t,r]]});continue}if((0,P.n1)(r)){const t=a[i++],r=a[i++];++i;const l=a[i++],o=a[i++];++i,n.push({b:[e,[t,r],[l,o]]});continue}n.push(e)}l.push(n)}return!0}function rn(n,e){return n||(0,u.xP)(e)||(0,O.aI)(e,w.Y0)}const ln=(0,a.vt)()},98764(n,e,t){t.d(e,{lO:()=>c});var r=t(73941),l=t(16930),o=t(21325);const s=new l.A(r.fv),a=new l.A(r.FY),i=new l.A(r.LJ),u=new l.A(r.Ro);function c(n){const e=f.get(n);if(e)return e;let t=s;if(n)if(n===a)t=a;else if(n===i)t=i;else{const e=n.wkid,r=n.latestWkid;if(null!=e||null!=r)(0,o.tl)(e)||(0,o.tl)(r)?t=a:((0,o.ZL)(e)||(0,o.ZL)(r))&&(t=i);else{const e=n.wkt2??n.wkt;if(e){const n=e.toUpperCase();n===p?t=a:n===d&&(t=i)}}}return f.set(n,t),t}const f=new Map,p=a.wkt.toUpperCase(),d=i.wkt.toUpperCase();t.d(e,["GD",0,s,"Y0",0,u])},34403(n,e,t){var r=t(79258);Math.PI;const l=r.$O.radius,o=r.$O.eccentricitySquared,s={a1:l*o,a2:l*o*l*o,a3:l*o*o/2,a4:l*o*l*o*2.5,a5:l*o+l*o*o/2,a6:1-o};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,t.d(e,["TP",0,s])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5914,8125],{57694(e,t,n){n.d(t,{a:()=>i,c:()=>s});var r=n(55537),o=n(83661);function s(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case r.G.enumPolygon:return a(e);case r.G.enumPolyline:return g(e.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(e){const t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case r.G.enumMultiPoint:return function(e){const t=new o.K(0),n=new o.K(0),r=e.getImpl(),s=r.getAttributeStreamRef(0),i=r.getPointCount(),a=new o.P;for(let e=0;e<i;e++)s.queryPoint2D(2*e,a),t.add(a.x),n.add(a.y);const u=new o.P;return u.setCoords(t.getResult(),n.getResult()),u.divThis(i)}(e);case r.G.enumEnvelope:return e.getCenterXY();case r.G.enumPoint:return e.getXY();default:return o.P.construct(Number.NaN,Number.NaN)}return o.P.construct(Number.NaN,Number.NaN)}function i(e,t){return a(e,t)}function a(e,t=-1){const n=new o.K(0),r=new o.K(0),s=e.getImpl();let i;const a=s.hasNonLinearSegments();let g;const h=s.getXY(0);if(-1===t){if(g=s.calculateArea2D(),0===g)return l(e);a&&(i=s.querySegmentIterator());for(let e=0,t=s.getPathCount();e<t;e++)u(h,s,e,n,r),a&&c(h,i,n,r)}else{if(g=s.calculateRingArea2D(t),0===g)return l(e,t);a&&(i=s.querySegmentIterator(),i.resetToPath(t)),u(h,s,t,n,r),a&&c(h,i,n,r)}const m=new o.P,f=new o.P;return m.setCoords(n.getResult(),r.getResult()),f.assign(m.mul(1/g).add(h)),f}function u(e,t,n,r,s){const i=t.getPathStart(n),a=t.getPathEnd(n);if(a-i<3)return;const u=t.getAttributeStreamRef(0),c=u.readPoint2D(2*i),l=u.readPoint2D(2*(i+1));l.subThis(c);const g=new o.K(0),h=t.hasNonLinearSegments(),m=1/3,f=new o.P;for(let e=i+2;e<a;e++){u.queryPoint2D(2*e,f),f.subThis(c);const t=.5*f.crossProduct(l);h&&g.add(t);const n=m*t;r.add((l.x+f.x)*n),s.add((l.y+f.y)*n),l.setCoordsPoint2D(f)}const d=h?g.getResult():t.calculateRingArea2D(n),P=c.sub(e).mul(d);r.add(P.x),s.add(P.y)}function c(e,t,n,o){let s;for(t.nextPath()||(0,r.d)("centroid");null!==(s=t.nextCurve());){const t=s.calculateWeightedAreaCentroid2D(e);n.add(t.x),o.add(t.y)}}function l(e,t=-1){return g(e.getImpl(),t)}function g(e,t=-1){const n=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===n)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));const n=new o.K(0),r=new o.K(0);for(let t=0;t<e.getPathCount();++t){const o=e.getXY(e.getPathStart(t));n.add(o.x),r.add(o.y)}return o.P.construct(n.getResult(),r.getResult()).mul(1/e.getPathCount())}(e,t);const r=new o.K(0),s=new o.K(0),i=e.querySegmentIterator();for(-1!==t&&i.resetToPath(t);i.nextPath();){const n=i.getPathIndex(),o=e.getXY(e.getPathStart(n));for(;i.hasNextSegment();){const e=i.nextSegment(),t=e.calculateLength2D();if(0===t)continue;const n=e.calculateWeightedCentroid2D().sub(o.mul(t));r.add(n.x),s.add(n.y)}const a=o.mul(e.calculatePathLength2D(n));if(r.add(a.x),s.add(a.y),-1!==t)break}const a=new o.P;return a.setCoords(r.getResult(),s.getResult()),a.mul(1/n)}},88194(e,t,n){n.d(t,{O:()=>h});var r=n(55537),o=n(79187),s=n(83661),i=n(39117);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.h)(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.E)(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 g=n(95213);class h{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,g.d)(null,n,!1);let s;if(s=(0,i.E)(e,t,a?0:r),0!==s){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),h=new s.P;let m=-1,f=-1,d=Number.MAX_VALUE,P=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?(P=1,h.assign(r),m=c.getStartPointIndex(),f=c.getPathIndex(),d=o):o===d&&P++}-1===m&&(0,r.a)("");const y=u(h,m,Math.sqrt(d));if(a)if(e.getGeometryType()!==r.G.enumPolygon){let n=!1;if(P>1){const r=l(e,t,m,f);n=0!==r&&3!==r}else c.resetToVertex(m,f),n=0!==l(c.nextSegment(),t);y.m_bRightSide=n}else n||0!==(0,i.E)(e,t,0)&&(y.m_bRightSide=!0);return y}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,g=a*a+l*l;g<=c&&o.push(u(s.P.construct(n,r),e,Math.sqrt(g)))}o.sort((e,t)=>e.m_distance-t.m_distance)}return o.slice(0,r)}}},5913(e,t,n){n.d(t,{e:()=>s});var r=n(54945),o=n(78125);function s(e){return(0,o.toPoint)((0,r.g7)((0,o.fromGeometry)(e)),(0,o.getSpatialReference)(e))}const i=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:s,executeMany:function(e){const t=e.map(o.fromGeometry),n=(0,o.getSpatialReference)(e);return(0,r.zo)(t).map(e=>(0,o.toPoint)(e,n))},supportsCurves:i},Symbol.toStringTag,{value:"Module"}));n.d(t,["l",0,a])},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>s,lM:()=>o});var r=n(34275);function o(e){if(!e)return 0;let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=i(e[n],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=l;for(let r=0;r<t;r++)n+=i(e[r]);return n}(e);let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=i(e[n]));return t}function i(e,t=!0){switch(typeof e){case"object":return t?s(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+g:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return l+e.length*t}const c=32,l=16,g=145},54945(e,t,n){n.d(t,{fz:()=>y,g7:()=>d,zo:()=>P});var r=n(76061),o=n(61691),s=n(55537),i=n(95213),a=n(88885),u=n(79187),c=n(83661),l=n(39117),g=n(57694),h=n(88194);class m extends o.G{m_inputGeoms;m_index=-1;m_progressTracker;m_progressCounter=0;progress_(){}tock(){return!0}getRank(){return 1}constructor(e,t){super(),this.m_progressTracker=t,this.m_inputGeoms=e}next(){const e=this.m_inputGeoms.next();return e?((0,s.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.labelPoint(e)):null}getGeometryID(){return this.m_index}labelPoint(e){if(null===e&&(0,s.a)("null pointer is not allowed"),e.getGeometryType()===s.G.enumPoint)return e;if(e.isEmpty())return new i.P({vd:e.getDescription()});switch(e.getGeometryType()){case s.G.enumPolygon:return this.labelPointPolygon(e);case s.G.enumPolyline:return this.labelPointPolyline(e);case s.G.enumMultiPoint:return this.labelPointMultiPoint(e);case s.G.enumEnvelope:return this.labelPointEnvelope(e);default:(0,s.a)("geometry is not supported")}}labelPointPolygon(e){const t=new u.Envelope2D;e.queryEnvelope(t);const n=(0,i.c)(null,t,!0).total();let r=null,o=e;if(e.hasNonLinearSegments()){const t=new a.P({copy:e}),i=(0,l.aN)(t,.25*n,n);(0,s.g)(i!==e),r=i,o=r}let m=0,f=0;for(let e=0,t=o.getPathCount();e<t;++e){const t=Math.abs(o.calculateRingArea2D(e));t>f&&(f=t,m=e)}const d=new c.P;if(Math.abs(f)<=2*n*n?d.setNAN():d.assign((0,g.a)(o,m)),Number.isNaN(d.x)){const e=new u.Envelope2D;return o.queryPathEnvelope(m,e),new i.P({pt:e.getCenter()})}if(o.getPointCount()<4)return new i.P({x:d.x,y:d.y});const P=c.P.getNAN(),y=[P.clone(),P.clone(),P.clone(),P.clone()],x=[Number.NaN,Number.NaN,Number.NaN,Number.NaN],p=[Number.NaN,Number.NaN,Number.NaN,Number.NaN];let N=!1,C=(new h.O).getNearestCoordinate(o,d,!0,!1);if(0===C.m_distance&&(N=!0,y[0]=d,C=(new h.O).getNearestCoordinate(o,d,!1,!1),C.m_distance>.25*t.minDimension()*1.66666666))return new i.P({x:d.x,y:d.y});x[0]=C.m_distance,p[0]=0;const w=new c.P;let b=!1,G=.25,S=-1;const D=new u.Envelope2D;o.queryPathEnvelope(m,D);do{let e=Number.NaN;if(y[1]=this.calculateParacentroid_(o,(0,c.r)(D.xmin,D.xmax,G),n),y[1].isNAN()||(C=(new h.O).getNearestCoordinate(o,y[1],!1,!1),e=C.m_distance),e>n&&1===(0,l.E)(o,y[1],n))b=!0,x[1]=e,p[1]=c.P.sqrDistance(y[1],d);else if(e>S&&(S=e,w.setCoordsPoint2D(y[1])),G-=.01,G<.1){if(!(S>=0))break;b=!0,x[1]=S,y[1]=w,p[1]=c.P.sqrDistance(y[1],d)}}while(!b);b=!1,G=.5,S=-1;let V=.01,v=1;do{let e=Number.NaN;if(y[2]=this.calculateParacentroid_(o,(0,c.r)(D.xmin,D.xmax,G),n),y[2].isNAN()||(C=(new h.O).getNearestCoordinate(o,y[2],!1,!1),e=C.m_distance),e>n&&1===(0,l.E)(o,y[2],n))b=!0,x[2]=e,p[2]=c.P.sqrDistance(y[2],d);else if(e>S&&(S=e,w.setCoordsPoint2D(y[2])),G=.5+V*v,V+=.01,v*=-1,G<.3||G>.7){if(!(S>=0))break;b=!0,x[2]=S,y[2]=w,p[2]=c.P.sqrDistance(y[2],d)}}while(!b);b=!1,G=.75,S=-1;do{let e=Number.NaN;if(y[3]=this.calculateParacentroid_(o,(0,c.r)(D.xmin,D.xmax,G),n),y[3].isNAN()||(C=(new h.O).getNearestCoordinate(o,y[3],!1,!1),e=C.m_distance),e>n&&1===(0,l.E)(o,y[3],n))b=!0,x[3]=e,p[3]=c.P.sqrDistance(y[3],d);else if(e>S&&(S=e,w.setCoordsPoint2D(y[3])),G+=.01,G>.9){if(!(S>=0))break;b=!0,x[3]=S,y[3]=w,p[3]=c.P.sqrDistance(y[3],d)}}while(!b);const E=[0,1,2,3],M=N?0:1;for(let e=M;e<4;e++)for(let e=M;e<3;e++){const t=p[e],n=p[e+1];if((0,c.t)(t,n)>0){const r=E[e];E[e]=E[e+1],E[e+1]=r,p[e]=n,p[e+1]=t}}let A=M,R=0,T=0;for(let e=M;e<4;e++){switch(e){case 0:T=2*x[E[e]];break;case 1:T=1.66666666*x[E[e]];break;case 2:T=1.33333333*x[E[e]];break;case 3:T=x[E[e]]}T>R&&(R=T,A=E[e])}return(0,s.g)(!y[A].isNAN()),new i.P({x:y[A].x,y:y[A].y})}labelPointPolyline(e){const t=new c.P;if(e.getPointCount()>2*e.getPathCount()){let n=-1,r=-Number.MAX_VALUE;for(let t=0,o=e.getPathCount();t<o;t++)if(e.getPathSize(t)>2){const o=e.calculatePathLength2D(t);o>r&&(r=o,n=t)}const o=e.getPathStart(n),s=e.getPathEnd(n),i=Math.trunc((o+s)/2);t.assign(e.getXY(i))}else{let n=-Number.MAX_VALUE;const r=e.querySegmentIterator();for(;r.nextPath();)if(r.hasNextSegment()){const e=r.nextSegment(),o=e.calculateLength2D();o>n&&(n=o,t.assign(e.getCoord2D(e.lengthToT(.5*o))))}}return new i.P({x:t.x,y:t.y})}labelPointMultiPoint(e){const t=new u.Envelope2D;e.queryEnvelope(t);const n=t.getCenter(),r=(new h.O).getNearestCoordinate(e,n,!1,!1).m_coordinate;return new i.P({x:r.x,y:r.y})}labelPointEnvelope(e){const t=e.getCenterXY();return new i.P({x:t.x,y:t.y})}calculateParacentroid_(e,t,n){const r=new u.Envelope2D;e.queryEnvelope(r);const o=new c.P(t,0);let i=Number.MAX_VALUE,l=Number.MAX_VALUE,g=!1,h=!1;const m=new a.L;m.setStartXYCoords(o.x,r.ymin-1),m.setEndXYCoords(o.x,r.ymax+1);const f=new u.Envelope2D,d=new c.P,P=new c.P,y=(0,c.m)(c.P,2),x=e.querySegmentIterator();for(;x.nextPath();)for(;x.hasNextSegment();){const e=x.nextSegment();if(e.queryEnvelope(f),(0,s.g)(e.isMonotoneQuickAndDirty()),d.setCoordsPoint2D(m.getStartXY()),P.setCoordsPoint2D(m.getEndXY()),0===f.clipLine(d,P))continue;if(1!==m.intersect(e,y,null,null,n))continue;const t=y[0].y;i>l?t<i&&(i=t,g=!0):t<l&&(l=t,h=!0)}return g&&h?o.y=(i+l)/2:o.setNAN(),o}}const f=new class{getOperatorType(){return 10203}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t){return new m(e,t)}execute(e,t){return new m(null,t).labelPoint(e)}};function d(e){return f.execute(e,null)}function P(e){const t=f.executeMany(new r.S(e),null);return Array.from(t)}function y(){return f.supportsCurves()}},78125(e,t,n){n.r(t),n.d(t,{fromExtent:()=>P,fromGeometry:()=>d,fromMultipoint:()=>y,fromPoint:()=>x,fromPolygon:()=>p,fromPolyline:()=>N,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>w,getSpatialReference:()=>f,toExtent:()=>G,toGeometry:()=>b,toMultipoint:()=>S,toPoint:()=>D,toPolygon:()=>V,toPolyline:()=>v});var r=n(83661),o=n(55537),s=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),l=n(39829),g=n(82799),h=(n(90293),n(83299));const m="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function d(e){switch(e.type){case"point":return x(e);case"multipoint":return y(e);case"polyline":return N(e);case"polygon":return p(e);case"extent":return P(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function P(e){if(!e.getCacheValue(m)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function y(e){if(!e.getCacheValue(m)){const t=new 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(m,t)}return e.getCacheValue(m)}function x(e){if(!e.getCacheValue(m)){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(m,t)}return e.getCacheValue(m)}function p(e){if(!e.getCacheValue(m)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(m,s)}return e.getCacheValue(m)}function N(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(m,s)}return e.getCacheValue(m)}function C(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,h.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(m,s)}return e.getCacheValue(m)}function w(e){return e.cache?(e.cache[m]??=(0,h.fromSpatialReference)(e),e.cache[m]):(0,h.fromSpatialReference)(e)}function b(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return D(e,t);case o.G.enumEnvelope:return G(e,t);case o.G.enumMultiPoint:return S(e,t);case o.G.enumPolyline:return v(e,t);case o.G.enumPolygon:return V(e,t)}return null}function G(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(2,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(1,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(m,e),n}function S(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(m,e),c}function D(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(m,e),n}function V(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,h.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}function v(e,t){if(e.isEmpty())return null;const n=g.A.fromJSON({...(0,h.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}},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,this.hasZ,this.hasM)):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
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5914,8125],{57694(e,t,n){n.d(t,{a:()=>i,c:()=>s});var r=n(55537),o=n(83661);function s(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case r.G.enumPolygon:return a(e);case r.G.enumPolyline:return g(e.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(e){const t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case r.G.enumMultiPoint:return function(e){const t=new o.K(0),n=new o.K(0),r=e.getImpl(),s=r.getAttributeStreamRef(0),i=r.getPointCount(),a=new o.P;for(let e=0;e<i;e++)s.queryPoint2D(2*e,a),t.add(a.x),n.add(a.y);const u=new o.P;return u.setCoords(t.getResult(),n.getResult()),u.divThis(i)}(e);case r.G.enumEnvelope:return e.getCenterXY();case r.G.enumPoint:return e.getXY();default:return o.P.construct(Number.NaN,Number.NaN)}return o.P.construct(Number.NaN,Number.NaN)}function i(e,t){return a(e,t)}function a(e,t=-1){const n=new o.K(0),r=new o.K(0),s=e.getImpl();let i;const a=s.hasNonLinearSegments();let g;const h=s.getXY(0);if(-1===t){if(g=s.calculateArea2D(),0===g)return l(e);a&&(i=s.querySegmentIterator());for(let e=0,t=s.getPathCount();e<t;e++)u(h,s,e,n,r),a&&c(h,i,n,r)}else{if(g=s.calculateRingArea2D(t),0===g)return l(e,t);a&&(i=s.querySegmentIterator(),i.resetToPath(t)),u(h,s,t,n,r),a&&c(h,i,n,r)}const m=new o.P,f=new o.P;return m.setCoords(n.getResult(),r.getResult()),f.assign(m.mul(1/g).add(h)),f}function u(e,t,n,r,s){const i=t.getPathStart(n),a=t.getPathEnd(n);if(a-i<3)return;const u=t.getAttributeStreamRef(0),c=u.readPoint2D(2*i),l=u.readPoint2D(2*(i+1));l.subThis(c);const g=new o.K(0),h=t.hasNonLinearSegments(),m=1/3,f=new o.P;for(let e=i+2;e<a;e++){u.queryPoint2D(2*e,f),f.subThis(c);const t=.5*f.crossProduct(l);h&&g.add(t);const n=m*t;r.add((l.x+f.x)*n),s.add((l.y+f.y)*n),l.setCoordsPoint2D(f)}const d=h?g.getResult():t.calculateRingArea2D(n),P=c.sub(e).mul(d);r.add(P.x),s.add(P.y)}function c(e,t,n,o){let s;for(t.nextPath()||(0,r.d)("centroid");null!==(s=t.nextCurve());){const t=s.calculateWeightedAreaCentroid2D(e);n.add(t.x),o.add(t.y)}}function l(e,t=-1){return g(e.getImpl(),t)}function g(e,t=-1){const n=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===n)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));const n=new o.K(0),r=new o.K(0);for(let t=0;t<e.getPathCount();++t){const o=e.getXY(e.getPathStart(t));n.add(o.x),r.add(o.y)}return o.P.construct(n.getResult(),r.getResult()).mul(1/e.getPathCount())}(e,t);const r=new o.K(0),s=new o.K(0),i=e.querySegmentIterator();for(-1!==t&&i.resetToPath(t);i.nextPath();){const n=i.getPathIndex(),o=e.getXY(e.getPathStart(n));for(;i.hasNextSegment();){const e=i.nextSegment(),t=e.calculateLength2D();if(0===t)continue;const n=e.calculateWeightedCentroid2D().sub(o.mul(t));r.add(n.x),s.add(n.y)}const a=o.mul(e.calculatePathLength2D(n));if(r.add(a.x),s.add(a.y),-1!==t)break}const a=new o.P;return a.setCoords(r.getResult(),s.getResult()),a.mul(1/n)}},88194(e,t,n){n.d(t,{O:()=>h});var r=n(55537),o=n(79187),s=n(83661),i=n(39117);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.h)(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.I)(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 g=n(95213);class h{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,g.d)(null,n,!1);let s;if(s=(0,i.I)(e,t,a?0:r),0!==s){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),h=new s.P;let m=-1,f=-1,d=Number.MAX_VALUE,P=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?(P=1,h.assign(r),m=c.getStartPointIndex(),f=c.getPathIndex(),d=o):o===d&&P++}-1===m&&(0,r.a)("");const y=u(h,m,Math.sqrt(d));if(a)if(e.getGeometryType()!==r.G.enumPolygon){let n=!1;if(P>1){const r=l(e,t,m,f);n=0!==r&&3!==r}else c.resetToVertex(m,f),n=0!==l(c.nextSegment(),t);y.m_bRightSide=n}else n||0!==(0,i.I)(e,t,0)&&(y.m_bRightSide=!0);return y}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,g=a*a+l*l;g<=c&&o.push(u(s.P.construct(n,r),e,Math.sqrt(g)))}o.sort((e,t)=>e.m_distance-t.m_distance)}return o.slice(0,r)}}},5913(e,t,n){n.d(t,{e:()=>s});var r=n(54945),o=n(78125);function s(e){return(0,o.toPoint)((0,r.g7)((0,o.fromGeometry)(e)),(0,o.getSpatialReference)(e))}const i=(0,r.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:s,executeMany:function(e){const t=e.map(o.fromGeometry),n=(0,o.getSpatialReference)(e);return(0,r.zo)(t).map(e=>(0,o.toPoint)(e,n))},supportsCurves:i},Symbol.toStringTag,{value:"Module"}));n.d(t,["l",0,a])},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>s,lM:()=>o});var r=n(34275);function o(e){if(!e)return 0;let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=i(e[n],!1));return t}function s(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=l;for(let r=0;r<t;r++)n+=i(e[r]);return n}(e);let t=c;for(const n in e)e.hasOwnProperty(n)&&(t+=i(e[n]));return t}function i(e,t=!0){switch(typeof e){case"object":return t?s(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+g:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return l+e.length*t}const c=32,l=16,g=145},54945(e,t,n){n.d(t,{fz:()=>y,g7:()=>d,zo:()=>P});var r=n(76061),o=n(61691),s=n(55537),i=n(95213),a=n(88885),u=n(79187),c=n(83661),l=n(39117),g=n(57694),h=n(88194);class m extends o.G{m_inputGeoms;m_index=-1;m_progressTracker;m_progressCounter=0;progress_(){}tock(){return!0}getRank(){return 1}constructor(e,t){super(),this.m_progressTracker=t,this.m_inputGeoms=e}next(){const e=this.m_inputGeoms.next();return e?((0,s.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.labelPoint(e)):null}getGeometryID(){return this.m_index}labelPoint(e){if(null===e&&(0,s.a)("null pointer is not allowed"),e.getGeometryType()===s.G.enumPoint)return e;if(e.isEmpty())return new i.P({vd:e.getDescription()});switch(e.getGeometryType()){case s.G.enumPolygon:return this.labelPointPolygon(e);case s.G.enumPolyline:return this.labelPointPolyline(e);case s.G.enumMultiPoint:return this.labelPointMultiPoint(e);case s.G.enumEnvelope:return this.labelPointEnvelope(e);default:(0,s.a)("geometry is not supported")}}labelPointPolygon(e){const t=new u.Envelope2D;e.queryEnvelope(t);const n=(0,i.c)(null,t,!0).total();let r=null,o=e;if(e.hasNonLinearSegments()){const t=new a.P({copy:e}),i=(0,l.aP)(t,.25*n,n);(0,s.g)(i!==e),r=i,o=r}let m=0,f=0;for(let e=0,t=o.getPathCount();e<t;++e){const t=Math.abs(o.calculateRingArea2D(e));t>f&&(f=t,m=e)}const d=new c.P;if(Math.abs(f)<=2*n*n?d.setNAN():d.assign((0,g.a)(o,m)),Number.isNaN(d.x)){const e=new u.Envelope2D;return o.queryPathEnvelope(m,e),new i.P({pt:e.getCenter()})}if(o.getPointCount()<4)return new i.P({x:d.x,y:d.y});const P=c.P.getNAN(),y=[P.clone(),P.clone(),P.clone(),P.clone()],x=[Number.NaN,Number.NaN,Number.NaN,Number.NaN],p=[Number.NaN,Number.NaN,Number.NaN,Number.NaN];let N=!1,C=(new h.O).getNearestCoordinate(o,d,!0,!1);if(0===C.m_distance&&(N=!0,y[0]=d,C=(new h.O).getNearestCoordinate(o,d,!1,!1),C.m_distance>.25*t.minDimension()*1.66666666))return new i.P({x:d.x,y:d.y});x[0]=C.m_distance,p[0]=0;const w=new c.P;let b=!1,G=.25,S=-1;const D=new u.Envelope2D;o.queryPathEnvelope(m,D);do{let e=Number.NaN;if(y[1]=this.calculateParacentroid_(o,(0,c.r)(D.xmin,D.xmax,G),n),y[1].isNAN()||(C=(new h.O).getNearestCoordinate(o,y[1],!1,!1),e=C.m_distance),e>n&&1===(0,l.I)(o,y[1],n))b=!0,x[1]=e,p[1]=c.P.sqrDistance(y[1],d);else if(e>S&&(S=e,w.setCoordsPoint2D(y[1])),G-=.01,G<.1){if(!(S>=0))break;b=!0,x[1]=S,y[1]=w,p[1]=c.P.sqrDistance(y[1],d)}}while(!b);b=!1,G=.5,S=-1;let V=.01,v=1;do{let e=Number.NaN;if(y[2]=this.calculateParacentroid_(o,(0,c.r)(D.xmin,D.xmax,G),n),y[2].isNAN()||(C=(new h.O).getNearestCoordinate(o,y[2],!1,!1),e=C.m_distance),e>n&&1===(0,l.I)(o,y[2],n))b=!0,x[2]=e,p[2]=c.P.sqrDistance(y[2],d);else if(e>S&&(S=e,w.setCoordsPoint2D(y[2])),G=.5+V*v,V+=.01,v*=-1,G<.3||G>.7){if(!(S>=0))break;b=!0,x[2]=S,y[2]=w,p[2]=c.P.sqrDistance(y[2],d)}}while(!b);b=!1,G=.75,S=-1;do{let e=Number.NaN;if(y[3]=this.calculateParacentroid_(o,(0,c.r)(D.xmin,D.xmax,G),n),y[3].isNAN()||(C=(new h.O).getNearestCoordinate(o,y[3],!1,!1),e=C.m_distance),e>n&&1===(0,l.I)(o,y[3],n))b=!0,x[3]=e,p[3]=c.P.sqrDistance(y[3],d);else if(e>S&&(S=e,w.setCoordsPoint2D(y[3])),G+=.01,G>.9){if(!(S>=0))break;b=!0,x[3]=S,y[3]=w,p[3]=c.P.sqrDistance(y[3],d)}}while(!b);const M=[0,1,2,3],A=N?0:1;for(let e=A;e<4;e++)for(let e=A;e<3;e++){const t=p[e],n=p[e+1];if((0,c.t)(t,n)>0){const r=M[e];M[e]=M[e+1],M[e+1]=r,p[e]=n,p[e+1]=t}}let E=A,R=0,T=0;for(let e=A;e<4;e++){switch(e){case 0:T=2*x[M[e]];break;case 1:T=1.66666666*x[M[e]];break;case 2:T=1.33333333*x[M[e]];break;case 3:T=x[M[e]]}T>R&&(R=T,E=M[e])}return(0,s.g)(!y[E].isNAN()),new i.P({x:y[E].x,y:y[E].y})}labelPointPolyline(e){const t=new c.P;if(e.getPointCount()>2*e.getPathCount()){let n=-1,r=-Number.MAX_VALUE;for(let t=0,o=e.getPathCount();t<o;t++)if(e.getPathSize(t)>2){const o=e.calculatePathLength2D(t);o>r&&(r=o,n=t)}const o=e.getPathStart(n),s=e.getPathEnd(n),i=Math.trunc((o+s)/2);t.assign(e.getXY(i))}else{let n=-Number.MAX_VALUE;const r=e.querySegmentIterator();for(;r.nextPath();)if(r.hasNextSegment()){const e=r.nextSegment(),o=e.calculateLength2D();o>n&&(n=o,t.assign(e.getCoord2D(e.lengthToT(.5*o))))}}return new i.P({x:t.x,y:t.y})}labelPointMultiPoint(e){const t=new u.Envelope2D;e.queryEnvelope(t);const n=t.getCenter(),r=(new h.O).getNearestCoordinate(e,n,!1,!1).m_coordinate;return new i.P({x:r.x,y:r.y})}labelPointEnvelope(e){const t=e.getCenterXY();return new i.P({x:t.x,y:t.y})}calculateParacentroid_(e,t,n){const r=new u.Envelope2D;e.queryEnvelope(r);const o=new c.P(t,0);let i=Number.MAX_VALUE,l=Number.MAX_VALUE,g=!1,h=!1;const m=new a.L;m.setStartXYCoords(o.x,r.ymin-1),m.setEndXYCoords(o.x,r.ymax+1);const f=new u.Envelope2D,d=new c.P,P=new c.P,y=(0,c.m)(c.P,2),x=e.querySegmentIterator();for(;x.nextPath();)for(;x.hasNextSegment();){const e=x.nextSegment();if(e.queryEnvelope(f),(0,s.g)(e.isMonotoneQuickAndDirty()),d.setCoordsPoint2D(m.getStartXY()),P.setCoordsPoint2D(m.getEndXY()),0===f.clipLine(d,P))continue;if(1!==m.intersect(e,y,null,null,n))continue;const t=y[0].y;i>l?t<i&&(i=t,g=!0):t<l&&(l=t,h=!0)}return g&&h?o.y=(i+l)/2:o.setNAN(),o}}const f=new class{getOperatorType(){return 10203}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t){return new m(e,t)}execute(e,t){return new m(null,t).labelPoint(e)}};function d(e){return f.execute(e,null)}function P(e){const t=f.executeMany(new r.S(e),null);return Array.from(t)}function y(){return f.supportsCurves()}},78125(e,t,n){n.r(t),n.d(t,{fromExtent:()=>P,fromGeometry:()=>d,fromMultipoint:()=>y,fromPoint:()=>x,fromPolygon:()=>p,fromPolyline:()=>N,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>w,getSpatialReference:()=>f,toExtent:()=>G,toGeometry:()=>b,toMultipoint:()=>S,toPoint:()=>D,toPolygon:()=>V,toPolyline:()=>v});var r=n(83661),o=n(55537),s=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),l=n(39829),g=n(82799),h=(n(90293),n(83299));const m="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function d(e){switch(e.type){case"point":return x(e);case"multipoint":return y(e);case"polyline":return N(e);case"polygon":return p(e);case"extent":return P(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function P(e){if(!e.getCacheValue(m)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function y(e){if(!e.getCacheValue(m)){const t=new 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(m,t)}return e.getCacheValue(m)}function x(e){if(!e.getCacheValue(m)){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(m,t)}return e.getCacheValue(m)}function p(e){if(!e.getCacheValue(m)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(m,s)}return e.getCacheValue(m)}function N(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(m,s)}return e.getCacheValue(m)}function C(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,h.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(m,s)}return e.getCacheValue(m)}function w(e){return e.cache?(e.cache[m]??=(0,h.fromSpatialReference)(e),e.cache[m]):(0,h.fromSpatialReference)(e)}function b(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return D(e,t);case o.G.enumEnvelope:return G(e,t);case o.G.enumMultiPoint:return S(e,t);case o.G.enumPolyline:return v(e,t);case o.G.enumPolygon:return V(e,t)}return null}function G(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(2,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(1,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(m,e),n}function S(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(m,e),c}function D(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(m,e),n}function V(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,h.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}function v(e,t){if(e.isEmpty())return null;const n=g.A.fromJSON({...(0,h.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}},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,this.hasZ,this.hasM)):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 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9362],{60408(e,a,t){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function c(e){return"object"==typeof e&&"vertexAttributes"in e}function o(e){return e?s(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function y(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}t.d(a,{$B:()=>o,Bi:()=>l,Pv:()=>u,Rg:()=>i,U9:()=>n,W0:()=>y,ZC:()=>r,fT:()=>s,uW:()=>c})},22429(e,a,t){t.d(a,{v:()=>n});var r=t(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const n=await(0,r.L)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:t}=this;if(t.has(a))return t.get(a);const r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){const t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},92009(e,a,t){t.d(a,{L:()=>u});var r=t(70333),n=t(11254),s=t(49186),i=t(17676),l=t(60694),c=t(20655),o=t(80812);async function u(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),s=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=s&&(t.portal=new c.A({url:s}));try{return await t.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,i.QP)(e),null}}(u);if(!f?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,i=a.layerId;if(null==i)return{serverUrl:r};const c=y(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(r,t)},f=d("anonymous").catch(()=>d("no-prompt")),[m,L]=await Promise.all([f,c]),p=L?.layers,w=m.data&&m.data.layers;if(!Array.isArray(w))throw new Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,w.length);e++)if(p[e].id===i)return{serverUrl:r,layerId:w[e].id}}else if(null!=i&&i<w.length)return{serverUrl:r,layerId:w[i].id};throw new Error("could not find matching associated sublayer")}},23154(e,a,t){t.d(a,{A6:()=>l,Aq:()=>L,Jo:()=>m,QM:()=>i});var r=t(77548),n=t(7861);const s=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,a){const{serviceJSON:t,layersJSON:r,...n}=await l(e,a);u(t);const s={serviceJSON:t,...n};return r&&(u(r),s.layersJSON=r),s}async function l(e,a){const{loadContext:t,...s}=a||{},i=t?await t.fetchServiceMetadata(e,s):await(0,n.L)(e,s),l=(0,r.G$)();f(i);const c={serviceJSON:i,preferredHost:l};if((i.currentVersion??0)<10.5)return c;const o=`${(0,r.$x)()??e}/layers`,u=t?await t.fetchServiceMetadata(o,s):await(0,n.L)(o,s);return f(u),c.layersJSON={layers:u.layers,tables:u.tables},c}function c(e){return s.has(e.type)}function o(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(c),e.tables=e.tables?.filter(o)}function y(e){e.type||="Feature Layer"}function d(e){e.type||="Table"}function f(e){e.layers?.forEach(y),e.tables?.forEach(d)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function L(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,t){const r={AnnotationFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(2718),t.e(737),t.e(9727)]).then(t.bind(t,20737))).default,BingMapsLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(6684)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(993),t.e(7005),t.e(8698),t.e(3705),t.e(3853),t.e(7120)]).then(t.bind(t,82411))).default,CSVLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9084)]).then(t.bind(t,68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(9789),t.e(4674),t.e(893),t.e(2718),t.e(7013),t.e(8882),t.e(2108)]).then(t.bind(t,83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(2718),t.e(3936)]).then(t.bind(t,25077))).default,DimensionLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(3766)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(2880),t.e(1817)]).then(t.bind(t,38732))).default,FeatureLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(617)]).then(t.bind(t,53781))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(5186),t.e(9224)]).then(t.bind(t,36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(1994)]).then(t.bind(t,15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3262)]).then(t.bind(t,63201))).default,GroupLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6018)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(893),t.e(1683),t.e(7939),t.e(6924),t.e(7772),t.e(2585)]).then(t.bind(t,87772))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(1683),t.e(2880),t.e(7939),t.e(2754),t.e(6924),t.e(9235),t.e(3500),t.e(1003),t.e(2806),t.e(9036)]).then(t.bind(t,90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(5186),t.e(8325),t.e(5399)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(993),t.e(5186),t.e(8325),t.e(7464)]).then(t.bind(t,74660))).default,KMLLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(1214),t.e(5051),t.e(9526)]).then(t.bind(t,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(9696),t.e(708),t.e(4347),t.e(1683),t.e(217),t.e(1521),t.e(2304),t.e(4934),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(4535),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(9696),t.e(708),t.e(4347),t.e(1683),t.e(217),t.e(1521),t.e(2304),t.e(4934),t.e(3309)]).then(t.bind(t,93309))).default,MapImageLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(4674),t.e(893),t.e(8470),t.e(5331)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(2304),t.e(8471)]).then(t.bind(t,96299))).default,MediaLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(3734),t.e(2491)]).then(t.bind(t,90182))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(708),t.e(8698),t.e(5069)]).then(t.bind(t,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624),t.e(349)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(1974),t.e(4965)]).then(t.bind(t,16852))).default,ParquetLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(9953),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(3819),t.e(7320),t.e(3649)]).then(t.bind(t,99680))).default,PointCloudLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(993),t.e(7984),t.e(6533)]).then(t.bind(t,77885))).default,RouteLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(1214),t.e(5051),t.e(217),t.e(7975)]).then(t.bind(t,39622))).default,SceneLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(993),t.e(7005),t.e(8698),t.e(3705),t.e(3853),t.e(1086)]).then(t.bind(t,2e4))).default,StreamLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(946)]).then(t.bind(t,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(9789),t.e(4674),t.e(2718),t.e(1683),t.e(2987)]).then(t.bind(t,97483))).default,TileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(4674),t.e(893),t.e(2880),t.e(8470),t.e(1e3)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await Promise.all([t.e(9917),t.e(2325)]).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await Promise.all([t.e(9917),t.e(6958)]).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2880),t.e(5168),t.e(7499),t.e(9260)]).then(t.bind(t,50638))).default,VideoLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(3910),t.e(4674),t.e(1683),t.e(3734),t.e(763)]).then(t.bind(t,86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(4535),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(993),t.e(117)]).then(t.bind(t,21005))).default,WCSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(1683),t.e(7939),t.e(2754),t.e(6924),t.e(9235),t.e(3500),t.e(2806),t.e(5957)]).then(t.bind(t,20521))).default,WFSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(708),t.e(2774),t.e(2549)]).then(t.bind(t,21901))).default,WMSLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(1728)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624)]).then(t.bind(t,47314))).default};t.d(a,["U",0,r])},66964(e,a,t){t.d(a,{Ju:()=>w,K8:()=>g,XH:()=>h,Y5:()=>p,_r:()=>l,bO:()=>o,l:()=>v,nu:()=>P,pJ:()=>u,rc:()=>y});var r=t(60694),n=t(92009),s=t(23154),i=t(77548);function l(e,a){const{id:t,name:r}=e,n={id:t,name:r};return c(n,e,a),n}function c(e,a,t){const r=(0,s.Aq)(a.type,t);r&&(e.layerType=r)}async function o(e,a,t){let r,n;if(function(e){return!!e&&Array.isArray(e.layers)&&Array.isArray(e.tables)}(e)&&d(e))n=e;else{const s=await t.fetchServiceMetadata(a,{customParameters:u(e)?.customParameters});r=(0,i.G$)(),n=f(e,s),m(n,s)}return L(n),{data:n,preferredHost:r}}function u(e){if(!e)return null;const{layers:a,tables:t}=e;return a?.[0]??t?.[0]??null}function y(e,a){return null==a?null:[...e.layers??[],...e.tables??[]].find(e=>e.id===a)}function d(e){return[...e.layers??[],...e.tables??[]].every(e=>!!e.layerType)}function f(e,a){return{...e,layers:e?.layers??a.layers?.map(e=>l(e))??[],tables:e?.tables??a.tables?.map(e=>l(e,!0))??[]}}function m(e,a){const t=e.layers??[],r=e.tables??[],n=[...a.layers??[],...a.tables??[]];for(const e of[...t,...r]){const{id:a,layerType:t}=e;if(t)continue;const s=n.find(({id:e})=>e===a);s&&c(e,s,r.includes(e))}}function L(e){e.layers=e.layers?.filter(b),e.tables=e.tables?.filter(b)}async function p(e,a,t){if(e?.layers?.length||e?.tables?.length){if(!d(e)){const n=(0,r.qg)(a)?.url.path;if(!n)return;m(e,await t.fetchServiceMetadata(n,{customParameters:u(e)?.customParameters}))}L(e)}}function w(e,a){return[...e.layers??[],...e.tables??[]].filter(({layerType:e})=>e?a.includes(e):a.includes("ArcGISFeatureLayer"))}function h(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}const S=new Set(["ArcGISAnnotationLayer","ArcGISDimensionLayer","ArcGISFeatureLayer","CatalogLayer","OrientedImageryLayer","SubtypeGroupLayer","SubtypeGroupTable","Table"]);function b(e){return!!e.layerType&&S.has(e.layerType)}function v(e){switch(e){case"annotation-feature":return["ArcGISAnnotationLayer"];case"catalog":return["CatalogLayer"];case"dimension-feature":return["ArcGISDimensionLayer"];case"feature":return["ArcGISFeatureLayer","Table"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function g(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationFeatureLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"ArcGISFeatureLayer":case"Table":return"FeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return null}async function P(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(e=>l(e))}const{serverUrl:r,portalItem:s}=await(0,n.L)(e.url,{sceneLayerItem:e,customParameters:u(a)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==r)return a.tables=[],a;if(!a.tables&&s){const e=await s.fetchData().catch(()=>null);if(e?.tables)a.tables=e.tables.map(({id:e,name:a})=>({id:e,name:a}));else{const n=await t.fetchServiceMetadata(r,{customParameters:u(e)?.customParameters}).catch(()=>null);a.tables=n?.tables?.map(e=>l(e,!0))}}if(a.tables)for(const e of a.tables)e.url=`${r}/${e.id}`;return a}},10407(e,a,t){t.d(a,{It:()=>f,LG:()=>i,OM:()=>o,Sm:()=>u,Y:()=>l,bK:()=>c,sQ:()=>y});var r=t(99917),n=t(16930),s=t(28735);function i(e,a){if(!l(e,a)){const t=e.typeKeywords;t?t.push(a):e.typeKeywords=[a]}}function l(e,a){return!!e.typeKeywords?.includes(a)}function c(e){return l(e,d.HOSTED_SERVICE)}function o(e,a){const t=e.typeKeywords;if(t){const e=t.indexOf(a);e>-1&&t.splice(e,1)}}function u(e,a,t){t?i(e,a):o(e,a)}async function y(e){const a=e.clone().normalize();let t;if(a.length>1)for(const e of a)t?e.width>t.width&&(t=e):t=e;else t=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,s.ci)(e);const t=n.A.WGS84;return await(0,r.initializeProjection)(a,t),(0,r.project)(e,t)}(t)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",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",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function f(e){const{portal:a,isOrgItem:t,itemControl:r}=e,n=a.user?.privileges;let s=!n||n.includes("features:user:edit"),i=!!t&&!!n?.includes("features:user:fullEdit");const l="update"===r||"admin"===r;return l?i=s=!0:i&&(s=!0),{features:{edit:s,fullEdit:i},content:{updateItem:l}}}t.d(a,["mm",0,d])},45613(e,a,t){t.d(a,{fromItem:()=>d,n:()=>f});var r=t(49186),n=t(92009),s=t(23154),i=t(22429),l=t(2976),c=t(77548),o=t(80812),u=t(66964),y=t(10407);async function d(e){let{portalItem:a}=e;!a||a instanceof o.default||(a=new o.default(a));const t=await async function(e){await e.load();const a=new i.v;return async function(e){const a=e.className,t=l.U[a];return{constructor:await t(),properties:e.properties}}(await f(e,a))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function f(e,a){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,y.Y)(e,"Map Notes"),t=(0,y.Y)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const t=await m(e,a);if("object"==typeof t){const{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();const t=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await a.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly"),c=s.tileInfo?.format?.toLowerCase()??"",o=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(c);return"map"===i||o||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const t=await m(e,a,async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}});if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(c.XX))if(e.typeKeywords.includes(a))return{className:c.XX[a]};const s=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:c.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Video Service":return async function(e,a){return"object"==typeof await m(e,a)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function m(e,a,t){const{url:n,type:i}=e,l="Feature Service"===i;if(!n)return{};if(/\/\d+$/.test(n)){if(l){const t=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});(0,c.Gh)(e,(0,c.G$)());const{id:i,type:l}=t,o=(0,s.Jo)(l);if(!o)throw new r.A("from-portal-item:unsupported",`'${n}' has unsupported type: '${l}'`);return{id:i,className:o,sourceJSON:t}}return{}}if("Video Service"===i){const e=await a.fetchServiceMetadata(n);return!((e.layers?.length??0)>1)&&{}}await e.load();let o=await a.fetchItemData(e);if(l){const{data:t,preferredHost:s}=await(0,u.bO)(o,n,a);if(0===(0,u.XH)(t))throw new r.A("from-portal-item:no-data",`The feature service '${n}' does not have any supported layers or tables`);(0,c.Gh)(e,s);const i=L(t);if("object"==typeof i){const e=(0,u.rc)(t,i.id);return{id:i.id,className:(0,u.K8)(e?.layerType)}}return i}if("Scene Service"===i&&(o=await(0,u.nu)(e,o,a)),(0,u.XH)(o)>0)return L(o);const y=await a.fetchServiceMetadata(n);return t&&(y.tables=await t()),L(y)}function L(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},7861(e,a,t){t.d(a,{L:()=>n});var r=t(11254);async function n(e,a){return(await(0,r.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9362],{60408(e,a,t){function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function l(e){return void 0!==e.rings||void 0!==e.curveRings}function c(e){return"object"==typeof e&&"vertexAttributes"in e}function o(e){return e?s(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":l(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function y(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}t.d(a,{$B:()=>o,Bi:()=>l,Pv:()=>u,Rg:()=>i,U9:()=>n,W0:()=>y,ZC:()=>r,fT:()=>s,uW:()=>c})},22429(e,a,t){t.d(a,{v:()=>n});var r=t(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const n=await(0,r.L)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:t}=this;if(t.has(a))return t.get(a);const r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){const t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},92009(e,a,t){t.d(a,{L:()=>u});var r=t(70333),n=t(11254),s=t(49186),i=t(17676),l=t(60694),c=t(20655),o=t(80812);async function u(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),s=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=s&&(t.portal=new c.A({url:s}));try{return await t.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,i.QP)(e),null}}(u);if(!f?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,i=a.layerId;if(null==i)return{serverUrl:r};const c=y(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(r,t)},f=d("anonymous").catch(()=>d("no-prompt")),[m,L]=await Promise.all([f,c]),p=L?.layers,w=m.data&&m.data.layers;if(!Array.isArray(w))throw new Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,w.length);e++)if(p[e].id===i)return{serverUrl:r,layerId:w[e].id}}else if(null!=i&&i<w.length)return{serverUrl:r,layerId:w[i].id};throw new Error("could not find matching associated sublayer")}},23154(e,a,t){t.d(a,{A6:()=>l,Aq:()=>L,Jo:()=>m,QM:()=>i});var r=t(77548),n=t(7861);const s=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,a){const{serviceJSON:t,layersJSON:r,...n}=await l(e,a);u(t);const s={serviceJSON:t,...n};return r&&(u(r),s.layersJSON=r),s}async function l(e,a){const{loadContext:t,...s}=a||{},i=t?await t.fetchServiceMetadata(e,s):await(0,n.L)(e,s),l=(0,r.G$)();f(i);const c={serviceJSON:i,preferredHost:l};if((i.currentVersion??0)<10.5)return c;const o=`${(0,r.$x)()??e}/layers`,u=t?await t.fetchServiceMetadata(o,s):await(0,n.L)(o,s);return f(u),c.layersJSON={layers:u.layers,tables:u.tables},c}function c(e){return s.has(e.type)}function o(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(c),e.tables=e.tables?.filter(o)}function y(e){e.type||="Feature Layer"}function d(e){e.type||="Table"}function f(e){e.layers?.forEach(y),e.tables?.forEach(d)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function L(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,t){const r={AnnotationFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(2718),t.e(737),t.e(9727)]).then(t.bind(t,20737))).default,BingMapsLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(6554),t.e(6684)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(993),t.e(7005),t.e(8698),t.e(3705),t.e(3853),t.e(7120)]).then(t.bind(t,82411))).default,CSVLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9084)]).then(t.bind(t,68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(9789),t.e(4674),t.e(893),t.e(2718),t.e(7013),t.e(8882),t.e(2108)]).then(t.bind(t,83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(2718),t.e(3936)]).then(t.bind(t,25077))).default,DimensionLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(3766)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(2880),t.e(1817)]).then(t.bind(t,38732))).default,FeatureLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(617)]).then(t.bind(t,53781))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(5186),t.e(9224)]).then(t.bind(t,36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(1994)]).then(t.bind(t,15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3262)]).then(t.bind(t,63201))).default,GroupLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6018)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(893),t.e(1683),t.e(7939),t.e(6924),t.e(7772),t.e(2585)]).then(t.bind(t,87772))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(1683),t.e(2880),t.e(7939),t.e(2754),t.e(6924),t.e(9235),t.e(3500),t.e(1003),t.e(2806),t.e(9036)]).then(t.bind(t,90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(5186),t.e(8325),t.e(5399)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(9953),t.e(993),t.e(5186),t.e(8325),t.e(7464)]).then(t.bind(t,74660))).default,KMLLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(1214),t.e(5051),t.e(9526)]).then(t.bind(t,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(9696),t.e(708),t.e(4347),t.e(1683),t.e(217),t.e(1521),t.e(2304),t.e(4934),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(4535),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(9696),t.e(708),t.e(4347),t.e(1683),t.e(217),t.e(1521),t.e(2304),t.e(4934),t.e(3309)]).then(t.bind(t,93309))).default,MapImageLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(4674),t.e(893),t.e(8470),t.e(5331)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(2304),t.e(8471)]).then(t.bind(t,96299))).default,MediaLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(3734),t.e(2491)]).then(t.bind(t,90182))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(708),t.e(8698),t.e(5069)]).then(t.bind(t,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624),t.e(349)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(9789),t.e(4674),t.e(2718),t.e(3781),t.e(1974),t.e(4965)]).then(t.bind(t,16852))).default,ParquetLayer:async()=>(await Promise.all([t.e(8278),t.e(7865),t.e(9953),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(3819),t.e(7320),t.e(3649)]).then(t.bind(t,99680))).default,PointCloudLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(993),t.e(7984),t.e(6533)]).then(t.bind(t,77885))).default,RouteLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(1214),t.e(5051),t.e(217),t.e(7975)]).then(t.bind(t,39622))).default,SceneLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(993),t.e(7005),t.e(8698),t.e(3705),t.e(3853),t.e(1086)]).then(t.bind(t,2e4))).default,StreamLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(946)]).then(t.bind(t,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(7552),t.e(2889),t.e(9789),t.e(4674),t.e(2718),t.e(1683),t.e(2987)]).then(t.bind(t,97483))).default,TileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(4674),t.e(893),t.e(2880),t.e(8470),t.e(1e3)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await Promise.all([t.e(9917),t.e(2325)]).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await Promise.all([t.e(9917),t.e(6958)]).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2880),t.e(5168),t.e(9151),t.e(3996)]).then(t.bind(t,50638))).default,VideoLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(3910),t.e(4674),t.e(1683),t.e(3734),t.e(763)]).then(t.bind(t,86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(4535),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(2869),t.e(993),t.e(117)]).then(t.bind(t,21005))).default,WCSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(564),t.e(1683),t.e(7939),t.e(2754),t.e(6924),t.e(9235),t.e(3500),t.e(2806),t.e(5957)]).then(t.bind(t,20521))).default,WFSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(9953),t.e(6554),t.e(2869),t.e(3910),t.e(4800),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(1017),t.e(708),t.e(2774),t.e(2549)]).then(t.bind(t,21901))).default,WMSLayer:async()=>(await Promise.all([t.e(7632),t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(2869),t.e(3910),t.e(1728)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(9917),t.e(8278),t.e(7865),t.e(6554),t.e(3624)]).then(t.bind(t,47314))).default};t.d(a,["U",0,r])},66964(e,a,t){t.d(a,{Ju:()=>w,K8:()=>g,XH:()=>h,Y5:()=>p,_r:()=>l,bO:()=>o,l:()=>v,nu:()=>P,pJ:()=>u,rc:()=>y});var r=t(60694),n=t(92009),s=t(23154),i=t(77548);function l(e,a){const{id:t,name:r}=e,n={id:t,name:r};return c(n,e,a),n}function c(e,a,t){const r=(0,s.Aq)(a.type,t);r&&(e.layerType=r)}async function o(e,a,t){let r,n;if(function(e){return!!e&&Array.isArray(e.layers)&&Array.isArray(e.tables)}(e)&&d(e))n=e;else{const s=await t.fetchServiceMetadata(a,{customParameters:u(e)?.customParameters});r=(0,i.G$)(),n=f(e,s),m(n,s)}return L(n),{data:n,preferredHost:r}}function u(e){if(!e)return null;const{layers:a,tables:t}=e;return a?.[0]??t?.[0]??null}function y(e,a){return null==a?null:[...e.layers??[],...e.tables??[]].find(e=>e.id===a)}function d(e){return[...e.layers??[],...e.tables??[]].every(e=>!!e.layerType)}function f(e,a){return{...e,layers:e?.layers??a.layers?.map(e=>l(e))??[],tables:e?.tables??a.tables?.map(e=>l(e,!0))??[]}}function m(e,a){const t=e.layers??[],r=e.tables??[],n=[...a.layers??[],...a.tables??[]];for(const e of[...t,...r]){const{id:a,layerType:t}=e;if(t)continue;const s=n.find(({id:e})=>e===a);s&&c(e,s,r.includes(e))}}function L(e){e.layers=e.layers?.filter(b),e.tables=e.tables?.filter(b)}async function p(e,a,t){if(e?.layers?.length||e?.tables?.length){if(!d(e)){const n=(0,r.qg)(a)?.url.path;if(!n)return;m(e,await t.fetchServiceMetadata(n,{customParameters:u(e)?.customParameters}))}L(e)}}function w(e,a){return[...e.layers??[],...e.tables??[]].filter(({layerType:e})=>e?a.includes(e):a.includes("ArcGISFeatureLayer"))}function h(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}const S=new Set(["ArcGISAnnotationLayer","ArcGISDimensionLayer","ArcGISFeatureLayer","CatalogLayer","OrientedImageryLayer","SubtypeGroupLayer","SubtypeGroupTable","Table"]);function b(e){return!!e.layerType&&S.has(e.layerType)}function v(e){switch(e){case"annotation-feature":return["ArcGISAnnotationLayer"];case"catalog":return["CatalogLayer"];case"dimension-feature":return["ArcGISDimensionLayer"];case"feature":return["ArcGISFeatureLayer","Table"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function g(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationFeatureLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"ArcGISFeatureLayer":case"Table":return"FeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return null}async function P(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(e=>l(e))}const{serverUrl:r,portalItem:s}=await(0,n.L)(e.url,{sceneLayerItem:e,customParameters:u(a)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==r)return a.tables=[],a;if(!a.tables&&s){const e=await s.fetchData().catch(()=>null);if(e?.tables)a.tables=e.tables.map(({id:e,name:a})=>({id:e,name:a}));else{const n=await t.fetchServiceMetadata(r,{customParameters:u(e)?.customParameters}).catch(()=>null);a.tables=n?.tables?.map(e=>l(e,!0))}}if(a.tables)for(const e of a.tables)e.url=`${r}/${e.id}`;return a}},10407(e,a,t){t.d(a,{It:()=>f,LG:()=>i,OM:()=>o,Sm:()=>u,Y:()=>l,bK:()=>c,sQ:()=>y});var r=t(99917),n=t(16930),s=t(28735);function i(e,a){if(!l(e,a)){const t=e.typeKeywords;t?t.push(a):e.typeKeywords=[a]}}function l(e,a){return!!e.typeKeywords?.includes(a)}function c(e){return l(e,d.HOSTED_SERVICE)}function o(e,a){const t=e.typeKeywords;if(t){const e=t.indexOf(a);e>-1&&t.splice(e,1)}}function u(e,a,t){t?i(e,a):o(e,a)}async function y(e){const a=e.clone().normalize();let t;if(a.length>1)for(const e of a)t?e.width>t.width&&(t=e):t=e;else t=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,s.ci)(e);const t=n.A.WGS84;return await(0,r.initializeProjection)(a,t),(0,r.project)(e,t)}(t)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",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",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function f(e){const{portal:a,isOrgItem:t,itemControl:r}=e,n=a.user?.privileges;let s=!n||n.includes("features:user:edit"),i=!!t&&!!n?.includes("features:user:fullEdit");const l="update"===r||"admin"===r;return l?i=s=!0:i&&(s=!0),{features:{edit:s,fullEdit:i},content:{updateItem:l}}}t.d(a,["mm",0,d])},45613(e,a,t){t.d(a,{fromItem:()=>d,n:()=>f});var r=t(49186),n=t(92009),s=t(23154),i=t(22429),l=t(2976),c=t(77548),o=t(80812),u=t(66964),y=t(10407);async function d(e){let{portalItem:a}=e;!a||a instanceof o.default||(a=new o.default(a));const t=await async function(e){await e.load();const a=new i.v;return async function(e){const a=e.className,t=l.U[a];return{constructor:await t(),properties:e.properties}}(await f(e,a))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function f(e,a){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,y.Y)(e,"Map Notes"),t=(0,y.Y)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const t=await m(e,a);if("object"==typeof t){const{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();const t=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await a.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly"),c=s.tileInfo?.format?.toLowerCase()??"",o=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(c);return"map"===i||o||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const t=await m(e,a,async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}});if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(c.XX))if(e.typeKeywords.includes(a))return{className:c.XX[a]};const s=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:c.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Video Service":return async function(e,a){return"object"==typeof await m(e,a)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function m(e,a,t){const{url:n,type:i}=e,l="Feature Service"===i;if(!n)return{};if(/\/\d+$/.test(n)){if(l){const t=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});(0,c.Gh)(e,(0,c.G$)());const{id:i,type:l}=t,o=(0,s.Jo)(l);if(!o)throw new r.A("from-portal-item:unsupported",`'${n}' has unsupported type: '${l}'`);return{id:i,className:o,sourceJSON:t}}return{}}if("Video Service"===i){const e=await a.fetchServiceMetadata(n);return!((e.layers?.length??0)>1)&&{}}await e.load();let o=await a.fetchItemData(e);if(l){const{data:t,preferredHost:s}=await(0,u.bO)(o,n,a);if(0===(0,u.XH)(t))throw new r.A("from-portal-item:no-data",`The feature service '${n}' does not have any supported layers or tables`);(0,c.Gh)(e,s);const i=L(t);if("object"==typeof i){const e=(0,u.rc)(t,i.id);return{id:i.id,className:(0,u.K8)(e?.layerType)}}return i}if("Scene Service"===i&&(o=await(0,u.nu)(e,o,a)),(0,u.XH)(o)>0)return L(o);const y=await a.fetchServiceMetadata(n);return t&&(y.tables=await t()),L(y)}function L(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},7861(e,a,t){t.d(a,{L:()=>n});var r=t(11254);async function n(e,a){return(await(0,r.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3169],{94869(e,t,i){function a(e){return Boolean(e).toString()}i.d(t,{t:()=>a})},20497(e,t,i){function a(e){return"l"===e?"m":"s"}async function n(e){await e.componentOnReady(),await e.updateComplete}i.d(t,{c:()=>n,g:()=>a}),i(46913)},17425(e,t,i){i.d(t,["g",0,()=>[2,1,1,1,3].map(e=>{let t="";for(let i=0;i<e;i++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}).join("-")])},62533(e,t,i){i.d(t,{c:()=>n,u:()=>r});var a=i(46913);function n(e,t,i){if(a.S$)return;const n=function(e){class t extends window.MutationObserver{constructor(e){super(e),this.observedEntry=[],this.callback=e}observe(e,t){return this.observedEntry.push({target:e,options:t}),super.observe(e,t)}unobserve(e){const t=this.observedEntry.filter(t=>t.target!==e);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),t.forEach(e=>this.observe(e.target,e.options))}}return"intersection"===e?window.IntersectionObserver:"mutation"===e?t:window.ResizeObserver}(e);return new n(t,i)}function r(e,t,i,a){e&&(t&&e.unobserve(t),i&&(e instanceof MutationObserver?e.observe(i,a):e.observe(i)))}},64903(e,t,i){var a=i(87713);i.d(t,["u",0,e=>(0,a.aK)(t=>{function i(i){const{form:a}=t.elementInternals;i.defaultPrevented||t.disabled||e?.disabled?.()||!a||"button"===t.type||("submit"!==t.type?a.reset():a.requestSubmit())}t.listen("luminaFormAssociatedCallback",({detail:[e]})=>{e?t.el.addEventListener("click",i):t.el.removeEventListener("click",i)})})])},28525(e,t,i){var a=i(87713),n=i(26009),r=i(46913);const l=({children:e,disabled:t})=>r.qy`<div class=${(0,n.CP)("interaction-container")} .inert=${t}>${e}</div>`,s=(0,a.aK)((e,t)=>(t.onUpdated(()=>function(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){var t;e.el.click=c,(t=e.el).addEventListener("pointerdown",o,h),d.forEach(e=>t.addEventListener(e,v,h))}(e);(function(e){var t;delete e.el.click,(t=e.el).removeEventListener("pointerdown",o,h),d.forEach(e=>t.removeEventListener(e,v,h))})(e),e.el.removeAttribute("aria-disabled")}(e)),l));function c(){const{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function o(e){e.target.disabled&&e.preventDefault()}const d=["mousedown","mouseup","click"];function v(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const h={capture:!0};i.d(t,["u",0,s])},80777(e,t,i){var a=i(87713),n=i(20497),r=i(81610);i.d(t,["u",0,()=>(0,a.aK)((e,t)=>{let i;function a(){i?.abort()}return t.onLoad(()=>{e.listen("focus",()=>{i=new AbortController,e.el.addEventListener("focusout",a,{signal:i.signal})})}),t.onDisconnected(()=>{e.el.removeEventListener("focusout",a)}),async(t,l)=>{if(e.disabled)return;const s=function(e){if(e)return function(e){return"target"in e&&("includeContainer"in e||"strategy"in e)}(e)?e:{target:e}}(t());if(!s)return;const{target:c,includeContainer:o,strategy:d}=s,v=(0,r.i)(e.el),h=v.activeElement;return await(0,n.c)(e),h!==v.activeElement||i&&!i?.signal.aborted?void 0:(e.el.removeEventListener("focus",a),(0,r.k)(c,o,d,e.el,l))}})])},13734(e,t,i){var a=i(87713),n=i(28030);const r=(0,a.yr)(n.g);i.d(t,["u",0,r])},31965(e,t,i){var a=i(28030),n=i(46913),r=i(26009),l=i(87713),s=i(94869),c=i(62533);const o="flip-rtl",d="svg",v={},h={},u={s:16,m:24,l:32};function p({icon:e,scale:t}){const i=u[t],a=function(e){const t=!isNaN(Number(e.charAt(0))),i=e.split("-");if(i.length>0){const t=/[a-z]/i;e=i.map((e,i)=>e.replace(t,function(e,t){return 0===i&&0===t?e:e.toUpperCase()})).join("")}return t?`i${e}`:e}(e),n="F"===a.charAt(a.length-1);return`${n?a.substring(0,a.length-1):a}${i}${n?"F":""}`}function m(e){return v[e]}const f=n.AH`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class g extends r.WF{constructor(){super(...arguments),this.direction=(0,l.jH)(),this.visible=!1,this.flipRtl=!1,this.preload=!1,this.scale="m"}static{this.properties={pathData:[16,{},{state:!0}],visible:[16,{},{state:!0}],flipRtl:[7,{},{reflect:!0,type:Boolean}],icon:[3,{},{reflect:!0}],preload:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],textLabel:1}}static{this.styles=f}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(e){(e.has("icon")&&(this.hasUpdated||void 0!==this.icon)||e.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0}async loadIconPathData(){const{icon:e,scale:t,visible:i}=this;if(n.S$||!e||!i)return;const r={icon:e,scale:t},l=m(p(r))||await async function(e){const t=p(e),i=m(t);if(i)return i;h[t]||(h[t]=fetch((0,a.g)(`./assets/icon/${t}.json`)).then(e=>e.json()).catch(()=>(a.l.error(`${e.icon} (${e.scale}) icon failed to load`),"")));const n=await h[t];return v[t]=n,n}(r);e===this.icon&&(this.pathData=l)}waitUntilVisible(e){this.intersectionObserver=(0,c.c)("intersection",t=>{t.forEach(t=>{t.isIntersecting&&(this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,e())})},{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):e()}render(){const{flipRtl:e,pathData:t,scale:i,textLabel:a}=this,l=this.direction,c=u[i],v=!!a,h=Array.isArray(t)?t:[t??""];return this.el.ariaHidden=(0,s.t)(!v),this.el.ariaLabel=v?a:null,this.el.role=v?"img":null,n.qy`<svg aria-hidden=true class=${(0,r.CP)({[o]:"rtl"===l&&e,[d]:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map(e=>"string"==typeof e?n.JW`<path d=${e??n.s6} />`:n.JW`<path d=${e.d??n.s6} opacity=${("opacity"in e?e.opacity:1)??n.s6} />`)}</svg>`}}(0,a.c)("calcite-icon",g)},7879(e,t,i){var a=i(28030),n=i(46913),r=i(26009),l=i(17425),s=i(13734);const c="ring--progress",o="ring",d="ring--track",v=n.AH`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-md);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`;class h extends r.WF{constructor(){super(...arguments),this.messages=(0,s.u)({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=v}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||0!==this.value)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||"indeterminate"!==this.type)||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&100===this.value}formatValue(){return"determinate-value"!==this.type?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){"determinate-value"===this.type&&this.formatter?.resolvedOptions().locale!==this.messages._lang&&(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){const{el:e,inline:t,label:i,text:a,type:s,value:c}=this,o=e.id||(0,l.g)(),d="indeterminate"!==s,v=Math.floor(c);return this.el.ariaLabel=i,this.el.ariaValueMax=d?"100":null,this.el.ariaValueMin=d?"0":null,this.el.ariaValueNow=d?v.toString():null,(0,r.Bq)(this.el,"id",o),this.el.role="progressbar",n.qy`<div class=${(0,r.CP)("rings")}>${this.renderRing("track")}${this.renderRing("progress")}${!t&&d&&n.qy`<div class=${(0,r.CP)("percentage")}>${this.formatValue()}</div>`||""}</div>${!t&&a&&n.qy`<div class=${(0,r.CP)("text")}>${a}</div>`||""}`}renderRing(e){const{inline:t,scale:i,value:a}=this,l=t?this.getInlineSize(i):this.getSize(i),s=.45*l;let v;if("progress"===e){const e=2*s*Math.PI,t=(this.type.startsWith("determinate")?a:24)/100*e;v={"stroke-dasharray":`${t} ${e-t}`}}return n.qy`<svg aria-hidden=true class=${(0,r.CP)({[o]:!0,[d]:"track"===e,[c]:"progress"===e})} style=${(0,r.zl)(v)} viewBox=${`0 0 ${l} ${l}`}>${n.JW`<circle cx=${l/2} cy=${l/2} r=${s??n.s6} />`}</svg>`}}(0,a.c)("calcite-loader",h)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[473,1948,8125],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},65708(t,e,r){r.d(e,{e:()=>i});var s=r(86211),n=r(78125);function i(t,e={}){const{unit:r}=e;let i=(0,n.fromGeometry)(t).calculateArea2D();if(i&&r){const e=(0,n.getSpatialReference)(t);if(e.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const a=(0,s.B5)(e);a!==r&&(a?i=(0,s.oU)(i,a,r):(i=Math.sqrt(i),i*=(0,s.GA)(e),i**=2,i=(0,s.oU)(i,"square-meters",r)))}return i}const a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}));r.d(e,["a",0,a])},49590(t,e,r){r.d(e,{e:()=>f,l:()=>c});var s=r(86211),n=r(86742),i=r(5808);let a,o,h,u;function l(){return!!a&&(0,n.s1)()}async function c(){if(!l()){const[t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)),(0,n.Hh)()]);a=t.fromGeometry,o=t.fromSpatialReference,h=t.getSpatialReference,u=(0,n.fz)()}}function f(t,e={}){const{curveType:r="geodesic",unit:u}=e,l=h(t);let c=(0,n.g7)(a(t),o(l),i.O[r]);return c&&u&&(c=(0,s.oU)(c,"square-meters",u)),c}const p=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:c,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));r.d(e,["g",0,p])},39663(t,e,r){r.d(e,{e:()=>f,l:()=>c});var s=r(86211),n=r(35223),i=r(5808);let a,o,h,u;function l(){return!!a&&(0,n.s1)()}async function c(){if(!l()){const[t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)),(0,n.Hh)()]);a=t.fromGeometry,o=t.fromSpatialReference,h=t.getSpatialReference,u=(0,n.fz)()}}function f(t,e={}){const{curveType:r="geodesic",unit:u}=e,l=h(t);let c=(0,n.g7)(a(t),o(l),i.O[r]);return c&&u&&(c=(0,s.oU)(c,"meters",u)),c}const p=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:c,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));r.d(e,["g",0,p])},7817(t,e,r){r.d(e,{e:()=>i});var s=r(86211),n=r(78125);function i(t,e={}){const{unit:r}=e;let i=(0,n.fromGeometry)(t).calculateLength2D();if(i&&r){const e=(0,n.getSpatialReference)(t);i=(0,s.PQ)(i,e,r)}return i}const a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}));r.d(e,["l",0,a])},10222(t,e,r){r.d(e,{e:()=>i});var s=r(81150),n=r(78125);function i(t){const e=(0,n.getSpatialReference)(t);return(0,n.toGeometry)((0,s.g7)((0,n.fromGeometry)(t),(0,n.fromSpatialReference)(e),!1),e)}const a=(0,s.fz)(),o=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:function(t){const e=t.map(n.fromGeometry),r=(0,n.getSpatialReference)(t);return(0,s.zo)(e,(0,n.fromSpatialReference)(r),!1).map(t=>(0,n.toGeometry)(t,r))},isSimple:function(t){return(0,s.Pg)((0,n.fromGeometry)(t),(0,n.fromSpatialReference)((0,n.getSpatialReference)(t)),!1)},supportsCurves:a},Symbol.toStringTag,{value:"Module"}));r.d(e,["s",0,o])},69540(t,e,r){var s=r(5482),n=r(69622),i=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),h=r(64108);const u=Symbol("ClonableMixin"),l=t=>{var e;const r=t;let n=class extends r{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,o.oY)(this);(0,a.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,s=e.store,n={},h=new Map;for(const e in r){const a=r[e],o=s?.originOf(e),u=a.clonable;if(a.readOnly||!1===u||7!==o&&0!==o&&5!==o&&4!==o)continue;const l=this[e];let c=null;if("function"==typeof u)c=u(l,t);else if("reference"===u)c=l;else if(c=(0,i.TU)(l,t),null!=l&&null==c)continue;0===o?h.set(e,c):n[e]=c}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(h.size){const t=(0,o.oY)(u)?.store;if(t)for(const[e,r]of h)t.set(e,r,0)}return u}};return n=(0,s.Cg)([(0,h.$)("esri.core.Clonable")],n),n},c=l(n.A);r.d(e,["OU",0,l,"Pw",0,c])},17799(t,e,r){r.d(e,{T9:()=>o,d_:()=>n,gT:()=>i});var s=r(86211);function n(t,e){return{type:(0,s.t$)(e),value:t,unit:e}}function i(t,e){return{type:(0,s.t$)(e),value:t,unit:e}}function a(t,e,r="arithmetic"){return{type:(0,s.t$)(e),value:t,unit:e,rotationType:r}}function o(t,e){return null==t?e:null==e||t.value>(0,s.oU)(e.value,e.unit,t.unit)?t:e}n(0,"meters"),i(0,"square-meters"),a(0,"radians"),a(0,"degrees"),a(0,"degrees","geographic")},87992(t,e,r){r.d(e,{JR:()=>R,ME:()=>C,MY:()=>A,NO:()=>M,Nh:()=>w,V2:()=>E,_s:()=>b,e6:()=>I,gh:()=>P,tr:()=>Y,uX:()=>m});var s=r(5482),n=r(16930),i=r(19419),a=r(60408),o=r(21325),h=r(513),u=r(50954),l=r(79567),c=r(52006),f=r(49663),p=r(46068),g=r(92722);class m{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:c,segmentCountArc:f,segmentCountBezier:p}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=c,this.segmentCountArc=f,this.segmentCountBezier=p}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=E(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=Z(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new x(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class x{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,l]]};const c=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,h],c,f,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,h=O(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new S(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,c.yP)(r)}const[a,o,u,f]=n;e={xmin:a,ymin:o,xmax:u,ymax:f,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function C(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,_(e[0],(0,c.yP)(e.at(-1)))&&--t),t),0));const n=E(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,c.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:l}=n;function f(t){h[2*g]=t[0],h[2*g+1]=t[1],i&&(u[g]=t[2]),o&&(l[g]=t[p]),++g}n.spatialReference=t.spatialReference??void 0;const p=n.hasZ?3:2;let g=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*g]=t,h[2*g+1]=e,++g;return n}for(const t of r[0])f(t);return n}const m="polygon"===s,{partOffsets:y}=n;let d=0;if(!(0,c.Ed)(t)){for(const t of r){if(y[d++]=g,0===t.length)continue;let e=t.length;if(m&&_(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*g]=e,h[2*g+1]=s,++g}}return y[d]=g,n}function v(t){const e=x+t;if(e<=(n.segmentParams?.length??0))return;let r=e*z;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let x=0;for(const t of r){if(n.partOffsets[d++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];f(r);const i=g-1;(0,c.wY)(s)?(v(10),++n.segmentCountArc,x=b(r,s,n,i,x),r=s.a[0]):(0,c.DA)(s)?(v(10),++n.segmentCountArc,x=V(r,s,n,i,x),r=s.a[0]):(0,c.aO)(s)?(v(10),++n.segmentCountArc,x=I(r,s,n,i,x),r=s.c[0]):(0,c.n1)(s)?(v(4),++n.segmentCountBezier,x=Y(0,s,n,i,x),r=s.b[0]):r=s}m&&_(e,r)||f(r)}return n.partOffsets[d]=g,n}function P(t){const e=Z(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=O(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function w(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=E(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const l=2+Number(s)+Number(n);let c=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(o);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[c++],u.vertexXY[2*t+1]=r[c++],s&&(u.vertexZ[t]=r[c++]),n&&(u.vertexM[t]=r[c++]);o&&(c+=l)}return u}function R({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new g.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let c=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=u.coords.length;for(let t=c;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(l){const t=c;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),c=i}return"point"===t&&(u.lengths.length=0),u}function A(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new m({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function O({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function Z({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function _(t,e){return t.every((t,r)=>t===e[r])}function E(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new m({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let c=0;return h.vertexXY=new Float64Array(l,c,2*e),c+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(l,c,e),c+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,c,e),c+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,c,h.segmentParamCount),c+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,c,e),h.segmentIndices.fill(F),c+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,c,r+1),c+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,c,r+1),c+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(l,c,e),h.segmentFlags.fill(1),c+=h.segmentFlags.byteLength),h}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],l,c,f,g,m]=e.a;let y=4;c||(y|=1),l||(y|=2);const d=(0,p.SW)(t,e),[v,x]=(0,p.Uk)(d,.5);return n[a++]=y,n[a++]=g,n[a++]=m,n[a++]=f,n[a++]=h,n[a++]=u,n[a++]=d.u2-d.u1,n[a++]=d.u1,n[a++]=v,n[a++]=x,a}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,f.io)(t,e);return G(o,4,...(0,h.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,G((0,u.pM)(t,e),0,...e.c[1],n,a)}function G(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function Y(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=r,h[l++]=s,h[l++]=n,h[l++]=i,l}const z=1.61803,F=-1},48526(t,e,r){r.d(e,{A:()=>y});var s,n=r(5482),i=r(4576),a=r(4718),o=r(91429),h=r(5443),u=r(91075),l=r(86738),c=r(16930),f=r(90634),p=r(47610),g=r(56993),m=r(43937);let y=s=class extends u.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:r,hasZ:s,spatialReference:n}=t;switch(e??=[],e?.at(0)?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return n??=c.A.WGS84,{...t,hasM:r,hasZ:s,points:e,spatialReference:n}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,a.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:r,hasZ:n}=this;return new s({points:(0,a.o8)(t),spatialReference:e.clone(),hasM:r,hasZ:n})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,r=t.spatialReference;return null!=e==(null!=r)&&!(null!=e&&null!=r&&!e.equals(r))&&(0,i.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,g.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],r={x:e[0],y:e[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(r.z=e[2],s=3),this.hasM&&(r.m=e[s]),new l.A(r)}removePoint(t){if(!this._validateInputs(t))return null;const e=new l.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,g.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,n.Cg)([(0,m.K)("points")],y.prototype,"writePoints",null),y=s=(0,n.Cg)([(0,o.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,r){r.d(e,{A:()=>g});var s,n=r(5482),i=r(4718),a=r(91429),o=r(5443),h=r(91075),u=r(86738),l=r(16930),c=r(90634),f=r(56993),p=r(43937);let g=s=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:r,hasZ:s,spatialReference:n}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return n??=l.A.WGS84,{...t,hasM:r,hasZ:s,paths:e,spatialReference:n}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,i.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,i.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,r=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const s=[];for(let e=0,r=t.length;e<r;e++)s[e]=t[e].toArray();e[r]=s}else e[r]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new s;return t.spatialReference=this.spatialReference,t.paths=(0,i.o8)(this.paths),t.curvePaths=(0,i.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const r=this.paths[t][e],s=this.hasZ,n=this.hasM;return s&&!n?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):n&&!s?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):s&&n?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(t,e,r){return this._validateInputs(t,e,!0)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t].splice(e,0,r),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],r=this.spatialReference,s=e.map(t=>new u.A(t,r));return this.notifyChange("paths"),s}removePoint(t,e){if(!this._validateInputs(t,e))return null;const r=new u.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(t,e,r){return this._validateInputs(t,e)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t][e]=r,this.notifyChange("paths"),this):this}_validateInputs(t,e,r=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const s=this.paths[t];if(r&&(e<0||e>s.length))return!1;if(!r&&(e<0||e>=s.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,n.Cg)([(0,p.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,n.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,n.Cg)([(0,p.K)("paths")],g.prototype,"writePaths",null),g=s=(0,n.Cg)([(0,a.$K)("esri.geometry.Polyline")],g),g.prototype.toJSON.isDefaultToJSON=!0},86742(t,e,r){r.d(e,{Hh:()=>a,fz:()=>h,g7:()=>o,s1:()=>i});var s=r(83290);let n;function i(){return!!n&&(0,s.i)()}async function a(){if(!i()){const[t,e]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(2024),r.e(6558)]).then(r.bind(r,6558)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(8344)]).then(r.bind(r,15756)).then(({injectPe:t})=>t),(0,s.l)()]);n=new t.OperatorGeodeticArea,e(s.p)}}function o(t,e,r){return n.execute(t,e,r,null)}function h(){return n.supportsCurves()}},35223(t,e,r){r.d(e,{Hh:()=>a,fz:()=>h,g7:()=>o,s1:()=>i});var s=r(83290);let n;function i(){return!!n&&(0,s.i)()}async function a(){if(!i()){const[t,e]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(4167)]).then(r.bind(r,28879)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(8344)]).then(r.bind(r,15756)).then(({injectPe:t})=>t),(0,s.l)()]);n=new t.OperatorGeodeticLength,e(s.p)}}function o(t,e,r){return n.execute(t,e,r,null)}function h(){return n.supportsCurves()}},81150(t,e,r){r.d(e,{Pg:()=>h,fz:()=>u,g7:()=>a,zo:()=>o});var s=r(76061),n=(r(55537),r(88885),r(39117));r(95213);const i=new n.D;function a(t,e,r){return i.execute(t,e,r,null)}function o(t,e,r){const n=i.executeMany(new s.S(t),e,r,null);return Array.from(n)}function h(t,e,r){return i.isSimpleAsFeature(t,e,r,null,null)}function u(){return i.supportsCurves()}},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>y,fromGeometry:()=>m,fromMultipoint:()=>d,fromPoint:()=>v,fromPolygon:()=>x,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>P,getSpatialReference:()=>g,toExtent:()=>R,toGeometry:()=>w,toMultipoint:()=>A,toPoint:()=>S,toPolygon:()=>O,toPolyline:()=>Z});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),h=r(48526),u=r(86738),l=r(39829),c=r(82799),f=(r(90293),r(83299));const p="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function m(t){switch(t.type){case"point":return v(t);case"multipoint":return d(t);case"polyline":return M(t);case"polygon":return x(t);case"extent":return y(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function y(t){if(!t.getCacheValue(p)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(p,e)}return t.getCacheValue(p)}function d(t){if(!t.getCacheValue(p)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,h=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[h]??NaN),e.add(r)}t.setCacheValue(p,e)}return t.getCacheValue(p)}function v(t){if(!t.getCacheValue(p)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(p,e)}return t.getCacheValue(p)}function x(t){if(!t.getCacheValue(p)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(p,i)}return t.getCacheValue(p)}function M(t){if(!t.getCacheValue(p)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(p,i)}return t.getCacheValue(p)}function C(t){if(!t.getCacheValue(p)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(p,i)}return t.getCacheValue(p)}function P(t){return t.cache?(t.cache[p]??=(0,f.fromSpatialReference)(t),t.cache[p]):(0,f.fromSpatialReference)(t)}function w(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return S(t,e);case n.G.enumEnvelope:return R(t,e);case n.G.enumMultiPoint:return A(t,e);case n.G.enumPolyline:return Z(t,e);case n.G.enumPolygon:return O(t,e)}return null}function R(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(p,t),r}function A(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const u=new h.A({hasM:s,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(p,t),u}function S(t,e){if(t instanceof s.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(p,t),r}function O(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(p,t),r}function Z(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(p,t),r}},5808(t,e,r){r.d(e,["O",0,{geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}])},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],h=this.coords[r+1];t+=-.5*(o-n)*(h+i),n=o,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}},32728(t,e,r){r.d(e,{YH:()=>a,nu:()=>o,wp:()=>i}),r(34727);var s=r(35522),n=r(51850);function i(t,e){const r=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),n=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,s.hZ)(t,r,n,i),t}function a(t,e,r){r=r||t;const n=(0,s.Om)(t,e);(0,s.hZ)(r,t[0]-n*e[0],t[1]-n*e[1],t[2]-n*e[2]),(0,s.S8)(r,r)}function o(t,e,r,i=(0,n.vt)()){const a=(0,s.Bw)(t),o=(0,s.Bw)(e),l=(0,s.Om)(t,e)/(a*o);if(l<.9999999999999999){const n=Math.acos(l),c=((1-r)*a+r*o)/Math.sin(n),f=c/a*Math.sin((1-r)*n),p=c/o*Math.sin(r*n);return(0,s.hs)(h,t,f),(0,s.hs)(u,e,p),(0,s.WQ)(i,h,u)}return(0,s.Cc)(i,t,e,r)}(0,n.vt)(),(0,n.vt)(),(0,n.vt)();const h=(0,n.vt)(),u=(0,n.vt)()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[473,1948,8125],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},65708(t,e,r){r.d(e,{e:()=>i});var s=r(86211),n=r(78125);function i(t,e={}){const{unit:r}=e;let i=(0,n.fromGeometry)(t).calculateArea2D();if(i&&r){const e=(0,n.getSpatialReference)(t);if(e.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const a=(0,s.B5)(e);a!==r&&(a?i=(0,s.oU)(i,a,r):(i=Math.sqrt(i),i*=(0,s.GA)(e),i**=2,i=(0,s.oU)(i,"square-meters",r)))}return i}const a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}));r.d(e,["a",0,a])},49590(t,e,r){r.d(e,{e:()=>f,l:()=>c});var s=r(86211),n=r(86742),i=r(5808);let a,o,h,u;function l(){return!!a&&(0,n.s1)()}async function c(){if(!l()){const[t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)),(0,n.Hh)()]);a=t.fromGeometry,o=t.fromSpatialReference,h=t.getSpatialReference,u=(0,n.fz)()}}function f(t,e={}){const{curveType:r="geodesic",unit:u}=e,l=h(t);let c=(0,n.g7)(a(t),o(l),i.O[r]);return c&&u&&(c=(0,s.oU)(c,"square-meters",u)),c}const p=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:c,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));r.d(e,["g",0,p])},39663(t,e,r){r.d(e,{e:()=>f,l:()=>c});var s=r(86211),n=r(35223),i=r(5808);let a,o,h,u;function l(){return!!a&&(0,n.s1)()}async function c(){if(!l()){const[t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)),(0,n.Hh)()]);a=t.fromGeometry,o=t.fromSpatialReference,h=t.getSpatialReference,u=(0,n.fz)()}}function f(t,e={}){const{curveType:r="geodesic",unit:u}=e,l=h(t);let c=(0,n.g7)(a(t),o(l),i.O[r]);return c&&u&&(c=(0,s.oU)(c,"meters",u)),c}const p=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:l,load:c,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));r.d(e,["g",0,p])},7817(t,e,r){r.d(e,{e:()=>i});var s=r(86211),n=r(78125);function i(t,e={}){const{unit:r}=e;let i=(0,n.fromGeometry)(t).calculateLength2D();if(i&&r){const e=(0,n.getSpatialReference)(t);i=(0,s.PQ)(i,e,r)}return i}const a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}));r.d(e,["l",0,a])},10222(t,e,r){r.d(e,{e:()=>i});var s=r(81150),n=r(78125);function i(t){const e=(0,n.getSpatialReference)(t);return(0,n.toGeometry)((0,s.g7)((0,n.fromGeometry)(t),(0,n.fromSpatialReference)(e),!1),e)}const a=(0,s.fz)(),o=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:function(t){const e=t.map(n.fromGeometry),r=(0,n.getSpatialReference)(t);return(0,s.zo)(e,(0,n.fromSpatialReference)(r),!1).map(t=>(0,n.toGeometry)(t,r))},isSimple:function(t){return(0,s.Pg)((0,n.fromGeometry)(t),(0,n.fromSpatialReference)((0,n.getSpatialReference)(t)),!1)},supportsCurves:a},Symbol.toStringTag,{value:"Module"}));r.d(e,["s",0,o])},69540(t,e,r){var s=r(5482),n=r(69622),i=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),h=r(64108);const u=Symbol("ClonableMixin"),l=t=>{var e;const r=t;let n=class extends r{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,o.oY)(this);(0,a.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,s=e.store,n={},h=new Map;for(const e in r){const a=r[e],o=s?.originOf(e),u=a.clonable;if(a.readOnly||!1===u||7!==o&&0!==o&&5!==o&&4!==o)continue;const l=this[e];let c=null;if("function"==typeof u)c=u(l,t);else if("reference"===u)c=l;else if(c=(0,i.TU)(l,t),null!=l&&null==c)continue;0===o?h.set(e,c):n[e]=c}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(h.size){const t=(0,o.oY)(u)?.store;if(t)for(const[e,r]of h)t.set(e,r,0)}return u}};return n=(0,s.Cg)([(0,h.$)("esri.core.Clonable")],n),n},c=l(n.A);r.d(e,["OU",0,l,"Pw",0,c])},17799(t,e,r){r.d(e,{T9:()=>o,d_:()=>n,gT:()=>i});var s=r(86211);function n(t,e){return{type:(0,s.t$)(e),value:t,unit:e}}function i(t,e){return{type:(0,s.t$)(e),value:t,unit:e}}function a(t,e,r="arithmetic"){return{type:(0,s.t$)(e),value:t,unit:e,rotationType:r}}function o(t,e){return null==t?e:null==e||t.value>(0,s.oU)(e.value,e.unit,t.unit)?t:e}n(0,"meters"),i(0,"square-meters"),a(0,"radians"),a(0,"degrees"),a(0,"degrees","geographic")},87992(t,e,r){r.d(e,{JR:()=>R,ME:()=>C,MY:()=>A,NO:()=>M,Nh:()=>w,V2:()=>E,_s:()=>b,e6:()=>I,gh:()=>P,tr:()=>Y,uX:()=>m});var s=r(5482),n=r(16930),i=r(19419),a=r(60408),o=r(21325),h=r(513),u=r(50954),l=r(79567),c=r(52006),f=r(49663),p=r(46068),g=r(92722);class m{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:a,partOffsets:o,partFlags:h,segmentFlags:u,segmentIndices:l,segmentParams:c,segmentCountArc:f,segmentCountBezier:p}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=l,this.segmentParams=c,this.segmentCountArc=f,this.segmentCountBezier=p}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?64+t.byteLength:0}return t(this.vertexXY)+t(this.vertexZ)+t(this.vertexM)+t(this.partOffsets)+t(this.partFlags)+t(this.segmentFlags)+t(this.segmentIndices)+t(this.segmentParams)}clone(){const{type:t,vertexCount:e,partCount:r,hasZ:s,hasM:n,segmentCountArc:i,segmentCountBezier:a}=this,o=E(t,e,r,s,n,this.hasCurves(),i,a);o.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:l}=this;if(o.vertexXY.set(h.subarray(0,2*e),0),o.vertexZ?.set(u.subarray(0,e),0),o.vertexM?.set(l.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;o.partFlags.set(e.subarray(0,r+1)),o.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(t.subarray(0,e),0),o.segmentIndices.set(r.subarray(0,e),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,o.aI)(this.spatialReference,t.spatialReference))return!1;if(this.vertexCount!==t.vertexCount||this.partCount!==t.partCount)return!1;if(this.hasZ!==t.hasZ||this.hasM!==t.hasM)return!1;if(this.hasCurves()!==t.hasCurves()||this.segmentCountArc!==t.segmentCountArc||this.segmentCountBezier!==t.segmentCountBezier)return!1;const r=0===e?(t,e)=>t!==e||isNaN(t)!==isNaN(e):(t,r)=>Math.abs(t-r)>e||isNaN(t)!==isNaN(r);for(let e=0;e<this.vertexCount;++e)if(r(this.vertexXY[2*e],t.vertexXY[2*e])||r(this.vertexXY[2*e+1],t.vertexXY[2*e+1]))return!1;if(this.hasZ)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexZ[e],t.vertexZ[e]))return!1;if(this.hasM)for(let e=0;e<this.vertexCount;++e)if(r(this.vertexM[e],t.vertexM[e]))return!1;for(let e=0;e<this.partCount;++e)if(this.partFlags[e]!==t.partFlags[e]||this.partOffsets[e]!==t.partOffsets[e])return!1;if(this.hasCurves()){for(let e=0;e<this.vertexCount;++e)if(this.segmentFlags[e]!==t.segmentFlags[e]||this.segmentIndices[e]!==t.segmentIndices[e])return!1;for(let e=0;e<this.segmentParamCount;++e)if(r(this.segmentParams[e],t.segmentParams[e]))return!1}return!0}get parts(){return this.isMultipart()?new y(this):[][Symbol.iterator]()}}class y{constructor(t){this.geometry=t,this.value=new d(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(t){this.geometry=t,this.index=-1,this._readVertex=Z(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new x(t.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const t=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=t&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:t}=this._part,e=this._part.geometry.partOffsets;this._partStart=e[t],this._partEnd=e[t+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class x{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],a=e[r++],o=e[r++],h=e[r++];r++,r++;const u=e[r++],l=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,l]]};const c=2&s?0:1,f=1&s?0:1;return{a:[this.end,[o,h],c,f,a,n,i]}}}function M(t,e){const r={stack:[],error:void 0,hasError:!1};try{return e??=(0,i.Ie)(),(0,s.mS)(r,new S(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:a,vertexM:o}=t,h=O(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new S(t,["vertexZ","vertexM"]),!1);const n=(0,i.Ie)();for(const e of t.parts){let t=e.startVertex;for(const{curve:r}of e.segments)(0,l.e)(n,t,r),t=(0,c.yP)(r)}const[a,o,u,f]=n;e={xmin:a,ymin:o,xmax:u,ymax:f,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,a;t=s=1/0,i=a=-1/0;for(let e=0;e<r;++e){const r=n[2*e],o=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,o),a=Math.max(a,o)}e={xmin:t,ymin:s,xmax:i,ymax:a,spatialReference:h}}if(a){let t=1/0,r=-1/0;for(const e of a)t=Math.min(t,e),r=Math.max(r,e);e.zmin=t,e.zmax=r}if(o){let t=1/0,r=-1/0;for(const e of o)t=Math.min(t,e),r=Math.max(r,e);e.mmin=t,e.mmax=r}return e}(t)),e}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}function C(t){let e,r,s;if((0,a.fT)(t)){s="point";const{x:n,y:i,z:a,m:o}=t,h=[n,i];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],e=1}else(0,a.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,a.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,_(e[0],(0,c.yP)(e.at(-1)))&&--t),t),0));const n=E(s,e,s.includes("point")?0:r.length,(0,a.Pv)(t),(0,a.W0)(t),(0,c.Ed)(t)),{hasZ:i,hasM:o,vertexXY:h,vertexZ:u,vertexM:l}=n;function f(t){h[2*g]=t[0],h[2*g+1]=t[1],i&&(u[g]=t[2]),o&&(l[g]=t[p]),++g}n.spatialReference=t.spatialReference??void 0;const p=n.hasZ?3:2;let g=0;if(!n.isMultipart()){if(!i&&!o){for(const[t,e]of r[0])h[2*g]=t,h[2*g+1]=e,++g;return n}for(const t of r[0])f(t);return n}const m="polygon"===s,{partOffsets:y}=n;let d=0;if(!(0,c.Ed)(t)){for(const t of r){if(y[d++]=g,0===t.length)continue;let e=t.length;if(m&&_(t[0],t.at(-1))&&--e,i||o)for(let r=0;r<e;++r)f(t[r]);else for(let r=0;r<e;++r){const[e,s]=t[r];h[2*g]=e,h[2*g+1]=s,++g}}return y[d]=g,n}function v(t){const e=x+t;if(e<=(n.segmentParams?.length??0))return;let r=e*z;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let x=0;for(const t of r){if(n.partOffsets[d++]=g,0===t.length)continue;const e=t[0];let r=e;for(let e=1;e<t.length;++e){const s=t[e];f(r);const i=g-1;(0,c.wY)(s)?(v(10),++n.segmentCountArc,x=b(r,s,n,i,x),r=s.a[0]):(0,c.DA)(s)?(v(10),++n.segmentCountArc,x=V(r,s,n,i,x),r=s.a[0]):(0,c.aO)(s)?(v(10),++n.segmentCountArc,x=I(r,s,n,i,x),r=s.c[0]):(0,c.n1)(s)?(v(4),++n.segmentCountBezier,x=Y(0,s,n,i,x),r=s.b[0]):r=s}m&&_(e,r)||f(r)}return n.partOffsets[d]=g,n}function P(t){const e=Z(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,a=O(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:a}}let o=0;if("multipoint"===t.type){const t=[];for(;o<r;)t.push(e(o++));return{points:t,spatialReference:a,hasZ:n,hasM:i}}const h="polygon"===t.type;if(!t.hasCurves()){const r=new Array;for(let n=0;n<s;++n){const s=t.partOffsets[n+1],i=new Array;for(;o<s;)i.push(e(o++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:a}:{paths:r,hasZ:n,hasM:i,spatialReference:a}}const u=new Array;for(const{segments:e,startVertex:r}of t.parts){const t=[r];for(const{curve:r}of e)t.push(r);u.push(t)}return h?{rings:[],curveRings:u,hasZ:n,hasM:i,spatialReference:a}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:a}}function w(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const a=t.includes("point")?0:e.length,o="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(o?a:0);s??=!1,n??=!1;const u=E(t,h,a,s,n,!1,0,0);if(u.spatialReference=i??void 0,!u.isMultipart()){for(let t=0,e=0;t<h;++t)u.vertexXY[2*t]=r[e++],u.vertexXY[2*t+1]=r[e++],s&&(u.vertexZ[t]=r[e++]),n&&(u.vertexM[t]=r[e++]);return u}const l=2+Number(s)+Number(n);let c=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(o);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[c++],u.vertexXY[2*t+1]=r[c++],s&&(u.vertexZ[t]=r[c++]),n&&(u.vertexM[t]=r[c++]);o&&(c+=l)}return u}function R({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:a,hasZ:o,hasM:h}){const u=new g.A([],[],o,h);i=Math.max(i,1);const l="polygon"===t;let c=0;for(let t=0;t<i;++t){const i=a?.[t+1]??e,f=u.coords.length;for(let t=c;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(l){const t=c;u.coords.push(r[2*t],r[2*t+1]),o&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),c=i}return"point"===t&&(u.lengths.length=0),u}function A(t,e){return"getSpatialReference"in t&&(e=function(t){if(null==t)return;const e=t.getText()||void 0,r=t.isCustomWkid()?0:t.getOldID();if(r<=0)return{wkt:e};let s=t.getLatestID();(s<=0||s===r)&&(s=void 0);const n=t.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:e};const i=n.isCustomWkid()?0:n.getOldID();if(i<=0)return{wkt:e};let a=t.getLatestVerticalID();return(a<=0||a===i)&&(a=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:a}}(t.getSpatialReference()),t=t.getGeometry()),new m({...t.toFlatGeometry(),spatialReference:e})}class S{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function O({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function Z({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function _(t,e){return t.every((t,r)=>t===e[r])}function E(t,e,r,s,n,i,a,o){a??=0,o??=0;const h=new m({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o});let u=2*Float64Array.BYTES_PER_ELEMENT*e;s&&(u+=Float64Array.BYTES_PER_ELEMENT*e),n&&(u+=Float64Array.BYTES_PER_ELEMENT*e),h.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(u+=e*Int8Array.BYTES_PER_ELEMENT,u+=e*Int32Array.BYTES_PER_ELEMENT,u+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const l=new ArrayBuffer(u);let c=0;return h.vertexXY=new Float64Array(l,c,2*e),c+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(l,c,e),c+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(l,c,e),c+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(l,c,h.segmentParamCount),c+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(l,c,e),h.segmentIndices.fill(F),c+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(l,c,r+1),c+=h.partOffsets.byteLength,h.partFlags=new Int8Array(l,c,r+1),c+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(l,c,e),h.segmentFlags.fill(1),c+=h.segmentFlags.byteLength),h}function b(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const[o,[h,u],l,c,f,g,m]=e.a;let y=4;c||(y|=1),l||(y|=2);const d=(0,p.SW)(t,e),[v,x]=(0,p.Uk)(d,.5);return n[a++]=y,n[a++]=g,n[a++]=m,n[a++]=f,n[a++]=h,n[a++]=u,n[a++]=d.u2-d.u1,n[a++]=d.u1,n[a++]=v,n[a++]=x,a}function V(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){r[i]=4,s[i]=a;const o=(0,f.io)(t,e);return G(o,4,...(0,h.mq)(o,.5),n,a)}function I(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,a){return r[i]=4,s[i]=a,G((0,u.pM)(t,e),0,...e.c[1],n,a)}function G(t,e,r,s,n,i){const{cx:a,cy:o,thetaStart:h,thetaEnd:u,radius:l}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=l,n[i++]=1,n[i++]=0,n[i++]=a,n[i++]=o,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function Y(t,{b:[e,[r,s],[n,i]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},u,l){return a[u]=2,o[u]=l,h[l++]=r,h[l++]=s,h[l++]=n,h[l++]=i,l}const z=1.61803,F=-1},48526(t,e,r){r.d(e,{A:()=>y});var s,n=r(5482),i=r(4576),a=r(4718),o=r(91429),h=r(5443),u=r(91075),l=r(86738),c=r(16930),f=r(90634),p=r(47610),g=r(56993),m=r(43937);let y=s=class extends u.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:r,hasZ:s,spatialReference:n}=t;switch(e??=[],e?.at(0)?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return n??=c.A.WGS84,{...t,hasM:r,hasZ:s,points:e,spatialReference:n}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,a.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:r,hasZ:n}=this;return new s({points:(0,a.o8)(t),spatialReference:e.clone(),hasM:r,hasZ:n})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,r=t.spatialReference;return null!=e==(null!=r)&&!(null!=e&&null!=r&&!e.equals(r))&&(0,i.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,g.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],r={x:e[0],y:e[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(r.z=e[2],s=3),this.hasM&&(r.m=e[s]),new l.A(r)}removePoint(t){if(!this._validateInputs(t))return null;const e=new l.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,g.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,n.Cg)([(0,m.K)("points")],y.prototype,"writePoints",null),y=s=(0,n.Cg)([(0,o.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,r){r.d(e,{A:()=>g});var s,n=r(5482),i=r(4718),a=r(91429),o=r(5443),h=r(91075),u=r(86738),l=r(16930),c=r(90634),f=r(56993),p=r(43937);let g=s=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:r,hasZ:s,spatialReference:n}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return n??=l.A.WGS84,{...t,hasM:r,hasZ:s,paths:e,spatialReference:n}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,i.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,i.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,r=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const s=[];for(let e=0,r=t.length;e<r;e++)s[e]=t[e].toArray();e[r]=s}else e[r]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new s;return t.spatialReference=this.spatialReference,t.paths=(0,i.o8)(this.paths),t.curvePaths=(0,i.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const r=this.paths[t][e],s=this.hasZ,n=this.hasM;return s&&!n?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):n&&!s?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):s&&n?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(t,e,r){return this._validateInputs(t,e,!0)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t].splice(e,0,r),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],r=this.spatialReference,s=e.map(t=>new u.A(t,r));return this.notifyChange("paths"),s}removePoint(t,e){if(!this._validateInputs(t,e))return null;const r=new u.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(t,e,r){return this._validateInputs(t,e)?((0,f.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t][e]=r,this.notifyChange("paths"),this):this}_validateInputs(t,e,r=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const s=this.paths[t];if(r&&(e<0||e>s.length))return!1;if(!r&&(e<0||e>=s.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,n.Cg)([(0,p.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,n.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,n.Cg)([(0,p.K)("paths")],g.prototype,"writePaths",null),g=s=(0,n.Cg)([(0,a.$K)("esri.geometry.Polyline")],g),g.prototype.toJSON.isDefaultToJSON=!0},86742(t,e,r){r.d(e,{Hh:()=>a,fz:()=>h,g7:()=>o,s1:()=>i});var s=r(83290);let n;function i(){return!!n&&(0,s.i)()}async function a(){if(!i()){const[t,e]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(2024),r.e(6558)]).then(r.bind(r,6558)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(8344)]).then(r.bind(r,15756)).then(({injectPe:t})=>t),(0,s.l)()]);n=new t.OperatorGeodeticArea,e(s.p)}}function o(t,e,r){return n.execute(t,e,r,null)}function h(){return n.supportsCurves()}},35223(t,e,r){r.d(e,{Hh:()=>a,fz:()=>h,g7:()=>o,s1:()=>i});var s=r(83290);let n;function i(){return!!n&&(0,s.i)()}async function a(){if(!i()){const[t,e]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(4167)]).then(r.bind(r,28879)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(8344)]).then(r.bind(r,15756)).then(({injectPe:t})=>t),(0,s.l)()]);n=new t.OperatorGeodeticLength,e(s.p)}}function o(t,e,r){return n.execute(t,e,r,null)}function h(){return n.supportsCurves()}},81150(t,e,r){r.d(e,{Pg:()=>h,fz:()=>u,g7:()=>a,zo:()=>o});var s=r(76061),n=(r(55537),r(88885),r(39117));r(95213);const i=new n.H;function a(t,e,r){return i.execute(t,e,r,null)}function o(t,e,r){const n=i.executeMany(new s.S(t),e,r,null);return Array.from(n)}function h(t,e,r){return i.isSimpleAsFeature(t,e,r,null,null)}function u(){return i.supportsCurves()}},78125(t,e,r){r.r(e),r.d(e,{fromExtent:()=>y,fromGeometry:()=>m,fromMultipoint:()=>d,fromPoint:()=>v,fromPolygon:()=>x,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>P,getSpatialReference:()=>g,toExtent:()=>R,toGeometry:()=>w,toMultipoint:()=>A,toPoint:()=>S,toPolygon:()=>O,toPolyline:()=>Z});var s=r(83661),n=r(55537),i=r(95213),a=r(88885),o=r(5443),h=r(48526),u=r(86738),l=r(39829),c=r(82799),f=(r(90293),r(83299));const p="_gxVersion";function g(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function m(t){switch(t.type){case"point":return v(t);case"multipoint":return d(t);case"polyline":return M(t);case"polygon":return x(t);case"extent":return y(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function y(t){if(!t.getCacheValue(p)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(2,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(1,0,t.zmin,t.zmax),t.setCacheValue(p,e)}return t.getCacheValue(p)}function d(t){if(!t.getCacheValue(p)){const e=new a.M,r=new i.P,s=t.points,n=t.hasM,o=t.hasZ,h=o?3:2;for(let t=0,i=s.length;t<i;t++){const i=s[t];r.setXYCoords(i[0],i[1]),o&&r.setZ(i[2]??0),n&&r.setM(i[h]??NaN),e.add(r)}t.setCacheValue(p,e)}return t.getCacheValue(p)}function v(t){if(!t.getCacheValue(p)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(p,e)}return t.getCacheValue(p)}function x(t){if(!t.getCacheValue(p)){const{curveRings:e,hasM:r,hasZ:s,rings:n}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:r,hasZ:s,rings:n});t.setCacheValue(p,i)}return t.getCacheValue(p)}function M(t){if(!t.getCacheValue(p)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(p,i)}return t.getCacheValue(p)}function C(t){if(!t.getCacheValue(p)){const{curvePaths:e,hasM:r,hasZ:s,paths:n}=t,i=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:r,hasZ:s,paths:n});t.setCacheValue(p,i)}return t.getCacheValue(p)}function P(t){return t.cache?(t.cache[p]??=(0,f.fromSpatialReference)(t),t.cache[p]):(0,f.fromSpatialReference)(t)}function w(t,e){if(t)switch(t.getGeometryType()){case n.G.enumPoint:return S(t,e);case n.G.enumEnvelope:return R(t,e);case n.G.enumMultiPoint:return A(t,e);case n.G.enumPolyline:return Z(t,e);case n.G.enumPolygon:return O(t,e)}return null}function R(t,e){if(t.isEmpty())return null;const r=new o.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),s=t.getDescription();if(s.hasM()){const e=t.queryInterval(2,0);r.mmin=e.vmin,r.mmax=e.vmax}if(s.hasZ()){const e=t.queryInterval(1,0);r.zmin=e.vmin,r.zmax=e.vmax}return r.setCacheValue(p,t),r}function A(t,e){if(t.isEmpty())return null;const r=t.getDescription(),s=r.hasM(),n=r.hasZ(),a=[],o=new i.P;for(let e=0,r=t.getPointCount();e<r;e++){t.getPointByVal(e,o);const r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),a.push(r)}const u=new h.A({hasM:s,hasZ:n,points:a,spatialReference:e});return u.setCacheValue(p,t),u}function S(t,e){if(t instanceof s.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const r=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),n=t.getDescription();return n.hasM()&&(r.m=t.getM()),n.hasZ()&&(r.z=t.getZ()),r.setCacheValue(p,t),r}function O(t,e){if(t.isEmpty())return null;const r=l.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(p,t),r}function Z(t,e){if(t.isEmpty())return null;const r=c.A.fromJSON({...(0,f.toGeometry)(t,null),spatialReference:e});return r.setCacheValue(p,t),r}},5808(t,e,r){r.d(e,["O",0,{geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}])},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,a=s-e;return new n([5],[t,e,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:s}=this;let n=this.coords[s*e],i=this.coords[s*e+1];for(let a=1;a<r;a+=1){const r=s*(e+a),o=this.coords[r],h=this.coords[r+1];t+=-.5*(o-n)*(h+i),n=o,i=h}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const s of this.lengths){for(let n=0;n<s;n++){const s=r*(e+n);t(this.coords[s],this.coords[s+1])}e+=s}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let s=0;const{stride:n}=this;for(const t of r){for(let r=1;r<t;r++){const t=n*(s+r);e[t]+=e[t-n],e[t+1]+=e[t+1-n]}s+=t}return t}clone(t){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:s}=this,i=this.coords.slice(0,s*r);return t?(t.set(i),new n(e,t,this.hasZ,this.hasM)):new n(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,s=0;e<r.length;e+=t)r[s++]=this.coords[e],r[s++]=this.coords[e+1];return new n(this.lengths,r,!1,!1)}}},32728(t,e,r){r.d(e,{YH:()=>a,nu:()=>o,wp:()=>i}),r(34727);var s=r(35522),n=r(51850);function i(t,e){const r=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),n=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,s.hZ)(t,r,n,i),t}function a(t,e,r){r=r||t;const n=(0,s.Om)(t,e);(0,s.hZ)(r,t[0]-n*e[0],t[1]-n*e[1],t[2]-n*e[2]),(0,s.S8)(r,r)}function o(t,e,r,i=(0,n.vt)()){const a=(0,s.Bw)(t),o=(0,s.Bw)(e),l=(0,s.Om)(t,e)/(a*o);if(l<.9999999999999999){const n=Math.acos(l),c=((1-r)*a+r*o)/Math.sin(n),f=c/a*Math.sin((1-r)*n),p=c/o*Math.sin(r*n);return(0,s.hs)(h,t,f),(0,s.hs)(u,e,p),(0,s.WQ)(i,h,u)}return(0,s.Cc)(i,t,e,r)}(0,n.vt)(),(0,n.vt)(),(0,n.vt)();const h=(0,n.vt)(),u=(0,n.vt)()}}]);
|