@arcgis/core 4.33.0-next.20250514 → 4.33.0-next.20250516
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/Basemap.js +1 -1
- package/Graphic.js +1 -1
- package/Map.js +1 -1
- package/WebScene.js +1 -1
- package/applications/Components/SelectionOperation.js +1 -1
- package/applications/Components/baUtils.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/009730713ed9bc7c7388.js +1 -0
- package/assets/esri/core/workers/chunks/02853ab923245459b32e.js +1 -0
- package/assets/esri/core/workers/chunks/0624ae07d3af8d5f1ac8.js +1 -0
- package/assets/esri/core/workers/chunks/{6e8c6c9112ecb867b7be.js → 0817ddd885ce8b2459cb.js} +1 -1
- package/assets/esri/core/workers/chunks/{69e8aabe5a1eb2d1e414.js → 0832bd5195b5791dd803.js} +1 -1
- package/assets/esri/core/workers/chunks/0c50ee1f3cdd30d96479.js +1 -0
- package/assets/esri/core/workers/chunks/0d23610475c85385fbff.js +1 -0
- package/assets/esri/core/workers/chunks/{b4f38fe9cc948a39ad87.js → 0fd6d80393722132e044.js} +2 -2
- package/assets/esri/core/workers/chunks/{b4f38fe9cc948a39ad87.js.LICENSE.txt → 0fd6d80393722132e044.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/1051a5a57b2fb843a555.js +1 -0
- package/assets/esri/core/workers/chunks/133e4bde346828d4510b.js +1 -0
- package/assets/esri/core/workers/chunks/19a58adc75a34f84b0ef.js +1 -0
- package/assets/esri/core/workers/chunks/{7e8f78b96d43c224c7b6.js → 19c50f052eba0553bf4d.js} +1 -1
- package/assets/esri/core/workers/chunks/1d7f2abfccc54659d6f2.js +1 -0
- package/assets/esri/core/workers/chunks/{339e7a900e2bba9d3647.js → 1f19bd3ef795c6765384.js} +1 -1
- package/assets/esri/core/workers/chunks/1f9c6fbcd4d0eae1e574.js +1 -0
- package/assets/esri/core/workers/chunks/234117cc5cb7c6863313.js +1 -0
- package/assets/esri/core/workers/chunks/{1c025beaaac5ec7c04fb.js → 2adf558cd8d8155d07d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{837f886f759fc6f0489d.js → 2b1486a466760d2152f5.js} +1 -1
- package/assets/esri/core/workers/chunks/{47f64a340b5d56bf9e59.js → 2cf82d3645c75d311e99.js} +1 -1
- package/assets/esri/core/workers/chunks/320e821af81138fe12ac.js +1 -0
- package/assets/esri/core/workers/chunks/{f7ab3511f6627f467796.js → 377a7f0f7d304ff9fe5b.js} +1 -1
- package/assets/esri/core/workers/chunks/3bf1cf6c3cba172e2f6d.js +1 -0
- package/assets/esri/core/workers/chunks/{b3ca65d6112079fb1d00.js → 3ce5d7ad16e41eea05be.js} +1 -1
- package/assets/esri/core/workers/chunks/465f2db4ab8aa9c9f907.js +1 -0
- package/assets/esri/core/workers/chunks/{1e13e03aad422f9e871e.js → 47fe2379f2214bf50036.js} +1 -1
- package/assets/esri/core/workers/chunks/{b8b5dfd2d73a8410fba2.js → 4954e0cf4a40e45d237f.js} +1 -1
- package/assets/esri/core/workers/chunks/4a362a35bcdb8405a53a.js +1 -0
- package/assets/esri/core/workers/chunks/4f8ebd9f0758b801835c.js +1 -0
- package/assets/esri/core/workers/chunks/5228d39c05d660a135b6.js +1 -0
- package/assets/esri/core/workers/chunks/523046e04679e301797d.js +1 -0
- package/assets/esri/core/workers/chunks/{736cb9f74bf050b70f4c.js → 52a3d0e041717da7697e.js} +1 -1
- package/assets/esri/core/workers/chunks/54ea93f416ab52b413c1.js +1 -0
- package/assets/esri/core/workers/chunks/554a8bf4626336e68798.js +1 -0
- package/assets/esri/core/workers/chunks/55f087bca75c3f2a4515.js +1 -0
- package/assets/esri/core/workers/chunks/{bbaadce582df7e20397b.js → 56d2a20c1b143697aa19.js} +1 -1
- package/assets/esri/core/workers/chunks/57211c35a9646f088d86.js +1 -0
- package/assets/esri/core/workers/chunks/58526def64536b6581ab.js +1 -0
- package/assets/esri/core/workers/chunks/5890740d5a761b038560.js +1 -0
- package/assets/esri/core/workers/chunks/{9a641fb94819574e48f6.js → 5a73d8b7b01758ed4fdd.js} +1 -1
- package/assets/esri/core/workers/chunks/5dbd8d81d94cfda5bb32.js +1 -0
- package/assets/esri/core/workers/chunks/{a0d2bd5d4ed3c90f6b1c.js → 5f766bcb751d66fbf1c8.js} +1 -1
- package/assets/esri/core/workers/chunks/609c7c9b7046b3a7acde.js +1 -0
- package/assets/esri/core/workers/chunks/{d21d9e8b8c8a2e0485d5.js → 612f6739c9399fbae4d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{30f3014c0ac6e2bc14bf.js → 622c0552ca3cd674d46c.js} +1 -1
- package/assets/esri/core/workers/chunks/6409160d226a0bea5ac6.js +1 -0
- package/assets/esri/core/workers/chunks/65fd971d0574d69cbc26.js +1 -0
- package/assets/esri/core/workers/chunks/6993a59cbb78bc26f029.js +1 -0
- package/assets/esri/core/workers/chunks/6b23ca6570357f9fb724.js +1 -0
- package/assets/esri/core/workers/chunks/6c37a5bd00d255d1337a.js +1 -0
- package/assets/esri/core/workers/chunks/6ce4327f63e6eb92bba8.js +1 -0
- package/assets/esri/core/workers/chunks/6f9b8df290b0ce09beae.js +1 -0
- package/assets/esri/core/workers/chunks/{e0247252c6a0f3340e33.js → 6fa1a5b7276a037dbd6a.js} +84 -106
- package/assets/esri/core/workers/chunks/7a9a0383f27f4967bcfa.js +1 -0
- package/assets/esri/core/workers/chunks/7c819b3e6d69c526f4b2.js +1 -0
- package/assets/esri/core/workers/chunks/7df147da40474b028705.js +1 -0
- package/assets/esri/core/workers/chunks/{0766ecb677d667e5fb83.js → 7e1dc8e5e18f18dd21e2.js} +2 -2
- package/assets/esri/core/workers/chunks/{0766ecb677d667e5fb83.js.LICENSE.txt → 7e1dc8e5e18f18dd21e2.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{e662c86b8bafc5512d3d.js → 847e88e1d6da1e74cdc8.js} +1 -1
- package/assets/esri/core/workers/chunks/{6f5ec9bf7cf8a36d8e8b.js → 87eca6de502d18d8b7eb.js} +1 -1
- package/assets/esri/core/workers/chunks/87fc7b6c3e2d4f7775e2.js +1 -0
- package/assets/esri/core/workers/chunks/{10e6dffa57aa1a626708.js → 8a6aac37b3133de74cce.js} +1 -1
- package/assets/esri/core/workers/chunks/8a87c181b85d0b86b9bb.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/91cd29f53f07bc38fe75.js +1 -0
- package/assets/esri/core/workers/chunks/{5583d18032ed8bc17c74.js → 938f1eebc48871be64e9.js} +1 -1
- package/assets/esri/core/workers/chunks/97c148adf0347c69a79c.js +1 -0
- package/assets/esri/core/workers/chunks/9839309d0cd804fe52c2.js +1 -0
- package/assets/esri/core/workers/chunks/{029a118e6dfb3f544a5c.js → 98ef17d15517368d2383.js} +1 -1
- package/assets/esri/core/workers/chunks/{c10885b3a0739708e9e0.js → 9a06476b834584d00d5c.js} +1 -1
- package/assets/esri/core/workers/chunks/9c8224ca29475556e5ea.js +1 -0
- package/assets/esri/core/workers/chunks/{fd24dd602a3fed88d90e.js → 9d5eac3bd1526e2b33e3.js} +1 -1
- package/assets/esri/core/workers/chunks/{38f5e6a202ce292edd9f.js → 9eb9c8db2510154c09cc.js} +1 -1
- package/assets/esri/core/workers/chunks/a036503087baa1f9fd00.js +1 -0
- package/assets/esri/core/workers/chunks/{6e64ce0958c3432004b6.js → a70a86ba4e487f62f683.js} +2 -2
- package/assets/esri/core/workers/chunks/a937076d2f8c2b6a5d8a.js +1 -0
- package/assets/esri/core/workers/chunks/{90ae15ce22a49bd84876.js → ab9614555a15f04396f6.js} +2 -2
- package/assets/esri/core/workers/chunks/{90ae15ce22a49bd84876.js.LICENSE.txt → ab9614555a15f04396f6.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/ae733c963d61065faa54.js +1 -0
- package/assets/esri/core/workers/chunks/{8e82acd1f730571680f4.js → aeb5bbe861f65544d504.js} +1 -1
- package/assets/esri/core/workers/chunks/b0522dffa5600345c07e.js +1 -0
- package/assets/esri/core/workers/chunks/{d1f7bfb8daf11ecada9f.js → b4273381dc069f4e1fa2.js} +1 -1
- package/assets/esri/core/workers/chunks/{fb2e28e6a87956267d1c.js → b92a34f88569c481ed10.js} +1 -1
- package/assets/esri/core/workers/chunks/{352b7dcd1633e0c98194.js → ba940ebdae84b174a7be.js} +1 -1
- package/assets/esri/core/workers/chunks/be2c8c0a8b2bce7979b6.js +1 -0
- package/assets/esri/core/workers/chunks/bf9b6b74654d303a6dae.js +1 -0
- package/assets/esri/core/workers/chunks/c07c1bb7ae09136dc1f6.js +1 -0
- package/assets/esri/core/workers/chunks/c938f5d269ba202d10ef.js +1 -0
- package/assets/esri/core/workers/chunks/cbbca011f8b176d4b5db.js +1 -0
- package/assets/esri/core/workers/chunks/{c604fefedccfd4db9953.js → ce321fd8fc5551e190ec.js} +1 -1
- package/assets/esri/core/workers/chunks/ce53ddda04e09ba2f860.js +1 -0
- package/assets/esri/core/workers/chunks/d9a23fb0c6c936d5e8ec.js +1 -0
- package/assets/esri/core/workers/chunks/db3f710d770adf631b28.js +2 -0
- package/assets/esri/core/workers/chunks/{6394ab6f629aa90292e6.js.LICENSE.txt → db3f710d770adf631b28.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{6805e7b43d6ecf3ea93c.js → dcf5719f38ad40b92941.js} +1 -1
- package/assets/esri/core/workers/chunks/e2cada6644c49b1b6e79.js +1 -0
- package/assets/esri/core/workers/chunks/e2fb4bebce3aee406efa.js +1 -0
- package/assets/esri/core/workers/chunks/e3638f9d4c0fda238f4b.js +1 -0
- package/assets/esri/core/workers/chunks/e85f892ea44d67d53ff0.js +2 -0
- package/assets/esri/core/workers/chunks/{3596540ef49e5330ceb2.js.LICENSE.txt → e85f892ea44d67d53ff0.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/e89345c7af9d3d4d8452.js +1 -0
- package/assets/esri/core/workers/chunks/{a31658f544ac6e1801d6.js → ead5d4e271effc04def3.js} +1 -1
- package/assets/esri/core/workers/chunks/ece68a25651ef03fc95d.js +1 -0
- package/assets/esri/core/workers/chunks/f218a190015de1444018.js +1 -0
- package/assets/esri/core/workers/chunks/f229044615af3142bcb0.js +1 -0
- package/assets/esri/core/workers/chunks/f2692f25ef693cf12ce0.js +1 -0
- package/assets/esri/core/workers/chunks/f4c6ea630cecf0f260d7.js +2 -0
- package/assets/esri/core/workers/chunks/{e0dc8794343c2a949ffb.js.LICENSE.txt → f4c6ea630cecf0f260d7.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/f718cb847c4eb1e43ad9.js +1 -0
- package/assets/esri/core/workers/chunks/faa40ef04604c7cce706.js +1 -0
- package/assets/esri/core/workers/chunks/{218a66d53f7cf4f285aa.js → fbd2f45d5adce4ca323f.js} +2 -2
- package/assets/esri/core/workers/chunks/{218a66d53f7cf4f285aa.js.LICENSE.txt → fbd2f45d5adce4ca323f.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{498886c321a2501658bc.js → ffaa977cd97a2b7190c5.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Editor.scss +2 -1
- package/assets/esri/themes/base/widgets/_SearchResultRenderer.scss +5 -30
- package/assets/esri/themes/base/widgets/_SelectionToolbar.scss +5 -0
- 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/Search/t9n/Search.json +1 -1
- package/assets/esri/widgets/Search/t9n/Search_en.json +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/Jpg.js +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/QuadraticBezier.js +1 -1
- package/chunks/ShadowCastAccumulate.glsl.js +7 -5
- package/chunks/ShadowCastClear.glsl.js +5 -0
- package/chunks/ShadowCastVisualize.glsl.js +1 -1
- package/chunks/ShadowHighlight.glsl.js +8 -7
- package/chunks/Transformation2D.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/chunks/basis_encoder.js +1 -1
- package/chunks/basis_transcoder.js +1 -1
- package/chunks/bundle.js +1 -1
- package/chunks/chartUtilsAm5.js +1 -1
- package/chunks/dxt_encoder.js +1 -1
- package/chunks/geometryEngineBase.js +1 -1
- package/chunks/i3s.js +1 -1
- package/chunks/lclayout.js +1 -1
- package/chunks/libtess-asm.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/chunks/vec4.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/config.js +1 -1
- package/core/arrayUtils.js +1 -1
- package/core/image/apng.js +1 -1
- package/core/image/gif.js +1 -1
- package/core/mathUtils.js +1 -1
- package/core/workers/Connection.js +1 -1
- package/geometry/operators/densifyOperator.d.ts +0 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
- package/geometry/support/aaBoundingBox.js +1 -1
- package/geometry/support/meshProperties.js +1 -1
- package/geometry/support/normalizeUtilsSync.js +1 -1
- package/interfaces.d.ts +313 -163
- package/intl/date.js +1 -1
- package/intl/number.js +1 -1
- package/layers/BingMapsLayer.js +1 -1
- package/layers/graphics/OptimizedFeatureSet.js +1 -1
- package/layers/graphics/controllers/StreamController.js +1 -1
- package/layers/graphics/data/FeatureIdInfo.js +5 -0
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/StreamFeatureManager.js +1 -1
- package/layers/graphics/data/createFeatureId.js +5 -0
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/graphics/sources/WFSSourceWorker.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/core/utils.js +1 -1
- package/layers/orientedImagery/queries.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/support/LercWorker.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/layers/support/rasterFunctions/stretchUtils.js +1 -1
- package/layers/support/wmsUtils.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/package.json +2 -2
- package/portal/Portal.js +1 -1
- package/request.js +1 -1
- package/rest/knowledgeGraph/GraphAddNamedTypesResult.js +1 -1
- package/rest/knowledgeGraph/GraphAddPropertyResult.js +5 -0
- package/rest/knowledgeGraph/GraphApplyEditsResult.js +1 -1
- package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.js +1 -1
- package/rest/knowledgeGraph/GraphDeletePropertyResult.js +5 -0
- package/rest/knowledgeGraph/GraphUpdateNamedTypesResult.js +5 -0
- package/rest/knowledgeGraph/GraphUpdatePropertyResult.js +5 -0
- package/rest/knowledgeGraph/wasmInterface/updateToWasmEncodedFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToDataModelChangeResponseFactories.js +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/rest/networks/support/Association.js +1 -1
- package/rest/networks/support/NetworkElement.js +1 -1
- package/rest/networks/support/QueryAssociationsParameters.js +1 -1
- package/rest/networks/support/TelecomNetworkElement.js +1 -1
- package/rest/networks/support/TraceResult.js +1 -1
- package/rest/networks/unitIdentifiers/insertGap.js +5 -0
- package/rest/networks/unitIdentifiers/queryUnitIdentifiers.js +5 -0
- package/rest/networks/unitIdentifiers/reset.js +5 -0
- package/rest/networks/unitIdentifiers/resize.js +5 -0
- package/rest/networks/unitIdentifiers/support/InsertGapParameters.js +5 -0
- package/rest/networks/unitIdentifiers/support/QueryUnitIdentifiersParamters.js +5 -0
- package/rest/networks/unitIdentifiers/support/ResetParameters.js +5 -0
- package/rest/networks/unitIdentifiers/support/ResizeParameters.js +5 -0
- package/rest/networks/unitIdentifiers/support/UnitQueryResult.js +5 -0
- package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
- package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
- package/rest/query/operations/queryRelatedRecords.js +1 -1
- package/rest/utils.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/support/apiKeyUtils.js +1 -1
- package/support/basemapEnsureType.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
- package/unionTypes.d.ts +2 -0
- package/views/2d/engine/ManagedCanvas.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
- package/views/2d/engine/webgl/TileContainer.js +1 -1
- package/views/2d/engine/webgl/grouping.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/featureServiceUtils.js +1 -1
- package/views/2d/layers/features/processor/AAggregateStrategy.js +1 -1
- package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/sources/strategies/StreamLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/FeatureMetadata.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/3d/FocusAreasView.js +1 -1
- package/views/3d/analysis/AnalysisViewManager3D.js +1 -1
- package/views/3d/analysis/DimensionAnalysisView3D.d.ts +4 -0
- package/views/3d/analysis/DimensionAnalysisView3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/camera/constraintUtils/common.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
- package/views/3d/layers/ContentGeometryLayerView.js +5 -0
- package/views/3d/layers/DimensionLayerView3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/LineOfSightLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/ViewshedLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/QueryEngine.js +1 -1
- package/views/3d/layers/graphics/focusAreaStyle.js +5 -0
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
- package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
- package/views/3d/layers/i3s/PagedNodeIndex.js +1 -1
- package/views/3d/layers/i3s/PointCloudWorkerUtil.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/LayerViewAnalysisViewManager.js +5 -0
- package/views/3d/support/pointsOfInterest/ContentGeometryUpdates.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileAgent.js +1 -1
- package/views/3d/webgl-engine/collections/Component/IndexRange/ComponentRange.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ShadowmapFiltering.glsl.js +3 -25
- package/views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadow.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/Texture2DShadowBindUniform.js +5 -0
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +3 -3
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
- package/views/3d/webgl-engine/lib/DepthRange.js +1 -1
- package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
- package/views/3d/webgl.js +1 -1
- package/views/FocusArea.js +1 -1
- package/views/FocusAreas.js +1 -1
- package/views/GroundView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/GraphicMover.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/input/InputManager.js +1 -1
- package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/support/LayerViewManager.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/ShaderBuilder.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/TextureDescriptor.js +1 -1
- package/views/webgl/textureUtils.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
- package/widgets/BatchAttributeForm/VisibleElements.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/CoordinateConversion.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.d.ts +4 -0
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +4 -0
- package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/support/profileUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/LayerList/LayerListItem.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewer.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUI.js +1 -1
- package/widgets/OrientedImageryViewer/components/NavigationUIPanoramicViewModel.js +5 -0
- package/widgets/OrientedImageryViewer/components/NavigationUIViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/imageNavigationUtils.js +1 -1
- package/widgets/OrientedImageryViewer/constants.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +5 -0
- package/widgets/OrientedImageryViewer/navigation/NavigationManagerPanoramic.js +5 -0
- package/widgets/OrientedImageryViewer/navigation/errors.js +5 -0
- package/widgets/OrientedImageryViewer/navigation/queries.js +5 -0
- package/widgets/OrientedImageryViewer/navigation/utils.js +5 -0
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer.js +1 -1
- package/widgets/Search/SearchResultRenderer.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search/searchResultRendererCSS.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/widgets/support/SelectionList/selectionListUtils.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/widgets/support/Selector2D/SelectionOperation.js +1 -1
- package/widgets/support/SnappingControls.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/utils/createAssociation.js +1 -1
- package/assets/esri/core/workers/chunks/0516bd18334d3af6c555.js +0 -1
- package/assets/esri/core/workers/chunks/0d8a635c1f9aeaf7564c.js +0 -1
- package/assets/esri/core/workers/chunks/191a45a594ecaf7f1abb.js +0 -1
- package/assets/esri/core/workers/chunks/1abd026ed12c863e1d94.js +0 -1
- package/assets/esri/core/workers/chunks/1c6542315390037053a6.js +0 -1
- package/assets/esri/core/workers/chunks/201db423e3c6f947b77c.js +0 -1
- package/assets/esri/core/workers/chunks/23de8aeed5b82c682cbe.js +0 -1
- package/assets/esri/core/workers/chunks/297d2c0a9d3f1e978318.js +0 -1
- package/assets/esri/core/workers/chunks/2e0af748eba93f3ea6cb.js +0 -1
- package/assets/esri/core/workers/chunks/3596540ef49e5330ceb2.js +0 -2
- package/assets/esri/core/workers/chunks/3604a77c93cf2927787b.js +0 -1
- package/assets/esri/core/workers/chunks/391b1c3e736a62befbaf.js +0 -1
- package/assets/esri/core/workers/chunks/40e556a0645af8658658.js +0 -1
- package/assets/esri/core/workers/chunks/4402336db7210cd583e0.js +0 -1
- package/assets/esri/core/workers/chunks/4899cdc8bb5085c356f9.js +0 -1
- package/assets/esri/core/workers/chunks/4bd5cbf6e0be2fc7e84d.js +0 -1
- package/assets/esri/core/workers/chunks/4c8052e81916579841f4.js +0 -1
- package/assets/esri/core/workers/chunks/4c9aa1dafdc0d9537231.js +0 -1
- package/assets/esri/core/workers/chunks/4feb774f123da26e9f2a.js +0 -1
- package/assets/esri/core/workers/chunks/51b5dfc7085272d26b89.js +0 -1
- package/assets/esri/core/workers/chunks/566c2ce50af225e556ac.js +0 -1
- package/assets/esri/core/workers/chunks/5ddf463c85c33428e807.js +0 -1
- package/assets/esri/core/workers/chunks/61032b5050464cb48056.js +0 -1
- package/assets/esri/core/workers/chunks/6394ab6f629aa90292e6.js +0 -2
- package/assets/esri/core/workers/chunks/63dade3e1cc7f5b76846.js +0 -1
- package/assets/esri/core/workers/chunks/64af433e88d4dd21a2ff.js +0 -1
- package/assets/esri/core/workers/chunks/6b42bcfbb60432e3ed1f.js +0 -1
- package/assets/esri/core/workers/chunks/6e12900a9f4c3c9941ec.js +0 -1
- package/assets/esri/core/workers/chunks/6e5d8a6b29c06a27998c.js +0 -1
- package/assets/esri/core/workers/chunks/6f506303017903b9a06f.js +0 -1
- package/assets/esri/core/workers/chunks/71e46e866c23372b0b58.js +0 -1
- package/assets/esri/core/workers/chunks/75fa861b5757551f8fdc.js +0 -1
- package/assets/esri/core/workers/chunks/7c49a8877bd744daa3d5.js +0 -1
- package/assets/esri/core/workers/chunks/7ea5bbb52e84be9a608e.js +0 -1
- package/assets/esri/core/workers/chunks/82c395d8649096609a8a.js +0 -1
- package/assets/esri/core/workers/chunks/86138c297095af1ac604.js +0 -1
- package/assets/esri/core/workers/chunks/8c21cc9af4ce9652cc5c.js +0 -1
- package/assets/esri/core/workers/chunks/8e6301006abdf47cc88d.js +0 -1
- package/assets/esri/core/workers/chunks/90f93091fe088875f80f.js +0 -1
- package/assets/esri/core/workers/chunks/91a02ee91f61cf841111.js +0 -1
- package/assets/esri/core/workers/chunks/9baeb3b5733acdda4e7c.js +0 -1
- package/assets/esri/core/workers/chunks/a1d697e2be1e892a666a.js +0 -1
- package/assets/esri/core/workers/chunks/a1f27c4f4b5ef3e359f7.js +0 -1
- package/assets/esri/core/workers/chunks/a348ff2dd936c6bf9399.js +0 -1
- package/assets/esri/core/workers/chunks/a9b1f4bf5eaa937943be.js +0 -1
- package/assets/esri/core/workers/chunks/b64f708f821dd2bb51cd.js +0 -1
- package/assets/esri/core/workers/chunks/bf453744067267e84d1b.js +0 -1
- package/assets/esri/core/workers/chunks/c1175477dfcdee90a453.js +0 -1
- package/assets/esri/core/workers/chunks/c4e2b75b9135920babc3.js +0 -1
- package/assets/esri/core/workers/chunks/cb80b7ddc9acf625d754.js +0 -1
- package/assets/esri/core/workers/chunks/d22f91bc16a7641bcbef.js +0 -1
- package/assets/esri/core/workers/chunks/d52cf7b795ee52034f9e.js +0 -1
- package/assets/esri/core/workers/chunks/d971571a957de70d5a8d.js +0 -1
- package/assets/esri/core/workers/chunks/d9d9d4f99140e579eabb.js +0 -1
- package/assets/esri/core/workers/chunks/dc3a6beb3028009b3c23.js +0 -1
- package/assets/esri/core/workers/chunks/e0dc8794343c2a949ffb.js +0 -2
- package/assets/esri/core/workers/chunks/e483d2f169e51a361742.js +0 -1
- package/assets/esri/core/workers/chunks/e5608e5232e983531f72.js +0 -1
- package/assets/esri/core/workers/chunks/e613df03ceb39e29befa.js +0 -1
- package/assets/esri/core/workers/chunks/e697dd4508f02dcfe329.js +0 -1
- package/assets/esri/core/workers/chunks/eabfab23246d4a052ea3.js +0 -1
- package/assets/esri/core/workers/chunks/ec8e8048b3df2c92008d.js +0 -1
- package/assets/esri/core/workers/chunks/ed6d0fea159dea638c2f.js +0 -1
- package/assets/esri/core/workers/chunks/f5fcba6ca6f43bf1d65d.js +0 -1
- package/assets/esri/core/workers/chunks/f92d76b694ff0cdb212c.js +0 -1
- package/chunks/NetworkElement.js +0 -5
- package/views/FocusAreasUtils.js +0 -5
- package/views/analysis/DimensionAnalysisView.d.ts +0 -4
- package/views/analysis/DimensionAnalysisView.js +0 -5
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{calculateUVZShadowFromDepthPass as a}from"../views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadowFromDepth.glsl.js";import{ReadShadowMapPass as o}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{glsl as s}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DBindUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{
|
|
6
|
-
sampleCount = ${
|
|
5
|
+
import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{calculateUVZShadowFromDepthPass as a}from"../views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadowFromDepth.glsl.js";import{ReadShadowMapPass as o}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{glsl as s}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DBindUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DShadowBindUniform as r}from"../views/3d/webgl-engine/core/shaderModules/Texture2DShadowBindUniform.js";import{ReadShadowMapConfiguration as t}from"../views/3d/webgl-engine/shaders/ReadShadowMapConfiguration.js";import{ShadowCastAccumulateIndex as n}from"../views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js";import{ShaderBuilder as i}from"../views/webgl/ShaderBuilder.js";const l=255,w=1/l;function u(t){const l=new i,{fragment:u}=l;l.include(e),l.include(a),l.include(o,h),u.uniforms.add(new r("shadowMap",(e=>e.shadowMap.depthTexture)),new d("depthMap",(e=>e.depth?.attachment))),u.constants.add("sampleValue","float",w);const p=t.index===n.CONTEXT?"vec2":"float";return l.outputs.add("sampleCount",p),u.main.add(s`
|
|
6
|
+
sampleCount = ${p}(0.0);
|
|
7
7
|
|
|
8
8
|
vec3 uvzShadow = calculateUVZShadowFromDepth(uv, textureSize(shadowMap,0), depthMap);
|
|
9
9
|
if (uvzShadow.z < 0.0) {
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// The shadow map sampler returns a value between 0 and 1, we take the midpoint as we count discrete samples
|
|
14
|
+
bool shadow = readShadowMapUVZ(uvzShadow, shadowMap) > 0.5;
|
|
15
|
+
|
|
14
16
|
if (shadow) {
|
|
15
|
-
sampleCount = ${
|
|
17
|
+
sampleCount = ${p}(sampleValue); // Add 1 to the sample count
|
|
16
18
|
}
|
|
17
|
-
`),
|
|
19
|
+
`),l}const h=new t,p=Object.freeze(Object.defineProperty({__proto__:null,ShadowCastMaxSamples:l,build:u},Symbol.toStringTag,{value:"Module"}));export{l as S,p as a,u as b};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{glsl as r}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{ShadowCastAccumulateIndex as o}from"../views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js";import{ShaderBuilder as n}from"../views/webgl/ShaderBuilder.js";function s(s){const i=new n,{fragment:t}=i;i.include(e);const a=s.index===o.CONTEXT?"vec2":"float",l="value";return i.outputs.add(l,a),t.main.add(r`${l} = ${a}(0.0);`),i}const i=Object.freeze(Object.defineProperty({__proto__:null,build:s},Symbol.toStringTag,{value:"Module"}));export{i as S,s as b};
|
|
@@ -18,7 +18,7 @@ import{create as e}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{cl
|
|
|
18
18
|
|
|
19
19
|
// in threshold mode, step the strength to 0 if we are at or below the threshold, 1 otherwise.
|
|
20
20
|
${m(p||b,c`
|
|
21
|
-
${y} = step(
|
|
21
|
+
${y} = 1.0 - step(${y}, threshold);
|
|
22
22
|
`)}
|
|
23
23
|
|
|
24
24
|
// bail out if we are below the threshold
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{n as e,t as i}from"./vec32.js";import{create as o}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{NormalFromDepth as r}from"../views/3d/webgl-engine/core/shaderLibrary/NormalFromDepth.glsl.js";import{ScreenSpacePass as t}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{calculateUVZShadowFromDepthPass as a}from"../views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadowFromDepth.glsl.js";import{ShadowmapFiltering as l}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ShadowmapFiltering.glsl.js";import{RgbaFloatEncoding as h}from"../views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{Float3BindUniform as
|
|
5
|
+
import{n as e,t as i}from"./vec32.js";import{create as o}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{NormalFromDepth as r}from"../views/3d/webgl-engine/core/shaderLibrary/NormalFromDepth.glsl.js";import{ScreenSpacePass as t}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{calculateUVZShadowFromDepthPass as a}from"../views/3d/webgl-engine/core/shaderLibrary/shading/calculateUVZShadowFromDepth.glsl.js";import{ShadowmapFiltering as l}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ShadowmapFiltering.glsl.js";import{RgbaFloatEncoding as h}from"../views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{Float3BindUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Float3BindUniform.js";import{Float4PassUniform as g}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as n}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as s}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Texture2DBindUniform as c}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DShadowBindUniform as u}from"../views/3d/webgl-engine/core/shaderModules/Texture2DShadowBindUniform.js";import{Texture2DUintPassUniform as w}from"../views/3d/webgl-engine/core/shaderModules/Texture2DUintPassUniform.js";import{SnapshotSlot as m}from"../views/3d/webgl-engine/lib/ShadowMap.js";import{ShaderBuilder as p}from"../views/webgl/ShaderBuilder.js";const f=.025;function v(){const o=new p;o.include(a),o.include(l),o.include(t),o.include(r);const v=o.fragment;return v.include(h),v.uniforms.add(new u("shadowMapExcludingHighlight",(e=>e.shadowMap.getSnapshot(m.ExcludeHighlight))),new u("shadowMapHighlight",(e=>e.shadowMap.getSnapshot(m.Highlight))),new c("depthMap",(e=>e.depth?.attachment)),new w("highlightTexture",(e=>e.highlightTexture)),new g("uColor",(e=>e.shadowColor)),new n("opacity",(e=>e.shadowOpacity)),new n("occludedOpacity",(e=>e.occludedShadowOpacity)),new n("terminationFactor",(e=>e.opacityElevation*e.dayNightTerminator)),new d("lightingMainDirectionView",(({lighting:o,camera:r})=>e(b,i(b,o.mainLight.direction,r.viewInverseTransposeMatrix))))),v.main.add(s`
|
|
6
6
|
ivec2 highlightTextureSize = textureSize(highlightTexture, 0);
|
|
7
7
|
ivec2 highlightIUV = ivec2(uv * vec2(highlightTextureSize));
|
|
8
8
|
uvec2 highlightInfo = texelFetch(highlightTexture, highlightIUV, 0).rg;
|
|
@@ -23,16 +23,17 @@ import{n as e,t as i}from"./vec32.js";import{create as o}from"../core/libs/gl-ma
|
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
if (
|
|
26
|
+
float shadowHighlightFactor = readShadowMapUVZ(uvzShadow, shadowMapHighlight);
|
|
27
|
+
if (shadowHighlightFactor == 0.0) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
float shadowExcludingHighlightFactor = readShadowMapUVZ(uvzShadow, shadowMapExcludingHighlight);
|
|
32
32
|
|
|
33
33
|
vec3 normal = normalFromDepth(depthMap, currentPixelPos.xyz, gl_FragCoord.xy, uv);
|
|
34
|
-
bool shaded = dot(normal, lightingMainDirectionView) < ${
|
|
34
|
+
bool shaded = dot(normal, lightingMainDirectionView) < ${s.float(f)};
|
|
35
35
|
|
|
36
|
-
float
|
|
36
|
+
float occludedFactor = max(shadowExcludingHighlightFactor, shaded ? 1.0 : 0.0);
|
|
37
|
+
float fragOpacity = mix(opacity, occludedOpacity, occludedFactor);
|
|
37
38
|
fragColor = vec4(uColor.rgb, uColor.a * fragOpacity * terminationFactor);
|
|
38
|
-
`),o}const
|
|
39
|
+
`),o}const b=o(),x=Object.freeze(Object.defineProperty({__proto__:null,build:v},Symbol.toStringTag,{value:"Module"}));export{x as S,v as b};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{g as t,a as s,b as o}from"./Geometry.js";import{m as i,P as e,a as h,M as r,b as a,c as l}from"./Point2D.js";class y{constructor(t,s,o){if(t instanceof y)return this.data=t.data,this.N=t.N,this.M=t.M,t.data=null,t.N=0,void(t.M=0);this.data=t,this.N=s,this.M=o}assignCopy(s){return this===s||(t(this.N*this.M==s.N*s.M),this.data.set(s.data),this.N=s.N,this.M=s.M),this}setZero(){return this.data?.fill(0),this}setIdentity(){const t=0,s=1;for(let o=0;o<this.N;o++)for(let i=0;i<this.M;i++)this.setRowCol(o,i,o===i?s:t);return this}rows(){return this.N}cols(){return this.M}row(s){return t(0),{}}set(t,s){return this.data[t]=s,this}setRowCol(t,s,o){return this.data[t*this.M+s]=o,this}at(t){return this.data[t]}atRowCol(t,s){return this.data[t*this.M+s]}mulScalar(s,o){t(0)}mul(s,o){if(t(this.M===s.rows()),t(this.N===o.rows()),t(s.cols()===o.cols()),o===this){const t=new Float64Array(this.N*this.M),i=new y(t,this.N,this.M);return this.mul(s,i),void o.assignCopy(i)}if(o===s){const t=new Float64Array(s.N*s.M),i=new y(t,s.N,s.M);return this.mul(s,i),void o.assignCopy(i)}const i=s.cols();for(let t=0;t<this.N;t++)for(let e=0;e<i;e++){let i=0;for(let o=0;o<this.M;o++)i+=this.atRowCol(t,o)*s.atRowCol(o,e);o.setRowCol(t,e,i)}}mulTranspose(s,o){if(t(this.M===s.cols()),t(this.N===o.rows()),t(s.rows()===o.cols()),o===this){const t=new Float64Array(this.N*this.M),i=new y(t,this.N,this.M);return this.mulTranspose(s,i),void o.assignCopy(i)}if(o===s){const t=new Float64Array(s.N*s.M),i=new y(t,s.N,s.M);return this.mulTranspose(s,i),void o.assignCopy(i)}const i=s.rows();for(let t=0;t<this.N;t++)for(let e=0;e<i;e++){let i=0;for(let o=0;o<this.M;o++)i+=this.atRowCol(t,o)*s.atRowCol(e,o);o.setRowCol(t,e,i)}}mulLeft(s,o){t(0)}mulLeftTranspose(s,o){t(0)}mulDiag(s,o){if(t(this.M===s.N*s.M),t(this.N===o.rows()),t(this.M===o.cols()),o===this){const t=new Float64Array(this.N*this.M),i=new y(t,this.N,this.M);return this.mulDiag(s,i),void o.assignCopy(i)}const i=this.M;for(let t=0;t<this.N;t++)for(let e=0;e<i;e++)o.setRowCol(t,e,this.atRowCol(t,e)*s.at(e))}transposeInPlace(){if(this.N===this.M){for(let t=0;t<this.N;t++)for(let s=t+1;s<this.M;s++){const o=this.atRowCol(t,s);this.setRowCol(t,s,this.atRowCol(s,t)),this.setRowCol(s,t,o)}return this}const t=new Float64Array(this.N*this.M),s=new y(t,this.N,this.M);return s.assignCopy(this),this.M=l(this.N,this.N=this.M),s.transpose(this),this}transpose(t){if(this!==t){y.checkDims(t,this.M,this.N);for(let s=0;s<this.N;s++)for(let o=0;o<this.M;o++)t.setRowCol(o,s,this.atRowCol(s,o))}else t.transposeInPlace()}add(t,s){}svd(s,o,i,e=!1){if(y.checkDims(s,this.N,this.M),y.checkDims(o,this.M,1),y.checkDims(i,this.M,this.M),e){if(t(this.N===this.M),!this.symmetricEigen(o,i))return!1;for(let t=0;t<this.M;++t)o.at(t)<0&&o.set(t,0);return s.assignCopy(i),!0}let h,r,a,l,n,x,w,u=0,C=0,f=0,R=0,d=0;const c=this.M,M=this.N;s.assignCopy(this);const m=new Float64Array(c),N=new y(m,c,1),b=(t,s)=>s>=0?Math.abs(t):-Math.abs(t),p=(t,s)=>{if((t=Math.abs(t))>(s=Math.abs(s))){const o=s/t;return t*Math.sqrt(o*o+1)}if(s>0){const o=t/s;return s*Math.sqrt(o*o+1)}return 0};for(let t=0;t<c;t++){if(u=t+1,N.set(t,R*f),f=l=R=0,t<M){for(let o=t;o<M;o++)R+=Math.abs(s.atRowCol(o,t));if(R){for(let o=t;o<M;o++)s.setRowCol(o,t,s.atRowCol(o,t)/R),l+=s.atRowCol(o,t)*s.atRowCol(o,t);r=s.atRowCol(t,t),f=-b(Math.sqrt(l),r),a=r*f-l,s.setRowCol(t,t,r-f);for(let o=u;o<c;o++){l=0;for(let i=t;i<M;i++)l+=s.atRowCol(i,t)*s.atRowCol(i,o);r=l/a;for(let i=t;i<M;i++)s.setRowCol(i,o,s.atRowCol(i,o)+r*s.atRowCol(i,t))}for(let o=t;o<M;o++)s.setRowCol(o,t,s.atRowCol(o,t)*R)}}if(o.set(t,R*f),f=l=R=0,t<M&&t!==c-1){for(let o=u;o<c;o++)R+=Math.abs(s.atRowCol(t,o));if(R){for(let o=u;o<c;o++)s.setRowCol(t,o,s.atRowCol(t,o)/R),l+=s.atRowCol(t,o)*s.atRowCol(t,o);r=s.atRowCol(t,u),f=-b(Math.sqrt(l),r),a=r*f-l,s.setRowCol(t,u,r-f);for(let o=u;o<c;o++)N.set(o,s.atRowCol(t,o)/a);for(let o=u;o<M;o++){l=0;for(let i=u;i<c;i++)l+=s.atRowCol(o,i)*s.atRowCol(t,i);for(let t=u;t<c;t++)s.setRowCol(o,t,s.atRowCol(o,t)+l*N.at(t))}for(let o=u;o<c;o++)s.setRowCol(t,o,s.atRowCol(t,o)*R)}}const i=Math.abs(o.at(t))+Math.abs(N.at(t));d=i>d?i:d}for(let t=c-1;t>=0;t--){if(t<c-1){if(f){for(let o=u;o<c;o++)i.setRowCol(o,t,s.atRowCol(t,o)/s.atRowCol(t,u)/f);for(let o=u;o<c;o++){l=0;for(let e=u;e<c;e++)l+=s.atRowCol(t,e)*i.atRowCol(e,o);for(let s=u;s<c;s++)i.setRowCol(s,o,i.atRowCol(s,o)+l*i.atRowCol(s,t))}}for(let s=u;s<c;s++)i.setRowCol(t,s,0),i.setRowCol(s,t,0)}i.setRowCol(t,t,1),f=N.at(t),u=t}for(let t=(M<c?M:c)-1;t>=0;t--){u=t+1,f=o.at(t);for(let o=u;o<c;o++)s.setRowCol(t,o,0);if(f){f=1/f;for(let o=u;o<c;o++){l=0;for(let i=u;i<M;i++)l+=s.atRowCol(i,t)*s.atRowCol(i,o);r=l/s.atRowCol(t,t)*f;for(let i=t;i<M;i++)s.setRowCol(i,o,s.atRowCol(i,o)+r*s.atRowCol(i,t))}for(let o=t;o<M;o++)s.setRowCol(o,t,s.atRowCol(o,t)*f)}else for(let o=t;o<M;o++)s.setRowCol(o,t,0);s.setRowCol(t,t,s.atRowCol(t,t)+1)}for(let t=c-1;t>=0;t--)for(let e=1;;e++){let y=1;for(u=t;u>=0;u--){if(C=u-1,Math.abs(N.at(u))+d===d){y=0;break}if(Math.abs(o.at(C))+d===d)break}if(y){h=0,l=1;for(let i=u;i<=t&&(r=l*N.at(i),N.set(i,N.at(i)*h),Math.abs(r)+d!==d);i++){f=o.at(i),a=p(r,f),o.set(i,a),a=1/a,h=f*a,l=-r*a;for(let t=0;t<M;t++)x=s.atRowCol(t,C),w=s.atRowCol(t,i),s.setRowCol(t,C,x*h+w*l),s.setRowCol(t,i,w*h-x*l)}}if(w=o.at(t),u===t){if(w<0){o.set(t,-w);for(let s=0;s<c;s++)i.setRowCol(s,t,-i.atRowCol(s,t))}break}if(100===e)return!1;n=o.at(u),C=t-1,x=o.at(C),f=N.at(C),a=N.at(t),r=((x-w)*(x+w)+(f-a)*(f+a))/(2*a*x),f=p(r,1),r=((n-w)*(n+w)+a*(x/(r+b(f,r))-a))/n,h=l=1;for(let t=u;t<=C;t++){const e=t+1;f=N.at(e),x=o.at(e),a=l*f,f*=h,w=p(r,a),N.set(t,w),h=r/w,l=a/w,r=n*h+f*l,f=f*h-n*l,a=x*l,x*=h;for(let s=0;s<c;s++)n=i.atRowCol(s,t),w=i.atRowCol(s,e),i.setRowCol(s,t,n*h+w*l),i.setRowCol(s,e,w*h-n*l);w=p(r,a),o.set(t,w),w&&(w=1/w,h=r*w,l=a*w),r=h*f+l*x,n=h*x-l*f;for(let o=0;o<M;o++)x=s.atRowCol(o,t),w=s.atRowCol(o,e),s.setRowCol(o,t,x*h+w*l),s.setRowCol(o,e,w*h-x*l)}N.set(u,0),N.set(t,r),o.set(t,n)}const g=new Float64Array(this.N),v=new Float64Array(this.M),T=new y(g,this.N,1),I=new y(v,this.M,1);let A=1;do{A*=3,A++}while(A<=this.M);do{A/=3,A=Math.trunc(A);for(let t=A;t<this.M;t++){const e=o.at(t);for(let o=0;o<this.N;o++)T.set(o,s.atRowCol(o,t));for(let s=0;s<this.M;s++)I.set(s,i.atRowCol(s,t));let h=t;for(;o.at(h-A)<e;){o.set(h,o.at(h-A));for(let t=0;t<this.N;t++)s.setRowCol(t,h,s.atRowCol(t,h-A));for(let t=0;t<this.M;t++)i.setRowCol(t,h,i.atRowCol(t,h-A));if(h-=A,h<A)break}o.set(h,e);for(let t=0;t<this.N;t++)s.setRowCol(t,h,T.at(t));for(let t=0;t<this.M;t++)i.setRowCol(t,h,I.at(t))}}while(A>1);for(let t=0;t<this.M;t++){let o=0;for(let i=0;i<this.N;i++)s.atRowCol(i,t)<0&&o++;for(let s=0;s<this.M;s++)i.atRowCol(s,t)<0&&o++;if(o>Math.trunc((this.N+this.M)/2)){for(let o=0;o<this.N;o++)s.setRowCol(o,t,-s.atRowCol(o,t));for(let s=0;s<this.M;s++)i.setRowCol(s,t,-i.atRowCol(s,t))}}return!0}isSymmetric(){if(this.N!==this.M)return!1;for(let t=0;t<this.N;t++)for(let s=t+1;s<this.M;s++)if(this.atRowCol(t,s)!==this.atRowCol(s,t))return!1;return!0}isZero(){return t(0),!1}isIdentity(){return t(0),!1}equals(s,o){if(void 0!==o&&t(0),this.N!==s.N||this.M!==s.M)return!1;for(let t=0;t<this.N*this.M;t++)if(this.data[t]!==s.data[t])return!1;return!0}maxElement(){return t(0),0}minElement(){return t(0),0}determinant(){if(t(this.N===this.M),1===this.N)return this.data[0];if(2===this.N)return this.data[0]*this.data[3]-this.data[1]*this.data[2];if(3===this.N){const t=this;return t.atRowCol(0,0)*(t.atRowCol(1,1)*t.atRowCol(2,2)-t.atRowCol(1,2)*t.atRowCol(2,1))-t.atRowCol(0,1)*(t.atRowCol(1,0)*t.atRowCol(2,2)-t.atRowCol(2,0)*t.atRowCol(1,2))+t.atRowCol(0,2)*(t.atRowCol(1,0)*t.atRowCol(2,1)-t.atRowCol(1,1)*t.atRowCol(2,0))}const s=new Float64Array(this.N*this.N),o=new y(s,this.N,this.N),i=new Float64Array(this.N);if(!this.luDecomposition(o,i))return 0;let e=1;for(let t=0;t<this.N;t++)e*=o.atRowCol(t,t),i[t]!==t&&(e=-e);return e}submatrix(s,o,i){t(0)}inverse(s){t(0)}pseudoInverse(t,s=!1,o=2220446049250313e-31){if(t.setZero(),1===this.N&&1===this.M)return 0!==this.atRowCol(0,0)?t.setRowCol(0,0,1/this.atRowCol(0,0)):t.setRowCol(0,0,0),!0;if(2===this.N&&2===this.M){const s=this.atRowCol(0,0)*this.atRowCol(1,1)-this.atRowCol(0,1)*this.atRowCol(1,0),o=1e-5*(Math.abs(this.atRowCol(0,0)*this.atRowCol(1,1))+Math.abs(this.atRowCol(0,1)*this.atRowCol(1,0)));if(Math.abs(s)>o)return t.setRowCol(0,0,this.atRowCol(1,1)/s),t.setRowCol(0,1,-this.atRowCol(0,1)/s),t.setRowCol(1,0,-this.atRowCol(1,0)/s),t.setRowCol(1,1,this.atRowCol(0,0)/s),!0}const i=new Float64Array(this.N*this.M),e=new y(i,this.N,this.M),h=new Float64Array(this.M),r=new y(h,this.M,1),a=new Float64Array(this.M*this.M),l=new y(a,this.M,this.M);if(!this.svd(e,r,l,s))return!1;const n=Math.max(this.N,this.M),x=o*Math.abs(r.at(0))*n;for(let y=0;y<this.M;y++)r.at(y)>x?r.set(y,1/r.at(y)):r.set(y,0);return l.mulDiag(r,t),t.mulTranspose(e,t),!0}luDecomposition(s,o){return t(0),!1}symmetricEigen(s,o){t(this.rows()===this.cols()),t(this.rows()===s.rows()),t(o.rows()===o.cols()&&o.rows()===this.rows()),t(this.isSymmetric());const i=new Float64Array(this.N*this.M),e=new y(i,this.N,this.M);e.assignCopy(this);const h=100/Number.EPSILON,r=this.rows(),a=new Float64Array(r),l=new Float64Array(r),n=new y(a,r,1),x=new y(l,r,1);for(let t=0;t<r;t++)n.set(t,e.atRowCol(t,t)),s.set(t,e.atRowCol(t,t)),x.set(t,0);o.setIdentity();const w=()=>{const t=n;o.transposeInPlace();let i=1;do{i*=3,i++}while(i<=r);do{i/=3,i=Math.trunc(i);for(let e=i;e<r;e++){const h=s.at(e),r=Math.abs(h);for(let s=0;s<this.M;s++)t.set(s,o.atRowCol(s,e));let a=e;for(;Math.abs(s.at(a-i))<r;){s.set(a,s.at(a-i));for(let t=0;t<this.M;t++)o.setRowCol(t,a,o.atRowCol(t,a-i));if(a-=i,a<i)break}if(a!==e){s.set(a,h);for(let s=0;s<this.M;s++)o.setRowCol(s,a,t.at(s))}}}while(i>1)};for(let t=1;;t++){let i=0;for(let t=1;t<r;t++)for(let s=0;s<t;s++)i+=Math.abs(e.atRowCol(t,s));if(0===i)return w(),!0;const a=t<4?.2*i/(r*r):0;for(let l=0;l<r;l++)for(let i=l+1;i<r;i++){let y=h*Math.abs(e.atRowCol(i,l));if(t>4&&y<=Math.abs(s.at(l))&&y<=Math.abs(s.at(i)))e.setRowCol(i,l,0);else if(Math.abs(e.atRowCol(i,l))>a){let t,h=s.at(i)-s.at(l);if(y<Math.abs(h))t=e.atRowCol(i,l)/h;else{const s=.5*h/e.atRowCol(i,l);t=1/(Math.abs(s)+Math.sqrt(1+s*s)),s<0&&(t=-t)}const a=1/Math.sqrt(1+t*t),n=t*a,w=n/(1+a);h=t*e.atRowCol(i,l),x.set(l,x.at(l)-h),x.set(i,x.at(i)+h),s.set(l,s.at(l)-h),s.set(i,s.at(i)+h),e.setRowCol(i,l,0);let u=0;for(;u<l;u++)y=e.atRowCol(l,u),h=e.atRowCol(i,u),e.setRowCol(l,u,y-n*(h+y*w)),e.setRowCol(i,u,h+n*(y-h*w));for(u++;u<i;u++)y=e.atRowCol(u,l),h=e.atRowCol(i,u),e.setRowCol(u,l,y-n*(h+y*w)),e.setRowCol(i,u,h+n*(y-h*w));for(u++;u<r;u++)y=e.atRowCol(u,l),h=e.atRowCol(u,i),e.setRowCol(u,l,y-n*(h+y*w)),e.setRowCol(u,i,h+n*(y-h*w));for(u=0;u<r;u++)y=o.atRowCol(l,u),h=o.atRowCol(i,u),o.setRowCol(l,u,y-n*(h+y*w)),o.setRowCol(i,u,h+n*(y-h*w))}}for(let t=0;t<r;t++)n.set(t,n.at(t)+x.at(t)),s.set(t,n.at(t)),x.set(t,0)}}static checkDims(s,o,i){t(s.rows()===o&&s.cols()===i)}}class n extends y{constructor(t){if(t.copy){const s=new Float64Array(t.copy.N*t.copy.M);return super(s,t.copy.N,t.copy.M),this.buffer=s,void this.assignCopy(t.copy)}const s=new Float64Array(t.NN*t.MM);super(s,t.NN,t.MM),this.buffer=s,t.initializerList&&a(this.buffer,t.initializerList,0,0,t.initializerList.length)}assignCopy(t){return this===t||super.assignCopy(t),this}}class x{constructor(t){this.m_TransformationType=1,void 0===t?this.setIdentity():t instanceof x?this.set(t):this.setScale(t)}set(t){return this.xx=t.xx,this.xy=t.xy,this.xd=t.xd,this.yx=t.yx,this.yy=t.yy,this.yd=t.yd,this}clone(){return(new x).set(this)}setZero(){this.xx=0,this.yy=0,this.xy=0,this.yx=0,this.xd=0,this.yd=0}isEqual(t){return this===t||this.xx===t.xx&&this.xy===t.xy&&this.xd===t.xd&&this.yx===t.yx&&this.yy===t.yy&&this.yd===t.yd}transformInPlace(t){const s=this.xx*t.x+this.xy*t.y+this.xd,o=this.yx*t.x+this.yy*t.y+this.yd;t.x=s,t.y=o}transform(t){const s=t.clone();return this.transformInPlace(s),s}queryTransform(t,s){const o=this.xx*t.x+this.xy*t.y+this.xd,i=this.yx*t.x+this.yy*t.y+this.yd;s.setCoords(o,i)}transformEnvInPlace(t){if(t.isEmpty())return;const s=i(e,4);t.queryCorners(s),this.transformPoints2D(s,4,s),t.setFromPoints(s,4)}queryTransformEnv(s,o){t(0)}transformPoints2D(t,s,o){for(let i=0;i<s;++i)this.queryTransform(t[i],o[i])}transformInterleavedPoints(t,s,o){s*=2;const i=e.getNAN();for(let e=0;e<s;e+=2)i.x=t[e],i.y=t[e+1],this.transformInPlace(i),o[e]=i.x,o[e+1]=i.y}multiply(t){return x.st_multiply(this,t,this),this}mulLeft(s){return t(0),this}static st_multiply(t,s,o){const i=t.xx*s.xx+t.yx*s.xy,e=t.xy*s.xx+t.yy*s.xy,h=t.xd*s.xx+t.yd*s.xy+s.xd,r=t.xx*s.yx+t.yx*s.yy,a=t.xy*s.yx+t.yy*s.yy,l=t.xd*s.yx+t.yd*s.yy+s.yd;o.xx=i,o.xy=e,o.xd=h,o.yx=r,o.yy=a,o.yd=l}getCoefficients(s){t(s.length>=6),s[0]=this.xx,s[1]=this.xy,s[2]=this.xd,s[3]=this.yx,s[4]=this.yy,s[5]=this.yd}setCoefficients(s){t(s.length>=6),this.xx=s[0],this.xy=s[1],this.xd=s[2],this.yx=s[3],this.yy=s[4],this.yd=s[5]}copyTo(s){t(0)}initializeFromRect(t,s){t.isEmpty()||s.isEmpty()||!t.width()||!t.height()?this.setZero():(this.xy=this.yx=0,this.xx=s.width()/t.width(),this.yy=s.height()/t.height(),this.xd=s.xmin-t.xmin*this.xx,this.yd=s.ymin-t.ymin*this.yy)}initializeFromRectIsotropic(t,s){if(t.isEmpty()||!t.width()||!t.height()||s.isEmpty())this.setZero();else{this.yx=0,this.xy=0,this.xx=s.width()/t.width(),this.yy=s.height()/t.height(),this.xx>this.yy?this.xx=this.yy:this.yy=this.xx;const o=s.getCenter(),i=t.getCenter();this.xd=o.x-i.x*this.xx,this.yd=o.y-i.y*this.yy}}initializeFromTwoPointsArray(t,o){if(t[0].equals(o[0])&&t[1].equals(o[1]))return void this.setIdentity();if(t[0].equals(t[1])){if(o[0].equals(o[1]))return void this.setShift(o[0].sub(t[0]));s("")}if(!t[0].equals(t[1])&&o[0].equals(o[1]))return this.setZero(),void this.shift(o[0]);this.setShiftCoords(-t[0].x,-t[0].y);const i=e.distance(t[0],t[1]),h=e.distance(o[0],o[1]),r=h/i;this.scale(r,r);const a=t[1].sub(t[0]);a.divThis(i);const l=o[1].sub(o[0]);l.divThis(h);const y=a.crossProduct(l),n=a.dotProduct(l);this.rotate(n,y),this.shiftCoords(o[0].x,o[0].y)}initializeFromTwoPoints(t,s,o,i){const e=[t,s],h=[o,i];this.initializeFromTwoPointsArray(e,h)}transformSizeInPlace(s){t(0)}transformSize(s,o){t(0)}transformTol(s){return t(0),0}transformWithoutTranslateArray(t,s,o){for(let i=0;i<s;++i)this.transformWithoutTranslate(t[i],o[i])}transformWithoutTranslateInPlace(t){const s=this.xx*t.x+this.xy*t.y,o=this.yx*t.x+this.yy*t.y;t.setCoords(s,o)}transformWithoutTranslate(t,s){const o=this.xx*t.x+this.xy*t.y,i=this.yx*t.x+this.yy*t.y;s.setCoords(o,i)}setIdentity(){this.xx=1,this.xy=0,this.xd=0,this.yx=0,this.yy=1,this.yd=0}isIdentity(){return!(1!==this.xx||1!==this.yy||this.xy||this.xd||this.yx||this.yd)}isIdentityTol(t){const s=t*t;return!(h(this.xd)+h(this.yd)>s)&&(!(h(this.xy+this.xd)+h(this.yy+this.yd-1)>s)&&!(h(this.xx+this.xd-1)+h(this.yx+this.yd)>s))}isReflective(){return this.xx*this.yy-this.yx*this.xy<0}isUniform(t){const s=this.xx*this.xx+this.yx*this.yx,o=this.xy*this.xy+this.yy*this.yy,i=(s+o)*t;return Math.abs(s-o)<=i&&Math.abs(this.xx*this.xy+this.yx*this.yy)<=i}isUniformNoRotation(){return 0!==this.xx&&Math.abs(this.xx)===Math.abs(this.yy)&&0===this.xy&&0===this.yx}isTranslate(){return 1===this.xx&&1===this.yy&&!this.xy&&!this.yx}isTranslateTol(t){const s=new e;return s.setCoords(0,1),this.transformWithoutTranslateInPlace(s),s.y-=1,!(s.sqrLength()>t*t)&&(s.setCoords(1,0),this.transformWithoutTranslateInPlace(s),s.x-=1,s.sqrLength()<=t*t)}isOrthonormal(t){const s=new x;return s.xx=this.xx*this.xx+this.xy*this.xy,s.xy=this.xx*this.yx+this.xy*this.yy,s.yx=this.yx*this.xx+this.yy*this.xy,s.yy=this.yx*this.yx+this.yy*this.yy,s.xd=0,s.yd=0,s.isIdentityTol(t)}isDegenerate(t){return Math.abs(this.xx*this.yy-this.yx*this.xy)<=2*t*(Math.abs(this.xx*this.yy)+Math.abs(this.yx*this.xy))}isZero(){return 0===this.xx&&0===this.yy&&0===this.xy&&0===this.yx&&0===this.xd&&0===this.yd}isScaleAndTranslateTol(t){return this.xy*this.xy+this.yx*this.yx<=(this.xx*this.xx+this.yy*this.yy)*t}setTranslate(t,s){return this.xx=1,this.xy=0,this.xd=t,this.yx=0,this.yy=1,this.yd=s,this}setShiftCoords(t,s){return this.xx=1,this.xy=0,this.xd=t,this.yx=0,this.yy=1,this.yd=s,this}setShift(t){return this.xx=1,this.xy=0,this.xd=t.x,this.yx=0,this.yy=1,this.yd=t.y,this}setScaleCoords(t,s){return this.xx=t,this.xy=0,this.xd=0,this.yx=0,this.yy=s,this.yd=0,this}setScale(t){return this.setScaleCoords(t,t),this}setFlipX(t,s){return this.xx=-1,this.xy=0,this.xd=t+s,this.yx=0,this.yy=1,this.yd=0,this}setFlipY(t,s){return this.xx=1,this.xy=0,this.xd=0,this.yx=0,this.yy=-1,this.yd=t+s,this}setShear(t,s){return this.xx=1,this.xy=t,this.xd=0,this.yx=s,this.yy=1,this.yd=0,this}scale(t,s){return this.xx*=t,this.xy*=t,this.xd*=t,this.yx*=s,this.yy*=s,this.yd*=s,this}setRotateAngle(t){return this.setRotate(Math.cos(t),Math.sin(t))}setRotate(t,s){return this.xx=t,this.xy=-s,this.xd=0,this.yx=s,this.yy=t,this.yd=0,this}setRotateAngleAbout(t,s){return this.setRotateAbout(Math.cos(t),Math.sin(t),s)}setRotateAbout(t,s,o){return this.setTranslate(-o.x,-o.y),this.rotate(t,s),this.translate(o.x,o.y)}setSwapCoordinates(){return this.xx=0,this.xy=1,this.xd=0,this.yx=1,this.yy=0,this.yd=0,this}setRotateCw90(){return this.xx=0,this.xy=1,this.xd=0,this.yx=-1,this.yy=0,this.yd=0,this}setRotateCcw90(){return this.xx=0,this.xy=-1,this.xd=0,this.yx=1,this.yy=0,this.yd=0,this}shiftCoords(t,s){return this.xd+=t,this.yd+=s,this}shift(t){return this.xd+=t.x,this.yd+=t.y,this}translate(t,s){return this.xd+=t,this.yd+=s,this}flipX(t,s){return this.xx=-this.xx,this.xy=-this.xy,this.xd=t+s-this.xd,this}flipY(t,s){return this.yx=-this.yx,this.yy=-this.yy,this.yd=t+s-this.yd,this}shear(t,s){const o=new x;return o.setShear(t,s),this.multiply(o)}rotateAngle(t){const s=new x;return s.setRotateAngle(t),this.multiply(s)}rotate(t,s){const o=new x;return o.setRotate(t,s),this.multiply(o)}rotateAbout(t,s,o){return this.translate(-o.x,-o.y),this.rotate(t,s),this.translate(o.x,o.y)}rotateAngleAbout(t,s){return this.rotateAbout(Math.cos(t),Math.sin(t),s)}setInvert(t){return this.set(t),this.invertThis()}invertThis(){let t=this.xx*this.yy-this.xy*this.yx;if(0===t)return this.setZero(),this;t=1/t;const s=(this.xy*this.yd-this.xd*this.yy)*t,o=(this.xd*this.yx-this.xx*this.yd)*t,i=this.yy*t,e=-this.xy*t,h=-this.yx*t,r=this.xx*t;return this.xd=s,this.yd=o,this.xx=i,this.yy=r,this.xy=e,this.yx=h,this}invertPrecise(t){return this.set(t),this.invertPreciseThis()}invertPreciseThis(){const t=r.constructDouble(this.xy),s=r.constructDouble(this.xx),o=s.mulDouble(this.yy).sub(t.mulDouble(this.yx));if(o.isZero())return this.setZero(),this;const i=o.clone();i.invertThis();const e=r.constructDouble(this.xd),h=t.mulDouble(this.yd).sub(e.mulDouble(this.yy)).mul(i).toDouble(),a=e.mulDouble(this.yx).sub(s.mulDouble(this.yd)).mul(i).toDouble(),l=i.mulDouble(this.yy).toDouble(),y=i.mulDouble(-this.xy).toDouble(),n=i.mulDouble(-this.yx).toDouble(),x=i.mulDouble(this.xx).toDouble();return this.xd=h,this.yd=a,this.xx=l,this.yy=x,this.xy=y,this.yx=n,this}extractScaleTransform(t,s){const o=Math.sqrt(this.xx*this.xx+this.xy*this.xy),i=Math.sqrt(this.yx*this.yx+this.yy*this.yy);s.setScaleCoords(1/o,1/i),s.multiply(this),t.setScaleCoords(o,i)}setFromTwoTriangles(t,s){let o=!0;for(let e=0;e<3;++e)o=o&&t[e].equals(s[e]);if(o)return this.setIdentity(),!0;const i=new e;i.setSub(t[0],t[1]);const h=new e;h.setSub(t[0],t[2]);const r=new e;r.setSub(s[0],s[1]);const a=new e;a.setSub(s[0],s[2]);const l=4*Number.EPSILON*(Math.abs(i.x*h.y)+Math.abs(h.x*i.y));let y=i.x*h.y-i.y*h.x;return Math.abs(y)>l?(y=1/y,this.xx=(r.x*h.y-i.y*a.x)*y,this.xy=(i.x*a.x-r.x*h.x)*y,this.yx=(r.y*h.y-i.y*a.y)*y,this.yy=(i.x*a.y-r.y*h.x)*y,this.xd=s[0].x-(this.xx*t[0].x+this.xy*t[0].y),this.yd=s[0].y-(this.yx*t[0].x+this.yy*t[0].y),!0):(this.setZero(),!1)}initializeFromControlPoints(t,s,o,i,e=null){return 0===s?(this.setIdentity(),void(e&&e.setIdentity())):1===s?(this.setShift(i[0].sub(o[0])),void(e&&e.setShift(o[0].sub(i[0])))):(s<3&&(t=1),void(4===t&&s>2?C(this,s,o,i,e):f(t,this,s,o,i,e)))}calculateErrors(s,o,i,h){t(s>0&&null!==o&&null!==i);let r=0;for(let t=0;t<s;++t){const s=this.transform(o[t]),a=e.sqrDistance(i[t],s);r+=a,h&&(h[t]=Math.sqrt(a))}return Math.sqrt(r/s)}}const w=[43,11,41,9,61];function u(s,o){t(!(2!==o.rows()&&3!==o.rows()||2!==o.cols()&&3!==o.rows())),s.xx=o.atRowCol(0,0),s.xy=o.atRowCol(0,1),s.yx=o.atRowCol(1,0),s.yy=o.atRowCol(1,1),3===o.cols()?(s.xd=o.atRowCol(0,2),s.yd=o.atRowCol(1,2)):(s.xd=0,s.yd=0)}function C(t,s,i,h,r){const a=e.average(i,s),l=e.average(h,s),y=new n({NN:2,MM:2});y.setZero();const x=new n({NN:2,MM:2});x.setZero();for(let o=0;o<s;++o)y.setRowCol(0,0,y.atRowCol(0,0)+(i[o].x-a.x)*(i[o].x-a.x)),y.setRowCol(0,1,y.atRowCol(0,1)+(i[o].x-a.x)*(i[o].y-a.y)),y.setRowCol(1,1,y.atRowCol(1,1)+(i[o].y-a.y)*(i[o].y-a.y)),x.setRowCol(0,0,x.atRowCol(0,0)+(h[o].x-l.x)*(i[o].x-a.x)),x.setRowCol(0,1,x.atRowCol(0,1)+(h[o].x-l.x)*(i[o].y-a.y)),x.setRowCol(1,0,x.atRowCol(1,0)+(h[o].y-l.y)*(i[o].x-a.x)),x.setRowCol(1,1,x.atRowCol(1,1)+(h[o].y-l.y)*(i[o].y-a.y));y.setRowCol(1,0,y.atRowCol(0,1));const w=new n({NN:2,MM:2});y.pseudoInverse(w,!0)||o("Failed to compute pseudo inverse"),x.mul(w,x),u(t,x);const C=a.clone();t.transformInPlace(C),t.xd=l.x-C.x,t.yd=l.y-C.y,r&&(x.pseudoInverse(w,!1)||o("Failed to compute pseudo inverse"),u(r,w),r.transformInPlace(l),r.xd=a.x-l.x,r.yd=a.y-l.y)}function f(s,i,h,r,a,l){t(1===s||0===s||2===s||3===s),i.setIdentity();const y=e.average(r,h),C=e.average(a,h);if(t(s<w.length&&s>0),8&w[s]){const t=new n({NN:2,MM:2});t.setZero();for(let s=0;s<h;++s)t.setRowCol(0,0,t.atRowCol(0,0)+(a[s].x-C.x)*(r[s].x-y.x)),t.setRowCol(1,0,t.atRowCol(1,0)+(a[s].x-C.x)*(r[s].y-y.y)),t.setRowCol(0,1,t.atRowCol(0,1)+(a[s].y-C.y)*(r[s].x-y.x)),t.setRowCol(1,1,t.atRowCol(1,1)+(a[s].y-C.y)*(r[s].y-y.y));const e=new n({NN:2,MM:2}),l=new n({NN:2,MM:1}),f=new n({NN:2,MM:2});t.svd(e,l,f)||o("Failed to compute svd");const R=new n({NN:2,MM:2});e.transpose(R);const d=new n({NN:2,MM:2});if(f.mul(R,d),!(32&w[s])){d.determinant()<0&&(R.setRowCol(1,0,-R.atRowCol(1,0)),R.setRowCol(1,1,-R.atRowCol(1,1)),f.mul(R,d))}const c=new x;u(c,d),i.set(c)}if(2&w[s]){let t=0,s=0;for(let o=0;o<h;++o){const e=r[o].sub(y);t+=e.sqrLength(),i.transformInPlace(e),s+=e.dotProduct(a[o].sub(C))}if(0===t)0===s?i.setIdentity():i.setZero();else{const o=s/t;i.scale(o,o)}}else t(!(4&w[s]));const f=y.clone();i.transformInPlace(f),i.xd=C.x-f.x,i.yd=C.y-f.y,l&&(l.set(i),l.invertThis(),l.isZero()&&(l.xd=y.x,l.yd=y.y))}export{x as T};
|
|
5
|
+
import{g as t,a as s,b as o}from"./Geometry.js";import{m as i,P as e,a as h,M as r,b as a,c as l}from"./Point2D.js";class y{constructor(t,s,o){if(t instanceof y)return this.data=t.data,this.N=t.N,this.M=t.M,t.data=null,t.N=0,void(t.M=0);this.data=t,this.N=s,this.M=o}assignCopy(s){return this===s||(t(this.N*this.M===s.N*s.M),this.data.set(s.data),this.N=s.N,this.M=s.M),this}setZero(){return this.data?.fill(0),this}setIdentity(){const t=0,s=1;for(let o=0;o<this.N;o++)for(let i=0;i<this.M;i++)this.setRowCol(o,i,o===i?s:t);return this}rows(){return this.N}cols(){return this.M}row(s){return t(0),{}}set(t,s){return this.data[t]=s,this}setRowCol(t,s,o){return this.data[t*this.M+s]=o,this}at(t){return this.data[t]}atRowCol(t,s){return this.data[t*this.M+s]}mulScalar(s,o){t(0)}mul(s,o){if(t(this.M===s.rows()),t(this.N===o.rows()),t(s.cols()===o.cols()),o===this){const t=new Float64Array(this.N*this.M),i=new y(t,this.N,this.M);return this.mul(s,i),void o.assignCopy(i)}if(o===s){const t=new Float64Array(s.N*s.M),i=new y(t,s.N,s.M);return this.mul(s,i),void o.assignCopy(i)}const i=s.cols();for(let t=0;t<this.N;t++)for(let e=0;e<i;e++){let i=0;for(let o=0;o<this.M;o++)i+=this.atRowCol(t,o)*s.atRowCol(o,e);o.setRowCol(t,e,i)}}mulTranspose(s,o){if(t(this.M===s.cols()),t(this.N===o.rows()),t(s.rows()===o.cols()),o===this){const t=new Float64Array(this.N*this.M),i=new y(t,this.N,this.M);return this.mulTranspose(s,i),void o.assignCopy(i)}if(o===s){const t=new Float64Array(s.N*s.M),i=new y(t,s.N,s.M);return this.mulTranspose(s,i),void o.assignCopy(i)}const i=s.rows();for(let t=0;t<this.N;t++)for(let e=0;e<i;e++){let i=0;for(let o=0;o<this.M;o++)i+=this.atRowCol(t,o)*s.atRowCol(e,o);o.setRowCol(t,e,i)}}mulLeft(s,o){t(0)}mulLeftTranspose(s,o){t(0)}mulDiag(s,o){if(t(this.M===s.N*s.M),t(this.N===o.rows()),t(this.M===o.cols()),o===this){const t=new Float64Array(this.N*this.M),i=new y(t,this.N,this.M);return this.mulDiag(s,i),void o.assignCopy(i)}const i=this.M;for(let t=0;t<this.N;t++)for(let e=0;e<i;e++)o.setRowCol(t,e,this.atRowCol(t,e)*s.at(e))}transposeInPlace(){if(this.N===this.M){for(let t=0;t<this.N;t++)for(let s=t+1;s<this.M;s++){const o=this.atRowCol(t,s);this.setRowCol(t,s,this.atRowCol(s,t)),this.setRowCol(s,t,o)}return this}const t=new Float64Array(this.N*this.M),s=new y(t,this.N,this.M);return s.assignCopy(this),this.M=l(this.N,this.N=this.M),s.transpose(this),this}transpose(t){if(this!==t){y.checkDims(t,this.M,this.N);for(let s=0;s<this.N;s++)for(let o=0;o<this.M;o++)t.setRowCol(o,s,this.atRowCol(s,o))}else t.transposeInPlace()}add(t,s){}svd(s,o,i,e=!1){if(y.checkDims(s,this.N,this.M),y.checkDims(o,this.M,1),y.checkDims(i,this.M,this.M),e){if(t(this.N===this.M),!this.symmetricEigen(o,i))return!1;for(let t=0;t<this.M;++t)o.at(t)<0&&o.set(t,0);return s.assignCopy(i),!0}let h,r,a,l,n,x,w,u=0,C=0,f=0,R=0,d=0;const c=this.M,M=this.N;s.assignCopy(this);const m=new Float64Array(c),N=new y(m,c,1),b=(t,s)=>s>=0?Math.abs(t):-Math.abs(t),p=(t,s)=>{if((t=Math.abs(t))>(s=Math.abs(s))){const o=s/t;return t*Math.sqrt(o*o+1)}if(s>0){const o=t/s;return s*Math.sqrt(o*o+1)}return 0};for(let t=0;t<c;t++){if(u=t+1,N.set(t,R*f),f=l=R=0,t<M){for(let o=t;o<M;o++)R+=Math.abs(s.atRowCol(o,t));if(R){for(let o=t;o<M;o++)s.setRowCol(o,t,s.atRowCol(o,t)/R),l+=s.atRowCol(o,t)*s.atRowCol(o,t);r=s.atRowCol(t,t),f=-b(Math.sqrt(l),r),a=r*f-l,s.setRowCol(t,t,r-f);for(let o=u;o<c;o++){l=0;for(let i=t;i<M;i++)l+=s.atRowCol(i,t)*s.atRowCol(i,o);r=l/a;for(let i=t;i<M;i++)s.setRowCol(i,o,s.atRowCol(i,o)+r*s.atRowCol(i,t))}for(let o=t;o<M;o++)s.setRowCol(o,t,s.atRowCol(o,t)*R)}}if(o.set(t,R*f),f=l=R=0,t<M&&t!==c-1){for(let o=u;o<c;o++)R+=Math.abs(s.atRowCol(t,o));if(R){for(let o=u;o<c;o++)s.setRowCol(t,o,s.atRowCol(t,o)/R),l+=s.atRowCol(t,o)*s.atRowCol(t,o);r=s.atRowCol(t,u),f=-b(Math.sqrt(l),r),a=r*f-l,s.setRowCol(t,u,r-f);for(let o=u;o<c;o++)N.set(o,s.atRowCol(t,o)/a);for(let o=u;o<M;o++){l=0;for(let i=u;i<c;i++)l+=s.atRowCol(o,i)*s.atRowCol(t,i);for(let t=u;t<c;t++)s.setRowCol(o,t,s.atRowCol(o,t)+l*N.at(t))}for(let o=u;o<c;o++)s.setRowCol(t,o,s.atRowCol(t,o)*R)}}const i=Math.abs(o.at(t))+Math.abs(N.at(t));d=i>d?i:d}for(let t=c-1;t>=0;t--){if(t<c-1){if(f){for(let o=u;o<c;o++)i.setRowCol(o,t,s.atRowCol(t,o)/s.atRowCol(t,u)/f);for(let o=u;o<c;o++){l=0;for(let e=u;e<c;e++)l+=s.atRowCol(t,e)*i.atRowCol(e,o);for(let s=u;s<c;s++)i.setRowCol(s,o,i.atRowCol(s,o)+l*i.atRowCol(s,t))}}for(let s=u;s<c;s++)i.setRowCol(t,s,0),i.setRowCol(s,t,0)}i.setRowCol(t,t,1),f=N.at(t),u=t}for(let t=(M<c?M:c)-1;t>=0;t--){u=t+1,f=o.at(t);for(let o=u;o<c;o++)s.setRowCol(t,o,0);if(f){f=1/f;for(let o=u;o<c;o++){l=0;for(let i=u;i<M;i++)l+=s.atRowCol(i,t)*s.atRowCol(i,o);r=l/s.atRowCol(t,t)*f;for(let i=t;i<M;i++)s.setRowCol(i,o,s.atRowCol(i,o)+r*s.atRowCol(i,t))}for(let o=t;o<M;o++)s.setRowCol(o,t,s.atRowCol(o,t)*f)}else for(let o=t;o<M;o++)s.setRowCol(o,t,0);s.setRowCol(t,t,s.atRowCol(t,t)+1)}for(let t=c-1;t>=0;t--)for(let e=1;;e++){let y=1;for(u=t;u>=0;u--){if(C=u-1,Math.abs(N.at(u))+d===d){y=0;break}if(Math.abs(o.at(C))+d===d)break}if(y){h=0,l=1;for(let i=u;i<=t&&(r=l*N.at(i),N.set(i,N.at(i)*h),Math.abs(r)+d!==d);i++){f=o.at(i),a=p(r,f),o.set(i,a),a=1/a,h=f*a,l=-r*a;for(let t=0;t<M;t++)x=s.atRowCol(t,C),w=s.atRowCol(t,i),s.setRowCol(t,C,x*h+w*l),s.setRowCol(t,i,w*h-x*l)}}if(w=o.at(t),u===t){if(w<0){o.set(t,-w);for(let s=0;s<c;s++)i.setRowCol(s,t,-i.atRowCol(s,t))}break}if(100===e)return!1;n=o.at(u),C=t-1,x=o.at(C),f=N.at(C),a=N.at(t),r=((x-w)*(x+w)+(f-a)*(f+a))/(2*a*x),f=p(r,1),r=((n-w)*(n+w)+a*(x/(r+b(f,r))-a))/n,h=l=1;for(let t=u;t<=C;t++){const e=t+1;f=N.at(e),x=o.at(e),a=l*f,f*=h,w=p(r,a),N.set(t,w),h=r/w,l=a/w,r=n*h+f*l,f=f*h-n*l,a=x*l,x*=h;for(let s=0;s<c;s++)n=i.atRowCol(s,t),w=i.atRowCol(s,e),i.setRowCol(s,t,n*h+w*l),i.setRowCol(s,e,w*h-n*l);w=p(r,a),o.set(t,w),w&&(w=1/w,h=r*w,l=a*w),r=h*f+l*x,n=h*x-l*f;for(let o=0;o<M;o++)x=s.atRowCol(o,t),w=s.atRowCol(o,e),s.setRowCol(o,t,x*h+w*l),s.setRowCol(o,e,w*h-x*l)}N.set(u,0),N.set(t,r),o.set(t,n)}const g=new Float64Array(this.N),v=new Float64Array(this.M),T=new y(g,this.N,1),I=new y(v,this.M,1);let A=1;do{A*=3,A++}while(A<=this.M);do{A/=3,A=Math.trunc(A);for(let t=A;t<this.M;t++){const e=o.at(t);for(let o=0;o<this.N;o++)T.set(o,s.atRowCol(o,t));for(let s=0;s<this.M;s++)I.set(s,i.atRowCol(s,t));let h=t;for(;o.at(h-A)<e;){o.set(h,o.at(h-A));for(let t=0;t<this.N;t++)s.setRowCol(t,h,s.atRowCol(t,h-A));for(let t=0;t<this.M;t++)i.setRowCol(t,h,i.atRowCol(t,h-A));if(h-=A,h<A)break}o.set(h,e);for(let t=0;t<this.N;t++)s.setRowCol(t,h,T.at(t));for(let t=0;t<this.M;t++)i.setRowCol(t,h,I.at(t))}}while(A>1);for(let t=0;t<this.M;t++){let o=0;for(let i=0;i<this.N;i++)s.atRowCol(i,t)<0&&o++;for(let s=0;s<this.M;s++)i.atRowCol(s,t)<0&&o++;if(o>Math.trunc((this.N+this.M)/2)){for(let o=0;o<this.N;o++)s.setRowCol(o,t,-s.atRowCol(o,t));for(let s=0;s<this.M;s++)i.setRowCol(s,t,-i.atRowCol(s,t))}}return!0}isSymmetric(){if(this.N!==this.M)return!1;for(let t=0;t<this.N;t++)for(let s=t+1;s<this.M;s++)if(this.atRowCol(t,s)!==this.atRowCol(s,t))return!1;return!0}isZero(){return t(0),!1}isIdentity(){return t(0),!1}equals(s,o){if(void 0!==o&&t(0),this.N!==s.N||this.M!==s.M)return!1;for(let t=0;t<this.N*this.M;t++)if(this.data[t]!==s.data[t])return!1;return!0}maxElement(){return t(0),0}minElement(){return t(0),0}determinant(){if(t(this.N===this.M),1===this.N)return this.data[0];if(2===this.N)return this.data[0]*this.data[3]-this.data[1]*this.data[2];if(3===this.N){const t=this;return t.atRowCol(0,0)*(t.atRowCol(1,1)*t.atRowCol(2,2)-t.atRowCol(1,2)*t.atRowCol(2,1))-t.atRowCol(0,1)*(t.atRowCol(1,0)*t.atRowCol(2,2)-t.atRowCol(2,0)*t.atRowCol(1,2))+t.atRowCol(0,2)*(t.atRowCol(1,0)*t.atRowCol(2,1)-t.atRowCol(1,1)*t.atRowCol(2,0))}const s=new Float64Array(this.N*this.N),o=new y(s,this.N,this.N),i=new Float64Array(this.N);if(!this.luDecomposition(o,i))return 0;let e=1;for(let t=0;t<this.N;t++)e*=o.atRowCol(t,t),i[t]!==t&&(e=-e);return e}submatrix(s,o,i){t(0)}inverse(s){t(0)}pseudoInverse(t,s=!1,o=2220446049250313e-31){if(t.setZero(),1===this.N&&1===this.M)return 0!==this.atRowCol(0,0)?t.setRowCol(0,0,1/this.atRowCol(0,0)):t.setRowCol(0,0,0),!0;if(2===this.N&&2===this.M){const s=this.atRowCol(0,0)*this.atRowCol(1,1)-this.atRowCol(0,1)*this.atRowCol(1,0),o=1e-5*(Math.abs(this.atRowCol(0,0)*this.atRowCol(1,1))+Math.abs(this.atRowCol(0,1)*this.atRowCol(1,0)));if(Math.abs(s)>o)return t.setRowCol(0,0,this.atRowCol(1,1)/s),t.setRowCol(0,1,-this.atRowCol(0,1)/s),t.setRowCol(1,0,-this.atRowCol(1,0)/s),t.setRowCol(1,1,this.atRowCol(0,0)/s),!0}const i=new Float64Array(this.N*this.M),e=new y(i,this.N,this.M),h=new Float64Array(this.M),r=new y(h,this.M,1),a=new Float64Array(this.M*this.M),l=new y(a,this.M,this.M);if(!this.svd(e,r,l,s))return!1;const n=Math.max(this.N,this.M),x=o*Math.abs(r.at(0))*n;for(let y=0;y<this.M;y++)r.at(y)>x?r.set(y,1/r.at(y)):r.set(y,0);return l.mulDiag(r,t),t.mulTranspose(e,t),!0}luDecomposition(s,o){return t(0),!1}symmetricEigen(s,o){t(this.rows()===this.cols()),t(this.rows()===s.rows()),t(o.rows()===o.cols()&&o.rows()===this.rows()),t(this.isSymmetric());const i=new Float64Array(this.N*this.M),e=new y(i,this.N,this.M);e.assignCopy(this);const h=100/Number.EPSILON,r=this.rows(),a=new Float64Array(r),l=new Float64Array(r),n=new y(a,r,1),x=new y(l,r,1);for(let t=0;t<r;t++)n.set(t,e.atRowCol(t,t)),s.set(t,e.atRowCol(t,t)),x.set(t,0);o.setIdentity();const w=()=>{const t=n;o.transposeInPlace();let i=1;do{i*=3,i++}while(i<=r);do{i/=3,i=Math.trunc(i);for(let e=i;e<r;e++){const h=s.at(e),r=Math.abs(h);for(let s=0;s<this.M;s++)t.set(s,o.atRowCol(s,e));let a=e;for(;Math.abs(s.at(a-i))<r;){s.set(a,s.at(a-i));for(let t=0;t<this.M;t++)o.setRowCol(t,a,o.atRowCol(t,a-i));if(a-=i,a<i)break}if(a!==e){s.set(a,h);for(let s=0;s<this.M;s++)o.setRowCol(s,a,t.at(s))}}}while(i>1)};for(let t=1;;t++){let i=0;for(let t=1;t<r;t++)for(let s=0;s<t;s++)i+=Math.abs(e.atRowCol(t,s));if(0===i)return w(),!0;const a=t<4?.2*i/(r*r):0;for(let l=0;l<r;l++)for(let i=l+1;i<r;i++){let y=h*Math.abs(e.atRowCol(i,l));if(t>4&&y<=Math.abs(s.at(l))&&y<=Math.abs(s.at(i)))e.setRowCol(i,l,0);else if(Math.abs(e.atRowCol(i,l))>a){let t,h=s.at(i)-s.at(l);if(y<Math.abs(h))t=e.atRowCol(i,l)/h;else{const s=.5*h/e.atRowCol(i,l);t=1/(Math.abs(s)+Math.sqrt(1+s*s)),s<0&&(t=-t)}const a=1/Math.sqrt(1+t*t),n=t*a,w=n/(1+a);h=t*e.atRowCol(i,l),x.set(l,x.at(l)-h),x.set(i,x.at(i)+h),s.set(l,s.at(l)-h),s.set(i,s.at(i)+h),e.setRowCol(i,l,0);let u=0;for(;u<l;u++)y=e.atRowCol(l,u),h=e.atRowCol(i,u),e.setRowCol(l,u,y-n*(h+y*w)),e.setRowCol(i,u,h+n*(y-h*w));for(u++;u<i;u++)y=e.atRowCol(u,l),h=e.atRowCol(i,u),e.setRowCol(u,l,y-n*(h+y*w)),e.setRowCol(i,u,h+n*(y-h*w));for(u++;u<r;u++)y=e.atRowCol(u,l),h=e.atRowCol(u,i),e.setRowCol(u,l,y-n*(h+y*w)),e.setRowCol(u,i,h+n*(y-h*w));for(u=0;u<r;u++)y=o.atRowCol(l,u),h=o.atRowCol(i,u),o.setRowCol(l,u,y-n*(h+y*w)),o.setRowCol(i,u,h+n*(y-h*w))}}for(let t=0;t<r;t++)n.set(t,n.at(t)+x.at(t)),s.set(t,n.at(t)),x.set(t,0)}}static checkDims(s,o,i){t(s.rows()===o&&s.cols()===i)}}class n extends y{constructor(t){if(t.copy){const s=new Float64Array(t.copy.N*t.copy.M);return super(s,t.copy.N,t.copy.M),this.buffer=s,void this.assignCopy(t.copy)}const s=new Float64Array(t.NN*t.MM);super(s,t.NN,t.MM),this.buffer=s,t.initializerList&&a(this.buffer,t.initializerList,0,0,t.initializerList.length)}assignCopy(t){return this===t||super.assignCopy(t),this}}class x{constructor(t){this.m_TransformationType=1,void 0===t?this.setIdentity():t instanceof x?this.set(t):this.setScale(t)}set(t){return this.xx=t.xx,this.xy=t.xy,this.xd=t.xd,this.yx=t.yx,this.yy=t.yy,this.yd=t.yd,this}clone(){return(new x).set(this)}setZero(){this.xx=0,this.yy=0,this.xy=0,this.yx=0,this.xd=0,this.yd=0}isEqual(t){return this===t||this.xx===t.xx&&this.xy===t.xy&&this.xd===t.xd&&this.yx===t.yx&&this.yy===t.yy&&this.yd===t.yd}transformInPlace(t){const s=this.xx*t.x+this.xy*t.y+this.xd,o=this.yx*t.x+this.yy*t.y+this.yd;t.x=s,t.y=o}transform(t){const s=t.clone();return this.transformInPlace(s),s}queryTransform(t,s){const o=this.xx*t.x+this.xy*t.y+this.xd,i=this.yx*t.x+this.yy*t.y+this.yd;s.setCoords(o,i)}transformEnvInPlace(t){if(t.isEmpty())return;const s=i(e,4);t.queryCorners(s),this.transformPoints2D(s,4,s),t.setFromPoints(s,4)}queryTransformEnv(s,o){t(0)}transformPoints2D(t,s,o){for(let i=0;i<s;++i)this.queryTransform(t[i],o[i])}transformInterleavedPoints(t,s,o){s*=2;const i=e.getNAN();for(let e=0;e<s;e+=2)i.x=t[e],i.y=t[e+1],this.transformInPlace(i),o[e]=i.x,o[e+1]=i.y}multiply(t){return x.st_multiply(this,t,this),this}mulLeft(s){return t(0),this}static st_multiply(t,s,o){const i=t.xx*s.xx+t.yx*s.xy,e=t.xy*s.xx+t.yy*s.xy,h=t.xd*s.xx+t.yd*s.xy+s.xd,r=t.xx*s.yx+t.yx*s.yy,a=t.xy*s.yx+t.yy*s.yy,l=t.xd*s.yx+t.yd*s.yy+s.yd;o.xx=i,o.xy=e,o.xd=h,o.yx=r,o.yy=a,o.yd=l}getCoefficients(s){t(s.length>=6),s[0]=this.xx,s[1]=this.xy,s[2]=this.xd,s[3]=this.yx,s[4]=this.yy,s[5]=this.yd}setCoefficients(s){t(s.length>=6),this.xx=s[0],this.xy=s[1],this.xd=s[2],this.yx=s[3],this.yy=s[4],this.yd=s[5]}copyTo(s){t(0)}initializeFromRect(t,s){t.isEmpty()||s.isEmpty()||!t.width()||!t.height()?this.setZero():(this.xy=this.yx=0,this.xx=s.width()/t.width(),this.yy=s.height()/t.height(),this.xd=s.xmin-t.xmin*this.xx,this.yd=s.ymin-t.ymin*this.yy)}initializeFromRectIsotropic(t,s){if(t.isEmpty()||!t.width()||!t.height()||s.isEmpty())this.setZero();else{this.yx=0,this.xy=0,this.xx=s.width()/t.width(),this.yy=s.height()/t.height(),this.xx>this.yy?this.xx=this.yy:this.yy=this.xx;const o=s.getCenter(),i=t.getCenter();this.xd=o.x-i.x*this.xx,this.yd=o.y-i.y*this.yy}}initializeFromTwoPointsArray(t,o){if(t[0].equals(o[0])&&t[1].equals(o[1]))return void this.setIdentity();if(t[0].equals(t[1])){if(o[0].equals(o[1]))return void this.setShift(o[0].sub(t[0]));s("")}if(!t[0].equals(t[1])&&o[0].equals(o[1]))return this.setZero(),void this.shift(o[0]);this.setShiftCoords(-t[0].x,-t[0].y);const i=e.distance(t[0],t[1]),h=e.distance(o[0],o[1]),r=h/i;this.scale(r,r);const a=t[1].sub(t[0]);a.divThis(i);const l=o[1].sub(o[0]);l.divThis(h);const y=a.crossProduct(l),n=a.dotProduct(l);this.rotate(n,y),this.shiftCoords(o[0].x,o[0].y)}initializeFromTwoPoints(t,s,o,i){const e=[t,s],h=[o,i];this.initializeFromTwoPointsArray(e,h)}transformSizeInPlace(s){t(0)}transformSize(s,o){t(0)}transformTol(s){return t(0),0}transformWithoutTranslateArray(t,s,o){for(let i=0;i<s;++i)this.transformWithoutTranslate(t[i],o[i])}transformWithoutTranslateInPlace(t){const s=this.xx*t.x+this.xy*t.y,o=this.yx*t.x+this.yy*t.y;t.setCoords(s,o)}transformWithoutTranslate(t,s){const o=this.xx*t.x+this.xy*t.y,i=this.yx*t.x+this.yy*t.y;s.setCoords(o,i)}setIdentity(){this.xx=1,this.xy=0,this.xd=0,this.yx=0,this.yy=1,this.yd=0}isIdentity(){return!(1!==this.xx||1!==this.yy||this.xy||this.xd||this.yx||this.yd)}isIdentityTol(t){const s=t*t;return!(h(this.xd)+h(this.yd)>s)&&(!(h(this.xy+this.xd)+h(this.yy+this.yd-1)>s)&&!(h(this.xx+this.xd-1)+h(this.yx+this.yd)>s))}isReflective(){return this.xx*this.yy-this.yx*this.xy<0}isUniform(t){const s=this.xx*this.xx+this.yx*this.yx,o=this.xy*this.xy+this.yy*this.yy,i=(s+o)*t;return Math.abs(s-o)<=i&&Math.abs(this.xx*this.xy+this.yx*this.yy)<=i}isUniformNoRotation(){return 0!==this.xx&&Math.abs(this.xx)===Math.abs(this.yy)&&0===this.xy&&0===this.yx}isTranslate(){return 1===this.xx&&1===this.yy&&!this.xy&&!this.yx}isTranslateTol(t){const s=new e;return s.setCoords(0,1),this.transformWithoutTranslateInPlace(s),s.y-=1,!(s.sqrLength()>t*t)&&(s.setCoords(1,0),this.transformWithoutTranslateInPlace(s),s.x-=1,s.sqrLength()<=t*t)}isOrthonormal(t){const s=new x;return s.xx=this.xx*this.xx+this.xy*this.xy,s.xy=this.xx*this.yx+this.xy*this.yy,s.yx=this.yx*this.xx+this.yy*this.xy,s.yy=this.yx*this.yx+this.yy*this.yy,s.xd=0,s.yd=0,s.isIdentityTol(t)}isDegenerate(t){return Math.abs(this.xx*this.yy-this.yx*this.xy)<=2*t*(Math.abs(this.xx*this.yy)+Math.abs(this.yx*this.xy))}isZero(){return 0===this.xx&&0===this.yy&&0===this.xy&&0===this.yx&&0===this.xd&&0===this.yd}isScaleAndTranslateTol(t){return this.xy*this.xy+this.yx*this.yx<=(this.xx*this.xx+this.yy*this.yy)*t}setTranslate(t,s){return this.xx=1,this.xy=0,this.xd=t,this.yx=0,this.yy=1,this.yd=s,this}setShiftCoords(t,s){return this.xx=1,this.xy=0,this.xd=t,this.yx=0,this.yy=1,this.yd=s,this}setShift(t){return this.xx=1,this.xy=0,this.xd=t.x,this.yx=0,this.yy=1,this.yd=t.y,this}setScaleCoords(t,s){return this.xx=t,this.xy=0,this.xd=0,this.yx=0,this.yy=s,this.yd=0,this}setScale(t){return this.setScaleCoords(t,t),this}setFlipX(t,s){return this.xx=-1,this.xy=0,this.xd=t+s,this.yx=0,this.yy=1,this.yd=0,this}setFlipY(t,s){return this.xx=1,this.xy=0,this.xd=0,this.yx=0,this.yy=-1,this.yd=t+s,this}setShear(t,s){return this.xx=1,this.xy=t,this.xd=0,this.yx=s,this.yy=1,this.yd=0,this}scale(t,s){return this.xx*=t,this.xy*=t,this.xd*=t,this.yx*=s,this.yy*=s,this.yd*=s,this}setRotateAngle(t){return this.setRotate(Math.cos(t),Math.sin(t))}setRotate(t,s){return this.xx=t,this.xy=-s,this.xd=0,this.yx=s,this.yy=t,this.yd=0,this}setRotateAngleAbout(t,s){return this.setRotateAbout(Math.cos(t),Math.sin(t),s)}setRotateAbout(t,s,o){return this.setTranslate(-o.x,-o.y),this.rotate(t,s),this.translate(o.x,o.y)}setSwapCoordinates(){return this.xx=0,this.xy=1,this.xd=0,this.yx=1,this.yy=0,this.yd=0,this}setRotateCw90(){return this.xx=0,this.xy=1,this.xd=0,this.yx=-1,this.yy=0,this.yd=0,this}setRotateCcw90(){return this.xx=0,this.xy=-1,this.xd=0,this.yx=1,this.yy=0,this.yd=0,this}shiftCoords(t,s){return this.xd+=t,this.yd+=s,this}shift(t){return this.xd+=t.x,this.yd+=t.y,this}translate(t,s){return this.xd+=t,this.yd+=s,this}flipX(t,s){return this.xx=-this.xx,this.xy=-this.xy,this.xd=t+s-this.xd,this}flipY(t,s){return this.yx=-this.yx,this.yy=-this.yy,this.yd=t+s-this.yd,this}shear(t,s){const o=new x;return o.setShear(t,s),this.multiply(o)}rotateAngle(t){const s=new x;return s.setRotateAngle(t),this.multiply(s)}rotate(t,s){const o=new x;return o.setRotate(t,s),this.multiply(o)}rotateAbout(t,s,o){return this.translate(-o.x,-o.y),this.rotate(t,s),this.translate(o.x,o.y)}rotateAngleAbout(t,s){return this.rotateAbout(Math.cos(t),Math.sin(t),s)}setInvert(t){return this.set(t),this.invertThis()}invertThis(){let t=this.xx*this.yy-this.xy*this.yx;if(0===t)return this.setZero(),this;t=1/t;const s=(this.xy*this.yd-this.xd*this.yy)*t,o=(this.xd*this.yx-this.xx*this.yd)*t,i=this.yy*t,e=-this.xy*t,h=-this.yx*t,r=this.xx*t;return this.xd=s,this.yd=o,this.xx=i,this.yy=r,this.xy=e,this.yx=h,this}invertPrecise(t){return this.set(t),this.invertPreciseThis()}invertPreciseThis(){const t=r.constructDouble(this.xy),s=r.constructDouble(this.xx),o=s.mulDouble(this.yy).sub(t.mulDouble(this.yx));if(o.isZero())return this.setZero(),this;const i=o.clone();i.invertThis();const e=r.constructDouble(this.xd),h=t.mulDouble(this.yd).sub(e.mulDouble(this.yy)).mul(i).toDouble(),a=e.mulDouble(this.yx).sub(s.mulDouble(this.yd)).mul(i).toDouble(),l=i.mulDouble(this.yy).toDouble(),y=i.mulDouble(-this.xy).toDouble(),n=i.mulDouble(-this.yx).toDouble(),x=i.mulDouble(this.xx).toDouble();return this.xd=h,this.yd=a,this.xx=l,this.yy=x,this.xy=y,this.yx=n,this}extractScaleTransform(t,s){const o=Math.sqrt(this.xx*this.xx+this.xy*this.xy),i=Math.sqrt(this.yx*this.yx+this.yy*this.yy);s.setScaleCoords(1/o,1/i),s.multiply(this),t.setScaleCoords(o,i)}setFromTwoTriangles(t,s){let o=!0;for(let e=0;e<3;++e)o=o&&t[e].equals(s[e]);if(o)return this.setIdentity(),!0;const i=new e;i.setSub(t[0],t[1]);const h=new e;h.setSub(t[0],t[2]);const r=new e;r.setSub(s[0],s[1]);const a=new e;a.setSub(s[0],s[2]);const l=4*Number.EPSILON*(Math.abs(i.x*h.y)+Math.abs(h.x*i.y));let y=i.x*h.y-i.y*h.x;return Math.abs(y)>l?(y=1/y,this.xx=(r.x*h.y-i.y*a.x)*y,this.xy=(i.x*a.x-r.x*h.x)*y,this.yx=(r.y*h.y-i.y*a.y)*y,this.yy=(i.x*a.y-r.y*h.x)*y,this.xd=s[0].x-(this.xx*t[0].x+this.xy*t[0].y),this.yd=s[0].y-(this.yx*t[0].x+this.yy*t[0].y),!0):(this.setZero(),!1)}initializeFromControlPoints(t,s,o,i,e=null){return 0===s?(this.setIdentity(),void(e&&e.setIdentity())):1===s?(this.setShift(i[0].sub(o[0])),void(e&&e.setShift(o[0].sub(i[0])))):(s<3&&(t=1),void(4===t&&s>2?C(this,s,o,i,e):f(t,this,s,o,i,e)))}calculateErrors(s,o,i,h){t(s>0&&null!==o&&null!==i);let r=0;for(let t=0;t<s;++t){const s=this.transform(o[t]),a=e.sqrDistance(i[t],s);r+=a,h&&(h[t]=Math.sqrt(a))}return Math.sqrt(r/s)}}const w=[43,11,41,9,61];function u(s,o){t(!(2!==o.rows()&&3!==o.rows()||2!==o.cols()&&3!==o.rows())),s.xx=o.atRowCol(0,0),s.xy=o.atRowCol(0,1),s.yx=o.atRowCol(1,0),s.yy=o.atRowCol(1,1),3===o.cols()?(s.xd=o.atRowCol(0,2),s.yd=o.atRowCol(1,2)):(s.xd=0,s.yd=0)}function C(t,s,i,h,r){const a=e.average(i,s),l=e.average(h,s),y=new n({NN:2,MM:2});y.setZero();const x=new n({NN:2,MM:2});x.setZero();for(let o=0;o<s;++o)y.setRowCol(0,0,y.atRowCol(0,0)+(i[o].x-a.x)*(i[o].x-a.x)),y.setRowCol(0,1,y.atRowCol(0,1)+(i[o].x-a.x)*(i[o].y-a.y)),y.setRowCol(1,1,y.atRowCol(1,1)+(i[o].y-a.y)*(i[o].y-a.y)),x.setRowCol(0,0,x.atRowCol(0,0)+(h[o].x-l.x)*(i[o].x-a.x)),x.setRowCol(0,1,x.atRowCol(0,1)+(h[o].x-l.x)*(i[o].y-a.y)),x.setRowCol(1,0,x.atRowCol(1,0)+(h[o].y-l.y)*(i[o].x-a.x)),x.setRowCol(1,1,x.atRowCol(1,1)+(h[o].y-l.y)*(i[o].y-a.y));y.setRowCol(1,0,y.atRowCol(0,1));const w=new n({NN:2,MM:2});y.pseudoInverse(w,!0)||o("Failed to compute pseudo inverse"),x.mul(w,x),u(t,x);const C=a.clone();t.transformInPlace(C),t.xd=l.x-C.x,t.yd=l.y-C.y,r&&(x.pseudoInverse(w,!1)||o("Failed to compute pseudo inverse"),u(r,w),r.transformInPlace(l),r.xd=a.x-l.x,r.yd=a.y-l.y)}function f(s,i,h,r,a,l){t(1===s||0===s||2===s||3===s),i.setIdentity();const y=e.average(r,h),C=e.average(a,h);if(t(s<w.length&&s>0),8&w[s]){const t=new n({NN:2,MM:2});t.setZero();for(let s=0;s<h;++s)t.setRowCol(0,0,t.atRowCol(0,0)+(a[s].x-C.x)*(r[s].x-y.x)),t.setRowCol(1,0,t.atRowCol(1,0)+(a[s].x-C.x)*(r[s].y-y.y)),t.setRowCol(0,1,t.atRowCol(0,1)+(a[s].y-C.y)*(r[s].x-y.x)),t.setRowCol(1,1,t.atRowCol(1,1)+(a[s].y-C.y)*(r[s].y-y.y));const e=new n({NN:2,MM:2}),l=new n({NN:2,MM:1}),f=new n({NN:2,MM:2});t.svd(e,l,f)||o("Failed to compute svd");const R=new n({NN:2,MM:2});e.transpose(R);const d=new n({NN:2,MM:2});if(f.mul(R,d),!(32&w[s])){d.determinant()<0&&(R.setRowCol(1,0,-R.atRowCol(1,0)),R.setRowCol(1,1,-R.atRowCol(1,1)),f.mul(R,d))}const c=new x;u(c,d),i.set(c)}if(2&w[s]){let t=0,s=0;for(let o=0;o<h;++o){const e=r[o].sub(y);t+=e.sqrLength(),i.transformInPlace(e),s+=e.dotProduct(a[o].sub(C))}if(0===t)0===s?i.setIdentity():i.setZero();else{const o=s/t;i.scale(o,o)}}else t(!(4&w[s]));const f=y.clone();i.transformInPlace(f),i.xd=C.x-f.x,i.yd=C.y-f.y,l&&(l.set(i),l.invertThis(),l.isZero()&&(l.xd=y.x,l.yd=y.y))}export{x as T};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{c as e,g as r}from"./_commonjsHelpers.js";var t,a={exports:{}};function n(){return t||(t=1,r=a,n="undefined"!=typeof document?document.currentScript?.src:void 0,i=function(r={}){var t,a,i,o=r,s=new Promise(((e,r)=>{t=e,a=r})),u=Object.assign({},o),f="./this.program",l="";"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),n&&(l=n),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),i=async e=>{if((e=await fetch(e,{credentials:"same-origin"})).ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)};var c=o.print||console.log.bind(console),h=o.printErr||console.error.bind(console);Object.assign(o,u),u=null,o.thisProgram&&(f=o.thisProgram);var p,m,d,v,y,g,w,$,b,T,A,C,W=o.wasmBinary,j=!1;function P(){var e=p.buffer;o.HEAP8=d=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=$=new Uint32Array(e),o.HEAPF32=b=new Float32Array(e),o.HEAPF64=C=new Float64Array(e),o.HEAP64=T=new BigInt64Array(e),o.HEAPU64=A=new BigUint64Array(e)}var E=[],O=[],k=[];function S(){var e=o.preRun.shift();E.unshift(e)}var x=0,F=null;function _(e){throw o.onAbort?.(e),h(e="Aborted("+e+")"),j=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}var R,U=e=>e.startsWith("data:application/octet-stream;base64,");async function I(e){if(!W)try{var r=await i(e);return new Uint8Array(r)}catch{}if(e!=R||!W)throw"both async and sync fetching of the wasm failed";return e=new Uint8Array(W)}async function B(e,r){try{var t=await I(e);return await WebAssembly.instantiate(t,r)}catch(a){h(`failed to asynchronously prepare wasm: ${a}`),_(a)}}async function H(e){var r=R;if(!W&&"function"==typeof WebAssembly.instantiateStreaming&&!U(r)&&"function"==typeof fetch)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,e)}catch(a){h(`wasm streaming compile failed: ${a}`),h("falling back to ArrayBuffer instantiation")}return B(r,e)}class M{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var D=e=>{for(;0<e.length;)e.shift()(o)},V=o.noExitRuntime||!0;class z{constructor(e){this.ga=e-24}}var N={},q=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function L(e){return this.fromWireType($[e>>2])}var G,J,K,Q={},Y={},Z={},X=(e,r,t)=>{function a(r){if((r=t(r)).length!==e.length)throw new G("Mismatched type converter count");for(var a=0;a<e.length;++a)ae(e[a],r[a])}e.forEach((e=>Z[e]=r));var n=Array(r.length),i=[],o=0;r.forEach(((e,r)=>{Y.hasOwnProperty(e)?n[r]=Y[e]:(i.push(e),Q.hasOwnProperty(e)||(Q[e]=[]),Q[e].push((()=>{n[r]=Y[e],++o===i.length&&a(n)})))})),0===i.length&&a(n)},ee=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},re=e=>{for(var r="";v[e];)r+=J[v[e++]];return r};function te(e,r,t={}){var a=r.name;if(!e)throw new K(`type "${a}" must have a positive integer typeid pointer`);if(Y.hasOwnProperty(e)){if(t.La)return;throw new K(`Cannot register type '${a}' twice`)}Y[e]=r,delete Z[e],Q.hasOwnProperty(e)&&(r=Q[e],delete Q[e],r.forEach((e=>e())))}function ae(e,r,t={}){return te(e,r,t)}var ne=(e,r,t)=>{switch(r){case 1:return t?e=>d[e]:e=>v[e];case 2:return t?e=>y[e>>1]:e=>g[e>>1];case 4:return t?e=>w[e>>2]:e=>$[e>>2];case 8:return t?e=>T[e>>3]:e=>A[e>>3];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},ie=e=>{throw new K(e.ea.ha.fa.name+" instance already deleted")},oe=!1,se=()=>{},ue=(e,r,t)=>r===t?e:void 0===t.ka||null===(e=ue(e,r,t.ka))?null:t.Ea(e),fe={},le={},ce=(e,r)=>{if(void 0===r)throw new K("ptr should not be undefined");for(;e.ka;)r=e.ua(r),e=e.ka;return le[r]},he=(e,r)=>{if(!r.ha||!r.ga)throw new G("makeClassHandle requires ptr and ptrType");if(!!r.na!=!!r.ja)throw new G("Both smartPtrType and smartPtr must be specified");return r.count={value:1},pe(Object.create(e,{ea:{value:r,writable:!0}}))},pe=e=>"undefined"==typeof FinalizationRegistry?(pe=e=>e,e):(oe=new FinalizationRegistry((e=>{--(e=e.ea).count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga))})),se=e=>{oe.unregister(e)},(pe=e=>{var r=e.ea;return r.ja&&oe.register(e,{ea:r},e),e})(e));function me(){}var de=(e,r)=>Object.defineProperty(r,"name",{value:e}),ve=(e,r,t)=>{if(void 0===e[r].ia){var a=e[r];e[r]=function(...a){if(!e[r].ia.hasOwnProperty(a.length))throw new K(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${e[r].ia})!`);return e[r].ia[a.length].apply(this,a)},e[r].ia=[],e[r].ia[a.qa]=a}},ye=(e,r,t)=>{if(o.hasOwnProperty(e)){if(void 0===t||void 0!==o[e].ia&&void 0!==o[e].ia[t])throw new K(`Cannot register public name '${e}' twice`);if(ve(o,e,e),o[e].ia.hasOwnProperty(t))throw new K(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);o[e].ia[t]=r}else o[e]=r,o[e].qa=t},ge=e=>{var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${e}`:e};function we(e,r,t,a,n,i,o,s){this.name=e,this.constructor=r,this.pa=t,this.oa=a,this.ka=n,this.Ga=i,this.ua=o,this.Ea=s,this.Na=[]}var $e=(e,r,t)=>{for(;r!==t;){if(!r.ua)throw new K(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);e=r.ua(e),r=r.ka}return e};function be(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);return 0}if(!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);return $e(r.ea.ga,r.ea.ha.fa,this.fa)}function Te(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);if(this.xa){var t=this.za();return null!==e&&e.push(this.oa,t),t}return 0}if(!r||!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.wa&&r.ea.ha.wa)throw new K(`Cannot convert argument of type ${r.ea.na?r.ea.na.name:r.ea.ha.name} to parameter type ${this.name}`);if(t=$e(r.ea.ga,r.ea.ha.fa,this.fa),this.xa){if(void 0===r.ea.ja)throw new K("Passing raw pointer to smart pointer is illegal");switch(this.Sa){case 0:if(r.ea.na!==this)throw new K(`Cannot convert argument of type ${r.ea.na?r.ea.na.name:r.ea.ha.name} to parameter type ${this.name}`);t=r.ea.ja;break;case 1:t=r.ea.ja;break;case 2:if(r.ea.na===this)t=r.ea.ja;else{var a=r.clone();t=this.Oa(t,qe((()=>a.delete()))),null!==e&&e.push(this.oa,t)}break;default:throw new K("Unsupporting sharing policy")}}return t}function Ae(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);return 0}if(!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ea.ha.wa)throw new K(`Cannot convert argument of type ${r.ea.ha.name} to parameter type ${this.name}`);return $e(r.ea.ga,r.ea.ha.fa,this.fa)}function Ce(e,r,t,a,n,i,o,s,u,f,l){this.name=e,this.fa=r,this.ya=t,this.wa=a,this.xa=n,this.Ma=i,this.Sa=o,this.Ca=s,this.za=u,this.Oa=f,this.oa=l,n||void 0!==r.ka?this.toWireType=Te:(this.toWireType=a?be:Ae,this.ma=null)}var We,je,Pe=(e,r,t)=>{if(!o.hasOwnProperty(e))throw new G("Replacing nonexistent public symbol");void 0!==o[e].ia&&void 0!==t?o[e].ia[t]=r:(o[e]=r,o[e].qa=t)},Ee=[],Oe=(e,r)=>{e=re(e);var t=Ee[r];if(t||(r>=Ee.length&&(Ee.length=r+1),Ee[r]=t=We.get(r)),"function"!=typeof t)throw new K(`unknown function pointer with signature ${e}: ${r}`);return t},ke=e=>{e=Er(e);var r=re(e);return kr(e),r},Se=(e,r)=>{function t(e){n[e]||Y[e]||(Z[e]?Z[e].forEach(t):(a.push(e),n[e]=!0))}var a=[],n={};throw r.forEach(t),new je(`${e}: `+a.map(ke).join([", "]))};function xe(e){for(var r=1;r<e.length;++r)if(null!==e[r]&&void 0===e[r].ma)return!0;return!1}function Fe(e,r,t,a,n){var i=r.length;if(2>i)throw new K("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=null!==r[1]&&null!==t,s=xe(r),u="void"!==r[0].name,f=i-2,l=Array(f),c=[],h=[];return de(e,(function(...e){if(h.length=0,c.length=o?2:1,c[0]=n,o){var t=r[1].toWireType(h,this);c[1]=t}for(var i=0;i<f;++i)l[i]=r[i+2].toWireType(h,e[i]),c.push(l[i]);if(e=a(...c),s)q(h);else for(i=o?1:2;i<r.length;i++){var p=1===i?t:l[i-2];null!==r[i].ma&&r[i].ma(p)}return t=u?r[0].fromWireType(e):void 0}))}var _e,Re,Ue,Ie,Be=(e,r)=>{for(var t=[],a=0;a<e;a++)t.push($[r+4*a>>2]);return t},He=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},Me=(e,r,t)=>{if(!(e instanceof Object))throw new K(`${t} with invalid "this": ${e}`);if(!(e instanceof r.fa.constructor))throw new K(`${t} incompatible with "this" of type ${e.constructor.name}`);if(!e.ea.ga)throw new K(`cannot call emscripten binding method ${t} on deleted object`);return $e(e.ea.ga,e.ea.ha.fa,r.fa)},De=[],Ve=[],ze=e=>{9<e&&0==--Ve[e+1]&&(Ve[e]=void 0,De.push(e))},Ne=e=>{if(!e)throw new K("Cannot use deleted val. handle = "+e);return Ve[e]},qe=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=De.pop()||Ve.length;return Ve[r]=e,Ve[r+1]=1,r}},Le={name:"emscripten::val",fromWireType:e=>{var r=Ne(e);return ze(e),r},toWireType:(e,r)=>qe(r),la:8,readValueFromPointer:L,ma:null},Ge=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(d[e])}:function(e){return this.fromWireType(v[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>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Je=(e,r)=>{var t=Y[e];if(void 0===t)throw e=`${r} has unknown type ${ke(e)}`,new K(e);return t},Ke=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(b[e>>2])};case 8:return function(e){return this.fromWireType(C[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Qe=Object.assign({optional:!0},Le),Ye=(e,r,t)=>{var a=v;if(0<t){t=r+t-1;for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++n)),127>=i){if(r>=t)break;a[r++]=i}else{if(2047>=i){if(r+1>=t)break;a[r++]=192|i>>6}else{if(65535>=i){if(r+2>=t)break;a[r++]=224|i>>12}else{if(r+3>=t)break;a[r++]=240|i>>18,a[r++]=128|i>>12&63}a[r++]=128|i>>6&63}a[r++]=128|63&i}}a[r]=0}},Ze="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Xe=(e,r=0,t=NaN)=>{var a=r+t;for(t=r;e[t]&&!(t>=a);)++t;if(16<t-r&&e.buffer&&Ze)return Ze.decode(e.subarray(r,t));for(a="";r<t;){var n=e[r++];if(128&n){var i=63&e[r++];if(192==(224&n))a+=String.fromCharCode((31&n)<<6|i);else{var o=63&e[r++];65536>(n=224==(240&n)?(15&n)<<12|i<<6|o:(7&n)<<18|i<<12|o<<6|63&e[r++])?a+=String.fromCharCode(n):(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else a+=String.fromCharCode(n)}return a},er="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,rr=(e,r)=>{for(var t=e>>1,a=t+r/2;!(t>=a)&&g[t];)++t;if(32<(t<<=1)-e&&er)return er.decode(v.subarray(e,t));for(t="",a=0;!(a>=r/2);++a){var n=y[e+2*a>>1];if(0==n)break;t+=String.fromCharCode(n)}return t},tr=(e,r,t)=>{if(t??=2147483647,2>t)return 0;var a=r;t=(t-=2)<2*e.length?t/2:e.length;for(var n=0;n<t;++n)y[r>>1]=e.charCodeAt(n),r+=2;return y[r>>1]=0,r-a},ar=e=>2*e.length,nr=(e,r)=>{for(var t=0,a="";!(t>=r/4);){var n=w[e+4*t>>2];if(0==n)break;++t,65536<=n?(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n)):a+=String.fromCharCode(n)}return a},ir=(e,r,t)=>{if(t??=2147483647,4>t)return 0;var a=r;t=a+t-4;for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++n)),w[r>>2]=i,(r+=4)+4>t)break}return w[r>>2]=0,r-a},or=e=>{for(var r=0,t=0;t<e.length;++t){var a=e.charCodeAt(t);55296<=a&&57343>=a&&++t,r+=4}return r},sr=0,ur=(e,r,t)=>{var a=[];return e=e.toWireType(a,t),a.length&&($[r>>2]=qe(a)),e},fr=[],lr={},cr=e=>{var r=lr[e];return void 0===r?re(e):r},hr=()=>{function r(e){e.$$$embind_global$$$=e;var r="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return r||delete e.$$$embind_global$$$,r}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof e&&r(e)?$$$embind_global$$$=e:"object"==typeof self&&r(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},pr=e=>{var r=fr.length;return fr.push(e),r},mr=(e,r)=>{for(var t=Array(e),a=0;a<e;++a)t[a]=Je($[r+4*a>>2],"parameter "+a);return t},dr=Reflect.construct,vr={},yr=e=>{if(!(e instanceof M||"unwind"==e))throw e},gr=e=>{throw m=e,V||0<sr||(o.onExit?.(e),j=!0),new M(e)},wr=e=>{if(!j)try{if(e(),!(V||0<sr))try{m=e=m,gr(e)}catch(Ue){yr(Ue)}}catch(Ue){yr(Ue)}},$r={},br=()=>{if(!_e){var e,r={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",_:f||"./this.program"};for(e in $r)void 0===$r[e]?delete r[e]:r[e]=$r[e];var t=[];for(e in r)t.push(`${e}=${r[e]}`);_e=t}return _e},Tr=[null,[],[]];G=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}};for(var Ar=Array(256),Cr=0;256>Cr;++Cr)Ar[Cr]=String.fromCharCode(Cr);J=Ar,K=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(me.prototype,{isAliasOf:function(e){if(!(this instanceof me&&e instanceof me))return!1;var r=this.ea.ha.fa,t=this.ea.ga;e.ea=e.ea;var a=e.ea.ha.fa;for(e=e.ea.ga;r.ka;)t=r.ua(t),r=r.ka;for(;a.ka;)e=a.ua(e),a=a.ka;return r===a&&t===e},clone:function(){if(this.ea.ga||ie(this),this.ea.ta)return this.ea.count.value+=1,this;var e=pe,r=Object,t=r.create,a=Object.getPrototypeOf(this),n=this.ea;return(e=e(t.call(r,a,{ea:{value:{count:n.count,sa:n.sa,ta:n.ta,ga:n.ga,ha:n.ha,ja:n.ja,na:n.na}}}))).ea.count.value+=1,e.ea.sa=!1,e},delete(){if(this.ea.ga||ie(this),this.ea.sa&&!this.ea.ta)throw new K("Object already scheduled for deletion");se(this);var e=this.ea;--e.count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga)),this.ea.ta||(this.ea.ja=void 0,this.ea.ga=void 0)},isDeleted:function(){return!this.ea.ga},deleteLater:function(){if(this.ea.ga||ie(this),this.ea.sa&&!this.ea.ta)throw new K("Object already scheduled for deletion");return this.ea.sa=!0,this}}),Object.assign(Ce.prototype,{Ha(e){return this.Ca&&(e=this.Ca(e)),e},Aa(e){this.oa?.(e)},la:8,readValueFromPointer:L,fromWireType:function(e){function r(){return this.xa?he(this.fa.pa,{ha:this.Ma,ga:t,na:this,ja:e}):he(this.fa.pa,{ha:this,ga:e})}var t=this.Ha(e);if(!t)return this.Aa(e),null;var a=ce(this.fa,t);if(void 0!==a)return 0===a.ea.count.value?(a.ea.ga=t,a.ea.ja=e,a.clone()):(a=a.clone(),this.Aa(e),a);if(a=this.fa.Ga(t),!(a=fe[a]))return r.call(this);a=this.wa?a.Da:a.pointerType;var n=ue(t,this.fa,a.fa);return null===n?r.call(this):this.xa?he(a.fa.pa,{ha:a,ga:n,na:this,ja:e}):he(a.fa.pa,{ha:a,ga:n})}}),je=o.UnboundTypeError=(Re=Error,(Ie=de(Ue="UnboundTypeError",(function(e){this.name=Ue,this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Re.prototype),Ie.prototype.constructor=Ie,Ie.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Ie),Ve.push(0,1,void 0,1,null,1,!0,1,!1,1),o.count_emval_handles=()=>Ve.length/2-5-De.length;var Wr,jr={m:(e,r,t)=>{var a=new z(e);throw $[a.ga+16>>2]=0,$[a.ga+4>>2]=r,$[a.ga+8>>2]=t,e},O:()=>_(""),r:e=>{var r=N[e];delete N[e];var t=r.za,a=r.oa,n=r.Ba,i=n.map((e=>e.Ka)).concat(n.map((e=>e.Qa)));X([e],i,(e=>{var i={};return n.forEach(((r,t)=>{var a=e[t],o=r.Ia,s=r.Ja,u=e[t+n.length],f=r.Pa,l=r.Ra;i[r.Fa]={read:e=>a.fromWireType(o(s,e)),write:(e,r)=>{var t=[];f(l,e,u.toWireType(t,r)),q(t)}}})),[{name:r.name,fromWireType:e=>{var r,t={};for(r in i)t[r]=i[r].read(e);return a(e),t},toWireType:(e,r)=>{for(var n in i)if(!(n in r))throw new TypeError(`Missing field: "${n}"`);var o=t();for(n in i)i[n].write(o,r[n]);return null!==e&&e.push(a,o),o},la:8,readValueFromPointer:L,ma:a}]}))},E:(e,r,t)=>{ae(e,{name:r=re(r),fromWireType:e=>e,toWireType:function(e,r){if("bigint"!=typeof r&&"number"!=typeof r)throw new TypeError(`Cannot convert "${ee(r)}" to ${this.name}`);return"number"==typeof r&&(r=BigInt(r)),r},la:8,readValueFromPointer:ne(r,t,-1==r.indexOf("u")),ma:null})},V:(e,r,t,a)=>{ae(e,{name:r=re(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:a},la:8,readValueFromPointer:function(e){return this.fromWireType(v[e])},ma:null})},f:(e,r,t,a,n,i,o,s,u,f,l,c,h)=>{l=re(l),i=Oe(n,i),s&&=Oe(o,s),f&&=Oe(u,f),h=Oe(c,h);var p=ge(l);ye(p,(function(){Se(`Cannot construct ${l} due to unbound types`,[a])})),X([e,r,t],a?[a]:[],(r=>{if(r=r[0],a)var t=r.fa,n=t.pa;else n=me.prototype;r=de(l,(function(...e){if(Object.getPrototypeOf(this)!==o)throw new K("Use 'new' to construct "+l);if(void 0===c.ra)throw new K(l+" has no accessible constructor");var r=c.ra[e.length];if(void 0===r)throw new K(`Tried to invoke ctor of ${l} with invalid number of parameters (${e.length}) - expected (${Object.keys(c.ra).toString()}) parameters instead!`);return r.apply(this,e)}));var o=Object.create(n,{constructor:{value:r}});r.prototype=o;var u,c=new we(l,r,o,h,t,i,s,f);return c.ka&&((u=c.ka).va??(u.va=[]),c.ka.va.push(c)),t=new Ce(l,c,!0,!1,!1),u=new Ce(l+"*",c,!1,!1,!1),n=new Ce(l+" const*",c,!1,!0,!1),fe[e]={pointerType:u,Da:n},Pe(p,r),[t,u,n]}))},v:(e,r,t,a,n,i,o)=>{var s=Be(t,a);r=re(r),r=He(r),i=Oe(n,i),X([],[e],(e=>{function a(){Se(`Cannot call ${n} due to unbound types`,s)}var n=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=e.fa.constructor;return void 0===u[r]?(a.qa=t-1,u[r]=a):(ve(u,r,n),u[r].ia[t-1]=a),X([],s,(a=>{if(a=Fe(n,[a[0],null].concat(a.slice(1)),null,i,o),void 0===u[r].ia?(a.qa=t-1,u[r]=a):u[r].ia[t-1]=a,e.fa.va)for(const t of e.fa.va)t.constructor.hasOwnProperty(r)||(t.constructor[r]=a);return[]})),[]}))},g:(e,r,t,a,n,i)=>{var o=Be(r,t);n=Oe(a,n),X([],[e],(e=>{var t=`constructor ${(e=e[0]).name}`;if(void 0===e.fa.ra&&(e.fa.ra=[]),void 0!==e.fa.ra[r-1])throw new K(`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.fa.ra[r-1]=()=>{Se(`Cannot construct ${e.name} due to unbound types`,o)},X([],o,(a=>(a.splice(1,0,null),e.fa.ra[r-1]=Fe(t,a,null,n,i),[]))),[]}))},a:(e,r,t,a,n,i,o,s)=>{var u=Be(t,a);r=re(r),r=He(r),i=Oe(n,i),X([],[e],(e=>{function a(){Se(`Cannot call ${n} due to unbound types`,u)}var n=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.fa.Na.push(r);var f=e.fa.pa,l=f[r];return void 0===l||void 0===l.ia&&l.className!==e.name&&l.qa===t-2?(a.qa=t-2,a.className=e.name,f[r]=a):(ve(f,r,n),f[r].ia[t-2]=a),X([],u,(a=>(a=Fe(n,a,e,i,o),void 0===f[r].ia?(a.qa=t-2,f[r]=a):f[r].ia[t-2]=a,[]))),[]}))},c:(e,r,t,a,n,i,o,s,u,f)=>{r=re(r),n=Oe(a,n),X([],[e],(e=>{var a=`${(e=e[0]).name}.${r}`,l={get(){Se(`Cannot access ${a} due to unbound types`,[t,o])},enumerable:!0,configurable:!0};return l.set=u?()=>Se(`Cannot access ${a} due to unbound types`,[t,o]):()=>{throw new K(a+" is a read-only property")},Object.defineProperty(e.fa.pa,r,l),X([],u?[t,o]:[t],(t=>{var o=t[0],l={get(){var r=Me(this,e,a+" getter");return o.fromWireType(n(i,r))},enumerable:!0};if(u){u=Oe(s,u);var c=t[1];l.set=function(r){var t=Me(this,e,a+" setter"),n=[];u(f,t,c.toWireType(n,r)),q(n)}}return Object.defineProperty(e.fa.pa,r,l),[]})),[]}))},T:e=>ae(e,Le),n:(e,r,t,a)=>{function n(){}r=re(r),n.values={},ae(e,{name:r,constructor:n,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,la:8,readValueFromPointer:Ge(r,t,a),ma:null}),ye(r,n)},e:(e,r,t)=>{var a=Je(e,"enum");r=re(r),e=a.constructor,a=Object.create(a.constructor.prototype,{value:{value:t},constructor:{value:de(`${a.name}_${r}`,(function(){}))}}),e.values[t]=a,e[r]=a},D:(e,r,t)=>{ae(e,{name:r=re(r),fromWireType:e=>e,toWireType:(e,r)=>r,la:8,readValueFromPointer:Ke(r,t),ma:null})},X:(e,r,t,a,n,i)=>{var o=Be(r,t);e=re(e),e=He(e),n=Oe(a,n),ye(e,(function(){Se(`Cannot call ${e} due to unbound types`,o)}),r-1),X([],o,(t=>(Pe(e,Fe(e,[t[0],null].concat(t.slice(1)),null,n,i),r-1),[])))},w:(e,r,t,a,n)=>{if(r=re(r),-1===n&&(n=4294967295),n=e=>e,0===a){var i=32-8*t;n=e=>e<<i>>>i}var o=r.includes("unsigned")?function(e,r){return r>>>0}:function(e,r){return r};ae(e,{name:r,fromWireType:n,toWireType:o,la:8,readValueFromPointer:ne(r,t,0!==a),ma:null})},o:(e,r,t)=>{function a(e){return new n(d.buffer,$[e+4>>2],$[e>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];ae(e,{name:t=re(t),fromWireType:a,la:8,readValueFromPointer:a},{La:!0})},t:e=>{ae(e,Qe)},i:(e,r,t,a,n,i,o,s,u,f,l,c)=>{t=re(t),i=Oe(n,i),s=Oe(o,s),f=Oe(u,f),c=Oe(l,c),X([e],[r],(e=>(e=e[0],[new Ce(t,e.fa,!1,!1,!0,e,a,i,s,f,c)])))},U:(e,r)=>{ae(e,{name:r=re(r),fromWireType:function(e){for(var r,t=$[e>>2],a=e+4,n=a,i=0;i<=t;++i){var o=a+i;i!=t&&0!=v[o]||(n=n?Xe(v,n,o-n):"",void 0===r?r=n:(r+=String.fromCharCode(0),r+=n),n=o+1)}return kr(e),r},toWireType:function(e,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t,a="string"==typeof r;if(!(a||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array))throw new K("Cannot pass non-string to std::string");if(a)for(var n=t=0;n<r.length;++n){var i=r.charCodeAt(n);127>=i?t++:2047>=i?t+=2:55296<=i&&57343>=i?(t+=4,++n):t+=3}else t=r.length;if(i=(n=Or(4+t+1))+4,$[n>>2]=t,a)Ye(r,i,t+1);else if(a)for(a=0;a<t;++a){var o=r.charCodeAt(a);if(255<o)throw kr(i),new K("String has UTF-16 code units that do not fit in 8 bits");v[i+a]=o}else for(a=0;a<t;++a)v[i+a]=r[a];return null!==e&&e.push(kr,n),n},la:8,readValueFromPointer:L,ma(e){kr(e)}})},C:(e,r,t)=>{if(t=re(t),2===r)var a=rr,n=tr,i=ar,o=e=>g[e>>1];else 4===r&&(a=nr,n=ir,i=or,o=e=>$[e>>2]);ae(e,{name:t,fromWireType:e=>{for(var t,n=$[e>>2],i=e+4,s=0;s<=n;++s){var u=e+4+s*r;s!=n&&0!=o(u)||(i=a(i,u-i),void 0===t?t=i:(t+=String.fromCharCode(0),t+=i),i=u+r)}return kr(e),t},toWireType:(e,a)=>{if("string"!=typeof a)throw new K(`Cannot pass non-string to C++ string type ${t}`);var o=i(a),s=Or(4+o+r);return $[s>>2]=o/r,n(a,s+4,o+r),null!==e&&e.push(kr,s),s},la:8,readValueFromPointer:L,ma(e){kr(e)}})},s:(e,r,t,a,n,i)=>{N[e]={name:re(r),za:Oe(t,a),oa:Oe(n,i),Ba:[]}},j:(e,r,t,a,n,i,o,s,u,f)=>{N[e].Ba.push({Fa:re(r),Ka:t,Ia:Oe(a,n),Ja:i,Qa:o,Pa:Oe(s,u),Ra:f})},W:(e,r)=>{ae(e,{Ta:!0,name:r=re(r),la:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{V=!1,sr=0},l:(e,r,t)=>(e=Ne(e),r=Je(r,"emval::as"),ur(r,t,e)),y:(e,r)=>(e=Ne(e),(r=Je(r,"emval::as")).toWireType(null,e)),Y:(e,r,t,a)=>(e=fr[e])(null,r=Ne(r),t,a),B:(e,r,t,a,n)=>(e=fr[e])(r=Ne(r),r[t=cr(t)],a,n),b:ze,G:e=>0===e?qe(hr()):(e=cr(e),qe(hr()[e])),A:(e,r,t)=>{var a=mr(e,r),n=a.shift();e--;var i=Array(e);return r=`methodCaller<(${a.map((e=>e.name)).join(", ")}) => ${n.name}>`,pr(de(r,((r,o,s,u)=>{for(var f=0,l=0;l<e;++l)i[l]=a[l].readValueFromPointer(u+f),f+=a[l].la;return r=1===t?dr(o,i):o.apply(r,i),ur(n,s,r)})))},q:(e,r)=>(e=Ne(e),r=Ne(r),qe(e[r])),h:e=>{9<e&&(Ve[e+1]+=1)},I:(e,r)=>(e=Ne(e))instanceof(r=Ne(r)),u:e=>"number"==typeof(e=Ne(e)),x:e=>"string"==typeof(e=Ne(e)),F:()=>qe([]),p:e=>qe(cr(e)),k:e=>{var r=Ne(e);q(r),ze(e)},d:(e,r)=>(e=(e=Je(e,"_emval_take_value")).readValueFromPointer(r),qe(e)),z:e=>(e=Ne(e),qe(typeof e)),K:(e,r)=>{if(vr[e]&&(clearTimeout(vr[e].id),delete vr[e]),!r)return 0;var t=setTimeout((()=>{delete vr[e],wr((()=>Sr(e,performance.now())))}),r);return vr[e]={id:t,Ua:r},0},L:(e,r,t,a)=>{var n=(new Date).getFullYear(),i=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),$[e>>2]=60*Math.max(i,n),w[r>>2]=Number(i!=n),e=(r=e=>{var r=Math.abs(e);return`UTC${0<=e?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(i),r=r(n),n<i?(Ye(e,t,17),Ye(r,a,17)):(Ye(e,a,17),Ye(r,t,17))},P:e=>{var r=v.length;if(2147483648<(e>>>=0))return!1;for(var t=1;4>=t;t*=2){var a=r*(1+.2/t);a=Math.min(a,e+100663296);e:{a=(Math.min(2147483648,65536*Math.ceil(Math.max(e,a)/65536))-p.buffer.byteLength+65535)/65536|0;try{p.grow(a),P();var n=1;break e}catch(i){}n=void 0}if(n)return!0}return!1},M:(e,r)=>{var t=0;return br().forEach(((a,n)=>{var i=r+t;for(n=$[e+4*n>>2]=i,i=0;i<a.length;++i)d[n++]=a.charCodeAt(i);d[n]=0,t+=a.length+1})),0},N:(e,r)=>{var t=br();$[e>>2]=t.length;var a=0;return t.forEach((e=>a+=e.length+1)),$[r>>2]=a,0},S:()=>52,R:function(){return 70},Q:(e,r,t,a)=>{for(var n=0,i=0;i<t;i++){var o=$[r>>2],s=$[r+4>>2];r+=8;for(var u=0;u<s;u++){var f=v[o+u],l=Tr[e];0===f||10===f?((1===e?c:h)(Xe(l)),l.length=0):l.push(f)}n+=s}return $[a>>2]=n,0},H:gr};!async function(){function e(e){return Wr=e.exports,p=Wr.Z,P(),We=Wr.ca,O.unshift(Wr._),x--,o.monitorRunDependencies?.(x),0==x&&F&&(e=F,F=null,e()),Wr}x++,o.monitorRunDependencies?.(x);var r={a:jr};if(o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(n){h(`Module.instantiateWasm callback failed with error: ${n}`),a(n)}R??=U("arcgis-knowledge-client-core-simd.wasm")?"arcgis-knowledge-client-core-simd.wasm":o.locateFile?o.locateFile("arcgis-knowledge-client-core-simd.wasm",l):l+"arcgis-knowledge-client-core-simd.wasm";try{var t=await H(r);return e(t.instance),t}catch(n){a(n)}}();var Pr,Er=e=>(Er=Wr.$)(e),Or=e=>(Or=Wr.aa)(e),kr=e=>(kr=Wr.ba)(e),Sr=(e,r)=>(Sr=Wr.da)(e,r);function xr(){function e(){if(!Pr&&(Pr=!0,o.calledRun=!0,!j)){if(D(O),t(o),o.onRuntimeInitialized?.(),o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;){var e=o.postRun.shift();k.unshift(e)}D(k)}}if(!(0<x)){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)S();D(E),0<x||(o.setStatus?(o.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>o.setStatus("")),1),e()}),1)):e())}}if(F=function e(){Pr||xr(),Pr||(F=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);0<o.preInit.length;)o.preInit.pop()();return xr(),s},r.exports=i,r.exports.default=i),a.exports;var r,n,i}const i=r(n()),o=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));export{o as a};
|
|
5
|
+
import{c as e,g as r}from"./_commonjsHelpers.js";var t,a={exports:{}};function n(){return t||(t=1,r=a,n="undefined"!=typeof document?document.currentScript?.src:void 0,i=function(r={}){var t,a,i,o=r,s=new Promise(((e,r)=>{t=e,a=r})),u=Object.assign({},o),f="./this.program",l="";"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),n&&(l=n),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),i=async e=>{if((e=await fetch(e,{credentials:"same-origin"})).ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)};var c=o.print||console.log.bind(console),h=o.printErr||console.error.bind(console);Object.assign(o,u),u=null,o.thisProgram&&(f=o.thisProgram);var p,m,d,v,y,g,w,$,b,T,A,C,W=o.wasmBinary,j=!1;function P(){var e=p.buffer;o.HEAP8=d=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=$=new Uint32Array(e),o.HEAPF32=b=new Float32Array(e),o.HEAPF64=C=new Float64Array(e),o.HEAP64=T=new BigInt64Array(e),o.HEAPU64=A=new BigUint64Array(e)}var E=[],O=[],k=[];function S(){var e=o.preRun.shift();E.unshift(e)}var x=0,F=null;function _(e){throw o.onAbort?.(e),h(e="Aborted("+e+")"),j=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}var R,U=e=>e.startsWith("data:application/octet-stream;base64,");async function I(e){if(!W)try{var r=await i(e);return new Uint8Array(r)}catch{}if(e!=R||!W)throw"both async and sync fetching of the wasm failed";return e=new Uint8Array(W)}async function B(e,r){try{var t=await I(e);return await WebAssembly.instantiate(t,r)}catch(a){h(`failed to asynchronously prepare wasm: ${a}`),_(a)}}async function H(e){var r=R;if(!W&&"function"==typeof WebAssembly.instantiateStreaming&&!U(r)&&"function"==typeof fetch)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,e)}catch(a){h(`wasm streaming compile failed: ${a}`),h("falling back to ArrayBuffer instantiation")}return B(r,e)}class M{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var D=e=>{for(;0<e.length;)e.shift()(o)},V=o.noExitRuntime||!0;class z{constructor(e){this.ga=e-24}}var N={},q=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function L(e){return this.fromWireType($[e>>2])}var G,J,K,Q={},Y={},Z={},X=(e,r,t)=>{function a(r){if((r=t(r)).length!==e.length)throw new G("Mismatched type converter count");for(var a=0;a<e.length;++a)ae(e[a],r[a])}e.forEach((e=>Z[e]=r));var n=Array(r.length),i=[],o=0;r.forEach(((e,r)=>{Y.hasOwnProperty(e)?n[r]=Y[e]:(i.push(e),Q.hasOwnProperty(e)||(Q[e]=[]),Q[e].push((()=>{n[r]=Y[e],++o===i.length&&a(n)})))})),0===i.length&&a(n)},ee=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},re=e=>{for(var r="";v[e];)r+=J[v[e++]];return r};function te(e,r,t={}){var a=r.name;if(!e)throw new K(`type "${a}" must have a positive integer typeid pointer`);if(Y.hasOwnProperty(e)){if(t.La)return;throw new K(`Cannot register type '${a}' twice`)}Y[e]=r,delete Z[e],Q.hasOwnProperty(e)&&(r=Q[e],delete Q[e],r.forEach((e=>e())))}function ae(e,r,t={}){return te(e,r,t)}var ne=(e,r,t)=>{switch(r){case 1:return t?e=>d[e]:e=>v[e];case 2:return t?e=>y[e>>1]:e=>g[e>>1];case 4:return t?e=>w[e>>2]:e=>$[e>>2];case 8:return t?e=>T[e>>3]:e=>A[e>>3];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},ie=e=>{throw new K(e.ea.ha.fa.name+" instance already deleted")},oe=!1,se=()=>{},ue=(e,r,t)=>r===t?e:void 0===t.ka||null===(e=ue(e,r,t.ka))?null:t.Ea(e),fe={},le={},ce=(e,r)=>{if(void 0===r)throw new K("ptr should not be undefined");for(;e.ka;)r=e.ua(r),e=e.ka;return le[r]},he=(e,r)=>{if(!r.ha||!r.ga)throw new G("makeClassHandle requires ptr and ptrType");if(!!r.na!=!!r.ja)throw new G("Both smartPtrType and smartPtr must be specified");return r.count={value:1},pe(Object.create(e,{ea:{value:r,writable:!0}}))},pe=e=>"undefined"==typeof FinalizationRegistry?(pe=e=>e,e):(oe=new FinalizationRegistry((e=>{--(e=e.ea).count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga))})),se=e=>{oe.unregister(e)},(pe=e=>{var r=e.ea;return r.ja&&oe.register(e,{ea:r},e),e})(e));function me(){}var de=(e,r)=>Object.defineProperty(r,"name",{value:e}),ve=(e,r,t)=>{if(void 0===e[r].ia){var a=e[r];e[r]=function(...a){if(!e[r].ia.hasOwnProperty(a.length))throw new K(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${e[r].ia})!`);return e[r].ia[a.length].apply(this,a)},e[r].ia=[],e[r].ia[a.qa]=a}},ye=(e,r,t)=>{if(o.hasOwnProperty(e)){if(void 0===t||void 0!==o[e].ia&&void 0!==o[e].ia[t])throw new K(`Cannot register public name '${e}' twice`);if(ve(o,e,e),o[e].ia.hasOwnProperty(t))throw new K(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);o[e].ia[t]=r}else o[e]=r,o[e].qa=t},ge=e=>{var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${e}`:e};function we(e,r,t,a,n,i,o,s){this.name=e,this.constructor=r,this.pa=t,this.oa=a,this.ka=n,this.Ga=i,this.ua=o,this.Ea=s,this.Na=[]}var $e=(e,r,t)=>{for(;r!==t;){if(!r.ua)throw new K(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);e=r.ua(e),r=r.ka}return e};function be(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);return 0}if(!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);return $e(r.ea.ga,r.ea.ha.fa,this.fa)}function Te(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);if(this.xa){var t=this.za();return null!==e&&e.push(this.oa,t),t}return 0}if(!r||!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.wa&&r.ea.ha.wa)throw new K(`Cannot convert argument of type ${r.ea.na?r.ea.na.name:r.ea.ha.name} to parameter type ${this.name}`);if(t=$e(r.ea.ga,r.ea.ha.fa,this.fa),this.xa){if(void 0===r.ea.ja)throw new K("Passing raw pointer to smart pointer is illegal");switch(this.Sa){case 0:if(r.ea.na!==this)throw new K(`Cannot convert argument of type ${r.ea.na?r.ea.na.name:r.ea.ha.name} to parameter type ${this.name}`);t=r.ea.ja;break;case 1:t=r.ea.ja;break;case 2:if(r.ea.na===this)t=r.ea.ja;else{var a=r.clone();t=this.Oa(t,qe((()=>a.delete()))),null!==e&&e.push(this.oa,t)}break;default:throw new K("Unsupporting sharing policy")}}return t}function Ae(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);return 0}if(!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ea.ha.wa)throw new K(`Cannot convert argument of type ${r.ea.ha.name} to parameter type ${this.name}`);return $e(r.ea.ga,r.ea.ha.fa,this.fa)}function Ce(e,r,t,a,n,i,o,s,u,f,l){this.name=e,this.fa=r,this.ya=t,this.wa=a,this.xa=n,this.Ma=i,this.Sa=o,this.Ca=s,this.za=u,this.Oa=f,this.oa=l,n||void 0!==r.ka?this.toWireType=Te:(this.toWireType=a?be:Ae,this.ma=null)}var We,je,Pe=(e,r,t)=>{if(!o.hasOwnProperty(e))throw new G("Replacing nonexistent public symbol");void 0!==o[e].ia&&void 0!==t?o[e].ia[t]=r:(o[e]=r,o[e].qa=t)},Ee=[],Oe=(e,r)=>{e=re(e);var t=Ee[r];if(t||(r>=Ee.length&&(Ee.length=r+1),Ee[r]=t=We.get(r)),"function"!=typeof t)throw new K(`unknown function pointer with signature ${e}: ${r}`);return t},ke=e=>{e=Er(e);var r=re(e);return kr(e),r},Se=(e,r)=>{function t(e){n[e]||Y[e]||(Z[e]?Z[e].forEach(t):(a.push(e),n[e]=!0))}var a=[],n={};throw r.forEach(t),new je(`${e}: `+a.map(ke).join([", "]))};function xe(e){for(var r=1;r<e.length;++r)if(null!==e[r]&&void 0===e[r].ma)return!0;return!1}function Fe(e,r,t,a,n){var i=r.length;if(2>i)throw new K("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=null!==r[1]&&null!==t,s=xe(r),u="void"!==r[0].name,f=i-2,l=Array(f),c=[],h=[];return de(e,(function(...e){if(h.length=0,c.length=o?2:1,c[0]=n,o){var t=r[1].toWireType(h,this);c[1]=t}for(var i=0;i<f;++i)l[i]=r[i+2].toWireType(h,e[i]),c.push(l[i]);if(e=a(...c),s)q(h);else for(i=o?1:2;i<r.length;i++){var p=1===i?t:l[i-2];null!==r[i].ma&&r[i].ma(p)}return t=u?r[0].fromWireType(e):void 0}))}var _e,Re,Ue,Ie,Be=(e,r)=>{for(var t=[],a=0;a<e;a++)t.push($[r+4*a>>2]);return t},He=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},Me=(e,r,t)=>{if(!(e instanceof Object))throw new K(`${t} with invalid "this": ${e}`);if(!(e instanceof r.fa.constructor))throw new K(`${t} incompatible with "this" of type ${e.constructor.name}`);if(!e.ea.ga)throw new K(`cannot call emscripten binding method ${t} on deleted object`);return $e(e.ea.ga,e.ea.ha.fa,r.fa)},De=[],Ve=[],ze=e=>{9<e&&0===--Ve[e+1]&&(Ve[e]=void 0,De.push(e))},Ne=e=>{if(!e)throw new K("Cannot use deleted val. handle = "+e);return Ve[e]},qe=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=De.pop()||Ve.length;return Ve[r]=e,Ve[r+1]=1,r}},Le={name:"emscripten::val",fromWireType:e=>{var r=Ne(e);return ze(e),r},toWireType:(e,r)=>qe(r),la:8,readValueFromPointer:L,ma:null},Ge=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(d[e])}:function(e){return this.fromWireType(v[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>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Je=(e,r)=>{var t=Y[e];if(void 0===t)throw e=`${r} has unknown type ${ke(e)}`,new K(e);return t},Ke=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(b[e>>2])};case 8:return function(e){return this.fromWireType(C[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Qe=Object.assign({optional:!0},Le),Ye=(e,r,t)=>{var a=v;if(0<t){t=r+t-1;for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++n)),127>=i){if(r>=t)break;a[r++]=i}else{if(2047>=i){if(r+1>=t)break;a[r++]=192|i>>6}else{if(65535>=i){if(r+2>=t)break;a[r++]=224|i>>12}else{if(r+3>=t)break;a[r++]=240|i>>18,a[r++]=128|i>>12&63}a[r++]=128|i>>6&63}a[r++]=128|63&i}}a[r]=0}},Ze="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Xe=(e,r=0,t=NaN)=>{var a=r+t;for(t=r;e[t]&&!(t>=a);)++t;if(16<t-r&&e.buffer&&Ze)return Ze.decode(e.subarray(r,t));for(a="";r<t;){var n=e[r++];if(128&n){var i=63&e[r++];if(192==(224&n))a+=String.fromCharCode((31&n)<<6|i);else{var o=63&e[r++];65536>(n=224==(240&n)?(15&n)<<12|i<<6|o:(7&n)<<18|i<<12|o<<6|63&e[r++])?a+=String.fromCharCode(n):(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else a+=String.fromCharCode(n)}return a},er="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,rr=(e,r)=>{for(var t=e>>1,a=t+r/2;!(t>=a)&&g[t];)++t;if(32<(t<<=1)-e&&er)return er.decode(v.subarray(e,t));for(t="",a=0;!(a>=r/2);++a){var n=y[e+2*a>>1];if(0==n)break;t+=String.fromCharCode(n)}return t},tr=(e,r,t)=>{if(t??=2147483647,2>t)return 0;var a=r;t=(t-=2)<2*e.length?t/2:e.length;for(var n=0;n<t;++n)y[r>>1]=e.charCodeAt(n),r+=2;return y[r>>1]=0,r-a},ar=e=>2*e.length,nr=(e,r)=>{for(var t=0,a="";!(t>=r/4);){var n=w[e+4*t>>2];if(0==n)break;++t,65536<=n?(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n)):a+=String.fromCharCode(n)}return a},ir=(e,r,t)=>{if(t??=2147483647,4>t)return 0;var a=r;t=a+t-4;for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++n)),w[r>>2]=i,(r+=4)+4>t)break}return w[r>>2]=0,r-a},or=e=>{for(var r=0,t=0;t<e.length;++t){var a=e.charCodeAt(t);55296<=a&&57343>=a&&++t,r+=4}return r},sr=0,ur=(e,r,t)=>{var a=[];return e=e.toWireType(a,t),a.length&&($[r>>2]=qe(a)),e},fr=[],lr={},cr=e=>{var r=lr[e];return void 0===r?re(e):r},hr=()=>{function r(e){e.$$$embind_global$$$=e;var r="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return r||delete e.$$$embind_global$$$,r}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof e&&r(e)?$$$embind_global$$$=e:"object"==typeof self&&r(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},pr=e=>{var r=fr.length;return fr.push(e),r},mr=(e,r)=>{for(var t=Array(e),a=0;a<e;++a)t[a]=Je($[r+4*a>>2],"parameter "+a);return t},dr=Reflect.construct,vr={},yr=e=>{if(!(e instanceof M||"unwind"==e))throw e},gr=e=>{throw m=e,V||0<sr||(o.onExit?.(e),j=!0),new M(e)},wr=e=>{if(!j)try{if(e(),!(V||0<sr))try{m=e=m,gr(e)}catch(Ue){yr(Ue)}}catch(Ue){yr(Ue)}},$r={},br=()=>{if(!_e){var e,r={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",_:f||"./this.program"};for(e in $r)void 0===$r[e]?delete r[e]:r[e]=$r[e];var t=[];for(e in r)t.push(`${e}=${r[e]}`);_e=t}return _e},Tr=[null,[],[]];G=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}};for(var Ar=Array(256),Cr=0;256>Cr;++Cr)Ar[Cr]=String.fromCharCode(Cr);J=Ar,K=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(me.prototype,{isAliasOf:function(e){if(!(this instanceof me&&e instanceof me))return!1;var r=this.ea.ha.fa,t=this.ea.ga;e.ea=e.ea;var a=e.ea.ha.fa;for(e=e.ea.ga;r.ka;)t=r.ua(t),r=r.ka;for(;a.ka;)e=a.ua(e),a=a.ka;return r===a&&t===e},clone:function(){if(this.ea.ga||ie(this),this.ea.ta)return this.ea.count.value+=1,this;var e=pe,r=Object,t=r.create,a=Object.getPrototypeOf(this),n=this.ea;return(e=e(t.call(r,a,{ea:{value:{count:n.count,sa:n.sa,ta:n.ta,ga:n.ga,ha:n.ha,ja:n.ja,na:n.na}}}))).ea.count.value+=1,e.ea.sa=!1,e},delete(){if(this.ea.ga||ie(this),this.ea.sa&&!this.ea.ta)throw new K("Object already scheduled for deletion");se(this);var e=this.ea;--e.count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga)),this.ea.ta||(this.ea.ja=void 0,this.ea.ga=void 0)},isDeleted:function(){return!this.ea.ga},deleteLater:function(){if(this.ea.ga||ie(this),this.ea.sa&&!this.ea.ta)throw new K("Object already scheduled for deletion");return this.ea.sa=!0,this}}),Object.assign(Ce.prototype,{Ha(e){return this.Ca&&(e=this.Ca(e)),e},Aa(e){this.oa?.(e)},la:8,readValueFromPointer:L,fromWireType:function(e){function r(){return this.xa?he(this.fa.pa,{ha:this.Ma,ga:t,na:this,ja:e}):he(this.fa.pa,{ha:this,ga:e})}var t=this.Ha(e);if(!t)return this.Aa(e),null;var a=ce(this.fa,t);if(void 0!==a)return 0===a.ea.count.value?(a.ea.ga=t,a.ea.ja=e,a.clone()):(a=a.clone(),this.Aa(e),a);if(a=this.fa.Ga(t),!(a=fe[a]))return r.call(this);a=this.wa?a.Da:a.pointerType;var n=ue(t,this.fa,a.fa);return null===n?r.call(this):this.xa?he(a.fa.pa,{ha:a,ga:n,na:this,ja:e}):he(a.fa.pa,{ha:a,ga:n})}}),je=o.UnboundTypeError=(Re=Error,(Ie=de(Ue="UnboundTypeError",(function(e){this.name=Ue,this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Re.prototype),Ie.prototype.constructor=Ie,Ie.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Ie),Ve.push(0,1,void 0,1,null,1,!0,1,!1,1),o.count_emval_handles=()=>Ve.length/2-5-De.length;var Wr,jr={m:(e,r,t)=>{var a=new z(e);throw $[a.ga+16>>2]=0,$[a.ga+4>>2]=r,$[a.ga+8>>2]=t,e},O:()=>_(""),r:e=>{var r=N[e];delete N[e];var t=r.za,a=r.oa,n=r.Ba,i=n.map((e=>e.Ka)).concat(n.map((e=>e.Qa)));X([e],i,(e=>{var i={};return n.forEach(((r,t)=>{var a=e[t],o=r.Ia,s=r.Ja,u=e[t+n.length],f=r.Pa,l=r.Ra;i[r.Fa]={read:e=>a.fromWireType(o(s,e)),write:(e,r)=>{var t=[];f(l,e,u.toWireType(t,r)),q(t)}}})),[{name:r.name,fromWireType:e=>{var r,t={};for(r in i)t[r]=i[r].read(e);return a(e),t},toWireType:(e,r)=>{for(var n in i)if(!(n in r))throw new TypeError(`Missing field: "${n}"`);var o=t();for(n in i)i[n].write(o,r[n]);return null!==e&&e.push(a,o),o},la:8,readValueFromPointer:L,ma:a}]}))},E:(e,r,t)=>{ae(e,{name:r=re(r),fromWireType:e=>e,toWireType:function(e,r){if("bigint"!=typeof r&&"number"!=typeof r)throw new TypeError(`Cannot convert "${ee(r)}" to ${this.name}`);return"number"==typeof r&&(r=BigInt(r)),r},la:8,readValueFromPointer:ne(r,t,-1==r.indexOf("u")),ma:null})},V:(e,r,t,a)=>{ae(e,{name:r=re(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:a},la:8,readValueFromPointer:function(e){return this.fromWireType(v[e])},ma:null})},f:(e,r,t,a,n,i,o,s,u,f,l,c,h)=>{l=re(l),i=Oe(n,i),s&&=Oe(o,s),f&&=Oe(u,f),h=Oe(c,h);var p=ge(l);ye(p,(function(){Se(`Cannot construct ${l} due to unbound types`,[a])})),X([e,r,t],a?[a]:[],(r=>{if(r=r[0],a)var t=r.fa,n=t.pa;else n=me.prototype;r=de(l,(function(...e){if(Object.getPrototypeOf(this)!==o)throw new K("Use 'new' to construct "+l);if(void 0===c.ra)throw new K(l+" has no accessible constructor");var r=c.ra[e.length];if(void 0===r)throw new K(`Tried to invoke ctor of ${l} with invalid number of parameters (${e.length}) - expected (${Object.keys(c.ra).toString()}) parameters instead!`);return r.apply(this,e)}));var o=Object.create(n,{constructor:{value:r}});r.prototype=o;var u,c=new we(l,r,o,h,t,i,s,f);return c.ka&&((u=c.ka).va??(u.va=[]),c.ka.va.push(c)),t=new Ce(l,c,!0,!1,!1),u=new Ce(l+"*",c,!1,!1,!1),n=new Ce(l+" const*",c,!1,!0,!1),fe[e]={pointerType:u,Da:n},Pe(p,r),[t,u,n]}))},v:(e,r,t,a,n,i,o)=>{var s=Be(t,a);r=re(r),r=He(r),i=Oe(n,i),X([],[e],(e=>{function a(){Se(`Cannot call ${n} due to unbound types`,s)}var n=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=e.fa.constructor;return void 0===u[r]?(a.qa=t-1,u[r]=a):(ve(u,r,n),u[r].ia[t-1]=a),X([],s,(a=>{if(a=Fe(n,[a[0],null].concat(a.slice(1)),null,i,o),void 0===u[r].ia?(a.qa=t-1,u[r]=a):u[r].ia[t-1]=a,e.fa.va)for(const t of e.fa.va)t.constructor.hasOwnProperty(r)||(t.constructor[r]=a);return[]})),[]}))},g:(e,r,t,a,n,i)=>{var o=Be(r,t);n=Oe(a,n),X([],[e],(e=>{var t=`constructor ${(e=e[0]).name}`;if(void 0===e.fa.ra&&(e.fa.ra=[]),void 0!==e.fa.ra[r-1])throw new K(`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.fa.ra[r-1]=()=>{Se(`Cannot construct ${e.name} due to unbound types`,o)},X([],o,(a=>(a.splice(1,0,null),e.fa.ra[r-1]=Fe(t,a,null,n,i),[]))),[]}))},a:(e,r,t,a,n,i,o,s)=>{var u=Be(t,a);r=re(r),r=He(r),i=Oe(n,i),X([],[e],(e=>{function a(){Se(`Cannot call ${n} due to unbound types`,u)}var n=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.fa.Na.push(r);var f=e.fa.pa,l=f[r];return void 0===l||void 0===l.ia&&l.className!==e.name&&l.qa===t-2?(a.qa=t-2,a.className=e.name,f[r]=a):(ve(f,r,n),f[r].ia[t-2]=a),X([],u,(a=>(a=Fe(n,a,e,i,o),void 0===f[r].ia?(a.qa=t-2,f[r]=a):f[r].ia[t-2]=a,[]))),[]}))},c:(e,r,t,a,n,i,o,s,u,f)=>{r=re(r),n=Oe(a,n),X([],[e],(e=>{var a=`${(e=e[0]).name}.${r}`,l={get(){Se(`Cannot access ${a} due to unbound types`,[t,o])},enumerable:!0,configurable:!0};return l.set=u?()=>Se(`Cannot access ${a} due to unbound types`,[t,o]):()=>{throw new K(a+" is a read-only property")},Object.defineProperty(e.fa.pa,r,l),X([],u?[t,o]:[t],(t=>{var o=t[0],l={get(){var r=Me(this,e,a+" getter");return o.fromWireType(n(i,r))},enumerable:!0};if(u){u=Oe(s,u);var c=t[1];l.set=function(r){var t=Me(this,e,a+" setter"),n=[];u(f,t,c.toWireType(n,r)),q(n)}}return Object.defineProperty(e.fa.pa,r,l),[]})),[]}))},T:e=>ae(e,Le),n:(e,r,t,a)=>{function n(){}r=re(r),n.values={},ae(e,{name:r,constructor:n,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,la:8,readValueFromPointer:Ge(r,t,a),ma:null}),ye(r,n)},e:(e,r,t)=>{var a=Je(e,"enum");r=re(r),e=a.constructor,a=Object.create(a.constructor.prototype,{value:{value:t},constructor:{value:de(`${a.name}_${r}`,(function(){}))}}),e.values[t]=a,e[r]=a},D:(e,r,t)=>{ae(e,{name:r=re(r),fromWireType:e=>e,toWireType:(e,r)=>r,la:8,readValueFromPointer:Ke(r,t),ma:null})},X:(e,r,t,a,n,i)=>{var o=Be(r,t);e=re(e),e=He(e),n=Oe(a,n),ye(e,(function(){Se(`Cannot call ${e} due to unbound types`,o)}),r-1),X([],o,(t=>(Pe(e,Fe(e,[t[0],null].concat(t.slice(1)),null,n,i),r-1),[])))},w:(e,r,t,a,n)=>{if(r=re(r),-1===n&&(n=4294967295),n=e=>e,0===a){var i=32-8*t;n=e=>e<<i>>>i}var o=r.includes("unsigned")?function(e,r){return r>>>0}:function(e,r){return r};ae(e,{name:r,fromWireType:n,toWireType:o,la:8,readValueFromPointer:ne(r,t,0!==a),ma:null})},o:(e,r,t)=>{function a(e){return new n(d.buffer,$[e+4>>2],$[e>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];ae(e,{name:t=re(t),fromWireType:a,la:8,readValueFromPointer:a},{La:!0})},t:e=>{ae(e,Qe)},i:(e,r,t,a,n,i,o,s,u,f,l,c)=>{t=re(t),i=Oe(n,i),s=Oe(o,s),f=Oe(u,f),c=Oe(l,c),X([e],[r],(e=>(e=e[0],[new Ce(t,e.fa,!1,!1,!0,e,a,i,s,f,c)])))},U:(e,r)=>{ae(e,{name:r=re(r),fromWireType:function(e){for(var r,t=$[e>>2],a=e+4,n=a,i=0;i<=t;++i){var o=a+i;i!=t&&0!=v[o]||(n=n?Xe(v,n,o-n):"",void 0===r?r=n:(r+=String.fromCharCode(0),r+=n),n=o+1)}return kr(e),r},toWireType:function(e,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t,a="string"==typeof r;if(!(a||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array))throw new K("Cannot pass non-string to std::string");if(a)for(var n=t=0;n<r.length;++n){var i=r.charCodeAt(n);127>=i?t++:2047>=i?t+=2:55296<=i&&57343>=i?(t+=4,++n):t+=3}else t=r.length;if(i=(n=Or(4+t+1))+4,$[n>>2]=t,a)Ye(r,i,t+1);else if(a)for(a=0;a<t;++a){var o=r.charCodeAt(a);if(255<o)throw kr(i),new K("String has UTF-16 code units that do not fit in 8 bits");v[i+a]=o}else for(a=0;a<t;++a)v[i+a]=r[a];return null!==e&&e.push(kr,n),n},la:8,readValueFromPointer:L,ma(e){kr(e)}})},C:(e,r,t)=>{if(t=re(t),2===r)var a=rr,n=tr,i=ar,o=e=>g[e>>1];else 4===r&&(a=nr,n=ir,i=or,o=e=>$[e>>2]);ae(e,{name:t,fromWireType:e=>{for(var t,n=$[e>>2],i=e+4,s=0;s<=n;++s){var u=e+4+s*r;s!=n&&0!=o(u)||(i=a(i,u-i),void 0===t?t=i:(t+=String.fromCharCode(0),t+=i),i=u+r)}return kr(e),t},toWireType:(e,a)=>{if("string"!=typeof a)throw new K(`Cannot pass non-string to C++ string type ${t}`);var o=i(a),s=Or(4+o+r);return $[s>>2]=o/r,n(a,s+4,o+r),null!==e&&e.push(kr,s),s},la:8,readValueFromPointer:L,ma(e){kr(e)}})},s:(e,r,t,a,n,i)=>{N[e]={name:re(r),za:Oe(t,a),oa:Oe(n,i),Ba:[]}},j:(e,r,t,a,n,i,o,s,u,f)=>{N[e].Ba.push({Fa:re(r),Ka:t,Ia:Oe(a,n),Ja:i,Qa:o,Pa:Oe(s,u),Ra:f})},W:(e,r)=>{ae(e,{Ta:!0,name:r=re(r),la:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{V=!1,sr=0},l:(e,r,t)=>(e=Ne(e),r=Je(r,"emval::as"),ur(r,t,e)),y:(e,r)=>(e=Ne(e),(r=Je(r,"emval::as")).toWireType(null,e)),Y:(e,r,t,a)=>(e=fr[e])(null,r=Ne(r),t,a),B:(e,r,t,a,n)=>(e=fr[e])(r=Ne(r),r[t=cr(t)],a,n),b:ze,G:e=>0===e?qe(hr()):(e=cr(e),qe(hr()[e])),A:(e,r,t)=>{var a=mr(e,r),n=a.shift();e--;var i=Array(e);return r=`methodCaller<(${a.map((e=>e.name)).join(", ")}) => ${n.name}>`,pr(de(r,((r,o,s,u)=>{for(var f=0,l=0;l<e;++l)i[l]=a[l].readValueFromPointer(u+f),f+=a[l].la;return r=1===t?dr(o,i):o.apply(r,i),ur(n,s,r)})))},q:(e,r)=>(e=Ne(e),r=Ne(r),qe(e[r])),h:e=>{9<e&&(Ve[e+1]+=1)},I:(e,r)=>(e=Ne(e))instanceof(r=Ne(r)),u:e=>"number"==typeof(e=Ne(e)),x:e=>"string"==typeof(e=Ne(e)),F:()=>qe([]),p:e=>qe(cr(e)),k:e=>{var r=Ne(e);q(r),ze(e)},d:(e,r)=>(e=(e=Je(e,"_emval_take_value")).readValueFromPointer(r),qe(e)),z:e=>(e=Ne(e),qe(typeof e)),K:(e,r)=>{if(vr[e]&&(clearTimeout(vr[e].id),delete vr[e]),!r)return 0;var t=setTimeout((()=>{delete vr[e],wr((()=>Sr(e,performance.now())))}),r);return vr[e]={id:t,Ua:r},0},L:(e,r,t,a)=>{var n=(new Date).getFullYear(),i=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),$[e>>2]=60*Math.max(i,n),w[r>>2]=Number(i!=n),e=(r=e=>{var r=Math.abs(e);return`UTC${0<=e?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(i),r=r(n),n<i?(Ye(e,t,17),Ye(r,a,17)):(Ye(e,a,17),Ye(r,t,17))},P:e=>{var r=v.length;if(2147483648<(e>>>=0))return!1;for(var t=1;4>=t;t*=2){var a=r*(1+.2/t);a=Math.min(a,e+100663296);e:{a=(Math.min(2147483648,65536*Math.ceil(Math.max(e,a)/65536))-p.buffer.byteLength+65535)/65536|0;try{p.grow(a),P();var n=1;break e}catch(i){}n=void 0}if(n)return!0}return!1},M:(e,r)=>{var t=0;return br().forEach(((a,n)=>{var i=r+t;for(n=$[e+4*n>>2]=i,i=0;i<a.length;++i)d[n++]=a.charCodeAt(i);d[n]=0,t+=a.length+1})),0},N:(e,r)=>{var t=br();$[e>>2]=t.length;var a=0;return t.forEach((e=>a+=e.length+1)),$[r>>2]=a,0},S:()=>52,R:function(){return 70},Q:(e,r,t,a)=>{for(var n=0,i=0;i<t;i++){var o=$[r>>2],s=$[r+4>>2];r+=8;for(var u=0;u<s;u++){var f=v[o+u],l=Tr[e];0===f||10===f?((1===e?c:h)(Xe(l)),l.length=0):l.push(f)}n+=s}return $[a>>2]=n,0},H:gr};!async function(){function e(e){return Wr=e.exports,p=Wr.Z,P(),We=Wr.ca,O.unshift(Wr._),x--,o.monitorRunDependencies?.(x),0==x&&F&&(e=F,F=null,e()),Wr}x++,o.monitorRunDependencies?.(x);var r={a:jr};if(o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(n){h(`Module.instantiateWasm callback failed with error: ${n}`),a(n)}R??=U("arcgis-knowledge-client-core-simd.wasm")?"arcgis-knowledge-client-core-simd.wasm":o.locateFile?o.locateFile("arcgis-knowledge-client-core-simd.wasm",l):l+"arcgis-knowledge-client-core-simd.wasm";try{var t=await H(r);return e(t.instance),t}catch(n){a(n)}}();var Pr,Er=e=>(Er=Wr.$)(e),Or=e=>(Or=Wr.aa)(e),kr=e=>(kr=Wr.ba)(e),Sr=(e,r)=>(Sr=Wr.da)(e,r);function xr(){function e(){if(!Pr&&(Pr=!0,o.calledRun=!0,!j)){if(D(O),t(o),o.onRuntimeInitialized?.(),o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;){var e=o.postRun.shift();k.unshift(e)}D(k)}}if(!(0<x)){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)S();D(E),0<x||(o.setStatus?(o.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>o.setStatus("")),1),e()}),1)):e())}}if(F=function e(){Pr||xr(),Pr||(F=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);0<o.preInit.length;)o.preInit.pop()();return xr(),s},r.exports=i,r.exports.default=i),a.exports;var r,n,i}const i=r(n()),o=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));export{o as a};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{c as e,g as r}from"./_commonjsHelpers.js";var t,a={exports:{}};function n(){return t||(t=1,r=a,n="undefined"!=typeof document?document.currentScript?.src:void 0,i=function(r={}){var t,a,i,o=r,s=new Promise(((e,r)=>{t=e,a=r})),u=Object.assign({},o),f="./this.program",l="";"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),n&&(l=n),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),i=async e=>{if((e=await fetch(e,{credentials:"same-origin"})).ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)};var c=o.print||console.log.bind(console),h=o.printErr||console.error.bind(console);Object.assign(o,u),u=null,o.thisProgram&&(f=o.thisProgram);var p,m,d,v,y,g,w,$,b,T,A,C,W=o.wasmBinary,j=!1;function P(){var e=p.buffer;o.HEAP8=d=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=$=new Uint32Array(e),o.HEAPF32=b=new Float32Array(e),o.HEAPF64=C=new Float64Array(e),o.HEAP64=T=new BigInt64Array(e),o.HEAPU64=A=new BigUint64Array(e)}var E=[],O=[],k=[];function S(){var e=o.preRun.shift();E.unshift(e)}var x=0,F=null;function _(e){throw o.onAbort?.(e),h(e="Aborted("+e+")"),j=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}var R,U=e=>e.startsWith("data:application/octet-stream;base64,");async function I(e){if(!W)try{var r=await i(e);return new Uint8Array(r)}catch{}if(e!=R||!W)throw"both async and sync fetching of the wasm failed";return e=new Uint8Array(W)}async function B(e,r){try{var t=await I(e);return await WebAssembly.instantiate(t,r)}catch(a){h(`failed to asynchronously prepare wasm: ${a}`),_(a)}}async function H(e){var r=R;if(!W&&"function"==typeof WebAssembly.instantiateStreaming&&!U(r)&&"function"==typeof fetch)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,e)}catch(a){h(`wasm streaming compile failed: ${a}`),h("falling back to ArrayBuffer instantiation")}return B(r,e)}class M{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var D=e=>{for(;0<e.length;)e.shift()(o)},V=o.noExitRuntime||!0;class z{constructor(e){this.ga=e-24}}var N={},q=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function L(e){return this.fromWireType($[e>>2])}var G,J,K,Q={},Y={},Z={},X=(e,r,t)=>{function a(r){if((r=t(r)).length!==e.length)throw new G("Mismatched type converter count");for(var a=0;a<e.length;++a)ae(e[a],r[a])}e.forEach((e=>Z[e]=r));var n=Array(r.length),i=[],o=0;r.forEach(((e,r)=>{Y.hasOwnProperty(e)?n[r]=Y[e]:(i.push(e),Q.hasOwnProperty(e)||(Q[e]=[]),Q[e].push((()=>{n[r]=Y[e],++o===i.length&&a(n)})))})),0===i.length&&a(n)},ee=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},re=e=>{for(var r="";v[e];)r+=J[v[e++]];return r};function te(e,r,t={}){var a=r.name;if(!e)throw new K(`type "${a}" must have a positive integer typeid pointer`);if(Y.hasOwnProperty(e)){if(t.La)return;throw new K(`Cannot register type '${a}' twice`)}Y[e]=r,delete Z[e],Q.hasOwnProperty(e)&&(r=Q[e],delete Q[e],r.forEach((e=>e())))}function ae(e,r,t={}){return te(e,r,t)}var ne=(e,r,t)=>{switch(r){case 1:return t?e=>d[e]:e=>v[e];case 2:return t?e=>y[e>>1]:e=>g[e>>1];case 4:return t?e=>w[e>>2]:e=>$[e>>2];case 8:return t?e=>T[e>>3]:e=>A[e>>3];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},ie=e=>{throw new K(e.ea.ha.fa.name+" instance already deleted")},oe=!1,se=()=>{},ue=(e,r,t)=>r===t?e:void 0===t.ka||null===(e=ue(e,r,t.ka))?null:t.Ea(e),fe={},le={},ce=(e,r)=>{if(void 0===r)throw new K("ptr should not be undefined");for(;e.ka;)r=e.ua(r),e=e.ka;return le[r]},he=(e,r)=>{if(!r.ha||!r.ga)throw new G("makeClassHandle requires ptr and ptrType");if(!!r.na!=!!r.ja)throw new G("Both smartPtrType and smartPtr must be specified");return r.count={value:1},pe(Object.create(e,{ea:{value:r,writable:!0}}))},pe=e=>"undefined"==typeof FinalizationRegistry?(pe=e=>e,e):(oe=new FinalizationRegistry((e=>{--(e=e.ea).count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga))})),se=e=>{oe.unregister(e)},(pe=e=>{var r=e.ea;return r.ja&&oe.register(e,{ea:r},e),e})(e));function me(){}var de=(e,r)=>Object.defineProperty(r,"name",{value:e}),ve=(e,r,t)=>{if(void 0===e[r].ia){var a=e[r];e[r]=function(...a){if(!e[r].ia.hasOwnProperty(a.length))throw new K(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${e[r].ia})!`);return e[r].ia[a.length].apply(this,a)},e[r].ia=[],e[r].ia[a.qa]=a}},ye=(e,r,t)=>{if(o.hasOwnProperty(e)){if(void 0===t||void 0!==o[e].ia&&void 0!==o[e].ia[t])throw new K(`Cannot register public name '${e}' twice`);if(ve(o,e,e),o[e].ia.hasOwnProperty(t))throw new K(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);o[e].ia[t]=r}else o[e]=r,o[e].qa=t},ge=e=>{var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${e}`:e};function we(e,r,t,a,n,i,o,s){this.name=e,this.constructor=r,this.pa=t,this.oa=a,this.ka=n,this.Ga=i,this.ua=o,this.Ea=s,this.Na=[]}var $e=(e,r,t)=>{for(;r!==t;){if(!r.ua)throw new K(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);e=r.ua(e),r=r.ka}return e};function be(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);return 0}if(!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);return $e(r.ea.ga,r.ea.ha.fa,this.fa)}function Te(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);if(this.xa){var t=this.za();return null!==e&&e.push(this.oa,t),t}return 0}if(!r||!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.wa&&r.ea.ha.wa)throw new K(`Cannot convert argument of type ${r.ea.na?r.ea.na.name:r.ea.ha.name} to parameter type ${this.name}`);if(t=$e(r.ea.ga,r.ea.ha.fa,this.fa),this.xa){if(void 0===r.ea.ja)throw new K("Passing raw pointer to smart pointer is illegal");switch(this.Sa){case 0:if(r.ea.na!==this)throw new K(`Cannot convert argument of type ${r.ea.na?r.ea.na.name:r.ea.ha.name} to parameter type ${this.name}`);t=r.ea.ja;break;case 1:t=r.ea.ja;break;case 2:if(r.ea.na===this)t=r.ea.ja;else{var a=r.clone();t=this.Oa(t,qe((()=>a.delete()))),null!==e&&e.push(this.oa,t)}break;default:throw new K("Unsupporting sharing policy")}}return t}function Ae(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);return 0}if(!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ea.ha.wa)throw new K(`Cannot convert argument of type ${r.ea.ha.name} to parameter type ${this.name}`);return $e(r.ea.ga,r.ea.ha.fa,this.fa)}function Ce(e,r,t,a,n,i,o,s,u,f,l){this.name=e,this.fa=r,this.ya=t,this.wa=a,this.xa=n,this.Ma=i,this.Sa=o,this.Ca=s,this.za=u,this.Oa=f,this.oa=l,n||void 0!==r.ka?this.toWireType=Te:(this.toWireType=a?be:Ae,this.ma=null)}var We,je,Pe=(e,r,t)=>{if(!o.hasOwnProperty(e))throw new G("Replacing nonexistent public symbol");void 0!==o[e].ia&&void 0!==t?o[e].ia[t]=r:(o[e]=r,o[e].qa=t)},Ee=[],Oe=(e,r)=>{e=re(e);var t=Ee[r];if(t||(r>=Ee.length&&(Ee.length=r+1),Ee[r]=t=We.get(r)),"function"!=typeof t)throw new K(`unknown function pointer with signature ${e}: ${r}`);return t},ke=e=>{e=Er(e);var r=re(e);return kr(e),r},Se=(e,r)=>{function t(e){n[e]||Y[e]||(Z[e]?Z[e].forEach(t):(a.push(e),n[e]=!0))}var a=[],n={};throw r.forEach(t),new je(`${e}: `+a.map(ke).join([", "]))};function xe(e){for(var r=1;r<e.length;++r)if(null!==e[r]&&void 0===e[r].ma)return!0;return!1}function Fe(e,r,t,a,n){var i=r.length;if(2>i)throw new K("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=null!==r[1]&&null!==t,s=xe(r),u="void"!==r[0].name,f=i-2,l=Array(f),c=[],h=[];return de(e,(function(...e){if(h.length=0,c.length=o?2:1,c[0]=n,o){var t=r[1].toWireType(h,this);c[1]=t}for(var i=0;i<f;++i)l[i]=r[i+2].toWireType(h,e[i]),c.push(l[i]);if(e=a(...c),s)q(h);else for(i=o?1:2;i<r.length;i++){var p=1===i?t:l[i-2];null!==r[i].ma&&r[i].ma(p)}return t=u?r[0].fromWireType(e):void 0}))}var _e,Re,Ue,Ie,Be=(e,r)=>{for(var t=[],a=0;a<e;a++)t.push($[r+4*a>>2]);return t},He=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},Me=(e,r,t)=>{if(!(e instanceof Object))throw new K(`${t} with invalid "this": ${e}`);if(!(e instanceof r.fa.constructor))throw new K(`${t} incompatible with "this" of type ${e.constructor.name}`);if(!e.ea.ga)throw new K(`cannot call emscripten binding method ${t} on deleted object`);return $e(e.ea.ga,e.ea.ha.fa,r.fa)},De=[],Ve=[],ze=e=>{9<e&&0==--Ve[e+1]&&(Ve[e]=void 0,De.push(e))},Ne=e=>{if(!e)throw new K("Cannot use deleted val. handle = "+e);return Ve[e]},qe=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=De.pop()||Ve.length;return Ve[r]=e,Ve[r+1]=1,r}},Le={name:"emscripten::val",fromWireType:e=>{var r=Ne(e);return ze(e),r},toWireType:(e,r)=>qe(r),la:8,readValueFromPointer:L,ma:null},Ge=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(d[e])}:function(e){return this.fromWireType(v[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>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Je=(e,r)=>{var t=Y[e];if(void 0===t)throw e=`${r} has unknown type ${ke(e)}`,new K(e);return t},Ke=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(b[e>>2])};case 8:return function(e){return this.fromWireType(C[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Qe=Object.assign({optional:!0},Le),Ye=(e,r,t)=>{var a=v;if(0<t){t=r+t-1;for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++n)),127>=i){if(r>=t)break;a[r++]=i}else{if(2047>=i){if(r+1>=t)break;a[r++]=192|i>>6}else{if(65535>=i){if(r+2>=t)break;a[r++]=224|i>>12}else{if(r+3>=t)break;a[r++]=240|i>>18,a[r++]=128|i>>12&63}a[r++]=128|i>>6&63}a[r++]=128|63&i}}a[r]=0}},Ze="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Xe=(e,r=0,t=NaN)=>{var a=r+t;for(t=r;e[t]&&!(t>=a);)++t;if(16<t-r&&e.buffer&&Ze)return Ze.decode(e.subarray(r,t));for(a="";r<t;){var n=e[r++];if(128&n){var i=63&e[r++];if(192==(224&n))a+=String.fromCharCode((31&n)<<6|i);else{var o=63&e[r++];65536>(n=224==(240&n)?(15&n)<<12|i<<6|o:(7&n)<<18|i<<12|o<<6|63&e[r++])?a+=String.fromCharCode(n):(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else a+=String.fromCharCode(n)}return a},er="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,rr=(e,r)=>{for(var t=e>>1,a=t+r/2;!(t>=a)&&g[t];)++t;if(32<(t<<=1)-e&&er)return er.decode(v.subarray(e,t));for(t="",a=0;!(a>=r/2);++a){var n=y[e+2*a>>1];if(0==n)break;t+=String.fromCharCode(n)}return t},tr=(e,r,t)=>{if(t??=2147483647,2>t)return 0;var a=r;t=(t-=2)<2*e.length?t/2:e.length;for(var n=0;n<t;++n)y[r>>1]=e.charCodeAt(n),r+=2;return y[r>>1]=0,r-a},ar=e=>2*e.length,nr=(e,r)=>{for(var t=0,a="";!(t>=r/4);){var n=w[e+4*t>>2];if(0==n)break;++t,65536<=n?(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n)):a+=String.fromCharCode(n)}return a},ir=(e,r,t)=>{if(t??=2147483647,4>t)return 0;var a=r;t=a+t-4;for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++n)),w[r>>2]=i,(r+=4)+4>t)break}return w[r>>2]=0,r-a},or=e=>{for(var r=0,t=0;t<e.length;++t){var a=e.charCodeAt(t);55296<=a&&57343>=a&&++t,r+=4}return r},sr=0,ur=(e,r,t)=>{var a=[];return e=e.toWireType(a,t),a.length&&($[r>>2]=qe(a)),e},fr=[],lr={},cr=e=>{var r=lr[e];return void 0===r?re(e):r},hr=()=>{function r(e){e.$$$embind_global$$$=e;var r="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return r||delete e.$$$embind_global$$$,r}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof e&&r(e)?$$$embind_global$$$=e:"object"==typeof self&&r(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},pr=e=>{var r=fr.length;return fr.push(e),r},mr=(e,r)=>{for(var t=Array(e),a=0;a<e;++a)t[a]=Je($[r+4*a>>2],"parameter "+a);return t},dr=Reflect.construct,vr={},yr=e=>{if(!(e instanceof M||"unwind"==e))throw e},gr=e=>{throw m=e,V||0<sr||(o.onExit?.(e),j=!0),new M(e)},wr=e=>{if(!j)try{if(e(),!(V||0<sr))try{m=e=m,gr(e)}catch(Ue){yr(Ue)}}catch(Ue){yr(Ue)}},$r={},br=()=>{if(!_e){var e,r={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",_:f||"./this.program"};for(e in $r)void 0===$r[e]?delete r[e]:r[e]=$r[e];var t=[];for(e in r)t.push(`${e}=${r[e]}`);_e=t}return _e},Tr=[null,[],[]];G=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}};for(var Ar=Array(256),Cr=0;256>Cr;++Cr)Ar[Cr]=String.fromCharCode(Cr);J=Ar,K=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(me.prototype,{isAliasOf:function(e){if(!(this instanceof me&&e instanceof me))return!1;var r=this.ea.ha.fa,t=this.ea.ga;e.ea=e.ea;var a=e.ea.ha.fa;for(e=e.ea.ga;r.ka;)t=r.ua(t),r=r.ka;for(;a.ka;)e=a.ua(e),a=a.ka;return r===a&&t===e},clone:function(){if(this.ea.ga||ie(this),this.ea.ta)return this.ea.count.value+=1,this;var e=pe,r=Object,t=r.create,a=Object.getPrototypeOf(this),n=this.ea;return(e=e(t.call(r,a,{ea:{value:{count:n.count,sa:n.sa,ta:n.ta,ga:n.ga,ha:n.ha,ja:n.ja,na:n.na}}}))).ea.count.value+=1,e.ea.sa=!1,e},delete(){if(this.ea.ga||ie(this),this.ea.sa&&!this.ea.ta)throw new K("Object already scheduled for deletion");se(this);var e=this.ea;--e.count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga)),this.ea.ta||(this.ea.ja=void 0,this.ea.ga=void 0)},isDeleted:function(){return!this.ea.ga},deleteLater:function(){if(this.ea.ga||ie(this),this.ea.sa&&!this.ea.ta)throw new K("Object already scheduled for deletion");return this.ea.sa=!0,this}}),Object.assign(Ce.prototype,{Ha(e){return this.Ca&&(e=this.Ca(e)),e},Aa(e){this.oa?.(e)},la:8,readValueFromPointer:L,fromWireType:function(e){function r(){return this.xa?he(this.fa.pa,{ha:this.Ma,ga:t,na:this,ja:e}):he(this.fa.pa,{ha:this,ga:e})}var t=this.Ha(e);if(!t)return this.Aa(e),null;var a=ce(this.fa,t);if(void 0!==a)return 0===a.ea.count.value?(a.ea.ga=t,a.ea.ja=e,a.clone()):(a=a.clone(),this.Aa(e),a);if(a=this.fa.Ga(t),!(a=fe[a]))return r.call(this);a=this.wa?a.Da:a.pointerType;var n=ue(t,this.fa,a.fa);return null===n?r.call(this):this.xa?he(a.fa.pa,{ha:a,ga:n,na:this,ja:e}):he(a.fa.pa,{ha:a,ga:n})}}),je=o.UnboundTypeError=(Re=Error,(Ie=de(Ue="UnboundTypeError",(function(e){this.name=Ue,this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Re.prototype),Ie.prototype.constructor=Ie,Ie.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Ie),Ve.push(0,1,void 0,1,null,1,!0,1,!1,1),o.count_emval_handles=()=>Ve.length/2-5-De.length;var Wr,jr={m:(e,r,t)=>{var a=new z(e);throw $[a.ga+16>>2]=0,$[a.ga+4>>2]=r,$[a.ga+8>>2]=t,e},O:()=>_(""),r:e=>{var r=N[e];delete N[e];var t=r.za,a=r.oa,n=r.Ba,i=n.map((e=>e.Ka)).concat(n.map((e=>e.Qa)));X([e],i,(e=>{var i={};return n.forEach(((r,t)=>{var a=e[t],o=r.Ia,s=r.Ja,u=e[t+n.length],f=r.Pa,l=r.Ra;i[r.Fa]={read:e=>a.fromWireType(o(s,e)),write:(e,r)=>{var t=[];f(l,e,u.toWireType(t,r)),q(t)}}})),[{name:r.name,fromWireType:e=>{var r,t={};for(r in i)t[r]=i[r].read(e);return a(e),t},toWireType:(e,r)=>{for(var n in i)if(!(n in r))throw new TypeError(`Missing field: "${n}"`);var o=t();for(n in i)i[n].write(o,r[n]);return null!==e&&e.push(a,o),o},la:8,readValueFromPointer:L,ma:a}]}))},E:(e,r,t)=>{ae(e,{name:r=re(r),fromWireType:e=>e,toWireType:function(e,r){if("bigint"!=typeof r&&"number"!=typeof r)throw new TypeError(`Cannot convert "${ee(r)}" to ${this.name}`);return"number"==typeof r&&(r=BigInt(r)),r},la:8,readValueFromPointer:ne(r,t,-1==r.indexOf("u")),ma:null})},V:(e,r,t,a)=>{ae(e,{name:r=re(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:a},la:8,readValueFromPointer:function(e){return this.fromWireType(v[e])},ma:null})},f:(e,r,t,a,n,i,o,s,u,f,l,c,h)=>{l=re(l),i=Oe(n,i),s&&=Oe(o,s),f&&=Oe(u,f),h=Oe(c,h);var p=ge(l);ye(p,(function(){Se(`Cannot construct ${l} due to unbound types`,[a])})),X([e,r,t],a?[a]:[],(r=>{if(r=r[0],a)var t=r.fa,n=t.pa;else n=me.prototype;r=de(l,(function(...e){if(Object.getPrototypeOf(this)!==o)throw new K("Use 'new' to construct "+l);if(void 0===c.ra)throw new K(l+" has no accessible constructor");var r=c.ra[e.length];if(void 0===r)throw new K(`Tried to invoke ctor of ${l} with invalid number of parameters (${e.length}) - expected (${Object.keys(c.ra).toString()}) parameters instead!`);return r.apply(this,e)}));var o=Object.create(n,{constructor:{value:r}});r.prototype=o;var u,c=new we(l,r,o,h,t,i,s,f);return c.ka&&((u=c.ka).va??(u.va=[]),c.ka.va.push(c)),t=new Ce(l,c,!0,!1,!1),u=new Ce(l+"*",c,!1,!1,!1),n=new Ce(l+" const*",c,!1,!0,!1),fe[e]={pointerType:u,Da:n},Pe(p,r),[t,u,n]}))},v:(e,r,t,a,n,i,o)=>{var s=Be(t,a);r=re(r),r=He(r),i=Oe(n,i),X([],[e],(e=>{function a(){Se(`Cannot call ${n} due to unbound types`,s)}var n=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=e.fa.constructor;return void 0===u[r]?(a.qa=t-1,u[r]=a):(ve(u,r,n),u[r].ia[t-1]=a),X([],s,(a=>{if(a=Fe(n,[a[0],null].concat(a.slice(1)),null,i,o),void 0===u[r].ia?(a.qa=t-1,u[r]=a):u[r].ia[t-1]=a,e.fa.va)for(const t of e.fa.va)t.constructor.hasOwnProperty(r)||(t.constructor[r]=a);return[]})),[]}))},g:(e,r,t,a,n,i)=>{var o=Be(r,t);n=Oe(a,n),X([],[e],(e=>{var t=`constructor ${(e=e[0]).name}`;if(void 0===e.fa.ra&&(e.fa.ra=[]),void 0!==e.fa.ra[r-1])throw new K(`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.fa.ra[r-1]=()=>{Se(`Cannot construct ${e.name} due to unbound types`,o)},X([],o,(a=>(a.splice(1,0,null),e.fa.ra[r-1]=Fe(t,a,null,n,i),[]))),[]}))},a:(e,r,t,a,n,i,o,s)=>{var u=Be(t,a);r=re(r),r=He(r),i=Oe(n,i),X([],[e],(e=>{function a(){Se(`Cannot call ${n} due to unbound types`,u)}var n=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.fa.Na.push(r);var f=e.fa.pa,l=f[r];return void 0===l||void 0===l.ia&&l.className!==e.name&&l.qa===t-2?(a.qa=t-2,a.className=e.name,f[r]=a):(ve(f,r,n),f[r].ia[t-2]=a),X([],u,(a=>(a=Fe(n,a,e,i,o),void 0===f[r].ia?(a.qa=t-2,f[r]=a):f[r].ia[t-2]=a,[]))),[]}))},c:(e,r,t,a,n,i,o,s,u,f)=>{r=re(r),n=Oe(a,n),X([],[e],(e=>{var a=`${(e=e[0]).name}.${r}`,l={get(){Se(`Cannot access ${a} due to unbound types`,[t,o])},enumerable:!0,configurable:!0};return l.set=u?()=>Se(`Cannot access ${a} due to unbound types`,[t,o]):()=>{throw new K(a+" is a read-only property")},Object.defineProperty(e.fa.pa,r,l),X([],u?[t,o]:[t],(t=>{var o=t[0],l={get(){var r=Me(this,e,a+" getter");return o.fromWireType(n(i,r))},enumerable:!0};if(u){u=Oe(s,u);var c=t[1];l.set=function(r){var t=Me(this,e,a+" setter"),n=[];u(f,t,c.toWireType(n,r)),q(n)}}return Object.defineProperty(e.fa.pa,r,l),[]})),[]}))},T:e=>ae(e,Le),n:(e,r,t,a)=>{function n(){}r=re(r),n.values={},ae(e,{name:r,constructor:n,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,la:8,readValueFromPointer:Ge(r,t,a),ma:null}),ye(r,n)},e:(e,r,t)=>{var a=Je(e,"enum");r=re(r),e=a.constructor,a=Object.create(a.constructor.prototype,{value:{value:t},constructor:{value:de(`${a.name}_${r}`,(function(){}))}}),e.values[t]=a,e[r]=a},D:(e,r,t)=>{ae(e,{name:r=re(r),fromWireType:e=>e,toWireType:(e,r)=>r,la:8,readValueFromPointer:Ke(r,t),ma:null})},X:(e,r,t,a,n,i)=>{var o=Be(r,t);e=re(e),e=He(e),n=Oe(a,n),ye(e,(function(){Se(`Cannot call ${e} due to unbound types`,o)}),r-1),X([],o,(t=>(Pe(e,Fe(e,[t[0],null].concat(t.slice(1)),null,n,i),r-1),[])))},w:(e,r,t,a,n)=>{if(r=re(r),-1===n&&(n=4294967295),n=e=>e,0===a){var i=32-8*t;n=e=>e<<i>>>i}var o=r.includes("unsigned")?function(e,r){return r>>>0}:function(e,r){return r};ae(e,{name:r,fromWireType:n,toWireType:o,la:8,readValueFromPointer:ne(r,t,0!==a),ma:null})},o:(e,r,t)=>{function a(e){return new n(d.buffer,$[e+4>>2],$[e>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];ae(e,{name:t=re(t),fromWireType:a,la:8,readValueFromPointer:a},{La:!0})},t:e=>{ae(e,Qe)},i:(e,r,t,a,n,i,o,s,u,f,l,c)=>{t=re(t),i=Oe(n,i),s=Oe(o,s),f=Oe(u,f),c=Oe(l,c),X([e],[r],(e=>(e=e[0],[new Ce(t,e.fa,!1,!1,!0,e,a,i,s,f,c)])))},U:(e,r)=>{ae(e,{name:r=re(r),fromWireType:function(e){for(var r,t=$[e>>2],a=e+4,n=a,i=0;i<=t;++i){var o=a+i;i!=t&&0!=v[o]||(n=n?Xe(v,n,o-n):"",void 0===r?r=n:(r+=String.fromCharCode(0),r+=n),n=o+1)}return kr(e),r},toWireType:function(e,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t,a="string"==typeof r;if(!(a||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array))throw new K("Cannot pass non-string to std::string");if(a)for(var n=t=0;n<r.length;++n){var i=r.charCodeAt(n);127>=i?t++:2047>=i?t+=2:55296<=i&&57343>=i?(t+=4,++n):t+=3}else t=r.length;if(i=(n=Or(4+t+1))+4,$[n>>2]=t,a)Ye(r,i,t+1);else if(a)for(a=0;a<t;++a){var o=r.charCodeAt(a);if(255<o)throw kr(i),new K("String has UTF-16 code units that do not fit in 8 bits");v[i+a]=o}else for(a=0;a<t;++a)v[i+a]=r[a];return null!==e&&e.push(kr,n),n},la:8,readValueFromPointer:L,ma(e){kr(e)}})},C:(e,r,t)=>{if(t=re(t),2===r)var a=rr,n=tr,i=ar,o=e=>g[e>>1];else 4===r&&(a=nr,n=ir,i=or,o=e=>$[e>>2]);ae(e,{name:t,fromWireType:e=>{for(var t,n=$[e>>2],i=e+4,s=0;s<=n;++s){var u=e+4+s*r;s!=n&&0!=o(u)||(i=a(i,u-i),void 0===t?t=i:(t+=String.fromCharCode(0),t+=i),i=u+r)}return kr(e),t},toWireType:(e,a)=>{if("string"!=typeof a)throw new K(`Cannot pass non-string to C++ string type ${t}`);var o=i(a),s=Or(4+o+r);return $[s>>2]=o/r,n(a,s+4,o+r),null!==e&&e.push(kr,s),s},la:8,readValueFromPointer:L,ma(e){kr(e)}})},s:(e,r,t,a,n,i)=>{N[e]={name:re(r),za:Oe(t,a),oa:Oe(n,i),Ba:[]}},j:(e,r,t,a,n,i,o,s,u,f)=>{N[e].Ba.push({Fa:re(r),Ka:t,Ia:Oe(a,n),Ja:i,Qa:o,Pa:Oe(s,u),Ra:f})},W:(e,r)=>{ae(e,{Ta:!0,name:r=re(r),la:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{V=!1,sr=0},l:(e,r,t)=>(e=Ne(e),r=Je(r,"emval::as"),ur(r,t,e)),y:(e,r)=>(e=Ne(e),(r=Je(r,"emval::as")).toWireType(null,e)),Y:(e,r,t,a)=>(e=fr[e])(null,r=Ne(r),t,a),B:(e,r,t,a,n)=>(e=fr[e])(r=Ne(r),r[t=cr(t)],a,n),b:ze,G:e=>0===e?qe(hr()):(e=cr(e),qe(hr()[e])),A:(e,r,t)=>{var a=mr(e,r),n=a.shift();e--;var i=Array(e);return r=`methodCaller<(${a.map((e=>e.name)).join(", ")}) => ${n.name}>`,pr(de(r,((r,o,s,u)=>{for(var f=0,l=0;l<e;++l)i[l]=a[l].readValueFromPointer(u+f),f+=a[l].la;return r=1===t?dr(o,i):o.apply(r,i),ur(n,s,r)})))},q:(e,r)=>(e=Ne(e),r=Ne(r),qe(e[r])),h:e=>{9<e&&(Ve[e+1]+=1)},I:(e,r)=>(e=Ne(e))instanceof(r=Ne(r)),u:e=>"number"==typeof(e=Ne(e)),x:e=>"string"==typeof(e=Ne(e)),F:()=>qe([]),p:e=>qe(cr(e)),k:e=>{var r=Ne(e);q(r),ze(e)},d:(e,r)=>(e=(e=Je(e,"_emval_take_value")).readValueFromPointer(r),qe(e)),z:e=>(e=Ne(e),qe(typeof e)),K:(e,r)=>{if(vr[e]&&(clearTimeout(vr[e].id),delete vr[e]),!r)return 0;var t=setTimeout((()=>{delete vr[e],wr((()=>Sr(e,performance.now())))}),r);return vr[e]={id:t,Ua:r},0},L:(e,r,t,a)=>{var n=(new Date).getFullYear(),i=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),$[e>>2]=60*Math.max(i,n),w[r>>2]=Number(i!=n),e=(r=e=>{var r=Math.abs(e);return`UTC${0<=e?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(i),r=r(n),n<i?(Ye(e,t,17),Ye(r,a,17)):(Ye(e,a,17),Ye(r,t,17))},P:e=>{var r=v.length;if(2147483648<(e>>>=0))return!1;for(var t=1;4>=t;t*=2){var a=r*(1+.2/t);a=Math.min(a,e+100663296);e:{a=(Math.min(2147483648,65536*Math.ceil(Math.max(e,a)/65536))-p.buffer.byteLength+65535)/65536|0;try{p.grow(a),P();var n=1;break e}catch(i){}n=void 0}if(n)return!0}return!1},M:(e,r)=>{var t=0;return br().forEach(((a,n)=>{var i=r+t;for(n=$[e+4*n>>2]=i,i=0;i<a.length;++i)d[n++]=a.charCodeAt(i);d[n]=0,t+=a.length+1})),0},N:(e,r)=>{var t=br();$[e>>2]=t.length;var a=0;return t.forEach((e=>a+=e.length+1)),$[r>>2]=a,0},S:()=>52,R:function(){return 70},Q:(e,r,t,a)=>{for(var n=0,i=0;i<t;i++){var o=$[r>>2],s=$[r+4>>2];r+=8;for(var u=0;u<s;u++){var f=v[o+u],l=Tr[e];0===f||10===f?((1===e?c:h)(Xe(l)),l.length=0):l.push(f)}n+=s}return $[a>>2]=n,0},H:gr};!async function(){function e(e){return Wr=e.exports,p=Wr.Z,P(),We=Wr.ca,O.unshift(Wr._),x--,o.monitorRunDependencies?.(x),0==x&&F&&(e=F,F=null,e()),Wr}x++,o.monitorRunDependencies?.(x);var r={a:jr};if(o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(n){h(`Module.instantiateWasm callback failed with error: ${n}`),a(n)}R??=U("arcgis-knowledge-client-core.wasm")?"arcgis-knowledge-client-core.wasm":o.locateFile?o.locateFile("arcgis-knowledge-client-core.wasm",l):l+"arcgis-knowledge-client-core.wasm";try{var t=await H(r);return e(t.instance),t}catch(n){a(n)}}();var Pr,Er=e=>(Er=Wr.$)(e),Or=e=>(Or=Wr.aa)(e),kr=e=>(kr=Wr.ba)(e),Sr=(e,r)=>(Sr=Wr.da)(e,r);function xr(){function e(){if(!Pr&&(Pr=!0,o.calledRun=!0,!j)){if(D(O),t(o),o.onRuntimeInitialized?.(),o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;){var e=o.postRun.shift();k.unshift(e)}D(k)}}if(!(0<x)){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)S();D(E),0<x||(o.setStatus?(o.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>o.setStatus("")),1),e()}),1)):e())}}if(F=function e(){Pr||xr(),Pr||(F=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);0<o.preInit.length;)o.preInit.pop()();return xr(),s},r.exports=i,r.exports.default=i),a.exports;var r,n,i}const i=r(n()),o=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));export{o as a};
|
|
5
|
+
import{c as e,g as r}from"./_commonjsHelpers.js";var t,a={exports:{}};function n(){return t||(t=1,r=a,n="undefined"!=typeof document?document.currentScript?.src:void 0,i=function(r={}){var t,a,i,o=r,s=new Promise(((e,r)=>{t=e,a=r})),u=Object.assign({},o),f="./this.program",l="";"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),n&&(l=n),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),i=async e=>{if((e=await fetch(e,{credentials:"same-origin"})).ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)};var c=o.print||console.log.bind(console),h=o.printErr||console.error.bind(console);Object.assign(o,u),u=null,o.thisProgram&&(f=o.thisProgram);var p,m,d,v,y,g,w,$,b,T,A,C,W=o.wasmBinary,j=!1;function P(){var e=p.buffer;o.HEAP8=d=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=$=new Uint32Array(e),o.HEAPF32=b=new Float32Array(e),o.HEAPF64=C=new Float64Array(e),o.HEAP64=T=new BigInt64Array(e),o.HEAPU64=A=new BigUint64Array(e)}var E=[],O=[],k=[];function S(){var e=o.preRun.shift();E.unshift(e)}var x=0,F=null;function _(e){throw o.onAbort?.(e),h(e="Aborted("+e+")"),j=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}var R,U=e=>e.startsWith("data:application/octet-stream;base64,");async function I(e){if(!W)try{var r=await i(e);return new Uint8Array(r)}catch{}if(e!=R||!W)throw"both async and sync fetching of the wasm failed";return e=new Uint8Array(W)}async function B(e,r){try{var t=await I(e);return await WebAssembly.instantiate(t,r)}catch(a){h(`failed to asynchronously prepare wasm: ${a}`),_(a)}}async function H(e){var r=R;if(!W&&"function"==typeof WebAssembly.instantiateStreaming&&!U(r)&&"function"==typeof fetch)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,e)}catch(a){h(`wasm streaming compile failed: ${a}`),h("falling back to ArrayBuffer instantiation")}return B(r,e)}class M{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var D=e=>{for(;0<e.length;)e.shift()(o)},V=o.noExitRuntime||!0;class z{constructor(e){this.ga=e-24}}var N={},q=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function L(e){return this.fromWireType($[e>>2])}var G,J,K,Q={},Y={},Z={},X=(e,r,t)=>{function a(r){if((r=t(r)).length!==e.length)throw new G("Mismatched type converter count");for(var a=0;a<e.length;++a)ae(e[a],r[a])}e.forEach((e=>Z[e]=r));var n=Array(r.length),i=[],o=0;r.forEach(((e,r)=>{Y.hasOwnProperty(e)?n[r]=Y[e]:(i.push(e),Q.hasOwnProperty(e)||(Q[e]=[]),Q[e].push((()=>{n[r]=Y[e],++o===i.length&&a(n)})))})),0===i.length&&a(n)},ee=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},re=e=>{for(var r="";v[e];)r+=J[v[e++]];return r};function te(e,r,t={}){var a=r.name;if(!e)throw new K(`type "${a}" must have a positive integer typeid pointer`);if(Y.hasOwnProperty(e)){if(t.La)return;throw new K(`Cannot register type '${a}' twice`)}Y[e]=r,delete Z[e],Q.hasOwnProperty(e)&&(r=Q[e],delete Q[e],r.forEach((e=>e())))}function ae(e,r,t={}){return te(e,r,t)}var ne=(e,r,t)=>{switch(r){case 1:return t?e=>d[e]:e=>v[e];case 2:return t?e=>y[e>>1]:e=>g[e>>1];case 4:return t?e=>w[e>>2]:e=>$[e>>2];case 8:return t?e=>T[e>>3]:e=>A[e>>3];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},ie=e=>{throw new K(e.ea.ha.fa.name+" instance already deleted")},oe=!1,se=()=>{},ue=(e,r,t)=>r===t?e:void 0===t.ka||null===(e=ue(e,r,t.ka))?null:t.Ea(e),fe={},le={},ce=(e,r)=>{if(void 0===r)throw new K("ptr should not be undefined");for(;e.ka;)r=e.ua(r),e=e.ka;return le[r]},he=(e,r)=>{if(!r.ha||!r.ga)throw new G("makeClassHandle requires ptr and ptrType");if(!!r.na!=!!r.ja)throw new G("Both smartPtrType and smartPtr must be specified");return r.count={value:1},pe(Object.create(e,{ea:{value:r,writable:!0}}))},pe=e=>"undefined"==typeof FinalizationRegistry?(pe=e=>e,e):(oe=new FinalizationRegistry((e=>{--(e=e.ea).count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga))})),se=e=>{oe.unregister(e)},(pe=e=>{var r=e.ea;return r.ja&&oe.register(e,{ea:r},e),e})(e));function me(){}var de=(e,r)=>Object.defineProperty(r,"name",{value:e}),ve=(e,r,t)=>{if(void 0===e[r].ia){var a=e[r];e[r]=function(...a){if(!e[r].ia.hasOwnProperty(a.length))throw new K(`Function '${t}' called with an invalid number of arguments (${a.length}) - expects one of (${e[r].ia})!`);return e[r].ia[a.length].apply(this,a)},e[r].ia=[],e[r].ia[a.qa]=a}},ye=(e,r,t)=>{if(o.hasOwnProperty(e)){if(void 0===t||void 0!==o[e].ia&&void 0!==o[e].ia[t])throw new K(`Cannot register public name '${e}' twice`);if(ve(o,e,e),o[e].ia.hasOwnProperty(t))throw new K(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`);o[e].ia[t]=r}else o[e]=r,o[e].qa=t},ge=e=>{var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${e}`:e};function we(e,r,t,a,n,i,o,s){this.name=e,this.constructor=r,this.pa=t,this.oa=a,this.ka=n,this.Ga=i,this.ua=o,this.Ea=s,this.Na=[]}var $e=(e,r,t)=>{for(;r!==t;){if(!r.ua)throw new K(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);e=r.ua(e),r=r.ka}return e};function be(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);return 0}if(!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);return $e(r.ea.ga,r.ea.ha.fa,this.fa)}function Te(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);if(this.xa){var t=this.za();return null!==e&&e.push(this.oa,t),t}return 0}if(!r||!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.wa&&r.ea.ha.wa)throw new K(`Cannot convert argument of type ${r.ea.na?r.ea.na.name:r.ea.ha.name} to parameter type ${this.name}`);if(t=$e(r.ea.ga,r.ea.ha.fa,this.fa),this.xa){if(void 0===r.ea.ja)throw new K("Passing raw pointer to smart pointer is illegal");switch(this.Sa){case 0:if(r.ea.na!==this)throw new K(`Cannot convert argument of type ${r.ea.na?r.ea.na.name:r.ea.ha.name} to parameter type ${this.name}`);t=r.ea.ja;break;case 1:t=r.ea.ja;break;case 2:if(r.ea.na===this)t=r.ea.ja;else{var a=r.clone();t=this.Oa(t,qe((()=>a.delete()))),null!==e&&e.push(this.oa,t)}break;default:throw new K("Unsupporting sharing policy")}}return t}function Ae(e,r){if(null===r){if(this.ya)throw new K(`null is not a valid ${this.name}`);return 0}if(!r.ea)throw new K(`Cannot pass "${ee(r)}" as a ${this.name}`);if(!r.ea.ga)throw new K(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ea.ha.wa)throw new K(`Cannot convert argument of type ${r.ea.ha.name} to parameter type ${this.name}`);return $e(r.ea.ga,r.ea.ha.fa,this.fa)}function Ce(e,r,t,a,n,i,o,s,u,f,l){this.name=e,this.fa=r,this.ya=t,this.wa=a,this.xa=n,this.Ma=i,this.Sa=o,this.Ca=s,this.za=u,this.Oa=f,this.oa=l,n||void 0!==r.ka?this.toWireType=Te:(this.toWireType=a?be:Ae,this.ma=null)}var We,je,Pe=(e,r,t)=>{if(!o.hasOwnProperty(e))throw new G("Replacing nonexistent public symbol");void 0!==o[e].ia&&void 0!==t?o[e].ia[t]=r:(o[e]=r,o[e].qa=t)},Ee=[],Oe=(e,r)=>{e=re(e);var t=Ee[r];if(t||(r>=Ee.length&&(Ee.length=r+1),Ee[r]=t=We.get(r)),"function"!=typeof t)throw new K(`unknown function pointer with signature ${e}: ${r}`);return t},ke=e=>{e=Er(e);var r=re(e);return kr(e),r},Se=(e,r)=>{function t(e){n[e]||Y[e]||(Z[e]?Z[e].forEach(t):(a.push(e),n[e]=!0))}var a=[],n={};throw r.forEach(t),new je(`${e}: `+a.map(ke).join([", "]))};function xe(e){for(var r=1;r<e.length;++r)if(null!==e[r]&&void 0===e[r].ma)return!0;return!1}function Fe(e,r,t,a,n){var i=r.length;if(2>i)throw new K("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=null!==r[1]&&null!==t,s=xe(r),u="void"!==r[0].name,f=i-2,l=Array(f),c=[],h=[];return de(e,(function(...e){if(h.length=0,c.length=o?2:1,c[0]=n,o){var t=r[1].toWireType(h,this);c[1]=t}for(var i=0;i<f;++i)l[i]=r[i+2].toWireType(h,e[i]),c.push(l[i]);if(e=a(...c),s)q(h);else for(i=o?1:2;i<r.length;i++){var p=1===i?t:l[i-2];null!==r[i].ma&&r[i].ma(p)}return t=u?r[0].fromWireType(e):void 0}))}var _e,Re,Ue,Ie,Be=(e,r)=>{for(var t=[],a=0;a<e;a++)t.push($[r+4*a>>2]);return t},He=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},Me=(e,r,t)=>{if(!(e instanceof Object))throw new K(`${t} with invalid "this": ${e}`);if(!(e instanceof r.fa.constructor))throw new K(`${t} incompatible with "this" of type ${e.constructor.name}`);if(!e.ea.ga)throw new K(`cannot call emscripten binding method ${t} on deleted object`);return $e(e.ea.ga,e.ea.ha.fa,r.fa)},De=[],Ve=[],ze=e=>{9<e&&0===--Ve[e+1]&&(Ve[e]=void 0,De.push(e))},Ne=e=>{if(!e)throw new K("Cannot use deleted val. handle = "+e);return Ve[e]},qe=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=De.pop()||Ve.length;return Ve[r]=e,Ve[r+1]=1,r}},Le={name:"emscripten::val",fromWireType:e=>{var r=Ne(e);return ze(e),r},toWireType:(e,r)=>qe(r),la:8,readValueFromPointer:L,ma:null},Ge=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(d[e])}:function(e){return this.fromWireType(v[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>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Je=(e,r)=>{var t=Y[e];if(void 0===t)throw e=`${r} has unknown type ${ke(e)}`,new K(e);return t},Ke=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(b[e>>2])};case 8:return function(e){return this.fromWireType(C[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Qe=Object.assign({optional:!0},Le),Ye=(e,r,t)=>{var a=v;if(0<t){t=r+t-1;for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++n)),127>=i){if(r>=t)break;a[r++]=i}else{if(2047>=i){if(r+1>=t)break;a[r++]=192|i>>6}else{if(65535>=i){if(r+2>=t)break;a[r++]=224|i>>12}else{if(r+3>=t)break;a[r++]=240|i>>18,a[r++]=128|i>>12&63}a[r++]=128|i>>6&63}a[r++]=128|63&i}}a[r]=0}},Ze="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Xe=(e,r=0,t=NaN)=>{var a=r+t;for(t=r;e[t]&&!(t>=a);)++t;if(16<t-r&&e.buffer&&Ze)return Ze.decode(e.subarray(r,t));for(a="";r<t;){var n=e[r++];if(128&n){var i=63&e[r++];if(192==(224&n))a+=String.fromCharCode((31&n)<<6|i);else{var o=63&e[r++];65536>(n=224==(240&n)?(15&n)<<12|i<<6|o:(7&n)<<18|i<<12|o<<6|63&e[r++])?a+=String.fromCharCode(n):(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else a+=String.fromCharCode(n)}return a},er="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,rr=(e,r)=>{for(var t=e>>1,a=t+r/2;!(t>=a)&&g[t];)++t;if(32<(t<<=1)-e&&er)return er.decode(v.subarray(e,t));for(t="",a=0;!(a>=r/2);++a){var n=y[e+2*a>>1];if(0==n)break;t+=String.fromCharCode(n)}return t},tr=(e,r,t)=>{if(t??=2147483647,2>t)return 0;var a=r;t=(t-=2)<2*e.length?t/2:e.length;for(var n=0;n<t;++n)y[r>>1]=e.charCodeAt(n),r+=2;return y[r>>1]=0,r-a},ar=e=>2*e.length,nr=(e,r)=>{for(var t=0,a="";!(t>=r/4);){var n=w[e+4*t>>2];if(0==n)break;++t,65536<=n?(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n)):a+=String.fromCharCode(n)}return a},ir=(e,r,t)=>{if(t??=2147483647,4>t)return 0;var a=r;t=a+t-4;for(var n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++n)),w[r>>2]=i,(r+=4)+4>t)break}return w[r>>2]=0,r-a},or=e=>{for(var r=0,t=0;t<e.length;++t){var a=e.charCodeAt(t);55296<=a&&57343>=a&&++t,r+=4}return r},sr=0,ur=(e,r,t)=>{var a=[];return e=e.toWireType(a,t),a.length&&($[r>>2]=qe(a)),e},fr=[],lr={},cr=e=>{var r=lr[e];return void 0===r?re(e):r},hr=()=>{function r(e){e.$$$embind_global$$$=e;var r="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return r||delete e.$$$embind_global$$$,r}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof e&&r(e)?$$$embind_global$$$=e:"object"==typeof self&&r(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},pr=e=>{var r=fr.length;return fr.push(e),r},mr=(e,r)=>{for(var t=Array(e),a=0;a<e;++a)t[a]=Je($[r+4*a>>2],"parameter "+a);return t},dr=Reflect.construct,vr={},yr=e=>{if(!(e instanceof M||"unwind"==e))throw e},gr=e=>{throw m=e,V||0<sr||(o.onExit?.(e),j=!0),new M(e)},wr=e=>{if(!j)try{if(e(),!(V||0<sr))try{m=e=m,gr(e)}catch(Ue){yr(Ue)}}catch(Ue){yr(Ue)}},$r={},br=()=>{if(!_e){var e,r={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",_:f||"./this.program"};for(e in $r)void 0===$r[e]?delete r[e]:r[e]=$r[e];var t=[];for(e in r)t.push(`${e}=${r[e]}`);_e=t}return _e},Tr=[null,[],[]];G=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}};for(var Ar=Array(256),Cr=0;256>Cr;++Cr)Ar[Cr]=String.fromCharCode(Cr);J=Ar,K=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(me.prototype,{isAliasOf:function(e){if(!(this instanceof me&&e instanceof me))return!1;var r=this.ea.ha.fa,t=this.ea.ga;e.ea=e.ea;var a=e.ea.ha.fa;for(e=e.ea.ga;r.ka;)t=r.ua(t),r=r.ka;for(;a.ka;)e=a.ua(e),a=a.ka;return r===a&&t===e},clone:function(){if(this.ea.ga||ie(this),this.ea.ta)return this.ea.count.value+=1,this;var e=pe,r=Object,t=r.create,a=Object.getPrototypeOf(this),n=this.ea;return(e=e(t.call(r,a,{ea:{value:{count:n.count,sa:n.sa,ta:n.ta,ga:n.ga,ha:n.ha,ja:n.ja,na:n.na}}}))).ea.count.value+=1,e.ea.sa=!1,e},delete(){if(this.ea.ga||ie(this),this.ea.sa&&!this.ea.ta)throw new K("Object already scheduled for deletion");se(this);var e=this.ea;--e.count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga)),this.ea.ta||(this.ea.ja=void 0,this.ea.ga=void 0)},isDeleted:function(){return!this.ea.ga},deleteLater:function(){if(this.ea.ga||ie(this),this.ea.sa&&!this.ea.ta)throw new K("Object already scheduled for deletion");return this.ea.sa=!0,this}}),Object.assign(Ce.prototype,{Ha(e){return this.Ca&&(e=this.Ca(e)),e},Aa(e){this.oa?.(e)},la:8,readValueFromPointer:L,fromWireType:function(e){function r(){return this.xa?he(this.fa.pa,{ha:this.Ma,ga:t,na:this,ja:e}):he(this.fa.pa,{ha:this,ga:e})}var t=this.Ha(e);if(!t)return this.Aa(e),null;var a=ce(this.fa,t);if(void 0!==a)return 0===a.ea.count.value?(a.ea.ga=t,a.ea.ja=e,a.clone()):(a=a.clone(),this.Aa(e),a);if(a=this.fa.Ga(t),!(a=fe[a]))return r.call(this);a=this.wa?a.Da:a.pointerType;var n=ue(t,this.fa,a.fa);return null===n?r.call(this):this.xa?he(a.fa.pa,{ha:a,ga:n,na:this,ja:e}):he(a.fa.pa,{ha:a,ga:n})}}),je=o.UnboundTypeError=(Re=Error,(Ie=de(Ue="UnboundTypeError",(function(e){this.name=Ue,this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Re.prototype),Ie.prototype.constructor=Ie,Ie.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Ie),Ve.push(0,1,void 0,1,null,1,!0,1,!1,1),o.count_emval_handles=()=>Ve.length/2-5-De.length;var Wr,jr={m:(e,r,t)=>{var a=new z(e);throw $[a.ga+16>>2]=0,$[a.ga+4>>2]=r,$[a.ga+8>>2]=t,e},O:()=>_(""),r:e=>{var r=N[e];delete N[e];var t=r.za,a=r.oa,n=r.Ba,i=n.map((e=>e.Ka)).concat(n.map((e=>e.Qa)));X([e],i,(e=>{var i={};return n.forEach(((r,t)=>{var a=e[t],o=r.Ia,s=r.Ja,u=e[t+n.length],f=r.Pa,l=r.Ra;i[r.Fa]={read:e=>a.fromWireType(o(s,e)),write:(e,r)=>{var t=[];f(l,e,u.toWireType(t,r)),q(t)}}})),[{name:r.name,fromWireType:e=>{var r,t={};for(r in i)t[r]=i[r].read(e);return a(e),t},toWireType:(e,r)=>{for(var n in i)if(!(n in r))throw new TypeError(`Missing field: "${n}"`);var o=t();for(n in i)i[n].write(o,r[n]);return null!==e&&e.push(a,o),o},la:8,readValueFromPointer:L,ma:a}]}))},E:(e,r,t)=>{ae(e,{name:r=re(r),fromWireType:e=>e,toWireType:function(e,r){if("bigint"!=typeof r&&"number"!=typeof r)throw new TypeError(`Cannot convert "${ee(r)}" to ${this.name}`);return"number"==typeof r&&(r=BigInt(r)),r},la:8,readValueFromPointer:ne(r,t,-1==r.indexOf("u")),ma:null})},V:(e,r,t,a)=>{ae(e,{name:r=re(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:a},la:8,readValueFromPointer:function(e){return this.fromWireType(v[e])},ma:null})},f:(e,r,t,a,n,i,o,s,u,f,l,c,h)=>{l=re(l),i=Oe(n,i),s&&=Oe(o,s),f&&=Oe(u,f),h=Oe(c,h);var p=ge(l);ye(p,(function(){Se(`Cannot construct ${l} due to unbound types`,[a])})),X([e,r,t],a?[a]:[],(r=>{if(r=r[0],a)var t=r.fa,n=t.pa;else n=me.prototype;r=de(l,(function(...e){if(Object.getPrototypeOf(this)!==o)throw new K("Use 'new' to construct "+l);if(void 0===c.ra)throw new K(l+" has no accessible constructor");var r=c.ra[e.length];if(void 0===r)throw new K(`Tried to invoke ctor of ${l} with invalid number of parameters (${e.length}) - expected (${Object.keys(c.ra).toString()}) parameters instead!`);return r.apply(this,e)}));var o=Object.create(n,{constructor:{value:r}});r.prototype=o;var u,c=new we(l,r,o,h,t,i,s,f);return c.ka&&((u=c.ka).va??(u.va=[]),c.ka.va.push(c)),t=new Ce(l,c,!0,!1,!1),u=new Ce(l+"*",c,!1,!1,!1),n=new Ce(l+" const*",c,!1,!0,!1),fe[e]={pointerType:u,Da:n},Pe(p,r),[t,u,n]}))},v:(e,r,t,a,n,i,o)=>{var s=Be(t,a);r=re(r),r=He(r),i=Oe(n,i),X([],[e],(e=>{function a(){Se(`Cannot call ${n} due to unbound types`,s)}var n=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=e.fa.constructor;return void 0===u[r]?(a.qa=t-1,u[r]=a):(ve(u,r,n),u[r].ia[t-1]=a),X([],s,(a=>{if(a=Fe(n,[a[0],null].concat(a.slice(1)),null,i,o),void 0===u[r].ia?(a.qa=t-1,u[r]=a):u[r].ia[t-1]=a,e.fa.va)for(const t of e.fa.va)t.constructor.hasOwnProperty(r)||(t.constructor[r]=a);return[]})),[]}))},g:(e,r,t,a,n,i)=>{var o=Be(r,t);n=Oe(a,n),X([],[e],(e=>{var t=`constructor ${(e=e[0]).name}`;if(void 0===e.fa.ra&&(e.fa.ra=[]),void 0!==e.fa.ra[r-1])throw new K(`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.fa.ra[r-1]=()=>{Se(`Cannot construct ${e.name} due to unbound types`,o)},X([],o,(a=>(a.splice(1,0,null),e.fa.ra[r-1]=Fe(t,a,null,n,i),[]))),[]}))},a:(e,r,t,a,n,i,o,s)=>{var u=Be(t,a);r=re(r),r=He(r),i=Oe(n,i),X([],[e],(e=>{function a(){Se(`Cannot call ${n} due to unbound types`,u)}var n=`${(e=e[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.fa.Na.push(r);var f=e.fa.pa,l=f[r];return void 0===l||void 0===l.ia&&l.className!==e.name&&l.qa===t-2?(a.qa=t-2,a.className=e.name,f[r]=a):(ve(f,r,n),f[r].ia[t-2]=a),X([],u,(a=>(a=Fe(n,a,e,i,o),void 0===f[r].ia?(a.qa=t-2,f[r]=a):f[r].ia[t-2]=a,[]))),[]}))},c:(e,r,t,a,n,i,o,s,u,f)=>{r=re(r),n=Oe(a,n),X([],[e],(e=>{var a=`${(e=e[0]).name}.${r}`,l={get(){Se(`Cannot access ${a} due to unbound types`,[t,o])},enumerable:!0,configurable:!0};return l.set=u?()=>Se(`Cannot access ${a} due to unbound types`,[t,o]):()=>{throw new K(a+" is a read-only property")},Object.defineProperty(e.fa.pa,r,l),X([],u?[t,o]:[t],(t=>{var o=t[0],l={get(){var r=Me(this,e,a+" getter");return o.fromWireType(n(i,r))},enumerable:!0};if(u){u=Oe(s,u);var c=t[1];l.set=function(r){var t=Me(this,e,a+" setter"),n=[];u(f,t,c.toWireType(n,r)),q(n)}}return Object.defineProperty(e.fa.pa,r,l),[]})),[]}))},T:e=>ae(e,Le),n:(e,r,t,a)=>{function n(){}r=re(r),n.values={},ae(e,{name:r,constructor:n,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,la:8,readValueFromPointer:Ge(r,t,a),ma:null}),ye(r,n)},e:(e,r,t)=>{var a=Je(e,"enum");r=re(r),e=a.constructor,a=Object.create(a.constructor.prototype,{value:{value:t},constructor:{value:de(`${a.name}_${r}`,(function(){}))}}),e.values[t]=a,e[r]=a},D:(e,r,t)=>{ae(e,{name:r=re(r),fromWireType:e=>e,toWireType:(e,r)=>r,la:8,readValueFromPointer:Ke(r,t),ma:null})},X:(e,r,t,a,n,i)=>{var o=Be(r,t);e=re(e),e=He(e),n=Oe(a,n),ye(e,(function(){Se(`Cannot call ${e} due to unbound types`,o)}),r-1),X([],o,(t=>(Pe(e,Fe(e,[t[0],null].concat(t.slice(1)),null,n,i),r-1),[])))},w:(e,r,t,a,n)=>{if(r=re(r),-1===n&&(n=4294967295),n=e=>e,0===a){var i=32-8*t;n=e=>e<<i>>>i}var o=r.includes("unsigned")?function(e,r){return r>>>0}:function(e,r){return r};ae(e,{name:r,fromWireType:n,toWireType:o,la:8,readValueFromPointer:ne(r,t,0!==a),ma:null})},o:(e,r,t)=>{function a(e){return new n(d.buffer,$[e+4>>2],$[e>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];ae(e,{name:t=re(t),fromWireType:a,la:8,readValueFromPointer:a},{La:!0})},t:e=>{ae(e,Qe)},i:(e,r,t,a,n,i,o,s,u,f,l,c)=>{t=re(t),i=Oe(n,i),s=Oe(o,s),f=Oe(u,f),c=Oe(l,c),X([e],[r],(e=>(e=e[0],[new Ce(t,e.fa,!1,!1,!0,e,a,i,s,f,c)])))},U:(e,r)=>{ae(e,{name:r=re(r),fromWireType:function(e){for(var r,t=$[e>>2],a=e+4,n=a,i=0;i<=t;++i){var o=a+i;i!=t&&0!=v[o]||(n=n?Xe(v,n,o-n):"",void 0===r?r=n:(r+=String.fromCharCode(0),r+=n),n=o+1)}return kr(e),r},toWireType:function(e,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t,a="string"==typeof r;if(!(a||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array))throw new K("Cannot pass non-string to std::string");if(a)for(var n=t=0;n<r.length;++n){var i=r.charCodeAt(n);127>=i?t++:2047>=i?t+=2:55296<=i&&57343>=i?(t+=4,++n):t+=3}else t=r.length;if(i=(n=Or(4+t+1))+4,$[n>>2]=t,a)Ye(r,i,t+1);else if(a)for(a=0;a<t;++a){var o=r.charCodeAt(a);if(255<o)throw kr(i),new K("String has UTF-16 code units that do not fit in 8 bits");v[i+a]=o}else for(a=0;a<t;++a)v[i+a]=r[a];return null!==e&&e.push(kr,n),n},la:8,readValueFromPointer:L,ma(e){kr(e)}})},C:(e,r,t)=>{if(t=re(t),2===r)var a=rr,n=tr,i=ar,o=e=>g[e>>1];else 4===r&&(a=nr,n=ir,i=or,o=e=>$[e>>2]);ae(e,{name:t,fromWireType:e=>{for(var t,n=$[e>>2],i=e+4,s=0;s<=n;++s){var u=e+4+s*r;s!=n&&0!=o(u)||(i=a(i,u-i),void 0===t?t=i:(t+=String.fromCharCode(0),t+=i),i=u+r)}return kr(e),t},toWireType:(e,a)=>{if("string"!=typeof a)throw new K(`Cannot pass non-string to C++ string type ${t}`);var o=i(a),s=Or(4+o+r);return $[s>>2]=o/r,n(a,s+4,o+r),null!==e&&e.push(kr,s),s},la:8,readValueFromPointer:L,ma(e){kr(e)}})},s:(e,r,t,a,n,i)=>{N[e]={name:re(r),za:Oe(t,a),oa:Oe(n,i),Ba:[]}},j:(e,r,t,a,n,i,o,s,u,f)=>{N[e].Ba.push({Fa:re(r),Ka:t,Ia:Oe(a,n),Ja:i,Qa:o,Pa:Oe(s,u),Ra:f})},W:(e,r)=>{ae(e,{Ta:!0,name:r=re(r),la:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{V=!1,sr=0},l:(e,r,t)=>(e=Ne(e),r=Je(r,"emval::as"),ur(r,t,e)),y:(e,r)=>(e=Ne(e),(r=Je(r,"emval::as")).toWireType(null,e)),Y:(e,r,t,a)=>(e=fr[e])(null,r=Ne(r),t,a),B:(e,r,t,a,n)=>(e=fr[e])(r=Ne(r),r[t=cr(t)],a,n),b:ze,G:e=>0===e?qe(hr()):(e=cr(e),qe(hr()[e])),A:(e,r,t)=>{var a=mr(e,r),n=a.shift();e--;var i=Array(e);return r=`methodCaller<(${a.map((e=>e.name)).join(", ")}) => ${n.name}>`,pr(de(r,((r,o,s,u)=>{for(var f=0,l=0;l<e;++l)i[l]=a[l].readValueFromPointer(u+f),f+=a[l].la;return r=1===t?dr(o,i):o.apply(r,i),ur(n,s,r)})))},q:(e,r)=>(e=Ne(e),r=Ne(r),qe(e[r])),h:e=>{9<e&&(Ve[e+1]+=1)},I:(e,r)=>(e=Ne(e))instanceof(r=Ne(r)),u:e=>"number"==typeof(e=Ne(e)),x:e=>"string"==typeof(e=Ne(e)),F:()=>qe([]),p:e=>qe(cr(e)),k:e=>{var r=Ne(e);q(r),ze(e)},d:(e,r)=>(e=(e=Je(e,"_emval_take_value")).readValueFromPointer(r),qe(e)),z:e=>(e=Ne(e),qe(typeof e)),K:(e,r)=>{if(vr[e]&&(clearTimeout(vr[e].id),delete vr[e]),!r)return 0;var t=setTimeout((()=>{delete vr[e],wr((()=>Sr(e,performance.now())))}),r);return vr[e]={id:t,Ua:r},0},L:(e,r,t,a)=>{var n=(new Date).getFullYear(),i=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),$[e>>2]=60*Math.max(i,n),w[r>>2]=Number(i!=n),e=(r=e=>{var r=Math.abs(e);return`UTC${0<=e?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(i),r=r(n),n<i?(Ye(e,t,17),Ye(r,a,17)):(Ye(e,a,17),Ye(r,t,17))},P:e=>{var r=v.length;if(2147483648<(e>>>=0))return!1;for(var t=1;4>=t;t*=2){var a=r*(1+.2/t);a=Math.min(a,e+100663296);e:{a=(Math.min(2147483648,65536*Math.ceil(Math.max(e,a)/65536))-p.buffer.byteLength+65535)/65536|0;try{p.grow(a),P();var n=1;break e}catch(i){}n=void 0}if(n)return!0}return!1},M:(e,r)=>{var t=0;return br().forEach(((a,n)=>{var i=r+t;for(n=$[e+4*n>>2]=i,i=0;i<a.length;++i)d[n++]=a.charCodeAt(i);d[n]=0,t+=a.length+1})),0},N:(e,r)=>{var t=br();$[e>>2]=t.length;var a=0;return t.forEach((e=>a+=e.length+1)),$[r>>2]=a,0},S:()=>52,R:function(){return 70},Q:(e,r,t,a)=>{for(var n=0,i=0;i<t;i++){var o=$[r>>2],s=$[r+4>>2];r+=8;for(var u=0;u<s;u++){var f=v[o+u],l=Tr[e];0===f||10===f?((1===e?c:h)(Xe(l)),l.length=0):l.push(f)}n+=s}return $[a>>2]=n,0},H:gr};!async function(){function e(e){return Wr=e.exports,p=Wr.Z,P(),We=Wr.ca,O.unshift(Wr._),x--,o.monitorRunDependencies?.(x),0==x&&F&&(e=F,F=null,e()),Wr}x++,o.monitorRunDependencies?.(x);var r={a:jr};if(o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(n){h(`Module.instantiateWasm callback failed with error: ${n}`),a(n)}R??=U("arcgis-knowledge-client-core.wasm")?"arcgis-knowledge-client-core.wasm":o.locateFile?o.locateFile("arcgis-knowledge-client-core.wasm",l):l+"arcgis-knowledge-client-core.wasm";try{var t=await H(r);return e(t.instance),t}catch(n){a(n)}}();var Pr,Er=e=>(Er=Wr.$)(e),Or=e=>(Or=Wr.aa)(e),kr=e=>(kr=Wr.ba)(e),Sr=(e,r)=>(Sr=Wr.da)(e,r);function xr(){function e(){if(!Pr&&(Pr=!0,o.calledRun=!0,!j)){if(D(O),t(o),o.onRuntimeInitialized?.(),o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;){var e=o.postRun.shift();k.unshift(e)}D(k)}}if(!(0<x)){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)S();D(E),0<x||(o.setStatus?(o.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>o.setStatus("")),1),e()}),1)):e())}}if(F=function e(){Pr||xr(),Pr||(F=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);0<o.preInit.length;)o.preInit.pop()();return xr(),s},r.exports=i,r.exports.default=i),a.exports;var r,n,i}const i=r(n()),o=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));export{o as a};
|