@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
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,1965,7992,8125],{30921(e,t,n){n.d(t,{D:()=>_,m:()=>m,s:()=>v,w:()=>p});var r=n(5482),s=n(55537),i=n(88885),o=n(39117),a=n(83661),u=n(79187),h=n(95213);function m(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function c(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function l(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function g(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function f(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function y(e,t){const n=m();g(n,e),g(e,t),g(t,n)}function p(e,t,n,r,i,a){if(e.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,o.E)(e,t.getEndXY(),0))return l(i,t.getEndXY(),-1,Number.NaN),l(a,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,o.E)(t,e.getEndXY(),0))return l(i,e.getEndXY(),-1,Number.NaN),l(a,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function v(e){const t=e.getPathCount(),n=(0,a.d)(e.getSegmentCount(),0);let r=0;for(let s=0;s<t;++s){const t=r+e.getSegmentCountPath(s);for(let i=r,o=e.getPathStart(s);i<t;++i,++o)n[i]=o;r=t}return(0,i.s)(e.getPointCount(),n),n}function x(e,t){return!!Number.isNaN(t)||e<=t}function d(e){const t=new i.P;return t.addEnvelope(e,!1),t}class _{m_progressTracker;m_env2DgeometryA=null;m_env2DgeometryB=null;m_maxSqrDistance;m_maxDistance;m_progressCounter=0;m_bIsNearCalc;constructor(e,t){if(this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==h.P.type||t.getGeometryType()!==h.P.type)&&(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!x(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=c(new a.P,(0,a.j)(),Number.NaN),i=c(new a.P,(0,a.j)(),Number.NaN),o=this._ExecuteBruteForce(e,t,s,i);return x(o,this.m_maxDistance)?(null!==n&&g(n,s),null!==r&&g(r,i),o):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==h.P.type&&e.getGeometryType()!==h.E.type||t.getGeometryType()!==h.P.type&&t.getGeometryType()!==h.E.type||(n=!1),n){if(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=c(new a.P,(0,a.j)(),Number.NaN),s=c(new a.P,(0,a.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),i=t.getXY();return l(n,s,0,0),l(r,i,0,0),Math.sqrt(a.P.sqrDistance(s,i))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let i=this.m_maxSqrDistance,o=i,u=!1;const h=t.getPointCount(),m=new a.P;for(let e=0;e<h;++e)if(t.queryXY(e,m),o=a.P.sqrDistance(s,m),this.m_bIsNearCalc){if(o<=i)return 0}else if(!(o>i)&&(!u&&o===i||o<i)&&(i=o,l(n,s,0,0),l(r,m,e,0),u=!0,0===i))return 0;return u?Math.sqrt(i):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const i=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),h=e.getXY();if(!i&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,o.E)(t,h,0))return l(n,h,0,0),l(r,h,-1,Number.NaN),0;t.getImpl().getAccelerators();let m=this.m_maxSqrDistance,c=m,g=-1;const f=new u.Envelope2D,y=t.querySegmentIterator();let p=!1;for(;y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();e.queryEnvelope(f);const t=f.sqrDistance(h);if(t>m)continue;if(!this.m_bIsNearCalc&&p&&t===m)continue;g=e.getClosestCoordinate(h,!1);const s=e.getCoord2D(g);if(c=a.P.sqrDistance(h,s),this.m_bIsNearCalc){if(c<=m)return 0}else if(!(c>m)&&(!p||c<m)&&(m=c,l(n,h,0,0),l(r,s,y.getStartPointIndex(),g),p=!0,0===m))return 0}return p?Math.sqrt(m):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();l(n,s,0,0),l(r,s,-1,Number.NaN);const i=t.asEnvelope2D();return i.contains(s)?0:Math.sqrt(i.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,d(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,s,i,o){const u={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===i&&1===o){const r=Math.trunc((0,a.s)(Math.sqrt(e.getPointCount())+1,1,(0,a.i)())),i=Math.trunc((0,a.s)(Math.sqrt(t.getPointCount())+1,1,(0,a.i)()));if((r>=4||i>=4)&&this.distanceMultipointMultipoint(e,t,n,s,r,i)<=this.m_maxSqrDistance)return 0}let h=this.m_maxSqrDistance;const m=[e],c=[t],g=this.swapGeometriesIfBGtA(m,c);g&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o=(0,a.c)(i,i=o),y(n,s)),(0,r.mS)(u,(0,a.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!g),!1);const f=m[0].getImpl(),p=c[0].getImpl(),v=f.getPointCount(),x=p.getPointCount(),d=x>1;let _=!1;const P=new a.P,M=new a.P;for(let e=0;e<v;e+=i){if(f.queryXY(e,P),d){const e=this.m_env2DgeometryB.sqrDistance(P);if(this.m_bIsNearCalc){if(e>h)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(P)<=h)return 0}else if(e>=h)continue}for(let t=0;t<x;t+=o){p.queryXY(t,M);const r=a.P.sqrDistance(P,M);if(this.m_bIsNearCalc){if(r<=h)return 0}else if(!(r>h||_&&r===h)&&(!_||r<h)&&(l(n,P,e,0),l(s,M,t,0),_=!0,h=r,0===h))return _?Math.sqrt(h):Number.POSITIVE_INFINITY}}return _?Math.sqrt(h):Number.POSITIVE_INFINITY}catch(e){u.error=e,u.hasError=!0}finally{(0,r.hk)(u)}}distanceMultipointMultipath(e,t,n,r){let i=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const h=t.querySegmentIterator();h.stripAttributes();const m=new u.Envelope2D,c=new a.P;let g=this.m_maxSqrDistance;const f=e.getImpl(),y=f.getPointCount(),p=y>1;let v=!1;for(;h.nextPath();)for(;h.hasNextSegment();){const e=h.nextSegment();if(e.queryLooseEnvelope(m),p){const e=m.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g||v&&e===g)continue}for(let s=0;s<y;s++){if(f.queryXY(s,c),i&&0!==(0,o.E)(t,c,0))return l(n,c,-1,Number.NaN),l(r,c,s,0),0;{const e=m.sqrDistance(c);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g)continue}const a=e.getClosestCoordinate(c,!1),u=e.getCoord2D(a);c.subThis(u);const y=c.sqrLength();if(this.m_bIsNearCalc){if(y<=g)return 0}else if(!(y>g)&&(!v||y<g)&&(g=y,l(n,f.getXY(s),s,0),l(r,u,h.getStartPointIndex(),a),v=!0,0===g))return 0}i=!1}return v?Math.sqrt(g):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,d(e),r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(d(e),t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=e.asEnvelope2D(),i=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(i,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,d(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,s){const o={stack:[],error:void 0,hasError:!1};try{const h=[e],c=[t],l=this.swapGeometriesIfAGtB(h,c);l&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),y(n,s)),(0,r.mS)(o,(0,a.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!l),!1);const x=h[0],d=c[0],_=x.querySegmentIterator();_.stripAttributes();const P=d.querySegmentIterator();if(P.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,a.s)(Math.sqrt(x.getPointCount())+1,1,(0,a.i)())),t=Math.trunc((0,a.s)(Math.sqrt(x.getPointCount())+1,1,(0,a.i)()));if(this.distanceMultipointMultipoint(x,d,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=m(),t=m();if(p(x,d,_,P,e,t))return g(n,e),g(s,t),0}const M=v(x),N=[],E=new i.S,D=new u.Envelope2D,C=new u.Envelope2D,I=new u.Envelope2D;let S=this.m_maxSqrDistance,b=!0,A=!1;for(let e=0,t=M.length;e<t;++e){x.querySegment(M[e],E,!0);const t=E.get();if(t.queryEnvelope(D),!(D.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>S)){if(this.m_bIsNearCalc&&D.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=S)return 0;for(;P.nextPath();){if(this.progress_(),b)d.queryPathEnvelope(P.getPathIndex(),I),N[P.getPathIndex()]=I.clone();else if(D.sqrDistanceEnvelope(N[P.getPathIndex()],null,null)>S)continue;for(;P.hasNextSegment();){const r=P.nextSegment();if(r.queryEnvelope(C),D.sqrDistanceEnvelope(C,null,null)<=S){const i=!D.isIntersecting(C),o=[0],a=[0];let u=t.distance(r,i,o,a);if(u*=u,this.m_bIsNearCalc&&u<=this.m_maxSqrDistance)return 0;if(u<S||u===S&&M[e]<n.index){if(A=!0,f(n,t,M[e],o[0]),f(s,r,P.getStartPointIndex(),a[0]),0===u)return 0;S=u}}}}P.resetToFirstPath(),b=!1}}return A?Math.sqrt(S):Number.POSITIVE_INFINITY}catch(e){o.error=e,o.hasError=!0}finally{(0,r.hk)(o)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,a.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},61691(e,t,n){n.d(t,{G:()=>r});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>s});var r=n(61691);class s extends r.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},16346(e,t,n){n.d(t,{e:()=>u});var r=n(55537),s=n(30921),i=n(86211),o=n(78125);const a=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,i,o,a){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const u=e,h=t;Number.isNaN(a)&&(a=Number.POSITIVE_INFINITY);const m=new s.D(a,n).calculate(u,h,i,o);return Number.isFinite(m)?m:Number.NaN}};function u(e,t,n={}){const{unit:r}=n;let s=a.execute((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),null);if(s&&r){const t=(0,o.getSpatialReference)(e);s=(0,i.PQ)(s,t,r)}return s}const h=a.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:u,supportsCurves:h},Symbol.toStringTag,{value:"Module"}));n.d(t,["d",0,m])},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,lM:()=>s});var r=n(34275);function s(e){if(!e)return 0;let t=h;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function i(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=m;for(let r=0;r<t;r++)n+=o(e[r]);return n}(e);let t=h;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?i(e):h;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+c:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return m+e.length*t}const h=32,m=16,c=145},87992(e,t,n){n.d(t,{JR:()=>E,ME:()=>P,MY:()=>D,NO:()=>_,Nh:()=>N,V2:()=>A,_s:()=>G,e6:()=>q,gh:()=>M,tr:()=>V,uX:()=>y});var r=n(5482),s=n(16930),i=n(19419),o=n(60408),a=n(21325),u=n(513),h=n(50954),m=n(79567),c=n(52006),l=n(49663),g=n(46068),f=n(92722);class y{constructor({type:e,spatialReference:t,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:h,segmentIndices:m,segmentParams:c,segmentCountArc:l,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=m,this.segmentParams=c,this.segmentCountArc=l,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:n}=this;return e&&e-t-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=A(e,t,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:m}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(h.subarray(0,t),0),a.vertexM?.set(m.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,n+1)),a.partOffsets.set(e.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(n.subarray(0,t),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const n=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,n)=>Math.abs(e-n)>t||isNaN(e)!==isNaN(n);for(let t=0;t<this.vertexCount;++t)if(n(this.vertexXY[2*t],e.vertexXY[2*t])||n(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(n(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(e){this.geometry=e,this.value=new v(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(e){this.geometry=e,this.index=-1,this._readVertex=S(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new d(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class d{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=S(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[n++],r=t[n++],s=t[n++],i=t[n++];return{b:[this.end,[e,r],[s,i]]}}const r=t[n++],s=t[n++],i=t[n++],o=t[n++],a=t[n++],u=t[n++];n++,n++;const h=t[n++],m=t[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[h,m]]};const c=2&r?0:1,l=1&r?0:1;return{a:[this.end,[a,u],c,l,o,s,i]}}}function _(e,t){const n={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,r.mS)(n,new C(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t;const{vertexCount:n,vertexXY:s,vertexZ:o,vertexM:a}=e,u=I(e);if(e.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new C(e,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:n}of t.segments)(0,m.e)(s,e,n),e=(0,c.yP)(n)}const[o,a,h,l]=s;t={xmin:o,ymin:a,xmax:h,ymax:l,spatialReference:u}}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}else{let e,r,i,o;e=r=1/0,i=o=-1/0;for(let t=0;t<n;++t){const n=s[2*t],a=s[2*t+1];e=Math.min(e,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}t={xmin:e,ymin:r,xmax:i,ymax:o,spatialReference:u}}if(o){let e=1/0,n=-1/0;for(const t of o)e=Math.min(e,t),n=Math.max(n,t);t.zmin=e,t.zmax=n}if(a){let e=1/0,n=-1/0;for(const t of a)e=Math.min(e,t),n=Math.max(n,t);t.mmin=e,t.mmax=n}return t}(e)),t}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}function P(e){let t,n,r;if((0,o.fT)(e)){r="point";const{x:s,y:i,z:o,m:a}=e,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],t=1}else(0,o.U9)(e)?(r="multipoint",n=[e.points],t=e.points.length):(0,o.Rg)(e)?(r="polyline",n=e.curvePaths??e.paths,t=n.reduce((e,t)=>e+t.length,0)):(r="polygon",n=e.curveRings??e.rings,t=n.reduce((e,t)=>(0===t.length||(e+=t.length,b(t[0],(0,c.yP)(t.at(-1)))&&--e),e),0));const s=A(r,t,r.includes("point")?0:n.length,(0,o.Pv)(e),(0,o.W0)(e),(0,c.Ed)(e)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:h,vertexM:m}=s;function l(e){u[2*f]=e[0],u[2*f+1]=e[1],i&&(h[f]=e[2]),a&&(m[f]=e[g]),++f}s.spatialReference=e.spatialReference??void 0;const g=s.hasZ?3:2;let f=0;if(!s.isMultipart()){if(!i&&!a){for(const[e,t]of n[0])u[2*f]=e,u[2*f+1]=t,++f;return s}for(const e of n[0])l(e);return s}const y="polygon"===r,{partOffsets:p}=s;let v=0;if(!(0,c.Ed)(e)){for(const e of n){if(p[v++]=f,0===e.length)continue;let t=e.length;if(y&&b(e[0],e.at(-1))&&--t,i||a)for(let n=0;n<t;++n)l(e[n]);else for(let n=0;n<t;++n){const[t,r]=e[n];u[2*f]=t,u[2*f+1]=r,++f}}return p[v]=f,s}function x(e){const t=d+e;if(t<=(s.segmentParams?.length??0))return;let n=t*Y;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let d=0;for(const e of n){if(s.partOffsets[v++]=f,0===e.length)continue;const t=e[0];let n=t;for(let t=1;t<e.length;++t){const r=e[t];l(n);const i=f-1;(0,c.wY)(r)?(x(10),++s.segmentCountArc,d=G(n,r,s,i,d),n=r.a[0]):(0,c.DA)(r)?(x(10),++s.segmentCountArc,d=w(n,r,s,i,d),n=r.a[0]):(0,c.aO)(r)?(x(10),++s.segmentCountArc,d=q(n,r,s,i,d),n=r.c[0]):(0,c.n1)(r)?(x(4),++s.segmentCountBezier,d=V(0,r,s,i,d),n=r.b[0]):n=r}y&&b(t,n)||l(n)}return s.partOffsets[v]=f,s}function M(e){const t=S(e),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=e,o=I(e);if("point"===e.type){const[t,n]=e.vertexXY,r=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:n,z:r,m:s,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<n;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===e.type;if(!e.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=e.partOffsets[s+1],i=new Array;for(;a<r;)i.push(t(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const h=new Array;for(const{segments:t,startVertex:n}of e.parts){const e=[n];for(const{curve:n}of t)e.push(n);h.push(e)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:o}}function N(e,{lengths:t,coords:n,hasZ:r,hasM:s},i){const o=e.includes("point")?0:t.length,a="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);r??=!1,s??=!1;const h=A(e,u,o,r,s,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let e=0,t=0;e<u;++e)h.vertexXY[2*e]=n[t++],h.vertexXY[2*e+1]=n[t++],r&&(h.vertexZ[e]=n[t++]),s&&(h.vertexM[e]=n[t++]);return h}const m=2+Number(r)+Number(s);let c=0,l=0;h.partOffsets[0]=0;for(const e of t){const t=h.partOffsets[l],i=t+e-Number(a);h.partOffsets[++l]=i;for(let e=t;e<i;++e)h.vertexXY[2*e]=n[c++],h.vertexXY[2*e+1]=n[c++],r&&(h.vertexZ[e]=n[c++]),s&&(h.vertexM[e]=n[c++]);a&&(c+=m)}return h}function E({type:e,vertexCount:t,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const h=new f.A([],[],a,u);i=Math.max(i,1);const m="polygon"===e;let c=0;for(let e=0;e<i;++e){const i=o?.[e+1]??t,l=h.coords.length;for(let e=c;e<i;++e)h.coords.push(n[2*e],n[2*e+1]),a&&h.coords.push(r[e]),u&&h.coords.push(s[e]);if(m){const e=c;h.coords.push(n[2*e],n[2*e+1]),a&&h.coords.push(r[e]),u&&h.coords.push(s[e])}h.lengths.push((h.coords.length-l)/h.stride),c=i}return"point"===e&&(h.lengths.length=0),h}function D(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,n=e.isCustomWkid()?0:e.getOldID();if(n<=0)return{wkt:t};let r=e.getLatestID();(r<=0||r===n)&&(r=void 0);const s=e.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:t};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:n,wkt:t,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new y({...e.toFlatGeometry(),spatialReference:t})}class C{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const n of t)e[n]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function I({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function S({vertexXY:e,vertexZ:t,vertexM:n}){return t?n?r=>[e[2*r],e[2*r+1],t[r],n[r]]:n=>[e[2*n],e[2*n+1],t[n]]:n?t=>[e[2*t],e[2*t+1],n[t]]:t=>[e[2*t],e[2*t+1]]}function b(e,t){return e.every((e,n)=>e===t[n])}function A(e,t,n,r,s,i,o,a){o??=0,a??=0;const u=new y({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let h=2*Float64Array.BYTES_PER_ELEMENT*t;r&&(h+=Float64Array.BYTES_PER_ELEMENT*t),s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(h+=(n+1)*Int32Array.BYTES_PER_ELEMENT,h+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const m=new ArrayBuffer(h);let c=0;return u.vertexXY=new Float64Array(m,c,2*t),c+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(m,c,t),c+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(m,c,t),c+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(m,c,u.segmentParamCount),c+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(m,c,t),u.segmentIndices.fill(O),c+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(m,c,n+1),c+=u.partOffsets.byteLength,u.partFlags=new Int8Array(m,c,n+1),c+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(m,c,t),u.segmentFlags.fill(1),c+=u.segmentFlags.byteLength),u}function G(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,h],m,c,l,f,y]=t.a;let p=4;c||(p|=1),m||(p|=2);const v=(0,g.SW)(e,t),[x,d]=(0,g.Uk)(v,.5);return s[o++]=p,s[o++]=f,s[o++]=y,s[o++]=l,s[o++]=u,s[o++]=h,s[o++]=v.u2-v.u1,s[o++]=v.u1,s[o++]=x,s[o++]=d,o}function w(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,l.io)(e,t);return B(a,4,...(0,u.mq)(a,.5),s,o)}function q(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,B((0,h.pM)(e,t),0,...t.c[1],s,o)}function B(e,t,n,r,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:h,radius:m}=e;return u>h||(t|=1),Math.abs(h-u)<=Math.PI||(t|=2),s[i++]=t,s[i++]=m,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=h-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function V(e,{b:[t,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},h,m){return o[h]=2,a[h]=m,u[m++]=n,u[m++]=r,u[m++]=s,u[m++]=i,m}const Y=1.61803,O=-1},77038(e,t,n){n.d(t,{execute:()=>r.e});var r=n(16346);n(86211),n(78125)},78125(e,t,n){n.r(t),n.d(t,{fromExtent:()=>p,fromGeometry:()=>y,fromMultipoint:()=>v,fromPoint:()=>x,fromPolygon:()=>d,fromPolyline:()=>_,fromPolylineUsingImportOperator:()=>P,fromSpatialReference:()=>M,getSpatialReference:()=>f,toExtent:()=>E,toGeometry:()=>N,toMultipoint:()=>D,toPoint:()=>C,toPolygon:()=>I,toPolyline:()=>S});var r=n(83661),s=n(55537),i=n(95213),o=n(88885),a=n(5443),u=n(48526),h=n(86738),m=n(39829),c=n(82799),l=(n(90293),n(83299));const g="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function y(e){switch(e.type){case"point":return x(e);case"multipoint":return v(e);case"polyline":return _(e);case"polygon":return d(e);case"extent":return p(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function p(e){if(!e.getCacheValue(g)){const t=new i.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(g,t)}return e.getCacheValue(g)}function v(e){if(!e.getCacheValue(g)){const t=new o.M,n=new i.P,r=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,i=r.length;e<i;e++){const i=r[e];n.setXYCoords(i[0],i[1]),a&&n.setZ(i[2]??0),s&&n.setM(i[u]??NaN),t.add(n)}e.setCacheValue(g,t)}return e.getCacheValue(g)}function x(e){if(!e.getCacheValue(g)){const t=new i.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(g,t)}return e.getCacheValue(g)}function d(e){if(!e.getCacheValue(g)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,i=(0,l.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(g,i)}return e.getCacheValue(g)}function _(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,i=(0,l.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(g,i)}return e.getCacheValue(g)}function P(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,i=(0,l.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(g,i)}return e.getCacheValue(g)}function M(e){return e.cache?(e.cache[g]??=(0,l.fromSpatialReference)(e),e.cache[g]):(0,l.fromSpatialReference)(e)}function N(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return C(e,t);case s.G.enumEnvelope:return E(e,t);case s.G.enumMultiPoint:return D(e,t);case s.G.enumPolyline:return S(e,t);case s.G.enumPolygon:return I(e,t)}return null}function E(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(g,e),n}function D(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],a=new i.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const h=new u.A({hasM:r,hasZ:s,points:o,spatialReference:t});return h.setCacheValue(g,e),h}function C(e,t){if(e instanceof r.P)return new h.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new h.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(g,e),n}function I(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({...(0,l.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(g,e),n}function S(e,t){if(e.isEmpty())return null;const n=c.A.fromJSON({...(0,l.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(g,e),n}},92722(e,t,n){n.d(t,{A:()=>s});var r=n(69397);class s{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 s(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const i=n-e,o=r-t;return new s([5],[e,t,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,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 s=this.coords[r*t],i=this.coords[r*t+1];for(let o=1;o<n;o+=1){const n=r*(t+o),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-s)*(u+i),s=a,i=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 s=0;s<r;s++){const r=n*(t+s);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:s}=this;for(const e of n){for(let n=1;n<e;n++){const e=s*(r+n);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}r+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return e?(e.set(i),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(i),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 s(this.lengths,n,!1,!1)}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1550,1666,1948,1965,7992,8125],{30921(e,t,n){n.d(t,{D:()=>_,m:()=>m,s:()=>v,w:()=>p});var r=n(5482),s=n(55537),i=n(88885),o=n(39117),a=n(83661),u=n(79187),h=n(95213);function m(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function c(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function l(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function g(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function f(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function y(e,t){const n=m();g(n,e),g(e,t),g(t,n)}function p(e,t,n,r,i,a){if(e.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,o.I)(e,t.getEndXY(),0))return l(i,t.getEndXY(),-1,Number.NaN),l(a,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,o.I)(t,e.getEndXY(),0))return l(i,e.getEndXY(),-1,Number.NaN),l(a,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function v(e){const t=e.getPathCount(),n=(0,a.d)(e.getSegmentCount(),0);let r=0;for(let s=0;s<t;++s){const t=r+e.getSegmentCountPath(s);for(let i=r,o=e.getPathStart(s);i<t;++i,++o)n[i]=o;r=t}return(0,i.s)(e.getPointCount(),n),n}function x(e,t){return!!Number.isNaN(t)||e<=t}function d(e){const t=new i.P;return t.addEnvelope(e,!1),t}class _{m_progressTracker;m_env2DgeometryA=null;m_env2DgeometryB=null;m_maxSqrDistance;m_maxDistance;m_progressCounter=0;m_bIsNearCalc;constructor(e,t){if(this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==h.P.type||t.getGeometryType()!==h.P.type)&&(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!x(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=c(new a.P,(0,a.j)(),Number.NaN),i=c(new a.P,(0,a.j)(),Number.NaN),o=this._ExecuteBruteForce(e,t,s,i);return x(o,this.m_maxDistance)?(null!==n&&g(n,s),null!==r&&g(r,i),o):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==h.P.type&&e.getGeometryType()!==h.E.type||t.getGeometryType()!==h.P.type&&t.getGeometryType()!==h.E.type||(n=!1),n){if(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=c(new a.P,(0,a.j)(),Number.NaN),s=c(new a.P,(0,a.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),i=t.getXY();return l(n,s,0,0),l(r,i,0,0),Math.sqrt(a.P.sqrDistance(s,i))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let i=this.m_maxSqrDistance,o=i,u=!1;const h=t.getPointCount(),m=new a.P;for(let e=0;e<h;++e)if(t.queryXY(e,m),o=a.P.sqrDistance(s,m),this.m_bIsNearCalc){if(o<=i)return 0}else if(!(o>i)&&(!u&&o===i||o<i)&&(i=o,l(n,s,0,0),l(r,m,e,0),u=!0,0===i))return 0;return u?Math.sqrt(i):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const i=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),h=e.getXY();if(!i&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,o.I)(t,h,0))return l(n,h,0,0),l(r,h,-1,Number.NaN),0;t.getImpl().getAccelerators();let m=this.m_maxSqrDistance,c=m,g=-1;const f=new u.Envelope2D,y=t.querySegmentIterator();let p=!1;for(;y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();e.queryEnvelope(f);const t=f.sqrDistance(h);if(t>m)continue;if(!this.m_bIsNearCalc&&p&&t===m)continue;g=e.getClosestCoordinate(h,!1);const s=e.getCoord2D(g);if(c=a.P.sqrDistance(h,s),this.m_bIsNearCalc){if(c<=m)return 0}else if(!(c>m)&&(!p||c<m)&&(m=c,l(n,h,0,0),l(r,s,y.getStartPointIndex(),g),p=!0,0===m))return 0}return p?Math.sqrt(m):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();l(n,s,0,0),l(r,s,-1,Number.NaN);const i=t.asEnvelope2D();return i.contains(s)?0:Math.sqrt(i.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,d(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,s,i,o){const u={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===i&&1===o){const r=Math.trunc((0,a.s)(Math.sqrt(e.getPointCount())+1,1,(0,a.i)())),i=Math.trunc((0,a.s)(Math.sqrt(t.getPointCount())+1,1,(0,a.i)()));if((r>=4||i>=4)&&this.distanceMultipointMultipoint(e,t,n,s,r,i)<=this.m_maxSqrDistance)return 0}let h=this.m_maxSqrDistance;const m=[e],c=[t],g=this.swapGeometriesIfBGtA(m,c);g&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o=(0,a.c)(i,i=o),y(n,s)),(0,r.mS)(u,(0,a.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!g),!1);const f=m[0].getImpl(),p=c[0].getImpl(),v=f.getPointCount(),x=p.getPointCount(),d=x>1;let _=!1;const P=new a.P,M=new a.P;for(let e=0;e<v;e+=i){if(f.queryXY(e,P),d){const e=this.m_env2DgeometryB.sqrDistance(P);if(this.m_bIsNearCalc){if(e>h)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(P)<=h)return 0}else if(e>=h)continue}for(let t=0;t<x;t+=o){p.queryXY(t,M);const r=a.P.sqrDistance(P,M);if(this.m_bIsNearCalc){if(r<=h)return 0}else if(!(r>h||_&&r===h)&&(!_||r<h)&&(l(n,P,e,0),l(s,M,t,0),_=!0,h=r,0===h))return _?Math.sqrt(h):Number.POSITIVE_INFINITY}}return _?Math.sqrt(h):Number.POSITIVE_INFINITY}catch(e){u.error=e,u.hasError=!0}finally{(0,r.hk)(u)}}distanceMultipointMultipath(e,t,n,r){let i=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const h=t.querySegmentIterator();h.stripAttributes();const m=new u.Envelope2D,c=new a.P;let g=this.m_maxSqrDistance;const f=e.getImpl(),y=f.getPointCount(),p=y>1;let v=!1;for(;h.nextPath();)for(;h.hasNextSegment();){const e=h.nextSegment();if(e.queryLooseEnvelope(m),p){const e=m.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g||v&&e===g)continue}for(let s=0;s<y;s++){if(f.queryXY(s,c),i&&0!==(0,o.I)(t,c,0))return l(n,c,-1,Number.NaN),l(r,c,s,0),0;{const e=m.sqrDistance(c);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g)continue}const a=e.getClosestCoordinate(c,!1),u=e.getCoord2D(a);c.subThis(u);const y=c.sqrLength();if(this.m_bIsNearCalc){if(y<=g)return 0}else if(!(y>g)&&(!v||y<g)&&(g=y,l(n,f.getXY(s),s,0),l(r,u,h.getStartPointIndex(),a),v=!0,0===g))return 0}i=!1}return v?Math.sqrt(g):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,d(e),r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(d(e),t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=e.asEnvelope2D(),i=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(i,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,d(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,s){const o={stack:[],error:void 0,hasError:!1};try{const h=[e],c=[t],l=this.swapGeometriesIfAGtB(h,c);l&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),y(n,s)),(0,r.mS)(o,(0,a.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!l),!1);const x=h[0],d=c[0],_=x.querySegmentIterator();_.stripAttributes();const P=d.querySegmentIterator();if(P.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,a.s)(Math.sqrt(x.getPointCount())+1,1,(0,a.i)())),t=Math.trunc((0,a.s)(Math.sqrt(x.getPointCount())+1,1,(0,a.i)()));if(this.distanceMultipointMultipoint(x,d,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=m(),t=m();if(p(x,d,_,P,e,t))return g(n,e),g(s,t),0}const M=v(x),N=[],E=new i.S,D=new u.Envelope2D,C=new u.Envelope2D,I=new u.Envelope2D;let S=this.m_maxSqrDistance,b=!0,A=!1;for(let e=0,t=M.length;e<t;++e){x.querySegment(M[e],E,!0);const t=E.get();if(t.queryEnvelope(D),!(D.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>S)){if(this.m_bIsNearCalc&&D.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=S)return 0;for(;P.nextPath();){if(this.progress_(),b)d.queryPathEnvelope(P.getPathIndex(),I),N[P.getPathIndex()]=I.clone();else if(D.sqrDistanceEnvelope(N[P.getPathIndex()],null,null)>S)continue;for(;P.hasNextSegment();){const r=P.nextSegment();if(r.queryEnvelope(C),D.sqrDistanceEnvelope(C,null,null)<=S){const i=!D.isIntersecting(C),o=[0],a=[0];let u=t.distance(r,i,o,a);if(u*=u,this.m_bIsNearCalc&&u<=this.m_maxSqrDistance)return 0;if(u<S||u===S&&M[e]<n.index){if(A=!0,f(n,t,M[e],o[0]),f(s,r,P.getStartPointIndex(),a[0]),0===u)return 0;S=u}}}}P.resetToFirstPath(),b=!1}}return A?Math.sqrt(S):Number.POSITIVE_INFINITY}catch(e){o.error=e,o.hasError=!0}finally{(0,r.hk)(o)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,a.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},61691(e,t,n){n.d(t,{G:()=>r});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,n){n.d(t,{S:()=>s});var r=n(61691);class s extends r.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},16346(e,t,n){n.d(t,{e:()=>u});var r=n(55537),s=n(30921),i=n(86211),o=n(78125);const a=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,i,o,a){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const u=e,h=t;Number.isNaN(a)&&(a=Number.POSITIVE_INFINITY);const m=new s.D(a,n).calculate(u,h,i,o);return Number.isFinite(m)?m:Number.NaN}};function u(e,t,n={}){const{unit:r}=n;let s=a.execute((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),null);if(s&&r){const t=(0,o.getSpatialReference)(e);s=(0,i.PQ)(s,t,r)}return s}const h=a.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:u,supportsCurves:h},Symbol.toStringTag,{value:"Module"}));n.d(t,["d",0,m])},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,lM:()=>s});var r=n(34275);function s(e){if(!e)return 0;let t=h;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function i(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=m;for(let r=0;r<t;r++)n+=o(e[r]);return n}(e);let t=h;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?i(e):h;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+c:Array.isArray(t)?u(t,16):0:0),0)}function u(e,t){return m+e.length*t}const h=32,m=16,c=145},87992(e,t,n){n.d(t,{JR:()=>E,ME:()=>P,MY:()=>D,NO:()=>_,Nh:()=>N,V2:()=>A,_s:()=>G,e6:()=>q,gh:()=>M,tr:()=>V,uX:()=>y});var r=n(5482),s=n(16930),i=n(19419),o=n(60408),a=n(21325),u=n(513),h=n(50954),m=n(79567),c=n(52006),l=n(49663),g=n(46068),f=n(92722);class y{constructor({type:e,spatialReference:t,vertexCount:n,vertexXY:r,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:h,segmentIndices:m,segmentParams:c,segmentCountArc:l,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=n,this.vertexXY=r,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=h,this.segmentIndices=m,this.segmentParams=c,this.segmentCountArc=l,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:n}=this;return e&&e-t-n}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:n,hasZ:r,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=A(e,t,n,r,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:h,vertexM:m}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(h.subarray(0,t),0),a.vertexM?.set(m.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,n+1)),a.partOffsets.set(e.subarray(0,n+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:n,segmentParams:r,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(n.subarray(0,t),0),a.segmentParams.set(r.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const n=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,n)=>Math.abs(e-n)>t||isNaN(e)!==isNaN(n);for(let t=0;t<this.vertexCount;++t)if(n(this.vertexXY[2*t],e.vertexXY[2*t])||n(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(n(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(n(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(e){this.geometry=e,this.value=new v(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class v{constructor(e){this.geometry=e,this.index=-1,this._readVertex=S(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new d(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class d{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=S(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let n=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[n++],r=t[n++],s=t[n++],i=t[n++];return{b:[this.end,[e,r],[s,i]]}}const r=t[n++],s=t[n++],i=t[n++],o=t[n++],a=t[n++],u=t[n++];n++,n++;const h=t[n++],m=t[n++];if(!Boolean(4&r)&&1===i)return{c:[this.end,[h,m]]};const c=2&r?0:1,l=1&r?0:1;return{a:[this.end,[a,u],c,l,o,s,i]}}}function _(e,t){const n={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,r.mS)(n,new C(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t;const{vertexCount:n,vertexXY:s,vertexZ:o,vertexM:a}=e,u=I(e);if(e.hasCurves()){const n={stack:[],error:void 0,hasError:!1};try{(0,r.mS)(n,new C(e,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:n}of t.segments)(0,m.e)(s,e,n),e=(0,c.yP)(n)}const[o,a,h,l]=s;t={xmin:o,ymin:a,xmax:h,ymax:l,spatialReference:u}}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}else{let e,r,i,o;e=r=1/0,i=o=-1/0;for(let t=0;t<n;++t){const n=s[2*t],a=s[2*t+1];e=Math.min(e,n),i=Math.max(i,n),r=Math.min(r,a),o=Math.max(o,a)}t={xmin:e,ymin:r,xmax:i,ymax:o,spatialReference:u}}if(o){let e=1/0,n=-1/0;for(const t of o)e=Math.min(e,t),n=Math.max(n,t);t.zmin=e,t.zmax=n}if(a){let e=1/0,n=-1/0;for(const t of a)e=Math.min(e,t),n=Math.max(n,t);t.mmin=e,t.mmax=n}return t}(e)),t}catch(e){n.error=e,n.hasError=!0}finally{(0,r.hk)(n)}}function P(e){let t,n,r;if((0,o.fT)(e)){r="point";const{x:s,y:i,z:o,m:a}=e,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),n=[[u]],t=1}else(0,o.U9)(e)?(r="multipoint",n=[e.points],t=e.points.length):(0,o.Rg)(e)?(r="polyline",n=e.curvePaths??e.paths,t=n.reduce((e,t)=>e+t.length,0)):(r="polygon",n=e.curveRings??e.rings,t=n.reduce((e,t)=>(0===t.length||(e+=t.length,b(t[0],(0,c.yP)(t.at(-1)))&&--e),e),0));const s=A(r,t,r.includes("point")?0:n.length,(0,o.Pv)(e),(0,o.W0)(e),(0,c.Ed)(e)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:h,vertexM:m}=s;function l(e){u[2*f]=e[0],u[2*f+1]=e[1],i&&(h[f]=e[2]),a&&(m[f]=e[g]),++f}s.spatialReference=e.spatialReference??void 0;const g=s.hasZ?3:2;let f=0;if(!s.isMultipart()){if(!i&&!a){for(const[e,t]of n[0])u[2*f]=e,u[2*f+1]=t,++f;return s}for(const e of n[0])l(e);return s}const y="polygon"===r,{partOffsets:p}=s;let v=0;if(!(0,c.Ed)(e)){for(const e of n){if(p[v++]=f,0===e.length)continue;let t=e.length;if(y&&b(e[0],e.at(-1))&&--t,i||a)for(let n=0;n<t;++n)l(e[n]);else for(let n=0;n<t;++n){const[t,r]=e[n];u[2*f]=t,u[2*f+1]=r,++f}}return p[v]=f,s}function x(e){const t=d+e;if(t<=(s.segmentParams?.length??0))return;let n=t*Y;n=20*Math.ceil(n/20);const r=s.segmentParams;s.segmentParams=new Float64Array(n),null!=r&&s.segmentParams.set(r)}let d=0;for(const e of n){if(s.partOffsets[v++]=f,0===e.length)continue;const t=e[0];let n=t;for(let t=1;t<e.length;++t){const r=e[t];l(n);const i=f-1;(0,c.wY)(r)?(x(10),++s.segmentCountArc,d=G(n,r,s,i,d),n=r.a[0]):(0,c.DA)(r)?(x(10),++s.segmentCountArc,d=w(n,r,s,i,d),n=r.a[0]):(0,c.aO)(r)?(x(10),++s.segmentCountArc,d=q(n,r,s,i,d),n=r.c[0]):(0,c.n1)(r)?(x(4),++s.segmentCountBezier,d=V(0,r,s,i,d),n=r.b[0]):n=r}y&&b(t,n)||l(n)}return s.partOffsets[v]=f,s}function M(e){const t=S(e),{vertexCount:n,partCount:r,hasZ:s,hasM:i}=e,o=I(e);if("point"===e.type){const[t,n]=e.vertexXY,r=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:n,z:r,m:s,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<n;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===e.type;if(!e.hasCurves()){const n=new Array;for(let s=0;s<r;++s){const r=e.partOffsets[s+1],i=new Array;for(;a<r;)i.push(t(a++));u&&i.length>0&&i.push(i[0]),n.push(i)}return u?{rings:n,hasZ:s,hasM:i,spatialReference:o}:{paths:n,hasZ:s,hasM:i,spatialReference:o}}const h=new Array;for(const{segments:t,startVertex:n}of e.parts){const e=[n];for(const{curve:n}of t)e.push(n);h.push(e)}return u?{rings:[],curveRings:h,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:h,hasZ:s,hasM:i,spatialReference:o}}function N(e,{lengths:t,coords:n,hasZ:r,hasM:s},i){const o=e.includes("point")?0:t.length,a="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);r??=!1,s??=!1;const h=A(e,u,o,r,s,!1,0,0);if(h.spatialReference=i??void 0,!h.isMultipart()){for(let e=0,t=0;e<u;++e)h.vertexXY[2*e]=n[t++],h.vertexXY[2*e+1]=n[t++],r&&(h.vertexZ[e]=n[t++]),s&&(h.vertexM[e]=n[t++]);return h}const m=2+Number(r)+Number(s);let c=0,l=0;h.partOffsets[0]=0;for(const e of t){const t=h.partOffsets[l],i=t+e-Number(a);h.partOffsets[++l]=i;for(let e=t;e<i;++e)h.vertexXY[2*e]=n[c++],h.vertexXY[2*e+1]=n[c++],r&&(h.vertexZ[e]=n[c++]),s&&(h.vertexM[e]=n[c++]);a&&(c+=m)}return h}function E({type:e,vertexCount:t,vertexXY:n,vertexZ:r,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const h=new f.A([],[],a,u);i=Math.max(i,1);const m="polygon"===e;let c=0;for(let e=0;e<i;++e){const i=o?.[e+1]??t,l=h.coords.length;for(let e=c;e<i;++e)h.coords.push(n[2*e],n[2*e+1]),a&&h.coords.push(r[e]),u&&h.coords.push(s[e]);if(m){const e=c;h.coords.push(n[2*e],n[2*e+1]),a&&h.coords.push(r[e]),u&&h.coords.push(s[e])}h.lengths.push((h.coords.length-l)/h.stride),c=i}return"point"===e&&(h.lengths.length=0),h}function D(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,n=e.isCustomWkid()?0:e.getOldID();if(n<=0)return{wkt:t};let r=e.getLatestID();(r<=0||r===n)&&(r=void 0);const s=e.getVCS();if(null==s)return{wkid:n,latestWkid:r,wkt:t};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:n,wkt:t,latestWkid:r,vcsWkid:i,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new y({...e.toFlatGeometry(),spatialReference:t})}class C{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const n of t)e[n]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function I({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function S({vertexXY:e,vertexZ:t,vertexM:n}){return t?n?r=>[e[2*r],e[2*r+1],t[r],n[r]]:n=>[e[2*n],e[2*n+1],t[n]]:n?t=>[e[2*t],e[2*t+1],n[t]]:t=>[e[2*t],e[2*t+1]]}function b(e,t){return e.every((e,n)=>e===t[n])}function A(e,t,n,r,s,i,o,a){o??=0,a??=0;const u=new y({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:n,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let h=2*Float64Array.BYTES_PER_ELEMENT*t;r&&(h+=Float64Array.BYTES_PER_ELEMENT*t),s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(h+=(n+1)*Int32Array.BYTES_PER_ELEMENT,h+=(n+1)*Int8Array.BYTES_PER_ELEMENT),i&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const m=new ArrayBuffer(h);let c=0;return u.vertexXY=new Float64Array(m,c,2*t),c+=u.vertexXY.byteLength,r&&(u.vertexZ=new Float64Array(m,c,t),c+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(m,c,t),c+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(m,c,u.segmentParamCount),c+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(m,c,t),u.segmentIndices.fill(O),c+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(m,c,n+1),c+=u.partOffsets.byteLength,u.partFlags=new Int8Array(m,c,n+1),c+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,n).fill(1)),i&&(u.segmentFlags=new Int8Array(m,c,t),u.segmentFlags.fill(1),c+=u.segmentFlags.byteLength),u}function G(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const[a,[u,h],m,c,l,f,y]=t.a;let p=4;c||(p|=1),m||(p|=2);const v=(0,g.SW)(e,t),[x,d]=(0,g.Uk)(v,.5);return s[o++]=p,s[o++]=f,s[o++]=y,s[o++]=l,s[o++]=u,s[o++]=h,s[o++]=v.u2-v.u1,s[o++]=v.u1,s[o++]=x,s[o++]=d,o}function w(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){n[i]=4,r[i]=o;const a=(0,l.io)(e,t);return B(a,4,...(0,u.mq)(a,.5),s,o)}function q(e,t,{segmentFlags:n,segmentIndices:r,segmentParams:s},i,o){return n[i]=4,r[i]=o,B((0,h.pM)(e,t),0,...t.c[1],s,o)}function B(e,t,n,r,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:h,radius:m}=e;return u>h||(t|=1),Math.abs(h-u)<=Math.PI||(t|=2),s[i++]=t,s[i++]=m,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=h-u,s[i++]=u,s[i++]=n,s[i++]=r,i}function V(e,{b:[t,[n,r],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},h,m){return o[h]=2,a[h]=m,u[m++]=n,u[m++]=r,u[m++]=s,u[m++]=i,m}const Y=1.61803,O=-1},77038(e,t,n){n.d(t,{execute:()=>r.e});var r=n(16346);n(86211),n(78125)},78125(e,t,n){n.r(t),n.d(t,{fromExtent:()=>p,fromGeometry:()=>y,fromMultipoint:()=>v,fromPoint:()=>x,fromPolygon:()=>d,fromPolyline:()=>_,fromPolylineUsingImportOperator:()=>P,fromSpatialReference:()=>M,getSpatialReference:()=>f,toExtent:()=>E,toGeometry:()=>N,toMultipoint:()=>D,toPoint:()=>C,toPolygon:()=>I,toPolyline:()=>S});var r=n(83661),s=n(55537),i=n(95213),o=n(88885),a=n(5443),u=n(48526),h=n(86738),m=n(39829),c=n(82799),l=(n(90293),n(83299));const g="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function y(e){switch(e.type){case"point":return x(e);case"multipoint":return v(e);case"polyline":return _(e);case"polygon":return d(e);case"extent":return p(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function p(e){if(!e.getCacheValue(g)){const t=new i.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(g,t)}return e.getCacheValue(g)}function v(e){if(!e.getCacheValue(g)){const t=new o.M,n=new i.P,r=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,i=r.length;e<i;e++){const i=r[e];n.setXYCoords(i[0],i[1]),a&&n.setZ(i[2]??0),s&&n.setM(i[u]??NaN),t.add(n)}e.setCacheValue(g,t)}return e.getCacheValue(g)}function x(e){if(!e.getCacheValue(g)){const t=new i.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(g,t)}return e.getCacheValue(g)}function d(e){if(!e.getCacheValue(g)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,i=(0,l.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(g,i)}return e.getCacheValue(g)}function _(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,i=(0,l.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(g,i)}return e.getCacheValue(g)}function P(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,i=(0,l.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(g,i)}return e.getCacheValue(g)}function M(e){return e.cache?(e.cache[g]??=(0,l.fromSpatialReference)(e),e.cache[g]):(0,l.fromSpatialReference)(e)}function N(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return C(e,t);case s.G.enumEnvelope:return E(e,t);case s.G.enumMultiPoint:return D(e,t);case s.G.enumPolyline:return S(e,t);case s.G.enumPolygon:return I(e,t)}return null}function E(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(g,e),n}function D(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],a=new i.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const h=new u.A({hasM:r,hasZ:s,points:o,spatialReference:t});return h.setCacheValue(g,e),h}function C(e,t){if(e instanceof r.P)return new h.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new h.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(g,e),n}function I(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({...(0,l.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(g,e),n}function S(e,t){if(e.isEmpty())return null;const n=c.A.fromJSON({...(0,l.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(g,e),n}},92722(e,t,n){n.d(t,{A:()=>s});var r=n(69397);class s{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 s(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const i=n-e,o=r-t;return new s([5],[e,t,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,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 s=this.coords[r*t],i=this.coords[r*t+1];for(let o=1;o<n;o+=1){const n=r*(t+o),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-s)*(u+i),s=a,i=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 s=0;s<r;s++){const r=n*(t+s);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:s}=this;for(const e of n){for(let n=1;n<e;n++){const e=s*(r+n);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}r+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return e?(e.set(i),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(i),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 s(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,6708,7992],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(t,e,r){r.d(e,{Qf:()=>a,Qh:()=>i,lM:()=>n});var s=r(34275);function n(t){if(!t)return 0;let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=c;for(let s=0;s<e;s++)r+=o(t[s]);return r}(t);let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,16):0:0),0)}function h(t,e){return c+t.length*e}const u=32,c=16,l=145},87992(t,e,r){r.d(e,{JR:()=>_,ME:()=>C,MY:()=>P,NO:()=>M,Nh:()=>O,V2:()=>b,_s:()=>R,e6:()=>Y,gh:()=>E,tr:()=>I,uX:()=>x});var s=r(5482),n=r(16930),i=r(19419),o=r(60408),a=r(21325),h=r(513),u=r(50954),c=r(79567),l=r(52006),f=r(49663),g=r(46068),m=r(92722);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:o,partOffsets:a,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?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:o}=this,a=b(t,e,r,s,n,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(a.vertexXY.set(h.subarray(0,2*e),0),a.vertexZ?.set(u.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,r+1)),a.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(r.subarray(0,e),0),a.segmentParams.set(s.subarray(0,n),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,a.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 d(this):[][Symbol.iterator]()}}class d{constructor(t){this.geometry=t,this.value=new p(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class p{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new y(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 y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],o=e[r++],a=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[a,h],l,f,o,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 A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:o,vertexM:a}=t,h=S(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new A(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,c.e)(n,t,r),t=(0,l.yP)(r)}const[o,a,u,f]=n;e={xmin:o,ymin:a,xmax:u,ymax:f,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,o;t=s=1/0,i=o=-1/0;for(let e=0;e<r;++e){const r=n[2*e],a=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,a),o=Math.max(o,a)}e={xmin:t,ymin:s,xmax:i,ymax:o,spatialReference:h}}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.zmin=t,e.zmax=r}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.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,o.fT)(t)){s="point";const{x:n,y:i,z:o,m:a}=t,h=[n,i];null!=o&&h.push(o),null!=a&&h.push(a),r=[[h]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,Z(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const n=b(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:c}=n;function f(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),a&&(c[m]=t[g]),++m}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of r[0])f(t);return n}const x="polygon"===s,{partOffsets:d}=n;let p=0;if(!(0,l.Ed)(t)){for(const t of r){if(d[p++]=m,0===t.length)continue;let e=t.length;if(x&&Z(t[0],t.at(-1))&&--e,i||a)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*m]=e,h[2*m+1]=s,++m}}return d[p]=m,n}function v(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*X;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(const t of r){if(n.partOffsets[p++]=m,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=m-1;(0,l.wY)(s)?(v(10),++n.segmentCountArc,y=R(r,s,n,i,y),r=s.a[0]):(0,l.DA)(s)?(v(10),++n.segmentCountArc,y=F(r,s,n,i,y),r=s.a[0]):(0,l.aO)(s)?(v(10),++n.segmentCountArc,y=Y(r,s,n,i,y),r=s.c[0]):(0,l.n1)(s)?(v(4),++n.segmentCountBezier,y=I(0,s,n,i,y),r=s.b[0]):r=s}x&&Z(e,r)||f(r)}return n.partOffsets[p]=m,n}function E(t){const e=w(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,o=S(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<r;)t.push(e(a++));return{points:t,spatialReference:o,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(;a<s;)i.push(e(a++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:o}:{paths:r,hasZ:n,hasM:i,spatialReference:o}}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:o}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:o}}function O(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const o=t.includes("point")?0:e.length,a="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);s??=!1,n??=!1;const u=b(t,h,o,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 c=2+Number(s)+Number(n);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(a);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],s&&(u.vertexZ[t]=r[l++]),n&&(u.vertexM[t]=r[l++]);a&&(l+=c)}return u}function _({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:o,hasZ:a,hasM:h}){const u=new m.A([],[],a,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function P(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 o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function S({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function Z(t,e){return t.every((t,r)=>t===e[r])}function b(t,e,r,s,n,i,o,a){o??=0,a??=0;const h=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});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 c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(k),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function R(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){r[i]=4,s[i]=o;const[a,[h,u],c,l,f,m,x]=e.a;let d=4;l||(d|=1),c||(d|=2);const p=(0,g.SW)(t,e),[v,y]=(0,g.Uk)(p,.5);return n[o++]=d,n[o++]=m,n[o++]=x,n[o++]=f,n[o++]=h,n[o++]=u,n[o++]=p.u2-p.u1,n[o++]=p.u1,n[o++]=v,n[o++]=y,o}function F(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){r[i]=4,s[i]=o;const a=(0,f.io)(t,e);return V(a,4,...(0,h.mq)(a,.5),n,o)}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){return r[i]=4,s[i]=o,V((0,u.pM)(t,e),0,...e.c[1],n,o)}function V(t,e,r,s,n,i){const{cx:o,cy:a,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=o,n[i++]=a,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function I(t,{b:[e,[r,s],[n,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:h},u,c){return o[u]=2,a[u]=c,h[c++]=r,h[c++]=s,h[c++]=n,h[c++]=i,c}const X=1.61803,k=-1},28298(t,e,r){r.d(e,{fz:()=>h,g7:()=>o,zo:()=>a});var s=r(76061),n=(r(55537),r(83661),r(88885),r(39117));r(95213);const i=new n.W;function o(t,e,r){return i.execute(t,e,r,null)}function a(t,e){return i.executeMany(new s.S(t),e,null).next()}function h(){return i.supportsCurves()}},56339(t,e,r){r.d(e,{executeMany:()=>i});var s=r(28298),n=r(83299);function i(t){const[e,r]=(0,n.fromGeometries)(t);return(0,n.toGeometry)((0,s.zo)(e,r),r)}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,o=s-e;return new n([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,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 o=1;o<r;o+=1){const r=s*(e+o),a=this.coords[r],h=this.coords[r+1];t+=-.5*(a-n)*(h+i),n=a,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)}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,6708,7992],{61691(t,e,r){r.d(e,{G:()=>s});class s{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}},76061(t,e,r){r.d(e,{S:()=>n});var s=r(61691);class n extends s.G{m_aGeoms;m_iGeom=-1;constructor(t){super(),this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},69397(t,e,r){r.d(e,{Qf:()=>a,Qh:()=>i,lM:()=>n});var s=r(34275);function n(t){if(!t)return 0;let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let r=c;for(let s=0;s<e;s++)r+=o(t[s]);return r}(t);let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,16):0:0),0)}function h(t,e){return c+t.length*e}const u=32,c=16,l=145},87992(t,e,r){r.d(e,{JR:()=>O,ME:()=>C,MY:()=>P,NO:()=>M,Nh:()=>_,V2:()=>b,_s:()=>R,e6:()=>Y,gh:()=>E,tr:()=>I,uX:()=>x});var s=r(5482),n=r(16930),i=r(19419),o=r(60408),a=r(21325),h=r(513),u=r(50954),c=r(79567),l=r(52006),f=r(49663),g=r(46068),m=r(92722);class x{constructor({type:t,spatialReference:e,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:i,partCount:o,partOffsets:a,partFlags:h,segmentFlags:u,segmentIndices:c,segmentParams:l,segmentCountArc:f,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=t,this.spatialReference=e,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=h,this.segmentFlags=u,this.segmentIndices=c,this.segmentParams=l,this.segmentCountArc=f,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:t,segmentCountArc:e,segmentCountBezier:r}=this;return t&&t-e-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function t(t){return t?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:o}=this,a=b(t,e,r,s,n,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:h,vertexZ:u,vertexM:c}=this;if(a.vertexXY.set(h.subarray(0,2*e),0),a.vertexZ?.set(u.subarray(0,e),0),a.vertexM?.set(c.subarray(0,e),0),this.isMultipart()){const{partOffsets:t,partFlags:e}=this;a.partFlags.set(e.subarray(0,r+1)),a.partOffsets.set(t.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:t,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;a.segmentFlags.set(t.subarray(0,e),0),a.segmentIndices.set(r.subarray(0,e),0),a.segmentParams.set(s.subarray(0,n),0)}return a}equals(t){return this.equalsWithinTolerance(t,0)}equalsWithinTolerance(t,e){if(null==t)return!1;if(this===t)return!0;if(!(0,a.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 d(this):[][Symbol.iterator]()}}class d{constructor(t){this.geometry=t,this.value=new p(t)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class p{constructor(t){this.geometry=t,this.index=-1,this._readVertex=w(t),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const t=this.geometry.partOffsets;return t[this.index+1]-t[this.index]}}class v{constructor(t){this._part=t,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===t.geometry.type,this.value=new y(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 y{constructor(t){this.geometry=t,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(t)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const t=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===t)return this.end;const e=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===t){const t=e[r++],s=e[r++],n=e[r++],i=e[r++];return{b:[this.end,[t,s],[n,i]]}}const s=e[r++],n=e[r++],i=e[r++],o=e[r++],a=e[r++],h=e[r++];r++,r++;const u=e[r++],c=e[r++];if(!Boolean(4&s)&&1===i)return{c:[this.end,[u,c]]};const l=2&s?0:1,f=1&s?0:1;return{a:[this.end,[a,h],l,f,o,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 A(t,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(e,function(t){let e;const{vertexCount:r,vertexXY:n,vertexZ:o,vertexM:a}=t,h=S(t);if(t.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new A(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,c.e)(n,t,r),t=(0,l.yP)(r)}const[o,a,u,f]=n;e={xmin:o,ymin:a,xmax:u,ymax:f,spatialReference:h}}catch(t){r.error=t,r.hasError=!0}finally{(0,s.hk)(r)}}else{let t,s,i,o;t=s=1/0,i=o=-1/0;for(let e=0;e<r;++e){const r=n[2*e],a=n[2*e+1];t=Math.min(t,r),i=Math.max(i,r),s=Math.min(s,a),o=Math.max(o,a)}e={xmin:t,ymin:s,xmax:i,ymax:o,spatialReference:h}}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.zmin=t,e.zmax=r}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.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,o.fT)(t)){s="point";const{x:n,y:i,z:o,m:a}=t,h=[n,i];null!=o&&h.push(o),null!=a&&h.push(a),r=[[h]],e=1}else(0,o.U9)(t)?(s="multipoint",r=[t.points],e=t.points.length):(0,o.Rg)(t)?(s="polyline",r=t.curvePaths??t.paths,e=r.reduce((t,e)=>t+e.length,0)):(s="polygon",r=t.curveRings??t.rings,e=r.reduce((t,e)=>(0===e.length||(t+=e.length,Z(e[0],(0,l.yP)(e.at(-1)))&&--t),t),0));const n=b(s,e,s.includes("point")?0:r.length,(0,o.Pv)(t),(0,o.W0)(t),(0,l.Ed)(t)),{hasZ:i,hasM:a,vertexXY:h,vertexZ:u,vertexM:c}=n;function f(t){h[2*m]=t[0],h[2*m+1]=t[1],i&&(u[m]=t[2]),a&&(c[m]=t[g]),++m}n.spatialReference=t.spatialReference??void 0;const g=n.hasZ?3:2;let m=0;if(!n.isMultipart()){if(!i&&!a){for(const[t,e]of r[0])h[2*m]=t,h[2*m+1]=e,++m;return n}for(const t of r[0])f(t);return n}const x="polygon"===s,{partOffsets:d}=n;let p=0;if(!(0,l.Ed)(t)){for(const t of r){if(d[p++]=m,0===t.length)continue;let e=t.length;if(x&&Z(t[0],t.at(-1))&&--e,i||a)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*m]=e,h[2*m+1]=s,++m}}return d[p]=m,n}function v(t){const e=y+t;if(e<=(n.segmentParams?.length??0))return;let r=e*X;r=20*Math.ceil(r/20);const s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let y=0;for(const t of r){if(n.partOffsets[p++]=m,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=m-1;(0,l.wY)(s)?(v(10),++n.segmentCountArc,y=R(r,s,n,i,y),r=s.a[0]):(0,l.DA)(s)?(v(10),++n.segmentCountArc,y=F(r,s,n,i,y),r=s.a[0]):(0,l.aO)(s)?(v(10),++n.segmentCountArc,y=Y(r,s,n,i,y),r=s.c[0]):(0,l.n1)(s)?(v(4),++n.segmentCountBezier,y=I(0,s,n,i,y),r=s.b[0]):r=s}x&&Z(e,r)||f(r)}return n.partOffsets[p]=m,n}function E(t){const e=w(t),{vertexCount:r,partCount:s,hasZ:n,hasM:i}=t,o=S(t);if("point"===t.type){const[e,r]=t.vertexXY,s=t.vertexZ?.[0],n=t.vertexM?.[0];return{x:e,y:r,z:s,m:n,spatialReference:o}}let a=0;if("multipoint"===t.type){const t=[];for(;a<r;)t.push(e(a++));return{points:t,spatialReference:o,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(;a<s;)i.push(e(a++));h&&i.length>0&&i.push(i[0]),r.push(i)}return h?{rings:r,hasZ:n,hasM:i,spatialReference:o}:{paths:r,hasZ:n,hasM:i,spatialReference:o}}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:o}:{paths:[],curvePaths:u,hasZ:n,hasM:i,spatialReference:o}}function _(t,{lengths:e,coords:r,hasZ:s,hasM:n},i){const o=t.includes("point")?0:e.length,a="polygon"===t,h="point"===t?1:e.reduce((t,e)=>t+e,0)-(a?o:0);s??=!1,n??=!1;const u=b(t,h,o,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 c=2+Number(s)+Number(n);let l=0,f=0;u.partOffsets[0]=0;for(const t of e){const e=u.partOffsets[f],i=e+t-Number(a);u.partOffsets[++f]=i;for(let t=e;t<i;++t)u.vertexXY[2*t]=r[l++],u.vertexXY[2*t+1]=r[l++],s&&(u.vertexZ[t]=r[l++]),n&&(u.vertexM[t]=r[l++]);a&&(l+=c)}return u}function O({type:t,vertexCount:e,vertexXY:r,vertexZ:s,vertexM:n,partCount:i,partOffsets:o,hasZ:a,hasM:h}){const u=new m.A([],[],a,h);i=Math.max(i,1);const c="polygon"===t;let l=0;for(let t=0;t<i;++t){const i=o?.[t+1]??e,f=u.coords.length;for(let t=l;t<i;++t)u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(s[t]),h&&u.coords.push(n[t]);if(c){const t=l;u.coords.push(r[2*t],r[2*t+1]),a&&u.coords.push(s[t]),h&&u.coords.push(n[t])}u.lengths.push((u.coords.length-f)/u.stride),l=i}return"point"===t&&(u.lengths.length=0),u}function P(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 o=t.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:e,latestWkid:s,vcsWkid:i,latestVcsWkid:o}}(t.getSpatialReference()),t=t.getGeometry()),new x({...t.toFlatGeometry(),spatialReference:e})}class A{constructor(t,e){this.target=t,this.keys=e,this.oldValues=e.map(e=>t[e]);for(const r of e)t[r]=void 0}[Symbol.dispose](){this.keys.map((t,e)=>{this.target[t]=this.oldValues[e]})}}function S({spatialReference:t}){return t instanceof n.A?t.toJSON():t}function w({vertexXY:t,vertexZ:e,vertexM:r}){return e?r?s=>[t[2*s],t[2*s+1],e[s],r[s]]:r=>[t[2*r],t[2*r+1],e[r]]:r?e=>[t[2*e],t[2*e+1],r[e]]:e=>[t[2*e],t[2*e+1]]}function Z(t,e){return t.every((t,r)=>t===e[r])}function b(t,e,r,s,n,i,o,a){o??=0,a??=0;const h=new x({type:t,vertexCount:e,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});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 c=new ArrayBuffer(u);let l=0;return h.vertexXY=new Float64Array(c,l,2*e),l+=h.vertexXY.byteLength,s&&(h.vertexZ=new Float64Array(c,l,e),l+=h.vertexZ.byteLength),n&&(h.vertexM=new Float64Array(c,l,e),l+=h.vertexM.byteLength),i&&(h.segmentParams=new Float64Array(c,l,h.segmentParamCount),l+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(c,l,e),h.segmentIndices.fill(k),l+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(c,l,r+1),l+=h.partOffsets.byteLength,h.partFlags=new Int8Array(c,l,r+1),l+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),i&&(h.segmentFlags=new Int8Array(c,l,e),h.segmentFlags.fill(1),l+=h.segmentFlags.byteLength),h}function R(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){r[i]=4,s[i]=o;const[a,[h,u],c,l,f,m,x]=e.a;let d=4;l||(d|=1),c||(d|=2);const p=(0,g.SW)(t,e),[v,y]=(0,g.Uk)(p,.5);return n[o++]=d,n[o++]=m,n[o++]=x,n[o++]=f,n[o++]=h,n[o++]=u,n[o++]=p.u2-p.u1,n[o++]=p.u1,n[o++]=v,n[o++]=y,o}function F(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){r[i]=4,s[i]=o;const a=(0,f.io)(t,e);return V(a,4,...(0,h.mq)(a,.5),n,o)}function Y(t,e,{segmentFlags:r,segmentIndices:s,segmentParams:n},i,o){return r[i]=4,s[i]=o,V((0,u.pM)(t,e),0,...e.c[1],n,o)}function V(t,e,r,s,n,i){const{cx:o,cy:a,thetaStart:h,thetaEnd:u,radius:c}=t;return h>u||(e|=1),Math.abs(u-h)<=Math.PI||(e|=2),n[i++]=e,n[i++]=c,n[i++]=1,n[i++]=0,n[i++]=o,n[i++]=a,n[i++]=u-h,n[i++]=h,n[i++]=r,n[i++]=s,i}function I(t,{b:[e,[r,s],[n,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:h},u,c){return o[u]=2,a[u]=c,h[c++]=r,h[c++]=s,h[c++]=n,h[c++]=i,c}const X=1.61803,k=-1},28298(t,e,r){r.d(e,{fz:()=>h,g7:()=>o,zo:()=>a});var s=r(76061),n=(r(55537),r(83661),r(88885),r(39117));r(95213);const i=new n._;function o(t,e,r){return i.execute(t,e,r,null)}function a(t,e){return i.executeMany(new s.S(t),e,null).next()}function h(){return i.supportsCurves()}},56339(t,e,r){r.d(e,{executeMany:()=>i});var s=r(28298),n=r(83299);function i(t){const[e,r]=(0,n.fromGeometries)(t);return(0,n.toGeometry)((0,s.zo)(e,r),r)}},92722(t,e,r){r.d(e,{A:()=>n});var s=r(69397);class n{constructor(t=[],e=[],r=!1,s=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:s}){return new n(t,e,r||!1,s||!1)}static fromRect([t,e,r,s]){const i=r-t,o=s-e;return new n([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,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 o=1;o<r;o+=1){const r=s*(e+o),a=this.coords[r],h=this.coords[r+1];t+=-.5*(a-n)*(h+i),n=a,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)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6187],{46187(t,e,o){async function r(t={}){var e,o=t,r="";try{r=new URL(".","").href}catch{}e=async t=>{var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var _,p,n=console.log.bind(console),i=console.error.bind(console),c=!1;function a(t,e){t||s(e)}function y(){if(!p?.buffer?.resizable){var t=mo.buffer;p=new Int8Array(t),E=new Int16Array(t),u=new Uint8Array(t),f=new Int32Array(t),b=new Uint32Array(t),d=new Float32Array(t),T=new Float64Array(t),O=new BigInt64Array(t)}}function s(t){throw i(t=`Aborted(${t})`),c=!0,t+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(t)}function P(){return o.locateFile?function(t){return o.locateFile?o.locateFile(t,r):r+t}("pe-wasm.wasm"):new URL("pe-wasm.wasm","").href}async function g(t){try{var o=await e(t);return new Uint8Array(o)}catch{}return function(){throw"both async and sync fetching of the wasm failed"}()}var u,f,b,E,d,T,O,m,h,S,N,l,v,M,j,D,A,R,C,G,I,L,U,w,F,Y,X,x,H,z,Z,W,q,B,K,k,V,$,J,Q,tt,et,ot,rt,_t,pt,nt,it,ct,at,yt,st,Pt,gt,ut,ft,bt,Et,dt,Tt,Ot,mt,ht,St,Nt,lt,vt,Mt,jt,Dt,At,Rt,Ct,Gt,It,Lt,Ut,wt,Ft,Yt,Xt,xt,Ht,zt,Zt,Wt,qt,Bt,Kt,kt,Vt,$t,Jt,Qt,te,ee,oe,re,_e,pe,ne,ie,ce,ae,ye,se,Pe,ge,ue,fe,be,Ee,de,Te,Oe,me,he,Se,Ne,le,ve,Me,je,De,Ae,Re,Ce,Ge,Ie,Le,Ue,we,Fe,Ye,Xe,xe,He,ze,Ze,We,qe,Be,Ke,ke,Ve,$e,Je,Qe,to,eo,oo,ro,_o,po,no,io,co,ao,yo,so,Po,go,uo,fo,bo,Eo,To,Oo,mo,ho=globalThis.TextDecoder&&new TextDecoder,So=(t,e=0,o,r)=>{var _=((t,e,o,r)=>{var _=e+o;if(r)return _;for(;t[e]&&!(e>=_);)++e;return e})(t,e,o,r);if(_-e>16&&t.buffer&&ho)return ho.decode(t.subarray(e,_));for(var p="";e<_;){var n=t[e++];if(128&n){var i=63&t[e++];if(192!=(224&n)){var c=63&t[e++];if((n=224==(240&n)?(15&n)<<12|i<<6|c:(7&n)<<18|i<<12|c<<6|63&t[e++])<65536)p+=String.fromCharCode(n);else{var a=n-65536;p+=String.fromCharCode(55296|a>>10,56320|1023&a)}}else p+=String.fromCharCode((31&n)<<6|i)}else p+=String.fromCharCode(n)}return p},No=(t,e,o)=>t?So(u,t,e,o):"",lo=[0,31,60,91,121,152,182,213,244,274,305,335],vo=[0,31,59,90,120,151,181,212,243,273,304,334],Mo=(t,e,o,r)=>{if(!(r>0))return 0;for(var _=o,p=o+r-1,n=0;n<t.length;++n){var i=t.codePointAt(n);if(i<=127){if(o>=p)break;e[o++]=i}else if(i<=2047){if(o+1>=p)break;e[o++]=192|i>>6,e[o++]=128|63&i}else if(i<=65535){if(o+2>=p)break;e[o++]=224|i>>12,e[o++]=128|i>>6&63,e[o++]=128|63&i}else{if(o+3>=p)break;e[o++]=240|i>>18,e[o++]=128|i>>12&63,e[o++]=128|i>>6&63,e[o++]=128|63&i,n++}}return e[o]=0,o-_},jo=(t,e,o)=>Mo(t,u,e,o),Do=(t,e)=>Math.ceil(t/e)*e,Ao=t=>{var e=(t-mo.buffer.byteLength+65535)/65536|0;try{return mo.grow(e),y(),1}catch(t){}},Ro={},Co=()=>{if(!Co.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",_:"./this.program"};for(var e in Ro)void 0===Ro[e]?delete t[e]:t[e]=Ro[e];var o=[];for(var e in t)o.push(`${e}=${t[e]}`);Co.strings=o}return Co.strings},Go=t=>{for(var e=0,o=0;o<t.length;++o){var r=t.charCodeAt(o);r<=127?e++:r<=2047?e+=2:r>=55296&&r<=57343?(e+=4,++o):e+=3}return e},Io=[null,[],[]],Lo=(t,e)=>{var o=Io[t];e&&10!==e?o.push(e):((1===t?n:i)(So(o)),o.length=0)},Uo=[];function wo(t){o._webidl_free=t.u,o._webidl_malloc=t.v,m=o._emscripten_bind_PeObject_getCode_0=t.w,h=o._emscripten_bind_PeObject_getName_1=t.x,S=o._emscripten_bind_PeObject_getType_0=t.y,N=o._emscripten_bind_PeCoordsys_isEqual_1=t.z,l=o._emscripten_bind_PeCoordsys_getCode_0=t.A,v=o._emscripten_bind_PeCoordsys_getName_1=t.B,M=o._emscripten_bind_PeCoordsys_getType_0=t.C,j=o._emscripten_bind_PeUnit_getUnitFactor_0=t.D,D=o._emscripten_bind_PeUnit_getCode_0=t.E,A=o._emscripten_bind_PeUnit_getName_1=t.F,R=o._emscripten_bind_PeUnit_getType_0=t.G,C=o._emscripten_bind_VoidPtr___destroy___0=t.H,G=o._emscripten_bind_PeAngunit_getCode_0=t.I,I=o._emscripten_bind_PeAngunit_getName_1=t.J,L=o._emscripten_bind_PeAngunit_getType_0=t.K,U=o._emscripten_bind_PeAngunit_getUnitFactor_0=t.L,w=o._emscripten_bind_PeDatum_getSpheroid_0=t.M,F=o._emscripten_bind_PeDatum_getCode_0=t.N,Y=o._emscripten_bind_PeDatum_getName_1=t.O,X=o._emscripten_bind_PeDatum_getType_0=t.P,x=o._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=t.Q,H=o._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=t.R,z=o._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=t.S,Z=o._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=t.T,W=o._emscripten_bind_PeDefs_get_PE_DD_MAX_0=t.U,q=o._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=t.V,B=o._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=t.W,K=o._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=t.X,k=o._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=t.Y,V=o._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=t.Z,$=o._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=t._,J=o._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=t.$,Q=o._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=t.aa,tt=o._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=t.ba,et=o._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=t.ca,ot=o._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=t.da,rt=o._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=t.ea,_t=o._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=t.fa,pt=o._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=t.ga,nt=o._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=t.ha,it=o._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=t.ia,ct=o._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=t.ja,at=o._emscripten_bind_PeDefs_get_PE_PARM_X0_0=t.ka,yt=o._emscripten_bind_PeDefs_get_PE_PARM_ND_0=t.la,st=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=t.ma,Pt=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=t.na,gt=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=t.oa,ut=o._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=t.pa,ft=o._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=t.qa,bt=o._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=t.ra,Et=o._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=t.sa,dt=o._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=t.ta,Tt=o._emscripten_bind_PeDouble_PeDouble_1=t.ua,Ot=o._emscripten_bind_PeDouble_get_val_0=t.va,mt=o._emscripten_bind_PeDouble_set_val_1=t.wa,ht=o._emscripten_bind_PeDouble___destroy___0=t.xa,St=o._emscripten_bind_PeFactory_initialize_1=t.ya,Nt=o._emscripten_bind_PeFactory_factoryByType_2=t.za,lt=o._emscripten_bind_PeFactory_fromString_2=t.Aa,vt=o._emscripten_bind_PeFactory_getCode_1=t.Ba,Mt=o._emscripten_bind_PeGCSExtent_PeGCSExtent_6=t.Ca,jt=o._emscripten_bind_PeGCSExtent_getLLon_0=t.Da,Dt=o._emscripten_bind_PeGCSExtent_getSLat_0=t.Ea,At=o._emscripten_bind_PeGCSExtent_getRLon_0=t.Fa,Rt=o._emscripten_bind_PeGCSExtent_getNLat_0=t.Ga,Ct=o._emscripten_bind_PeGCSExtent___destroy___0=t.Ha,Gt=o._emscripten_bind_PeGeogcs_Delete_0=t.Ia,It=o._emscripten_bind_PeGeogcs_cloneAlterUnits_1=t.Ja,Lt=o._emscripten_bind_PeGeogcs_getDatum_0=t.Ka,Ut=o._emscripten_bind_PeGeogcs_getPrimem_0=t.La,wt=o._emscripten_bind_PeGeogcs_getUnit_0=t.Ma,Ft=o._emscripten_bind_PeGeogcs_isEqual_1=t.Na,Yt=o._emscripten_bind_PeGeogcs_getCode_0=t.Oa,Xt=o._emscripten_bind_PeGeogcs_getName_1=t.Pa,xt=o._emscripten_bind_PeGeogcs_getType_0=t.Qa,Ht=o._emscripten_bind_PeGeogtran_isEqual_1=t.Ra,zt=o._emscripten_bind_PeGeogtran_getGeogcs1_0=t.Sa,Zt=o._emscripten_bind_PeGeogtran_getGeogcs2_0=t.Ta,Wt=o._emscripten_bind_PeGeogtran_getParameters_0=t.Ua,qt=o._emscripten_bind_PeGeogtran_loadConstants_0=t.Va,Bt=o._emscripten_bind_PeGeogtran_usable_0=t.Wa,Kt=o._emscripten_bind_PeGeogtran_getCode_0=t.Xa,kt=o._emscripten_bind_PeGeogtran_getName_1=t.Ya,Vt=o._emscripten_bind_PeGeogtran_getType_0=t.Za,$t=o._emscripten_bind_PeGTlistExtended_getGTlist_6=t._a,Jt=o._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=t.$a,Qt=o._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=t.ab,te=o._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=t.bb,ee=o._emscripten_bind_PeGTlistExtendedEntry_Delete_1=t.cb,oe=o._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=t.db,re=o._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=t.eb,_e=o._emscripten_bind_PeHorizon_getNump_0=t.fb,pe=o._emscripten_bind_PeHorizon_getKind_0=t.gb,ne=o._emscripten_bind_PeHorizon_getInclusive_0=t.hb,ie=o._emscripten_bind_PeHorizon_getSize_0=t.ib,ce=o._emscripten_bind_PeHorizon_getCoord_0=t.jb,ae=o._emscripten_bind_PeInteger_PeInteger_1=t.kb,ye=o._emscripten_bind_PeInteger_get_val_0=t.lb,se=o._emscripten_bind_PeInteger_set_val_1=t.mb,Pe=o._emscripten_bind_PeInteger___destroy___0=t.nb,ge=o._emscripten_bind_PeLineType_geodetic_distance_10=t.ob,ue=o._emscripten_bind_PeLineType_geodetic_coordinate_9=t.pb,fe=o._emscripten_bind_PeLineType_geodesic_coordinate_8=t.qb,be=o._emscripten_bind_PeLineType_great_elliptic_distance_9=t.rb,Ee=o._emscripten_bind_PeMath_phi_to_eta_2=t.sb,de=o._emscripten_bind_PeMath_eta_to_phi_2=t.tb,Te=o._emscripten_bind_PeMath_phi_to_phig_2=t.ub,Oe=o._emscripten_bind_PeMath_q_3=t.vb,me=o._emscripten_bind_PeMath_q90_2=t.wb,he=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=t.xb,Se=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=t.yb,Ne=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=t.zb,le=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=t.Ab,ve=o._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=t.Bb,Me=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=t.Cb,je=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=t.Db,De=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=t.Eb,Ae=o._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=t.Fb,Re=o._emscripten_bind_PeParameter_getValue_0=t.Gb,Ce=o._emscripten_bind_PeParameter_getCode_0=t.Hb,Ge=o._emscripten_bind_PeParameter_getName_1=t.Ib,Ie=o._emscripten_bind_PeParameter_getType_0=t.Jb,Le=o._emscripten_bind_PePCSInfo_getCentralMeridian_0=t.Kb,Ue=o._emscripten_bind_PePCSInfo_getDomainMinx_0=t.Lb,we=o._emscripten_bind_PePCSInfo_getDomainMiny_0=t.Mb,Fe=o._emscripten_bind_PePCSInfo_getDomainMaxx_0=t.Nb,Ye=o._emscripten_bind_PePCSInfo_getDomainMaxy_0=t.Ob,Xe=o._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=t.Pb,xe=o._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=t.Qb,He=o._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=t.Rb,ze=o._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=t.Sb,Ze=o._emscripten_bind_PePCSInfo_isDensificationNeeded_0=t.Tb,We=o._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=t.Ub,qe=o._emscripten_bind_PePCSInfo_isPannableRectangle_0=t.Vb,Be=o._emscripten_bind_PePCSInfo_generate_2=t.Wb,Ke=o._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=t.Xb,ke=o._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=t.Yb,Ve=o._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=t.Zb,$e=o._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=t._b,Je=o._emscripten_bind_PePrimem_getLongitude_0=t.$b,Qe=o._emscripten_bind_PePrimem_getCode_0=t.ac,to=o._emscripten_bind_PePrimem_getName_1=t.bc,eo=o._emscripten_bind_PePrimem_getType_0=t.cc,oo=o._emscripten_bind_PeProjcs_Delete_0=t.dc,ro=o._emscripten_bind_PeProjcs_getGeogcs_0=t.ec,_o=o._emscripten_bind_PeProjcs_getProjection_0=t.fc,po=o._emscripten_bind_PeProjcs_getParameters_0=t.gc,no=o._emscripten_bind_PeProjcs_getUnit_0=t.hc,io=o._emscripten_bind_PeProjcs_loadConstants_0=t.ic,co=o._emscripten_bind_PeProjcs_horizonGcsGenerate_0=t.jc,ao=o._emscripten_bind_PeProjcs_horizonPcsGenerate_0=t.kc,yo=o._emscripten_bind_PeProjcs_isEqual_1=t.lc,so=o._emscripten_bind_PeProjcs_getCode_0=t.mc,Po=o._emscripten_bind_PeProjcs_getName_1=t.nc,go=o._emscripten_bind_PeProjcs_getType_0=t.oc,uo=o._emscripten_bind_PeSpheroid_getAxis_0=t.pc,fo=o._emscripten_bind_PeSpheroid_getFlattening_0=t.qc,bo=o._emscripten_bind_PeSpheroid_getCode_0=t.rc,Eo=o._emscripten_bind_PeSpheroid_getName_1=t.sc,To=o._emscripten_bind_PeSpheroid_getType_0=t.tc,Oo=o._emscripten_bind_PeVersion_version_string_0=t.uc,o._pe_getPeGTlistExtendedEntrySize=t.vc,o._pe_getPeGTlistExtendedGTsSize=t.wc,o._pe_getPeHorizonSize=t.xc,o._pe_geog_to_geog=t.yc,o._pe_geog_to_proj=t.zc,o._pe_geog_to_dd=t.Ac,o._pe_dd_to_geog=t.Bc,o._pe_geog_to_ddm=t.Cc,o._pe_ddm_to_geog=t.Dc,o._pe_geog_to_dms=t.Ec,o._pe_dms_to_geog=t.Fc,o._pe_geog_to_mgrs_extended=t.Gc,o._pe_mgrs_to_geog_extended=t.Hc,o._pe_geog_to_usng=t.Ic,o._pe_usng_to_geog=t.Jc,o._pe_geog_to_utm=t.Kc,o._pe_utm_to_geog=t.Lc,o._pe_object_to_string_ext=t.Mc,o._pe_object_is_wkt2_needed=t.Nc,o._pe_proj_to_geog_center=t.Oc,mo=t.s,t.__indirect_function_table}o.getValue=function(t,e="i8"){switch(e.endsWith("*")&&(e="*"),e){case"i1":case"i8":return p[t];case"i16":return E[t>>1];case"i32":return f[t>>2];case"i64":return O[t>>3];case"float":return d[t>>2];case"double":return T[t>>3];case"*":return b[t>>2];default:s(`invalid type for getValue: ${e}`)}},o.UTF8ToString=No;var Fo,Yo={c:function(t,e,o){return 0},n:(t,e,o)=>{},i:function(t,e,o){return 0},d:function(t,e,o,r){},l:t=>{},k:(t,e)=>{},m:(t,e,o)=>{},o:()=>s(""),p:function(t,e){t=(t=>t<-9007199254740992||t>9007199254740992?NaN:Number(t))(t);var o=new Date(1e3*t);if(isNaN(o.getTime()))return 1;f[e>>2]=o.getSeconds(),f[e+4>>2]=o.getMinutes(),f[e+8>>2]=o.getHours(),f[e+12>>2]=o.getDate(),f[e+16>>2]=o.getMonth(),f[e+20>>2]=o.getFullYear()-1900,f[e+24>>2]=o.getDay();var r=0|(t=>((t=>t%4==0&&(t%100!=0||t%400==0))(t.getFullYear())?lo:vo)[t.getMonth()]+t.getDate()-1)(o);f[e+28>>2]=r,f[e+36>>2]=-60*o.getTimezoneOffset();var _=new Date(o.getFullYear(),0,1),p=new Date(o.getFullYear(),6,1).getTimezoneOffset(),n=_.getTimezoneOffset(),i=0|(p!=n&&o.getTimezoneOffset()==Math.min(n,p));return f[e+32>>2]=i,0},q:(t,e,o,r)=>{var _=(new Date).getFullYear(),p=new Date(_,0,1),n=new Date(_,6,1),i=p.getTimezoneOffset(),c=n.getTimezoneOffset(),a=Math.max(i,c);b[t>>2]=60*a,f[e>>2]=Number(i!=c);var y=t=>{var e=t>=0?"-":"+",o=Math.abs(t);return`UTC${e}${String(Math.floor(o/60)).padStart(2,"0")}${String(o%60).padStart(2,"0")}`},s=y(i),P=y(c);c<i?(jo(s,o,17),jo(P,r,17)):(jo(s,r,17),jo(P,o,17))},r:()=>Date.now(),j:t=>{var e=u.length,o=2147483648;if((t>>>=0)>o)return!1;for(var r=1;r<=4;r*=2){var _=e*(1+.2/r);_=Math.min(_,t+100663296);var p=Math.min(o,Do(Math.max(t,_),65536));if(Ao(p))return!0}return!1},f:(t,e)=>{var o=0,r=0;for(var _ of Co()){var p=e+o;b[t+r>>2]=p,o+=jo(_,p,1/0)+1,r+=4}return 0},g:(t,e)=>{var o=Co();b[t>>2]=o.length;var r=0;for(var _ of o)r+=Go(_)+1;return b[e>>2]=r,0},a:t=>52,h:(t,e,o,r)=>52,e:function(t,e,o,r){return 70},b:(t,e,o,r)=>{for(var _=0,p=0;p<o;p++){var n=b[e>>2],i=b[e+4>>2];e+=8;for(var c=0;c<i;c++)Lo(t,u[n+c]);_+=i}return b[r>>2]=_,0}};function Xo(){}function xo(t){return(t||Xo).__cache__}function Ho(t,e){var o=xo(e),r=o[t];return r||((r=Object.create((e||Xo).prototype)).ptr=t,o[t]=r)}Fo=await async function(){var t={a:Yo};return _??=P(),function(t){return function(t){return wo(Fo=t.exports),y(),Fo}(t.instance)}(await async function(t,e,o){try{var r=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,o)}catch(t){i(`wasm streaming compile failed: ${t}`),i("falling back to ArrayBuffer instantiation")}return async function(t,e){try{var o=await g(t);return await WebAssembly.instantiate(o,e)}catch(t){i(`failed to asynchronously prepare wasm: ${t}`),s(t)}}(e,o)}(0,_,t))}(),await async function(){c||((t=>{for(;t.length>0;)t.shift()(o)})(Uo),Fo.t())}(),Xo.prototype=Object.create(Xo.prototype),Xo.prototype.constructor=Xo,Xo.prototype.__class__=Xo,Xo.__cache__={},o.WrapperObject=Xo,o.getCache=xo,o.wrapPointer=Ho,o.castObject=function(t,e){return Ho(t.ptr,e)},o.NULL=Ho(0),o.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete xo(t.__class__)[t.ptr]},o.compare=function(t,e){return t.ptr===e.ptr},o.getPointer=function(t){return t.ptr},o.getClass=function(t){return t.__class__};var zo={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(zo.needed){for(var t=0;t<zo.temps.length;t++)o._webidl_free(zo.temps[t]);zo.temps.length=0,o._webidl_free(zo.buffer),zo.buffer=0,zo.size+=zo.needed,zo.needed=0}zo.buffer||(zo.size+=128,zo.buffer=o._webidl_malloc(zo.size),a(zo.buffer)),zo.pos=0},alloc(t,e){a(zo.buffer);var r,_=e.BYTES_PER_ELEMENT,p=t.length*_;return p=Do(p,8),zo.pos+p>=zo.size?(a(p>0),zo.needed+=p,r=o._webidl_malloc(p),zo.temps.push(r)):(r=zo.buffer+zo.pos,zo.pos+=p),r}};function Zo(t){if("string"==typeof t){for(var e=(t=>{var e=Go(t)+1,o=new Array(e);return Mo(t,o,0,o.length),o})(t),o=zo.alloc(e,p),r=0;r<e.length;r++)p[o+r]=e[r];return o}return t}function Wo(t){if("object"==typeof t){for(var e=zo.alloc(t,p),o=0;o<t.length;o++)p[e+o]=t[o];return e}return t}function qo(){throw"cannot construct a PeObject, no constructor in IDL"}function Bo(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function Ko(){throw"cannot construct a PeUnit, no constructor in IDL"}function ko(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Vo(){throw"cannot construct a PeAngunit, no constructor in IDL"}function $o(){throw"cannot construct a PeDatum, no constructor in IDL"}function Jo(){throw"cannot construct a PeDefs, no constructor in IDL"}function Qo(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=Tt(t),xo(Qo)[this.ptr]=this}function tr(){throw"cannot construct a PeFactory, no constructor in IDL"}function er(t,e,o,r,_,p){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),this.ptr=Mt(t,e,o,r,_,p),xo(er)[this.ptr]=this}function or(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function rr(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function _r(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function pr(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function nr(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function ir(){throw"cannot construct a PeHorizon, no constructor in IDL"}function cr(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=ae(t),xo(cr)[this.ptr]=this}function ar(){throw"cannot construct a PeLineType, no constructor in IDL"}function yr(){throw"cannot construct a PeMath, no constructor in IDL"}function sr(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function Pr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function gr(){throw"cannot construct a PeParameter, no constructor in IDL"}function ur(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function fr(){throw"cannot construct a PePrimem, no constructor in IDL"}function br(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Er(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function dr(){throw"cannot construct a PeVersion, no constructor in IDL"}return qo.prototype=Object.create(Xo.prototype),qo.prototype.constructor=qo,qo.prototype.__class__=qo,qo.__cache__={},o.PeObject=qo,qo.prototype.getCode=qo.prototype.getCode=function(){var t=this.ptr;return m(t)},qo.prototype.getName=qo.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(h(e,t))},qo.prototype.getType=qo.prototype.getType=function(){var t=this.ptr;return S(t)},Bo.prototype=Object.create(qo.prototype),Bo.prototype.constructor=Bo,Bo.prototype.__class__=Bo,Bo.__cache__={},o.PeCoordsys=Bo,Bo.prototype.isEqual=Bo.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!N(e,t)},Bo.prototype.getCode=Bo.prototype.getCode=function(){var t=this.ptr;return l(t)},Bo.prototype.getName=Bo.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(v(e,t))},Bo.prototype.getType=Bo.prototype.getType=function(){var t=this.ptr;return M(t)},Ko.prototype=Object.create(qo.prototype),Ko.prototype.constructor=Ko,Ko.prototype.__class__=Ko,Ko.__cache__={},o.PeUnit=Ko,Ko.prototype.getUnitFactor=Ko.prototype.getUnitFactor=function(){var t=this.ptr;return j(t)},Ko.prototype.getCode=Ko.prototype.getCode=function(){var t=this.ptr;return D(t)},Ko.prototype.getName=Ko.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(A(e,t))},Ko.prototype.getType=Ko.prototype.getType=function(){var t=this.ptr;return R(t)},ko.prototype=Object.create(Xo.prototype),ko.prototype.constructor=ko,ko.prototype.__class__=ko,ko.__cache__={},o.VoidPtr=ko,ko.prototype.__destroy__=ko.prototype.__destroy__=function(){var t=this.ptr;C(t)},Vo.prototype=Object.create(Ko.prototype),Vo.prototype.constructor=Vo,Vo.prototype.__class__=Vo,Vo.__cache__={},o.PeAngunit=Vo,Vo.prototype.getCode=Vo.prototype.getCode=function(){var t=this.ptr;return G(t)},Vo.prototype.getName=Vo.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(I(e,t))},Vo.prototype.getType=Vo.prototype.getType=function(){var t=this.ptr;return L(t)},Vo.prototype.getUnitFactor=Vo.prototype.getUnitFactor=function(){var t=this.ptr;return U(t)},$o.prototype=Object.create(qo.prototype),$o.prototype.constructor=$o,$o.prototype.__class__=$o,$o.__cache__={},o.PeDatum=$o,$o.prototype.getSpheroid=$o.prototype.getSpheroid=function(){var t=this.ptr;return Ho(w(t),Er)},$o.prototype.getCode=$o.prototype.getCode=function(){var t=this.ptr;return F(t)},$o.prototype.getName=$o.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(Y(e,t))},$o.prototype.getType=$o.prototype.getType=function(){var t=this.ptr;return X(t)},Jo.prototype=Object.create(Xo.prototype),Jo.prototype.constructor=Jo,Jo.prototype.__class__=Jo,Jo.__cache__={},o.PeDefs=Jo,Jo.prototype.get_PE_BUFFER_MAX=Jo.prototype.get_PE_BUFFER_MAX=function(){var t=this.ptr;return x(t)},Object.defineProperty(Jo.prototype,"PE_BUFFER_MAX",{get:Jo.prototype.get_PE_BUFFER_MAX}),Jo.prototype.get_PE_NAME_MAX=Jo.prototype.get_PE_NAME_MAX=function(){var t=this.ptr;return H(t)},Object.defineProperty(Jo.prototype,"PE_NAME_MAX",{get:Jo.prototype.get_PE_NAME_MAX}),Jo.prototype.get_PE_MGRS_MAX=Jo.prototype.get_PE_MGRS_MAX=function(){var t=this.ptr;return z(t)},Object.defineProperty(Jo.prototype,"PE_MGRS_MAX",{get:Jo.prototype.get_PE_MGRS_MAX}),Jo.prototype.get_PE_USNG_MAX=Jo.prototype.get_PE_USNG_MAX=function(){var t=this.ptr;return Z(t)},Object.defineProperty(Jo.prototype,"PE_USNG_MAX",{get:Jo.prototype.get_PE_USNG_MAX}),Jo.prototype.get_PE_DD_MAX=Jo.prototype.get_PE_DD_MAX=function(){var t=this.ptr;return W(t)},Object.defineProperty(Jo.prototype,"PE_DD_MAX",{get:Jo.prototype.get_PE_DD_MAX}),Jo.prototype.get_PE_DMS_MAX=Jo.prototype.get_PE_DMS_MAX=function(){var t=this.ptr;return q(t)},Object.defineProperty(Jo.prototype,"PE_DMS_MAX",{get:Jo.prototype.get_PE_DMS_MAX}),Jo.prototype.get_PE_DDM_MAX=Jo.prototype.get_PE_DDM_MAX=function(){var t=this.ptr;return B(t)},Object.defineProperty(Jo.prototype,"PE_DDM_MAX",{get:Jo.prototype.get_PE_DDM_MAX}),Jo.prototype.get_PE_UTM_MAX=Jo.prototype.get_PE_UTM_MAX=function(){var t=this.ptr;return K(t)},Object.defineProperty(Jo.prototype,"PE_UTM_MAX",{get:Jo.prototype.get_PE_UTM_MAX}),Jo.prototype.get_PE_PARM_MAX=Jo.prototype.get_PE_PARM_MAX=function(){var t=this.ptr;return k(t)},Object.defineProperty(Jo.prototype,"PE_PARM_MAX",{get:Jo.prototype.get_PE_PARM_MAX}),Jo.prototype.get_PE_TYPE_NONE=Jo.prototype.get_PE_TYPE_NONE=function(){var t=this.ptr;return V(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_NONE",{get:Jo.prototype.get_PE_TYPE_NONE}),Jo.prototype.get_PE_TYPE_GEOGCS=Jo.prototype.get_PE_TYPE_GEOGCS=function(){var t=this.ptr;return $(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_GEOGCS",{get:Jo.prototype.get_PE_TYPE_GEOGCS}),Jo.prototype.get_PE_TYPE_PROJCS=Jo.prototype.get_PE_TYPE_PROJCS=function(){var t=this.ptr;return J(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_PROJCS",{get:Jo.prototype.get_PE_TYPE_PROJCS}),Jo.prototype.get_PE_TYPE_GEOGTRAN=Jo.prototype.get_PE_TYPE_GEOGTRAN=function(){var t=this.ptr;return Q(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_GEOGTRAN",{get:Jo.prototype.get_PE_TYPE_GEOGTRAN}),Jo.prototype.get_PE_TYPE_COORDSYS=Jo.prototype.get_PE_TYPE_COORDSYS=function(){var t=this.ptr;return tt(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_COORDSYS",{get:Jo.prototype.get_PE_TYPE_COORDSYS}),Jo.prototype.get_PE_TYPE_UNIT=Jo.prototype.get_PE_TYPE_UNIT=function(){var t=this.ptr;return et(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_UNIT",{get:Jo.prototype.get_PE_TYPE_UNIT}),Jo.prototype.get_PE_TYPE_LINUNIT=Jo.prototype.get_PE_TYPE_LINUNIT=function(){var t=this.ptr;return ot(t)},Object.defineProperty(Jo.prototype,"PE_TYPE_LINUNIT",{get:Jo.prototype.get_PE_TYPE_LINUNIT}),Jo.prototype.get_PE_STR_OPTS_NONE=Jo.prototype.get_PE_STR_OPTS_NONE=function(){var t=this.ptr;return rt(t)},Object.defineProperty(Jo.prototype,"PE_STR_OPTS_NONE",{get:Jo.prototype.get_PE_STR_OPTS_NONE}),Jo.prototype.get_PE_STR_AUTH_NONE=Jo.prototype.get_PE_STR_AUTH_NONE=function(){var t=this.ptr;return _t(t)},Object.defineProperty(Jo.prototype,"PE_STR_AUTH_NONE",{get:Jo.prototype.get_PE_STR_AUTH_NONE}),Jo.prototype.get_PE_STR_AUTH_TOP=Jo.prototype.get_PE_STR_AUTH_TOP=function(){var t=this.ptr;return pt(t)},Object.defineProperty(Jo.prototype,"PE_STR_AUTH_TOP",{get:Jo.prototype.get_PE_STR_AUTH_TOP}),Jo.prototype.get_PE_STR_NAME_CANON=Jo.prototype.get_PE_STR_NAME_CANON=function(){var t=this.ptr;return nt(t)},Object.defineProperty(Jo.prototype,"PE_STR_NAME_CANON",{get:Jo.prototype.get_PE_STR_NAME_CANON}),Jo.prototype.get_PE_STR_FMT_WKT=Jo.prototype.get_PE_STR_FMT_WKT=function(){var t=this.ptr;return it(t)},Object.defineProperty(Jo.prototype,"PE_STR_FMT_WKT",{get:Jo.prototype.get_PE_STR_FMT_WKT}),Jo.prototype.get_PE_STR_FMT_WKT2=Jo.prototype.get_PE_STR_FMT_WKT2=function(){var t=this.ptr;return ct(t)},Object.defineProperty(Jo.prototype,"PE_STR_FMT_WKT2",{get:Jo.prototype.get_PE_STR_FMT_WKT2}),Jo.prototype.get_PE_PARM_X0=Jo.prototype.get_PE_PARM_X0=function(){var t=this.ptr;return at(t)},Object.defineProperty(Jo.prototype,"PE_PARM_X0",{get:Jo.prototype.get_PE_PARM_X0}),Jo.prototype.get_PE_PARM_ND=Jo.prototype.get_PE_PARM_ND=function(){var t=this.ptr;return yt(t)},Object.defineProperty(Jo.prototype,"PE_PARM_ND",{get:Jo.prototype.get_PE_PARM_ND}),Jo.prototype.get_PE_TRANSFORM_1_TO_2=Jo.prototype.get_PE_TRANSFORM_1_TO_2=function(){var t=this.ptr;return st(t)},Object.defineProperty(Jo.prototype,"PE_TRANSFORM_1_TO_2",{get:Jo.prototype.get_PE_TRANSFORM_1_TO_2}),Jo.prototype.get_PE_TRANSFORM_2_TO_1=Jo.prototype.get_PE_TRANSFORM_2_TO_1=function(){var t=this.ptr;return Pt(t)},Object.defineProperty(Jo.prototype,"PE_TRANSFORM_2_TO_1",{get:Jo.prototype.get_PE_TRANSFORM_2_TO_1}),Jo.prototype.get_PE_TRANSFORM_P_TO_G=Jo.prototype.get_PE_TRANSFORM_P_TO_G=function(){var t=this.ptr;return gt(t)},Object.defineProperty(Jo.prototype,"PE_TRANSFORM_P_TO_G",{get:Jo.prototype.get_PE_TRANSFORM_P_TO_G}),Jo.prototype.get_PE_TRANSFORM_G_TO_P=Jo.prototype.get_PE_TRANSFORM_G_TO_P=function(){var t=this.ptr;return ut(t)},Object.defineProperty(Jo.prototype,"PE_TRANSFORM_G_TO_P",{get:Jo.prototype.get_PE_TRANSFORM_G_TO_P}),Jo.prototype.get_PE_HORIZON_RECT=Jo.prototype.get_PE_HORIZON_RECT=function(){var t=this.ptr;return ft(t)},Object.defineProperty(Jo.prototype,"PE_HORIZON_RECT",{get:Jo.prototype.get_PE_HORIZON_RECT}),Jo.prototype.get_PE_HORIZON_POLY=Jo.prototype.get_PE_HORIZON_POLY=function(){var t=this.ptr;return bt(t)},Object.defineProperty(Jo.prototype,"PE_HORIZON_POLY",{get:Jo.prototype.get_PE_HORIZON_POLY}),Jo.prototype.get_PE_HORIZON_LINE=Jo.prototype.get_PE_HORIZON_LINE=function(){var t=this.ptr;return Et(t)},Object.defineProperty(Jo.prototype,"PE_HORIZON_LINE",{get:Jo.prototype.get_PE_HORIZON_LINE}),Jo.prototype.get_PE_HORIZON_DELTA=Jo.prototype.get_PE_HORIZON_DELTA=function(){var t=this.ptr;return dt(t)},Object.defineProperty(Jo.prototype,"PE_HORIZON_DELTA",{get:Jo.prototype.get_PE_HORIZON_DELTA}),Qo.prototype=Object.create(Xo.prototype),Qo.prototype.constructor=Qo,Qo.prototype.__class__=Qo,Qo.__cache__={},o.PeDouble=Qo,Qo.prototype.get_val=Qo.prototype.get_val=function(){var t=this.ptr;return Ot(t)},Qo.prototype.set_val=Qo.prototype.set_val=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),mt(e,t)},Object.defineProperty(Qo.prototype,"val",{get:Qo.prototype.get_val,set:Qo.prototype.set_val}),Qo.prototype.__destroy__=Qo.prototype.__destroy__=function(){var t=this.ptr;ht(t)},tr.prototype=Object.create(Xo.prototype),tr.prototype.constructor=tr,tr.prototype.__class__=tr,tr.__cache__={},o.PeFactory=tr,tr.prototype.initialize=tr.prototype.initialize=function(t){zo.prepare(),t=t&&"object"==typeof t?t.ptr:Zo(t),St(t)},tr.prototype.factoryByType=tr.prototype.factoryByType=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Ho(Nt(t,e),qo)},tr.prototype.fromString=tr.prototype.fromString=function(t,e){return zo.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:Zo(e),Ho(lt(t,e),qo)},tr.prototype.getCode=tr.prototype.getCode=function(t){return t&&"object"==typeof t&&(t=t.ptr),vt(t)},er.prototype=Object.create(Xo.prototype),er.prototype.constructor=er,er.prototype.__class__=er,er.__cache__={},o.PeGCSExtent=er,er.prototype.getLLon=er.prototype.getLLon=function(){var t=this.ptr;return jt(t)},er.prototype.getSLat=er.prototype.getSLat=function(){var t=this.ptr;return Dt(t)},er.prototype.getRLon=er.prototype.getRLon=function(){var t=this.ptr;return At(t)},er.prototype.getNLat=er.prototype.getNLat=function(){var t=this.ptr;return Rt(t)},er.prototype.__destroy__=er.prototype.__destroy__=function(){var t=this.ptr;Ct(t)},or.prototype=Object.create(Bo.prototype),or.prototype.constructor=or,or.prototype.__class__=or,or.__cache__={},o.PeGeogcs=or,or.prototype.Delete=or.prototype.Delete=function(){var t=this.ptr;Gt(t)},or.prototype.cloneAlterUnits=or.prototype.cloneAlterUnits=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ho(It(e,t),or)},or.prototype.getDatum=or.prototype.getDatum=function(){var t=this.ptr;return Ho(Lt(t),$o)},or.prototype.getPrimem=or.prototype.getPrimem=function(){var t=this.ptr;return Ho(Ut(t),fr)},or.prototype.getUnit=or.prototype.getUnit=function(){var t=this.ptr;return Ho(wt(t),Vo)},or.prototype.isEqual=or.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!Ft(e,t)},or.prototype.getCode=or.prototype.getCode=function(){var t=this.ptr;return Yt(t)},or.prototype.getName=or.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(Xt(e,t))},or.prototype.getType=or.prototype.getType=function(){var t=this.ptr;return xt(t)},rr.prototype=Object.create(qo.prototype),rr.prototype.constructor=rr,rr.prototype.__class__=rr,rr.__cache__={},o.PeGeogtran=rr,rr.prototype.isEqual=rr.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!Ht(e,t)},rr.prototype.getGeogcs1=rr.prototype.getGeogcs1=function(){var t=this.ptr;return Ho(zt(t),or)},rr.prototype.getGeogcs2=rr.prototype.getGeogcs2=function(){var t=this.ptr;return Ho(Zt(t),or)},rr.prototype.getParameters=rr.prototype.getParameters=function(){var t=this.ptr;return Wt(t)},rr.prototype.loadConstants=rr.prototype.loadConstants=function(){var t=this.ptr;return!!qt(t)},rr.prototype.usable=rr.prototype.usable=function(){var t=this.ptr;return!!Bt(t)},rr.prototype.getCode=rr.prototype.getCode=function(){var t=this.ptr;return Kt(t)},rr.prototype.getName=rr.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(kt(e,t))},rr.prototype.getType=rr.prototype.getType=function(){var t=this.ptr;return Vt(t)},_r.prototype=Object.create(Xo.prototype),_r.prototype.constructor=_r,_r.prototype.__class__=_r,_r.__cache__={},o.PeGTlistExtended=_r,_r.prototype.getGTlist=_r.prototype.getGTlist=function(t,e,o,r,_,p){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),Ho($t(t,e,o,r,_,p),pr)},_r.prototype.get_PE_GTLIST_OPTS_COMMON=_r.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var t=this.ptr;return Jt(t)},Object.defineProperty(_r.prototype,"PE_GTLIST_OPTS_COMMON",{get:_r.prototype.get_PE_GTLIST_OPTS_COMMON}),pr.prototype=Object.create(Xo.prototype),pr.prototype.constructor=pr,pr.prototype.__class__=pr,pr.__cache__={},o.PeGTlistExtendedEntry=pr,pr.prototype.getEntries=pr.prototype.getEntries=function(){var t=this.ptr;return Ho(Qt(t),nr)},pr.prototype.getSteps=pr.prototype.getSteps=function(){var t=this.ptr;return te(t)},pr.prototype.Delete=pr.prototype.Delete=function(t){t&&"object"==typeof t&&(t=t.ptr),ee(t)},nr.prototype=Object.create(Xo.prototype),nr.prototype.constructor=nr,nr.prototype.__class__=nr,nr.__cache__={},o.PeGTlistExtendedGTs=nr,nr.prototype.getDirection=nr.prototype.getDirection=function(){var t=this.ptr;return oe(t)},nr.prototype.getGeogtran=nr.prototype.getGeogtran=function(){var t=this.ptr;return Ho(re(t),rr)},ir.prototype=Object.create(Xo.prototype),ir.prototype.constructor=ir,ir.prototype.__class__=ir,ir.__cache__={},o.PeHorizon=ir,ir.prototype.getNump=ir.prototype.getNump=function(){var t=this.ptr;return _e(t)},ir.prototype.getKind=ir.prototype.getKind=function(){var t=this.ptr;return pe(t)},ir.prototype.getInclusive=ir.prototype.getInclusive=function(){var t=this.ptr;return ne(t)},ir.prototype.getSize=ir.prototype.getSize=function(){var t=this.ptr;return ie(t)},ir.prototype.getCoord=ir.prototype.getCoord=function(){var t=this.ptr;return ce(t)},cr.prototype=Object.create(Xo.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},o.PeInteger=cr,cr.prototype.get_val=cr.prototype.get_val=function(){var t=this.ptr;return ye(t)},cr.prototype.set_val=cr.prototype.set_val=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),se(e,t)},Object.defineProperty(cr.prototype,"val",{get:cr.prototype.get_val,set:cr.prototype.set_val}),cr.prototype.__destroy__=cr.prototype.__destroy__=function(){var t=this.ptr;Pe(t)},ar.prototype=Object.create(Xo.prototype),ar.prototype.constructor=ar,ar.prototype.__class__=ar,ar.__cache__={},o.PeLineType=ar,ar.prototype.geodetic_distance=ar.prototype.geodetic_distance=function(t,e,o,r,_,p,n,i,c,a){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),a&&"object"==typeof a&&(a=a.ptr),ge(t,e,o,r,_,p,n,i,c,a)},ar.prototype.geodetic_coordinate=ar.prototype.geodetic_coordinate=function(t,e,o,r,_,p,n,i,c){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),ue(t,e,o,r,_,p,n,i,c)},ar.prototype.geodesic_coordinate=ar.prototype.geodesic_coordinate=function(t,e,o,r,_,p,n,i){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),fe(t,e,o,r,_,p,n,i)},ar.prototype.great_elliptic_distance=ar.prototype.great_elliptic_distance=function(t,e,o,r,_,p,n,i,c){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),be(t,e,o,r,_,p,n,i,c)},yr.prototype=Object.create(Xo.prototype),yr.prototype.constructor=yr,yr.prototype.__class__=yr,yr.__cache__={},o.PeMath=yr,yr.prototype.phi_to_eta=yr.prototype.phi_to_eta=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Ee(t,e)},yr.prototype.eta_to_phi=yr.prototype.eta_to_phi=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),de(t,e)},yr.prototype.phi_to_phig=yr.prototype.phi_to_phig=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Te(t,e)},yr.prototype.q=yr.prototype.q=function(t,e,o){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),Oe(t,e,o)},yr.prototype.q90=yr.prototype.q90=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),me(t,e)},sr.prototype=Object.create(Xo.prototype),sr.prototype.constructor=sr,sr.prototype.__class__=sr,sr.__cache__={},o.PeNotationMgrs=sr,sr.prototype.get_PE_MGRS_STYLE_NEW=sr.prototype.get_PE_MGRS_STYLE_NEW=function(){var t=this.ptr;return he(t)},Object.defineProperty(sr.prototype,"PE_MGRS_STYLE_NEW",{get:sr.prototype.get_PE_MGRS_STYLE_NEW}),sr.prototype.get_PE_MGRS_STYLE_OLD=sr.prototype.get_PE_MGRS_STYLE_OLD=function(){var t=this.ptr;return Se(t)},Object.defineProperty(sr.prototype,"PE_MGRS_STYLE_OLD",{get:sr.prototype.get_PE_MGRS_STYLE_OLD}),sr.prototype.get_PE_MGRS_STYLE_AUTO=sr.prototype.get_PE_MGRS_STYLE_AUTO=function(){var t=this.ptr;return Ne(t)},Object.defineProperty(sr.prototype,"PE_MGRS_STYLE_AUTO",{get:sr.prototype.get_PE_MGRS_STYLE_AUTO}),sr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=sr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var t=this.ptr;return le(t)},Object.defineProperty(sr.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:sr.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),sr.prototype.get_PE_MGRS_ADD_SPACES=sr.prototype.get_PE_MGRS_ADD_SPACES=function(){var t=this.ptr;return ve(t)},Object.defineProperty(sr.prototype,"PE_MGRS_ADD_SPACES",{get:sr.prototype.get_PE_MGRS_ADD_SPACES}),Pr.prototype=Object.create(Xo.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},o.PeNotationUtm=Pr,Pr.prototype.get_PE_UTM_OPTS_NONE=Pr.prototype.get_PE_UTM_OPTS_NONE=function(){var t=this.ptr;return Me(t)},Object.defineProperty(Pr.prototype,"PE_UTM_OPTS_NONE",{get:Pr.prototype.get_PE_UTM_OPTS_NONE}),Pr.prototype.get_PE_UTM_OPTS_NS=Pr.prototype.get_PE_UTM_OPTS_NS=function(){var t=this.ptr;return je(t)},Object.defineProperty(Pr.prototype,"PE_UTM_OPTS_NS",{get:Pr.prototype.get_PE_UTM_OPTS_NS}),Pr.prototype.get_PE_UTM_OPTS_NS_STRICT=Pr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var t=this.ptr;return De(t)},Object.defineProperty(Pr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:Pr.prototype.get_PE_UTM_OPTS_NS_STRICT}),Pr.prototype.get_PE_UTM_OPTS_ADD_SPACES=Pr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var t=this.ptr;return Ae(t)},Object.defineProperty(Pr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:Pr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),gr.prototype=Object.create(qo.prototype),gr.prototype.constructor=gr,gr.prototype.__class__=gr,gr.__cache__={},o.PeParameter=gr,gr.prototype.getValue=gr.prototype.getValue=function(){var t=this.ptr;return Re(t)},gr.prototype.getCode=gr.prototype.getCode=function(){var t=this.ptr;return Ce(t)},gr.prototype.getName=gr.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(Ge(e,t))},gr.prototype.getType=gr.prototype.getType=function(){var t=this.ptr;return Ie(t)},ur.prototype=Object.create(Xo.prototype),ur.prototype.constructor=ur,ur.prototype.__class__=ur,ur.__cache__={},o.PePCSInfo=ur,ur.prototype.getCentralMeridian=ur.prototype.getCentralMeridian=function(){var t=this.ptr;return Le(t)},ur.prototype.getDomainMinx=ur.prototype.getDomainMinx=function(){var t=this.ptr;return Ue(t)},ur.prototype.getDomainMiny=ur.prototype.getDomainMiny=function(){var t=this.ptr;return we(t)},ur.prototype.getDomainMaxx=ur.prototype.getDomainMaxx=function(){var t=this.ptr;return Fe(t)},ur.prototype.getDomainMaxy=ur.prototype.getDomainMaxy=function(){var t=this.ptr;return Ye(t)},ur.prototype.getNorthPoleLocation=ur.prototype.getNorthPoleLocation=function(){var t=this.ptr;return Xe(t)},ur.prototype.getNorthPoleGeometry=ur.prototype.getNorthPoleGeometry=function(){var t=this.ptr;return xe(t)},ur.prototype.getSouthPoleLocation=ur.prototype.getSouthPoleLocation=function(){var t=this.ptr;return He(t)},ur.prototype.getSouthPoleGeometry=ur.prototype.getSouthPoleGeometry=function(){var t=this.ptr;return ze(t)},ur.prototype.isDensificationNeeded=ur.prototype.isDensificationNeeded=function(){var t=this.ptr;return!!Ze(t)},ur.prototype.isGcsHorizonMultiOverlap=ur.prototype.isGcsHorizonMultiOverlap=function(){var t=this.ptr;return!!We(t)},ur.prototype.isPannableRectangle=ur.prototype.isPannableRectangle=function(){var t=this.ptr;return!!qe(t)},ur.prototype.generate=ur.prototype.generate=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Ho(Be(t,e),ur)},ur.prototype.get_PE_PCSINFO_OPTION_NONE=ur.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var t=this.ptr;return Ke(t)},Object.defineProperty(ur.prototype,"PE_PCSINFO_OPTION_NONE",{get:ur.prototype.get_PE_PCSINFO_OPTION_NONE}),ur.prototype.get_PE_PCSINFO_OPTION_DOMAIN=ur.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var t=this.ptr;return ke(t)},Object.defineProperty(ur.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:ur.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),ur.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=ur.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var t=this.ptr;return Ve(t)},Object.defineProperty(ur.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:ur.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),ur.prototype.get_PE_POLE_POINT=ur.prototype.get_PE_POLE_POINT=function(){var t=this.ptr;return $e(t)},Object.defineProperty(ur.prototype,"PE_POLE_POINT",{get:ur.prototype.get_PE_POLE_POINT}),fr.prototype=Object.create(qo.prototype),fr.prototype.constructor=fr,fr.prototype.__class__=fr,fr.__cache__={},o.PePrimem=fr,fr.prototype.getLongitude=fr.prototype.getLongitude=function(){var t=this.ptr;return Je(t)},fr.prototype.getCode=fr.prototype.getCode=function(){var t=this.ptr;return Qe(t)},fr.prototype.getName=fr.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(to(e,t))},fr.prototype.getType=fr.prototype.getType=function(){var t=this.ptr;return eo(t)},br.prototype=Object.create(Bo.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},o.PeProjcs=br,br.prototype.Delete=br.prototype.Delete=function(){var t=this.ptr;oo(t)},br.prototype.getGeogcs=br.prototype.getGeogcs=function(){var t=this.ptr;return Ho(ro(t),or)},br.prototype.getProjection=br.prototype.getProjection=function(){var t=this.ptr;return Ho(_o(t),qo)},br.prototype.getParameters=br.prototype.getParameters=function(){var t=this.ptr;return po(t)},br.prototype.getUnit=br.prototype.getUnit=function(){var t=this.ptr;return Ho(no(t),Ko)},br.prototype.loadConstants=br.prototype.loadConstants=function(){var t=this.ptr;return!!io(t)},br.prototype.horizonGcsGenerate=br.prototype.horizonGcsGenerate=function(){var t=this.ptr;return Ho(co(t),ir)},br.prototype.horizonPcsGenerate=br.prototype.horizonPcsGenerate=function(){var t=this.ptr;return Ho(ao(t),ir)},br.prototype.isEqual=br.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!yo(e,t)},br.prototype.getCode=br.prototype.getCode=function(){var t=this.ptr;return so(t)},br.prototype.getName=br.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(Po(e,t))},br.prototype.getType=br.prototype.getType=function(){var t=this.ptr;return go(t)},Er.prototype=Object.create(qo.prototype),Er.prototype.constructor=Er,Er.prototype.__class__=Er,Er.__cache__={},o.PeSpheroid=Er,Er.prototype.getAxis=Er.prototype.getAxis=function(){var t=this.ptr;return uo(t)},Er.prototype.getFlattening=Er.prototype.getFlattening=function(){var t=this.ptr;return fo(t)},Er.prototype.getCode=Er.prototype.getCode=function(){var t=this.ptr;return bo(t)},Er.prototype.getName=Er.prototype.getName=function(t){var e=this.ptr;return zo.prepare(),"object"==typeof t&&(t=Wo(t)),No(Eo(e,t))},Er.prototype.getType=Er.prototype.getType=function(){var t=this.ptr;return To(t)},dr.prototype=Object.create(Xo.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},o.PeVersion=dr,dr.prototype.version_string=dr.prototype.version_string=function(){var t=this.ptr;return No(Oo(t))},o.ensureCache=zo,o.ensureString=Zo,o.ensureInt8=Wo,o.ensureInt16=function(t){if("object"==typeof t){for(var e=zo.alloc(t,E),o=e/2,r=0;r<t.length;r++)E[o+r]=t[r];return e}return t},o.ensureInt32=function(t){if("object"==typeof t){for(var e=zo.alloc(t,f),o=e/4,r=0;r<t.length;r++)f[o+r]=t[r];return e}return t},o.ensureFloat32=function(t){if("object"==typeof t){for(var e=zo.alloc(t,d),o=e/4,r=0;r<t.length;r++)d[o+r]=t[r];return e}return t},o.ensureFloat64=function(t){if("object"==typeof t){for(var e=zo.alloc(t,T),o=e/8,r=0;r<t.length;r++)T[o+r]=t[r];return e}return t},o}o.d(e,{default:()=>r})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6558],{6558(e,t,n){n.r(t),n.d(t,{OperatorGeodeticArea:()=>q});var s=n(55537),i=n(88885),a=n(5247),_=n(39117),r=n(83661),h=n(79187),o=n(95213),m=n(31139),l=n(47591),u=n(5482),p=n(11878),c=n(22024);class g{m_startPt;m_endPt;m_cE2;m_cE;m_c1By2e;m_cRpu;isPcs;PEProjcs;m_points;constructor(e,t,n,s,i=100){this.m_startPt=e.clone(),this.m_endPt=t.clone(),this.m_cE2=s,this.m_cE=Math.sqrt(this.m_cE2),this.m_c1By2e=1/(2*this.m_cE),this.m_cRpu=n.getGCS().getUnit().getUnitToBaseFactor(),this.isPcs=2===n.getCoordinateSystemType(),this.PEProjcs=n.getPECoordSys(),this.m_points=(0,r.d)(2*i,Number.NaN)}setSegmentEndPoints(e,t){this.m_startPt.assign(e),this.m_endPt.assign(t)}makeFunctor(){return e=>{const t=[0,0];t[0]=this.m_startPt.x*(1-e)+this.m_endPt.x*e,t[1]=this.m_startPt.y*(1-e)+this.m_endPt.y*e,this.isPcs&&_.aw.projToGeogCenter(this.PEProjcs,1,t,0);const n=Math.sin(t[1]*this.m_cRpu);return 0===this.m_cE2?n:-Math.log((1-this.m_cE*n)/(1+this.m_cE*n))*this.m_c1By2e+n/(1-this.m_cE2*n*n)}}}function d(e,t,n,s,i){const r=(new a.O).execute(e,t,0,0,i);let o;o=s?(new _.O).execute(r,s,i):r;const m=1===n.getUnit().getUnitToBaseFactor()?Math.PI/180:1,l=new h.Envelope2D;o.queryEnvelope(l);const u=new h.Envelope2D,p=new h.Envelope2D,c=new h.Envelope2D;u.setCoords({xmin:l.xmin,ymin:75*m,xmax:l.xmax,ymax:90*m}),p.setCoords({xmin:l.xmin,ymin:-60*m,xmax:l.xmax,ymax:75*m}),c.setCoords({xmin:l.xmin,ymin:-90*m,xmax:l.xmax,ymax:-60*m}),u.inflateCoords(.01*u.width(),0),p.inflateCoords(.01*p.width(),0),c.inflateCoords(.01*c.width(),0);let g=0;return g+=P(o,u,n,i),g+=P(o,p,n,i),g+=P(o,c,n,i),g}function P(e,t,n,i){const a=(new m.O).execute(e,t,n,i);if(null!==a&&!a.isEmpty()){const e=new h.Envelope2D;a.queryEnvelope(e);const{first:t,second:o}=function(e,t){const n=function(e,t){const n=e.getUnit().getUnitToBaseFactor(),i=t.getCenter();i.scale(180*n/Math.PI);const a=new r.P;a.x=0,a.y=0;let h=0;if(0===h){i.y>45?(a.y=r.l,h=0):i.y<-45?(a.y=-r.l,h=1):i.x>=45&&i.x<135?(a.x=r.l,h=2):i.x>=135||i.x<-135?(a.x=r.l,h=3):i.x<-45&&i.x>=-135?(a.x=-r.l,h=4):(a.x=0,h=5);const e=n*Math.sqrt((0,r.a)(t.xmin-t.xmax)+(0,r.a)(t.ymin-t.ymax)),s=a.clone(),_=t.getCenter();if(_.scale(n),h<2&&(s.x=_.x),r.P.distance(s,_)+.5*e>r.l)return null}const o=E[h];if(null!==o&&o.getGCS().equalHorizontal(e))return o;const m=e.getText(),l=a.x,u=a.y;let p=0,c=-1;6!==h?c=_.aG.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:((0,s.g)(false),p=0,c=_.aG.PE_PRJ_CYLINDRICAL_EQAREA);const g=(0,_.j)("EqualAreaPCS");let d;c===_.aG.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?d=`PROJCS["${g}",${m},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${l}],PARAMETER["Latitude_of_Origin",${u}],UNIT["Meter",1.0]]`:c===_.aG.PE_PRJ_CYLINDRICAL_EQAREA?d=`PROJCS["${g}",${m},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${l}],PARAMETER["Standard_Parallel_1",${p}],PARAMETER["Latitude_of_Origin",${u}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPcsFixed");const P=(0,_.b)(d);return E[h]&&E[h].destroy(),E[h]=P,P}(e,t);if(null!==n)return(0,r.o)(n,!1);const i=e.getText(),a=e.getUnit().getUnitToBaseFactor(),h=(t.xmin+t.width()/2)*a,o=(t.ymin+t.height()/2)*a;let m=0,l=0,u=-1;t.ymin*a>=75*Math.PI/180||t.ymax*a<=-60*Math.PI/180?u=_.aG.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:t.ymin>0||t.ymax<0?(m=(t.ymin+1/3*t.height())*a,l=(t.ymin+2/3*t.height())*a,u=_.aG.PE_PRJ_ALBERS):(m=(t.ymin+2/3*t.height())*a,u=_.aG.PE_PRJ_CYLINDRICAL_EQAREA);const p=(0,_.j)("EqualAreaPCS");let c;return u===_.aG.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?c=`PROJCS["${p}",${i},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:u===_.aG.PE_PRJ_ALBERS?c=`PROJCS["${p}",${i},PROJECTION["Albers"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Standard_Parallel_2",${l}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:u===_.aG.PE_PRJ_CYLINDRICAL_EQAREA?c=`PROJCS["${p}",${i},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPCSInstance"),(0,r.o)((0,_.b)(c),!0)}(n,e),m=(0,_.y)(n,t,null),l=(new _.O).execute(a,m,i).calculateArea2D();return o&&t.destroy(),l}return 0}const E=[null,null,null,null,null,null,null];class f{getOperatorType(){return 10314}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){if(0===t.getCoordinateSystemType()&&(0,s.a)(""),e.isEmpty()||e.getDimension()<2)return 0;if((0,s.c)(e),e.getGeometryType()===s.G.enumEnvelope){const s=new i.P;return s.addEnvelope(e,!1),this.execute(s,t,n)}let u=e;e.getDescription().getAttributeCount()>1&&(u=e.clone(),u.dropAllAttributes());const p=(new a.O).execute(u,0,t.getTolerance(0),0,n);let c=null;const P=t.getGCS();P!==t&&(c=(0,_.y)(t,P));let E=(new _.D).execute(p,t,!1,n);return E.isEmpty()?0:(E===e&&(E=e.clone()),t.isPannable()?function(e,t,n){const s=new h.Envelope2D;e.queryEnvelope(s);const a=(0,o.c)(t,s,!0).total(),l=t.getPannableExtent();l.xmin=s.xmin-10*a,l.xmax=s.xmax+10*a;const u=(new m.O).execute(e,l,t,n).getImpl().querySegmentIterator();u.stripAttributes();const p=(0,_.r)();t.querySpheroidData(p);const c=p.e2,d=0===c?2:1,P=new r.P(0,0),E=new r.P(0,0),f=new r.K(0),S=new g(P,E,t,c,100);for(;u.nextPath();)for(;u.hasNextSegment();){const e=u.nextSegment();P.assign(e.getStartXY()),E.assign(e.getEndXY()),S.setSegmentEndPoints(P,E);const t=(0,i.x)(6,0,1,1e-12,1e-15,S.makeFunctor());f.pe((E.x-P.x)*t)}const y=p.majorSemiAxis;return d*y*y*(1-c)*Math.PI*f.getResult()/t.getPannableExtent().width()}(E,t,n):function(e,t,n,s,i){const a=function(e,t,n){const s=e.calculateLength2D(),i=(new l.O).execute(e,t,n)/25e3,a=s/e.getSegmentCount()*2;let _=Math.min(a,s/i);return 0===_&&(_=1),(0,r.o)(_,s/_)}(e,t,i);let _=d(e,a.first,n,s,i),h=1,o=0,m=0;do{if(h++,a.first*=.5,a.first<50*t.getTolerance(0))return _;a.second*=2,m=d(e,a.first,n,s,i),o=Math.abs(m-_),_=m}while(Math.abs(_)>1&&o>1e-8*Math.abs(_)&&(a.second<65e3&&h<8||h<4));return m}(E,t,P,c,n))}}function S(){return{m_p_PCS:new r.P,m_factor:Number.NaN,setValues:y,assign:x}}function y(e,t){this.m_factor=e,this.m_p_PCS.assign(t)}function x(e){this.m_factor=e.m_factor,this.m_p_PCS.assign(e.m_p_PCS)}class A{m_ptStart=new o.k;m_ptEnd=new o.k;m_deltaX;m_deltaY;m_e;m_e2;m_c1MinusE2;m_baseA;constructor(e,t,n,s){this.m_ptStart.assign(t),this.m_ptEnd.assign(n),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y,this.m_e=Math.sqrt(e),this.m_e2=e,this.m_c1MinusE2=1-e;const i=Math.sin(s);let a;a=0===this.m_e2?2*i:i*((0,r.z)(this.m_e*i)+1/(1-this.m_e2*i*i)),this.m_baseA=a}setSegmentEndPoints(e,t){this.m_ptStart.assign(e),this.m_ptEnd.assign(t),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y}makeFunctor(){return e=>{const t=1-e,n=t*this.m_ptStart.x+e*this.m_ptEnd.x,s=t*this.m_ptStart.y+e*this.m_ptEnd.y,i=t*this.m_ptStart.z+e*this.m_ptEnd.z,a=n*n+s*s,_=i/Math.sqrt(i*i+this.m_c1MinusE2*this.m_c1MinusE2*a);let h;return h=0===this.m_e2?2*_:_*((0,r.z)(this.m_e*_)+1/(1-this.m_e2*_*_)),(this.m_deltaY*n-this.m_deltaX*s)/a*(h-this.m_baseA)}}}function R(){return{sin_phi:Number.NaN,one_p_sin_phi:Number.NaN,one_m_sin_phi:Number.NaN,one_m_e_2_sin_2_phi:Number.NaN,sin_half_phi_pf:Number.NaN,sin_half_phi_pz:Number.NaN,sin_half_asin_e_sin_phi_pf:Number.NaN,sin_half_asin_e_sin_phi_pz:Number.NaN,atanh_sin_phi:Number.NaN,atanh_esin_phi:Number.NaN,make_negative:!1,initialize:C,changeSign:M,assign:T,clone:w}}function C(e,t,n,s){const i=.5*e;this.sin_phi=Math.sin(e);const a=t*this.sin_phi,_=.5*Math.asin(a);this.one_p_sin_phi=1+this.sin_phi,this.one_m_sin_phi=1-this.sin_phi,this.one_m_e_2_sin_2_phi=(1+a)*(1-a),this.sin_half_phi_pf=Math.sin(i+n),this.sin_half_phi_pz=Math.sin(i+s),this.sin_half_asin_e_sin_phi_pf=Math.sin(_+n),this.sin_half_asin_e_sin_phi_pz=Math.sin(_+s),this.atanh_sin_phi=Math.log(this.sin_half_phi_pf/this.sin_half_phi_pz),this.atanh_esin_phi=Math.log(this.sin_half_asin_e_sin_phi_pf/this.sin_half_asin_e_sin_phi_pz)}function M(){this.sin_phi=-this.sin_phi;let e=this.one_p_sin_phi;this.one_p_sin_phi=this.one_m_sin_phi,this.one_m_sin_phi=e,e=this.sin_half_phi_pf,this.sin_half_phi_pf=this.sin_half_phi_pz,this.sin_half_phi_pz=e,e=this.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pf=this.sin_half_asin_e_sin_phi_pz,this.sin_half_asin_e_sin_phi_pz=e,this.atanh_sin_phi=-this.atanh_sin_phi,this.atanh_esin_phi=-this.atanh_esin_phi}function T(e){this.sin_phi=e.sin_phi,this.one_p_sin_phi=e.one_p_sin_phi,this.one_m_sin_phi=e.one_m_sin_phi,this.one_m_e_2_sin_2_phi=e.one_m_e_2_sin_2_phi,this.sin_half_phi_pf=e.sin_half_phi_pf,this.sin_half_phi_pz=e.sin_half_phi_pz,this.sin_half_asin_e_sin_phi_pf=e.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pz=e.sin_half_asin_e_sin_phi_pz,this.atanh_sin_phi=e.atanh_sin_phi,this.atanh_esin_phi=e.atanh_esin_phi,this.make_negative=e.make_negative}function w(){return{...this}}class N{m_a;m_b;m_eSquared;m_inputSR;m_inputGCS;m_transformPCS2GCS=null;m_curveType;m_progressTracker;m_scaleToRadians=new p.T;m_scaleToDegrees=new p.T;m_rpu;constructor(e,t,n){this.m_progressTracker=n,(0,s.g)(4!==t),this.m_curveType=t,this.m_inputSR=e,e&&0!==e.getCoordinateSystemType()||(0,s.a)(""),this.m_inputGCS=e.getGCS(),this.m_a=0,this.m_eSquared=0,this.m_b=0,this.m_rpu=0}executePolygonGeodeticArea(e){let t,n=e.clone();if(n.dropAllAttributes(),e.hasNonLinearSegments()&&(n=(new a.O).execute(n,0,this.m_inputSR.getTolerance(0),0,this.m_progressTracker)),this.m_inputSR.isPannable()){const e=new h.Envelope2D;n.queryEnvelope(e);const t=this.m_inputSR.getPannableExtent();if(!t.containsEnvelope(e)){const s=t.getCenterX()-e.getCenterX(),i=new p.T;i.setShiftCoords(s,0),n.applyTransformation(i),e.move(s,0);const a=new r.E;t.queryIntervalX(a);const h=new r.E;e.queryIntervalX(h),n=a.contains(h)?(0,_.a9)(n,this.m_inputSR):(new _.O).foldInto360RangeGeodetic(n,this.m_inputSR,this.m_curveType)}}if(this.m_transformPCS2GCS?(n=(new _.D).execute(n,this.m_inputSR,!1,this.m_progressTracker),t=n.createInstance(),(0,_.ay)(this.m_transformPCS2GCS,n,t,this.m_progressTracker)||(t=(new _.O).execute(n,this.m_transformPCS2GCS,this.m_progressTracker))):t=(new _.D).execute(n,this.m_inputGCS,!1,this.m_progressTracker),t.isEmpty())return 0;if(1===this.m_curveType){const e=(0,_.r)();return this.m_inputGCS.querySpheroidData(e),this.m_a=e.majorSemiAxis,this.m_eSquared=e.e2,this.loxodromeArea(t)}const s=t.getImpl();this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_scaleToRadians.setScale(this.m_rpu),s.applyTransformation(this.m_scaleToRadians),this.m_scaleToDegrees=this.m_scaleToRadians,this.m_scaleToDegrees.invertThis();const i=(0,_.r)();if(this.m_inputGCS.querySpheroidData(i),this.m_a=i.majorSemiAxis,this.m_b=i.minorSemiAxis,this.m_eSquared=i.e2,2===this.m_curveType)return this.executeClippedPolygonGreatEllipticArea(t);{const e={stack:[],error:void 0,hasError:!1};try{const n=_.aU.unit(9101),s=this.m_inputGCS.getPECoordSys(),i=(0,u.mS)(e,s.cloneAlterUnits(n),!1);let a,r,h=this.executeClippedPolygonGeodeticArea(t,i,0),o=0;do{o++,a=this.executeClippedPolygonGeodeticArea(t,i,o),r=Math.abs(a-h),h=a}while(Math.abs(a)>1&&r>1e-8*Math.abs(a)&&o<7);return a}catch(t){e.error=t,e.hasError=!0}finally{(0,u.hk)(e)}}}executeClippedPolygonGeodeticArea(e,t,n){const s={stack:[],error:void 0,hasError:!1};try{const i=new h.Envelope2D;e.queryEnvelope(i);const a=(0,u.mS)(s,this.getEqualAreaPCSInstance(t,i),!1),o=e.clone();(0,_.aV)(a,o);const m=50,l=o.getImpl().getAttributeStreamRef(0),p=e.getImpl().getAttributeStreamRef(0),c=(0,u.mS)(s,new _.ag,!1),g=(0,u.mS)(s,new _.ag,!1),d=40,P=[0,0],E=(0,r.q)(S,d),f=(0,r.d)(d,-1),y=S(),x=S();let A,R;const C=a;let M=o.calculateArea2D();const T=new r.K(0),w=.5*Math.PI,N=1e-10*Math.abs(M)+1e-6,q=e.getPathCount();let b,v,I,k;const G=new r.P,L=new r.P,z=new r.P,D=new r.P,O=new r.P,$=new r.P;let F,U;for(v=e.getPathStart(0),b=0;b<q;b++,v=I)for(I=e.getPathEnd(b),l.queryPoint2D(I-1<<1,z),p.queryPoint2D(I-1<<1,G),Math.abs(G.y)>w&&(G.y=(0,r.f)(w,G.y)),k=v;k<I;k++,z.assign(D),G.assign(L)){if(l.queryPoint2D(k<<1,D),p.queryPoint2D(k<<1,L),Math.abs(L.y)>w&&(L.y=(0,r.f)(w,L.y)),F=r.P.distance(z,D),F<m||0===G.y&&0===L.y)continue;_.ah.geodeticDistance(this.m_a,this.m_eSquared,G.x,G.y,L.x,L.y,c,g,null,this.m_curveType);const e=c.val,t=g.val;for(y.setValues(0,z),x.setValues(1,D),R=n,E[0].assign(x),f[0]=n,A=0;A>=0;){U=.5*(y.m_factor+x.m_factor),_.ah.geodeticCoordinate(this.m_a,this.m_eSquared,G.x,G.y,e*U,t,c,g,this.m_curveType),O.x=c.val,O.y=g.val,P[0]=O.x,P[1]=O.y,_.aw.geogToProj(C,1,P),$.x=P[0],$.y=P[1];const n=.5*-$.offset(y.m_p_PCS,x.m_p_PCS)*r.P.distance(y.m_p_PCS,x.m_p_PCS);if(T.pe(n),Math.abs(n)>N||Math.abs(n)>0&&R>0)x.setValues(U,$),A++,E[A].assign(x),Math.abs(n)<=N?(R--,f[A-1]=R,f[A]=R):(R=f[A-1],f[A]=R);else{if(A<=0)break;y.assign(x),A--,x.assign(E[A]),R=f[A]}}}return M+=T.getResult(),Math.abs(M)}catch(e){s.error=e,s.hasError=!0}finally{(0,u.hk)(s)}}executeClippedPolygonGreatEllipticArea(e){const t=[],n=[],s=new r.P,i=new r.P,a=(0,_.ao)(1,this.m_eSquared,new r.P(0,.5*Math.PI)),m=new r.K(0),l=new r.K(0),u=new r.K(0),p=new o.k,c=new o.k,g=new h.Envelope2D;e.queryLooseEnvelope(g);let d=0;g.containsCoords(g.xmin,0)||(d=Math.abs(g.ymin)<Math.abs(g.ymax)?g.ymin:g.ymax);const P=new A(this.m_eSquared,p,c,d),E=this.m_a*this.m_a,f=e.getImpl().querySegmentIterator();for(f.stripAttributes();f.nextPath();)for(;f.hasNextSegment();){const e=f.nextSegment();s.assign(e.getStartXY()),i.assign(e.getEndXY()),i.x-s.x>Math.PI?s.x+=2*Math.PI:i.x-s.x<-Math.PI&&(i.x+=2*Math.PI),this.splitSegmentCrossingItegralThreshold(e,t,n);for(let e of t)p.assign((0,_.ao)(this.m_a,this.m_eSquared,e.getStartXY())),c.assign((0,_.ao)(this.m_a,this.m_eSquared,e.getEndXY())),P.setSegmentEndPoints(p,c),this.adaptiveIntegrationWithRomberg(P,m);for(let e of n){let t=e.getStartXY(),n=e.getEndXY(),s=d;t.y<0&&(n=(0,r.c)(t,t=n),t.y=-t.y,n.y=-n.y,s=-s);const i=(0,_.ao)(1,this.m_eSquared,t),h=(0,_.ao)(1,this.m_eSquared,n),m=Math.min(t.y,n.y),p=(0,_.aW)(this.m_eSquared,t.x,n.x,s,m);l.pe(p);const c=Math.abs((0,_.aW)(this.m_eSquared,t.x,n.x,m,r.l)),g=new o.k;g.setSub(i,a);const P=new o.k;P.setSub(h,a);const f=new o.k;f.setCrossProductVector(g,P);let S=E*(c-.5*f.length());S=(0,r.f)(S,n.x-t.x),u.pe(S)}t.length=0,n.length=0}return u.getResult()+E*(.5*(1-this.m_eSquared)*m.getResult()+l.getResult())}getEqualAreaPCSInstance(e,t){const n=t.getCenterX();let s,i;const a=t.height();let h,o;(h=t.ymin>45*Math.PI/180||t.ymax<45*-Math.PI/180)?s=(0,r.f)(.5*Math.PI,t.getCenterY()):(s=t.getCenterY(),i=t.ymin+a*(2/3));const m=(0,_.j)("EqualAreaPCS"),l=e.toString();return o=h?_.aU.fromString(_.aG.PE_TYPE_PROJCS,`PROJCS["${m}", ${l}, PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}], PARAMETER["Latitude_of_Origin", ${s}], UNIT["Meter",1.0]]`,!0):_.aU.fromString(_.aG.PE_TYPE_PROJCS,`PROJCS["${m}", ${l}, PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting", 0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}],PARAMETER["Standard_Parallel_1", ${i}],PARAMETER["Latitude_of_Origin", ${s}],UNIT["Meter",1.0]]`,!0),o}splitSegmentCrossingItegralThreshold(e,t,n){const s=100,a=400,h=(0,_.ao)(this.m_a,this.m_eSquared,new r.P(0,r.l)),m=(0,_.ao)(this.m_a,this.m_eSquared,new r.P(0,-r.l)),l=this.splitSegmentPassingThroughPole(e);for(let e of l){const l=e.getStartXY(),u=e.getEndXY(),p=(0,_.ao)(this.m_a,this.m_eSquared,l),c=(0,_.ao)(this.m_a,this.m_eSquared,u),g=new r.P,d=new o.k;let P=o.k.sqrDistance(h,p),E=o.k.sqrDistance(p,c);if(P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(p.add(d.mul(20))),g.assign((0,_.av)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:l,end:g})),l.assign(g)}if(p.assign((0,_.ao)(this.m_a,this.m_eSquared,l)),P=o.k.sqrDistance(h,c),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(c.sub(d.mul(20))),g.assign((0,_.av)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:g,end:u})),u.assign(g)}if(p.assign((0,_.ao)(this.m_a,this.m_eSquared,l)),c.assign((0,_.ao)(this.m_a,this.m_eSquared,u)),P=o.k.sqrDistance(m,p),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(p.add(d.mul(20))),g.assign((0,_.av)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:l,end:g})),l.assign(g)}if(p.assign((0,_.ao)(this.m_a,this.m_eSquared,l)),c.assign((0,_.ao)(this.m_a,this.m_eSquared,u)),P=o.k.sqrDistance(m,c),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(c.sub(d.mul(20))),g.assign((0,_.av)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:g,end:u})),u.assign(g)}t.push(new i.L({start:l,end:u}))}}splitSegmentPassingThroughPole(e){const t={stack:[],error:void 0,hasError:!1};try{const n=[],s=new o.k,a=new o.k,h=new o.k,m=new r.P,l=20,p=3.124139361,g=10,d=e.getStartXY(),P=e.getEndXY(),E=(0,u.mS)(t,new _.ag,!1);if(_.ah.geodeticDistance(this.m_a,this.m_eSquared,d.x,d.y,P.x,P.y,E,null,null,2),Math.abs(P.x-d.x)>p&&E.val>l){const e=new c.a(new r.P(0,90),d.divide(this.m_rpu),P.divide(this.m_rpu),this.m_inputGCS,2,2);let t=(0,_.ar)(e.makeFunctor(),0,1,1e-10);if(t.second<=g&&t.first>0&&t.first<1)return s.assign((0,_.ao)(this.m_a,this.m_eSquared,d)),a.assign((0,_.ao)(this.m_a,this.m_eSquared,P)),(0,r.y)(s,a,t.first,h),m.assign((0,_.av)(this.m_a,this.m_eSquared,h)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:P})),n;if(e.setPointDistFrom(new r.P(0,-90)),t=(0,_.ar)(e.makeFunctor(),0,1,1e-10),t.second<=g&&t.first>0&&t.first<1)return s.assign((0,_.ao)(this.m_a,this.m_eSquared,d)),a.assign((0,_.ao)(this.m_a,this.m_eSquared,P)),(0,r.y)(s,a,t.first,h),m.assign((0,_.av)(this.m_a,this.m_eSquared,h)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:P})),n}return n.push(new i.L({start:d,end:P})),n}catch(e){t.error=e,t.hasError=!0}finally{(0,u.hk)(t)}}adaptiveIntegrationWithRomberg(e,t){const n=e.makeFunctor();let s=0,a=1,_=n(s),r=n(a);const h=1e-17,o=1e-14;let m=(s+a)/2,l=n(m),u=Math.abs(l-_),p=Math.abs(r-l),c=0;for(;c++<32&&(u/p<.1||p/u<.1);)u<p?(t.pe((0,i.x)(5,s,m,o,h,n)),s=m,_=l):(t.pe((0,i.x)(5,m,a,o,h,n)),a=m,r=l),m=(s+a)/2,l=Math.abs(n(m)),u=Math.abs(l-_),p=Math.abs(r-l);t.pe((0,i.x)(5,s,a,o,h,n))}loxodromeAreaHemi(e,t,n,s,i){const a=n.clone(),_=i.clone();let h,o,m,l,u,p,c,g,d,P,E,f,S,y,x,A;return a.make_negative&&a.changeSign(),_.make_negative&&_.changeSign(),E=s-t,1===Math.abs(a.sin_phi)||1===Math.abs(_.sin_phi)?e.half_qp*E:a.sin_phi===_.sin_phi?(P=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,r.z)(e.e*a.sin_phi))*E,P):(x=Math.log(_.sin_half_phi_pf*a.sin_half_phi_pz/(_.sin_half_phi_pz*a.sin_half_phi_pf)),A=Math.log(_.sin_half_asin_e_sin_phi_pf*a.sin_half_asin_e_sin_phi_pz/(_.sin_half_asin_e_sin_phi_pz*a.sin_half_asin_e_sin_phi_pf)),1===this.m_eSquared?(u=0,h=.5*(x+_.sin_phi/_.one_m_e_2_sin_2_phi-a.sin_phi/a.one_m_e_2_sin_2_phi),o=0):(u=-2*e.atanh_e_over_e*(Math.log(_.one_p_sin_phi/a.one_p_sin_phi)-e.e*A),h=(x-e.e*A)/e.one_m_e_2,o=(Math.log(_.one_m_e_2_sin_2_phi/a.one_m_e_2_sin_2_phi)+u/e.atanh_e_over_e)/e.one_m_e_2),m=-A*(a.atanh_esin_phi+_.atanh_esin_phi),l=1/a.one_m_e_2_sin_2_phi-1/_.one_m_e_2_sin_2_phi,p=(0,r.A)(_.one_m_sin_phi/e.one_p_e,e.e)-(0,r.A)(a.one_m_sin_phi/e.one_p_e,e.e),c=(0,r.A)(_.one_p_sin_phi/e.one_p_e,e.e)-(0,r.A)(a.one_p_sin_phi/e.one_p_e,e.e),g=(0,r.A)(a.one_m_sin_phi/-e.one_m_e,e.e)-(0,r.A)(_.one_m_sin_phi/-e.one_m_e,e.e),d=(0,r.A)(a.one_p_sin_phi/-e.one_m_e,e.e)-(0,r.A)(_.one_p_sin_phi/-e.one_m_e,e.e),P=.25/h*(o+m+l+u+.5*(p+c+g+d)),P+=e.half_qp,f=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,r.z)(e.e*a.sin_phi)),S=.5*e.one_m_e_2*_.sin_phi*(1/_.one_m_e_2_sin_2_phi+(0,r.z)(e.e*_.sin_phi)),S<f&&(y=f,f=S,S=y),P<f&&(P=f),P>S&&(P=S),P*=E,P)}loxodromeArea(e){const t=Math.PI/180;let n=0;const s={e:Number.NaN,one_p_e:Number.NaN,one_m_e:Number.NaN,one_m_e_2:Number.NaN,atanh_e_over_e:Number.NaN,half_qp:Number.NaN,f:Number.NaN,z:Number.NaN},i=R(),a=R();s.e=Math.sqrt(this.m_eSquared),s.one_p_e=1+s.e,s.one_m_e=1-s.e,s.one_m_e_2=1-this.m_eSquared,s.atanh_e_over_e=(0,r.z)(s.e),this.m_eSquared>=1?s.half_qp=1:s.half_qp=.5*(1+s.atanh_e_over_e*s.one_m_e_2),s.f=.25*Math.PI,s.z=.75*Math.PI,a.initialize(0,s.e,s.f,s.z);const _=e.getPathCount(),h=new r.P,o=new r.P,m=e.getImpl().getAttributeStreamRef(0);for(let r=0;r<_;r++){const _=e.getPathStart(r),l=e.getPathEnd(r);if(!(l-_<=1)){m.queryPoint2D(2*(l-1),h);for(let e=_;e<l;e++){m.queryPoint2D(2*e,o);const r=h.y*t,l=o.y*t;if(e===_?(i.initialize(r,s.e,s.f,s.z),i.make_negative=!1):i.assign(a),a.initialize(l,s.e,s.f,s.z),a.make_negative=!1,h.y*o.y<0){if(h.y>=90&&o.y<=-90||o.y>=90&&h.y<=-90)return Number.NaN;const e=R();e.initialize(0,s.e,s.f,s.z),e.make_negative=!1;const _=i.atanh_sin_phi-s.e*i.atanh_esin_phi,m=a.atanh_sin_phi-s.e*a.atanh_esin_phi,l=(m*h.x-_*o.x)/(m-_);r<0?(i.make_negative=!0,n-=this.loxodromeAreaHemi(s,h.x*t,i,l*t,e),i.make_negative=!1,n+=this.loxodromeAreaHemi(s,l*t,e,o.x*t,a)):(n+=this.loxodromeAreaHemi(s,h.x*t,i,l*t,e),a.make_negative=!0,n-=this.loxodromeAreaHemi(s,l*t,e,o.x*t,a),a.make_negative=!1)}else h.y>=0?n+=this.loxodromeAreaHemi(s,h.x*t,i,o.x*t,a):(i.make_negative=!0,a.make_negative=!0,n-=this.loxodromeAreaHemi(s,h.x*t,i,o.x*t,a),i.make_negative=!1,a.make_negative=!1);h.assign(o)}}}return this.m_a*n*this.m_a}calculate(e){if(e.isEmpty()||e.getDimension()<2)return 0;if(e.getGeometryType()===s.G.enumEnvelope){const t=new i.P;return t.addEnvelope(e,!1),this.calculate(t)}return this.m_inputSR!==this.m_inputGCS&&null===this.m_transformPCS2GCS&&(this.m_transformPCS2GCS=(0,_.y)(this.m_inputSR,this.m_inputGCS,null)),this.executePolygonGeodeticArea(e)}}class q{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,i){return(0,s.c)(e),4===n?(new f).execute(e,t,i):new N(t,n,i).calculate(e)}}},47591(e,t,n){n.d(t,{O:()=>g});var s=n(55537),i=n(39117),a=n(88885),_=n(83661),r=n(95213),h=n(79187),o=n(5247),m=n(31139);function l(){return{m_pGcs:new _.P,m_xyz:new r.k,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:u,setLength:p,assign:c}}function u(e,t,n,s){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(s),this.m_geoLength=n}function p(e){this.m_geoLength=e}function c(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class g{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,n,s,a){if(e.hasNonLinearSegments()&&(e=(new o.O).execute(e,0,t.getTolerance(0),0,a)),t.isPannable()){let s=90,_=-90;if(1===n.getUnit().getUnitToBaseFactor()&&(s*=Math.PI/180,_*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const n=[0,0,0,0];e=t.getPECoordSys(),n[0]=0,n[1]=s,n[2]=0,n[3]=_,i.aw.geogToProj(e,2,n),s=n[1],_=n[3]}const r=new h.Envelope2D;e.queryEnvelope(r),r.ymin=_,r.ymax=s,e=(new m.O).execute(e,r,t,a)}else{const n=t.getPCSHorizon();if((e=(new i.V).execute(e,n,t,a))===n){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,n,s,1,a)}_ExecuteIterativeApproach(e,t,n,a,h,o){const m=(0,i.r)();n.querySpheroidData(m);const u=m.majorSemiAxis,p=m.e2,c=n.getUnit().getUnitToBaseFactor(),g=(0,_.q)(l,40),E=(0,_.d)(40,Number.NaN),f=l(),S=l();let y;const x=[0,0,0,0],A=t.getPECoordSys(),R=new _.P,C=new _.P,M=new _.P,T=new _.P,w=new _.P;let N=0;const q=e.querySegmentIterator();for(;q.nextPath();)for(;q.hasNextSegment();){const e=q.nextSegment();R.assign(e.getStartXY()),C.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(x[0]=R.x,x[1]=R.y,x[2]=C.x,x[3]=C.y,i.aw.projToGeog(A,2,x),M.x=x[0]*c,M.y=x[1]*c,T.x=x[2]*c,T.y=x[3]*c):(M.setCoordsPoint2D(R),T.setCoordsPoint2D(C),M.scale(c),T.scale(c));const n=new r.k,a=new r.k;d(u,p,M,n),d(u,p,T,a);let _=P(u,n,a);f.setValues(0,M,Number.NaN,n),S.setValues(1,T,_,a),y=h,g[0].assign(S),E[0]=h;let o=0;for(;;){o>128&&(0,s.d)("iterations exceeded");const n=.5*(f.m_factor+S.m_factor),a=e.getCoord2D(n);2===t.getCoordinateSystemType()?(x[0]=a.x,x[1]=a.y,i.aw.projToGeog(A,1,x),w.x=x[0]*c,w.y=x[1]*c):(w.setCoordsPoint2D(a),w.scale(c)),M.setCoordsPoint2D(f.m_pGcs),T.setCoordsPoint2D(S.m_pGcs);const m=new r.k;d(u,p,w,m);const l=P(u,f.m_xyz,m),R=P(u,S.m_xyz,m);_=S.m_geoLength,Number.isNaN(_)&&(_=P(u,f.m_xyz,S.m_xyz));const C=l+R,q=y===h&&C>=20&&Math.abs(C-_)>1e-8*(_+C);if(o+2<40&&(q||Math.abs(C-_)>0&&y>0))S.setLength(R),g[o].assign(S),S.setValues(n,w,l,m),g[++o].assign(S),q?(y=h,E[o]=h):(y--,E[o-1]=y,E[o]=y);else{if(N+=C,0===o)break;f.assign(S),S.assign(g[--o]),y=E[o]}}}return N}execute(e,t,n){if(t&&0!==t.getCoordinateSystemType()||(0,s.a)(""),e.isEmpty()||e.getDimension()<1)return 0;let _=null;const r=t.getGCS();r!==t&&(_=(0,i.y)(t,r,null));const h=e.getGeometryType();if(h===s.G.enumEnvelope){const s=new a.P;return s.addEnvelope(e,!1),this._ExecuteShapePreservingLength(s,t,r,_,n)}if((0,s.h)(h)){const s=new a.a;return s.addSegment(e,!0),this._ExecuteShapePreservingLength(s,t,r,_,n)}return this._ExecuteShapePreservingLength(e,t,r,_,n)}}function d(e,t,n,s){s.assign((0,i.ao)(e,t,n))}function P(e,t,n){const s=e,i=new r.k;i.setSub(t,n);const a=i.length();return 2*s*Math.asin(a/(2*s))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6558],{6558(e,t,n){n.r(t),n.d(t,{OperatorGeodeticArea:()=>N});var s=n(55537),i=n(88885),a=n(5247),_=n(39117),r=n(83661),h=n(79187),o=n(95213),m=n(31139),l=n(47591),u=n(5482),p=n(11878),c=n(22024);class g{m_startPt;m_endPt;m_cE2;m_cE;m_c1By2e;m_cRpu;isPcs;PEProjcs;m_points;constructor(e,t,n,s,i=100){this.m_startPt=e.clone(),this.m_endPt=t.clone(),this.m_cE2=s,this.m_cE=Math.sqrt(this.m_cE2),this.m_c1By2e=1/(2*this.m_cE),this.m_cRpu=n.getGCS().getUnit().getUnitToBaseFactor(),this.isPcs=2===n.getCoordinateSystemType(),this.PEProjcs=n.getPECoordSys(),this.m_points=(0,r.d)(2*i,Number.NaN)}setSegmentEndPoints(e,t){this.m_startPt.assign(e),this.m_endPt.assign(t)}makeFunctor(){return e=>{const t=[0,0];t[0]=this.m_startPt.x*(1-e)+this.m_endPt.x*e,t[1]=this.m_startPt.y*(1-e)+this.m_endPt.y*e,this.isPcs&&_.ay.projToGeogCenter(this.PEProjcs,1,t,0);const n=Math.sin(t[1]*this.m_cRpu);return 0===this.m_cE2?n:-Math.log((1-this.m_cE*n)/(1+this.m_cE*n))*this.m_c1By2e+n/(1-this.m_cE2*n*n)}}}function d(e,t,n,s,i){const r=(new a.O).execute(e,t,0,0,i);let o;o=s?(new _.O).execute(r,s,i):r;const m=1===n.getUnit().getUnitToBaseFactor()?Math.PI/180:1,l=new h.Envelope2D;o.queryEnvelope(l);const u=new h.Envelope2D,p=new h.Envelope2D,c=new h.Envelope2D;u.setCoords({xmin:l.xmin,ymin:75*m,xmax:l.xmax,ymax:90*m}),p.setCoords({xmin:l.xmin,ymin:-60*m,xmax:l.xmax,ymax:75*m}),c.setCoords({xmin:l.xmin,ymin:-90*m,xmax:l.xmax,ymax:-60*m}),u.inflateCoords(.01*u.width(),0),p.inflateCoords(.01*p.width(),0),c.inflateCoords(.01*c.width(),0);let g=0;return g+=P(o,u,n,i),g+=P(o,p,n,i),g+=P(o,c,n,i),g}function P(e,t,n,i){const a=(new m.O).execute(e,t,n,i);if(null!==a&&!a.isEmpty()){const e=new h.Envelope2D;a.queryEnvelope(e);const{first:t,second:o}=function(e,t){const n=function(e,t){const n=e.getUnit().getUnitToBaseFactor(),i=t.getCenter();i.scale(180*n/Math.PI);const a=new r.P;a.x=0,a.y=0;let h=0;if(0===h){i.y>45?(a.y=r.l,h=0):i.y<-45?(a.y=-r.l,h=1):i.x>=45&&i.x<135?(a.x=r.l,h=2):i.x>=135||i.x<-135?(a.x=r.l,h=3):i.x<-45&&i.x>=-135?(a.x=-r.l,h=4):(a.x=0,h=5);const e=n*Math.sqrt((0,r.a)(t.xmin-t.xmax)+(0,r.a)(t.ymin-t.ymax)),s=a.clone(),_=t.getCenter();if(_.scale(n),h<2&&(s.x=_.x),r.P.distance(s,_)+.5*e>r.l)return null}const o=E[h];if(null!==o&&o.getGCS().equalHorizontal(e))return o;const m=e.getText(),l=a.x,u=a.y;let p=0,c=-1;6!==h?c=_.aI.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:((0,s.g)(false),p=0,c=_.aI.PE_PRJ_CYLINDRICAL_EQAREA);const g=(0,_.j)("EqualAreaPCS");let d;c===_.aI.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?d=`PROJCS["${g}",${m},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${l}],PARAMETER["Latitude_of_Origin",${u}],UNIT["Meter",1.0]]`:c===_.aI.PE_PRJ_CYLINDRICAL_EQAREA?d=`PROJCS["${g}",${m},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${l}],PARAMETER["Standard_Parallel_1",${p}],PARAMETER["Latitude_of_Origin",${u}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPcsFixed");const P=(0,_.b)(d);return E[h]&&E[h].destroy(),E[h]=P,P}(e,t);if(null!==n)return(0,r.o)(n,!1);const i=e.getText(),a=e.getUnit().getUnitToBaseFactor(),h=(t.xmin+t.width()/2)*a,o=(t.ymin+t.height()/2)*a;let m=0,l=0,u=-1;t.ymin*a>=75*Math.PI/180||t.ymax*a<=-60*Math.PI/180?u=_.aI.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:t.ymin>0||t.ymax<0?(m=(t.ymin+1/3*t.height())*a,l=(t.ymin+2/3*t.height())*a,u=_.aI.PE_PRJ_ALBERS):(m=(t.ymin+2/3*t.height())*a,u=_.aI.PE_PRJ_CYLINDRICAL_EQAREA);const p=(0,_.j)("EqualAreaPCS");let c;return u===_.aI.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?c=`PROJCS["${p}",${i},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:u===_.aI.PE_PRJ_ALBERS?c=`PROJCS["${p}",${i},PROJECTION["Albers"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Standard_Parallel_2",${l}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:u===_.aI.PE_PRJ_CYLINDRICAL_EQAREA?c=`PROJCS["${p}",${i},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${h}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:(0,s.d)("getEqualAreaPCSInstance"),(0,r.o)((0,_.b)(c),!0)}(n,e),m=(0,_.B)(n,t,null),l=(new _.O).execute(a,m,i).calculateArea2D();return o&&t.destroy(),l}return 0}const E=[null,null,null,null,null,null,null];class f{getOperatorType(){return 10314}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){if(0===t.getCoordinateSystemType()&&(0,s.a)(""),e.isEmpty()||e.getDimension()<2)return 0;if((0,s.c)(e),e.getGeometryType()===s.G.enumEnvelope){const s=new i.P;return s.addEnvelope(e,!1),this.execute(s,t,n)}let u=e;e.getDescription().getAttributeCount()>1&&(u=e.clone(),u.dropAllAttributes());const p=(new a.O).execute(u,0,t.getTolerance(0),0,n);let c=null;const P=t.getGCS();P!==t&&(c=(0,_.B)(t,P));let E=(new _.H).execute(p,t,!1,n);return E.isEmpty()?0:(E===e&&(E=e.clone()),t.isPannable()?function(e,t,n){const s=new h.Envelope2D;e.queryEnvelope(s);const a=(0,o.c)(t,s,!0).total(),l=t.getPannableExtent();l.xmin=s.xmin-10*a,l.xmax=s.xmax+10*a;const u=(new m.O).execute(e,l,t,n).getImpl().querySegmentIterator();u.stripAttributes();const p=(0,_.r)();t.querySpheroidData(p);const c=p.e2,d=0===c?2:1,P=new r.P(0,0),E=new r.P(0,0),f=new r.K(0),S=new g(P,E,t,c,100);for(;u.nextPath();)for(;u.hasNextSegment();){const e=u.nextSegment();P.assign(e.getStartXY()),E.assign(e.getEndXY()),S.setSegmentEndPoints(P,E);const t=(0,i.x)(6,0,1,1e-12,1e-15,S.makeFunctor());f.pe((E.x-P.x)*t)}const y=p.majorSemiAxis;return d*y*y*(1-c)*Math.PI*f.getResult()/t.getPannableExtent().width()}(E,t,n):function(e,t,n,s,i){const a=function(e,t,n){const s=e.calculateLength2D(),i=(new l.O).execute(e,t,n)/25e3,a=s/e.getSegmentCount()*2;let _=Math.min(a,s/i);return 0===_&&(_=1),(0,r.o)(_,s/_)}(e,t,i);let _=d(e,a.first,n,s,i),h=1,o=0,m=0;do{if(h++,a.first*=.5,a.first<50*t.getTolerance(0))return _;a.second*=2,m=d(e,a.first,n,s,i),o=Math.abs(m-_),_=m}while(Math.abs(_)>1&&o>1e-8*Math.abs(_)&&(a.second<65e3&&h<8||h<4));return m}(E,t,P,c,n))}}function S(){return{m_p_PCS:new r.P,m_factor:Number.NaN,setValues:y,assign:x}}function y(e,t){this.m_factor=e,this.m_p_PCS.assign(t)}function x(e){this.m_factor=e.m_factor,this.m_p_PCS.assign(e.m_p_PCS)}class A{m_ptStart=new o.k;m_ptEnd=new o.k;m_deltaX;m_deltaY;m_e;m_e2;m_c1MinusE2;m_baseA;constructor(e,t,n,s){this.m_ptStart.assign(t),this.m_ptEnd.assign(n),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y,this.m_e=Math.sqrt(e),this.m_e2=e,this.m_c1MinusE2=1-e;const i=Math.sin(s);let a;a=0===this.m_e2?2*i:i*((0,r.z)(this.m_e*i)+1/(1-this.m_e2*i*i)),this.m_baseA=a}setSegmentEndPoints(e,t){this.m_ptStart.assign(e),this.m_ptEnd.assign(t),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y}makeFunctor(){return e=>{const t=1-e,n=t*this.m_ptStart.x+e*this.m_ptEnd.x,s=t*this.m_ptStart.y+e*this.m_ptEnd.y,i=t*this.m_ptStart.z+e*this.m_ptEnd.z,a=n*n+s*s,_=i/Math.sqrt(i*i+this.m_c1MinusE2*this.m_c1MinusE2*a);let h;return h=0===this.m_e2?2*_:_*((0,r.z)(this.m_e*_)+1/(1-this.m_e2*_*_)),(this.m_deltaY*n-this.m_deltaX*s)/a*(h-this.m_baseA)}}}function R(){return{sin_phi:Number.NaN,one_p_sin_phi:Number.NaN,one_m_sin_phi:Number.NaN,one_m_e_2_sin_2_phi:Number.NaN,sin_half_phi_pf:Number.NaN,sin_half_phi_pz:Number.NaN,sin_half_asin_e_sin_phi_pf:Number.NaN,sin_half_asin_e_sin_phi_pz:Number.NaN,atanh_sin_phi:Number.NaN,atanh_esin_phi:Number.NaN,make_negative:!1,initialize:C,changeSign:M,assign:T,clone:q}}function C(e,t,n,s){const i=.5*e;this.sin_phi=Math.sin(e);const a=t*this.sin_phi,_=.5*Math.asin(a);this.one_p_sin_phi=1+this.sin_phi,this.one_m_sin_phi=1-this.sin_phi,this.one_m_e_2_sin_2_phi=(1+a)*(1-a),this.sin_half_phi_pf=Math.sin(i+n),this.sin_half_phi_pz=Math.sin(i+s),this.sin_half_asin_e_sin_phi_pf=Math.sin(_+n),this.sin_half_asin_e_sin_phi_pz=Math.sin(_+s),this.atanh_sin_phi=Math.log(this.sin_half_phi_pf/this.sin_half_phi_pz),this.atanh_esin_phi=Math.log(this.sin_half_asin_e_sin_phi_pf/this.sin_half_asin_e_sin_phi_pz)}function M(){this.sin_phi=-this.sin_phi;let e=this.one_p_sin_phi;this.one_p_sin_phi=this.one_m_sin_phi,this.one_m_sin_phi=e,e=this.sin_half_phi_pf,this.sin_half_phi_pf=this.sin_half_phi_pz,this.sin_half_phi_pz=e,e=this.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pf=this.sin_half_asin_e_sin_phi_pz,this.sin_half_asin_e_sin_phi_pz=e,this.atanh_sin_phi=-this.atanh_sin_phi,this.atanh_esin_phi=-this.atanh_esin_phi}function T(e){this.sin_phi=e.sin_phi,this.one_p_sin_phi=e.one_p_sin_phi,this.one_m_sin_phi=e.one_m_sin_phi,this.one_m_e_2_sin_2_phi=e.one_m_e_2_sin_2_phi,this.sin_half_phi_pf=e.sin_half_phi_pf,this.sin_half_phi_pz=e.sin_half_phi_pz,this.sin_half_asin_e_sin_phi_pf=e.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pz=e.sin_half_asin_e_sin_phi_pz,this.atanh_sin_phi=e.atanh_sin_phi,this.atanh_esin_phi=e.atanh_esin_phi,this.make_negative=e.make_negative}function q(){return{...this}}class w{m_a;m_b;m_eSquared;m_inputSR;m_inputGCS;m_transformPCS2GCS=null;m_curveType;m_progressTracker;m_scaleToRadians=new p.T;m_scaleToDegrees=new p.T;m_rpu;constructor(e,t,n){this.m_progressTracker=n,(0,s.g)(4!==t),this.m_curveType=t,this.m_inputSR=e,e&&0!==e.getCoordinateSystemType()||(0,s.a)(""),this.m_inputGCS=e.getGCS(),this.m_a=0,this.m_eSquared=0,this.m_b=0,this.m_rpu=0}executePolygonGeodeticArea(e){let t,n=e.clone();if(n.dropAllAttributes(),e.hasNonLinearSegments()&&(n=(new a.O).execute(n,0,this.m_inputSR.getTolerance(0),0,this.m_progressTracker)),this.m_inputSR.isPannable()){const e=new h.Envelope2D;n.queryEnvelope(e);const t=this.m_inputSR.getPannableExtent();if(!t.containsEnvelope(e)){const s=t.getCenterX()-e.getCenterX(),i=new p.T;i.setShiftCoords(s,0),n.applyTransformation(i),e.move(s,0);const a=new r.E;t.queryIntervalX(a);const h=new r.E;e.queryIntervalX(h),n=a.contains(h)?(0,_.ab)(n,this.m_inputSR):(new _.O).foldInto360RangeGeodetic(n,this.m_inputSR,this.m_curveType)}}if(this.m_transformPCS2GCS?(n=(new _.H).execute(n,this.m_inputSR,!1,this.m_progressTracker),t=n.createInstance(),(0,_.aA)(this.m_transformPCS2GCS,n,t,this.m_progressTracker)||(t=(new _.O).execute(n,this.m_transformPCS2GCS,this.m_progressTracker))):t=(new _.H).execute(n,this.m_inputGCS,!1,this.m_progressTracker),t.isEmpty())return 0;if(1===this.m_curveType){const e=(0,_.r)();return this.m_inputGCS.querySpheroidData(e),this.m_a=e.majorSemiAxis,this.m_eSquared=e.e2,this.loxodromeArea(t)}const s=t.getImpl();this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_scaleToRadians.setScale(this.m_rpu),s.applyTransformation(this.m_scaleToRadians),this.m_scaleToDegrees=this.m_scaleToRadians,this.m_scaleToDegrees.invertThis();const i=(0,_.r)();if(this.m_inputGCS.querySpheroidData(i),this.m_a=i.majorSemiAxis,this.m_b=i.minorSemiAxis,this.m_eSquared=i.e2,2===this.m_curveType)return this.executeClippedPolygonGreatEllipticArea(t);{const e={stack:[],error:void 0,hasError:!1};try{const n=_.aW.unit(9101),s=this.m_inputGCS.getPECoordSys(),i=(0,u.mS)(e,s.cloneAlterUnits(n),!1);let a,r,h=this.executeClippedPolygonGeodeticArea(t,i,0),o=0;do{o++,a=this.executeClippedPolygonGeodeticArea(t,i,o),r=Math.abs(a-h),h=a}while(Math.abs(a)>1&&r>1e-8*Math.abs(a)&&o<7);return a}catch(t){e.error=t,e.hasError=!0}finally{(0,u.hk)(e)}}}executeClippedPolygonGeodeticArea(e,t,n){const s={stack:[],error:void 0,hasError:!1};try{const i=new h.Envelope2D;e.queryEnvelope(i);const a=(0,u.mS)(s,this.getEqualAreaPCSInstance(t,i),!1),o=e.clone();(0,_.aX)(a,o);const m=50,l=o.getImpl().getAttributeStreamRef(0),p=e.getImpl().getAttributeStreamRef(0),c=(0,u.mS)(s,new _.ai,!1),g=(0,u.mS)(s,new _.ai,!1),d=40,P=[0,0],E=(0,r.q)(S,d),f=(0,r.d)(d,-1),y=S(),x=S();let A,R;const C=a;let M=o.calculateArea2D();const T=new r.K(0),q=.5*Math.PI,w=1e-10*Math.abs(M)+1e-6,N=e.getPathCount();let b,v,I,k;const L=new r.P,z=new r.P,D=new r.P,G=new r.P,O=new r.P,$=new r.P;let F,Y;for(v=e.getPathStart(0),b=0;b<N;b++,v=I)for(I=e.getPathEnd(b),l.queryPoint2D(I-1<<1,D),p.queryPoint2D(I-1<<1,L),Math.abs(L.y)>q&&(L.y=(0,r.f)(q,L.y)),k=v;k<I;k++,D.assign(G),L.assign(z)){if(l.queryPoint2D(k<<1,G),p.queryPoint2D(k<<1,z),Math.abs(z.y)>q&&(z.y=(0,r.f)(q,z.y)),F=r.P.distance(D,G),F<m||0===L.y&&0===z.y)continue;_.aj.geodeticDistance(this.m_a,this.m_eSquared,L.x,L.y,z.x,z.y,c,g,null,this.m_curveType);const e=c.val,t=g.val;for(y.setValues(0,D),x.setValues(1,G),R=n,E[0].assign(x),f[0]=n,A=0;A>=0;){Y=.5*(y.m_factor+x.m_factor),_.aj.geodeticCoordinate(this.m_a,this.m_eSquared,L.x,L.y,e*Y,t,c,g,this.m_curveType),O.x=c.val,O.y=g.val,P[0]=O.x,P[1]=O.y,_.ay.geogToProj(C,1,P),$.x=P[0],$.y=P[1];const n=.5*-$.offset(y.m_p_PCS,x.m_p_PCS)*r.P.distance(y.m_p_PCS,x.m_p_PCS);if(T.pe(n),Math.abs(n)>w||Math.abs(n)>0&&R>0)x.setValues(Y,$),A++,E[A].assign(x),Math.abs(n)<=w?(R--,f[A-1]=R,f[A]=R):(R=f[A-1],f[A]=R);else{if(A<=0)break;y.assign(x),A--,x.assign(E[A]),R=f[A]}}}return M+=T.getResult(),Math.abs(M)}catch(e){s.error=e,s.hasError=!0}finally{(0,u.hk)(s)}}executeClippedPolygonGreatEllipticArea(e){const t=[],n=[],s=new r.P,i=new r.P,a=(0,_.aq)(1,this.m_eSquared,new r.P(0,.5*Math.PI)),m=new r.K(0),l=new r.K(0),u=new r.K(0),p=new o.k,c=new o.k,g=new h.Envelope2D;e.queryLooseEnvelope(g);let d=0;g.containsCoords(g.xmin,0)||(d=Math.abs(g.ymin)<Math.abs(g.ymax)?g.ymin:g.ymax);const P=new A(this.m_eSquared,p,c,d),E=this.m_a*this.m_a,f=e.getImpl().querySegmentIterator();for(f.stripAttributes();f.nextPath();)for(;f.hasNextSegment();){const e=f.nextSegment();s.assign(e.getStartXY()),i.assign(e.getEndXY()),i.x-s.x>Math.PI?s.x+=2*Math.PI:i.x-s.x<-Math.PI&&(i.x+=2*Math.PI),this.splitSegmentCrossingItegralThreshold(e,t,n);for(let e of t)p.assign((0,_.aq)(this.m_a,this.m_eSquared,e.getStartXY())),c.assign((0,_.aq)(this.m_a,this.m_eSquared,e.getEndXY())),P.setSegmentEndPoints(p,c),this.adaptiveIntegrationWithRomberg(P,m);for(let e of n){let t=e.getStartXY(),n=e.getEndXY(),s=d;t.y<0&&(n=(0,r.c)(t,t=n),t.y=-t.y,n.y=-n.y,s=-s);const i=(0,_.aq)(1,this.m_eSquared,t),h=(0,_.aq)(1,this.m_eSquared,n),m=Math.min(t.y,n.y),p=(0,_.aY)(this.m_eSquared,t.x,n.x,s,m);l.pe(p);const c=Math.abs((0,_.aY)(this.m_eSquared,t.x,n.x,m,r.l)),g=new o.k;g.setSub(i,a);const P=new o.k;P.setSub(h,a);const f=new o.k;f.setCrossProductVector(g,P);let S=E*(c-.5*f.length());S=(0,r.f)(S,n.x-t.x),u.pe(S)}t.length=0,n.length=0}return u.getResult()+E*(.5*(1-this.m_eSquared)*m.getResult()+l.getResult())}getEqualAreaPCSInstance(e,t){const n=t.getCenterX();let s,i;const a=t.height();let h,o;(h=t.ymin>45*Math.PI/180||t.ymax<45*-Math.PI/180)?s=(0,r.f)(.5*Math.PI,t.getCenterY()):(s=t.getCenterY(),i=t.ymin+a*(2/3));const m=(0,_.j)("EqualAreaPCS"),l=e.toString();return o=h?_.aW.fromString(_.aI.PE_TYPE_PROJCS,`PROJCS["${m}", ${l}, PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}], PARAMETER["Latitude_of_Origin", ${s}], UNIT["Meter",1.0]]`,!0):_.aW.fromString(_.aI.PE_TYPE_PROJCS,`PROJCS["${m}", ${l}, PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting", 0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${n}],PARAMETER["Standard_Parallel_1", ${i}],PARAMETER["Latitude_of_Origin", ${s}],UNIT["Meter",1.0]]`,!0),o}splitSegmentCrossingItegralThreshold(e,t,n){const s=100,a=400,h=(0,_.aq)(this.m_a,this.m_eSquared,new r.P(0,r.l)),m=(0,_.aq)(this.m_a,this.m_eSquared,new r.P(0,-r.l)),l=this.splitSegmentPassingThroughPole(e);for(let e of l){const l=e.getStartXY(),u=e.getEndXY(),p=(0,_.aq)(this.m_a,this.m_eSquared,l),c=(0,_.aq)(this.m_a,this.m_eSquared,u),g=new r.P,d=new o.k;let P=o.k.sqrDistance(h,p),E=o.k.sqrDistance(p,c);if(P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(p.add(d.mul(20))),g.assign((0,_.ax)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:l,end:g})),l.assign(g)}if(p.assign((0,_.aq)(this.m_a,this.m_eSquared,l)),P=o.k.sqrDistance(h,c),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(c.sub(d.mul(20))),g.assign((0,_.ax)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:g,end:u})),u.assign(g)}if(p.assign((0,_.aq)(this.m_a,this.m_eSquared,l)),c.assign((0,_.aq)(this.m_a,this.m_eSquared,u)),P=o.k.sqrDistance(m,p),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(p.add(d.mul(20))),g.assign((0,_.ax)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:l,end:g})),l.assign(g)}if(p.assign((0,_.aq)(this.m_a,this.m_eSquared,l)),c.assign((0,_.aq)(this.m_a,this.m_eSquared,u)),P=o.k.sqrDistance(m,c),E=o.k.sqrDistance(p,c),P<=s){if(!(E>a)){n.push(new i.L({start:l,end:u}));continue}d.assign(c.sub(p)),d.normalizeThis(),d.assign(c.sub(d.mul(20))),g.assign((0,_.ax)(this.m_a,this.m_eSquared,d)),n.push(new i.L({start:g,end:u})),u.assign(g)}t.push(new i.L({start:l,end:u}))}}splitSegmentPassingThroughPole(e){const t={stack:[],error:void 0,hasError:!1};try{const n=[],s=new o.k,a=new o.k,h=new o.k,m=new r.P,l=20,p=3.124139361,g=10,d=e.getStartXY(),P=e.getEndXY(),E=(0,u.mS)(t,new _.ai,!1);if(_.aj.geodeticDistance(this.m_a,this.m_eSquared,d.x,d.y,P.x,P.y,E,null,null,2),Math.abs(P.x-d.x)>p&&E.val>l){const e=new c.a(new r.P(0,90),d.divide(this.m_rpu),P.divide(this.m_rpu),this.m_inputGCS,2,2);let t=(0,_.at)(e.makeFunctor(),0,1,1e-10);if(t.second<=g&&t.first>0&&t.first<1)return s.assign((0,_.aq)(this.m_a,this.m_eSquared,d)),a.assign((0,_.aq)(this.m_a,this.m_eSquared,P)),(0,r.y)(s,a,t.first,h),m.assign((0,_.ax)(this.m_a,this.m_eSquared,h)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:P})),n;if(e.setPointDistFrom(new r.P(0,-90)),t=(0,_.at)(e.makeFunctor(),0,1,1e-10),t.second<=g&&t.first>0&&t.first<1)return s.assign((0,_.aq)(this.m_a,this.m_eSquared,d)),a.assign((0,_.aq)(this.m_a,this.m_eSquared,P)),(0,r.y)(s,a,t.first,h),m.assign((0,_.ax)(this.m_a,this.m_eSquared,h)),n.push(new i.L({start:d,end:m})),n.push(new i.L({start:m,end:P})),n}return n.push(new i.L({start:d,end:P})),n}catch(e){t.error=e,t.hasError=!0}finally{(0,u.hk)(t)}}adaptiveIntegrationWithRomberg(e,t){const n=e.makeFunctor();let s=0,a=1,_=n(s),r=n(a);const h=1e-17,o=1e-14;let m=(s+a)/2,l=n(m),u=Math.abs(l-_),p=Math.abs(r-l),c=0;for(;c++<32&&(u/p<.1||p/u<.1);)u<p?(t.pe((0,i.x)(5,s,m,o,h,n)),s=m,_=l):(t.pe((0,i.x)(5,m,a,o,h,n)),a=m,r=l),m=(s+a)/2,l=Math.abs(n(m)),u=Math.abs(l-_),p=Math.abs(r-l);t.pe((0,i.x)(5,s,a,o,h,n))}loxodromeAreaHemi(e,t,n,s,i){const a=n.clone(),_=i.clone();let h,o,m,l,u,p,c,g,d,P,E,f,S,y,x,A;return a.make_negative&&a.changeSign(),_.make_negative&&_.changeSign(),E=s-t,1===Math.abs(a.sin_phi)||1===Math.abs(_.sin_phi)?e.half_qp*E:a.sin_phi===_.sin_phi?(P=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,r.z)(e.e*a.sin_phi))*E,P):(x=Math.log(_.sin_half_phi_pf*a.sin_half_phi_pz/(_.sin_half_phi_pz*a.sin_half_phi_pf)),A=Math.log(_.sin_half_asin_e_sin_phi_pf*a.sin_half_asin_e_sin_phi_pz/(_.sin_half_asin_e_sin_phi_pz*a.sin_half_asin_e_sin_phi_pf)),1===this.m_eSquared?(u=0,h=.5*(x+_.sin_phi/_.one_m_e_2_sin_2_phi-a.sin_phi/a.one_m_e_2_sin_2_phi),o=0):(u=-2*e.atanh_e_over_e*(Math.log(_.one_p_sin_phi/a.one_p_sin_phi)-e.e*A),h=(x-e.e*A)/e.one_m_e_2,o=(Math.log(_.one_m_e_2_sin_2_phi/a.one_m_e_2_sin_2_phi)+u/e.atanh_e_over_e)/e.one_m_e_2),m=-A*(a.atanh_esin_phi+_.atanh_esin_phi),l=1/a.one_m_e_2_sin_2_phi-1/_.one_m_e_2_sin_2_phi,p=(0,r.A)(_.one_m_sin_phi/e.one_p_e,e.e)-(0,r.A)(a.one_m_sin_phi/e.one_p_e,e.e),c=(0,r.A)(_.one_p_sin_phi/e.one_p_e,e.e)-(0,r.A)(a.one_p_sin_phi/e.one_p_e,e.e),g=(0,r.A)(a.one_m_sin_phi/-e.one_m_e,e.e)-(0,r.A)(_.one_m_sin_phi/-e.one_m_e,e.e),d=(0,r.A)(a.one_p_sin_phi/-e.one_m_e,e.e)-(0,r.A)(_.one_p_sin_phi/-e.one_m_e,e.e),P=.25/h*(o+m+l+u+.5*(p+c+g+d)),P+=e.half_qp,f=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,r.z)(e.e*a.sin_phi)),S=.5*e.one_m_e_2*_.sin_phi*(1/_.one_m_e_2_sin_2_phi+(0,r.z)(e.e*_.sin_phi)),S<f&&(y=f,f=S,S=y),P<f&&(P=f),P>S&&(P=S),P*=E,P)}loxodromeArea(e){const t=Math.PI/180;let n=0;const s={e:Number.NaN,one_p_e:Number.NaN,one_m_e:Number.NaN,one_m_e_2:Number.NaN,atanh_e_over_e:Number.NaN,half_qp:Number.NaN,f:Number.NaN,z:Number.NaN},i=R(),a=R();s.e=Math.sqrt(this.m_eSquared),s.one_p_e=1+s.e,s.one_m_e=1-s.e,s.one_m_e_2=1-this.m_eSquared,s.atanh_e_over_e=(0,r.z)(s.e),this.m_eSquared>=1?s.half_qp=1:s.half_qp=.5*(1+s.atanh_e_over_e*s.one_m_e_2),s.f=.25*Math.PI,s.z=.75*Math.PI,a.initialize(0,s.e,s.f,s.z);const _=e.getPathCount(),h=new r.P,o=new r.P,m=e.getImpl().getAttributeStreamRef(0);for(let r=0;r<_;r++){const _=e.getPathStart(r),l=e.getPathEnd(r);if(!(l-_<=1)){m.queryPoint2D(2*(l-1),h);for(let e=_;e<l;e++){m.queryPoint2D(2*e,o);const r=h.y*t,l=o.y*t;if(e===_?(i.initialize(r,s.e,s.f,s.z),i.make_negative=!1):i.assign(a),a.initialize(l,s.e,s.f,s.z),a.make_negative=!1,h.y*o.y<0){if(h.y>=90&&o.y<=-90||o.y>=90&&h.y<=-90)return Number.NaN;const e=R();e.initialize(0,s.e,s.f,s.z),e.make_negative=!1;const _=i.atanh_sin_phi-s.e*i.atanh_esin_phi,m=a.atanh_sin_phi-s.e*a.atanh_esin_phi,l=(m*h.x-_*o.x)/(m-_);r<0?(i.make_negative=!0,n-=this.loxodromeAreaHemi(s,h.x*t,i,l*t,e),i.make_negative=!1,n+=this.loxodromeAreaHemi(s,l*t,e,o.x*t,a)):(n+=this.loxodromeAreaHemi(s,h.x*t,i,l*t,e),a.make_negative=!0,n-=this.loxodromeAreaHemi(s,l*t,e,o.x*t,a),a.make_negative=!1)}else h.y>=0?n+=this.loxodromeAreaHemi(s,h.x*t,i,o.x*t,a):(i.make_negative=!0,a.make_negative=!0,n-=this.loxodromeAreaHemi(s,h.x*t,i,o.x*t,a),i.make_negative=!1,a.make_negative=!1);h.assign(o)}}}return this.m_a*n*this.m_a}calculate(e){if(e.isEmpty()||e.getDimension()<2)return 0;if(e.getGeometryType()===s.G.enumEnvelope){const t=new i.P;return t.addEnvelope(e,!1),this.calculate(t)}return this.m_inputSR!==this.m_inputGCS&&null===this.m_transformPCS2GCS&&(this.m_transformPCS2GCS=(0,_.B)(this.m_inputSR,this.m_inputGCS,null)),this.executePolygonGeodeticArea(e)}}class N{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,i){return(0,s.c)(e),4===n?(new f).execute(e,t,i):new w(t,n,i).calculate(e)}}},47591(e,t,n){n.d(t,{O:()=>g});var s=n(55537),i=n(39117),a=n(88885),_=n(83661),r=n(95213),h=n(79187),o=n(5247),m=n(31139);function l(){return{m_pGcs:new _.P,m_xyz:new r.k,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:u,setLength:p,assign:c}}function u(e,t,n,s){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(s),this.m_geoLength=n}function p(e){this.m_geoLength=e}function c(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class g{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,n,s,a){if(e.hasNonLinearSegments()&&(e=(new o.O).execute(e,0,t.getTolerance(0),0,a)),t.isPannable()){let s=90,_=-90;if(1===n.getUnit().getUnitToBaseFactor()&&(s*=Math.PI/180,_*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const n=[0,0,0,0];e=t.getPECoordSys(),n[0]=0,n[1]=s,n[2]=0,n[3]=_,i.ay.geogToProj(e,2,n),s=n[1],_=n[3]}const r=new h.Envelope2D;e.queryEnvelope(r),r.ymin=_,r.ymax=s,e=(new m.O).execute(e,r,t,a)}else{const n=t.getPCSHorizon();if((e=(new i.Z).execute(e,n,t,a))===n){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,n,s,1,a)}_ExecuteIterativeApproach(e,t,n,a,h,o){const m=(0,i.r)();n.querySpheroidData(m);const u=m.majorSemiAxis,p=m.e2,c=n.getUnit().getUnitToBaseFactor(),g=(0,_.q)(l,40),E=(0,_.d)(40,Number.NaN),f=l(),S=l();let y;const x=[0,0,0,0],A=t.getPECoordSys(),R=new _.P,C=new _.P,M=new _.P,T=new _.P,q=new _.P;let w=0;const N=e.querySegmentIterator();for(;N.nextPath();)for(;N.hasNextSegment();){const e=N.nextSegment();R.assign(e.getStartXY()),C.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(x[0]=R.x,x[1]=R.y,x[2]=C.x,x[3]=C.y,i.ay.projToGeog(A,2,x),M.x=x[0]*c,M.y=x[1]*c,T.x=x[2]*c,T.y=x[3]*c):(M.setCoordsPoint2D(R),T.setCoordsPoint2D(C),M.scale(c),T.scale(c));const n=new r.k,a=new r.k;d(u,p,M,n),d(u,p,T,a);let _=P(u,n,a);f.setValues(0,M,Number.NaN,n),S.setValues(1,T,_,a),y=h,g[0].assign(S),E[0]=h;let o=0;for(;;){o>128&&(0,s.d)("iterations exceeded");const n=.5*(f.m_factor+S.m_factor),a=e.getCoord2D(n);2===t.getCoordinateSystemType()?(x[0]=a.x,x[1]=a.y,i.ay.projToGeog(A,1,x),q.x=x[0]*c,q.y=x[1]*c):(q.setCoordsPoint2D(a),q.scale(c)),M.setCoordsPoint2D(f.m_pGcs),T.setCoordsPoint2D(S.m_pGcs);const m=new r.k;d(u,p,q,m);const l=P(u,f.m_xyz,m),R=P(u,S.m_xyz,m);_=S.m_geoLength,Number.isNaN(_)&&(_=P(u,f.m_xyz,S.m_xyz));const C=l+R,N=y===h&&C>=20&&Math.abs(C-_)>1e-8*(_+C);if(o+2<40&&(N||Math.abs(C-_)>0&&y>0))S.setLength(R),g[o].assign(S),S.setValues(n,q,l,m),g[++o].assign(S),N?(y=h,E[o]=h):(y--,E[o-1]=y,E[o]=y);else{if(w+=C,0===o)break;f.assign(S),S.assign(g[--o]),y=E[o]}}}return w}execute(e,t,n){if(t&&0!==t.getCoordinateSystemType()||(0,s.a)(""),e.isEmpty()||e.getDimension()<1)return 0;let _=null;const r=t.getGCS();r!==t&&(_=(0,i.B)(t,r,null));const h=e.getGeometryType();if(h===s.G.enumEnvelope){const s=new a.P;return s.addEnvelope(e,!1),this._ExecuteShapePreservingLength(s,t,r,_,n)}if((0,s.h)(h)){const s=new a.a;return s.addSegment(e,!0),this._ExecuteShapePreservingLength(s,t,r,_,n)}return this._ExecuteShapePreservingLength(e,t,r,_,n)}}function d(e,t,n,s){s.assign((0,i.aq)(e,t,n))}function P(e,t,n){const s=e,i=new r.k;i.setSub(t,n);const a=i.length();return 2*s*Math.asin(a/(2*s))}}}]);
|