@arcgis/core 5.0.0-next.22 → 5.0.0-next.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analysis/DistanceMeasurementAnalysis.d.ts +4 -0
- package/applications/SceneViewer/sceneViewerUtils.d.ts +1 -0
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/01b8e680befff83e7d3e.js +1 -0
- package/assets/esri/core/workers/chunks/024104997daea0d74b38.js +1 -0
- package/assets/esri/core/workers/chunks/052ded41dc06c93ec0a7.js +1 -0
- package/assets/esri/core/workers/chunks/05b7720ab6bf0874f27c.js +1 -0
- package/assets/esri/core/workers/chunks/06d52a570d5d44f8c86e.js +1 -0
- package/assets/esri/core/workers/chunks/0ef9641069433fef3826.js +1 -0
- package/assets/esri/core/workers/chunks/155d74b9c0ef31dc2316.js +1 -0
- package/assets/esri/core/workers/chunks/19820cddba13a3585c0b.js +1 -0
- package/assets/esri/core/workers/chunks/219876879bc543568bcd.js +1 -0
- package/assets/esri/core/workers/chunks/231c0b583fa97f2ca675.js +1 -0
- package/assets/esri/core/workers/chunks/274f2b5e6dbc58505142.js +1 -0
- package/assets/esri/core/workers/chunks/{02cd03ffd024d3ac1aa7.js → 27ec791318e81285c222.js} +1 -1
- package/assets/esri/core/workers/chunks/2921f05a40fda12f9f81.js +1 -0
- package/assets/esri/core/workers/chunks/2a41283bba2361afa1fd.js +1 -0
- package/assets/esri/core/workers/chunks/2c4218306747f5d15575.js +1 -0
- package/assets/esri/core/workers/chunks/2c7038a7ffaf75344b02.js +1 -0
- package/assets/esri/core/workers/chunks/2de32649f8b0c6404d7c.js +1 -0
- package/assets/esri/core/workers/chunks/31b5747a254d13acc58e.js +1 -0
- package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js → 3266c3392c24ce6cdd83.js} +2 -2
- package/assets/esri/core/workers/chunks/3777b41b4fa2f1418402.js +1 -0
- package/assets/esri/core/workers/chunks/3bacd904cd93c8013f6a.js +1 -0
- package/assets/esri/core/workers/chunks/41a00c77e6f7ce61e476.js +1 -0
- package/assets/esri/core/workers/chunks/45729d006db6a569715f.js +1 -0
- package/assets/esri/core/workers/chunks/4ab89c990a82c745c0fd.js +1 -0
- package/assets/esri/core/workers/chunks/4b14ee37b5ac50a734f9.js +1 -0
- package/assets/esri/core/workers/chunks/4cda42b94e9cb58dd372.js +1 -0
- package/assets/esri/core/workers/chunks/4ce28c936eaffe57c448.js +1 -0
- package/assets/esri/core/workers/chunks/538ddb267aa328814865.js +1 -0
- package/assets/esri/core/workers/chunks/58bbc8bc886c071b8ff3.js +1 -0
- package/assets/esri/core/workers/chunks/592afe1a41bed3b0cc31.js +1 -0
- package/assets/esri/core/workers/chunks/5aeda8a1f2ccabfdf40f.js +1 -0
- package/assets/esri/core/workers/chunks/5b290d18de61789417f9.js +1 -0
- package/assets/esri/core/workers/chunks/5b73c77587772120b209.js +1 -0
- package/assets/esri/core/workers/chunks/60eeeea671a523bb6b15.js +1 -0
- package/assets/esri/core/workers/chunks/6428e2f4fc0a6739cc9e.js +1 -0
- package/assets/esri/core/workers/chunks/69278d08a7d64917f826.js +2 -0
- package/assets/esri/core/workers/chunks/6e5d41f51572e3e7cf92.js +1 -0
- package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js → 6f3ffc04086bca30e55d.js} +2 -2
- package/assets/esri/core/workers/chunks/70e2804d3710c6af468e.js +2 -0
- package/assets/esri/core/workers/chunks/{1e5efacbbc8960f13472.js → 748ab87a25f23d94b662.js} +1 -1
- package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js → 78fc9a55e620602db1ff.js} +2 -2
- package/assets/esri/core/workers/chunks/7e6fae3660e7a6a0fa16.js +1 -0
- package/assets/esri/core/workers/chunks/7ffef8a19166f6b564d8.js +1 -0
- package/assets/esri/core/workers/chunks/{867a181969eeeb5f1856.js → 838b3ec88785ac7aa31b.js} +1 -1
- package/assets/esri/core/workers/chunks/83aa39fbb1fad3b9d143.js +1 -0
- package/assets/esri/core/workers/chunks/88aa71f02f43bb069345.js +1 -0
- package/assets/esri/core/workers/chunks/{74a251e7f5be72ca2a5a.js → 8b336a63737e917e50e2.js} +1 -1
- package/assets/esri/core/workers/chunks/8d4cc5f1d07b4aa3aea0.js +1 -0
- package/assets/esri/core/workers/chunks/8e9a5d38da40702def80.js +1 -0
- package/assets/esri/core/workers/chunks/{4f7b7587d7902355f2a1.js → 93fe46be3c7fe34b5361.js} +1 -1
- package/assets/esri/core/workers/chunks/9461cc37ab3397265270.js +1 -0
- package/assets/esri/core/workers/chunks/9527f1a611557a7af237.js +1 -0
- package/assets/esri/core/workers/chunks/97b01803d0c38541aa08.js +1 -0
- package/assets/esri/core/workers/chunks/9921c8d4487a0f580b93.js +1 -0
- package/assets/esri/core/workers/chunks/9d0f0d055ec25af037e0.js +1 -0
- package/assets/esri/core/workers/chunks/9f0172b83f25ef5f8d40.js +1 -0
- package/assets/esri/core/workers/chunks/a4f492aa5444e6381063.js +1 -0
- package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js → a67c3958d76d10c04fa6.js} +2 -2
- package/assets/esri/core/workers/chunks/aac313257a8b1ae75b75.js +1 -0
- package/assets/esri/core/workers/chunks/b48bb38e5d60fc7a9097.js +1 -0
- package/assets/esri/core/workers/chunks/b4c0a53c46ce4671d4c3.js +1 -0
- package/assets/esri/core/workers/chunks/bd58c027408dc858f23c.js +1 -0
- package/assets/esri/core/workers/chunks/be06c8a58c217a17451b.js +1 -0
- package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js → be631029691d9a320cb5.js} +2 -2
- package/assets/esri/core/workers/chunks/c5d6b416baf24e74b9ba.js +1 -0
- package/assets/esri/core/workers/chunks/cade149fa19b4d06dd24.js +1 -0
- package/assets/esri/core/workers/chunks/ccde4f65377228b017a8.js +1 -0
- package/assets/esri/core/workers/chunks/d21ae4980741be98f948.js +1 -0
- package/assets/esri/core/workers/chunks/d32aad968798948946e4.js +1 -0
- package/assets/esri/core/workers/chunks/d56548a994753b08403c.js +1 -0
- package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js → d9251c3c85c3ddd242c8.js} +2 -2
- package/assets/esri/core/workers/chunks/{6e9c88f66bcfc3476b44.js → db0f9267fbda893de043.js} +1 -1
- package/assets/esri/core/workers/chunks/e0369ce0d729c9656488.js +1 -0
- package/assets/esri/core/workers/chunks/e08a1934d98e7324776d.js +1 -0
- package/assets/esri/core/workers/chunks/e0b70652da4a7f672cfc.js +1 -0
- package/assets/esri/core/workers/chunks/{bfc171f630da9314d860.js → e5baa30944061418cb13.js} +1 -1
- package/assets/esri/core/workers/chunks/e689a4849f5af3f2f641.js +1 -0
- package/assets/esri/core/workers/chunks/e6df4327ac1d9b65b80d.js +1 -0
- package/assets/esri/core/workers/chunks/f4919950a9a3703d9da3.js +1 -0
- package/assets/esri/core/workers/chunks/f4eb5de69ad9b7763582.js +1 -0
- package/assets/esri/core/workers/chunks/f6ce485c082d0d640b01.js +1 -0
- package/assets/esri/core/workers/chunks/fd9ef4b8c969962cf72b.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +0 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/support/GridControls/t9n/GridControls.json +1 -1
- package/assets/esri/widgets/support/GridControls/t9n/GridControls_en.json +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/config.js +1 -1
- package/interfaces.d.ts +355 -73
- package/kernel.js +1 -1
- package/layers/BaseDynamicLayer.js +1 -1
- package/layers/BaseElevationLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/graphics/sources/support/QueryTask.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/support/PublishingInfo.js +1 -1
- package/layers/support/RasterBandInfo.js +1 -1
- package/layers/support/RasterSensorInfo.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/vectorTileLayerLoader.js +1 -1
- package/layers/voxel/VoxelVariable.js +1 -1
- package/package.json +6 -6
- package/rest/support/FindImagesResult.js +1 -1
- package/rest/support/ImageAreaResult.js +1 -1
- package/rest/support/ImageBoundaryResult.js +1 -1
- package/rest/support/ImageDistanceResult.js +1 -1
- package/rest/support/ImageGPSInfoResult.js +1 -1
- package/rest/support/ImageHeightResult.js +1 -1
- package/rest/support/ImageIdentifyResult.js +1 -1
- package/rest/support/ImagePixelLocationResult.js +1 -1
- package/rest/support/ImagePointResult.js +1 -1
- package/rest/support/ImageSampleResult.js +1 -1
- package/rest/support/ImageUrlResult.js +1 -1
- package/rest/support/ImageVolumeResult.js +1 -1
- package/rest/support/MeasureAreaFromImageResult.js +1 -1
- package/rest/support/MeasureLengthFromImageResult.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMEffects.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/placements/PlacementAtMeasuredUnits.js +1 -1
- package/unionTypes.d.ts +0 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementAreaVisualization.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
- package/views/2d/analysis/AreaMeasurement/utils.js +5 -0
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -0
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/Dimension/types.d.ts +3 -0
- package/views/3d/analysis/Dimension/types.js +5 -0
- package/views/3d/analysis/DirectLineMeasurement/types.d.ts +4 -0
- package/views/3d/analysis/DirectLineMeasurement/types.js +5 -0
- package/views/3d/analysis/LineOfSight/types.d.ts +3 -0
- package/views/3d/analysis/LineOfSight/types.js +5 -0
- package/views/3d/analysis/Slice/types.d.ts +3 -0
- package/views/3d/analysis/Slice/types.js +5 -0
- package/views/3d/analysis/Viewshed/types.d.ts +3 -0
- package/views/3d/analysis/Viewshed/types.js +5 -0
- package/views/3d/analysis/VolumeMeasurement/types.d.ts +3 -0
- package/views/3d/analysis/VolumeMeasurement/types.js +5 -0
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/support/popupHitTest.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/LinkChartView.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/analysis/AreaMeasurement/types.d.ts +4 -0
- package/views/analysis/AreaMeasurement/types.js +5 -0
- package/views/analysis/DistanceMeasurement/types.d.ts +4 -0
- package/views/analysis/DistanceMeasurement/types.js +5 -0
- package/views/analysis/types.d.ts +3 -0
- package/views/analysis/types.js +5 -0
- package/views/draw/support/Reshape.js +1 -1
- package/views/input/Input.js +1 -1
- package/views/layers/BuildingComponentSublayerView.js +1 -1
- package/views/layers/SceneLayerView.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
- package/widgets/ScaleRangeSlider/ScaleRanges.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
- package/widgets/support/GridControls.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/assets/esri/core/workers/chunks/038eba6d3a6bcf8ccd67.js +0 -1
- package/assets/esri/core/workers/chunks/03ed15ba64f1679b3d48.js +0 -1
- package/assets/esri/core/workers/chunks/04bac7bb3f794b33e2e4.js +0 -1
- package/assets/esri/core/workers/chunks/092d72caf3269e696d1c.js +0 -1
- package/assets/esri/core/workers/chunks/11fdcb8a74a80e9a47a3.js +0 -1
- package/assets/esri/core/workers/chunks/1466ab7bd500ba7a4025.js +0 -1
- package/assets/esri/core/workers/chunks/16f841f12b32d8a500a9.js +0 -1
- package/assets/esri/core/workers/chunks/1b9f93ab226232c5019a.js +0 -1
- package/assets/esri/core/workers/chunks/1beee2932154db83f79d.js +0 -1
- package/assets/esri/core/workers/chunks/1cae81089b50b7e43d70.js +0 -1
- package/assets/esri/core/workers/chunks/1fcd4d90a99e85d35dd2.js +0 -1
- package/assets/esri/core/workers/chunks/21d7f42c2033de987b97.js +0 -1
- package/assets/esri/core/workers/chunks/24ff9dad3fb64ab54970.js +0 -1
- package/assets/esri/core/workers/chunks/26282c67d2b066a76881.js +0 -1
- package/assets/esri/core/workers/chunks/2719865e28d577da7b2a.js +0 -1
- package/assets/esri/core/workers/chunks/2d3e7b41b225d905c7f4.js +0 -1
- package/assets/esri/core/workers/chunks/30a631c39c9372797b92.js +0 -1
- package/assets/esri/core/workers/chunks/388873be1dca91ccbc9d.js +0 -1
- package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js +0 -2
- package/assets/esri/core/workers/chunks/44e08b49898a8fcbe031.js +0 -1
- package/assets/esri/core/workers/chunks/4731f507149940dde534.js +0 -1
- package/assets/esri/core/workers/chunks/48ca09958c3d50de48dc.js +0 -1
- package/assets/esri/core/workers/chunks/4d0e099f34639cda3a9b.js +0 -1
- package/assets/esri/core/workers/chunks/5a6b487b70ca85a45f57.js +0 -1
- package/assets/esri/core/workers/chunks/5b5f1f22de985dc6bbc0.js +0 -1
- package/assets/esri/core/workers/chunks/5c82b17f9990e6cd7d0b.js +0 -1
- package/assets/esri/core/workers/chunks/5cc023e1066641f9f20c.js +0 -1
- package/assets/esri/core/workers/chunks/61bb39597ccf89f99a72.js +0 -1
- package/assets/esri/core/workers/chunks/67bc5b87fd61095689d4.js +0 -1
- package/assets/esri/core/workers/chunks/6bf5b3c7129aa14b4fc6.js +0 -1
- package/assets/esri/core/workers/chunks/755e2ecd20b6bd1909be.js +0 -1
- package/assets/esri/core/workers/chunks/768e1ad2f06fdc9d5ef8.js +0 -1
- package/assets/esri/core/workers/chunks/7a957f2bca1438732338.js +0 -1
- package/assets/esri/core/workers/chunks/7d9773c87650856f2d9e.js +0 -1
- package/assets/esri/core/workers/chunks/809a9055da28c8fa58b0.js +0 -1
- package/assets/esri/core/workers/chunks/8af47cc9cee2f3031162.js +0 -1
- package/assets/esri/core/workers/chunks/8bbae8ac586e5c0819d2.js +0 -1
- package/assets/esri/core/workers/chunks/8cd03b54b2859b52fb81.js +0 -1
- package/assets/esri/core/workers/chunks/8f85039d76f03fbdd27a.js +0 -1
- package/assets/esri/core/workers/chunks/93f706acaa812bb3ac70.js +0 -1
- package/assets/esri/core/workers/chunks/976dd80e318266ab4c2c.js +0 -1
- package/assets/esri/core/workers/chunks/9a20be3b02c9d6349b8d.js +0 -1
- package/assets/esri/core/workers/chunks/9dae3e4e34096b3d82d7.js +0 -1
- package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +0 -1
- package/assets/esri/core/workers/chunks/9f9e20321ee44675e107.js +0 -1
- package/assets/esri/core/workers/chunks/a02ffa7916cf9da55608.js +0 -1
- package/assets/esri/core/workers/chunks/a0b0fe0d99df20fa9076.js +0 -1
- package/assets/esri/core/workers/chunks/a987731d1b5449d8fb0c.js +0 -1
- package/assets/esri/core/workers/chunks/ad9606164c694af0c61f.js +0 -1
- package/assets/esri/core/workers/chunks/b0e52c3775f05aaf7ff6.js +0 -1
- package/assets/esri/core/workers/chunks/bfd3d81e8e148be99686.js +0 -1
- package/assets/esri/core/workers/chunks/c1e4e9ab4a543e8b350d.js +0 -1
- package/assets/esri/core/workers/chunks/cbc5131723cbe29cb88f.js +0 -1
- package/assets/esri/core/workers/chunks/ce00509970e7e6eacbdf.js +0 -1
- package/assets/esri/core/workers/chunks/cec95ed69c86758d95ec.js +0 -1
- package/assets/esri/core/workers/chunks/d391bfbaf0e790cd10d6.js +0 -2
- package/assets/esri/core/workers/chunks/d622fb553babd515a21f.js +0 -1
- package/assets/esri/core/workers/chunks/dcd6ee9e00ebd519c4a7.js +0 -1
- package/assets/esri/core/workers/chunks/ddb55435adeda1e2a1bf.js +0 -1
- package/assets/esri/core/workers/chunks/e5208898910c1222b7e6.js +0 -1
- package/assets/esri/core/workers/chunks/e5a9c37de44508e9733b.js +0 -1
- package/assets/esri/core/workers/chunks/e5b42ddec8e424602e03.js +0 -1
- package/assets/esri/core/workers/chunks/eaabb5b010b7bb850b0a.js +0 -1
- package/assets/esri/core/workers/chunks/eafc4da265469e9e5e0b.js +0 -1
- package/assets/esri/core/workers/chunks/eb1b582a73111c8556c1.js +0 -1
- package/assets/esri/core/workers/chunks/f594df2f5ce6ca41a254.js +0 -1
- package/assets/esri/core/workers/chunks/f64037a88ab03662dc2a.js +0 -1
- package/assets/esri/core/workers/chunks/f888849b0236cc0d6f50.js +0 -1
- package/assets/esri/core/workers/chunks/fbcc4cbb221c0fbb90d4.js +0 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementLabelVisualization.js +0 -5
- /package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js.LICENSE.txt → 3266c3392c24ce6cdd83.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d391bfbaf0e790cd10d6.js.LICENSE.txt → 69278d08a7d64917f826.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js.LICENSE.txt → 6f3ffc04086bca30e55d.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{3a457e718a901a45902e.js.LICENSE.txt → 70e2804d3710c6af468e.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js.LICENSE.txt → 78fc9a55e620602db1ff.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js.LICENSE.txt → a67c3958d76d10c04fa6.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js.LICENSE.txt → be631029691d9a320cb5.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js.LICENSE.txt → d9251c3c85c3ddd242c8.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5367],{11053:(a,r,t)=>{t.d(r,{c:()=>e,g:()=>n});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}},15367:(a,r,t)=>{t.r(r),t.d(r,{a:()=>s});var e,n=t(11053),o={exports:{}};const i=(0,n.g)(function(){return e||(e=1,a=o,r="undefined"!=typeof document?document.currentScript?.src:void 0,t=async function(a={}){var t,e=a,n="./this.program",o="";try{o=new URL(".",r).href}catch{}t=async a=>{if((a=await fetch(a,{credentials:"same-origin"})).ok)return a.arrayBuffer();throw Error(a.status+" : "+a.url)};var i,s,u,f,l,h,c,w,d,p,v,m,b,y,g,$,A=console.log.bind(console),C=console.error.bind(console),k=!1,E=!1;function x(){var a=l.buffer;h=new Int8Array(a),w=new Int16Array(a),c=new Uint8Array(a),d=new Uint16Array(a),p=new Int32Array(a),v=new Uint32Array(a),m=new Float32Array(a),b=new Float64Array(a),y=new BigInt64Array(a),g=new BigUint64Array(a)}function O(a){throw e.onAbort?.(a),C(a="Aborted("+a+")"),k=!0,a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info."),f?.(a),a}async function S(a){if(!i)try{var r=await t(a);return new Uint8Array(r)}catch{}if(a!=$||!i)throw"both async and sync fetching of the wasm failed";return new Uint8Array(i)}class P{name="ExitStatus";constructor(a){this.message=`Program terminated with exit(${a})`,this.status=a}}var j=a=>{for(;0<a.length;)a.shift()(e)},D=[],R=[],T=()=>{var a=e.preRun.shift();R.push(a)},q=!0;class I{constructor(a){this.ra=a-24}}var B={},M=a=>{for(;a.length;){var r=a.pop();a.pop()(r)}};function z(a){return this.sa(v[a>>2])}var U={},N={},F={},L=class extends Error{constructor(a){super(a),this.name="InternalError"}},W=(a,r,t)=>{function e(r){if((r=t(r)).length!==a.length)throw new L("Mismatched type converter count");for(var e=0;e<a.length;++e)G(a[e],r[e])}a.forEach(a=>F[a]=r);var n=Array(r.length),o=[],i=0;r.forEach((a,r)=>{N.hasOwnProperty(a)?n[r]=N[a]:(o.push(a),U.hasOwnProperty(a)||(U[a]=[]),U[a].push(()=>{n[r]=N[a],++i===o.length&&e(n)}))}),0===o.length&&e(n)},_=a=>{for(var r="";;){var t=c[a++];if(!t)return r;r+=String.fromCharCode(t)}},H=class extends Error{constructor(a){super(a),this.name="BindingError"}};function G(a,r,t={}){return function(a,r,t={}){var e=r.name;if(!a)throw new H(`type "${e}" must have a positive integer typeid pointer`);if(N.hasOwnProperty(a)){if(t.Mb)return;throw new H(`Cannot register type '${e}' twice`)}N[a]=r,delete F[a],U.hasOwnProperty(a)&&(r=U[a],delete U[a],r.forEach(a=>a()))}(a,r,t)}var J=(a,r,t)=>{switch(r){case 1:return t?a=>h[a]:a=>c[a];case 2:return t?a=>w[a>>1]:a=>d[a>>1];case 4:return t?a=>p[a>>2]:a=>v[a>>2];case 8:return t?a=>y[a>>3]:a=>g[a>>3];default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},K=a=>{throw new H(a.ma.ta.na.name+" instance already deleted")},V=!1,Q=()=>{},Y=a=>"undefined"==typeof FinalizationRegistry?(Y=a=>a,a):(V=new FinalizationRegistry(a=>{--(a=a.ma).count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra))}),Q=a=>{V.unregister(a)},(Y=a=>{var r=a.ma;return r.xa&&V.register(a,{ma:r},a),a})(a));function X(){}var Z=(a,r)=>Object.defineProperty(r,"name",{value:a}),aa={},ra=(a,r,t)=>{if(void 0===a[r].ua){var e=a[r];a[r]=function(...e){if(!a[r].ua.hasOwnProperty(e.length))throw new H(`Function '${t}' called with an invalid number of arguments (${e.length}) - expects one of (${a[r].ua})!`);return a[r].ua[e.length].apply(this,e)},a[r].ua=[],a[r].ua[e.Ma]=e}},ta=(a,r,t)=>{if(e.hasOwnProperty(a)){if(void 0===t||void 0!==e[a].ua&&void 0!==e[a].ua[t])throw new H(`Cannot register public name '${a}' twice`);if(ra(e,a,a),e[a].ua.hasOwnProperty(t))throw new H(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);e[a].ua[t]=r}else e[a]=r,e[a].Ma=t};function ea(a,r,t,e,n,o,i,s){this.name=a,this.constructor=r,this.La=t,this.Ha=e,this.ya=n,this.Hb=o,this.Xa=i,this.Fb=s,this.Sb=[]}var na=(a,r,t)=>{for(;r!==t;){if(!r.Xa)throw new H(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);a=r.Xa(a),r=r.ya}return a},oa=a=>{if(null===a)return"null";var r=typeof a;return"object"===r||"array"===r||"function"===r?a.toString():""+a};function ia(a,r){if(null===r){if(this.lb)throw new H(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new H(`Cannot pass "${oa(r)}" as a ${this.name}`);if(!r.ma.ra)throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);return na(r.ma.ra,r.ma.ta.na,this.na)}function sa(a,r){if(null===r){if(this.lb)throw new H(`null is not a valid ${this.name}`);if(this.ab){var t=this.nb();return null!==a&&a.push(this.Ha,t),t}return 0}if(!r||!r.ma)throw new H(`Cannot pass "${oa(r)}" as a ${this.name}`);if(!r.ma.ra)throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.$a&&r.ma.ta.$a)throw new H(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);if(t=na(r.ma.ra,r.ma.ta.na,this.na),this.ab){if(void 0===r.ma.xa)throw new H("Passing raw pointer to smart pointer is illegal");switch(this.Xb){case 0:if(r.ma.Ba!==this)throw new H(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);t=r.ma.xa;break;case 1:t=r.ma.xa;break;case 2:if(r.ma.Ba===this)t=r.ma.xa;else{var e=r.clone();t=this.Tb(t,Sa(()=>e.delete())),null!==a&&a.push(this.Ha,t)}break;default:throw new H("Unsupporting sharing policy")}}return t}function ua(a,r){if(null===r){if(this.lb)throw new H(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new H(`Cannot pass "${oa(r)}" as a ${this.name}`);if(!r.ma.ra)throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ma.ta.$a)throw new H(`Cannot convert argument of type ${r.ma.ta.name} to parameter type ${this.name}`);return na(r.ma.ra,r.ma.ta.na,this.na)}var fa=(a,r,t)=>r===t?a:void 0===t.ya||null===(a=fa(a,r,t.ya))?null:t.Fb(a),la={},ha=(a,r)=>{if(!r.ta||!r.ra)throw new L("makeClassHandle requires ptr and ptrType");if(!!r.Ba!=!!r.xa)throw new L("Both smartPtrType and smartPtr must be specified");return r.count={value:1},Y(Object.create(a,{ma:{value:r,writable:!0}}))};function ca(a,r,t,e,n,o,i,s,u,f,l){this.name=a,this.na=r,this.lb=t,this.$a=e,this.ab=n,this.Rb=o,this.Xb=i,this.yb=s,this.nb=u,this.Tb=f,this.Ha=l,n||void 0!==r.ya?this.wa=sa:(this.wa=e?ia:ua,this.Aa=null)}var wa,da=(a,r,t)=>{if(!e.hasOwnProperty(a))throw new L("Replacing nonexistent public symbol");void 0!==e[a].ua&&void 0!==t?e[a].ua[t]=r:(e[a]=r,e[a].Ma=t)},pa=[],va=(a,r)=>{var t;if(a=_(a),(t=pa[r])||(pa[r]=t=wa.get(r)),"function"!=typeof t)throw new H(`unknown function pointer with signature ${a}: ${r}`);return t};class ma extends Error{}var ba=a=>{a=Yr(a);var r=_(a);return Zr(a),r},ya=(a,r)=>{var t=[],e={};throw r.forEach(function a(r){e[r]||N[r]||(F[r]?F[r].forEach(a):(t.push(r),e[r]=!0))}),new ma(`${a}: `+t.map(ba).join([", "]))};function ga(a,r,t,e,n){var o=r.length;if(2>o)throw new H("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==r[1]&&null!==t,s=function(a){for(var r=1;r<a.length;++r)if(null!==a[r]&&void 0===a[r].Aa)return!0;return!1}(r),u=!r[0].Nb,f=o-2,l=Array(f),h=[],c=[];return Z(a,function(...a){if(c.length=0,h.length=i?2:1,h[0]=n,i){var t=r[1].wa(c,this);h[1]=t}for(var o=0;o<f;++o)l[o]=r[o+2].wa(c,a[o]),h.push(l[o]);if(a=e(...h),s)M(c);else for(o=i?1:2;o<r.length;o++){var w=1===o?t:l[o-2];null!==r[o].Aa&&r[o].Aa(w)}return u?r[0].sa(a):void 0})}var $a=(a,r)=>{for(var t=[],e=0;e<a;e++)t.push(v[r+4*e>>2]);return t},Aa=a=>{const r=(a=a.trim()).indexOf("(");return-1===r?a:a.slice(0,r)},Ca=(a,r,t)=>{if(!(a instanceof Object))throw new H(`${t} with invalid "this": ${a}`);if(!(a instanceof r.na.constructor))throw new H(`${t} incompatible with "this" of type ${a.constructor.name}`);if(!a.ma.ra)throw new H(`cannot call emscripten binding method ${t} on deleted object`);return na(a.ma.ra,a.ma.ta.na,r.na)},ka=[],Ea=[0,1,,1,null,1,!0,1,!1,1],xa=a=>{9<a&&0===--Ea[a+1]&&(Ea[a]=void 0,ka.push(a))},Oa=a=>{if(!a)throw new H(`Cannot use deleted val. handle = ${a}`);return Ea[a]},Sa=a=>{switch(a){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=ka.pop()||Ea.length;return Ea[r]=a,Ea[r+1]=1,r}},Pa={name:"emscripten::val",sa:a=>{var r=Oa(a);return xa(a),r},wa:(a,r)=>Sa(r),Ea:z,Aa:null},ja=(a,r,t)=>{switch(r){case 1:return t?function(a){return this.sa(h[a])}:function(a){return this.sa(c[a])};case 2:return t?function(a){return this.sa(w[a>>1])}:function(a){return this.sa(d[a>>1])};case 4:return t?function(a){return this.sa(p[a>>2])}:function(a){return this.sa(v[a>>2])};default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},Da=(a,r)=>{var t=N[a];if(void 0===t)throw a=`${r} has unknown type ${ba(a)}`,new H(a);return t},Ra=(a,r)=>{switch(r){case 4:return function(a){return this.sa(m[a>>2])};case 8:return function(a){return this.sa(b[a>>3])};default:throw new TypeError(`invalid float width (${r}): ${a}`)}},Ta=Object.assign({optional:!0},Pa),qa=(a,r,t,e)=>{if(!(0<e))return 0;var n=t;e=t+e-1;for(var o=0;o<a.length;++o){var i=a.codePointAt(o);if(127>=i){if(t>=e)break;r[t++]=i}else if(2047>=i){if(t+1>=e)break;r[t++]=192|i>>6,r[t++]=128|63&i}else if(65535>=i){if(t+2>=e)break;r[t++]=224|i>>12,r[t++]=128|i>>6&63,r[t++]=128|63&i}else{if(t+3>=e)break;r[t++]=240|i>>18,r[t++]=128|i>>12&63,r[t++]=128|i>>6&63,r[t++]=128|63&i,o++}}return r[t]=0,t-n},Ia=a=>{for(var r=0,t=0;t<a.length;++t){var e=a.charCodeAt(t);127>=e?r++:2047>=e?r+=2:55296<=e&&57343>=e?(r+=4,++t):r+=3}return r},Ba="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Ma=(a,r,t,e)=>{if(t=r+t,e)return t;for(;a[r]&&!(r>=t);)++r;return r},za=(a,r=0,t,e)=>{if(16<(t=Ma(a,r,t,e))-r&&a.buffer&&Ba)return Ba.decode(a.subarray(r,t));for(e="";r<t;){var n=a[r++];if(128&n){var o=63&a[r++];if(192==(224&n))e+=String.fromCharCode((31&n)<<6|o);else{var i=63&a[r++];65536>(n=224==(240&n)?(15&n)<<12|o<<6|i:(7&n)<<18|o<<12|i<<6|63&a[r++])?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else e+=String.fromCharCode(n)}return e},Ua="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Na=(a,r,t)=>{if(16<(r=Ma(d,a>>=1,r/2,t))-a&&Ua)return Ua.decode(d.subarray(a,r));for(t="";a<r;++a)t+=String.fromCharCode(d[a]);return t},Fa=(a,r,t)=>{if(t??=2147483647,2>t)return 0;var e=r;t=(t-=2)<2*a.length?t/2:a.length;for(var n=0;n<t;++n)w[r>>1]=a.charCodeAt(n),r+=2;return w[r>>1]=0,r-e},La=a=>2*a.length,Wa=(a,r,t)=>{var e="";a>>=2;for(var n=0;!(n>=r/4);n++){var o=v[a+n];if(!o&&!t)break;e+=String.fromCodePoint(o)}return e},_a=(a,r,t)=>{if(t??=2147483647,4>t)return 0;var e=r;t=e+t-4;for(var n=0;n<a.length;++n){var o=a.codePointAt(n);if(65535<o&&n++,p[r>>2]=o,(r+=4)+4>t)break}return p[r>>2]=0,r-e},Ha=a=>{for(var r=0,t=0;t<a.length;++t)65535<a.codePointAt(t)&&t++,r+=4;return r},Ga=0,Ja=[],Ka={},Va=a=>{var r=Ka[a];return void 0===r?_(a):r},Qa=globalThis,Ya=(a,r,t,e,n)=>Ja[a](r,t,e,n),Xa=(a,r)=>{for(var t=0,e=a.length-1;0<=e;e--){var n=a[e];"."===n?a.splice(e,1):".."===n?(a.splice(e,1),t++):t&&(a.splice(e,1),t--)}if(r)for(;t;t--)a.unshift("..");return a},Za=a=>{var r="/"===a.charAt(0),t="/"===a.slice(-1);return(a=Xa(a.split("/").filter(a=>!!a),!r).join("/"))||r||(a="."),a&&t&&(a+="/"),(r?"/":"")+a},ar=a=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);return a=r[0],r=r[1],a||r?(r&&=r.slice(0,-1),a+r):"."},rr=a=>{(rr=a=>crypto.getRandomValues(a))(a)},tr=[],er=[];function nr(a,r){er[a]={input:[],output:[],Ra:r},jr(a,or)}var or={open(a){var r=er[a.node.fb];if(!r)throw new mr(43);a.Ca=r,a.seekable=!1},close(a){a.Ca.Ra.Za(a.Ca)},Za(a){a.Ca.Ra.Za(a.Ca)},read(a,r,t,e){if(!a.Ca||!a.Ca.Ra.sb)throw new mr(60);for(var n=0,o=0;o<e;o++){try{var i=a.Ca.Ra.sb(a.Ca)}catch(a){throw new mr(29)}if(void 0===i&&0===n)throw new mr(6);if(null==i)break;n++,r[t+o]=i}return n&&(a.node.Na=Date.now()),n},write(a,r,t,e){if(!a.Ca||!a.Ca.Ra.mb)throw new mr(60);try{for(var n=0;n<e;n++)a.Ca.Ra.mb(a.Ca,r[t+n])}catch(a){throw new mr(29)}return e&&(a.node.Da=a.node.za=Date.now()),n}},ir={sb(){a:{if(!tr.length){var a=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(a=window.prompt("Input: "))&&(a+="\n"),!a){var r=null;break a}r=Array(Ia(a)+1),a=qa(a,r,0,r.length),r.length=a,tr=r}r=tr.shift()}return r},mb(a,r){null===r||10===r?(A(za(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&(A(za(a.output)),a.output=[])},lc:()=>({cc:25856,ec:5,bc:191,dc:35387,ac:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),mc:()=>0,nc:()=>[24,80]},sr={mb(a,r){null===r||10===r?(C(za(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&(C(za(a.output)),a.output=[])}},ur={Ga:null,Ja:()=>ur.createNode(null,"/",16895,0),createNode(a,r,t,e){if(24576==(61440&t)||4096==(61440&t))throw new mr(63);return ur.Ga||(ur.Ga={dir:{node:{Ka:ur.pa.Ka,Ia:ur.pa.Ia,Ua:ur.pa.Ua,cb:ur.pa.cb,zb:ur.pa.zb,Cb:ur.pa.Cb,Bb:ur.pa.Bb,ob:ur.pa.ob,gb:ur.pa.gb},stream:{Fa:ur.qa.Fa}},file:{node:{Ka:ur.pa.Ka,Ia:ur.pa.Ia},stream:{Fa:ur.qa.Fa,read:ur.qa.read,write:ur.qa.write,vb:ur.qa.vb,xb:ur.qa.xb}},link:{node:{Ka:ur.pa.Ka,Ia:ur.pa.Ia,Wa:ur.pa.Wa},stream:{}},pb:{node:{Ka:ur.pa.Ka,Ia:ur.pa.Ia},stream:Pr}}),16384==(61440&(t=Cr(a,r,t,e)).mode)?(t.pa=ur.Ga.dir.node,t.qa=ur.Ga.dir.stream,t.oa={}):32768==(61440&t.mode)?(t.pa=ur.Ga.file.node,t.qa=ur.Ga.file.stream,t.va=0,t.oa=null):40960==(61440&t.mode)?(t.pa=ur.Ga.link.node,t.qa=ur.Ga.link.stream):8192==(61440&t.mode)&&(t.pa=ur.Ga.pb.node,t.qa=ur.Ga.pb.stream),t.Na=t.Da=t.za=Date.now(),a&&(a.oa[r]=t,a.Na=a.Da=a.za=t.Na),t},ic:a=>a.oa?a.oa.subarray?a.oa.subarray(0,a.va):new Uint8Array(a.oa):new Uint8Array(0),pa:{Ka(a){var r={};return r.fc=8192==(61440&a.mode)?a.id:1,r.kc=a.id,r.mode=a.mode,r.oc=1,r.uid=0,r.jc=0,r.fb=a.fb,16384==(61440&a.mode)?r.size=4096:32768==(61440&a.mode)?r.size=a.va:40960==(61440&a.mode)?r.size=a.link.length:r.size=0,r.Na=new Date(a.Na),r.Da=new Date(a.Da),r.za=new Date(a.za),r.Db=4096,r.$b=Math.ceil(r.size/r.Db),r},Ia(a,r){for(var t of["mode","atime","mtime","ctime"])null!=r[t]&&(a[t]=r[t]);void 0!==r.size&&(r=r.size,a.va!=r&&(0==r?(a.oa=null,a.va=0):(t=a.oa,a.oa=new Uint8Array(r),t&&a.oa.set(t.subarray(0,Math.min(r,a.va))),a.va=r)))},Ua(){throw ur.hb||(ur.hb=new mr(44),ur.hb.stack="<generic error, no stack>"),ur.hb},cb:(a,r,t,e)=>ur.createNode(a,r,t,e),zb(a,r,t){try{var e=Ar(r,t)}catch(a){}if(e){if(16384==(61440&a.mode))for(var n in e.oa)throw new mr(55);if(n=$r(e.parent.id,e.name),wr[n]===e)wr[n]=e.Qa;else for(n=wr[n];n;){if(n.Qa===e){n.Qa=e.Qa;break}n=n.Qa}}delete a.parent.oa[a.name],r.oa[t]=a,a.name=t,r.za=r.Da=a.parent.za=a.parent.Da=Date.now()},Cb(a,r){delete a.oa[r],a.za=a.Da=Date.now()},Bb(a,r){var t,e=Ar(a,r);for(t in e.oa)throw new mr(55);delete a.oa[r],a.za=a.Da=Date.now()},ob:a=>[".","..",...Object.keys(a.oa)],gb:(a,r,t)=>((a=ur.createNode(a,r,41471,0)).link=t,a),Wa(a){if(40960!=(61440&a.mode))throw new mr(28);return a.link}},qa:{read(a,r,t,e,n){var o=a.node.oa;if(n>=a.node.va)return 0;if(8<(a=Math.min(a.node.va-n,e))&&o.subarray)r.set(o.subarray(n,n+a),t);else for(e=0;e<a;e++)r[t+e]=o[n+e];return a},write(a,r,t,e,n,o){if(r.buffer===h.buffer&&(o=!1),!e)return 0;if((a=a.node).Da=a.za=Date.now(),r.subarray&&(!a.oa||a.oa.subarray)){if(o)return a.oa=r.subarray(t,t+e),a.va=e;if(0===a.va&&0===n)return a.oa=r.slice(t,t+e),a.va=e;if(n+e<=a.va)return a.oa.set(r.subarray(t,t+e),n),e}o=n+e;var i=a.oa?a.oa.length:0;if(i>=o||(o=Math.max(o,i*(1048576>i?2:1.125)>>>0),0!=i&&(o=Math.max(o,256)),i=a.oa,a.oa=new Uint8Array(o),0<a.va&&a.oa.set(i.subarray(0,a.va),0)),a.oa.subarray&&r.subarray)a.oa.set(r.subarray(t,t+e),n);else for(o=0;o<e;o++)a.oa[n+o]=r[t+o];return a.va=Math.max(a.va,n+e),e},Fa(a,r,t){if(1===t?r+=a.position:2===t&&32768==(61440&a.node.mode)&&(r+=a.node.va),0>r)throw new mr(28);return r},vb(a,r,t,e,n){if(32768!=(61440&a.node.mode))throw new mr(43);if(a=a.node.oa,2&n||!a||a.buffer!==h.buffer){n=!0,e=65536*Math.ceil(r/65536);var o=at(65536,e);if(o&&c.fill(0,o,o+e),!(e=o))throw new mr(48);a&&((0<t||t+r<a.length)&&(a=a.subarray?a.subarray(t,t+r):Array.prototype.slice.call(a,t,t+r)),h.set(a,e))}else n=!1,e=a.byteOffset;return{ra:e,Zb:n}},xb:(a,r,t,e)=>(ur.qa.write(a,r,0,e,t,!1),0)}},fr=null,lr={},hr=[],cr=1,wr=null,dr=!1,pr=!0,vr={},mr=class{name="ErrnoError";constructor(a){this.Ta=a}},br=class{bb={};node=null;get flags(){return this.bb.flags}set flags(a){this.bb.flags=a}get position(){return this.bb.position}set position(a){this.bb.position=a}},yr=class{pa={};qa={};eb=null;constructor(a,r,t,e){a||=this,this.parent=a,this.Ja=a.Ja,this.id=cr++,this.name=r,this.mode=t,this.fb=e,this.Na=this.Da=this.za=Date.now()}get read(){return!(365&~this.mode)}set read(a){a?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(a){a?this.mode|=146:this.mode&=-147}};function gr(a,r={}){if(!a)throw new mr(44);r.jb??(r.jb=!0),"/"===a.charAt(0)||(a="//"+a);var t=0;a:for(;40>t;t++){a=a.split("/").filter(a=>!!a);for(var e=fr,n="/",o=0;o<a.length;o++){var i=o===a.length-1;if(i&&r.parent)break;if("."!==a[o])if(".."===a[o]){if(n=ar(n),e===e.parent){a=n+"/"+a.slice(o+1).join("/"),t--;continue a}e=e.parent}else{n=Za(n+"/"+a[o]);try{e=Ar(e,a[o])}catch(a){if(44===a?.Ta&&i&&r.Qb)return{path:n};throw a}if(!e.eb||i&&!r.jb||(e=e.eb.root),40960==(61440&e.mode)&&(!i||r.ib)){if(!e.pa.Wa)throw new mr(52);"/"===(e=e.pa.Wa(e)).charAt(0)||(e=ar(n)+"/"+e),a=e+"/"+a.slice(o+1).join("/");continue a}}}return{path:n,node:e}}throw new mr(32)}function $r(a,r){for(var t=0,e=0;e<r.length;e++)t=(t<<5)-t+r.charCodeAt(e)|0;return(a+t>>>0)%wr.length}function Ar(a,r){var t=16384==(61440&a.mode)?(t=Er(a,"x"))?t:a.pa.Ua?0:2:54;if(t)throw new mr(t);for(t=wr[$r(a.id,r)];t;t=t.Qa){var e=t.name;if(t.parent.id===a.id&&e===r)return t}return a.pa.Ua(a,r)}function Cr(a,r,t,e){return r=$r((a=new yr(a,r,t,e)).parent.id,a.name),a.Qa=wr[r],wr[r]=a}function kr(a){var r=["r","w","rw"][3&a];return 512&a&&(r+="w"),r}function Er(a,r){return pr?0:!r.includes("r")||292&a.mode?r.includes("w")&&!(146&a.mode)||r.includes("x")&&!(73&a.mode)?2:0:2}function xr(a,r){if(16384!=(61440&a.mode))return 54;try{return Ar(a,r),20}catch(a){}return Er(a,"wx")}function Or(a){if(!(a=hr[a]))throw new mr(8);return a}function Sr(a,r){var t=void 0,e=t?null:a;if(t??=a.pa.Ia,!t)throw new mr(63);t(e,r)}var Pr={open(a){a.qa=lr[a.node.fb].qa,a.qa.open?.(a)},Fa(){throw new mr(70)}};function jr(a,r){lr[a]={qa:r}}function Dr(a,r){var t="/"===r;if(t&&fr)throw new mr(10);if(!t&&r){var e=gr(r,{jb:!1});if(r=e.path,(e=e.node).eb)throw new mr(10);if(16384!=(61440&e.mode))throw new mr(54)}r={type:a,pc:{},wb:r,Pb:[]},(a=a.Ja(r)).Ja=r,r.root=a,t?fr=a:e&&(e.eb=r,e.Ja&&e.Ja.Pb.push(r))}function Rr(a,r,t){var e=gr(a,{parent:!0}).node;if(!(a=a&&a.match(/([^\/]+|\/)\/*$/)[1]))throw new mr(28);if("."===a||".."===a)throw new mr(20);var n=xr(e,a);if(n)throw new mr(n);if(!e.pa.cb)throw new mr(63);return e.pa.cb(e,a,r,t)}function Tr(a){return Rr(a,16895,0)}function qr(a,r,t){void 0===t&&(t=r,r=438),Rr(a,8192|r,t)}function Ir(a,r){if(!((...a)=>{for(var r="",t=!1,e=a.length-1;-1<=e&&!t;e--){if("string"!=typeof(t=0<=e?a[e]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";r=t+"/"+r,t="/"===t.charAt(0)}return(t?"/":"")+(r=Xa(r.split("/").filter(a=>!!a),!t).join("/"))||"."})(a))throw new mr(44);var t=gr(r,{parent:!0}).node;if(!t)throw new mr(44);var e=xr(t,r=r&&r.match(/([^\/]+|\/)\/*$/)[1]);if(e)throw new mr(e);if(!t.pa.gb)throw new mr(63);t.pa.gb(t,r,a)}function Br(a,r){if(""===a)throw new mr(44);if("string"==typeof r){var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===t)throw Error(`Unknown file open mode: ${r}`);r=t}if(t=64&r?33206:0,"object"==typeof a)var n=a;else{var o=a.endsWith("/");n=(a=gr(a,{ib:!(131072&r),Qb:!0})).node,a=a.path}var i=!1;if(64&r)if(n){if(128&r)throw new mr(20)}else{if(o)throw new mr(31);n=Rr(a,511|t,0),i=!0}if(!n)throw new mr(44);if(8192==(61440&n.mode)&&(r&=-513),65536&r&&16384!=(61440&n.mode))throw new mr(54);if(!i&&(o=n?40960==(61440&n.mode)?32:16384==(61440&n.mode)&&("r"!==kr(r)||576&r)?31:Er(n,kr(r)):44))throw new mr(o);if(512&r&&!i){if(16384==(61440&(o="string"==typeof(o=n)?gr(o,{ib:!0}).node:o).mode))throw new mr(31);if(32768!=(61440&o.mode))throw new mr(28);var s=Er(o,"w");if(s)throw new mr(s);Sr(o,{size:0,timestamp:Date.now()})}r&=-131713;a:for(o=n;;){if(o===o.parent){o=o.Ja.wb;var u=u?"/"!==o[o.length-1]?`${o}/${u}`:o+u:o;break a}u=u?`${o.name}/${u}`:o.name,o=o.parent}if(u={node:n,path:u,flags:r,seekable:!0,position:0,qa:n.qa,Yb:[],error:!1},o=-1,u=Object.assign(new br,u),-1==o)a:{for(o=0;4096>=o;o++)if(!hr[o])break a;throw new mr(33)}u.Pa=o,hr[o]=u,u.qa.open&&u.qa.open(u),i&&(t&=511,Sr(n="string"==typeof n?gr(n,{ib:!0}).node:n,{mode:4095&t|-4096&n.mode,za:Date.now(),hc:void 0})),!e.logReadFiles||1&r||a in vr||(vr[a]=1)}function Mr(a,r,t){if(null===a.Pa)throw new mr(8);if(!a.seekable||!a.qa.Fa)throw new mr(70);if(0!=t&&1!=t&&2!=t)throw new mr(28);a.position=a.qa.Fa(a,r,t),a.Yb=[]}function zr(a,r,t){a=Za("/dev/"+a);var e=((a,r)=>{var t=0;return a&&(t|=365),r&&(t|=146),t})(!!r,!!t);zr.ub??(zr.ub=64);var n=zr.ub++<<8;jr(n,{open(a){a.seekable=!1},close(){t?.buffer?.length&&t(10)},read(a,t,e,n){for(var o=0,i=0;i<n;i++){try{var s=r()}catch(a){throw new mr(29)}if(void 0===s&&0===o)throw new mr(6);if(null==s)break;o++,t[e+i]=s}return o&&(a.node.Na=Date.now()),o},write(a,r,e,n){for(var o=0;o<n;o++)try{t(r[e+o])}catch(a){throw new mr(29)}return n&&(a.node.Da=a.node.za=Date.now()),o}}),qr(a,e,n)}var Ur,Nr={},Fr={},Lr=a=>{if(!(a instanceof P||"unwind"==a))throw a},Wr=a=>{throw s=a,q||0<Ga||(e.onExit?.(a),k=!0),new P(a)},_r=[],Hr={},Gr=a=>{var r;return(r=/\bwasm-function\[\d+\]:(0x[0-9a-f]+)/.exec(a))?+r[1]:(r=/:(\d+):\d+(?:\)|$)/.exec(a))?2147483648|+r[1]:0},Jr=a=>{for(var r of a)(a=Gr(r))&&(Hr[a]=r)},Kr=a=>{if(!(a=Hr[a]))return 0;var r;if(r=/^\s+at .*\.wasm\.(.*) \(.*\)$/.exec(a))r=r[1];else if(r=/^\s+at (.*) \(.*\)$/.exec(a))r=r[1];else{if(!(r=/^(.+?)@/.exec(a)))return 0;r=r[1]}Zr(Kr.Ab??0),a=Kr;var t=Ia(r)+1,e=Xr(t);return e&&qa(r,c,e,t),a.Ab=e,Kr.Ab},Vr={},Qr=()=>{if(!Ur){var a,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:n||"./this.program"};for(a in Vr)void 0===Vr[a]?delete r[a]:r[a]=Vr[a];var t=[];for(a in r)t.push(`${a}=${r[a]}`);Ur=t}return Ur};if((()=>{let a=X.prototype;Object.assign(a,{isAliasOf:function(a){if(!(this instanceof X&&a instanceof X))return!1;var r=this.ma.ta.na,t=this.ma.ra;a.ma=a.ma;var e=a.ma.ta.na;for(a=a.ma.ra;r.ya;)t=r.Xa(t),r=r.ya;for(;e.ya;)a=e.Xa(a),e=e.ya;return r===e&&t===a},clone:function(){if(this.ma.ra||K(this),this.ma.Va)return this.ma.count.value+=1,this;var a=Y,r=Object,t=r.create,e=Object.getPrototypeOf(this),n=this.ma;return(a=a(t.call(r,e,{ma:{value:{count:n.count,Sa:n.Sa,Va:n.Va,ra:n.ra,ta:n.ta,xa:n.xa,Ba:n.Ba}}}))).ma.count.value+=1,a.ma.Sa=!1,a},delete(){if(this.ma.ra||K(this),this.ma.Sa&&!this.ma.Va)throw new H("Object already scheduled for deletion");Q(this);var a=this.ma;--a.count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra)),this.ma.Va||(this.ma.xa=void 0,this.ma.ra=void 0)},isDeleted:function(){return!this.ma.ra},deleteLater:function(){if(this.ma.ra||K(this),this.ma.Sa&&!this.ma.Va)throw new H("Object already scheduled for deletion");return this.ma.Sa=!0,this}});const r=Symbol.dispose;r&&(a[r]=a.delete)})(),Object.assign(ca.prototype,{Ib(a){return this.yb&&(a=this.yb(a)),a},qb(a){this.Ha?.(a)},Ea:z,sa:function(a){function r(){return this.ab?ha(this.na.La,{ta:this.Rb,ra:t,Ba:this,xa:a}):ha(this.na.La,{ta:this,ra:a})}var t=this.Ib(a);if(!t)return this.qb(a),null;var e=((a,r)=>{if(void 0===r)throw new H("ptr should not be undefined");for(;a.ya;)r=a.Xa(r),a=a.ya;return la[r]})(this.na,t);if(void 0!==e)return 0===e.ma.count.value?(e.ma.ra=t,e.ma.xa=a,e.clone()):(e=e.clone(),this.qb(a),e);if(e=this.na.Hb(t),!(e=aa[e]))return r.call(this);e=this.$a?e.Eb:e.pointerType;var n=fa(t,this.na,e.na);return null===n?r.call(this):this.ab?ha(e.na.La,{ta:e,ra:n,Ba:this,xa:a}):ha(e.na.La,{ta:e,ra:n})}}),wr=Array(4096),Dr(ur,"/"),Tr("/tmp"),Tr("/home"),Tr("/home/web_user"),function(){Tr("/dev"),jr(259,{read:()=>0,write:(a,r,t,e)=>e,Fa:()=>0}),qr("/dev/null",259),nr(1280,ir),nr(1536,sr),qr("/dev/tty",1280),qr("/dev/tty1",1536);var a=new Uint8Array(1024),r=0,t=()=>(0===r&&(rr(a),r=a.byteLength),a[--r]);zr("random",t),zr("urandom",t),Tr("/dev/shm"),Tr("/dev/shm/tmp")}(),function(){Tr("/proc");var a=Tr("/proc/self");Tr("/proc/self/fd"),Dr({Ja(){var r=Cr(a,"fd",16895,73);return r.qa={Fa:ur.qa.Fa},r.pa={Ua(a,r){var t=Or(a=+r);return(a={parent:null,Ja:{wb:"fake"},pa:{Wa:()=>t.path},id:a+1}).parent=a},ob:()=>Array.from(hr.entries()).filter(([,a])=>a).map(([a])=>a.toString())},r}},"/proc/self/fd")}(),e.noExitRuntime&&(q=e.noExitRuntime),e.print&&(A=e.print),e.printErr&&(C=e.printErr),e.wasmBinary&&(i=e.wasmBinary),e.thisProgram&&(n=e.thisProgram),e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.shift()();var Yr,Xr,Zr,at,rt,tt,et={208668:()=>"undefined"!=typeof wasmOffsetConverter},nt={U:function(){return"undefined"!=typeof wasmOffsetConverter},n:(a,r,t)=>{var e=new I(a);throw v[e.ra+16>>2]=0,v[e.ra+4>>2]=r,v[e.ra+8>>2]=t,a},Q:()=>O(""),r:a=>{var r=B[a];delete B[a];var t=r.nb,e=r.Ha,n=r.rb,o=n.map(a=>a.Lb).concat(n.map(a=>a.Vb));W([a],o,a=>{var o={};return n.forEach((r,t)=>{var e=a[t],i=r.Jb,s=r.Kb,u=a[t+n.length],f=r.Ub,l=r.Wb;o[r.Gb]={read:a=>e.sa(i(s,a)),write:(a,r)=>{var t=[];f(l,a,u.wa(t,r)),M(t)},optional:a[t].optional}}),[{name:r.name,sa:a=>{var r,t={};for(r in o)t[r]=o[r].read(a);return e(a),t},wa:(a,r)=>{for(var n in o)if(!(n in r)&&!o[n].optional)throw new TypeError(`Missing field: "${n}"`);var i=t();for(n in o)o[n].write(i,r[n]);return null!==a&&a.push(e,i),i},Ea:z,Aa:e}]})},E:(a,r,t,e,n)=>{r=_(r);let o=a=>a;if(e=0n===e){const a=8*t;o=r=>BigInt.asUintN(a,r),n=o(n)}G(a,{name:r,sa:o,wa:(a,r)=>("number"==typeof r&&(r=BigInt(r)),r),Ea:J(r,t,!e),Aa:null})},ba:(a,r,t,e)=>{G(a,{name:r=_(r),sa:function(a){return!!a},wa:function(a,r){return r?t:e},Ea:function(a){return this.sa(c[a])},Aa:null})},e:(a,r,t,e,n,o,i,s,u,f,l,h,c)=>{l=_(l),o=va(n,o),s&&=va(i,s),f&&=va(u,f),c=va(h,c);var w=(a=>{var r=(a=a.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${a}`:a})(l);ta(w,function(){ya(`Cannot construct ${l} due to unbound types`,[e])}),W([a,r,t],e?[e]:[],r=>{if(r=r[0],e)var t=r.na,n=t.La;else n=X.prototype;r=Z(l,function(...a){if(Object.getPrototypeOf(this)!==i)throw new H(`Use 'new' to construct ${l}`);if(void 0===h.Oa)throw new H(`${l} has no accessible constructor`);var r=h.Oa[a.length];if(void 0===r)throw new H(`Tried to invoke ctor of ${l} with invalid number of parameters (${a.length}) - expected (${Object.keys(h.Oa).toString()}) parameters instead!`);return r.apply(this,a)});var i=Object.create(n,{constructor:{value:r}});r.prototype=i;var u,h=new ea(l,r,i,c,t,o,s,f);return h.ya&&((u=h.ya).Ya??(u.Ya=[]),h.ya.Ya.push(h)),t=new ca(l,h,!0,!1,!1),u=new ca(l+"*",h,!1,!1,!1),n=new ca(l+" const*",h,!1,!0,!1),aa[a]={pointerType:u,Eb:n},da(w,r),[t,u,n]})},v:(a,r,t,e,n,o,i)=>{var s=$a(t,e);r=_(r),r=Aa(r),o=va(n,o),W([],[a],a=>{function e(){ya(`Cannot call ${n} due to unbound types`,s)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=a.na.constructor;return void 0===u[r]?(e.Ma=t-1,u[r]=e):(ra(u,r,n),u[r].ua[t-1]=e),W([],s,e=>{if(e=ga(n,[e[0],null].concat(e.slice(1)),null,o,i),void 0===u[r].ua?(e.Ma=t-1,u[r]=e):u[r].ua[t-1]=e,a.na.Ya)for(const t of a.na.Ya)t.constructor.hasOwnProperty(r)||(t.constructor[r]=e);return[]}),[]})},j:(a,r,t,e,n,o)=>{var i=$a(r,t);n=va(e,n),W([],[a],a=>{var t=`constructor ${(a=a[0]).name}`;if(void 0===a.na.Oa&&(a.na.Oa=[]),void 0!==a.na.Oa[r-1])throw new H(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${a.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return a.na.Oa[r-1]=()=>{ya(`Cannot construct ${a.name} due to unbound types`,i)},W([],i,e=>(e.splice(1,0,null),a.na.Oa[r-1]=ga(t,e,null,n,o),[])),[]})},a:(a,r,t,e,n,o,i,s)=>{var u=$a(t,e);r=_(r),r=Aa(r),o=va(n,o),W([],[a],a=>{function e(){ya(`Cannot call ${n} due to unbound types`,u)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&a.na.Sb.push(r);var f=a.na.La,l=f[r];return void 0===l||void 0===l.ua&&l.className!==a.name&&l.Ma===t-2?(e.Ma=t-2,e.className=a.name,f[r]=e):(ra(f,r,n),f[r].ua[t-2]=e),W([],u,e=>(e=ga(n,e,a,o,i),void 0===f[r].ua?(e.Ma=t-2,f[r]=e):f[r].ua[t-2]=e,[])),[]})},c:(a,r,t,e,n,o,i,s,u,f)=>{r=_(r),n=va(e,n),W([],[a],a=>{var e=`${(a=a[0]).name}.${r}`,l={get(){ya(`Cannot access ${e} due to unbound types`,[t,i])},enumerable:!0,configurable:!0};return l.set=u?()=>ya(`Cannot access ${e} due to unbound types`,[t,i]):()=>{throw new H(e+" is a read-only property")},Object.defineProperty(a.na.La,r,l),W([],u?[t,i]:[t],t=>{var i=t[0],l={get(){var r=Ca(this,a,e+" getter");return i.sa(n(o,r))},enumerable:!0};if(u){u=va(s,u);var h=t[1];l.set=function(r){var t=Ca(this,a,e+" setter"),n=[];u(f,t,h.wa(n,r)),M(n)}}return Object.defineProperty(a.na.La,r,l),[]}),[]})},_:a=>G(a,Pa),m:(a,r,t,e)=>{function n(){}r=_(r),n.values={},G(a,{name:r,constructor:n,sa:function(a){return this.constructor.values[a]},wa:(a,r)=>r.value,Ea:ja(r,t,e),Aa:null}),ta(r,n)},d:(a,r,t)=>{var e=Da(a,"enum");r=_(r),a=e.constructor,e=Object.create(e.constructor.prototype,{value:{value:t},constructor:{value:Z(`${e.name}_${r}`,function(){})}}),a.values[t]=e,a[r]=e},D:(a,r,t)=>{G(a,{name:r=_(r),sa:a=>a,wa:(a,r)=>r,Ea:Ra(r,t),Aa:null})},da:(a,r,t,e,n,o)=>{var i=$a(r,t);a=_(a),a=Aa(a),n=va(e,n),ta(a,function(){ya(`Cannot call ${a} due to unbound types`,i)},r-1),W([],i,t=>(da(a,ga(a,[t[0],null].concat(t.slice(1)),null,n,o),r-1),[]))},w:(a,r,t,e,n)=>{r=_(r);let o=a=>a;if(0===e){var i=32-8*t;o=a=>a<<i>>>i,n=o(n)}G(a,{name:r,sa:o,wa:(a,r)=>r,Ea:J(r,t,0!==e),Aa:null})},o:(a,r,t)=>{function e(a){return new n(h.buffer,v[a+4>>2],v[a>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];G(a,{name:t=_(t),sa:e,Ea:e},{Mb:!0})},t:a=>{G(a,Ta)},k:(a,r,t,e,n,o,i,s,u,f,l,h)=>{t=_(t),o=va(n,o),s=va(i,s),f=va(u,f),h=va(l,h),W([a],[r],a=>(a=a[0],[new ca(t,a.na,!1,!1,!0,a,e,o,s,f,h)]))},aa:(a,r)=>{G(a,{name:r=_(r),sa(a){var r=(r=a+4)?za(c,r,v[a>>2],!0):"";return Zr(a),r},wa(a,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t="string"==typeof r;if(!(t||ArrayBuffer.isView(r)&&1==r.BYTES_PER_ELEMENT))throw new H("Cannot pass non-string to std::string");var e=t?Ia(r):r.length,n=Xr(4+e+1),o=n+4;return v[n>>2]=e,t?qa(r,c,o,e+1):c.set(r,o),null!==a&&a.push(Zr,n),n},Ea:z,Aa(a){Zr(a)}})},A:(a,r,t)=>{if(t=_(t),2===r)var e=Na,n=Fa,o=La;else e=Wa,n=_a,o=Ha;G(a,{name:t,sa:a=>{var t=e(a+4,v[a>>2]*r,!0);return Zr(a),t},wa:(a,e)=>{if("string"!=typeof e)throw new H(`Cannot pass non-string to C++ string type ${t}`);var i=o(e),s=Xr(4+i+r);return v[s>>2]=i/r,n(e,s+4,i+r),null!==a&&a.push(Zr,s),s},Ea:z,Aa(a){Zr(a)}})},s:(a,r,t,e,n,o)=>{B[a]={name:_(r),nb:va(t,e),Ha:va(n,o),rb:[]}},l:(a,r,t,e,n,o,i,s,u,f)=>{B[a].rb.push({Gb:_(r),Lb:t,Jb:va(e,n),Kb:o,Vb:i,Ub:va(s,u),Wb:f})},ca:(a,r)=>{G(a,{Nb:!0,name:r=_(r),sa:()=>{},wa:()=>{}})},I:()=>{q=!1,Ga=0},h:(a,r,t)=>{var[e,...n]=((a,r)=>{for(var t=Array(a),e=0;e<a;++e)t[e]=Da(v[r+4*e>>2],`parameter ${e}`);return t})(a,r),o=e.wa.bind(e),i=n.map(a=>a.Ea.bind(a));a--;var s=Array(a);return r=`methodCaller<(${n.map(a=>a.name)}) => ${e.name}>`,(a=>{var r=Ja.length;return Ja.push(a),r})(Z(r,(r,e,n,u)=>{for(var f=0,l=0;l<a;++l)s[l]=i[l](u+f),f+=8;switch(t){case 0:var h=Oa(r).apply(null,s);break;case 2:h=Reflect.construct(Oa(r),s);break;case 3:h=s[0];break;case 1:h=Oa(r)[Va(e)](...s)}return h=o(r=[],h),r.length&&(v[n>>2]=Sa(r)),h}))},b:xa,W:a=>a?(a=Va(a),Sa(Qa[a])):Sa(Qa),q:(a,r)=>(a=Oa(a),r=Oa(r),Sa(a[r])),f:a=>{9<a&&(Ea[a+1]+=1)},$:(a,r)=>(a=Oa(a))instanceof Oa(r),i:Ya,Z:Ya,u:a=>"number"==typeof(a=Oa(a)),x:a=>"string"==typeof(a=Oa(a)),F:()=>Sa([]),p:a=>Sa(Va(a)),g:a=>{var r=Oa(a);M(r),xa(a)},z:a=>(a=Oa(a),Sa(typeof a)),G:(a,r)=>{if(Fr[a]&&(clearTimeout(Fr[a].id),delete Fr[a]),!r)return 0;var t=setTimeout(()=>{delete Fr[a],(a=>{if(!k)try{if(a(),!(q||0<Ga))try{s=a=s,Wr(a)}catch(a){Lr(a)}}catch(a){Lr(a)}})(()=>rt(a,performance.now()))},r);return Fr[a]={id:t,qc:r},0},S:(a,r,t,e)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),v[a>>2]=60*Math.max(o,n),p[r>>2]=Number(o!=n),a=(r=a=>{var r=Math.abs(a);return`UTC${0<=a?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(o),r=r(n),n<o?(qa(a,c,t,17),qa(r,c,e,17)):(qa(a,c,e,17),qa(r,c,t,17))},P:function(a,r,t){return 0<=a&&3>=a?(y[t>>3]=BigInt(Math.round(1e6*(0===a?Date.now():performance.now()))),0):28},Y:(a,r,t)=>{_r.length=0;for(var e;e=c[r++];){var n=105!=e;t+=(n&=112!=e)&&t%8?4:0,_r.push(112==e?v[t>>2]:106==e?y[t>>3]:105==e?p[t>>2]:b[t>>3]),t+=n?8:4}return et[a](..._r)},C:(a,r)=>C(a?za(c,a,r):""),y:()=>performance.now(),T:Kr,H:a=>{var r=c.length;if(2147483648<(a>>>=0))return!1;for(var t=1;4>=t;t*=2){var e=r*(1+.2/t);e=Math.min(e,a+100663296);a:{e=(Math.min(2147483648,65536*Math.ceil(Math.max(a,e)/65536))-l.buffer.byteLength+65535)/65536|0;try{l.grow(e),x();var n=1;break a}catch(a){}n=void 0}if(n)return!0}return!1},X:()=>{var a=Error().stack.toString().split("\n");return"Error"==a[0]&&a.shift(),Jr(a),Hr.tb=Gr(a[3]),Hr.Ob=a,Hr.tb},V:(a,r,t)=>{if(Hr.tb==a)var e=Hr.Ob;else"Error"==(e=Error().stack.toString().split("\n"))[0]&&e.shift(),Jr(e);for(var n=3;e[n]&&Gr(e[n])!=a;)++n;for(a=0;a<t&&e[a+n];++a)p[r+4*a>>2]=Gr(e[a+n]);return a},K:(a,r)=>{var t,e=0,n=0;for(t of Qr()){var o=r+e;v[a+n>>2]=o,e+=qa(t,c,o,1/0)+1,n+=4}return 0},L:(a,r)=>{var t=Qr();for(var e of(v[a>>2]=t.length,a=0,t))a+=Ia(e)+1;return v[r>>2]=a,0},B:a=>{s=a,Wr(a)},O:function(a){try{var r=Or(a);if(null===r.Pa)throw new mr(8);r.kb&&(r.kb=null);try{r.qa.close&&r.qa.close(r)}catch(a){throw a}finally{hr[r.Pa]=null}return r.Pa=null,0}catch(a){if(void 0===Nr||"ErrnoError"!==a.name)throw a;return a.Ta}},N:function(a,r,t,e){try{a:{var n=Or(a);a=r;for(var o,i=r=0;i<t;i++){var s=v[a>>2],u=v[a+4>>2];a+=8;var f=n,l=s,c=u,w=o,d=h;if(0>c||0>w)throw new mr(28);if(null===f.Pa)throw new mr(8);if(1==(2097155&f.flags))throw new mr(8);if(16384==(61440&f.node.mode))throw new mr(31);if(!f.qa.read)throw new mr(28);var p=void 0!==w;if(p){if(!f.seekable)throw new mr(70)}else w=f.position;var m=f.qa.read(f,d,l,c,w);p||(f.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return v[e>>2]=y,0}catch(a){if(void 0===Nr||"ErrnoError"!==a.name)throw a;return a.Ta}},J:function(a,r,t,e){r=-9007199254740992>r||9007199254740992<r?NaN:Number(r);try{if(isNaN(r))return 61;var n=Or(a);return Mr(n,r,t),y[e>>3]=BigInt(n.position),n.kb&&0===r&&0===t&&(n.kb=null),0}catch(a){if(void 0===Nr||"ErrnoError"!==a.name)throw a;return a.Ta}},M:function(a,r,t,e){try{a:{var n=Or(a);a=r;for(var o,i=r=0;i<t;i++){var s=v[a>>2],u=v[a+4>>2];a+=8;var f=n,l=s,c=u,w=o,d=h;if(0>c||0>w)throw new mr(28);if(null===f.Pa)throw new mr(8);if(!(2097155&f.flags))throw new mr(8);if(16384==(61440&f.node.mode))throw new mr(31);if(!f.qa.write)throw new mr(28);f.seekable&&1024&f.flags&&Mr(f,0,2);var p=void 0!==w;if(p){if(!f.seekable)throw new mr(70)}else w=f.position;var m=f.qa.write(f,d,l,c,w,void 0);p||(f.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return v[e>>2]=y,0}catch(a){if(void 0===Nr||"ErrnoError"!==a.name)throw a;return a.Ta}},R:Wr};return tt=await async function(){function a(a){return tt=a.exports,l=tt.ea,x(),wa=tt.ja,Yr=(a=tt).ga,Xr=a.ha,Zr=a.ia,at=a.ka,rt=a.la,tt}var r={a:nt};return e.instantiateWasm?new Promise(t=>{e.instantiateWasm(r,(r,e)=>{t(a(r))})}):($??=e.locateFile?e.locateFile("arcgis-knowledge-client-core-simd.wasm",o):o+"arcgis-knowledge-client-core-simd.wasm",a((await async function(a){var r=$;if(!i)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,a)}catch(a){C(`wasm streaming compile failed: ${a}`),C("falling back to ArrayBuffer instantiation")}return async function(a,r){try{var t=await S(a);return await WebAssembly.instantiate(t,r)}catch(a){C(`failed to asynchronously prepare wasm: ${a}`),O(a)}}(r,a)}(r)).instance))}(),function(){function a(){if(e.calledRun=!0,!k){var a,r;if(E=!0,e.noFSInit||dr||(dr=!0,a??=e.stdin,r??=e.stdout,t??=e.stderr,a?zr("stdin",a):Ir("/dev/tty","/dev/stdin"),r?zr("stdout",null,r):Ir("/dev/tty","/dev/stdout"),t?zr("stderr",null,t):Ir("/dev/tty1","/dev/stderr"),Br("/dev/stdin",0),Br("/dev/stdout",1),Br("/dev/stderr",1)),tt.fa(),pr=!1,u?.(e),e.onRuntimeInitialized?.(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();D.push(t)}j(D)}}if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)T();j(R),e.setStatus?(e.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>e.setStatus(""),1),a()},1)):a()}(),E?e:new Promise((a,r)=>{u=a,f=r})},a.exports=t,a.exports.default=t),o.exports;var a,r,t}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,547,3169,5549,8125],{40547:(t,e,s)=>{s.d(e,{convert:()=>C,convertFromSpatialReferenceUnit:()=>x,convertToSpatialReferenceUnit:()=>b,meters:()=>i.L2,squareMeters:()=>i.A7,toAreaUnit:()=>_,toLengthUnit:()=>P});var n=s(59534),r=s(85935),i=s(71409);const a=[];function o(t){return 0===t.length?'""':t.startsWith('"')||t.startsWith(".")||t[0]>="0"&&t[0]<="9"?t:'"'+t.trim()+'"'}function c(t){let e="",s="",n=!1;for(let r=0;r<t.length;r++){const i=t[r];n?'"'===i?'"'===t[r+1]?(e+=`\\${i}`,r+=1):n=!1:e+=i:/\s/.test(i)||(","===i?(s+=""!==e?o(e)+",":",",e=""):")"===i||"]"===i?(s+=""!==e?o(e)+"]}":"]}",e=""):"("===i||"["===i?(s+='{ "entity": "'+e.toUpperCase().trim()+'", "values":[',e=""):'"'===i?(n=!0,e=""):e+=i)}return JSON.parse(s)}function u(t){try{for(let e=0;e<a.length;e++)if(a[e].spatialReferenceWkt===t)return a[e].unit;const e=l(c(t));if(null===e)return null;let s=null;for(const t of e.values)if("object"==typeof t&&("UNIT"===t.entity||"ANGLEUNIT"===t.entity||"LENGTHUNIT"===t.entity)){s=t;break}if(null===s)return null;const n=function(t,e,s){if(null!=s)try{if("EPSG"===s.values[0])return{type:t,wkid:Number.parseInt(s.values[1],10),factor:e}}catch(t){}return{type:t,factor:e}}("GEOGCS"===e.entity||"GEOGCRS"===e.entity?"angular":"linear",s.values[1],s.values[2]);return a.push({spatialReferenceWkt:t,unit:n}),a.length>10&&a.shift(),n}catch(t){return null}}function l(t){if(null===t)return null;switch(t.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return t}const e=[];for(const s of t.values)if("object"==typeof s&&void 0!==s.entity)switch(s.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return s;default:e.push(s)}for(const t of e){const e=l(t);if(null!=e)return e}return null}s(44208);var m=s(86211),h=s(22530);const f=-1;function d(t,e){let s;switch(t){case"linear":s=i.s9;break;case"angular":s=i.zD;break;case"area":s=i.y6;break;default:return null}return s.get(e)}function y(t){const e=t.wkid;if(null!=e){const t=h.A.units[h.A[e]];if(null!=t)switch(t){case"Meter":return d("linear",9001);case"Foot":return d("linear",9002);case"Foot_US":return d("linear",9003);case"Foot_Clarke":return d("linear",9005);case"Yard_Clarke":return d("linear",9037);case"Link_Clarke":return d("linear",9039);case"Yard_Sears":return d("linear",9040);case"Foot_Sears":return d("linear",9041);case"Chain_Sears":return d("linear",9042);case"Chain_Benoit_1895_B":return d("linear",9062);case"Yard_Indian":return d("linear",9084);case"Yard_Indian_1937":return d("linear",9085);case"Foot_Gold_Coast":return d("linear",9094);case"Chain":return d("linear",9097);case"Chain_Sears_1922_Truncated":return d("linear",9301);case"50_Kilometers":return d("linear",109030);case"150_Kilometers":return d("linear",109031);default:throw new Error(`Unknown unit name: ${t}`)}return m.yD.has(e)?d("angular",9105):d("angular",9102)}const s=t.wkt2||t.wkt;if(null!=s){const t=u(s);if(null!=t){if(null!=t.wkid){const e=d(t.type,t.wkid);if(null!=e)return e}return{type:t.type,wkid:f,factor:t.factor}}}return null}function p(t){if("linear"!==t.type)return null;if(t.wkid===f)return{type:"area",wkid:f,factor:t.factor**2};const e=i.SQ.get(t.wkid);return null==e?null:d("area",e)}function _(t){if(null!=t){if("number"==typeof t)return i.y6.get(t)??i.s9.get(t)??i.zD.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return i.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return i.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.y6.get(109414);case"acres":case"acre":case"ac":return i.y6.get(109402);case"hectares":case"hectare":case"ha":return i.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return i.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return i.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.y6.get(109413)}}}function P(t){if(null!=t){if("number"==typeof t)return i.s9.get(t)??i.zD.get(t)??i.y6.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return i.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return i.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return i.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return i.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.s9.get(9035)}}}function g(t,e,s){if(t.type!==e.type)throw new Error(`Incompatible unit types. src=${t.type} dest=${e.type}`);return s*(t.factor/e.factor)}function x(t,e,s){if(null==t||null==e)return s;const n=y(t);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===e.type&&"linear"===n.type?p(n):n;if(null==r)throw new Error(`Unknown spatial reference ${e.type} unit.`);return g(r,e,s)}function b(t,e,s){if(null==t||null==e)return s;const n=y(e);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===t.type&&"linear"===n.type?p(n):n;if(null==r)throw new Error(`Unknown spatial reference ${t.type} unit.`);return g(t,r,s)}function C(t,e,s){return null==t||null==e?s:g(t,e,s)}},59534:(t,e,s)=>{s.d(e,{B:()=>r,b:()=>i});var n=s(85935);function r(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class i{constructor(t,e){const s=new Map;for(const e of t){const t=r(e);if(s.has(t))throw new Error(`${e} already added as ${s.get(t)}`);s.set(t,e)}if(null!=e)for(const[t,n]of e){const e=r(t);if(s.has(e))throw new Error(`${t} already associated with ${s.get(e)}`);s.set(e,n)}this._enumMap=s}lookup(t){return this._enumMap.get(r(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$(null,"InvalidParameter",null);return e}}},66070:(t,e,s)=>{s.d(e,{g7:()=>p,zo:()=>_});var n=s(76061),r=s(95213),i=s(55537),a=s(88885),o=s(83661);const c=1.4142135623730951,u=.017453292519943295,l=256,m=1024;class h{static construct(t,e,s){const n=new h;return n.x=t.x,n.y=t.y,n.m_next=-1,n.m_prev=-1,n.z=e,n.m=s,n.type=0,n}clone(){const t=new h;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new o.P(this.x,this.y)}}class f{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===i.G.enumLine)return this.offsetLine();if(t===i.G.enumEnvelope)return this.offsetEnvelope();if((0,i.f)(t)){const t=new a.P;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===i.G.enumPolyline){const t=new a.P;return this.offsetMultiPath(t),t}if(t===i.G.enumPolygon){const t=new a.a;return this.offsetMultiPath(t),t}(0,i.t)("")}offsetLine(){const t=this.m_inputGeometry,e=t.getStartXY(),s=t.getEndXY(),n=new o.P;n.setSub(s,e),n.normalize(),n.leftPerpendicularThis(),n.scale(this.m_distance),e.addThis(n),s.addThis(n);const r=t.clone();return r.setStartXY(e),r.setEndXY(s),r}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const e=new a.a;return e.addEnvelope(t,!1),this.m_inputGeometry=e,this.constructOffset()}const e=t.clone();return e.inflateCoords(this.m_distance,this.m_distance),e}progress(){}static buildPoint(t,e,s,n){n.x=t.x+e*Math.cos(s),n.y=t.y+e*Math.sin(s),n.type=t.type,n.z=t.z,n.m=t.m,n.m_next=-1,n.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,e){if(0===this.m_offsetPtCount)return void this.addPoint(t);const s=this.m_srcPtCount,n=this.m_srcPts[0===e?s-1:e-1],r=this.m_srcPts[e],i=f.dotSign(n,r,this.m_offsetPts[this.m_offsetPtCount-1],t);if(i>0)this.addPoint(t);else if(i<0)if(f.dotSign(n,r,r,this.m_offsetPts[this.m_offsetPtCount-1])>0){const r=new h;let i;i=0===e?s-2:1===e?s-1:e-2;const a=this.m_srcPts[i],c=Math.atan2(n.y-a.y,n.x-a.x);if(f.buildPoint(n,this.m_distance,c-o.o,r),this.m_offsetPts[this.m_offsetPtCount-1]=r.clone(),1===this.m_joins||2===this.m_joins){r.x=.5*(r.x+n.x),r.y=.5*(r.y+n.y),this.addPoint(r),f.buildPoint(n,this.m_distance,this.m_a1+o.o,r);const t=r.clone();t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),t.type|=l,this.addPoint(t),this.addPoint(r)}else f.buildPoint(n,this.m_distance,this.m_a1+o.o,r),r.type|=l,this.addPoint(r);this.addPointEx(t,e)}else{const t=new h;if(f.buildPoint(r,this.m_distance,this.m_a1+o.o,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+r.x),t.y=.5*(t.y+r.y),this.addPoint(t),f.buildPoint(r,this.m_distance,this.m_a2-o.o,t);const e=t.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=l,this.addPoint(e),this.addPoint(t)}else f.buildPoint(r,this.m_distance,this.m_a2-o.o,t),t.type|=l,this.addPoint(t)}}buildOffset(){const t=new h,e=this.m_srcPtCount;this.m_offsetPtCount=0;const s=.5*this.m_tolerance;let n=0,r=0;for(let i=0;i<e;i++){const a=this.m_srcPts[i],h=0===i?this.m_srcPts[e-1]:this.m_srcPts[i-1],d=i===e-1?this.m_srcPts[0]:this.m_srcPts[i+1];let y,p,_=0;{const t=h.x-a.x,e=h.y-a.y,s=d.x-a.x,c=d.y-a.y;y=Math.atan2(e,t),p=Math.atan2(c,s),this.m_a1=y,this.m_a2=p,0===i&&(n=y,r=p),_=o.P.orientationRobust(a.asPoint2D(),h.asPoint2D(),d.asPoint2D())}const P=p;if(p<y&&(p+=o.p),!(Math.abs(Math.abs(y-p)-Math.PI)<1e-8))if(_*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){f.buildPoint(a,this.m_distance,y+o.o,t),this.addPoint(t);const e=.001;t.x=a.x+(t.x-a.x)*e,t.y=a.y+(t.y-a.y)*e,this.addPoint(t),f.buildPoint(a,this.m_distance,p-o.o,t);const s=t.clone();s.x=a.x+(s.x-a.x)*e,s.y=a.y+(s.y-a.y)*e,s.type|=l,this.addPoint(s),this.addPoint(t)}else{const e=.5*(p-y),s=0===e?this.m_distance:this.m_distance/Math.abs(Math.sin(e));f.buildPoint(a,s,.5*(y+p),t),this.addPointEx(t,i)}else{if(512&a.type){const e=1-s/Math.abs(this.m_distance);let n=1,r=this.m_distance<0?-Math.PI:Math.PI;if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.PI/t+1.5),n>1&&(r/=n)}n<=1&&(n=2,r/=2);let c=y+o.o;f.buildPoint(a,this.m_distance,c,t),0===i&&(t.type|=m),this.addPointEx(t,i);const l=this.m_distance/Math.cos(r/2);for(c+=r/2,f.buildPoint(a,l,c,t),t.type|=m,this.addPoint(t);--n>0;)c+=r,f.buildPoint(a,l,c,t),t.type|=m,this.addPoint(t);f.buildPoint(a,this.m_distance,p-o.o,t),t.type|=m,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const e=1-s/Math.abs(this.m_distance);let n=1,r=p-o.o-(y+o.o);if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.abs(r)/t+1.5),n>1&&(r/=n)}const c=this.m_distance/Math.cos(.5*r);let l=y+o.o+.5*r;for(f.buildPoint(a,c,l,t),this.addPointEx(t,i);--n>0;)l+=r,f.buildPoint(a,c,l,t),this.addPoint(t);continue}if(2===this.m_joins){const e=h.x-a.x,s=h.y-a.y,n=d.x-a.x,r=d.y-a.y;let u=(e*n+s*r)/Math.sqrt(e*e+s*s)/Math.sqrt(n*n+r*r);if(u=Math.max(u,-1),u>1-1e-8){f.buildPoint(a,c*this.m_distance,p-.25*Math.PI,t),this.addPointEx(t,i),f.buildPoint(a,c*this.m_distance,p+.25*Math.PI,t),this.addPoint(t);continue}const l=Math.abs(this.m_distance/Math.sin(.5*Math.acos(u))),m=Math.abs(this.m_miterLimit*this.m_distance);if(l>m){const e=.5*(p-y),s=this.m_distance/Math.abs(Math.sin(e));f.buildPoint(a,s,.5*(y+p),t);const n=o.P.construct(t.x,t.y),r=o.P.construct(a.x,a.y),c=new o.P;c.setSub(n,r);const u=new o.P;u.setScaleAdd(m/c.length(),c,r);const h=Math.sqrt(l*l-this.m_distance*this.m_distance),d=(l-m)*Math.abs(this.m_distance)/h;this.m_distance>0?c.rightPerpendicularThis():c.leftPerpendicularThis(),c.scale(d/c.length());const _=new o.P;_.setAdd(u,c);const P=new o.P;P.setSub(u,c),t.x=_.x,t.y=_.y,this.addPointEx(t,i),t.x=P.x,t.y=P.y,this.addPoint(t);continue}const _=.5*(p-y),P=this.m_distance/Math.abs(Math.sin(_));f.buildPoint(a,P,.5*(y+p),t),this.addPointEx(t,i);continue}{let e;if(p=P,this.m_distance>0?(p>y&&(p-=o.p),e=y-p<o.o):(p<y&&(p+=o.p),e=p-y<o.o),e){const e=this.m_distance*c;let s;s=e<0?y+.25*Math.PI:y+3*Math.PI*.25,f.buildPoint(a,e,s,t),this.addPointEx(t,i),s=e<0?p-.25*Math.PI:p-3*Math.PI*.25,f.buildPoint(a,e,s,t),this.addPoint(t)}else{const e=.5*(p-y),s=this.m_distance/Math.abs(Math.sin(e));p<y&&(p+=o.p),f.buildPoint(a,s,(y+p)/2,t),this.addPointEx(t,i)}}}else f.buildPoint(a,this.m_distance,y+o.o,t),this.addPointEx(t,i),f.buildPoint(a,this.m_distance,p-o.o,t),this.addPoint(t)}}return this.m_a1=n,this.m_a2=r,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let t=0;t<this.m_offsetPtCount;t++){const e=this.m_offsetPts[t];e.m_next=t+1,e.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let e=0;for(let s=0;s<this.m_offsetPtCount;s++)if(this.m_offsetPts[e].type&l){const s=this.deleteClosedSeg(e);if(-1===s){t=!0;break}e=s}else e=this.m_offsetPts[e].m_next;return!t&&(this.compressOffsetArray(e),!0)}deleteClosedSeg(t){const e=this.m_offsetPtCount-1;let s,n,r=t;for(let i=1;i<=e-2;i++){r=this.m_offsetPts[r].m_next,s=r,n=t;for(let t=1;t<=i;t++){if(n=this.m_offsetPts[n].m_prev,0===(this.m_offsetPts[n].type&l)&&0===(this.m_offsetPts[s].type&l)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}s=this.m_offsetPts[s].m_prev}}return-1}handleClosedIntersection(t,e){const s=this.m_offsetPts[this.m_offsetPts[t].m_prev],n=this.m_offsetPts[t],r=this.m_offsetPts[this.m_offsetPts[e].m_prev],i=this.m_offsetPts[e];if(!this.sectGraphicRect(s,n,r,i))return-1;const a={pt:new h,bAtExistingPt:!1};if(((n.x-s.x)*(i.y-r.y)-(n.y-s.y)*(i.x-r.x))*this.m_distance<0&&this.findIntersection(s,n,r,i,a)&&!a.bAtExistingPt){const o=1e-8,c=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),u=(n.x-s.x)/c,l=(n.y-s.y)/c,m=Math.sqrt((i.x-r.x)*(i.x-r.x)+(i.y-r.y)*(i.y-r.y)),h=(i.x-r.x)/m,f=(i.y-r.y)/m;let d=!1;const y=a.pt.clone();y.x+=(u+h)*o,y.y+=(l+f)*o;let p=r,_=a.pt,P=this.m_offsetPts[t].m_prev;for(;_.y>y.y!=p.y>y.y&&y.x<(p.x-_.x)*(y.y-_.y)/(p.y-_.y)+_.x&&(d=!d),p=_,P=this.m_offsetPts[P].m_next,P!==e;)_=this.m_offsetPts[P];if(d)return-1;const g=this.m_offsetPts[t].m_prev;return a.pt.type=n.type,a.pt.m_next=e,a.pt.m_prev=g,this.m_offsetPts[t]=a.pt,this.m_offsetPts[e].m_prev=t,e}return-1}sectGraphicRect(t,e,s,n){return Math.max(t.x,e.x)>=Math.min(s.x,n.x)&&Math.max(s.x,n.x)>=Math.min(t.x,e.x)&&Math.max(t.y,e.y)>=Math.min(s.y,n.y)&&Math.max(s.y,n.y)>=Math.min(t.y,e.y)}findIntersection(t,e,s,n,r){let i,a,o,c;return r.bAtExistingPt=!1,i=(e.y-t.y)*(n.x-s.x)-(e.x-t.x)*(n.y-s.y),a=(s.y-t.y)*(e.x-t.x)-(s.x-t.x)*(e.y-t.y),o=0===i?2:a/i,o>=0&&o<=1&&(c=o,i=(n.y-s.y)*(e.x-t.x)-(n.x-s.x)*(e.y-t.y),a=(t.y-s.y)*(n.x-s.x)-(t.x-s.x)*(n.y-s.y),o=0===i?2:a/i,o>=0&&o<=1)&&(r.pt.x=t.x+o*(e.x-t.x),r.pt.y=t.y+o*(e.y-t.y),this.m_bUseZ&&(r.pt.z=s.z+c*(n.z-s.z)),this.m_bUseM&&(r.pt.m=s.m+c*(n.m-s.m)),0!==c&&1!==c||0!==o&&1!==o||(r.bAtExistingPt=!0),!((0===c||1===c)&&o>0&&o<1||(0===o||1===o)&&c>0&&c<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let e=0,s=t;do{const t=this.m_offsetPts[s].clone();this.m_offsetPts[e]=t,s=t.m_next,e++}while(s!==t);this.m_offsetPts[e]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=e+1}addPart(t,e){if(!(e<2))for(let s=0;s<e;s++){const e=this.m_offsetPts[t+s];if(s?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(e.x,e.y,e.z):this.m_resultPath.lineToCoords(e.x,e.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(e.x,e.y,e.z):this.m_resultPath.startPathCoords(e.x,e.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,e.m)}}}offsetMultiPath(t){const e=(0,a.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),s=e.querySegmentIterator();s.resetToFirstPath();let n=-1;for(;s.nextPath();)n++,this.offsetPath(e,n,t)}offsetPath(t,e,s){let n=t.getPathStart(e),r=t.getPathEnd(e);if(this.m_resultPath=s,t.isClosedPath(e)){const e=t.getXY(n);for(;r>n&&t.getXY(r-1).equals(e);)r--;if(r-n>=2){this.m_srcPtCount=r-n,this.m_srcPts.length=this.m_srcPtCount;for(let e=n;e<r;e++)this.progress(),this.m_srcPts[e-n]=h.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const e=t.getXY(n);for(;n<r-1&&t.getXY(n+1).equals(e);)n++;const s=t.getXY(r-1);for(;n<r-1&&t.getXY(r-2).equals(s);)r--;if(r-n>=2){this.m_srcPtCount=2*(r-n)-2,this.m_srcPts.length=this.m_srcPtCount;let s=h.construct(e,this.m_bUseZ?t.getAttributeAsDbl(1,n,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n,0):0);s.type|=1536,this.m_srcPts[0]=s;let i=1,a=this.m_srcPtCount-1;for(let e=n+1;e<r-1;e++,i++,a--)this.progress(),s=h.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0),this.m_srcPts[i]=s.clone(),s.type|=m,this.m_srcPts[a]=s.clone();if(s=h.construct(t.getXY(r-1),this.m_bUseZ?t.getAttributeAsDbl(1,r-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,r-1,0):0),s.type|=512,this.m_srcPts[i]=s.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,e=-1,s=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&m);s||(t=0);for(let n=1;n<this.m_offsetPtCount;n++){this.progress();const r=0!==(this.m_offsetPts[n].type&m);r?s||(e=n-1,e-t+1>1&&this.addPart(t,e-t+1)):s&&(t=n-1),s=r}s||(e=this.m_offsetPtCount-1,e-t+1>1&&this.addPart(t,e-t+1))}else{const t=0,e=this.m_offsetPtCount-1;e-t>=1&&this.addPart(t,e-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,e,s,n){const r=e.x-t.x,i=e.y-t.y,a=n.x-s.x,c=n.y-s.y,u=(0,o.t)(r,i,a,c);return(0,o.e)(u)}}class d extends n.G{constructor(t,e,s,n,r,i,a){super(),this.m_progressTracker=a,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=e,this.m_distance=s,this.m_joins=n,this.m_miterLimit=r,this.m_flattenError=i}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let e;return(0,i.c)(t),e=this.m_flattenError<=0?(0,r.b)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,e,s,n,r,a){if(null===t&&(0,i.a)(""),t.getDimension()<1&&(0,i.a)(""),r>0||(0,i.a)(""),(0,i.c)(t),0===e||t.isEmpty())return t;const o=new f(a);return o.m_bUseZ=t.hasAttribute(1),o.m_bUseM=t.hasAttribute(2),o.m_inputGeometry=t,o.m_distance=e,o.m_tolerance=r,o.m_joins=s,o.m_miterLimit=n>1?n:1,o.m_progressCounter=0,o.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,e,this.m_progressTracker)}}const y=new class{getOperatorType(){return 10108}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,s,n,r,i,a){return new d(t,e,s,n,r,i,a)}execute(t,e,s,n,r,i,a){return new d(null,e,s,n,r,i,a).offset(t)}};function p(t,e,s,n,r,i){return y.execute(t,e,s,n,r,i,null)}function _(t,e,s,r,i,a){const o=y.executeMany(new n.S(t),e,s,r,i,a,null);return Array.from(o)}},71409:(t,e,s)=>{s.d(e,{A7:()=>h,L2:()=>u,SQ:()=>n,s9:()=>c,y6:()=>m,zD:()=>a});const n=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function r(t){return(e,s)=>[e,{type:t,wkid:e,factor:s}]}const i=r("angular"),a=new Map([i(1031,4.84813681109536e-9),i(9101,1),i(9102,.017453292519943295),i(9103,.0002908882086657216),i(9104,484813681109536e-20),i(9105,.015707963267948967),i(9106,.015707963267948967),i(9109,1e-6),i(9112,.00015707963267948965),i(9113,15707963267948967e-22),i(9114,.0009817477042468104)]),o=r("linear"),c=new Map([o(1025,.001),o(1033,.01),o(9001,1),o(9002,.3048),o(9003,.30480060960121924),o(9005,.3047972654),o(9014,1.8288),o(9030,1852),o(9031,1.0000135965),o(9033,20.11684023368047),o(9034,.2011684023368047),o(9035,1609.3472186944375),o(9036,1e3),o(9037,.9143917962),o(9038,20.1166195164),o(9039,.201166195164),o(9040,.9143984146160287),o(9041,.3047994715386762),o(9042,20.116765121552632),o(9043,.2011676512155263),o(9050,.9143992),o(9051,.3047997333333333),o(9052,20.1167824),o(9053,.201167824),o(9060,.9143992042898124),o(9061,.30479973476327077),o(9062,20.116782494375872),o(9063,.2011678249437587),o(9070,.30480083333333335),o(9080,.30479951024814694),o(9081,.30479841),o(9082,.3047996),o(9083,.3047995),o(9084,.9143985307444408),o(9085,.91439523),o(9086,.9143988),o(9087,.9143985),o(9093,1609.344),o(9094,.3047997101815088),o(9095,.3048007491),o(9096,.9144),o(9097,20.1168),o(9098,.201168),o(9099,.914398),o(9300,.30479933333333337),o(9301,20.116756),o(9302,.20116756),o(109001,.9144),o(109002,.9144018288036576),o(109003,20.1168),o(109004,.201168),o(109005,.1),o(109006,.01),o(109007,.001),o(109008,.0254),o(109009,.025400050800101603),o(109010,5.0292),o(109011,5.029210058420118),o(109012,1853.248),o(109013,1853.184),o(109014,1.7018),o(109015,.8466683600033867),o(109016,.00035277777777777776),o(109017,1e-6),o(109018,1e-9),o(109030,5e4),o(109031,15e4)]),u=c.get(9001),l=r("area"),m=new Map([l(109401,1e4),l(109402,4046.8564224),l(109403,4046.872609874252),l(109404,1),l(109405,.09290304),l(109406,.09290341161327487),l(109407,.09290137299531805),l(109408,3.34450944),l(109409,3429904),l(109410,1.000027193184865),l(109411,404.6872609874253),l(109412,.04046872609874252),l(109413,2589998.470319522),l(109414,1e6),l(109415,.8361123569578626),l(109416,404.6783807676053),l(109417,.04046783807676053),l(109418,.8361244606523066),l(109419,.09290271785025629),l(109420,404.6842389557165),l(109421,.04046842389557164),l(109422,.83612589696064),l(109423,.0929028774400711),l(109424,404.6849341289498),l(109425,.04046849341289498),l(109426,.836125904805842),l(109427,.09290287831176021),l(109428,404.6849379260275),l(109429,.04046849379260275),l(109430,.09290354800069446),l(109431,.09290274144751023),l(109432,.09290207073852812),l(109433,.09290279616016),l(109434,.09290273520025),l(109435,.836124673027592),l(109436,.8361186366467529),l(109437,.8361251654414399),l(109438,.83612461680225),l(109439,2589988.110336),l(109440,.09290286332673177),l(109441,.09290349665192114),l(109442,.83612736),l(109443,.8361307045194736),l(109444,404.68564224),l(109445,.040468564224),l(109446,.836123702404),l(109447,.09290263360044447),l(109448,404.683871963536),l(109449,.0404683871963536),l(109450,.01),l(109451,1e-4),l(109452,1e-6),l(109453,64516e-8),l(109454,.0006451625806477421),l(109455,25.29285264),l(109456,25.29295381171408),l(109457,3434528.149504),l(109458,3434290.937856),l(109459,2.89612324),l(109460,25e8),l(109461,225e8),l(109462,.7168473118308245),l(109463,100),l(109464,1.244521604938271e-7),l(109465,1e-12),l(109466,1e-18)]),h=m.get(109404)},76061:(t,e,s)=>{s.d(e,{G:()=>n,S:()=>r});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class r extends n{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,s)=>{s.r(e),s.d(e,{fromExtent:()=>g,fromGeometry:()=>P,fromMultipoint:()=>x,fromPoint:()=>b,fromPolygon:()=>C,fromPolyline:()=>M,fromSpatialReference:()=>w,getSpatialReference:()=>_,toExtent:()=>v,toGeometry:()=>E,toMultipoint:()=>G,toPoint:()=>k,toPolygon:()=>S,toPolyline:()=>q});var n=s(83661),r=(s(79187),s(55537)),i=s(95213),a=s(88885),o=s(39117),c=s(5443),u=s(48526),l=s(86738),m=s(39829),h=s(82799),f=(s(90293),s(83299));const d="_gxVersion",y=2,p=1;function _(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function P(t){switch(t.type){case"point":return b(t);case"multipoint":return x(t);case"polyline":return M(t);case"polygon":return C(t);case"extent":return g(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function g(t){if(!t.getCacheValue(d)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(y,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(p,0,t.zmin,t.zmax),t.setCacheValue(d,e)}return t.getCacheValue(d)}function x(t){if(!t.getCacheValue(d)){const e=new a.M,s=new i.P,n=t.points,r=t.hasM,o=t.hasZ,c=o?3:2;for(let t=0,i=n.length;t<i;t++){const i=n[t];s.setXYCoords(i[0],i[1]),o&&s.setZ(i[2]??0),r&&s.setM(i[c]??NaN),e.add(s)}t.setCacheValue(d,e)}return t.getCacheValue(d)}function b(t){if(!t.getCacheValue(d)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(d,e)}return t.getCacheValue(d)}function C(t){if(!t.getCacheValue(d)){const{curveRings:e,hasM:s,hasZ:n,rings:r}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:s,hasZ:n,rings:r});t.setCacheValue(d,i)}return t.getCacheValue(d)}function M(t){if(!t.getCacheValue(d)){const{curvePaths:e,hasM:s,hasZ:n,paths:r}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:s,hasZ:n,paths:r});t.setCacheValue(d,i)}return t.getCacheValue(d)}function w(t){if(t.wkid)return(0,o.c)(t.wkid);const e=t.wkt2||t.wkt;return e?(0,o.b)(e):null}function E(t,e){if(t)switch(t.getGeometryType()){case r.G.enumPoint:return k(t,e);case r.G.enumEnvelope:return v(t,e);case r.G.enumMultiPoint:return G(t,e);case r.G.enumPolyline:return q(t,e);case r.G.enumPolygon:return S(t,e)}return null}function v(t,e){if(t.isEmpty())return null;const s=new c.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),n=t.getDescription();if(n.hasM()){const e=t.queryInterval(y,0);s.mmin=e.vmin,s.mmax=e.vmax}if(n.hasZ()){const e=t.queryInterval(p,0);s.zmin=e.vmin,s.zmax=e.vmax}return s.setCacheValue(d,t),s}function G(t,e){if(t.isEmpty())return null;const s=t.getDescription(),n=s.hasM(),r=s.hasZ(),a=[],o=new i.P;for(let e=0,s=t.getPointCount();e<s;e++){t.getPointByVal(e,o);const s=[o.getX(),o.getY()];r&&s.push(o.getZ()),n&&s.push(o.getM()),a.push(s)}const c=new u.A({hasM:n,hasZ:r,points:a,spatialReference:e});return c.setCacheValue(d,t),c}function k(t,e){if(t instanceof n.P)return new l.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const s=new l.A({x:t.getX(),y:t.getY(),spatialReference:e}),r=t.getDescription();return r.hasM()&&(s.m=t.getM()),r.hasZ()&&(s.z=t.getZ()),s.setCacheValue(d,t),s}function S(t,e){if(t.isEmpty())return null;const s=m.A.fromJSON({spatialReference:e,...(0,f.toGeometry)(t,null)});return s.setCacheValue(d,t),s}function q(t,e){if(t.isEmpty())return null;const s=h.A.fromJSON({spatialReference:e,...(0,f.toGeometry)(t,null)});return s.setCacheValue(d,t),s}},85549:(t,e,s)=>{s.d(e,{executeOffsetJson:()=>u,r:()=>c});var n=s(40547),r=s(66070),i=s(78125),a=s(83299);const o={round:0,bevel:1,miter:2,square:3};function c(t,e,s,r,a,o){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,i.fromGeometry)(t),u=(0,i.getSpatialReference)(t),m=l(c,(0,i.fromSpatialReference)(u),e,r,a,o);return(0,i.toGeometry)(m,u)}function u(t,e,s,r,i,o){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,a.fromGeometry)(t),u=c.getGeometry(),m=c.getSpatialReference(),h=l(u,m,e,r,i,o);return(0,a.toGeometry)(h,m)}function l(t,e,s,n,i,a){const c=(0,r.g7)(t,e,s,o[n],i,a);if(!c.isEmpty())return c;{const c=t.clone();c.reverseAllPaths();const u=(0,r.g7)(c,e,-s,o[n],i,a);if(!u.isEmpty())return u.reverseAllPaths(),u}const u=Math.abs(s)/10,l=u/10;let m=a;if("round"===n&&(m+=l),"bevel"===n||"square"===n){const c=(0,r.g7)(t,e,s,o[n="miter"],i,a);if(!c.isEmpty())return c}if("miter"===n){const c=(0,r.g7)(t,e,s,o[n="round"],i,a);if(!c.isEmpty())return c}if("round"===n)for(;m<=u;m+=l){const a=(0,r.g7)(t,e,s,o[n],i,m);if(!a.isEmpty())return a}return null}},85935:(t,e,s)=>{s.d(e,{D$:()=>o,Nh:()=>m,O$:()=>l,mT:()=>u,ps:()=>f});var n=s(799);const r={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};class i extends Error{constructor(...t){super(...t)}}class a extends i{constructor(t,e){super(c(e)+t.message,{cause:t}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,a),e?.loc&&(this.loc=e.loc)}}class o extends Error{constructor(t,e,s,i){super("Execution error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,o),s?.loc&&(this.loc=s.loc)}}function c(t){return t&&t.loc?`Line : ${t.loc.start?.line}, ${t.loc.start?.column}: `:""}class u extends Error{constructor(t,e,s,i){super("Compilation error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),s?.loc&&(this.loc=s.loc)}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,l)}}function m(t,e,s){return"esri.arcade.arcadeexecutionerror"===s.declaredRootClass||"esri.arcade.arcadecompilationerror"===s.declaredRootClass?null===s.loc&&e?.loc?new a(s,{cause:s}):s:("esri.arcade.featureset.support.featureseterror"===s.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===s.declaredRootClass||s.declaredRootClass,e?.loc?new a(s,{cause:s}):s)}const h={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class f extends Error{constructor(t,e){super((0,n.HC)(h[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,8125,9202],{16346:(e,t,n)=>{n.d(t,{d:()=>c,e:()=>m,s:()=>u});var r=n(55537),s=n(26640),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 m=e,u=t;Number.isNaN(a)&&(a=Number.POSITIVE_INFINITY);const c=new s.D(a,n).calculate(m,u,i,o);return Number.isFinite(c)?c:Number.NaN}};function m(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 u=a.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:m,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},26640:(e,t,n)=>{n.d(t,{D:()=>N,m:()=>c,s:()=>_,w:()=>f});var r=n(31635),s=n(55537),i=n(88885),o=n(39117),a=n(83661),m=n(79187),u=n(95213);function c(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function l(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function h(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 y(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function p(e,t){const n=c();g(n,e),g(e,t),g(t,n)}function f(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.H)(e,t.getEndXY(),0))return h(i,t.getEndXY(),-1,Number.NaN),h(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.H)(t,e.getEndXY(),0))return h(i,e.getEndXY(),-1,Number.NaN),h(a,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function _(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 v(e,t){return!!Number.isNaN(t)||e<=t}function D(e){const t=new i.a;return t.addEnvelope(e,!1),t}class N{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,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()!==u.P.type||t.getGeometryType()!==u.P.type)&&(this.m_env2DgeometryA=new m.Envelope2D,this.m_env2DgeometryB=new m.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!v(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=l(new a.P,(0,a.j)(),Number.NaN),i=l(new a.P,(0,a.j)(),Number.NaN),o=this._ExecuteBruteForce(e,t,s,i);return v(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()!==u.P.type&&e.getGeometryType()!==u.E.type||t.getGeometryType()!==u.P.type&&t.getGeometryType()!==u.E.type||(n=!1),n){if(this.m_env2DgeometryA=new m.Envelope2D,this.m_env2DgeometryB=new m.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=l(new a.P,(0,a.j)(),Number.NaN),s=l(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 h(n,s,0,0),h(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,m=!1;const u=t.getPointCount(),c=new a.P;for(let e=0;e<u;++e)if(t.queryXY(e,c),o=a.P.sqrDistance(s,c),this.m_bIsNearCalc){if(o<=i)return 0}else if(!(o>i)&&(!m&&o===i||o<i)&&(i=o,h(n,s,0,0),h(r,c,e,0),m=!0,0===i))return 0;return m?Math.sqrt(i):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const i=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),u=e.getXY();if(!i&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,o.H)(t,u,0))return h(n,u,0,0),h(r,u,-1,Number.NaN),0;t.getImpl().getAccelerators();let c=this.m_maxSqrDistance,l=c,g=-1;const y=new m.Envelope2D,p=t.querySegmentIterator();let f=!1;for(;p.nextPath();)for(;p.hasNextSegment();){const e=p.nextSegment();e.queryEnvelope(y);const t=y.sqrDistance(u);if(t>c)continue;if(!this.m_bIsNearCalc&&f&&t===c)continue;g=e.getClosestCoordinate(u,!1);const s=e.getCoord2D(g);if(l=a.P.sqrDistance(u,s),this.m_bIsNearCalc){if(l<=c)return 0}else if(!(l>c)&&(!f||l<c)&&(c=l,h(n,u,0,0),h(r,s,p.getStartPointIndex(),g),f=!0,0===c))return 0}return f?Math.sqrt(c):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();h(n,s,0,0),h(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 m={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 u=this.m_maxSqrDistance;const c=[e],l=[t],g=this.swapGeometriesIfBGtA(c,l);g&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o=(0,a.c)(i,i=o),p(n,s)),(0,r.mS)(m,(0,a.h)(()=>{p(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!g),!1);const y=c[0].getImpl(),f=l[0].getImpl(),_=y.getPointCount(),v=f.getPointCount(),D=v>1;let N=!1;const P=new a.P,x=new a.P;for(let e=0;e<_;e+=i){if(y.queryXY(e,P),D){const e=this.m_env2DgeometryB.sqrDistance(P);if(this.m_bIsNearCalc){if(e>u)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(P)<=u)return 0}else if(e>=u)continue}for(let t=0;t<v;t+=o){f.queryXY(t,x);const r=a.P.sqrDistance(P,x);if(this.m_bIsNearCalc){if(r<=u)return 0}else if(!(r>u||N&&r===u)&&(!N||r<u)&&(h(n,P,e,0),h(s,x,t,0),N=!0,u=r,0===u))return N?Math.sqrt(u):Number.POSITIVE_INFINITY}}return N?Math.sqrt(u):Number.POSITIVE_INFINITY}catch(e){m.error=e,m.hasError=!0}finally{(0,r.hk)(m)}}distanceMultipointMultipath(e,t,n,r){let i=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const u=t.querySegmentIterator();u.stripAttributes();const c=new m.Envelope2D,l=new a.P;let g=this.m_maxSqrDistance;const y=e.getImpl(),p=y.getPointCount(),f=p>1;let _=!1;for(;u.nextPath();)for(;u.hasNextSegment();){const e=u.nextSegment();if(e.queryLooseEnvelope(c),f){const e=c.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g||_&&e===g)continue}for(let s=0;s<p;s++){if(y.queryXY(s,l),i&&0!==(0,o.H)(t,l,0))return h(n,l,-1,Number.NaN),h(r,l,s,0),0;{const e=c.sqrDistance(l);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g)continue}const a=e.getClosestCoordinate(l,!1),m=e.getCoord2D(a);l.subThis(m);const p=l.sqrLength();if(this.m_bIsNearCalc){if(p<=g)return 0}else if(!(p>g)&&(!_||p<g)&&(g=p,h(n,y.getXY(s),s,0),h(r,m,u.getStartPointIndex(),a),_=!0,0===g))return 0}i=!1}return _?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 u=[e],l=[t],h=this.swapGeometriesIfAGtB(u,l);h&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),p(n,s)),(0,r.mS)(o,(0,a.h)(()=>{p(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!h),!1);const v=u[0],D=l[0],N=v.querySegmentIterator();N.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(v.getPointCount())+1,1,(0,a.i)())),t=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)()));if(this.distanceMultipointMultipoint(v,D,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=c(),t=c();if(f(v,D,N,P,e,t))return g(n,e),g(s,t),0}const x=_(v),I=[],G=new i.S,d=new m.Envelope2D,M=new m.Envelope2D,E=new m.Envelope2D;let q=this.m_maxSqrDistance,C=!0,b=!1;for(let e=0,t=x.length;e<t;++e){v.querySegment(x[e],G,!0);const t=G.get();if(t.queryEnvelope(d),!(d.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>q)){if(this.m_bIsNearCalc&&d.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=q)return 0;for(;P.nextPath();){if(this.progress_(),C)D.queryPathEnvelope(P.getPathIndex(),E),I[P.getPathIndex()]=E.clone();else if(d.sqrDistanceEnvelope(I[P.getPathIndex()],null,null)>q)continue;for(;P.hasNextSegment();){const r=P.nextSegment();if(r.queryEnvelope(M),d.sqrDistanceEnvelope(M,null,null)<=q){const i=!d.isIntersecting(M),o=[0],a=[0];let m=t.distance(r,i,o,a);if(m*=m,this.m_bIsNearCalc&&m<=this.m_maxSqrDistance)return 0;if(m<q||m===q&&x[e]<n.index){if(b=!0,y(n,t,x[e],o[0]),y(s,r,P.getStartPointIndex(),a[0]),0===m)return 0;q=m}}}}P.resetToFirstPath(),C=!1}}return b?Math.sqrt(q):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)}}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},77038:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>r.e,supportsCurves:()=>r.s});var r=n(16346);n(86211),n(78125)},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>D,fromGeometry:()=>v,fromMultipoint:()=>N,fromPoint:()=>P,fromPolygon:()=>x,fromPolyline:()=>I,fromSpatialReference:()=>G,getSpatialReference:()=>_,toExtent:()=>M,toGeometry:()=>d,toMultipoint:()=>E,toPoint:()=>q,toPolygon:()=>C,toPolyline:()=>b});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),o=n(88885),a=n(39117),m=n(5443),u=n(48526),c=n(86738),l=n(39829),h=n(82799),g=(n(90293),n(83299));const y="_gxVersion",p=2,f=1;function _(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function v(e){switch(e.type){case"point":return P(e);case"multipoint":return N(e);case"polyline":return I(e);case"polygon":return x(e);case"extent":return D(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function D(e){if(!e.getCacheValue(y)){const t=new i.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(p,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(f,0,e.zmin,e.zmax),e.setCacheValue(y,t)}return e.getCacheValue(y)}function N(e){if(!e.getCacheValue(y)){const t=new o.M,n=new i.P,r=e.points,s=e.hasM,a=e.hasZ,m=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[m]??NaN),t.add(n)}e.setCacheValue(y,t)}return e.getCacheValue(y)}function P(e){if(!e.getCacheValue(y)){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(y,t)}return e.getCacheValue(y)}function x(e){if(!e.getCacheValue(y)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,i=(0,g.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(y,i)}return e.getCacheValue(y)}function I(e){if(!e.getCacheValue(y)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,i=(0,g.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(y,i)}return e.getCacheValue(y)}function G(e){if(e.wkid)return(0,a.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,a.b)(t):null}function d(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return q(e,t);case s.G.enumEnvelope:return M(e,t);case s.G.enumMultiPoint:return E(e,t);case s.G.enumPolyline:return b(e,t);case s.G.enumPolygon:return C(e,t)}return null}function M(e,t){if(e.isEmpty())return null;const n=new m.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(p,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(f,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(y,e),n}function E(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 m=new u.A({hasM:r,hasZ:s,points:o,spatialReference:t});return m.setCacheValue(y,e),m}function q(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(y,e),n}function C(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,g.toGeometry)(e,null)});return n.setCacheValue(y,e),n}function b(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({spatialReference:t,...(0,g.toGeometry)(e,null)});return n.setCacheValue(y,e),n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,8125,8411],{76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>G,fromGeometry:()=>C,fromMultipoint:()=>M,fromPoint:()=>v,fromPolygon:()=>V,fromPolyline:()=>w,fromSpatialReference:()=>d,getSpatialReference:()=>x,toExtent:()=>R,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>_,toPolygon:()=>k,toPolyline:()=>z});var r=n(83661),o=(n(79187),n(55537)),a=n(95213),s=n(88885),u=n(39117),i=n(5443),c=n(48526),l=n(86738),m=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",g=2,y=1;function x(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function C(e){switch(e.type){case"point":return v(e);case"multipoint":return M(e);case"polyline":return w(e);case"polygon":return V(e);case"extent":return G(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function G(e){if(!e.getCacheValue(p)){const t=new a.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(g,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const t=new s.M,n=new a.P,r=e.points,o=e.hasM,u=e.hasZ,i=u?3:2;for(let e=0,a=r.length;e<a;e++){const a=r[e];n.setXYCoords(a[0],a[1]),u&&n.setZ(a[2]??0),o&&n.setM(a[i]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){const t=new a.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,a=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(p,a)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,a=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(p,a)}return e.getCacheValue(p)}function d(e){if(e.wkid)return(0,u.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,u.b)(t):null}function P(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return _(e,t);case o.G.enumEnvelope:return R(e,t);case o.G.enumMultiPoint:return Z(e,t);case o.G.enumPolyline:return z(e,t);case o.G.enumPolygon:return k(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new i.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(g,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function Z(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),s=[],u=new a.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];o&&n.push(u.getZ()),r&&n.push(u.getM()),s.push(n)}const i=new c.A({hasM:r,hasZ:o,points:s,spatialReference:t});return i.setCacheValue(p,e),i}function _(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function k(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function z(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}},85503:(e,t,n)=>{n.d(t,{a:()=>c,d:()=>m,e:()=>i,s:()=>l});var r=n(4576),o=n(34727),a=n(86211),s=n(91735),u=n(78125);function i(e,t,n={}){let{maxAngleInDegrees:r=0,maxDeviation:i=0,unit:c}=n;const l=(0,u.getSpatialReference)(e);return c&&(t=(0,a.UW)(t,c,l),i&&(i=(0,a.UW)(i,c,l))),(0,u.toGeometry)((0,s.g7)((0,u.fromGeometry)(e),t,i,(0,o.kU)(r)),l)}function c(e,t,n={}){let{maxAngleInDegrees:i=0,maxDeviation:c=0,unit:l}=n;const m=e.map(u.fromGeometry),f=(0,u.getSpatialReference)(e);return l&&(t=(0,a.UW)(t,l,f),c&&(c=(0,a.UW)(c,l,f))),(0,s.zo)(m,t,c,(0,o.kU)(i)).map(e=>(0,u.toGeometry)(e,f)).filter(r.Ru)}const l=(0,s.fz)(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:c,supportsCurves:l},Symbol.toStringTag,{value:"Module"}))},88411:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>r.e,executeMany:()=>r.a,supportsCurves:()=>r.s}),n(4576),n(34727),n(86211),n(91735),n(78125);var r=n(85503)},91735:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>a,zo:()=>s});var r=n(76061);const o=new(n(5247).O);function a(e,t,n,r){return o.execute(e,t,n,r,null)}function s(e,t,n,a){const s=o.executeMany(new r.S(e),t,n,a,null);return Array.from(s)}function u(){return o.supportsCurves()}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,2510,3169,8125],{36633:(e,t,n)=>{n.d(t,{O:()=>g});var r=n(55537),o=n(79187),s=n(83661),i=n(39117);function a(){return u(new s.P,-1,Number.NaN)}function u(e,t,n){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function l(e,t,n=-1,a=-1){if(e.isEmpty())return 3;const u=e.getGeometryType();if((0,r.f)(u))return function(e,t,n,o){if(n>=0||o>=0)return(0,r.a)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const n=s.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return n<0?1:n>0?0:2}const i=e.getClosestCoordinate(t,!1),a=e.getTangent(i),u=e.getCoord2D(i),c=s.P.orientationRobust(t,u,u.add(a));return c<0?1:c>0?0:2}(e,t,n,a);if(u===r.G.enumPolygon)return function(e,t,n,s){(n>=0||s>=0)&&(0,r.a)("");const a=new o.Envelope2D;e.queryEnvelope(a);const u=(0,i.H)(e,t,0);return 0===u?0:1===u?1:2}(e,t,n,a);if(u===r.G.enumPolyline)return function(e,t,n,o){(n<0&&o>=0||n>=0&&o<0)&&(0,r.a)("");const i=e.querySegmentIterator();if(n<0){let e=Number.MAX_VALUE,r=0;for(;i.nextPath();)for(;i.hasNextSegment();){const a=i.nextSegment(),u=a.getClosestCoordinate(t,!1),c=a.getCoord2D(u),l=s.P.sqrDistance(c,t);l<e?(r=1,n=i.getStartPointIndex(),o=i.getPathIndex(),e=l):l===e&&r++}if(0===r)return 3;if(1===r)return i.resetToVertex(n,o),l(i.nextSegment(),t)}const a=function(e,t,n,r){const o={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(o.i1=function(e,t,n){for(e.resetToVertex(t,n);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,n);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,n,r),-1!==o.i1){t.resetToVertex(o.i1,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r),a=s.P.sqrDistance(i,e);{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight1=t.crossProduct(r)<0}if(o.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,o.i1),-1!==o.i2){t.resetToVertex(o.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(s.P.sqrDistance(i,e)>a)o.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight2=t.crossProduct(r)<0}}if(-1===o.i2&&(o.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,o.i1),-1!==o.i2)){t.resetToVertex(o.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(s.P.sqrDistance(i,e)>a)o.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight2=t.crossProduct(r)<0;const s=o.i1;o.i1=o.i2,o.i2=s;const a=o.bRight1;o.bRight1=o.bRight2,o.bRight2=a}}}return o}(t,i,n,o);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{i.resetToVertex(a.i1,-1);const e=i.nextSegment().getTangent(1);i.resetToVertex(a.i2,-1);const t=i.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return i.resetToVertex(n,o),l(i.nextSegment(),t)}(e,t,n,a);if(u===r.G.enumEnvelope){const n=new o.Envelope2D;return e.queryEnvelope(n),n.contains(t)?n.containsExclusive(t)?1:2:0}return 3}var m=n(95213);class g{getOperatorType(){return 10500}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,n,o){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case r.G.enumPolyline:case r.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,n,o);default:(0,r.t)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,r.t)("")}}getNearestVertices(e,t,n,o){if(0===o&&(0,r.a)(""),t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertices(e,t,n,o);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,n,o);default:(0,r.t)("")}}multiPathGetNearestCoordinate(e,t,n,a){if(e.getGeometryType()===r.G.enumPolygon&&n){const n=new o.Envelope2D;e.queryEnvelope(n);const r=(0,m.a)(null,n,!1);let s;if(s=(0,i.H)(e,t,a?0:r),0!==s){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),g=new s.P;let f=-1,h=-1,x=Number.MAX_VALUE,y=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),n=e.getClosestCoordinate(t,!1),r=e.getCoord2D(n),o=s.P.sqrDistance(r,t);o<x?(y=1,g.assign(r),f=c.getStartPointIndex(),h=c.getPathIndex(),x=o):o===x&&y++}-1===f&&(0,r.a)("");const d=u(g,f,Math.sqrt(x));if(a)if(e.getGeometryType()!==r.G.enumPolygon){let n=!1;if(y>1){const r=l(e,t,f,h);n=0!==r&&3!==r}else c.resetToVertex(f,h),n=0!==l(c.nextSegment(),t);d.m_bRightSide=n}else n||0!==(0,i.H)(e,t,0)&&(d.m_bRightSide=!0);return d}pointGetNearestVertex(e,t){const n=e.getXY();return u(n,0,s.P.distance(n,t))}multiVertexGetNearestVertex(e,t){const n=e.getAttributeStreamRef(0),r=e.getPointCount();let o=-1;const i=new s.P;let a=Number.MAX_VALUE;const c=new s.P;for(let e=0;e<r;e++){n.queryPoint2D(2*e,c);const r=s.P.sqrDistance(c,t);r<a&&(i.assign(c),o=e,a=r)}return u(i,o,Math.sqrt(a))}pointGetNearestVertices(e,t,n,r){const o=[];if(0!==r){const r=n*n,i=e.getXY(),a=s.P.sqrDistance(i,t);a<=r&&o.push(u(i,0,Math.sqrt(a)))}return o}multiVertexGetNearestVertices(e,t,n,r){const o=[];if(0!==r){const i=e.getAttributeStreamRef(0),a=e.getPointCount();o.length=r+1;const c=n*n;for(let e=0;e<a;e++){const n=i.read(2*e),r=i.read(2*e+1),a=t.x-n,l=t.y-r,m=a*a+l*l;m<=c&&o.push(u(s.P.construct(n,r),e,Math.sqrt(m)))}o.sort((e,t)=>e.m_distance-t.m_distance)}return o.slice(0,r)}}},64064:(e,t,n)=>{n.d(t,{executeNearestVertex:()=>u});var r=n(95213),o=n(36633),s=n(78125);function i(e,t,n){if(e.getPointCount()<=0)return"left";const r=e.querySegmentIteratorAtVertex(n),o=r.hasPreviousSegment()?r.previousSegment():r.nextSegment();return function(e,t,n){const r=(t.x-e.x)*(n.y-e.y)-(n.x-e.x)*(t.y-e.y);return r>0?"left":r<0?"right":"straddle"}(o.getStartXY(),o.getEndXY(),t)}const a=new o.O;function u(e,t){const n=(0,s.fromGeometry)(e),o=(0,s.fromPoint)(t).getXY(),u=a.getNearestVertex(n,o);if(u.isEmpty())return null;switch(e.type){case"point":return{coordinate:e,distance:u.m_distance,sideOfLine:0===u.m_distance?"straddle":"left"};case"multipoint":{const t=new r.P;return n.getPointByVal(u.m_vertexIndex,t),{coordinate:(0,s.toPoint)(t,(0,s.getSpatialReference)(e)),distance:u.m_distance,sideOfLine:0===u.m_distance?"straddle":"left"}}case"polyline":case"polygon":{const t=new r.P;return n.getPointByVal(u.m_vertexIndex,t),{coordinate:(0,s.toPoint)(t,(0,s.getSpatialReference)(e)),distance:u.m_distance,sideOfLine:i(n,o,u.m_vertexIndex)}}default:throw new Error(`Unsupported geometry type: ${e.type}`)}}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>P,fromGeometry:()=>p,fromMultipoint:()=>G,fromPoint:()=>V,fromPolygon:()=>S,fromPolyline:()=>C,fromSpatialReference:()=>N,getSpatialReference:()=>d,toExtent:()=>R,toGeometry:()=>w,toMultipoint:()=>v,toPoint:()=>b,toPolygon:()=>M,toPolyline:()=>_});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),i=n(88885),a=n(39117),u=n(5443),c=n(48526),l=n(86738),m=n(39829),g=n(82799),f=(n(90293),n(83299));const h="_gxVersion",x=2,y=1;function d(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function p(e){switch(e.type){case"point":return V(e);case"multipoint":return G(e);case"polyline":return C(e);case"polygon":return S(e);case"extent":return P(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function P(e){if(!e.getCacheValue(h)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(x,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(h,t)}return e.getCacheValue(h)}function G(e){if(!e.getCacheValue(h)){const t=new i.M,n=new s.P,r=e.points,o=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),o&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(h,t)}return e.getCacheValue(h)}function V(e){if(!e.getCacheValue(h)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(h,t)}return e.getCacheValue(h)}function S(e){if(!e.getCacheValue(h)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(h,s)}return e.getCacheValue(h)}function C(e){if(!e.getCacheValue(h)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(h,s)}return e.getCacheValue(h)}function N(e){if(e.wkid)return(0,a.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,a.b)(t):null}function w(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return b(e,t);case o.G.enumEnvelope:return R(e,t);case o.G.enumMultiPoint:return v(e,t);case o.G.enumPolyline:return _(e,t);case o.G.enumPolygon:return M(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(x,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(h,e),n}function v(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),i=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];o&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const u=new c.A({hasM:r,hasZ:o,points:i,spatialReference:t});return u.setCacheValue(h,e),u}function b(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(h,e),n}function M(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(h,e),n}function _(e,t){if(e.isEmpty())return null;const n=g.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(h,e),n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,5552,8125],{43628:(e,t,n)=>{n.r(t),n.d(t,{accelerateGeometry:()=>r.a,execute:()=>r.e,isValidDE9IM:()=>r.i,supportsCurves:()=>r.s});var r=n(65416);n(78125)},65416:(e,t,n)=>{n.d(t,{a:()=>o,e:()=>i,i:()=>u,r:()=>l,s:()=>c});var r=n(39117),a=n(78125);const s=new class{supportsCurves(){return!0}getOperatorType(){return 1}execute(e,t,n,a,s){return(0,r.aF)(e,t,n,a,s)}isValidDE9IM(e){return 0===(0,r.aG)(e)}accelerateGeometry(e,t,n){return(0,r.aH)(e,t,n)}canAccelerateGeometry(e){return(0,r.aI)(e)}};function o(e){const t=(0,a.getSpatialReference)(e);return s.accelerateGeometry((0,a.fromGeometry)(e),(0,a.fromSpatialReference)(t),1)}function i(e,t,n){return s.execute((0,a.fromGeometry)(e),(0,a.fromGeometry)(t),(0,a.fromSpatialReference)(e.spatialReference),n,null)}function u(e){return s.isValidDE9IM(e)}const c=s.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:o,execute:i,isValidDE9IM:u,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>a});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class a extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>C,fromGeometry:()=>x,fromMultipoint:()=>M,fromPoint:()=>V,fromPolygon:()=>d,fromPolyline:()=>v,fromSpatialReference:()=>w,getSpatialReference:()=>G,toExtent:()=>R,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>E,toPolygon:()=>_,toPolyline:()=>S});var r=n(83661),a=(n(79187),n(55537)),s=n(95213),o=n(88885),i=n(39117),u=n(5443),c=n(48526),l=n(86738),m=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",y=2,g=1;function G(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return V(e);case"multipoint":return M(e);case"polyline":return v(e);case"polygon":return d(e);case"extent":return C(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function C(e){if(!e.getCacheValue(p)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const t=new o.M,n=new s.P,r=e.points,a=e.hasM,i=e.hasZ,u=i?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),i&&n.setZ(s[2]??0),a&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function d(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:a}=e,s=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:a});e.setCacheValue(p,s)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:a}=e,s=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:a});e.setCacheValue(p,s)}return e.getCacheValue(p)}function w(e){if(e.wkid)return(0,i.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,i.b)(t):null}function P(e,t){if(e)switch(e.getGeometryType()){case a.G.enumPoint:return E(e,t);case a.G.enumEnvelope:return R(e,t);case a.G.enumMultiPoint:return Z(e,t);case a.G.enumPolyline:return S(e,t);case a.G.enumPolygon:return _(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function Z(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),a=n.hasZ(),o=[],i=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,i);const n=[i.getX(),i.getY()];a&&n.push(i.getZ()),r&&n.push(i.getM()),o.push(n)}const u=new c.A({hasM:r,hasZ:a,points:o,spatialReference:t});return u.setCacheValue(p,e),u}function E(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),a=e.getDescription();return a.hasM()&&(n.m=e.getM()),a.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function _(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function S(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7561,8018],{8018:(t,e,r)=>{r.r(e),r.d(e,{executeForTopExtents:()=>l});var i=r(5443),o=r(2272),s=r(24645),n=r(57561);async function l(t,e,r){const l=(0,o.Dl)(t),u=await(0,s.$K)(l,n.default.from(e),{...r}),a=u.data.extent;return!a||isNaN(a.xmin)||isNaN(a.ymin)||isNaN(a.xmax)||isNaN(a.ymax)?{count:u.data.count,extent:null}:{count:u.data.count,extent:i.A.fromJSON(a)}}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(11254),o=r(84952),s=r(65864),n=r(17136),l=r(21325),u=r(10536),a=r(58501);const p="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,a.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(p);if(e.hasOwnProperty("count"))throw new Error(p);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function g(t,e,r,s={},l={}){const a="string"==typeof t?(0,o.An)(t):t,p=e.geometry?[e.geometry]:[];return s.responseType="json",(0,n.el)(p,null,s).then(t=>{const n=t?.[0];null!=n&&((e=e.clone()).geometry=n);const p=(0,u.z)({...a.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(a.path,"queryTopFeatures"),{...s,query:{...p,...s.query}})})}},57561:(t,e,r)=>{r.r(e),r.d(e,{default:()=>j});var i,o=r(31635),s=r(66552),n=r(25482),l=r(4718),u=r(91429),a=r(56507),p=r(16930),d=r(65864),y=r(50498),c=r(77696);let h=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],h.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],h.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],h.prototype,"orderByFields",void 0),h=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFilter")],h);const m=h;var g,w=r(79677),F=r(43937);const v=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),S=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let j=class extends((0,c.y)(n.o)){static{g=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new g((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],j.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],j.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],j.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],j.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],j.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],j.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],j.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:p.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],j.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],j.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],j.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],j.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],j.prototype,"start",void 0),(0,o.Cg)([(0,F.K)("start"),(0,F.K)("num")],j.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:v.read},write:{target:"spatialRel",writer:v.write}}})],j.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:w.A,json:{write:!0}})],j.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:m,json:{write:!0}})],j.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:S.read,write:{writer:S.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance}}}}})],j.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"where",void 0),j=g=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFeaturesQuery")],j),j.from=(0,a.dp)(j)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7561],{57561:(e,t,i)=>{i.r(t),i.d(t,{default:()=>R});var r,o=i(31635),s=i(66552),n=i(25482),l=i(4718),p=i(91429),a=i(56507),d=i(16930),u=i(65864),y=i(50498),h=i(77696);let c=r=class extends n.o{constructor(e){super(e),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new r({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],c.prototype,"groupByFields",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],c.prototype,"topCount",void 0),(0,o.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),c=r=(0,o.Cg)([(0,p.$K)("esri.rest.support.TopFilter")],c);const g=c;var v,w=i(79677),m=i(43937);const C=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),S=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let R=class extends((0,h.y)(n.o)){static{v=this}constructor(e){super(e),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new v((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"cacheHint",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],R.prototype,"distance",void 0),(0,o.Cg)([(0,p.MZ)({types:y.yR,json:{read:u.rS,write:!0}})],R.prototype,"geometry",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],R.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],R.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],R.prototype,"num",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],R.prototype,"objectIds",void 0),(0,o.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],R.prototype,"orderByFields",void 0),(0,o.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],R.prototype,"outFields",void 0),(0,o.Cg)([(0,p.MZ)({type:d.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],R.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],R.prototype,"resultType",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],R.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],R.prototype,"returnM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],R.prototype,"returnZ",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],R.prototype,"start",void 0),(0,o.Cg)([(0,m.K)("start"),(0,m.K)("num")],R.prototype,"writeStart",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:{source:"spatialRel",reader:C.read},write:{target:"spatialRel",writer:C.write}}})],R.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,p.MZ)({type:w.A,json:{write:!0}})],R.prototype,"timeExtent",void 0),(0,o.Cg)([(0,p.MZ)({type:g,json:{write:!0}})],R.prototype,"topFilter",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:S.read,write:{writer:S.write,overridePolicy(e){return{enabled:null!=e&&null!=this.distance}}}}})],R.prototype,"units",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],R.prototype,"where",void 0),R=v=(0,o.Cg)([(0,p.$K)("esri.rest.support.TopFeaturesQuery")],R),R.from=(0,a.dp)(R)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2372],{62372:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n,o=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){var r,t,o=e;o.ready=new Promise((e,n)=>{r=e,t=n});var a,i,s,u=Object.assign({},o),l="./this.program",d="";d=self.location.href,n&&(d=n),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},s=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)},i=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)};var c,h,p=o.print||console.log.bind(console),f=o.printErr||console.error.bind(console);Object.assign(o,u),u=null,o.arguments&&o.arguments,o.thisProgram&&(l=o.thisProgram),o.quit&&o.quit,o.wasmBinary&&(c=o.wasmBinary),"object"!=typeof WebAssembly&&R("no native wasm support detected");var m,v,y,g,w,E,_,b,k=!1;function $(e,r){e||R(r)}function P(){var e=h.buffer;o.HEAP8=m=new Int8Array(e),o.HEAP16=y=new Int16Array(e),o.HEAPU8=v=new Uint8Array(e),o.HEAPU16=g=new Uint16Array(e),o.HEAP32=w=new Int32Array(e),o.HEAPU32=E=new Uint32Array(e),o.HEAPF32=_=new Float32Array(e),o.HEAPF64=b=new Float64Array(e)}var T=[],C=[],F=[];function D(e){T.unshift(e)}function S(e){F.unshift(e)}var A=0,M=null;function j(e){A++,o.monitorRunDependencies&&o.monitorRunDependencies(A)}function O(e){if(A--,o.monitorRunDependencies&&o.monitorRunDependencies(A),0==A&&M){var r=M;M=null,r()}}function R(e){o.onAbort&&o.onAbort(e),f(e="Aborted("+e+")"),k=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw t(r),r}var x,W,z,N=e=>e.startsWith("data:application/octet-stream;base64,");function H(e){if(e==x&&c)return new Uint8Array(c);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function B(e,r,t){return function(e){return c||"function"!=typeof fetch?Promise.resolve().then(()=>H(e)):fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()}).catch(()=>H(e))}(e).then(e=>WebAssembly.instantiate(e,r)).then(e=>e).then(t,e=>{f(`failed to asynchronously prepare wasm: ${e}`),R(e)})}N(x="basis_encoder.wasm")||(x=function(e){return o.locateFile?o.locateFile(e,d):d+e}(x));var L=e=>{for(;e.length>0;)e.shift()(o)};function U(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){E[this.ptr+4>>2]=e},this.get_type=function(){return E[this.ptr+4>>2]},this.set_destructor=function(e){E[this.ptr+8>>2]=e},this.get_destructor=function(){return E[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,m[this.ptr+12|0]=e},this.get_caught=function(){return 0!=m[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,m[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=m[this.ptr+13|0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},this.set_adjusted_ptr=function(e){E[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return E[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Gr(this.get_type()))return E[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}o.noExitRuntime;var I={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=I.isAbs(e),t="/"===e.substr(-1);return(e=I.normalizeArray(e.split("/").filter(e=>!!e),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=I.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=I.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments);return I.normalize(e.join("/"))},join2:(e,r)=>I.normalize(e+"/"+r)},V=e=>(V=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);R("initRandomDevice")})())(e),q={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:ae.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=I.isAbs(n)}return(r?"/":"")+(e=I.normalizeArray(e.split("/").filter(e=>!!e),!r).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=q.resolve(e).substr(1),r=q.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},Y="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,X=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&Y)return Y.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var u=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},G=[],K=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},J=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o};function Z(e,r,t){var n=K(e)+1,o=new Array(n),a=J(e,o,0,o.length);return r&&(o.length=a),o}var Q={ttys:[],init(){},shutdown(){},register(e,r){Q.ttys[e]={input:[],output:[],ops:r},ae.registerDevice(e,Q.stream_ops)},stream_ops:{open(e){var r=Q.ttys[e.node.rdev];if(!r)throw new ae.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new ae.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new ae.ErrnoError(29)}if(void 0===s&&0===a)throw new ae.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new ae.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(e){throw new ae.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>(()=>{if(!G.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;G=Z(e,!0)}return G.shift()})(),put_char(e,r){null===r||10===r?(p(X(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(p(X(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(f(X(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(f(X(e.output,0)),e.output=[])}}},ee=e=>{e=(e=>65536*Math.ceil(e/65536))(e);var r=Vr(65536,e);return r?((e,r)=>(v.fill(0,e,e+r),e))(r,e):0},re={ops_table:null,mount:e=>re.createNode(null,"/",16895,0),createNode(e,r,t,n){if(ae.isBlkdev(t)||ae.isFIFO(t))throw new ae.ErrnoError(63);re.ops_table||(re.ops_table={dir:{node:{getattr:re.node_ops.getattr,setattr:re.node_ops.setattr,lookup:re.node_ops.lookup,mknod:re.node_ops.mknod,rename:re.node_ops.rename,unlink:re.node_ops.unlink,rmdir:re.node_ops.rmdir,readdir:re.node_ops.readdir,symlink:re.node_ops.symlink},stream:{llseek:re.stream_ops.llseek}},file:{node:{getattr:re.node_ops.getattr,setattr:re.node_ops.setattr},stream:{llseek:re.stream_ops.llseek,read:re.stream_ops.read,write:re.stream_ops.write,allocate:re.stream_ops.allocate,mmap:re.stream_ops.mmap,msync:re.stream_ops.msync}},link:{node:{getattr:re.node_ops.getattr,setattr:re.node_ops.setattr,readlink:re.node_ops.readlink},stream:{}},chrdev:{node:{getattr:re.node_ops.getattr,setattr:re.node_ops.setattr},stream:ae.chrdev_stream_ops}});var o=ae.createNode(e,r,t,n);return ae.isDir(o.mode)?(o.node_ops=re.ops_table.dir.node,o.stream_ops=re.ops_table.dir.stream,o.contents={}):ae.isFile(o.mode)?(o.node_ops=re.ops_table.file.node,o.stream_ops=re.ops_table.file.stream,o.usedBytes=0,o.contents=null):ae.isLink(o.mode)?(o.node_ops=re.ops_table.link.node,o.stream_ops=re.ops_table.link.stream):ae.isChrdev(o.mode)&&(o.node_ops=re.ops_table.chrdev.node,o.stream_ops=re.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=ae.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,ae.isDir(e.mode)?r.size=4096:ae.isFile(e.mode)?r.size=e.usedBytes:ae.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&re.resizeFileStorage(e,r.size)},lookup(e,r){throw ae.genericErrors[44]},mknod:(e,r,t,n)=>re.createNode(e,r,t,n),rename(e,r,t){if(ae.isDir(e.mode)){var n;try{n=ae.lookupNode(r,t)}catch(e){}if(n)for(var o in n.contents)throw new ae.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir(e,r){var t=ae.lookupNode(e,r);for(var n in t.contents)throw new ae.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink(e,r,t){var n=re.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!ae.isLink(e.mode))throw new ae.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,t,n,o,a){if(r.buffer===m.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(t,t+n),o),n}if(re.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&ae.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new ae.ErrnoError(28);return n},allocate(e,r,t){re.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap(e,r,t,n,o){if(!ae.isFile(e.node.mode))throw new ae.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==m.buffer){if((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),i=!0,!(a=ee(r)))throw new ae.ErrnoError(48);m.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>(re.stream_ops.write(e,r,0,n,t,!1),0)}},te=(e,r,t,n)=>{var o=`al ${e}`;i(e,t=>{$(t,`Loading data file "${e}" failed (no arrayBuffer).`),r(new Uint8Array(t)),o&&O()},r=>{if(!t)throw`Loading data file "${e}" failed.`;t()}),o&&j()},ne=o.preloadPlugins||[],oe=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},ae={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e,r={}){if(!(e=q.resolve(e)))return{path:"",node:null};if((r=Object.assign({follow_mount:!0,recurse_count:0},r)).recurse_count>8)throw new ae.ErrnoError(32);for(var t=e.split("/").filter(e=>!!e),n=ae.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&r.parent)break;if(n=ae.lookupNode(n,t[a]),o=I.join2(o,t[a]),ae.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;ae.isLink(n.mode);){var u=ae.readlink(o);if(o=q.resolve(I.dirname(o),u),n=ae.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new ae.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var r;;){if(ae.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%ae.nameTable.length},hashAddNode(e){var r=ae.hashName(e.parent.id,e.name);e.name_next=ae.nameTable[r],ae.nameTable[r]=e},hashRemoveNode(e){var r=ae.hashName(e.parent.id,e.name);if(ae.nameTable[r]===e)ae.nameTable[r]=e.name_next;else for(var t=ae.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=ae.mayLookup(e);if(t)throw new ae.ErrnoError(t,e);for(var n=ae.hashName(e.id,r),o=ae.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return ae.lookup(e,r)},createNode(e,r,t,n){var o=new ae.FSNode(e,r,t,n);return ae.hashAddNode(o),o},destroyNode(e){ae.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>ae.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup:e=>ae.nodePermissions(e,"x")||(e.node_ops.lookup?0:2),mayCreate(e,r){try{return ae.lookupNode(e,r),20}catch(e){}return ae.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=ae.lookupNode(e,r)}catch(e){return e.errno}var o=ae.nodePermissions(e,"wx");if(o)return o;if(t){if(!ae.isDir(n.mode))return 54;if(ae.isRoot(n)||ae.getPath(n)===ae.cwd())return 10}else if(ae.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?ae.isLink(e.mode)?32:ae.isDir(e.mode)&&("r"!==ae.flagsToPermissionString(r)||512&r)?31:ae.nodePermissions(e,ae.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=ae.MAX_OPEN_FDS;e++)if(!ae.streams[e])return e;throw new ae.ErrnoError(33)},getStreamChecked(e){var r=ae.getStream(e);if(!r)throw new ae.ErrnoError(8);return r},getStream:e=>ae.streams[e],createStream:(e,r=-1)=>(ae.FSStream||(ae.FSStream=function(){this.shared={}},ae.FSStream.prototype={},Object.defineProperties(ae.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return!!(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new ae.FSStream,e),-1==r&&(r=ae.nextfd()),e.fd=r,ae.streams[r]=e,e),closeStream(e){ae.streams[e]=null},chrdev_stream_ops:{open(e){var r=ae.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new ae.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){ae.devices[e]={stream_ops:r}},getDevice:e=>ae.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),ae.syncFSRequests++,ae.syncFSRequests>1&&f(`warning: ${ae.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=ae.getMounts(ae.root.mount),n=0;function o(e){return ae.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach(r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)})},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&ae.root)throw new ae.ErrnoError(10);if(!o&&!a){var i=ae.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,ae.isMountpoint(n))throw new ae.ErrnoError(10);if(!ae.isDir(n.mode))throw new ae.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,o?ae.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(e){var r=ae.lookupPath(e,{follow_mount:!1});if(!ae.isMountpoint(r.node))throw new ae.ErrnoError(28);var t=r.node,n=t.mounted,o=ae.getMounts(n);Object.keys(ae.nameTable).forEach(e=>{for(var r=ae.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&ae.destroyNode(r),r=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=ae.lookupPath(e,{parent:!0}).node,o=I.basename(e);if(!o||"."===o||".."===o)throw new ae.ErrnoError(28);var a=ae.mayCreate(n,o);if(a)throw new ae.ErrnoError(a);if(!n.node_ops.mknod)throw new ae.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,ae.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,ae.mknod(e,r,0)),mkdirTree(e,r){for(var t=e.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{ae.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,ae.mknod(e,r,t)),symlink(e,r){if(!q.resolve(e))throw new ae.ErrnoError(44);var t=ae.lookupPath(r,{parent:!0}).node;if(!t)throw new ae.ErrnoError(44);var n=I.basename(r),o=ae.mayCreate(t,n);if(o)throw new ae.ErrnoError(o);if(!t.node_ops.symlink)throw new ae.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=I.dirname(e),a=I.dirname(r),i=I.basename(e),s=I.basename(r);if(t=ae.lookupPath(e,{parent:!0}).node,n=ae.lookupPath(r,{parent:!0}).node,!t||!n)throw new ae.ErrnoError(44);if(t.mount!==n.mount)throw new ae.ErrnoError(75);var u,l=ae.lookupNode(t,i),d=q.relative(e,a);if("."!==d.charAt(0))throw new ae.ErrnoError(28);if("."!==(d=q.relative(r,o)).charAt(0))throw new ae.ErrnoError(55);try{u=ae.lookupNode(n,s)}catch(e){}if(l!==u){var c=ae.isDir(l.mode),h=ae.mayDelete(t,i,c);if(h)throw new ae.ErrnoError(h);if(h=u?ae.mayDelete(n,s,c):ae.mayCreate(n,s))throw new ae.ErrnoError(h);if(!t.node_ops.rename)throw new ae.ErrnoError(63);if(ae.isMountpoint(l)||u&&ae.isMountpoint(u))throw new ae.ErrnoError(10);if(n!==t&&(h=ae.nodePermissions(t,"w")))throw new ae.ErrnoError(h);ae.hashRemoveNode(l);try{t.node_ops.rename(l,n,s)}catch(e){throw e}finally{ae.hashAddNode(l)}}},rmdir(e){var r=ae.lookupPath(e,{parent:!0}).node,t=I.basename(e),n=ae.lookupNode(r,t),o=ae.mayDelete(r,t,!0);if(o)throw new ae.ErrnoError(o);if(!r.node_ops.rmdir)throw new ae.ErrnoError(63);if(ae.isMountpoint(n))throw new ae.ErrnoError(10);r.node_ops.rmdir(r,t),ae.destroyNode(n)},readdir(e){var r=ae.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new ae.ErrnoError(54);return r.node_ops.readdir(r)},unlink(e){var r=ae.lookupPath(e,{parent:!0}).node;if(!r)throw new ae.ErrnoError(44);var t=I.basename(e),n=ae.lookupNode(r,t),o=ae.mayDelete(r,t,!1);if(o)throw new ae.ErrnoError(o);if(!r.node_ops.unlink)throw new ae.ErrnoError(63);if(ae.isMountpoint(n))throw new ae.ErrnoError(10);r.node_ops.unlink(r,t),ae.destroyNode(n)},readlink(e){var r=ae.lookupPath(e).node;if(!r)throw new ae.ErrnoError(44);if(!r.node_ops.readlink)throw new ae.ErrnoError(28);return q.resolve(ae.getPath(r.parent),r.node_ops.readlink(r))},stat(e,r){var t=ae.lookupPath(e,{follow:!r}).node;if(!t)throw new ae.ErrnoError(44);if(!t.node_ops.getattr)throw new ae.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>ae.stat(e,!0),chmod(e,r,t){var n;if(!(n="string"==typeof e?ae.lookupPath(e,{follow:!t}).node:e).node_ops.setattr)throw new ae.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod(e,r){ae.chmod(e,r,!0)},fchmod(e,r){var t=ae.getStreamChecked(e);ae.chmod(t.node,r)},chown(e,r,t,n){var o;if(!(o="string"==typeof e?ae.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new ae.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,r,t){ae.chown(e,r,t,!0)},fchown(e,r,t){var n=ae.getStreamChecked(e);ae.chown(n.node,r,t)},truncate(e,r){if(r<0)throw new ae.ErrnoError(28);var t;if(!(t="string"==typeof e?ae.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new ae.ErrnoError(63);if(ae.isDir(t.mode))throw new ae.ErrnoError(31);if(!ae.isFile(t.mode))throw new ae.ErrnoError(28);var n=ae.nodePermissions(t,"w");if(n)throw new ae.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate(e,r){var t=ae.getStreamChecked(e);if(!(2097155&t.flags))throw new ae.ErrnoError(28);ae.truncate(t.node,r)},utime(e,r,t){var n=ae.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new ae.ErrnoError(44);var n;if(t=void 0===t?438:t,t=64&(r="string"==typeof r?(e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw new Error(`Unknown file open mode: ${e}`);return r})(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=I.normalize(e);try{n=ae.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}var a=!1;if(64&r)if(n){if(128&r)throw new ae.ErrnoError(20)}else n=ae.mknod(e,t,0),a=!0;if(!n)throw new ae.ErrnoError(44);if(ae.isChrdev(n.mode)&&(r&=-513),65536&r&&!ae.isDir(n.mode))throw new ae.ErrnoError(54);if(!a){var i=ae.mayOpen(n,r);if(i)throw new ae.ErrnoError(i)}512&r&&!a&&ae.truncate(n,0),r&=-131713;var s=ae.createStream({node:n,path:ae.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!o.logReadFiles||1&r||(ae.readFiles||(ae.readFiles={}),e in ae.readFiles||(ae.readFiles[e]=1)),s},close(e){if(ae.isClosed(e))throw new ae.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{ae.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(ae.isClosed(e))throw new ae.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new ae.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new ae.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new ae.ErrnoError(28);if(ae.isClosed(e))throw new ae.ErrnoError(8);if(1==(2097155&e.flags))throw new ae.ErrnoError(8);if(ae.isDir(e.node.mode))throw new ae.ErrnoError(31);if(!e.stream_ops.read)throw new ae.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new ae.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new ae.ErrnoError(28);if(ae.isClosed(e))throw new ae.ErrnoError(8);if(!(2097155&e.flags))throw new ae.ErrnoError(8);if(ae.isDir(e.node.mode))throw new ae.ErrnoError(31);if(!e.stream_ops.write)throw new ae.ErrnoError(28);e.seekable&&1024&e.flags&&ae.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new ae.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},allocate(e,r,t){if(ae.isClosed(e))throw new ae.ErrnoError(8);if(r<0||t<=0)throw new ae.ErrnoError(28);if(!(2097155&e.flags))throw new ae.ErrnoError(8);if(!ae.isFile(e.node.mode)&&!ae.isDir(e.node.mode))throw new ae.ErrnoError(43);if(!e.stream_ops.allocate)throw new ae.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap(e,r,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&e.flags))throw new ae.ErrnoError(2);if(1==(2097155&e.flags))throw new ae.ErrnoError(2);if(!e.stream_ops.mmap)throw new ae.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,munmap:e=>0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new ae.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e,r={}){if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(`Invalid encoding type "${r.encoding}"`);var t,n=ae.open(e,r.flags),o=ae.stat(e).size,a=new Uint8Array(o);return ae.read(n,a,0,o,0),"utf8"===r.encoding?t=X(a,0):"binary"===r.encoding&&(t=a),ae.close(n),t},writeFile(e,r,t={}){t.flags=t.flags||577;var n=ae.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(K(r)+1),a=J(r,o,0,o.length);ae.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");ae.write(n,r,0,r.byteLength,void 0,t.canOwn)}ae.close(n)},cwd:()=>ae.currentPath,chdir(e){var r=ae.lookupPath(e,{follow:!0});if(null===r.node)throw new ae.ErrnoError(44);if(!ae.isDir(r.node.mode))throw new ae.ErrnoError(54);var t=ae.nodePermissions(r.node,"x");if(t)throw new ae.ErrnoError(t);ae.currentPath=r.path},createDefaultDirectories(){ae.mkdir("/tmp"),ae.mkdir("/home"),ae.mkdir("/home/web_user")},createDefaultDevices(){ae.mkdir("/dev"),ae.registerDevice(ae.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n}),ae.mkdev("/dev/null",ae.makedev(1,3)),Q.register(ae.makedev(5,0),Q.default_tty_ops),Q.register(ae.makedev(6,0),Q.default_tty1_ops),ae.mkdev("/dev/tty",ae.makedev(5,0)),ae.mkdev("/dev/tty1",ae.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=V(e).byteLength),e[--r]);ae.createDevice("/dev","random",t),ae.createDevice("/dev","urandom",t),ae.mkdir("/dev/shm"),ae.mkdir("/dev/shm/tmp")},createSpecialDirectories(){ae.mkdir("/proc");var e=ae.mkdir("/proc/self");ae.mkdir("/proc/self/fd"),ae.mount({mount(){var r=ae.createNode(e,"fd",16895,73);return r.node_ops={lookup(e,r){var t=+r,n=ae.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams(){o.stdin?ae.createDevice("/dev","stdin",o.stdin):ae.symlink("/dev/tty","/dev/stdin"),o.stdout?ae.createDevice("/dev","stdout",null,o.stdout):ae.symlink("/dev/tty","/dev/stdout"),o.stderr?ae.createDevice("/dev","stderr",null,o.stderr):ae.symlink("/dev/tty1","/dev/stderr"),ae.open("/dev/stdin",0),ae.open("/dev/stdout",1),ae.open("/dev/stderr",1)},ensureErrnoError(){ae.ErrnoError||(ae.ErrnoError=function(e,r){this.name="ErrnoError",this.node=r,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},ae.ErrnoError.prototype=new Error,ae.ErrnoError.prototype.constructor=ae.ErrnoError,[44].forEach(e=>{ae.genericErrors[e]=new ae.ErrnoError(e),ae.genericErrors[e].stack="<generic error, no stack>"}))},staticInit(){ae.ensureErrnoError(),ae.nameTable=new Array(4096),ae.mount(re,{},"/"),ae.createDefaultDirectories(),ae.createDefaultDevices(),ae.createSpecialDirectories(),ae.filesystems={MEMFS:re}},init(e,r,t){ae.init.initialized=!0,ae.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=r||o.stdout,o.stderr=t||o.stderr,ae.createStandardStreams()},quit(){ae.init.initialized=!1;for(var e=0;e<ae.streams.length;e++){var r=ae.streams[e];r&&ae.close(r)}},findObject(e,r){var t=ae.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=ae.lookupPath(e,{follow:!r})).path}catch(e){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=ae.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=I.basename(e),n=ae.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(e){t.error=e.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:ae.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=I.join2(e,a);try{ae.mkdir(i)}catch(e){}e=i}}return i},createFile(e,r,t,n,o){var a=I.join2("string"==typeof e?e:ae.getPath(e),r),i=oe(n,o);return ae.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:ae.getPath(e),i=r?I.join2(e,r):e);var s=oe(n,o),u=ae.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),d=0,c=t.length;d<c;++d)l[d]=t.charCodeAt(d);t=l}ae.chmod(u,146|s);var h=ae.open(u,577);ae.write(h,t,0,t.length,0,a),ae.close(h),ae.chmod(u,s)}return u},createDevice(e,r,t,n){var o=I.join2("string"==typeof e?e:ae.getPath(e),r),a=oe(!!t,!!n);ae.createDevice.major||(ae.createDevice.major=64);var i=ae.makedev(ae.createDevice.major++,0);return ae.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(e){throw new ae.ErrnoError(29)}if(void 0===u&&0===i)throw new ae.ErrnoError(6);if(null==u)break;i++,r[n+s]=u}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(e){throw new ae.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),ae.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!a)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Z(a(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new ae.ErrnoError(29)}},createLazyFile(e,r,t,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=(e,r)=>{if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Z(o.responseText||"",!0)},u=this;u.setDataGetter(e=>{var r=e*i,t=(e+1)*i-1;if(t=Math.min(t,n-1),void 0===u.chunks[e]&&(u.chunks[e]=s(r,t)),void 0===u.chunks[e])throw new Error("doXHR failed!");return u.chunks[e]}),!a&&n||(i=n=1,n=this.getter(0).length,i=n,p("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:t};var u=ae.createFile(e,r,s,n,o);s.contents?u.contents=s.contents:s.url&&(u.contents=null,u.url=s.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var l={};function d(e,r,t,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(u.stream_ops).forEach(e=>{var r=u.stream_ops[e];l[e]=function(){return ae.forceLoadFile(u),r.apply(null,arguments)}}),l.read=(e,r,t,n,o)=>(ae.forceLoadFile(u),d(e,r,t,n,o)),l.mmap=(e,r,t,n,o)=>{ae.forceLoadFile(u);var a=ee(r);if(!a)throw new ae.ErrnoError(48);return d(e,m,a,r,t),{ptr:a,allocated:!0}},u.stream_ops=l,u}},ie=(e,r)=>e?X(v,e,r):"",se={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(I.isAbs(r))return r;var n;if(n=-100===e?ae.cwd():se.getStreamFromFD(e).path,0==r.length){if(!t)throw new ae.ErrnoError(44);return n}return I.join2(n,r)},doStat(e,r,t){try{var n=e(r)}catch(e){if(e&&e.node&&I.normalize(r)!==I.normalize(ae.getPath(e.node)))return-54;throw e}w[t>>2]=n.dev,w[t+4>>2]=n.mode,E[t+8>>2]=n.nlink,w[t+12>>2]=n.uid,w[t+16>>2]=n.gid,w[t+20>>2]=n.rdev,z=[n.size>>>0,(W=n.size,+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[t+24>>2]=z[0],w[t+28>>2]=z[1],w[t+32>>2]=4096,w[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return z=[Math.floor(o/1e3)>>>0,(W=Math.floor(o/1e3),+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[t+40>>2]=z[0],w[t+44>>2]=z[1],E[t+48>>2]=o%1e3*1e3,z=[Math.floor(a/1e3)>>>0,(W=Math.floor(a/1e3),+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[t+56>>2]=z[0],w[t+60>>2]=z[1],E[t+64>>2]=a%1e3*1e3,z=[Math.floor(i/1e3)>>>0,(W=Math.floor(i/1e3),+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[t+72>>2]=z[0],w[t+76>>2]=z[1],E[t+80>>2]=i%1e3*1e3,z=[n.ino>>>0,(W=n.ino,+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[t+88>>2]=z[0],w[t+92>>2]=z[1],0},doMsync(e,r,t,n,o){if(!ae.isFile(r.node.mode))throw new ae.ErrnoError(43);if(2&n)return 0;var a=v.slice(e,e+t);ae.msync(r,a,o,t,n)},varargs:void 0,get(){var e=w[+se.varargs>>2];return se.varargs+=4,e},getp:()=>se.get(),getStr:e=>ie(e),getStreamFromFD:e=>ae.getStreamChecked(e)},ue={},le=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function de(e){return this.fromWireType(w[e>>2])}var ce,he,pe,fe={},me={},ve={},ye=e=>{throw new ce(e)},ge=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&ye("Mismatched type converter count");for(var o=0;o<e.length;++o)_e(e[o],n[o])}e.forEach(function(e){ve[e]=r});var o=new Array(r.length),a=[],i=0;r.forEach((e,r)=>{me.hasOwnProperty(e)?o[r]=me[e]:(a.push(e),fe.hasOwnProperty(e)||(fe[e]=[]),fe[e].push(()=>{o[r]=me[e],++i===a.length&&n(o)}))}),0===a.length&&n(o)},we=e=>{for(var r="",t=e;v[t];)r+=he[v[t++]];return r},Ee=e=>{throw new pe(e)};function _e(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,r,t={}){var n=r.name;if(e||Ee(`type "${n}" must have a positive integer typeid pointer`),me.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;Ee(`Cannot register type '${n}' twice`)}if(me[e]=r,delete ve[e],fe.hasOwnProperty(e)){var o=fe[e];delete fe[e],o.forEach(e=>e())}}(e,r,t)}var be,ke=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),$e=e=>{Ee(function(e){return e.$$.ptrType.registeredClass.name}(e)+" instance already deleted")},Pe=!1,Te=e=>{},Ce=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},Fe=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=Fe(e,r,t.baseClass);return null===n?null:t.downcast(n)},De={},Se=[],Ae=()=>{for(;Se.length;){var e=Se.pop();e.$$.deleteScheduled=!1,e.delete()}},Me={},je=(e,r)=>(r.ptrType&&r.ptr||ye("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&ye("Both smartPtrType and smartPtr must be specified"),r.count={value:1},Oe(Object.create(e,{$$:{value:r}})));var Oe=e=>"undefined"==typeof FinalizationRegistry?(Oe=e=>e,e):(Pe=new FinalizationRegistry(e=>{Ce(e.$$)}),Oe=e=>{var r=e.$$;if(r.smartPtr){var t={$$:r};Pe.register(e,t,e)}return e},Te=e=>Pe.unregister(e),Oe(e));function Re(){}var xe=e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?`_${e}`:e};function We(e,r){return e=xe(e),{[e]:function(){return r.apply(this,arguments)}}[e]}var ze=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||Ee(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Ne=(e,r,t)=>{o.hasOwnProperty(e)?((void 0===t||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[t])&&Ee(`Cannot register public name '${e}' twice`),ze(o,e,e),o.hasOwnProperty(t)&&Ee(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[e].overloadTable[t]=r):(o[e]=r,void 0!==t&&(o[e].numArguments=t))};function He(e,r,t,n,o,a,i,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Be=(e,r,t)=>{for(;r!==t;)r.upcast||Ee(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Le(e,r){if(null===r)return this.isReference&&Ee(`null is not a valid ${this.name}`),0;r.$$||Ee(`Cannot pass "${cr(r)}" as a ${this.name}`),r.$$.ptr||Ee(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass;return Be(r.$$.ptr,t,this.registeredClass)}function Ue(e,r){var t;if(null===r)return this.isReference&&Ee(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;r.$$||Ee(`Cannot pass "${cr(r)}" as a ${this.name}`),r.$$.ptr||Ee(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&Ee(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=Be(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&Ee("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:Ee(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var o=r.clone();t=this.rawShare(t,ur.toHandle(()=>o.delete())),null!==e&&e.push(this.rawDestructor,t)}break;default:Ee("Unsupporting sharing policy")}return t}function Ie(e,r){if(null===r)return this.isReference&&Ee(`null is not a valid ${this.name}`),0;r.$$||Ee(`Cannot pass "${cr(r)}" as a ${this.name}`),r.$$.ptr||Ee(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&Ee(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass;return Be(r.$$.ptr,t,this.registeredClass)}function Ve(e){return this.fromWireType(E[e>>2])}function qe(e,r,t,n,o,a,i,s,u,l,d){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=l,this.rawDestructor=d,o||void 0!==r.baseClass?this.toWireType=Ue:n?(this.toWireType=Le,this.destructorFunction=null):(this.toWireType=Ie,this.destructorFunction=null)}var Ye,Xe,Ge=(e,r,t)=>{o.hasOwnProperty(e)||ye("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==t?o[e].overloadTable[t]=r:(o[e]=r,o[e].argCount=t)},Ke=[],Je=e=>{var r=Ke[e];return r||(e>=Ke.length&&(Ke.length=e+1),Ke[e]=r=Ye.get(e)),r},Ze=(e,r)=>{var t=(e=we(e)).includes("j")?((e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),((e,r,t)=>e.includes("j")?((e,r,t)=>{var n=o["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)})(e,r,t):Je(r).apply(null,t))(e,r,t)}})(e,r):Je(r);return"function"!=typeof t&&Ee(`unknown function pointer with signature ${e}: ${r}`),t},Qe=e=>{var r=Lr(e),t=we(r);return Hr(r),t},er=(e,r)=>{var t=[],n={};throw r.forEach(function e(r){n[r]||me[r]||(ve[r]?ve[r].forEach(e):(t.push(r),n[r]=!0))}),new Xe(`${e}: `+t.map(Qe).join([", "]))},rr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(E[r+4*n>>2]);return t};function tr(e,r){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var t=We(e.name||"unknownFunctionName",function(){});t.prototype=e.prototype;var n=new t,o=e.apply(n,r);return o instanceof Object?o:n}function nr(e,r,t,n,o,a){var i=r.length;i<2&&Ee("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,u=!1,l=1;l<r.length;++l)if(null!==r[l]&&void 0===r[l].destructorFunction){u=!0;break}var d="void"!==r[0].name,c="",h="";for(l=0;l<i-2;++l)c+=(0!==l?", ":"")+"arg"+l,h+=(0!==l?", ":"")+"arg"+l+"Wired";var p=`\n return function ${xe(e)}(${c}) {\n if (arguments.length !== ${i-2}) {\n throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${i-2}');\n }`;u&&(p+="var destructors = [];\n");var f=u?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[Ee,n,o,le,r[0],r[1]];for(s&&(p+="var thisWired = classParam.toWireType("+f+", this);\n"),l=0;l<i-2;++l)p+="var arg"+l+"Wired = argType"+l+".toWireType("+f+", arg"+l+"); // "+r[l+2].name+"\n",m.push("argType"+l),v.push(r[l+2]);if(s&&(h="thisWired"+(h.length>0?", ":"")+h),p+=(d||a?"var rv = ":"")+"invoker(fn"+(h.length>0?", ":"")+h+");\n",u)p+="runDestructors(destructors);\n";else for(l=s?1:2;l<r.length;++l){var y=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==r[l].destructorFunction&&(p+=y+"_dtor("+y+"); // "+r[l].name+"\n",m.push(y+"_dtor"),v.push(r[l].destructorFunction))}return d&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",m.push(p),tr(Function,m).apply(null,v)}var or=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?($(")"==e[e.length-1],"Parentheses for argument names should match."),e.substr(0,r)):e};function ar(){this.allocated=[void 0],this.freelist=[]}var ir=new ar,sr=e=>{e>=ir.reserved&&0===--ir.get(e).refcount&&ir.free(e)},ur={toValue:e=>(e||Ee("Cannot use deleted val. handle = "+e),ir.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return ir.allocate({refcount:1,value:e})}}},lr=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(m[0|e])}:function(e){return this.fromWireType(v[0|e])};case 2:return t?function(e){return this.fromWireType(y[e>>1])}:function(e){return this.fromWireType(g[e>>1])};case 4:return t?function(e){return this.fromWireType(w[e>>2])}:function(e){return this.fromWireType(E[e>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},dr=(e,r)=>{var t=me[e];return void 0===t&&Ee(r+" has unknown type "+Qe(e)),t},cr=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},hr=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(_[e>>2])};case 8:return function(e){return this.fromWireType(b[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},pr=(e,r,t)=>{switch(r){case 1:return t?e=>m[0|e]:e=>v[0|e];case 2:return t?e=>y[e>>1]:e=>g[e>>1];case 4:return t?e=>w[e>>2]:e=>E[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},fr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,mr=(e,r)=>{for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&g[n];)++n;if((t=n<<1)-e>32&&fr)return fr.decode(v.subarray(e,t));for(var a="",i=0;!(i>=r/2);++i){var s=y[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},vr=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);y[r>>1]=i,r+=2}return y[r>>1]=0,r-n},yr=e=>2*e.length,gr=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var o=w[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},wr=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,o=n+t-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a)),w[r>>2]=i,(r+=4)+4>o)break}return w[r>>2]=0,r-n},Er=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},_r={},br=e=>{var r=_r[e];return void 0===r?we(e):r},kr=[],$r=()=>"object"==typeof globalThis?globalThis:Function("return this")(),Pr=e=>{for(var r="",t=0;t<e;++t)r+=(0!==t?", ":"")+"arg"+t;var n="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n var HEAPU32 = getMemory();\n";for(t=0;t<e;++t)n+="var argType"+t+" = requireRegisteredType(HEAPU32[((argTypes)>>2)], 'parameter "+t+"');\nvar arg"+t+" = argType"+t+".readValueFromPointer(args);\nargs += argType"+t+"['argPackAdvance'];\nargTypes += 4;\n";return n+="var obj = new constructor("+r+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle","getMemory",n)(dr,o,ur.toHandle,()=>E)},Tr={},Cr=(e,r)=>r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN,Fr=e=>{var r=(e-h.buffer.byteLength+65535)/65536;try{return h.grow(r),P(),1}catch(e){}},Dr={},Sr=()=>{if(!Sr.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:l||"./this.program"};for(var r in Dr)void 0===Dr[r]?delete e[r]:e[r]=Dr[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Sr.strings=t}return Sr.strings},Ar=e=>e%4==0&&(e%100!=0||e%400==0),Mr=[31,29,31,30,31,30,31,31,30,31,30,31],jr=[31,28,31,30,31,30,31,31,30,31,30,31],Or=(e,r)=>{m.set(e,r)},Rr=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=ae.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},xr=365,Wr=146;Object.defineProperties(Rr.prototype,{read:{get:function(){return(this.mode&xr)===xr},set:function(e){e?this.mode|=xr:this.mode&=~xr}},write:{get:function(){return(this.mode&Wr)===Wr},set:function(e){e?this.mode|=Wr:this.mode&=~Wr}},isFolder:{get:function(){return ae.isDir(this.mode)}},isDevice:{get:function(){return ae.isChrdev(this.mode)}}}),ae.FSNode=Rr,ae.createPreloadedFile=(e,r,t,n,o,a,i,s,u,l)=>{var d=r?q.resolve(I.join2(e,r)):e;function c(t){function c(t){l&&l(),s||((e,r,t,n,o,a)=>{ae.createDataFile(e,r,t,n,o,a)})(e,r,t,n,o,u),a&&a(),O()}((e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return ne.forEach(a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)}),o})(t,d,c,()=>{i&&i(),O()})||c(t)}j(),"string"==typeof t?te(t,e=>c(e),i):c(t)},ae.staticInit(),ce=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);he=e})(),pe=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(Re.prototype,{isAliasOf(e){if(!(this instanceof Re))return!1;if(!(e instanceof Re))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,o=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&t===o},clone(){if(this.$$.ptr||$e(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Oe(Object.create(Object.getPrototypeOf(this),{$$:{value:ke(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||$e(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ee("Object already scheduled for deletion"),Te(this),Ce(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||$e(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ee("Object already scheduled for deletion"),Se.push(this),1===Se.length&&be&&be(Ae),this.$$.deleteScheduled=!0,this}}),o.getInheritedInstanceCount=()=>Object.keys(Me).length,o.getLiveInheritedInstances=()=>{var e=[];for(var r in Me)Me.hasOwnProperty(r)&&e.push(Me[r]);return e},o.flushPendingDeletes=Ae,o.setDelayFunction=e=>{be=e,Se.length&&be&&be(Ae)},Object.assign(qe.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:Ve,deleteObject(e){null!==e&&e.delete()},fromWireType:function(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=((e,r)=>(r=((e,r)=>{for(void 0===r&&Ee("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r})(e,r),Me[r]))(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?je(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):je(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(r),s=De[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var u=Fe(r,this.registeredClass,a.registeredClass);return null===u?o.call(this):this.isSmartPointer?je(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:e}):je(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})}}),Xe=o.UnboundTypeError=((e,r)=>{var t=We(r,function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError"),Object.assign(ar.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),ir.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),ir.reserved=ir.allocated.length,o.count_emval_handles=()=>{for(var e=0,r=ir.reserved;r<ir.allocated.length;++r)void 0!==ir.allocated[r]&&++e;return e};var zr={w:(e,r,t)=>{throw new U(e).init(r,t),e},D:function(e,r,t){se.varargs=t;try{var n=se.getStreamFromFD(e);switch(r){case 0:if((o=se.get())<0)return-28;for(;ae.streams[o];)o++;return ae.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=se.get();return n.flags|=o,0;case 5:return o=se.getp(),y[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return w[Ir()>>2]=28,-1}}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},T:function(e,r){try{var t=se.getStreamFromFD(e);return se.doStat(ae.stat,t.path,r)}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},V:function(e,r,t){se.varargs=t;try{var n=se.getStreamFromFD(e);switch(r){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=se.getp();w[a>>2]=o.c_iflag||0,w[a+4>>2]=o.c_oflag||0,w[a+8>>2]=o.c_cflag||0,w[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)m[a+i+17|0]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=se.getp();var s=w[a>>2],u=w[a+4>>2],l=w[a+8>>2],d=w[a+12>>2],c=[];for(i=0;i<32;i++)c.push(m[a+i+17|0]);return n.tty.ops.ioctl_tcsets(n.tty,r,{c_iflag:s,c_oflag:u,c_cflag:l,c_lflag:d,c_cc:c})}return 0;case 21519:return n.tty?(a=se.getp(),w[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=se.getp(),ae.ioctl(n,r,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var h=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=se.getp(),y[a>>1]=h[0],y[a+2>>1]=h[1]}return 0;default:return-28}}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},R:function(e,r,t,n){try{r=se.getStr(r);var o=256&n,a=4096&n;return n&=-6401,r=se.calculateAt(e,r,a),se.doStat(o?ae.lstat:ae.stat,r,t)}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},E:function(e,r,t,n){se.varargs=n;try{r=se.getStr(r),r=se.calculateAt(e,r);var o=n?se.get():0;return ae.open(r,t,o).fd}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},S:function(e,r){try{return e=se.getStr(e),se.doStat(ae.stat,e,r)}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},u:e=>{var r=ue[e];delete ue[e];var t=r.rawConstructor,n=r.rawDestructor,o=r.fields,a=o.map(e=>e.getterReturnType).concat(o.map(e=>e.setterArgumentType));ge([e],a,e=>{var a={};return o.forEach((r,t)=>{var n=r.fieldName,i=e[t],s=r.getter,u=r.getterContext,l=e[t+o.length],d=r.setter,c=r.setterContext;a[n]={read:e=>i.fromWireType(s(u,e)),write:(e,r)=>{var t=[];d(c,e,l.toWireType(t,r)),le(t)}}}),[{name:r.name,fromWireType:e=>{var r={};for(var t in a)r[t]=a[t].read(e);return n(e),r},toWireType:(e,r)=>{for(var o in a)if(!(o in r))throw new TypeError(`Missing field: "${o}"`);var i=t();for(o in a)a[o].write(i,r[o]);return null!==e&&e.push(n,i),i},argPackAdvance:8,readValueFromPointer:de,destructorFunction:n}]})},K:(e,r,t,n,o)=>{},Z:(e,r,t,n)=>{_e(e,{name:r=we(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(v[e])},destructorFunction:null})},y:(e,r,t,n,o,a,i,s,u,l,d,c,h)=>{d=we(d),a=Ze(o,a),s&&(s=Ze(i,s)),l&&(l=Ze(u,l)),h=Ze(c,h);var p=xe(d);Ne(p,function(){er(`Cannot construct ${d} due to unbound types`,[n])}),ge([e,r,t],n?[n]:[],function(r){var t,o;r=r[0],o=n?(t=r.registeredClass).instancePrototype:Re.prototype;var i=We(p,function(){if(Object.getPrototypeOf(this)!==u)throw new pe("Use 'new' to construct "+d);if(void 0===c.constructor_body)throw new pe(d+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new pe(`Tried to invoke ctor of ${d} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(c.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)}),u=Object.create(o,{constructor:{value:i}});i.prototype=u;var c=new He(d,i,u,h,t,a,s,l);c.baseClass&&(void 0===c.baseClass.__derivedClasses&&(c.baseClass.__derivedClasses=[]),c.baseClass.__derivedClasses.push(c));var f=new qe(d,c,!0,!1,!1),m=new qe(d+"*",c,!1,!1,!1),v=new qe(d+" const*",c,!1,!0,!1);return De[e]={pointerType:m,constPointerType:v},Ge(p,i),[f,m,v]})},x:(e,r,t,n,o,a)=>{var i=rr(r,t);o=Ze(n,o),ge([],[e],function(e){var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new pe(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[r-1]=()=>{er(`Cannot construct ${e.name} due to unbound types`,i)},ge([],i,n=>(n.splice(1,0,null),e.registeredClass.constructor_body[r-1]=nr(t,n,null,o,a),[])),[]})},a:(e,r,t,n,o,a,i,s,u)=>{var l=rr(t,n);r=we(r),r=or(r),a=Ze(o,a),ge([],[e],function(e){var n=`${(e=e[0]).name}.${r}`;function o(){er(`Cannot call ${n} due to unbound types`,l)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(r);var d=e.registeredClass.instancePrototype,c=d[r];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===t-2?(o.argCount=t-2,o.className=e.name,d[r]=o):(ze(d,r,n),d[r].overloadTable[t-2]=o),ge([],l,function(o){var s=nr(n,o,e,a,i,u);return void 0===d[r].overloadTable?(s.argCount=t-2,d[r]=s):d[r].overloadTable[t-2]=s,[]}),[]})},e:(e,r,t)=>{e=we(e),ge([],[r],function(r){return r=r[0],o[e]=r.fromWireType(t),[]})},Y:(e,r)=>{_e(e,{name:r=we(r),fromWireType:e=>{var r=ur.toValue(e);return sr(e),r},toWireType:(e,r)=>ur.toHandle(r),argPackAdvance:8,readValueFromPointer:de,destructorFunction:null})},n:(e,r,t,n)=>{function o(){}r=we(r),o.values={},_e(e,{name:r,constructor:o,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,argPackAdvance:8,readValueFromPointer:lr(r,t,n),destructorFunction:null}),Ne(r,o)},b:(e,r,t)=>{var n=dr(e,"enum");r=we(r);var o=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:We(`${n.name}_${r}`,function(){})}});o.values[t]=a,o[r]=a},G:(e,r,t)=>{_e(e,{name:r=we(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:8,readValueFromPointer:hr(r,t),destructorFunction:null})},j:(e,r,t,n,o,a,i)=>{var s=rr(r,t);e=we(e),e=or(e),o=Ze(n,o),Ne(e,function(){er(`Cannot call ${e} due to unbound types`,s)},r-1),ge([],s,function(t){var n=[t[0],null].concat(t.slice(1));return Ge(e,nr(e,n,null,o,a,i),r-1),[]})},m:(e,r,t,n,o)=>{r=we(r);var a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i}var s=r.includes("unsigned");_e(e,{name:r,fromWireType:a,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:8,readValueFromPointer:pr(r,t,0!==n),destructorFunction:null})},g:(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=E[e>>2],t=E[e+4>>2];return new n(m.buffer,t,r)}_e(e,{name:t=we(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},F:(e,r)=>{var t="std::string"===(r=we(r));_e(e,{name:r,fromWireType(e){var r,n=E[e>>2],o=e+4;if(t)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==v[s]){var u=ie(a,s-a);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),a=s+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(v[o+i]);r=l.join("")}return Hr(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||Ee("Cannot pass non-string to std::string"),n=t&&o?K(r):r.length;var a=Br(4+n+1),i=a+4;if(E[a>>2]=n,t&&o)((e,r,t)=>{J(e,v,r,t)})(r,i,n+1);else if(o)for(var s=0;s<n;++s){var u=r.charCodeAt(s);u>255&&(Hr(i),Ee("String has UTF-16 code units that do not fit in 8 bits")),v[i+s]=u}else for(s=0;s<n;++s)v[i+s]=r[s];return null!==e&&e.push(Hr,a),a},argPackAdvance:8,readValueFromPointer:Ve,destructorFunction(e){Hr(e)}})},A:(e,r,t)=>{var n,o,a,i,s;t=we(t),2===r?(n=mr,o=vr,i=yr,a=()=>g,s=1):4===r&&(n=gr,o=wr,i=Er,a=()=>E,s=2),_e(e,{name:t,fromWireType:e=>{for(var t,o=E[e>>2],i=a(),u=e+4,l=0;l<=o;++l){var d=e+4+l*r;if(l==o||0==i[d>>s]){var c=n(u,d-u);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),u=d+r}}return Hr(e),t},toWireType:(e,n)=>{"string"!=typeof n&&Ee(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),u=Br(4+a+r);return E[u>>2]=a>>s,o(n,u+4,a+r),null!==e&&e.push(Hr,u),u},argPackAdvance:8,readValueFromPointer:de,destructorFunction(e){Hr(e)}})},v:(e,r,t,n,o,a)=>{ue[e]={name:we(r),rawConstructor:Ze(t,n),rawDestructor:Ze(o,a),fields:[]}},d:(e,r,t,n,o,a,i,s,u,l)=>{ue[e].fields.push({fieldName:we(r),getterReturnType:t,getter:Ze(n,o),getterContext:a,setterArgumentType:i,setter:Ze(s,u),setterContext:l})},_:(e,r)=>{_e(e,{isVoid:!0,name:r=we(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},O:()=>{throw 1/0},o:(e,r,t)=>{e=ur.toValue(e),r=dr(r,"emval::as");var n=[],o=ur.toHandle(n);return E[t>>2]=o,r.toWireType(n,e)},p:(e,r,t,n,o)=>{var a=[],i=(e=kr[e])(r=ur.toValue(r),t=br(t),a,o);return a.length&&(E[n>>2]=ur.toHandle(a)),i},c:sr,B:e=>0===e?ur.toHandle($r()):(e=br(e),ur.toHandle($r()[e])),q:(e,r)=>{var t=((e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=dr(E[r+4*n>>2],"parameter "+n);return t})(e,r),n=t.shift();e--;for(var o=["retType"],a=[n],i="",s=0;s<e;++s)i+=(0!==s?", ":"")+"arg"+s,o.push("argType"+s),a.push(t[s]);var u=n.name+"_$"+t.map(e=>e.name).join("_")+"$",l="return function "+xe("methodCaller_"+u)+"(handle, name, destructors, args) {\n",d=0;for(s=0;s<e;++s)l+=" var arg"+s+" = argType"+s+".readValueFromPointer(args"+(d?"+"+d:"")+");\n",d+=t[s].argPackAdvance;for(l+=" var rv = handle[name]("+i+");\n",s=0;s<e;++s)t[s].deleteObject&&(l+=" argType"+s+".deleteObject(arg"+s+");\n");return n.isVoid||(l+=" return retType.toWireType(destructors, rv);\n"),l+="};\n",o.push(l),(e=>{var r=kr.length;return kr.push(e),r})(tr(Function,o).apply(null,a))},s:e=>(e=br(e),ur.toHandle(o[e])),h:(e,r)=>(e=ur.toValue(e),r=ur.toValue(r),ur.toHandle(e[r])),l:e=>{e>4&&(ir.get(e).refcount+=1)},r:(e,r,t,n)=>{e=ur.toValue(e);var o=Tr[r];return o||(o=Pr(r),Tr[r]=o),o(e,t,n)},i:e=>ur.toHandle(br(e)),k:e=>{var r=ur.toValue(e);le(r),sr(e)},H:function(e,r,t,n,o,a,i,s){var u=Cr(o,a);try{if(isNaN(u))return 61;var l=se.getStreamFromFD(n),d=ae.mmap(l,e,u,r,t),c=d.ptr;return w[i>>2]=d.allocated,E[s>>2]=c,0}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},I:function(e,r,t,n,o,a,i){var s=Cr(a,i);try{if(isNaN(s))return 61;var u=se.getStreamFromFD(o);2&t&&se.doMsync(e,u,r,n,s),ae.munmap(u)}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},f:()=>{R("")},W:()=>Date.now(),P:()=>2147483648,X:(e,r,t)=>v.copyWithin(e,r,r+t),Q:e=>{var r=v.length,t=2147483648;if((e>>>=0)>t)return!1;for(var n=(e,r)=>e+(r-e%r)%r,o=1;o<=4;o*=2){var a=r*(1+.2/o);a=Math.min(a,e+100663296);var i=Math.min(t,n(Math.max(e,a),65536));if(Fr(i))return!0}return!1},M:(e,r)=>{var t=0;return Sr().forEach((n,o)=>{var a=r+t;E[e+4*o>>2]=a,((e,r)=>{for(var t=0;t<e.length;++t)m[0|r++]=e.charCodeAt(t);m[0|r]=0})(n,a),t+=n.length+1}),0},N:(e,r)=>{var t=Sr();E[e>>2]=t.length;var n=0;return t.forEach(e=>n+=e.length+1),E[r>>2]=n,0},z:function(e){try{var r=se.getStreamFromFD(e);return ae.close(r),0}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return e.errno}},U:function(e,r,t,n){try{var o=((e,r,t)=>{for(var n=0,o=0;o<t;o++){var a=E[r>>2],i=E[r+4>>2];r+=8;var s=ae.read(e,m,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(se.getStreamFromFD(e),r,t);return E[n>>2]=o,0}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return e.errno}},J:function(e,r,t,n,o){var a=Cr(r,t);try{if(isNaN(a))return 61;var i=se.getStreamFromFD(e);return ae.llseek(i,a,n),z=[i.position>>>0,(W=i.position,+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[o>>2]=z[0],w[o+4>>2]=z[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return e.errno}},C:function(e,r,t,n){try{var o=((e,r,t)=>{for(var n=0,o=0;o<t;o++){var a=E[r>>2],i=E[r+4>>2];r+=8;var s=ae.write(e,m,a,i,undefined);if(s<0)return-1;n+=s}return n})(se.getStreamFromFD(e),r,t);return E[n>>2]=o,0}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return e.errno}},aa:function(e,r){var t=Yr();try{return Je(e)(r)}catch(e){if(Xr(t),e!==e+0)throw e;qr(1,0)}},t:function(e,r){var t=Yr();try{Je(e)(r)}catch(e){if(Xr(t),e!==e+0)throw e;qr(1,0)}},$:function(e,r,t){var n=Yr();try{Je(e)(r,t)}catch(e){if(Xr(n),e!==e+0)throw e;qr(1,0)}},ba:function(e,r,t,n){var o=Yr();try{Je(e)(r,t,n)}catch(e){if(Xr(o),e!==e+0)throw e;qr(1,0)}},L:(e,r,t,n,o)=>((e,r,t,n)=>{var o=E[n+40>>2],a={tm_sec:w[n>>2],tm_min:w[n+4>>2],tm_hour:w[n+8>>2],tm_mday:w[n+12>>2],tm_mon:w[n+16>>2],tm_year:w[n+20>>2],tm_wday:w[n+24>>2],tm_yday:w[n+28>>2],tm_isdst:w[n+32>>2],tm_gmtoff:w[n+36>>2],tm_zone:o?ie(o):""},i=ie(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)i=i.replace(new RegExp(u,"g"),s[u]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"];function c(e,r,t){for(var n="number"==typeof e?e.toString():e||"";n.length<r;)n=t[0]+n;return n}function h(e,r){return c(e,r,"0")}function p(e,r){function t(e){return e<0?-1:e>0?1:0}var n;return 0===(n=t(e.getFullYear()-r.getFullYear()))&&0===(n=t(e.getMonth()-r.getMonth()))&&(n=t(e.getDate()-r.getDate())),n}function f(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function m(e){var r=((e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Ar(t.getFullYear()),o=t.getMonth(),a=(n?Mr:jr)[o];if(!(r>a-t.getDate()))return t.setDate(t.getDate()+r),t;r-=a-t.getDate()+1,t.setDate(1),o<11?t.setMonth(o+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t})(new Date(e.tm_year+1900,0,1),e.tm_yday),t=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),o=f(t),a=f(n);return p(o,r)<=0?p(a,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var v={"%a":e=>l[e.tm_wday].substring(0,3),"%A":e=>l[e.tm_wday],"%b":e=>d[e.tm_mon].substring(0,3),"%B":e=>d[e.tm_mon],"%C":e=>h((e.tm_year+1900)/100|0,2),"%d":e=>h(e.tm_mday,2),"%e":e=>c(e.tm_mday,2," "),"%g":e=>m(e).toString().substring(2),"%G":e=>m(e),"%H":e=>h(e.tm_hour,2),"%I":e=>{var r=e.tm_hour;return 0==r?r=12:r>12&&(r-=12),h(r,2)},"%j":e=>h(e.tm_mday+((e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t})(Ar(e.tm_year+1900)?Mr:jr,e.tm_mon-1),3),"%m":e=>h(e.tm_mon+1,2),"%M":e=>h(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>h(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var r=e.tm_yday+7-e.tm_wday;return h(Math.floor(r/7),2)},"%V":e=>{var r=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&r++,r){if(53==r){var t=(e.tm_wday+371-e.tm_yday)%7;4==t||3==t&&Ar(e.tm_year)||(r=1)}}else{r=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&Ar(e.tm_year%400-1))&&r++}return h(r,2)},"%w":e=>e.tm_wday,"%W":e=>{var r=e.tm_yday+7-(e.tm_wday+6)%7;return h(Math.floor(r/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var r=e.tm_gmtoff,t=r>=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(t?"+":"-")+String("0000"+r).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var u in i=i.replace(/%%/g,"\0\0"),v)i.includes(u)&&(i=i.replace(new RegExp(u,"g"),v[u](a)));var y=Z(i=i.replace(/\0\0/g,"%"),!1);return y.length>r?0:(Or(y,e),y.length-1)})(e,r,t,n)},Nr=function(){var e={a:zr};function r(e,r){return Nr=e.exports,h=Nr.ca,P(),Ye=Nr.ga,function(e){C.unshift(e)}(Nr.da),O(),Nr}if(j(),o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(e){f(`Module.instantiateWasm callback failed with error: ${e}`),t(e)}return function(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||N(r)||"function"!=typeof fetch?B(r,t,n):fetch(r,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,t).then(n,function(e){return f(`wasm streaming compile failed: ${e}`),f("falling back to ArrayBuffer instantiation"),B(r,t,n)}))}(c,x,e,function(e){r(e.instance)}).catch(t),{}}(),Hr=e=>(Hr=Nr.ea)(e),Br=e=>(Br=Nr.fa)(e),Lr=e=>(Lr=Nr.ha)(e);o.__embind_initialize_bindings=()=>(o.__embind_initialize_bindings=Nr.ia)();var Ur,Ir=()=>(Ir=Nr.ja)(),Vr=(e,r)=>(Vr=Nr.ka)(e,r),qr=(e,r)=>(qr=Nr.la)(e,r),Yr=()=>(Yr=Nr.ma)(),Xr=e=>(Xr=Nr.na)(e),Gr=e=>(Gr=Nr.oa)(e);function Kr(){function e(){Ur||(Ur=!0,o.calledRun=!0,k||(o.noFSInit||ae.init.initialized||ae.init(),ae.ignorePermissions=!1,L(C),r(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)S(o.postRun.shift());L(F)}()))}A>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)D(o.preRun.shift());L(T)}(),A>0||(o.setStatus?(o.setStatus("Running..."),setTimeout(function(){setTimeout(function(){o.setStatus("")},1),e()},1)):e()))}if(o.dynCall_ji=(e,r)=>(o.dynCall_ji=Nr.pa)(e,r),o.dynCall_iij=(e,r,t,n)=>(o.dynCall_iij=Nr.qa)(e,r,t,n),o.dynCall_jiiii=(e,r,t,n,a)=>(o.dynCall_jiiii=Nr.ra)(e,r,t,n,a),o.dynCall_jiji=(e,r,t,n,a)=>(o.dynCall_jiji=Nr.sa)(e,r,t,n,a),o.dynCall_viijii=(e,r,t,n,a,i,s)=>(o.dynCall_viijii=Nr.ta)(e,r,t,n,a,i,s),o.dynCall_iiiiij=(e,r,t,n,a,i,s)=>(o.dynCall_iiiiij=Nr.ua)(e,r,t,n,a,i,s),o.dynCall_iiiiijj=(e,r,t,n,a,i,s,u,l)=>(o.dynCall_iiiiijj=Nr.va)(e,r,t,n,a,i,s,u,l),o.dynCall_iiiiiijj=(e,r,t,n,a,i,s,u,l,d)=>(o.dynCall_iiiiiijj=Nr.wa)(e,r,t,n,a,i,s,u,l,d),M=function e(){Ur||Kr(),Ur||(M=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Kr(),e.ready})}}]);
|