@arcgis/core 4.34.0-next.66 → 4.34.0-next.68
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/WebDocument2D.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/functions/measures.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{09dd8613bc03e7a3a4cb.js → 0814676e4bac81f96140.js} +1 -1
- package/assets/esri/core/workers/chunks/097a5c333de28ec5e16f.js +1 -0
- package/assets/esri/core/workers/chunks/{44031bef6d500167ef0b.js → 09dbb3e200ef8d514eb3.js} +1 -1
- package/assets/esri/core/workers/chunks/0b71100fa1e7ca706dbb.js +1 -0
- package/assets/esri/core/workers/chunks/{3167230555c63f943485.js → 0cbd5335cc92f5891bcf.js} +1 -1
- package/assets/esri/core/workers/chunks/{16fe21ca9b24eaee3069.js → 144bfd64daf103a06734.js} +1 -1
- package/assets/esri/core/workers/chunks/{c20aead85cdea91c4b74.js → 170ec7fb070c63230c81.js} +1 -1
- package/assets/esri/core/workers/chunks/{997a2a1a51039ce7e4e3.js → 1ac6bbaee76684a07b64.js} +1 -1
- package/assets/esri/core/workers/chunks/{af1030e4c4437d4eb600.js → 1ada9e6cdd6792e3847a.js} +1 -1
- package/assets/esri/core/workers/chunks/1e86df439c564fe752e3.js +1 -0
- package/assets/esri/core/workers/chunks/{4459c8e495a37d4c4eb8.js → 25118304c9a914194e90.js} +1 -1
- package/assets/esri/core/workers/chunks/28cfe1b270602e0c767b.js +1 -0
- package/assets/esri/core/workers/chunks/2ad1d458e4d18232a667.js +1 -0
- package/assets/esri/core/workers/chunks/{d823277612f971a9c2f0.js → 3245663da75e168bf85c.js} +1 -1
- package/assets/esri/core/workers/chunks/37d7c249114994a7dfac.js +1 -0
- package/assets/esri/core/workers/chunks/{2cd27b06226e30aec5da.js → 3f164e587f8d69c306d5.js} +1 -1
- package/assets/esri/core/workers/chunks/{96102a9296afd1bfe1a9.js → 451dd3bb44664b4ca2ae.js} +1 -1
- package/assets/esri/core/workers/chunks/{dbcef57073075e9cfdfe.js → 489fa17e60f25d5f33ae.js} +1 -1
- package/assets/esri/core/workers/chunks/{e97250ae8da4bd0d6bc9.js → 4aa98309081e6889ccbb.js} +1 -1
- package/assets/esri/core/workers/chunks/{19e5e011f929b6b940fe.js → 4bc091770bab38874848.js} +1 -1
- package/assets/esri/core/workers/chunks/{09f0c9f0b6aa58ae3c52.js → 4f22e5a7f81883e8e5b6.js} +1 -1
- package/assets/esri/core/workers/chunks/{7a17e78c76076ed4476f.js → 5185c63fecc5f493e142.js} +1 -1
- package/assets/esri/core/workers/chunks/{fa0f94318173db2034de.js → 52483db12203276e726e.js} +1 -1
- package/assets/esri/core/workers/chunks/{6fff219dfaa86167c326.js → 5303d77a3ab1b7ddeef3.js} +1 -1
- package/assets/esri/core/workers/chunks/{22ec2b0a853911692dc8.js → 5993427325d1add18ed9.js} +1 -1
- package/assets/esri/core/workers/chunks/5a95688651d7e8b7101d.js +1 -0
- package/assets/esri/core/workers/chunks/{9e3f8c06b4e090a35710.js → 5b84eba4a28e25b6d5c0.js} +1 -1
- package/assets/esri/core/workers/chunks/{497214e9e82b936fc94e.js → 5ed381a268855bcad072.js} +1 -1
- package/assets/esri/core/workers/chunks/{33718ea851645d9078d1.js → 605acf18cbeb89e4f29f.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d8c64693830506c8776.js → 643acb12ec6a1d4b4fbb.js} +1 -1
- package/assets/esri/core/workers/chunks/{4d7fcec769369c576847.js → 6e59ba2afd444eb4be18.js} +1 -1
- package/assets/esri/core/workers/chunks/{de4da985c398c8bcf2e7.js → 7336bfd57f6172ec7186.js} +1 -1
- package/assets/esri/core/workers/chunks/{bafd9b0f6e817252cb31.js → 75dd0acf049c7f3271b8.js} +1 -1
- package/assets/esri/core/workers/chunks/{60920d4856a011ace7e2.js → 80b0c88a76bd523a406a.js} +1 -1
- package/assets/esri/core/workers/chunks/{117eb1422e9795d37ea3.js → 837830e1cf712d4243a5.js} +1 -1
- package/assets/esri/core/workers/chunks/{ad7aa7d09bfceb12609e.js → 87fb5d755860057da164.js} +1 -1
- package/assets/esri/core/workers/chunks/{5cb238318a24b70d5ac3.js → 8bc8caa384b24af12411.js} +1 -1
- package/assets/esri/core/workers/chunks/{dcad3dcbd4ea2f5a6a04.js → 8e2558b14be70b273ce4.js} +1 -1
- package/assets/esri/core/workers/chunks/{8e40c409a9b0a2a768a9.js → 8f02349602b072186a1f.js} +1 -1
- package/assets/esri/core/workers/chunks/900eb2aa5cb1b08e1906.js +1 -0
- package/assets/esri/core/workers/chunks/{0952aeddddc16705b7a3.js → 99f133a152afb4f1b067.js} +1 -1
- package/assets/esri/core/workers/chunks/a6f66492651646c18f10.js +1 -0
- package/assets/esri/core/workers/chunks/a895da7fd64ebad3d5a4.js +1 -0
- package/assets/esri/core/workers/chunks/{31e7358fe802abb3f8db.js → aa970a547c60c43d6c7f.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a6d359ead62a8eadd3c.js → ab727ed4417b7dd94ce9.js} +1 -1
- package/assets/esri/core/workers/chunks/{707311e24b2f458d9209.js → ad3ebd4f05cc673140f3.js} +1 -1
- package/assets/esri/core/workers/chunks/{0f20c0eec850a39620a1.js → ad69cceec8db593fac14.js} +1 -1
- package/assets/esri/core/workers/chunks/{05016b0713ef760fc57d.js → b052d3ef5493eedb44a5.js} +1 -1
- package/assets/esri/core/workers/chunks/b335e96f6bcac6d2f0ee.js +1 -0
- package/assets/esri/core/workers/chunks/{a44f17397d8589433dae.js → b683b0fa7fc430b4d9c5.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd1d9913b33d4e48baff.js → c35dad3d5ceaac6ad5a4.js} +1 -1
- package/assets/esri/core/workers/chunks/{e1b573840ec1f7c3afd3.js → c4b2678dd46fa1e22f7e.js} +1 -1
- package/assets/esri/core/workers/chunks/{2f7e192ee2066f863e1d.js → c908184d747d33366881.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc931865a77fc48871d3.js → c94c797864a85342b105.js} +1 -1
- package/assets/esri/core/workers/chunks/{06ff5f34ad9bdf9705de.js → d3f59fbaa524b53fcbc6.js} +6 -0
- package/assets/esri/core/workers/chunks/{c7a386ac90e58eb71935.js → da1a5537e2f2ca6cc247.js} +1 -1
- package/assets/esri/core/workers/chunks/dd447dfc50ee7f511b84.js +1 -0
- package/assets/esri/core/workers/chunks/{a700f57af6856cb5313c.js → de443d29d1a6b5300d00.js} +1 -1
- package/assets/esri/core/workers/chunks/e2486bf5546443408c85.js +1 -0
- package/assets/esri/core/workers/chunks/{0f9813e7d4e2b47b2c39.js → e47acdb1fbf797342716.js} +1 -1
- package/assets/esri/core/workers/chunks/{a16b471c3706ee37f9b6.js → e6f2ac738df16fb5e13a.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5101f5f93f776a6456f.js → ed1272e7681e561d843f.js} +1 -1
- package/assets/esri/core/workers/chunks/{66ffefd46fe6175c2af4.js → efea3e82cec476d486e0.js} +1 -1
- package/assets/esri/core/workers/chunks/{d6f5297f7b323c340727.js → f060a52a9b69eb250d63.js} +1 -1
- package/assets/esri/core/workers/chunks/f8adac87e48ea86bec21.js +1 -0
- package/assets/esri/core/workers/chunks/{4be2bab8ff3bd14ffdfb.js → f9385d7fb5ff20f7b252.js} +1 -1
- package/assets/esri/core/workers/chunks/{b30de4936caa654d7817.js → fac020b6886ff2d75015.js} +1 -1
- package/assets/esri/core/workers/chunks/fe353a53968827bcd9cc.js +1 -0
- package/assets/esri/themes/base/widgets/_Expand.scss +1 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/ComponentShader.glsl.js +42 -36
- package/chunks/GlowComposition.glsl.js +5 -5
- package/chunks/RibbonLine.glsl.js +2 -2
- package/config.js +1 -1
- package/core/MemCache.js +1 -1
- package/editing/geometry/lineUtils.js +1 -1
- package/geometry/ellipsoidUtils.js +1 -1
- package/geometry/support/curves/bezierCurveUtils.js +1 -1
- package/geometry/support/curves/circleUtils.js +1 -1
- package/geometry/support/curves/curveLength.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/interfaces.d.ts +66 -193
- package/kernel.js +1 -1
- package/layers/GaussianSplatLayer.js +1 -1
- package/layers/Layer.js +1 -1
- package/layers/MapImageLayer.js +1 -1
- package/layers/OrientedImageryLayer.js +1 -1
- package/layers/VoxelLayer.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/mixins/OperationalLayer.js +1 -1
- package/layers/mixins/TemporalLayer.js +1 -1
- package/layers/mixins/TemporalSceneLayer.js +1 -1
- package/layers/mixins/operationalLayers.js +1 -1
- package/layers/support/FeatureFilter.js +1 -1
- package/layers/support/TimeInfo.js +1 -1
- package/layers/support/TrackInfo.js +1 -1
- package/layers/support/gaussianSplatUtils.js +1 -1
- package/layers/support/layersCreator.js +1 -1
- package/package.json +2 -2
- package/portal/schemas/definitions.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/rest/support/AttributeBinsQuery.js +1 -1
- package/rest/support/IdentifyParameters.js +1 -1
- package/rest/support/ImageGPSInfoParameters.js +1 -1
- package/rest/support/ImageHistogramParameters.js +1 -1
- package/rest/support/ImageIdentifyParameters.js +1 -1
- package/rest/support/ImageParameters.js +1 -1
- package/rest/support/ImageSampleParameters.js +1 -1
- package/rest/support/Query.js +1 -1
- package/rest/support/TopFeaturesQuery.js +1 -1
- package/support/elevationInfoUtils.js +1 -1
- package/support/revision.js +1 -1
- package/support/timeUtils.js +1 -1
- package/time/TimeExtent.js +1 -1
- package/time/TimeInterval.js +1 -1
- package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/effects/FeatureEffect.js +1 -1
- package/views/2d/engine/webgl/effects/post-processing/EffectManager.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TestTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/bloom/BloomTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/blur/BlurTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/grid/GridTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterRegistry.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlitShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BloomShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlurShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ColorizeShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DropShadowShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PostProcessingShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/RenderState.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +5 -0
- package/views/3d/analysis/VolumeMeasurement/volumeMeasurementGeometryUtils.js +5 -0
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/isSupportedObjectUtils.js +1 -1
- package/views/3d/interactive/editingTools/move/isSupportedObject.js +1 -1
- package/views/3d/interactive/editingTools/reshape/isSupportedObject.js +1 -1
- package/views/3d/interactive/editingTools/transform/isSupportedGraphic.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/ElevationContext.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/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/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPointSymbol.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbol.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/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.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/elevationAlignPointsInFeatures.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
- package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
- package/views/3d/support/CombinedElevationProvider.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js +8 -2
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColor.glsl.js +5 -0
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMask.glsl.js +5 -0
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaOutlineItem.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +5 -0
- package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +17 -0
- package/views/GroundView.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/View.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileGenerationError.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
- package/webdoc/support/timeProperties.js +1 -1
- package/webdoc/widgets/TimeSlider.js +1 -1
- package/webmap/InitialViewProperties.js +1 -1
- package/widgets/Bookmarks.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/support/EditorItem.js +1 -1
- package/widgets/Editor/support/splitFeatureUtils.js +1 -1
- package/widgets/Expand.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/TimeExtent.d.ts +0 -4
- package/TimeExtent.js +0 -5
- package/TimeInterval.d.ts +0 -4
- package/TimeInterval.js +0 -5
- package/assets/esri/core/workers/chunks/047d6f7b1677cc7ab271.js +0 -1
- package/assets/esri/core/workers/chunks/0b01c87db77246632ad9.js +0 -1
- package/assets/esri/core/workers/chunks/0cb2f7172190babb4139.js +0 -1
- package/assets/esri/core/workers/chunks/0e28cb5d8d89ae29cdd0.js +0 -1
- package/assets/esri/core/workers/chunks/1c7b5ca80e80c314f78d.js +0 -1
- package/assets/esri/core/workers/chunks/2a938096a42613425c7b.js +0 -1
- package/assets/esri/core/workers/chunks/3212a476184be25d17f8.js +0 -1
- package/assets/esri/core/workers/chunks/3bc50ee639a4d16c4f80.js +0 -1
- package/assets/esri/core/workers/chunks/481aea82501d04667ba2.js +0 -1
- package/assets/esri/core/workers/chunks/548818df658b607a364e.js +0 -1
- package/assets/esri/core/workers/chunks/7597ef10d1699e7088e5.js +0 -1
- package/assets/esri/core/workers/chunks/8e3c09c3524654830b14.js +0 -1
- package/assets/esri/core/workers/chunks/8f60804c7ba445f25df8.js +0 -1
- package/assets/esri/core/workers/chunks/c696615cae5daefa2d98.js +0 -1
- package/assets/esri/core/workers/chunks/ff2614d96ca5228e9685.js +0 -1
- package/chunks/TimeExtent.js +0 -5
- package/chunks/TimeInterval.js +0 -5
- package/views/2d/engine/webgl/effects/post-processing/Bloom.js +0 -5
- package/views/2d/engine/webgl/effects/post-processing/Blur.js +0 -5
- package/views/2d/engine/webgl/effects/post-processing/Colorize.js +0 -5
- package/views/2d/engine/webgl/effects/post-processing/DropShadow.js +0 -5
- package/views/2d/engine/webgl/effects/post-processing/Opacity.js +0 -5
- package/views/3d/webgl-engine/shaders/FocusAreaColor.glsl.js +0 -5
- package/views/3d/webgl-engine/shaders/FocusAreaMask.glsl.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7367],{71163:(n,t,e)=>{e.d(t,{C:()=>c});var r=e(29953);let a,i,o=!1;function s(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(n=>{i=n,o=!0,a=void 0})}async function c(n,t){return o?i.apply("invokeGeometryOp",[n,t]):(await s(),c(n,t))}},80672:(n,t,e)=>{e.d(t,{R:()=>a});var r=e(20655);function a(n,t){return null===n?t:new r.A({url:n.field("url")})}},87367:(n,t,e)=>{e.r(t),e.d(t,{registerFunctions:()=>J});var r=e(47609),a=e(66395),i=e(85935),o=e(78502),s=e(78878),c=e(80672),u=e(81844),l=e(71163),f=e(4576),d=e(5443),w=e(91075),y=e(48526),h=e(86738),A=e(39829),S=e(82799),m=e(65864),C=e(20655),N=e(70333),g=e(78888);async function O(n,t,e){const r=N.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===t&&n.user?.sourceJSON&&!1===e)return n.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(e&&(a.query.returnUserLicenseTypeExtensions=!0),""===t){const t=await(0,g.A)(n.restUrl+"/community/self",a);if(t.data){const n=t.data;if(n?.username)return n}return null}const i=await(0,g.A)(n.restUrl+"/community/users/"+t,a);if(i.data){const n=i.data;return n.error?null:n}return null}var p=e(54218);function v(n){if(null==n)return n;switch(typeof n){case"string":case"number":return n;default:throw new i.D$(null,"InvalidParameter",null)}}function J(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]||null===a[1]||(0,l.C)("disjoint",[a[0].toJSON(),a[1].toJSON()])))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("intersects",[a[0].toJSON(),a[1].toJSON()])))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("touches",[a[0].toJSON(),a[1].toJSON()])))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("crosses",[a[0].toJSON(),a[1].toJSON()])))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("within",[a[0].toJSON(),a[1].toJSON()])))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("contains",[a[0].toJSON(),a[1].toJSON()])))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("overlaps",[a[0].toJSON(),a[1].toJSON()])))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>((0,s.B)(a,2,2,t,e),a[0]===a[1]||(a[0]instanceof w.A&&a[1]instanceof w.A?(0,l.C)("equals",[a[0].toJSON(),a[1].toJSON()]):((0,s.e)(a[0])&&(0,s.e)(a[1])||!!((0,s.g)(a[0])&&(0,s.g)(a[1])||(0,s.f)(a[0])&&(0,s.f)(a[1])))&&a[0].equals(a[1]))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,3,3,t,e),a[0]instanceof w.A&&a[1]instanceof w.A)return(0,l.C)("relate",[a[0].toJSON(),a[1].toJSON(),(0,s.u)(a[2])]);if(a[0]instanceof w.A&&null===a[1])return!1;if(a[1]instanceof w.A&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new i.D$(t,"InvalidParameter",e)})},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]||null===a[1]?null:(0,m.rS)(await(0,l.C)("intersection",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(0===(a=(0,s.C)(a)).length)throw new i.D$(t,"WrongNumberOfParameters",e);const c=[];if(1===a.length)if((0,p.cy)(a[0])){for(const n of(0,s.C)(a[0]))if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}}else{if(!(0,s.j)(a[0])){if(a[0]instanceof w.A)return(0,s.D)((0,o.Yq)(a[0]),t.spatialReference);if(null===a[0])return null;throw new i.D$(t,"InvalidParameter",e)}for(const n of(0,s.C)(a[0].toArray()))if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}}else for(const n of a)if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}return 0===c.length?null:(0,m.rS)(await(0,l.C)("union",[c]))})},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]?null:null===a[1]?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("difference",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]&&null===a[1]?null:null===a[0]?(0,o.Yq)(a[1]):null===a[1]?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("symmetricDifference",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,2,t,e),!(a[1]instanceof d.A)&&null!==a[1])throw new i.D$(t,"InvalidParameter",e);if(null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return null===a[1]?null:(0,m.rS)(await(0,l.C)("clip",[a[0].toJSON(),a[1].toJSON()]))})},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,2,t,e),!(a[1]instanceof S.A)&&null!==a[1])throw new i.D$(t,"InvalidParameter",e);if(null===a[0])return[];if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return null===a[1]?[(0,o.Yq)(a[0])]:(await(0,l.C)("cut",[a[0].toJSON(),a[1].toJSON()])).map(n=>(0,m.rS)(n))})},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,s.B)(a,1,2,t,e),a=(0,s.C)(a),(0,s.m)(a[0])){const n=await a[0].sumArea(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}let o=a[0];if(((0,p.cy)(o)||(0,s.j)(o))&&(o=(0,s.E)(a[0],t.spatialReference)),null===o)return 0;if(!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("area",[o.toJSON(),v(a[1])])})},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,s.B)(a,1,3,t,e);let o=(a=(0,s.C)(a))[0];((0,p.cy)(o)||(0,s.j)(o))&&(o=(0,s.E)(o,t.spatialReference));const c=v(a[1]),f=(0,u.rE)(a[2]);if((0,s.m)(o)){const n=await o.sumArea(c,f,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}if(null==o)return 0;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("geodeticArea",[o.toJSON(),c,f])})},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,s.B)(a,1,2,t,e),a=(0,s.C)(a),(0,s.m)(a[0])){const n=await a[0].sumLength(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}let o=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.F)(a[0],t.spatialReference)),null===o)return 0;if(!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("length",[o.toJSON(),v(a[1])])})},n.functions.length3d=function(t,r){return n.standardFunctionAsync(t,r,async(n,a,o)=>{if((0,s.B)(o,1,2,t,r),null===(o=(0,s.C)(o))[0])return 0;let c=o[0];if(((0,p.cy)(o[0])||(0,s.j)(o[0]))&&(c=(0,s.F)(o[0],t.spatialReference)),null===c)return 0;if(!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",r);if(!0===c.hasZ){const{convertFromSpatialReferenceUnit:n,toLengthUnit:t}=await Promise.resolve().then(e.bind(e,40547)),r=(0,u.UI)(c);return n(c.spatialReference,t(o[1]),r)}return(0,l.C)("length",[c.toJSON(),v(o[1])])})},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,s.B)(a,1,3,t,e);let o=(a=(0,s.C)(a))[0];((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.F)(a[0],t.spatialReference));const c=v(a[1]),f=(0,u.rE)(a[2]);if((0,s.m)(o)){const n=await o.sumLength(c,f,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}if(null===o)return 0;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("geodeticLength",[o.toJSON(),c,f])})},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,3,t,e);let o=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.G)(a[0],t.spatialReference)),!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);let c=a[1];if(((0,p.cy)(a[1])||(0,s.j)(a[1]))&&(c=(0,s.G)(a[1],t.spatialReference)),!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("distance",[o.toJSON(),c.toJSON(),v(a[2])])})},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const o=a[0];if(!(o instanceof h.A))throw new i.D$(t,"InvalidParameter",e);const c=a[1];if(!(c instanceof h.A))throw new i.D$(t,"InvalidParameter",e);const f=new S.A({paths:[],spatialReference:o.spatialReference});return f.addPath([o,c]),(0,l.C)("geodeticLength",[f.toJSON(),v(a[2]),(0,u.rE)(a[3])])})},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=(0,s.s)(a[1]);if(isNaN(o))throw new i.D$(t,"InvalidParameter",e);if(o<=0)throw new i.D$(t,"InvalidParameter",e);switch(a[0].type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,l.C)("densify",[a[0].toJSON(),o,v(a[2])]));default:return a[0]}})},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const o=a[0];if(null==o)return null;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.s)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);if(c<=0)throw new i.D$(t,"InvalidParameter",e);const f=v(a[2]),d=(0,u.rE)(a[3]);switch(o.type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,l.C)("geodeticDensify",[o.toJSON(),c,f,d]));default:return o}})},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,4,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=(0,s.s)(a[1]);if(isNaN(o))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.H)((0,s.J)(a[2],!0));return(0,m.rS)(await(0,l.C)("generalize",[a[0].toJSON(),o,v(a[3]),{removeDegenerateParts:c}]))})},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.s)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);return 0===c?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("buffer",[a[0].toJSON(),c,v(a[2])]))})},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const c=a[0];if(null==c)return null;if(!(0,s.h)(c))throw new i.D$(t,"InvalidParameter",e);const f=(0,s.s)(a[1]);if(isNaN(f))throw new i.D$(t,"InvalidParameter",e);if(0===f)return(0,o.Yq)(c);const d=v(a[2]),w=(0,u.rE)(a[3]);return(0,m.rS)(await(0,l.C)("geodesicBuffer",[c.toJSON(),f,d,w]))})},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,6,t,e),null===a[0])return null;if(!(a[0]instanceof A.A||a[0]instanceof S.A))throw new i.D$(t,"InvalidParameter",e);const o=(0,s.s)(a[1]);if(isNaN(o))throw new i.D$(t,"InvalidParameter",e);const c=(0,u.R$)(a[3]),f=(0,s.s)((0,s.J)(a[4],10));if(isNaN(f))throw new i.D$(t,"InvalidParameter",e);const d=(0,s.s)((0,s.J)(a[5],0));if(isNaN(d))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("offset",[a[0].toJSON(),o,v(a[2]),{joins:c,miterLimit:f,flattenError:d}]))})},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=a[0]instanceof d.A?A.A.fromExtent(a[0]):a[0],c=(0,s.s)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);const u=(0,s.J)(a[2],null);if(null===u){const n="point"===o.type?o:o.extent?.center;return(0,m.rS)(await(0,l.C)("rotate",[o.toJSON(),c,n?.x,n?.y]))}if(u instanceof h.A)return(0,m.rS)(await(0,l.C)("rotate",[o.toJSON(),c,u.x,u.y]));throw new i.D$(t,"InvalidParameter",e)})},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,2,t,e),null===a[0])return null;const o=(0,u.Hz)(a[1]);let c=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(c="geometric"===o?(0,s.G)(a[0],t.spatialReference):(0,s.E)(a[0],t.spatialReference),null===c))return null;if(!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)("geometric"===o?await(0,l.C)("centroid",[c.toJSON()]):await(0,l.C)("labelPoint",[c.toJSON()]))})},n.functions.measuretocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.Cd)},n.functions.pointtocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.kr)},n.functions.distancetocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.Bn)},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);if(a[0]instanceof h.A)return[(0,s.D)((0,o.Yq)(a[0]),t.spatialReference)];if(a[0]instanceof d.A)return[(0,s.D)((0,o.Yq)(a[0]),t.spatialReference)];const c=(0,m.rS)(await(0,l.C)("simplify",[a[0].toJSON()]));if(c instanceof A.A){const n=[],t=[];for(let e=0;e<c.rings.length;e++)if(c.isClockwise(c.rings[e])){const t=(0,m.rS)({rings:[c.rings[e]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(t)}else t.push({ring:c.rings[e],pt:c.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(c instanceof S.A){const n=[];for(let t=0;t<c.paths.length;t++){const e=(0,m.rS)({paths:[c.paths[t]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(e)}return n}if(a[0]instanceof y.A){const n=[],e=(0,s.D)((0,o.Yq)(a[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)n.push(e.getPoint(t));return n}return null})},n.functions.isselfintersecting=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,e)=>{(0,s.B)(e,1,1,n,t);let r=(e=(0,s.C)(e))[0];if(((0,p.cy)(e[0])||(0,s.j)(e[0]))&&(r=(0,s.F)(e[0],n.spatialReference)),r instanceof y.A){const n=r.points;for(let t=0;t<n.length;t++)for(let e=t+1;e<n.length;e++)if((0,f.aI)(n[t],n[e]))return!0;return!1}return(r instanceof S.A||r instanceof A.A)&&await(0,l.C)("isSelfIntersecting",[r.toJSON()])})},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return!0;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("isSimple",[a[0].toJSON()])})},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("simplify",[a[0].toJSON()]))})},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("convexHull",[a[0].toJSON()]))})},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,async(n,o,u)=>{(0,s.B)(u,0,2,t,e);let l=(0,s.J)(u[1],""),f=!0===l;if(l=!0===l||!1===l?"":(0,s.u)(l),0===u.length||u[0]instanceof r.A){let n;n=t.services?.portal?t.services.portal:C.A.getDefault(),u.length>0&&(n=(0,c.R)(u[0],n));const e=await O(n,l,f);if(e){const n=JSON.parse(JSON.stringify(e));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return a.A.convertObjectToArcadeDictionary(n,(0,s.K)(t))}return null}let d=null;if((0,s.m)(u[0])&&(d=u[0]),d){if(f=!1,l)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!l){const n=await d.getIdentityUser();return n?a.A.convertObjectToArcadeDictionary({username:n},(0,s.K)(t)):null}return null}let e;e=t.services?.portal?t.services.portal:C.A.getDefault(),e=(0,c.R)(new r.A(n),e);const i=await O(e,l,f);if(i){const n=JSON.parse(JSON.stringify(i));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return a.A.convertObjectToArcadeDictionary(n,(0,s.K)(t))}return null}throw new i.D$(t,"InvalidParameter",e)})},n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if(o=(0,s.C)(o),(0,s.B)(o,2,2,t,e),!(o[0]instanceof w.A||null===o[0]))throw new i.D$(t,"InvalidParameter",e);if(!(o[1]instanceof h.A||null===o[1]))throw new i.D$(t,"InvalidParameter",e);if(null===o[0]||null===o[1])return null;const c=o[0]instanceof d.A?A.A.fromExtent(o[0]):o[0],u=await(0,l.C)("getNearestCoordinate",[c.toJSON(),o[1].toJSON(),{calculateLeftRightSide:!0}]);return null===u?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(u.coordinate),distance:u.distance,sideOfLine:0===u.distance?"straddle":u.isRightSide?"right":"left"},(0,s.K)(t),!1,!0)})},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if(o=(0,s.C)(o),(0,s.B)(o,2,2,t,e),!(o[0]instanceof w.A||null===o[0]))throw new i.D$(t,"InvalidParameter",e);if(!(o[1]instanceof h.A||null===o[1]))throw new i.D$(t,"InvalidParameter",e);if(null===o[0]||null===o[1])return null;const c=o[0]instanceof d.A?A.A.fromExtent(o[0]):o[0],u=await(0,l.C)("getNearestVertex",[c.toJSON(),o[1].toJSON()]);return null===u?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(u.coordinate),distance:u.distance,sideOfLine:0===u.distance?"straddle":u.isRightSide?"right":"left"},(0,s.K)(t),!1,!0)})})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7367],{71163:(n,t,e)=>{e.d(t,{C:()=>c});var r=e(29953);let a,i,o=!1;function s(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(n=>{i=n,o=!0,a=void 0})}async function c(n,t){return o?i.apply("invokeGeometryOp",[n,t]):(await s(),c(n,t))}},80672:(n,t,e)=>{e.d(t,{R:()=>a});var r=e(20655);function a(n,t){return null===n?t:new r.A({url:n.field("url")})}},87367:(n,t,e)=>{e.r(t),e.d(t,{registerFunctions:()=>J});var r=e(47609),a=e(66395),i=e(85935),o=e(78502),s=e(78878),c=e(80672),u=e(16442),l=e(71163),f=e(4576),d=e(5443),w=e(91075),y=e(48526),h=e(86738),A=e(39829),S=e(82799),m=e(65864),C=e(20655),N=e(70333),g=e(78888);async function O(n,t,e){const r=N.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===t&&n.user?.sourceJSON&&!1===e)return n.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(e&&(a.query.returnUserLicenseTypeExtensions=!0),""===t){const t=await(0,g.A)(n.restUrl+"/community/self",a);if(t.data){const n=t.data;if(n?.username)return n}return null}const i=await(0,g.A)(n.restUrl+"/community/users/"+t,a);if(i.data){const n=i.data;return n.error?null:n}return null}var p=e(54218);function v(n){if(null==n)return n;switch(typeof n){case"string":case"number":return n;default:throw new i.D$(null,"InvalidParameter",null)}}function J(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]||null===a[1]||(0,l.C)("disjoint",[a[0].toJSON(),a[1].toJSON()])))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("intersects",[a[0].toJSON(),a[1].toJSON()])))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("touches",[a[0].toJSON(),a[1].toJSON()])))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("crosses",[a[0].toJSON(),a[1].toJSON()])))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("within",[a[0].toJSON(),a[1].toJSON()])))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("contains",[a[0].toJSON(),a[1].toJSON()])))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null!==a[0]&&null!==a[1]&&(0,l.C)("overlaps",[a[0].toJSON(),a[1].toJSON()])))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>((0,s.B)(a,2,2,t,e),a[0]===a[1]||(a[0]instanceof w.A&&a[1]instanceof w.A?(0,l.C)("equals",[a[0].toJSON(),a[1].toJSON()]):((0,s.e)(a[0])&&(0,s.e)(a[1])||!!((0,s.g)(a[0])&&(0,s.g)(a[1])||(0,s.f)(a[0])&&(0,s.f)(a[1])))&&a[0].equals(a[1]))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,3,3,t,e),a[0]instanceof w.A&&a[1]instanceof w.A)return(0,l.C)("relate",[a[0].toJSON(),a[1].toJSON(),(0,s.u)(a[2])]);if(a[0]instanceof w.A&&null===a[1])return!1;if(a[1]instanceof w.A&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new i.D$(t,"InvalidParameter",e)})},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]||null===a[1]?null:(0,m.rS)(await(0,l.C)("intersection",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(0===(a=(0,s.C)(a)).length)throw new i.D$(t,"WrongNumberOfParameters",e);const c=[];if(1===a.length)if((0,p.cy)(a[0])){for(const n of(0,s.C)(a[0]))if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}}else{if(!(0,s.j)(a[0])){if(a[0]instanceof w.A)return(0,s.D)((0,o.Yq)(a[0]),t.spatialReference);if(null===a[0])return null;throw new i.D$(t,"InvalidParameter",e)}for(const n of(0,s.C)(a[0].toArray()))if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}}else for(const n of a)if(null!==n){if(!(n instanceof w.A))throw new i.D$(t,"InvalidParameter",e);c.push(n.toJSON())}return 0===c.length?null:(0,m.rS)(await(0,l.C)("union",[c]))})},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]?null:null===a[1]?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("difference",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>(a=(0,s.C)(a),(0,u.ZL)(a,t,e),null===a[0]&&null===a[1]?null:null===a[0]?(0,o.Yq)(a[1]):null===a[1]?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("symmetricDifference",[a[0].toJSON(),a[1].toJSON()]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,2,t,e),!(a[1]instanceof d.A)&&null!==a[1])throw new i.D$(t,"InvalidParameter",e);if(null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return null===a[1]?null:(0,m.rS)(await(0,l.C)("clip",[a[0].toJSON(),a[1].toJSON()]))})},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,2,t,e),!(a[1]instanceof S.A)&&null!==a[1])throw new i.D$(t,"InvalidParameter",e);if(null===a[0])return[];if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return null===a[1]?[(0,o.Yq)(a[0])]:(await(0,l.C)("cut",[a[0].toJSON(),a[1].toJSON()])).map(n=>(0,m.rS)(n))})},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,s.B)(a,1,2,t,e),a=(0,s.C)(a),(0,s.m)(a[0])){const n=await a[0].sumArea(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}let o=a[0];if(((0,p.cy)(o)||(0,s.j)(o))&&(o=(0,s.E)(a[0],t.spatialReference)),null===o)return 0;if(!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("area",[o.toJSON(),v(a[1])])})},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,s.B)(a,1,3,t,e);let o=(a=(0,s.C)(a))[0];((0,p.cy)(o)||(0,s.j)(o))&&(o=(0,s.E)(o,t.spatialReference));const c=v(a[1]),f=(0,u.rE)(a[2]);if((0,s.m)(o)){const n=await o.sumArea(c,f,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}if(null==o)return 0;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("geodeticArea",[o.toJSON(),c,f])})},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if((0,s.B)(a,1,2,t,e),a=(0,s.C)(a),(0,s.m)(a[0])){const n=await a[0].sumLength(v(a[1]),null,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}let o=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.F)(a[0],t.spatialReference)),null===o)return 0;if(!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("length",[o.toJSON(),v(a[1])])})},n.functions.length3d=function(t,r){return n.standardFunctionAsync(t,r,async(n,a,o)=>{if((0,s.B)(o,1,2,t,r),null===(o=(0,s.C)(o))[0])return 0;let c=o[0];if(((0,p.cy)(o[0])||(0,s.j)(o[0]))&&(c=(0,s.F)(o[0],t.spatialReference)),null===c)return 0;if(!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",r);if(!0===c.hasZ){const{convertFromSpatialReferenceUnit:n,toLengthUnit:t}=await Promise.resolve().then(e.bind(e,40547)),r=(0,u.UI)(c);return n(c.spatialReference,t(o[1]),r)}return(0,l.C)("length",[c.toJSON(),v(o[1])])})},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{(0,s.B)(a,1,3,t,e);let o=(a=(0,s.C)(a))[0];((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.F)(a[0],t.spatialReference));const c=v(a[1]),f=(0,u.rE)(a[2]);if((0,s.m)(o)){const n=await o.sumLength(c,f,t.abortSignal);if(t.abortSignal.aborted)throw new i.D$(t,"Cancelled",e);return n}if(null===o)return 0;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("geodeticLength",[o.toJSON(),c,f])})},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,3,t,e);let o=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(o=(0,s.G)(a[0],t.spatialReference)),!(o instanceof w.A))throw new i.D$(t,"InvalidParameter",e);let c=a[1];if(((0,p.cy)(a[1])||(0,s.j)(a[1]))&&(c=(0,s.G)(a[1],t.spatialReference)),!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("distance",[o.toJSON(),c.toJSON(),v(a[2])])})},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const o=a[0];if(!(o instanceof h.A))throw new i.D$(t,"InvalidParameter",e);const c=a[1];if(!(c instanceof h.A))throw new i.D$(t,"InvalidParameter",e);const f=new S.A({paths:[],spatialReference:o.spatialReference});return f.addPath([o,c]),(0,l.C)("geodeticLength",[f.toJSON(),v(a[2]),(0,u.rE)(a[3])])})},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=(0,s.s)(a[1]);if(isNaN(o))throw new i.D$(t,"InvalidParameter",e);if(o<=0)throw new i.D$(t,"InvalidParameter",e);switch(a[0].type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,l.C)("densify",[a[0].toJSON(),o,v(a[2])]));default:return a[0]}})},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const o=a[0];if(null==o)return null;if(!(0,s.h)(o))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.s)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);if(c<=0)throw new i.D$(t,"InvalidParameter",e);const f=v(a[2]),d=(0,u.rE)(a[3]);switch(o.type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,l.C)("geodeticDensify",[o.toJSON(),c,f,d]));default:return o}})},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,4,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=(0,s.s)(a[1]);if(isNaN(o))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.H)((0,s.J)(a[2],!0));return(0,m.rS)(await(0,l.C)("generalize",[a[0].toJSON(),o,v(a[3]),{removeDegenerateParts:c}]))})},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const c=(0,s.s)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);return 0===c?(0,o.Yq)(a[0]):(0,m.rS)(await(0,l.C)("buffer",[a[0].toJSON(),c,v(a[2])]))})},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{a=(0,s.C)(a),(0,s.B)(a,2,4,t,e);const c=a[0];if(null==c)return null;if(!(0,s.h)(c))throw new i.D$(t,"InvalidParameter",e);const f=(0,s.s)(a[1]);if(isNaN(f))throw new i.D$(t,"InvalidParameter",e);if(0===f)return(0,o.Yq)(c);const d=v(a[2]),w=(0,u.rE)(a[3]);return(0,m.rS)(await(0,l.C)("geodesicBuffer",[c.toJSON(),f,d,w]))})},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,6,t,e),null===a[0])return null;if(!(a[0]instanceof A.A||a[0]instanceof S.A))throw new i.D$(t,"InvalidParameter",e);const o=(0,s.s)(a[1]);if(isNaN(o))throw new i.D$(t,"InvalidParameter",e);const c=(0,u.R$)(a[3]),f=(0,s.s)((0,s.J)(a[4],10));if(isNaN(f))throw new i.D$(t,"InvalidParameter",e);const d=(0,s.s)((0,s.J)(a[5],0));if(isNaN(d))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("offset",[a[0].toJSON(),o,v(a[2]),{joins:c,miterLimit:f,flattenError:d}]))})},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);const o=a[0]instanceof d.A?A.A.fromExtent(a[0]):a[0],c=(0,s.s)(a[1]);if(isNaN(c))throw new i.D$(t,"InvalidParameter",e);const u=(0,s.J)(a[2],null);if(null===u){const n="point"===o.type?o:o.extent?.center;return(0,m.rS)(await(0,l.C)("rotate",[o.toJSON(),c,n?.x,n?.y]))}if(u instanceof h.A)return(0,m.rS)(await(0,l.C)("rotate",[o.toJSON(),c,u.x,u.y]));throw new i.D$(t,"InvalidParameter",e)})},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,2,t,e),null===a[0])return null;const o=(0,u.Hz)(a[1]);let c=a[0];if(((0,p.cy)(a[0])||(0,s.j)(a[0]))&&(c="geometric"===o?(0,s.G)(a[0],t.spatialReference):(0,s.E)(a[0],t.spatialReference),null===c))return null;if(!(c instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)("geometric"===o?await(0,l.C)("centroid",[c.toJSON()]):await(0,l.C)("labelPoint",[c.toJSON()]))})},n.functions.measuretocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.Cd)},n.functions.pointtocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.kr)},n.functions.distancetocoordinate=function(t,e){return n.standardFunctionAsync(t,e,u.Bn)},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);if(a[0]instanceof h.A)return[(0,s.D)((0,o.Yq)(a[0]),t.spatialReference)];if(a[0]instanceof d.A)return[(0,s.D)((0,o.Yq)(a[0]),t.spatialReference)];const c=(0,m.rS)(await(0,l.C)("simplify",[a[0].toJSON()]));if(c instanceof A.A){const n=[],t=[];for(let e=0;e<c.rings.length;e++)if(c.isClockwise(c.rings[e])){const t=(0,m.rS)({rings:[c.rings[e]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(t)}else t.push({ring:c.rings[e],pt:c.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(c instanceof S.A){const n=[];for(let t=0;t<c.paths.length;t++){const e=(0,m.rS)({paths:[c.paths[t]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(e)}return n}if(a[0]instanceof y.A){const n=[],e=(0,s.D)((0,o.Yq)(a[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)n.push(e.getPoint(t));return n}return null})},n.functions.isselfintersecting=function(t,e){return n.standardFunctionAsync(t,e,async(n,t,e)=>{(0,s.B)(e,1,1,n,t);let r=(e=(0,s.C)(e))[0];if(((0,p.cy)(e[0])||(0,s.j)(e[0]))&&(r=(0,s.F)(e[0],n.spatialReference)),r instanceof y.A){const n=r.points;for(let t=0;t<n.length;t++)for(let e=t+1;e<n.length;e++)if((0,f.aI)(n[t],n[e]))return!0;return!1}return(r instanceof S.A||r instanceof A.A)&&await(0,l.C)("isSelfIntersecting",[r.toJSON()])})},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return!0;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,l.C)("isSimple",[a[0].toJSON()])})},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("simplify",[a[0].toJSON()]))})},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,a)=>{if(a=(0,s.C)(a),(0,s.B)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof w.A))throw new i.D$(t,"InvalidParameter",e);return(0,m.rS)(await(0,l.C)("convexHull",[a[0].toJSON()]))})},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,async(n,o,u)=>{(0,s.B)(u,0,2,t,e);let l=(0,s.J)(u[1],""),f=!0===l;if(l=!0===l||!1===l?"":(0,s.u)(l),0===u.length||u[0]instanceof r.A){let n;n=t.services?.portal?t.services.portal:C.A.getDefault(),u.length>0&&(n=(0,c.R)(u[0],n));const e=await O(n,l,f);if(e){const n=JSON.parse(JSON.stringify(e));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return a.A.convertObjectToArcadeDictionary(n,(0,s.K)(t))}return null}let d=null;if((0,s.m)(u[0])&&(d=u[0]),d){if(f=!1,l)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!l){const n=await d.getIdentityUser();return n?a.A.convertObjectToArcadeDictionary({username:n},(0,s.K)(t)):null}return null}let e;e=t.services?.portal?t.services.portal:C.A.getDefault(),e=(0,c.R)(new r.A(n),e);const i=await O(e,l,f);if(i){const n=JSON.parse(JSON.stringify(i));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return a.A.convertObjectToArcadeDictionary(n,(0,s.K)(t))}return null}throw new i.D$(t,"InvalidParameter",e)})},n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if(o=(0,s.C)(o),(0,s.B)(o,2,2,t,e),!(o[0]instanceof w.A||null===o[0]))throw new i.D$(t,"InvalidParameter",e);if(!(o[1]instanceof h.A||null===o[1]))throw new i.D$(t,"InvalidParameter",e);if(null===o[0]||null===o[1])return null;const c=o[0]instanceof d.A?A.A.fromExtent(o[0]):o[0],u=await(0,l.C)("getNearestCoordinate",[c.toJSON(),o[1].toJSON(),{calculateLeftRightSide:!0}]);return null===u?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(u.coordinate),distance:u.distance,sideOfLine:0===u.distance?"straddle":u.isRightSide?"right":"left"},(0,s.K)(t),!1,!0)})},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,async(n,r,o)=>{if(o=(0,s.C)(o),(0,s.B)(o,2,2,t,e),!(o[0]instanceof w.A||null===o[0]))throw new i.D$(t,"InvalidParameter",e);if(!(o[1]instanceof h.A||null===o[1]))throw new i.D$(t,"InvalidParameter",e);if(null===o[0]||null===o[1])return null;const c=o[0]instanceof d.A?A.A.fromExtent(o[0]):o[0],u=await(0,l.C)("getNearestVertex",[c.toJSON(),o[1].toJSON()]);return null===u?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(u.coordinate),distance:u.distance,sideOfLine:0===u.distance?"straddle":u.isRightSide?"right":"left"},(0,s.K)(t),!1,!0)})})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1093],{4902:(t,e,r)=>{r.d(e,{PH:()=>n,sA:()=>l});var i=r(31635),s=r(40608);let o=0;const l=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return r=(0,i.Cg)([(0,s.$)("esri.core.Identifiable")],r),r},n=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return r=(0,i.Cg)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],r),r};l(class{})},8303:(t,e,r)=>{r.d(e,{A:()=>b});var i=r(31635),s=r(92602),o=r(70333),l=r(78888),n=r(60999),a=r(49186),u=r(53966),h=r(97768),p=r(74887),d=r(84952),c=r(10107),y=(r(44208),r(87811),r(36005)),g=r(40608),m=r(43937),f=r(77548),S=r(20655),w=r(80812),C=r(41318),v=r(10407);const b=t=>{const e=t;let b=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new w.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(e),await i({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,p.QP)(t),!0)))}async setUserPrivileges(t,e){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(t){(0,p.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const i=!o.id?.findCredential(this.url),s=t===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let l,n;if(s)l=r.portal.url;else try{l=await(0,f.wI)(this.url,e)}catch(t){(0,p.QP)(t)}if(!l||!(0,d.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;n=await(o.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,p.QP)(t)}const a=!0,u=!1,h=!1;if(!n)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(s?await r.reload():(r=new w.default({id:t,portal:{url:l}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,i)}catch(t){(0,p.QP)(t)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(t,e){const r=(0,v.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,p.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?o.id?.findCredential(this.url):null;if(!e)return!0;const r=M.credential===e?M.user:await this._fetchEditingUser(t);return M.credential=e,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=S.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(i))return s.user;const a=`${i}/community/self`,u=null!=t?t.signal:null,h=await(0,n.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?C.A.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,i=this.portalItem?.id&&(this.portalItem.portal||S.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,i.Cg)([(0,c.MZ)({type:w.default})],b.prototype,"portalItem",null),(0,i.Cg)([(0,y.w)("web-document","portalItem",["itemId"])],b.prototype,"readPortalItem",null),(0,i.Cg)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],b.prototype,"writePortalItem",null),(0,i.Cg)([(0,c.MZ)({clonable:!1})],b.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasUpdateItemPrivileges",void 0),b=(0,i.Cg)([(0,g.$)("esri.layers.mixins.PortalLayer")],b),b},M={credential:null,user:null}},20378:(t,e,r)=>{r.d(e,{A:()=>d});var i=r(31635),s=r(68197),o=r(66552),l=r(25482),n=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608);const h=new o.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let p=0,d=class extends l.o{constructor(t){super(t),this.id="sym"+p++,this.type=null,this.color=new s.A([0,0,0,1])}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i.Cg)([(0,n.MZ)({type:h.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:h.write,isRequired:!0}}})],d.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:s.A,json:{write:{allowNull:!0}}})],d.prototype,"color",void 0),(0,i.Cg)([(0,a.w)("color")],d.prototype,"readColor",null),d=(0,i.Cg)([(0,u.$)("esri.symbols.Symbol")],d)},31593:(t,e,r)=>{r.d(e,{A:()=>b});var i=r(31635),s=r(66552),o=r(4718),l=r(90629),n=r(10107),a=(r(44208),r(53966),r(93223)),u=r(40608),h=(r(87811),r(20378));let p=class extends h.A{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,i.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],p.prototype,"width",void 0),p=(0,i.Cg)([(0,u.$)("esri.symbols.LineSymbol")],p);var d,c=r(68197),y=r(25482),g=r(36005),m=r(43937),f=r(83213);let S=d=class extends y.o{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,r,i){e[r]="web-map"===i?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,r,i){"web-map"===i?.origin||(e[r]=t)}clone(){return new d({color:(0,o.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,i.Cg)([(0,n.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],S.prototype,"placement",void 0),(0,i.Cg)([(0,a.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,n.MZ)({json:{origins:{"web-map":{write:!1}}}})],S.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:f.z})],S.prototype,"style",void 0),(0,i.Cg)([(0,m.K)("style")],S.prototype,"writeStyle",null),(0,i.Cg)([(0,n.MZ)({type:c.A,value:null,json:{write:{allowNull:!0}}})],S.prototype,"color",null),(0,i.Cg)([(0,g.w)("color")],S.prototype,"readColor",null),(0,i.Cg)([(0,m.K)("color")],S.prototype,"writeColor",null),S=d=(0,i.Cg)([(0,u.$)("esri.symbols.LineSymbolMarker")],S);const w=S;var C;const v=new s.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let b=C=class extends p{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,r,i,s,o){if(t&&"string"!=typeof t)return t;const n={};return null!=t&&(n.style=t),null!=e&&(n.color=e),null!=r&&(n.width=(0,l.cr)(r)),null!=i&&(n.cap=i),null!=s&&(n.join=s),null!=o&&(n.miterLimit=(0,l.cr)(o)),n}clone(){return new C({color:(0,o.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,i.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],b.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:v.apiValues,json:{read:v.read,write:v.write}})],b.prototype,"style",void 0),(0,i.Cg)([(0,n.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],b.prototype,"cap",void 0),(0,i.Cg)([(0,n.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],b.prototype,"join",void 0),(0,i.Cg)([(0,n.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],b.prototype,"marker",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:!1,write:!1}})],b.prototype,"miterLimit",void 0),b=C=(0,i.Cg)([(0,u.$)("esri.symbols.SimpleLineSymbol")],b)},53930:(t,e,r)=>{r.d(e,{A:()=>m});var i,s=r(31635),o=r(68197),l=r(66552),n=r(4718),a=r(90629),u=r(10107),h=(r(44208),r(53966),r(93223)),p=r(40608),d=r(43937),c=r(89420),y=r(31593);const g=new l.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let m=i=class extends c.A{constructor(...t){super(...t),this.color=new o.A([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new y.A}normalizeCtorArgs(t,e,r,i){if(t&&"string"!=typeof t)return t;const s={};return t&&(s.style=t),null!=e&&(s.size=(0,a.cr)(e)),r&&(s.outline=r),i&&(s.color=i),s}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new i({angle:this.angle,color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,s.Cg)([(0,u.MZ)()],m.prototype,"color",void 0),(0,s.Cg)([(0,d.K)("color")],m.prototype,"writeColor",null),(0,s.Cg)([(0,h.e)({esriSMS:"simple-marker"},{readOnly:!0})],m.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)()],m.prototype,"size",void 0),(0,s.Cg)([(0,u.MZ)({type:g.apiValues,json:{read:g.read,write:g.write}})],m.prototype,"style",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],m.prototype,"path",null),(0,s.Cg)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":y.A}},json:{default:null,write:!0}})],m.prototype,"outline",void 0),m=i=(0,s.Cg)([(0,p.$)("esri.symbols.SimpleMarkerSymbol")],m)},58592:(t,e,r)=>{r.d(e,{A:()=>c});var i,s=r(31635),o=r(4718),l=r(90629),n=r(10107),a=(r(44208),r(53966),r(93223)),u=r(36005),h=r(40608),p=r(89420),d=r(77040);let c=i=class extends p.A{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const i={};return t&&(i.url=t),null!=e&&(i.width=(0,l.cr)(e)),null!=r&&(i.height=(0,l.cr)(r)),i}readHeight(t,e){return e.size||t}readWidth(t,e){return e.size||t}clone(){const t=new i({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",(0,o.o8)(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s.Cg)([(0,n.MZ)({json:{write:!1}})],c.prototype,"color",void 0),(0,s.Cg)([(0,a.e)({esriPMS:"picture-marker"},{readOnly:!0})],c.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)(d.ku)],c.prototype,"url",void 0),(0,s.Cg)([(0,n.MZ)(d.k7)],c.prototype,"source",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],c.prototype,"height",void 0),(0,s.Cg)([(0,u.w)("height",["height","size"])],c.prototype,"readHeight",null),(0,s.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],c.prototype,"width",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!1}})],c.prototype,"size",void 0),c=i=(0,s.Cg)([(0,h.$)("esri.symbols.PictureMarkerSymbol")],c)},64272:(t,e,r)=>{r.d(e,{T:()=>d});var i,s=r(31635),o=r(25482),l=r(88930),n=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),h=r(43937),p=r(98623);let d=class extends o.o{static{i=this}static get allTime(){return c}static get empty(){return y}static fromArray(t){return new i({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=t.start?.getTime()??t.start,s=t.end?.getTime()??t.end;return e===i&&r===s}expandTo(t,e=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,l.lL)(r,t,e));let s=this.end;if(s){const r=(0,l.lL)(s,t,e);s=s.getTime()===r.getTime()?r:(0,l.S1)(r,1,t,e)}return new i({start:r,end:s})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,s=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let l,n;return s>=e&&s<=r?l=s:e>=s&&e<=o&&(l=e),r>=s&&r<=o?n=r:o>=e&&o<=r&&(n=o),null==l||null==n||isNaN(l)||isNaN(n)?i.empty:new i({start:l===-1/0?null:new Date(l),end:n===1/0?null:new Date(n)})}offset(t,e,r=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();const s=new i,{start:o,end:n}=this;return null!=o&&(s.start=(0,l.S1)(o,t,e,r)),null!=n&&(s.end=(0,l.S1)(n,t,e,r)),s}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return c.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:r})}};(0,s.Cg)([(0,n.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,s.Cg)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,s.Cg)([(0,h.K)("end")],d.prototype,"writeEnd",null),(0,s.Cg)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,s.Cg)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,s.Cg)([(0,n.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,s.Cg)([(0,a.w)("start")],d.prototype,"readStart",null),(0,s.Cg)([(0,h.K)("start")],d.prototype,"writeStart",null),d=i=(0,s.Cg)([(0,u.$)("esri.time.TimeExtent")],d);const c=new d,y=new d({start:void 0,end:void 0})},65851:(t,e,r)=>{r.d(e,{A:()=>a});var i=r(31635),s=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),l=r(31593),n=r(20378);let a=class extends n.A{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,i.Cg)([(0,s.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":l.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,i.Cg)([(0,s.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,o.$)("esri.symbols.FillSymbol")],a)},68197:(t,e,r)=>{r.d(e,{A:()=>a});var i=r(40876),s=r(34727),o=r(56507);function l(t){return(0,s.qE)((0,o.Vr)(t),0,255)}function n(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}class a{static blendColors(t,e,r,i=new a){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){const r=(0,i.lT)(t);return r?a.fromArray(r,e):null}static fromHex(t,e=new a){const r=(0,i.oW)(t);return r?a.fromArray(r,e):null}static fromArray(t,e=new a){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,i.Eq)(t);return r?a.fromArray(r,e):null}static fromJSON(t){return null!=t?new a([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?a.fromString(t,this):Array.isArray(t)?a.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,s=4===r||8===r,o=`#${n(this.r,i)}${n(this.g,i)}${n(this.b,i)}${s?n(Math.round(255*this.a),i):""}`;return e?o.toUpperCase():o}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=l(this.r),r=l(this.g),i=l(this.b);return 0===t||1!==this.a?[e,r,i,l(255*this.a)]:[e,r,i]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}a.prototype.declaredClass="esri.Color"},69540:(t,e,r)=>{r.d(e,{OU:()=>h,Pw:()=>p});var i=r(31635),s=r(65008),o=(r(44208),r(4718)),l=(r(53966),r(97768)),n=r(88620),a=r(40608);const u=Symbol("ClonableMixin"),h=t=>{var e;const r=t;let s=class extends r{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,n.oY)(this);(0,l.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,i=e.store,s={},a=new Map;for(const e in r){const l=r[e],n=i?.originOf(e),u=l.clonable;if(l.readOnly||!1===u||7!==n&&0!==n&&5!==n&&4!==n)continue;const h=this[e];let p=null;if("function"==typeof u)p=u(h,t);else if("reference"===u)p=h;else if(p=(0,o.TU)(h,t),null!=h&&null==p)continue;0===n?a.set(e,p):s[e]=p}const u=new(0,Object.getPrototypeOf(this).constructor)(s);if(a.size){const t=(0,n.oY)(u)?.store;if(t)for(const[e,r]of a)t.set(e,r,0)}return u}};return s=(0,i.Cg)([(0,a.$)("esri.core.Clonable")],s),s},p=h(s.A)},77040:(t,e,r)=>{r.d(e,{k7:()=>n,ku:()=>l});var i=r(84952),s=r(97159);function o(t,e){if(!(0,i.oP)(t)){const r=function(t){if(!t)return null;const{origin:e,layer:r}=t;if("service"!==e&&"portal-item"!==e)return null;const i=r?.type;return"feature"===i||"stream"===i?r.parsedUrl?.path:"map-image"===i||"tile"===i?t.url?.path:null}(e);if(r)return(0,i.fj)(r,"images",t)}return(0,s.f)(t,e)}const l={json:{read:{source:["imageData","url"],reader:function(t,e,r){return e.imageData?(0,i.Hg)({mediaType:e.contentType||"image/png",isBase64:!0,data:e.imageData}):o(e.url,r)}},write:{writer(t,e,r,o){!function(t,e,r,o){if((0,i.DB)(t)){const l=(0,i.r$)(t);if(!l)return;e.contentType=l.mediaType,e.imageData=l.data,r&&r.imageData===e.imageData&&r.url&&(0,s.w)(r.url,e,"url",o)}else(0,s.w)(t,e,"url",o)}(t,e,this.source,o)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(t,e,r){const i={};return e.imageData&&(i.imageData=e.imageData),e.contentType&&(i.contentType=e.contentType),e.url&&(i.url=o(e.url,r)),i}}}}},78553:(t,e,r)=>{r.d(e,{D:()=>o,p:()=>s});var i=r(56507);function s(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83213:(t,e,r)=>{r.d(e,{x:()=>i,z:()=>s});const i=["begin","end","begin-end"],s=["arrow","circle","square","diamond","cross","x"]},85582:(t,e,r)=>{r.r(e),r.d(e,{default:()=>k});var i=r(31635),s=r(92602),o=r(78888),l=r(92071),n=r(74887),a=r(84952),u=r(10107),h=(r(44208),r(53966),r(87811),r(36005)),p=r(40608),d=r(5443),c=r(21325),y=r(4146),g=r(63074),m=r(16131),f=r(8303),S=r(54310),w=r(25036),C=r(10873),v=r(58592),b=r(94985),M=r(31593),A=r(53930),P=r(20378);const $=["atom","xml"],D={base:P.A,key:"type",typeMap:{"simple-line":M.A},errorContext:"symbol"},Z={base:P.A,key:"type",typeMap:{"picture-marker":v.A,"simple-marker":A.A},errorContext:"symbol"},T={base:P.A,key:"type",typeMap:{"simple-fill":b.A},errorContext:"symbol"};let j=class extends((0,g.dM)((0,S.J)((0,m.q)((0,f.A)((0,w.j)((0,l.P)(y.A))))))){constructor(...t){super(...t),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}readFeatureCollections(t,e){return e.featureCollection.layers.forEach(t=>{const e=t.layerDefinition.drawingInfo.renderer.symbol;e&&"esriSFS"===e.type&&e.outline?.style.includes("esriSFS")&&(e.outline.style="esriSLSSolid")}),e.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const t=this._get("title");return t&&"defaults"!==this.originOf("title")?t:this.url?(0,a.e7)(this.url,$)||"GeoRSS":t}set title(t){this._set("title",t)}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},t).catch(n.QP).then(()=>this._fetchService(e)).then(t=>{this.read(t,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const t=await this._fetchService();return this.read(t,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(t){const e=this.spatialReference,{data:r}=await(0,o.A)(s.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,c.oT)(e)?void 0:e.wkid??JSON.stringify(e)},signal:t});return r}_hasGeometry(t){return this.featureCollections?.some(e=>e.featureSet?.geometryType===t&&e.featureSet.features?.length>0)??!1}};(0,i.Cg)([(0,u.MZ)()],j.prototype,"description",void 0),(0,i.Cg)([(0,u.MZ)()],j.prototype,"featureCollections",void 0),(0,i.Cg)([(0,h.w)("service","featureCollections",["featureCollection.layers"])],j.prototype,"readFeatureCollections",null),(0,i.Cg)([(0,u.MZ)({type:d.A,json:{name:"lookAtExtent"}})],j.prototype,"fullExtent",void 0),(0,i.Cg)([(0,u.MZ)(C.id)],j.prototype,"id",void 0),(0,i.Cg)([(0,u.MZ)(C.fV)],j.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,u.MZ)({types:D,json:{write:!0}})],j.prototype,"lineSymbol",void 0),(0,i.Cg)([(0,u.MZ)({type:["show","hide"]})],j.prototype,"listMode",void 0),(0,i.Cg)([(0,u.MZ)({types:Z,json:{write:!0}})],j.prototype,"pointSymbol",void 0),(0,i.Cg)([(0,u.MZ)({types:T,json:{write:!0}})],j.prototype,"polygonSymbol",void 0),(0,i.Cg)([(0,u.MZ)({type:["GeoRSS"]})],j.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,u.MZ)(C.OZ)],j.prototype,"url",void 0),(0,i.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:t=>t||void 0}}}}})],j.prototype,"title",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],j.prototype,"type",void 0),j=(0,i.Cg)([(0,p.$)("esri.layers.GeoRSSLayer")],j);const k=j},89420:(t,e,r)=>{r.d(e,{A:()=>u});var i=r(31635),s=r(90629),o=r(10107),l=r(56507),n=(r(44208),r(87811),r(40608)),a=r(20378);let u=class extends a.A{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],u.prototype,"angle",void 0),(0,i.Cg)([(0,o.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,cast:s.cr,json:{write:!0}})],u.prototype,"xoffset",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,cast:s.cr,json:{write:!0}})],u.prototype,"yoffset",void 0),(0,i.Cg)([(0,o.MZ)({cast:t=>"auto"===t?t:(0,l.GB)((0,s.cr)(t)),json:{write:!0}})],u.prototype,"size",void 0),u=(0,i.Cg)([(0,n.$)("esri.symbols.MarkerSymbol")],u)},94985:(t,e,r)=>{r.d(e,{A:()=>y});var i,s=r(31635),o=r(68197),l=r(66552),n=r(4718),a=r(10107),u=(r(44208),r(53966),r(93223)),h=r(40608),p=r(65851),d=r(31593);const c=new l.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let y=i=class extends p.A{constructor(...t){super(...t),this.color=new o.A([0,0,0,.25]),this.outline=new d.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.style=t),e&&(i.outline=e),r&&(i.color=r),i}clone(){return new i({color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,s.Cg)([(0,a.MZ)()],y.prototype,"color",void 0),(0,s.Cg)([(0,a.MZ)()],y.prototype,"outline",void 0),(0,s.Cg)([(0,u.e)({esriSFS:"simple-fill"},{readOnly:!0})],y.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:c.apiValues,json:{read:c.read,write:c.write}})],y.prototype,"style",void 0),y=i=(0,s.Cg)([(0,h.$)("esri.symbols.SimpleFillSymbol")],y)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8389],{4902:(t,e,r)=>{r.d(e,{PH:()=>n,sA:()=>l});var i=r(31635),s=r(40608);let o=0;const l=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return r=(0,i.Cg)([(0,s.$)("esri.core.Identifiable")],r),r},n=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return r=(0,i.Cg)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],r),r};l(class{})},8303:(t,e,r)=>{r.d(e,{A:()=>b});var i=r(31635),s=r(92602),o=r(70333),l=r(78888),n=r(60999),a=r(49186),u=r(53966),h=r(97768),p=r(74887),d=r(84952),c=r(10107),y=(r(44208),r(87811),r(36005)),g=r(40608),m=r(43937),f=r(77548),S=r(20655),w=r(80812),C=r(41318),v=r(10407);const b=t=>{const e=t;let b=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new w.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(e),await i({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,p.QP)(t),!0)))}async setUserPrivileges(t,e){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(t){(0,p.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const i=!o.id?.findCredential(this.url),s=t===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let l,n;if(s)l=r.portal.url;else try{l=await(0,f.wI)(this.url,e)}catch(t){(0,p.QP)(t)}if(!l||!(0,d.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;n=await(o.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,p.QP)(t)}const a=!0,u=!1,h=!1;if(!n)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(s?await r.reload():(r=new w.default({id:t,portal:{url:l}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,i)}catch(t){(0,p.QP)(t)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(t,e){const r=(0,v.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,p.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?o.id?.findCredential(this.url):null;if(!e)return!0;const r=M.credential===e?M.user:await this._fetchEditingUser(t);return M.credential=e,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=S.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(i))return s.user;const a=`${i}/community/self`,u=null!=t?t.signal:null,h=await(0,n.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?C.A.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,i=this.portalItem?.id&&(this.portalItem.portal||S.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,i.Cg)([(0,c.MZ)({type:w.default})],b.prototype,"portalItem",null),(0,i.Cg)([(0,y.w)("web-document","portalItem",["itemId"])],b.prototype,"readPortalItem",null),(0,i.Cg)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],b.prototype,"writePortalItem",null),(0,i.Cg)([(0,c.MZ)({clonable:!1})],b.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasUpdateItemPrivileges",void 0),b=(0,i.Cg)([(0,g.$)("esri.layers.mixins.PortalLayer")],b),b},M={credential:null,user:null}},20378:(t,e,r)=>{r.d(e,{A:()=>d});var i=r(31635),s=r(68197),o=r(66552),l=r(25482),n=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608);const h=new o.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let p=0,d=class extends l.o{constructor(t){super(t),this.id="sym"+p++,this.type=null,this.color=new s.A([0,0,0,1])}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i.Cg)([(0,n.MZ)({type:h.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:h.write,isRequired:!0}}})],d.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:s.A,json:{write:{allowNull:!0}}})],d.prototype,"color",void 0),(0,i.Cg)([(0,a.w)("color")],d.prototype,"readColor",null),d=(0,i.Cg)([(0,u.$)("esri.symbols.Symbol")],d)},31593:(t,e,r)=>{r.d(e,{A:()=>b});var i=r(31635),s=r(66552),o=r(4718),l=r(90629),n=r(10107),a=(r(44208),r(53966),r(93223)),u=r(40608),h=(r(87811),r(20378));let p=class extends h.A{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,i.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],p.prototype,"width",void 0),p=(0,i.Cg)([(0,u.$)("esri.symbols.LineSymbol")],p);var d,c=r(68197),y=r(25482),g=r(36005),m=r(43937),f=r(83213);let S=d=class extends y.o{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,r,i){e[r]="web-map"===i?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,r,i){"web-map"===i?.origin||(e[r]=t)}clone(){return new d({color:(0,o.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,i.Cg)([(0,n.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],S.prototype,"placement",void 0),(0,i.Cg)([(0,a.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,n.MZ)({json:{origins:{"web-map":{write:!1}}}})],S.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:f.z})],S.prototype,"style",void 0),(0,i.Cg)([(0,m.K)("style")],S.prototype,"writeStyle",null),(0,i.Cg)([(0,n.MZ)({type:c.A,value:null,json:{write:{allowNull:!0}}})],S.prototype,"color",null),(0,i.Cg)([(0,g.w)("color")],S.prototype,"readColor",null),(0,i.Cg)([(0,m.K)("color")],S.prototype,"writeColor",null),S=d=(0,i.Cg)([(0,u.$)("esri.symbols.LineSymbolMarker")],S);const w=S;var C;const v=new s.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let b=C=class extends p{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,r,i,s,o){if(t&&"string"!=typeof t)return t;const n={};return null!=t&&(n.style=t),null!=e&&(n.color=e),null!=r&&(n.width=(0,l.cr)(r)),null!=i&&(n.cap=i),null!=s&&(n.join=s),null!=o&&(n.miterLimit=(0,l.cr)(o)),n}clone(){return new C({color:(0,o.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,i.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],b.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:v.apiValues,json:{read:v.read,write:v.write}})],b.prototype,"style",void 0),(0,i.Cg)([(0,n.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],b.prototype,"cap",void 0),(0,i.Cg)([(0,n.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],b.prototype,"join",void 0),(0,i.Cg)([(0,n.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],b.prototype,"marker",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:!1,write:!1}})],b.prototype,"miterLimit",void 0),b=C=(0,i.Cg)([(0,u.$)("esri.symbols.SimpleLineSymbol")],b)},53930:(t,e,r)=>{r.d(e,{A:()=>m});var i,s=r(31635),o=r(68197),l=r(66552),n=r(4718),a=r(90629),u=r(10107),h=(r(44208),r(53966),r(93223)),p=r(40608),d=r(43937),c=r(89420),y=r(31593);const g=new l.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let m=i=class extends c.A{constructor(...t){super(...t),this.color=new o.A([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new y.A}normalizeCtorArgs(t,e,r,i){if(t&&"string"!=typeof t)return t;const s={};return t&&(s.style=t),null!=e&&(s.size=(0,a.cr)(e)),r&&(s.outline=r),i&&(s.color=i),s}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new i({angle:this.angle,color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,s.Cg)([(0,u.MZ)()],m.prototype,"color",void 0),(0,s.Cg)([(0,d.K)("color")],m.prototype,"writeColor",null),(0,s.Cg)([(0,h.e)({esriSMS:"simple-marker"},{readOnly:!0})],m.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)()],m.prototype,"size",void 0),(0,s.Cg)([(0,u.MZ)({type:g.apiValues,json:{read:g.read,write:g.write}})],m.prototype,"style",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],m.prototype,"path",null),(0,s.Cg)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":y.A}},json:{default:null,write:!0}})],m.prototype,"outline",void 0),m=i=(0,s.Cg)([(0,p.$)("esri.symbols.SimpleMarkerSymbol")],m)},58592:(t,e,r)=>{r.d(e,{A:()=>c});var i,s=r(31635),o=r(4718),l=r(90629),n=r(10107),a=(r(44208),r(53966),r(93223)),u=r(36005),h=r(40608),p=r(89420),d=r(77040);let c=i=class extends p.A{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const i={};return t&&(i.url=t),null!=e&&(i.width=(0,l.cr)(e)),null!=r&&(i.height=(0,l.cr)(r)),i}readHeight(t,e){return e.size||t}readWidth(t,e){return e.size||t}clone(){const t=new i({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",(0,o.o8)(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s.Cg)([(0,n.MZ)({json:{write:!1}})],c.prototype,"color",void 0),(0,s.Cg)([(0,a.e)({esriPMS:"picture-marker"},{readOnly:!0})],c.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)(d.ku)],c.prototype,"url",void 0),(0,s.Cg)([(0,n.MZ)(d.k7)],c.prototype,"source",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],c.prototype,"height",void 0),(0,s.Cg)([(0,u.w)("height",["height","size"])],c.prototype,"readHeight",null),(0,s.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],c.prototype,"width",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!1}})],c.prototype,"size",void 0),c=i=(0,s.Cg)([(0,h.$)("esri.symbols.PictureMarkerSymbol")],c)},65851:(t,e,r)=>{r.d(e,{A:()=>a});var i=r(31635),s=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),l=r(31593),n=r(20378);let a=class extends n.A{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,i.Cg)([(0,s.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":l.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,i.Cg)([(0,s.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,o.$)("esri.symbols.FillSymbol")],a)},68197:(t,e,r)=>{r.d(e,{A:()=>a});var i=r(40876),s=r(34727),o=r(56507);function l(t){return(0,s.qE)((0,o.Vr)(t),0,255)}function n(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}class a{static blendColors(t,e,r,i=new a){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){const r=(0,i.lT)(t);return r?a.fromArray(r,e):null}static fromHex(t,e=new a){const r=(0,i.oW)(t);return r?a.fromArray(r,e):null}static fromArray(t,e=new a){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,i.Eq)(t);return r?a.fromArray(r,e):null}static fromJSON(t){return null!=t?new a([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?a.fromString(t,this):Array.isArray(t)?a.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,s=4===r||8===r,o=`#${n(this.r,i)}${n(this.g,i)}${n(this.b,i)}${s?n(Math.round(255*this.a),i):""}`;return e?o.toUpperCase():o}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=l(this.r),r=l(this.g),i=l(this.b);return 0===t||1!==this.a?[e,r,i,l(255*this.a)]:[e,r,i]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}a.prototype.declaredClass="esri.Color"},69540:(t,e,r)=>{r.d(e,{OU:()=>h,Pw:()=>p});var i=r(31635),s=r(65008),o=(r(44208),r(4718)),l=(r(53966),r(97768)),n=r(88620),a=r(40608);const u=Symbol("ClonableMixin"),h=t=>{var e;const r=t;let s=class extends r{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,n.oY)(this);(0,l.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,i=e.store,s={},a=new Map;for(const e in r){const l=r[e],n=i?.originOf(e),u=l.clonable;if(l.readOnly||!1===u||7!==n&&0!==n&&5!==n&&4!==n)continue;const h=this[e];let p=null;if("function"==typeof u)p=u(h,t);else if("reference"===u)p=h;else if(p=(0,o.TU)(h,t),null!=h&&null==p)continue;0===n?a.set(e,p):s[e]=p}const u=new(0,Object.getPrototypeOf(this).constructor)(s);if(a.size){const t=(0,n.oY)(u)?.store;if(t)for(const[e,r]of a)t.set(e,r,0)}return u}};return s=(0,i.Cg)([(0,a.$)("esri.core.Clonable")],s),s},p=h(s.A)},77040:(t,e,r)=>{r.d(e,{k7:()=>n,ku:()=>l});var i=r(84952),s=r(97159);function o(t,e){if(!(0,i.oP)(t)){const r=function(t){if(!t)return null;const{origin:e,layer:r}=t;if("service"!==e&&"portal-item"!==e)return null;const i=r?.type;return"feature"===i||"stream"===i?r.parsedUrl?.path:"map-image"===i||"tile"===i?t.url?.path:null}(e);if(r)return(0,i.fj)(r,"images",t)}return(0,s.f)(t,e)}const l={json:{read:{source:["imageData","url"],reader:function(t,e,r){return e.imageData?(0,i.Hg)({mediaType:e.contentType||"image/png",isBase64:!0,data:e.imageData}):o(e.url,r)}},write:{writer(t,e,r,o){!function(t,e,r,o){if((0,i.DB)(t)){const l=(0,i.r$)(t);if(!l)return;e.contentType=l.mediaType,e.imageData=l.data,r&&r.imageData===e.imageData&&r.url&&(0,s.w)(r.url,e,"url",o)}else(0,s.w)(t,e,"url",o)}(t,e,this.source,o)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(t,e,r){const i={};return e.imageData&&(i.imageData=e.imageData),e.contentType&&(i.contentType=e.contentType),e.url&&(i.url=o(e.url,r)),i}}}}},78553:(t,e,r)=>{r.d(e,{D:()=>o,p:()=>s});var i=r(56507);function s(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79677:(t,e,r)=>{r.d(e,{A:()=>d});var i,s=r(31635),o=r(25482),l=r(88930),n=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),h=r(43937),p=r(98623);let d=class extends o.o{static{i=this}static get allTime(){return c}static get empty(){return y}static fromArray(t){return new i({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=t.start?.getTime()??t.start,s=t.end?.getTime()??t.end;return e===i&&r===s}expandTo(t,e=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,l.lL)(r,t,e));let s=this.end;if(s){const r=(0,l.lL)(s,t,e);s=s.getTime()===r.getTime()?r:(0,l.S1)(r,1,t,e)}return new i({start:r,end:s})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,s=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let l,n;return s>=e&&s<=r?l=s:e>=s&&e<=o&&(l=e),r>=s&&r<=o?n=r:o>=e&&o<=r&&(n=o),null==l||null==n||isNaN(l)||isNaN(n)?i.empty:new i({start:l===-1/0?null:new Date(l),end:n===1/0?null:new Date(n)})}offset(t,e,r=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();const s=new i,{start:o,end:n}=this;return null!=o&&(s.start=(0,l.S1)(o,t,e,r)),null!=n&&(s.end=(0,l.S1)(n,t,e,r)),s}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return c.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:r})}};(0,s.Cg)([(0,n.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,s.Cg)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,s.Cg)([(0,h.K)("end")],d.prototype,"writeEnd",null),(0,s.Cg)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,s.Cg)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,s.Cg)([(0,n.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,s.Cg)([(0,a.w)("start")],d.prototype,"readStart",null),(0,s.Cg)([(0,h.K)("start")],d.prototype,"writeStart",null),d=i=(0,s.Cg)([(0,u.$)("esri.time.TimeExtent")],d);const c=new d,y=new d({start:void 0,end:void 0})},83213:(t,e,r)=>{r.d(e,{x:()=>i,z:()=>s});const i=["begin","end","begin-end"],s=["arrow","circle","square","diamond","cross","x"]},85582:(t,e,r)=>{r.r(e),r.d(e,{default:()=>k});var i=r(31635),s=r(92602),o=r(78888),l=r(92071),n=r(74887),a=r(84952),u=r(10107),h=(r(44208),r(53966),r(87811),r(36005)),p=r(40608),d=r(5443),c=r(21325),y=r(4146),g=r(63074),m=r(16131),f=r(8303),S=r(54310),w=r(25036),C=r(10873),v=r(58592),b=r(94985),M=r(31593),A=r(53930),P=r(20378);const $=["atom","xml"],D={base:P.A,key:"type",typeMap:{"simple-line":M.A},errorContext:"symbol"},Z={base:P.A,key:"type",typeMap:{"picture-marker":v.A,"simple-marker":A.A},errorContext:"symbol"},T={base:P.A,key:"type",typeMap:{"simple-fill":b.A},errorContext:"symbol"};let j=class extends((0,g.dM)((0,S.J)((0,m.q)((0,f.A)((0,w.j)((0,l.P)(y.A))))))){constructor(...t){super(...t),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}readFeatureCollections(t,e){return e.featureCollection.layers.forEach(t=>{const e=t.layerDefinition.drawingInfo.renderer.symbol;e&&"esriSFS"===e.type&&e.outline?.style.includes("esriSFS")&&(e.outline.style="esriSLSSolid")}),e.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const t=this._get("title");return t&&"defaults"!==this.originOf("title")?t:this.url?(0,a.e7)(this.url,$)||"GeoRSS":t}set title(t){this._set("title",t)}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},t).catch(n.QP).then(()=>this._fetchService(e)).then(t=>{this.read(t,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const t=await this._fetchService();return this.read(t,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(t){const e=this.spatialReference,{data:r}=await(0,o.A)(s.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,c.oT)(e)?void 0:e.wkid??JSON.stringify(e)},signal:t});return r}_hasGeometry(t){return this.featureCollections?.some(e=>e.featureSet?.geometryType===t&&e.featureSet.features?.length>0)??!1}};(0,i.Cg)([(0,u.MZ)()],j.prototype,"description",void 0),(0,i.Cg)([(0,u.MZ)()],j.prototype,"featureCollections",void 0),(0,i.Cg)([(0,h.w)("service","featureCollections",["featureCollection.layers"])],j.prototype,"readFeatureCollections",null),(0,i.Cg)([(0,u.MZ)({type:d.A,json:{name:"lookAtExtent"}})],j.prototype,"fullExtent",void 0),(0,i.Cg)([(0,u.MZ)(C.id)],j.prototype,"id",void 0),(0,i.Cg)([(0,u.MZ)(C.fV)],j.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,u.MZ)({types:D,json:{write:!0}})],j.prototype,"lineSymbol",void 0),(0,i.Cg)([(0,u.MZ)({type:["show","hide"]})],j.prototype,"listMode",void 0),(0,i.Cg)([(0,u.MZ)({types:Z,json:{write:!0}})],j.prototype,"pointSymbol",void 0),(0,i.Cg)([(0,u.MZ)({types:T,json:{write:!0}})],j.prototype,"polygonSymbol",void 0),(0,i.Cg)([(0,u.MZ)({type:["GeoRSS"]})],j.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,u.MZ)(C.OZ)],j.prototype,"url",void 0),(0,i.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:t=>t||void 0}}}}})],j.prototype,"title",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],j.prototype,"type",void 0),j=(0,i.Cg)([(0,p.$)("esri.layers.GeoRSSLayer")],j);const k=j},89420:(t,e,r)=>{r.d(e,{A:()=>u});var i=r(31635),s=r(90629),o=r(10107),l=r(56507),n=(r(44208),r(87811),r(40608)),a=r(20378);let u=class extends a.A{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],u.prototype,"angle",void 0),(0,i.Cg)([(0,o.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,cast:s.cr,json:{write:!0}})],u.prototype,"xoffset",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,cast:s.cr,json:{write:!0}})],u.prototype,"yoffset",void 0),(0,i.Cg)([(0,o.MZ)({cast:t=>"auto"===t?t:(0,l.GB)((0,s.cr)(t)),json:{write:!0}})],u.prototype,"size",void 0),u=(0,i.Cg)([(0,n.$)("esri.symbols.MarkerSymbol")],u)},94985:(t,e,r)=>{r.d(e,{A:()=>y});var i,s=r(31635),o=r(68197),l=r(66552),n=r(4718),a=r(10107),u=(r(44208),r(53966),r(93223)),h=r(40608),p=r(65851),d=r(31593);const c=new l.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let y=i=class extends p.A{constructor(...t){super(...t),this.color=new o.A([0,0,0,.25]),this.outline=new d.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.style=t),e&&(i.outline=e),r&&(i.color=r),i}clone(){return new i({color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,s.Cg)([(0,a.MZ)()],y.prototype,"color",void 0),(0,s.Cg)([(0,a.MZ)()],y.prototype,"outline",void 0),(0,s.Cg)([(0,u.e)({esriSFS:"simple-fill"},{readOnly:!0})],y.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:c.apiValues,json:{read:c.read,write:c.write}})],y.prototype,"style",void 0),y=i=(0,s.Cg)([(0,h.$)("esri.symbols.SimpleFillSymbol")],y)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[431],{431:(t,e,r)=>{r.d(e,{o6:()=>g,HY:()=>w,hx:()=>b,Jb:()=>v});var n=r(9318);function s(t,e,r){const n=e/3,s=new Uint32Array(r+1),i=new Uint32Array(r+1),u=(t,e)=>{t<e?s[t+1]++:i[e+1]++};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];u(r,n),u(n,s),u(s,r)}let o=0,c=0;for(let t=0;t<r;t++){const e=s[t+1],r=i[t+1];s[t+1]=o,i[t+1]=c,o+=e,c+=r}const f=new Uint32Array(6*n),a=s[r],h=(t,e,r)=>{if(t<e){const n=s[t+1]++;f[2*n]=e,f[2*n+1]=r}else{const n=i[e+1]++;f[2*a+2*n]=t,f[2*a+2*n+1]=r}};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];h(r,n,e),h(n,s,e),h(s,r,e)}const l=(t,e)=>{const r=2*t,n=e-t;for(let t=1;t<n;t++){const e=f[r+2*t],n=f[r+2*t+1];let s=t-1;for(;s>=0&&f[r+2*s]>e;s--)f[r+2*s+2]=f[r+2*s],f[r+2*s+3]=f[r+2*s+1];f[r+2*s+2]=e,f[r+2*s+3]=n}};for(let t=0;t<r;t++)l(s[t],s[t+1]),l(a+i[t],a+i[t+1]);const d=new Int32Array(3*n),p=(e,r)=>e===t[3*r]?0:e===t[3*r+1]?1:e===t[3*r+2]?2:-1,y=(t,e)=>{const r=p(t,e);d[3*e+r]=-1},E=(t,e,r,n)=>{const s=p(t,e);d[3*e+s]=n;const i=p(r,n);d[3*n+i]=e};for(let t=0;t<r;t++){let e=s[t];const r=s[t+1];let n=i[t];const u=i[t+1];for(;e<r&&n<u;){const r=f[2*e],s=f[2*a+2*n];r===s?(E(t,f[2*e+1],s,f[2*a+2*n+1]),e++,n++):r<s?(y(t,f[2*e+1]),e++):(y(s,f[2*a+2*n+1]),n++)}for(;e<r;)y(t,f[2*e+1]),e++;for(;n<u;)y(f[2*a+2*n],f[2*a+2*n+1]),n++}return d}var i=r(1843),u=r(3055),o=r(87811),c=r(38954),f=r(51850),a=r(34727);function h(t,e,r,n,s,i=2){const u=1/(Math.abs(r)+Math.abs(n)+Math.abs(s)),o=r*u,c=n*u,f=s<=0?(o>=0?1:-1)*(1-Math.abs(c)):o,a=s<=0?(c>=0?1:-1)*(1-Math.abs(o)):c,h=e*i;t[h]=l(f),t[h+1]=l(a)}function l(t){return(0,a.qE)(Math.round(32767*t),-32767,32767)}r(11868),r(34275);class d{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?B:m}write(t,e,r){S.seed=this._edgeHashFunction(r);const n=S.getIntRange(0,255),s=S.getIntRange(0,this.settings.variants-1),i=S.getFloat(),u=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1),t.componentIndex.set(e,r.componentIndex),t.variantOffset.set(e,n),t.variantStroke.set(e,s),t.variantExtension.set(e,u)}}const p=new Float32Array(6),y=new Uint32Array(p.buffer),E=new Uint32Array(1);function m(t){return p[0]=t.position0[0],p[1]=t.position0[1],p[2]=t.position0[2],p[3]=t.position1[0],p[4]=t.position1[1],p[5]=t.position1[2],E[0]=31*(31*(31*(31*(31*(166811+y[0])+y[1])+y[2])+y[3])+y[4])+y[5],E[0]}function B(t){const e=p;e[0]=_(t.position0[0]),e[1]=_(t.position0[1]),e[2]=_(t.position0[2]),e[3]=_(t.position1[0]),e[4]=_(t.position1[1]),e[5]=_(t.position1[2]),E[0]=5381;for(let t=0;t<y.length;t++)E[0]=31*E[0]+y[t];return E[0]}const T=1e4;function _(t){return Math.round(t*T)/T}const M=(0,f.vt)(),S=new o.A;var A=r(93406);function g(t){const e=b(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return R.updateSettings(t.writerSettings),I.updateSettings(t.writerSettings),(0,A.K)(e,R,I)}function b(t,e,r,i){if(e){const e=s(r,i,t.count);return new N(r,i,e,t)}const o=(0,n.b)(t.buffer,t.stride/4,{originalIndices:r}),c=s(o.indices,i,o.uniqueCount);return{faces:o.indices,facesLength:o.indices.length,neighbors:c,vertices:u.I$.createView(o.buffer)}}class N{constructor(t,e,r,n){this.faces=t,this.facesLength=e,this.neighbors=r,this.vertices=n}}const R=new class{constructor(){this._commonWriter=new d}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return u.gr.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r),(0,c.f)(M,r.faceNormal0,r.faceNormal1),(0,c.n)(M,M);const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;h(n,e,M[0],M[1],M[2],s)}},I=new class{constructor(){this._commonWriter=new d}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return u.In.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r);{const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;h(n,e,r.faceNormal0[0],r.faceNormal0[1],r.faceNormal0[2],s)}{const{typedBuffer:n,typedBufferStride:s}=t.normal2Compressed;h(n,e,r.faceNormal1[0],r.faceNormal1[1],r.faceNormal1[2],s)}}},v=(0,i.BP)().vec3f("position0").vec3f("position1"),w=(0,i.BP)().vec3f("position0").vec3f("position1").u16("componentIndex")},620:(t,e,r)=>{r.d(e,{O_:()=>i,vA:()=>s}),r(48163),r(87317),(0,r(91829).vt)();class n{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function s(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new n(`${e} at ${t}`)}}function i(t,e,r,n){let s,i=(r[0]-t[0])/e[0],u=(n[0]-t[0])/e[0];i>u&&(s=i,i=u,u=s);let o=(r[1]-t[1])/e[1],c=(n[1]-t[1])/e[1];if(o>c&&(s=o,o=c,c=s),i>c||o>u)return!1;o>i&&(i=o),c<u&&(u=c);let f=(r[2]-t[2])/e[2],a=(n[2]-t[2])/e[2];return f>a&&(s=f,f=a,a=s),!(i>a||f>u||(a<u&&(u=a),u<0))}},1843:(t,e,r)=>{r.d(e,{BP:()=>h,l5:()=>l});var n=r(20498),s=r(13030),i=r(90239),u=r(4431),o=r(620),c=r(85079);class f{constructor(t,e){this.layout=t,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const r=t.fields.get(e);this[e]=new r.constructor(this.buffer,r.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new f(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const s=this.stride;if(s%4==0){const i=new Uint32Array(t.buffer,e*s,n*s/4);new Uint32Array(this.buffer,r*s,n*s/4).set(i)}else{const i=new Uint8Array(t.buffer,e*s,n*s);new Uint8Array(this.buffer,r*s,n*s).set(i)}return this}get cachedMemory(){return this.byteLength}dispose(){}}class a{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:y(t[1].constructor)})))}freeze(){return this}get locations(){return(0,c.Xk)((0,u.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?s.ZD:s.gH,e),this}vec2f(t,e){return this._appendField(t,s.gH,e),this}vec2f64(t,e){return this._appendField(t,s.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?s.EC:s.xs,e),this}vec3f(t,e){return this._appendField(t,s.xs,e),this}vec3f64(t,e){return this._appendField(t,s.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?s.jz:s.Eq,e),this}vec4f(t,e){return this._appendField(t,s.Eq,e),this}vec4f64(t,e){return this._appendField(t,s.Aj,e),this}mat3f(t,e){return this._appendField(t,s.jZ,e),this}mat3f64(t,e){return this._appendField(t,s.j0,e),this}mat4f(t,e){return this._appendField(t,s.Sx,e),this}mat4f64(t,e){return this._appendField(t,s.E$,e),this}vec4u8(t,e){return this._appendField(t,s.XP,e),this}f16(t,e){return this._appendField(t,n.SX?s.XW:s.Y$,e),this}f32(t,e){return this._appendField(t,s.Y$,e),this}f64(t,e){return this._appendField(t,s.qB,e),this}u8(t,e){return this._appendField(t,s.SL,e),this}u16(t,e){return this._appendField(t,s.h,e),this}i8(t,e){return this._appendField(t,s.bf,e),this}vec2i8(t,e){return this._appendField(t,s.D6,e),this}vec2i16(t,e){return this._appendField(t,s.mJ,e),this}vec2u8(t,e){return this._appendField(t,s.LC,e),this}vec2u16(t,e){return this._appendField(t,s.Yi,e),this}vec4u16(t,e){return this._appendField(t,s.Uz,e),this}u32(t,e){return this._appendField(t,s.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,o.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,i.GJ)(e.ElementType),s=this._stride;this._fields.set(t,{constructor:e,size:n,offset:s,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,i.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new f(this,t)}createView(t){return new f(this,t)}clone(){const t=new a;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function h(){return new a}class l{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:p(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function p(t){return`${t.ElementType}_${t.ElementCount}`}function y(t){return E.get(t)}const E=new Map;d.forEach(t=>E.set(p(t),t))},3055:(t,e,r)=>{r.d(e,{I$:()=>u,In:()=>a,gr:()=>f});var n=r(4431),s=r(1843),i=r(85079);const u=(0,s.BP)().vec3f("position").u16("componentIndex").freeze(),o=(0,s.BP)().vec2u8("sideness").freeze(),c=(0,n.U)(o),f=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex").u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),a=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex").u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),h=(0,n.U)(f,1),l=(0,n.U)(a,1);(0,i._u)([c,h]),(0,i._u)([c,l])},4431:(t,e,r)=>{r.d(e,{U:()=>i}),r(44208);var n=r(63907),s=r(74038);function i(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(i=>{const u=t.fields.get(i),o=u.constructor.ElementCount,c=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(u.constructor.ElementType),f=u.offset,a=u.optional?.glNormalized??!1;return new s._(i,o,c,f,r,a,e)})}},9318:(t,e,r)=>{r.d(e,{b:()=>i});var n=r(34727),s=r(97146);function i(t,e,r){const i=Array.isArray(t),a=i?t.length/e:t.byteLength/(4*e),h=i?t:new Uint32Array(t,0,a*e),l=r?.minReduction??0,d=r?.originalIndices||null,p=d?d.length:0,y=r?.componentOffsets||null;let E=0;if(y)for(let t=0;t<y.length-1;t++){const e=y[t+1]-y[t];e>E&&(E=e)}else E=a;const m=Math.floor(1.1*E)+1;(null==f||f.length<2*m)&&(f=new Uint32Array((0,n.cU)(2*m)));for(let t=0;t<2*m;t++)f[t]=0;let B=0;const T=!!y&&!!d,_=T?p:a;let M=(0,s.my)(a);const S=new Uint32Array(p),A=1.96;let g=0!==l?Math.ceil(4*A*A/(l*l)*l*(1-l)):_,b=1,N=y?y[1]:_;for(let t=0;t<_;t++){if(t===g){const e=1-B/t;if(e+A*Math.sqrt(e*(1-e)/t)<l)return null;g*=2}if(t===N){for(let t=0;t<2*m;t++)f[t]=0;if(d)for(let t=y[b-1];t<y[b];t++)S[t]=M[d[t]];N=y[++b]}const r=T?d[t]:t,n=r*e,s=c(h,n,e);let i=s%m,o=B;for(;0!==f[2*i+1];){if(f[2*i]===s){const t=f[2*i+1]-1;if(u(h,n,t*e,e)){o=M[t];break}}i++,i>=m&&(i-=m)}o===B&&(f[2*i]=s,f[2*i+1]=r+1,B++),M[r]=o}if(0!==l&&1-B/a<l)return null;if(T){for(let t=y[b-1];t<S.length;t++)S[t]=M[d[t]];M=(0,s.uW)(S)}const R=i?new Array(B):new Uint32Array(B*e);B=0;for(let t=0;t<_;t++)M[t]===B&&(o(h,(T?d[t]:t)*e,R,B*e,e),B++);if(d&&!T){const t=new Uint32Array(p);for(let e=0;e<t.length;e++)t[e]=M[d[e]];M=(0,s.uW)(t)}return{buffer:Array.isArray(R)?R:R.buffer,indices:M,uniqueCount:B}}function u(t,e,r,n){for(let s=0;s<n;s++)if(t[e+s]!==t[r+s])return!1;return!0}function o(t,e,r,n,s){for(let i=0;i<s;i++)r[n+i]=t[e+i]}function c(t,e,r){let n=0;for(let s=0;s<r;s++)n=t[e+s]+n|0,n=n+(n<<11)+(n>>>2)|0;return n>>>0}let f=null},11868:(t,e,r)=>{r.d(e,{Wz:()=>i,oe:()=>s});var n=r(34275);function s(t,e=!1){return t<=n.y9?e?new Array(t).fill(0):new Array(t):new Float32Array(t)}function i(t){return(Array.isArray(t)?t.length:t.byteLength/8)<=n.y9?Array.from(t):new Float32Array(t)}},13030:(t,e,r)=>{r.d(e,{Y$:()=>y,XW:()=>p,qB:()=>N,Qt:()=>j,My:()=>Z,bf:()=>X,jZ:()=>S,j0:()=>A,Sx:()=>g,E$:()=>b,h:()=>x,P:()=>G,SL:()=>w,gH:()=>m,ZD:()=>E,si:()=>R,mJ:()=>k,UL:()=>J,D6:()=>q,Yi:()=>O,An:()=>D,LC:()=>F,xs:()=>T,EC:()=>B,Xm:()=>I,Vp:()=>$,zD:()=>Q,m8:()=>z,nS:()=>P,H$:()=>Y,eI:()=>U,Eq:()=>M,jz:()=>_,Aj:()=>v,E7:()=>W,Y4:()=>K,TX:()=>V,Uz:()=>L,ml:()=>H,XP:()=>C});var n=r(20498);class s{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[u++]}get buffer(){return this.typedBuffer.buffer}}class i{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class u{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}var o=r(37585);class c{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var f=r(38954);class a{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,f.i)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var h=r(87317);class l{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,h.s)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var d=r(620);class p extends u{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}static{this.ElementType="f16"}}class y extends u{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class E extends c{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class m extends c{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(m,t,e)}static{this.ElementType="f32"}}class B extends a{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class T extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class _ extends l{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f16"}}class M extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f32"}}class S extends s{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class A extends s{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f64"}}class g extends i{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f32"}}class b extends i{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f64"}}class N extends u{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="f64"}}class R extends c{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class I extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(I,t,e)}static fromTypedArray(t,e){return new I(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class v extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f64"}}class w extends u{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="u8"}}class F extends c{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u8"}}class U extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(U,t,e)}static fromTypedArray(t,e){return new U(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class C extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="u8"}}class x extends u{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="u16"}}class O extends c{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u16"}}class P extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u16"}}class L extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u16"}}class G extends u{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="u32"}}class D extends c{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="u32"}}class Y extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u32"}}class H extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="u32"}}class X extends u{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="i8"}}class q extends c{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="i8"}}class z extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="i8"}}class V extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="i8"}}class j extends u{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="i16"}}class k extends c{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i16"}}class $ extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i16"}}class W extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class Z extends u{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i32"}}class J extends c{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i32"}}class Q extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i32"}}class K extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i32"}}},20498:(t,e,r)=>{r.d(e,{SX:()=>i,pX:()=>s});let n=globalThis.Float16Array;function s(){return n}let i=!!n},34304:(t,e,r)=>{r.d(e,{DF:()=>c,FD:()=>s,Ov:()=>i,ct:()=>f});let n=1e-6;function s(){return n}const i=Math.random,u=Math.PI/180,o=180/Math.PI;function c(t){return t*u}function f(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:s,setEpsilon:function(t){n=t},toDegree:f,toRadian:c},Symbol.toStringTag,{value:"Module"}))},34727:(t,e,r)=>{r.d(e,{$8:()=>A,Cc:()=>u,Hx:()=>y,Io:()=>M,KJ:()=>f,Sp:()=>l,XM:()=>a,YN:()=>h,ZH:()=>p,b6:()=>S,cU:()=>s,gg:()=>d,hs:()=>o,kU:()=>c,or:()=>b,pF:()=>R,pq:()=>N,qE:()=>i});const n=new Float32Array(1);function s(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,r){return Math.min(Math.max(t,e),r)}function u(t,e,r){return t+(e-t)*r}function o(t,e,r,n,s){return u(n,s,(t-e)/(r-e))}function c(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function a(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function l(t,e,r=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=r}function d(t,e,r=1e-6){return!l(t,e,r)&&t>e}function p(t,e,r=1e-6){return!l(t,e,r)&&t<e}function y(t,e,r=1e-6){return l(t,e,r)||t>e}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function m(t){return E.setFloat64(0,t),E.getBigInt64(0)}const B=1000000n,T=_(1);function _(t){const e=m(t=Math.abs(t)),r=function(t){return E.setBigInt64(0,t),E.getFloat64(0)}(e<=B?B:e-B);return Math.abs(t-r)}function M(t,e,r=T){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=r&&_(Math.min(Math.abs(t),Math.abs(e)))<r)return Math.abs(t-e)<=r;const n=m(t),s=m(e);return n<0==s<0&&!((n<s?s-n:n-s)>B)}function S(t,e,r=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;const n=Math.abs(t-e),s=Math.abs(t),i=Math.abs(e);if(0===t||0===e||s<1e-12&&i<1e-12){if(n>.01*r)return!1}else if(n/(s+i)>r)return!1;return!0}function A(t){return g(Math.max(-N,Math.min(t,N)))}function g(t){return n[0]=t,n[0]}function b(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],n=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(l(e,1)&&l(r,1)&&l(n,1))}const N=g(34028234663852886e22);function R(t,e,r){if(void 0===r||0===+r)return Math[t](e);if(e=+e,r=+r,isNaN(e)||"number"!=typeof r||r%1!=0)return NaN;let n=e.toString().split("e");return n=(e=Math[t](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}},37585:(t,e,r)=>{r.d(e,{C:()=>s,Cc:()=>E,Io:()=>h,S8:()=>y,WQ:()=>u,aI:()=>_,e$:()=>B,hZ:()=>i,hs:()=>a,jb:()=>S,l0:()=>m,t2:()=>T});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t}function i(t,e,r){return t[0]=e,t[1]=r,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function a(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function h(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function l(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function d(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function p(t){const e=t[0],r=t[1];return e*e+r*r}function y(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t}function E(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function m(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function B(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],u=Math.sin(n),o=Math.cos(n);return t[0]=s*o-i*u+r[0],t[1]=s*u+i*o+r[1],t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]}function _(t,e){const r=t[0],s=t[1],i=e[0],u=e[1],o=(0,n.FD)();return Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-u)<=o*Math.max(1,Math.abs(s),Math.abs(u))}const M=d,S=o,A=c,g=f,b=h,N=l,R=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let u=r*r+n*n;u>0&&(u=1/Math.sqrt(u));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const c=(r*s+n*i)*u*o;return c>1?0:c<-1?Math.PI:Math.acos(c)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:s,cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:b,distance:h,div:g,divide:f,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:_,exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:M,length:d,lerp:E,max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:A,multiply:c,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:y,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],u=e[1]-r[1];const o=(n[0]*i+n[1]*u)*(s-1);return i=n[0]*o,u=n[1]*o,t[0]=e[0]+i,t[1]=e[1]+u,t},random:function(t,e=1){const r=2*(0,n.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:B,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:a,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},set:i,sqrDist:N,sqrLen:R,squaredDistance:l,squaredLength:p,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:S,subtract:o,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:m,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"}))},38954:(t,e,r)=>{r.d(e,{A:()=>p,B:()=>d,C:()=>a,D:()=>h,E:()=>C,F:()=>L,H:()=>D,a:()=>x,b:()=>m,c:()=>u,d:()=>f,e:()=>g,f:()=>c,g:()=>E,h:()=>b,i:()=>o,j:()=>B,k:()=>_,l:()=>i,m:()=>N,n:()=>A,o:()=>I,q:()=>U,r:()=>S,s:()=>T,t:()=>R,u:()=>M,v:()=>v,w:()=>l,x:()=>G,y:()=>Y,z:()=>y});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function c(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function f(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function a(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function h(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function E(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function m(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function B(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function T(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function _(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function g(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],c=r[2];return t[0]=s*c-i*o,t[1]=i*u-n*c,t[2]=n*o-s*u,t}function N(t,e,r,n){const s=e[0],i=e[1],u=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t}function R(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function I(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function v(t,e,r){const n=r[0],s=r[1],i=r[2],u=r[3],o=e[0],c=e[1],f=e[2],a=s*f-i*c,h=i*o-n*f,l=n*c-s*o,d=s*l-i*h,p=i*a-n*l,y=n*h-s*a,E=2*u;return t[0]=o+a*E+2*d,t[1]=c+h*E+2*p,t[2]=f+l*E+2*y,t}const w=(0,n.vt)(),F=(0,n.vt)();function U(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function C(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let u=n*n+s*s+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=n*u,t[1]=s*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const x=f,O=a,P=h,L=B,G=T,D=i,Y=_;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:c,angle:function(t,e){A(w,t),A(F,e);const r=g(w,F);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){const u=1-i,o=u*u,c=i*i,f=o*u,a=3*i*o,h=3*c*u,l=c*i;return t[0]=e[0]*f+r[0]*a+n[0]*h+s[0]*l,t[1]=e[1]*f+r[1]*a+n[1]*h+s[1]*l,t[2]=e[2]*f+r[2]*a+n[2]*h+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:u,cross:b,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],c=r[2],f=s*c-i*o,a=i*u-n*c,h=n*o-s*u,l=Math.sqrt(f*f+a*a+h*h);return t[0]=f/l,t[1]=a/l,t[2]=h/l,t},direction:C,dist:L,distance:B,div:P,divide:h,dot:g,equals:function(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],u=e[0],o=e[1],c=e[2],f=(0,s.FD)();return Math.abs(r-u)<=f*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-o)<=f*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-c)<=f*Math.max(1,Math.abs(i),Math.abs(c))},exactEquals:U,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){const u=i*i,o=u*(2*i-3)+1,c=u*(i-2)+i,f=u*(i-1),a=u*(3-2*i);return t[0]=e[0]*o+r[0]*c+n[0]*f+s[0]*a,t[1]=e[1]*o+r[1]*c+n[1]*f+s[1]*a,t[2]=e[2]*o+r[2]*c+n[2]*f+s[2]*a,t},inverse:S,len:D,length:i,lerp:N,max:y,min:p,mul:O,multiply:a,negate:M,normalize:A,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*u,t[1]=Math.sin(n)*u,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:E,scaleAndAdd:m,set:o,sign:d,sqrDist:G,sqrLen:Y,squaredDistance:T,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:x,subtract:f,transformMat3:I,transformMat4:R,transformQuat:v},Symbol.toStringTag,{value:"Module"}))},48163:(t,e,r)=>{function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function o(){return i(1,0)}function c(){return i(0,1)}r.d(e,{Un:()=>f,fA:()=>i,o8:()=>s,vt:()=>n});const f=u(),a=o(),h=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_X:a,UNIT_Y:h,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,ones:u,unitX:o,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850:(t,e,r)=>{function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function u(t,e,r){return[t,e,r]}function o(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function c(){return i(1,1,1)}function f(){return i(1,0,0)}function a(){return i(0,1,0)}function h(){return i(0,0,1)}r.d(e,{CN:()=>u,Cb:()=>E,Cw:()=>p,JP:()=>y,Un:()=>d,ci:()=>o,fA:()=>i,o8:()=>s,uY:()=>l,vt:()=>n});const l=[0,0,0],d=c(),p=f(),y=a(),E=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:y,UNIT_Z:E,ZEROS:l,clone:s,create:n,freeze:u,fromArray:o,fromValues:i,ones:c,unitX:f,unitY:a,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},63907:(t,e,r)=>{r.d(e,{CQ:()=>y,Fq:()=>d,H0:()=>i,SB:()=>c,WR:()=>n,XN:()=>u,iE:()=>o,ld:()=>f,nI:()=>p,pe:()=>s,r6:()=>h,vt:()=>a,yI:()=>l});const n={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},s={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},u=Object.values(i),o={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},c={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},f={FLOAT:s.FLOAT,UNSIGNED_BYTE:s.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:s.BYTE,UNSIGNED_SHORT:s.UNSIGNED_SHORT,SHORT:s.SHORT,UNSIGNED_INT:s.UNSIGNED_INT,INT:s.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},a={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},h=36064,l=36065,d=36066,p=33306,y={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}},74038:(t,e,r)=>{r.d(e,{_:()=>n});class n{constructor(t,e,r,n,s,i=!1,u=0){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=s,this.normalized=i,this.divisor=u}}},85079:(t,e,r)=>{function n(t){let e=0;return new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n}))}function s(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}r.d(e,{Xk:()=>n,_u:()=>s})},90239:(t,e,r)=>{function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},93406:(t,e,r)=>{r.d(e,{K:()=>c});var n=r(34727),s=r(15142),i=r(38954),u=r(51850);const o=-1;function c(t,e,r){const n=t.vertices.position,s=t.vertices.componentIndex,u=y.position0,c=y.position1,h=y.faceNormal0,d=y.faceNormal1,{edges:p,normals:E}=a(t),m=p.length/4,B=e.allocate(m);let T=0;const _=m,A=r?.allocate(_);let b=0,N=0,R=0;l.length=0;for(let t=0;t<m;++t){const e=4*t;n.getVec(p.data[e],u),n.getVec(p.data[e+1],c);const r=l.pushNew();r.index=4*t,r.length=(0,i.j)(u,c)}l.sort((t,e)=>e.length-t.length);const I=new Array,v=new Array;l.forAll(({length:t,index:a})=>{const l=p.data[a],m=p.data[a+1],_=p.data[a+2],w=p.data[a+3],F=w===o;if(n.getVec(l,u),n.getVec(m,c),F){const t=3*_;(0,i.i)(h,E.data[t],E.data[t+1],E.data[t+2]),(0,i.c)(d,h),y.componentIndex=s.get(l),y.cosAngle=(0,i.e)(h,d)}else{let t=3*_;if((0,i.i)(h,E.data[t],E.data[t+1],E.data[t+2]),t=3*w,(0,i.i)(d,E.data[t],E.data[t+1],E.data[t+2]),y.componentIndex=s.get(l),y.cosAngle=(0,i.e)(h,d),function(t,e){return t.cosAngle>e}(y,S))return;y.cosAngle<-.9999&&(0,i.c)(d,h)}N+=t,R++,F||function(t,e){return t.cosAngle<e}(y,g)?(e.write(B,T++,y),I.push(t)):f(y,M)&&(A&&r&&r.write(A,b++,y),v.push(t))});const w=new Float32Array(I.reverse()),F=new Float32Array(v.reverse()),U=A&&r?{instancesData:A.slice(0,b),lodInfo:{lengths:F}}:void 0;return{regular:{instancesData:B.slice(0,T),lodInfo:{lengths:w}},silhouette:U,averageEdgeLength:N/R}}function f(t,e){const r=(0,n.XM)(t.cosAngle);return(0,i.E)(m,t.position1,t.position0),r*((0,i.e)((0,i.h)(E,t.faceNormal0,t.faceNormal1),m)>0?-1:1)>e}function a(t){const e=t.faces.length/3,r=t.faces,n=t.neighbors,s=t.vertices.position;d.length=p.length=0;for(let t=0;t<e;t++){const e=3*t,u=n[e],c=n[e+1],f=n[e+2],a=r[e],h=r[e+1],l=r[e+2];s.getVec(a,B),s.getVec(h,T),s.getVec(l,_),(0,i.d)(T,T,B),(0,i.d)(_,_,B),(0,i.h)(B,T,_),(0,i.n)(B,B),p.pushArray(B),(u===o||a<h)&&(d.push(a),d.push(h),d.push(t),d.push(u)),(c===o||h<l)&&(d.push(h),d.push(l),d.push(t),d.push(c)),(f===o||l<a)&&(d.push(l),d.push(a),d.push(t),d.push(f))}return{edges:d,normals:p}}class h{constructor(){this.index=0,this.length=0}}const l=new s.A({allocator:t=>t||new h,deallocator:null}),d=new s.A({deallocator:null}),p=new s.A({deallocator:null}),y=new class{constructor(){this.position0=(0,u.vt)(),this.position1=(0,u.vt)(),this.faceNormal0=(0,u.vt)(),this.faceNormal1=(0,u.vt)(),this.componentIndex=0,this.cosAngle=0}},E=(0,u.vt)(),m=(0,u.vt)(),B=(0,u.vt)(),T=(0,u.vt)(),_=(0,u.vt)(),M=(0,n.kU)(4),S=Math.cos(M),A=(0,n.kU)(35),g=Math.cos(A)},97146:(t,e,r)=>{r.d(e,{Dg:()=>i,my:()=>u,tM:()=>a,uW:()=>s});var n=r(34275);function s(t){return i(t,!0)}function i(t,e){if(Array.isArray(t)){if(t.length<n.y9)return t}else if(t.length<n.y9)return Array.from(t);let r=!0,s=!0;return t.some((t,e)=>(r=r&&0===t,s=s&&t===e,!r&&!s)),r?function(t){if(1===t)return c;if(t<n.y9)return new Array(t).fill(0);if(t>l.length){const e=Math.max(2*l.length,t);l=new Uint8Array(e)}return new Uint8Array(l.buffer,0,t)}(t.length):s?a(t.length):(0,n.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,n.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function u(t){return t<=n.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let o=h(131072);const c=[0],f=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function a(t){return 1===t?c:t<n.y9?Array.from(new Uint16Array(f.buffer,0,t)):t<f.length?new Uint16Array(f.buffer,0,t):(t>o.length&&(o=h(Math.max(2*o.length,t))),new Uint32Array(o.buffer,0,t))}function h(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let l=new Uint8Array(65536)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[431],{431:(t,e,r)=>{r.d(e,{o6:()=>g,HY:()=>w,hx:()=>b,Jb:()=>v});var n=r(9318);function s(t,e,r){const n=e/3,s=new Uint32Array(r+1),i=new Uint32Array(r+1),u=(t,e)=>{t<e?s[t+1]++:i[e+1]++};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];u(r,n),u(n,s),u(s,r)}let o=0,c=0;for(let t=0;t<r;t++){const e=s[t+1],r=i[t+1];s[t+1]=o,i[t+1]=c,o+=e,c+=r}const f=new Uint32Array(6*n),a=s[r],h=(t,e,r)=>{if(t<e){const n=s[t+1]++;f[2*n]=e,f[2*n+1]=r}else{const n=i[e+1]++;f[2*a+2*n]=t,f[2*a+2*n+1]=r}};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];h(r,n,e),h(n,s,e),h(s,r,e)}const l=(t,e)=>{const r=2*t,n=e-t;for(let t=1;t<n;t++){const e=f[r+2*t],n=f[r+2*t+1];let s=t-1;for(;s>=0&&f[r+2*s]>e;s--)f[r+2*s+2]=f[r+2*s],f[r+2*s+3]=f[r+2*s+1];f[r+2*s+2]=e,f[r+2*s+3]=n}};for(let t=0;t<r;t++)l(s[t],s[t+1]),l(a+i[t],a+i[t+1]);const d=new Int32Array(3*n),p=(e,r)=>e===t[3*r]?0:e===t[3*r+1]?1:e===t[3*r+2]?2:-1,y=(t,e)=>{const r=p(t,e);d[3*e+r]=-1},E=(t,e,r,n)=>{const s=p(t,e);d[3*e+s]=n;const i=p(r,n);d[3*n+i]=e};for(let t=0;t<r;t++){let e=s[t];const r=s[t+1];let n=i[t];const u=i[t+1];for(;e<r&&n<u;){const r=f[2*e],s=f[2*a+2*n];r===s?(E(t,f[2*e+1],s,f[2*a+2*n+1]),e++,n++):r<s?(y(t,f[2*e+1]),e++):(y(s,f[2*a+2*n+1]),n++)}for(;e<r;)y(t,f[2*e+1]),e++;for(;n<u;)y(f[2*a+2*n],f[2*a+2*n+1]),n++}return d}var i=r(1843),u=r(3055),o=r(87811),c=r(38954),f=r(51850),a=r(34727);function h(t,e,r,n,s,i=2){const u=1/(Math.abs(r)+Math.abs(n)+Math.abs(s)),o=r*u,c=n*u,f=s<=0?(o>=0?1:-1)*(1-Math.abs(c)):o,a=s<=0?(c>=0?1:-1)*(1-Math.abs(o)):c,h=e*i;t[h]=l(f),t[h+1]=l(a)}function l(t){return(0,a.qE)(Math.round(32767*t),-32767,32767)}r(11868),r(34275);class d{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?B:m}write(t,e,r){S.seed=this._edgeHashFunction(r);const n=S.getIntRange(0,255),s=S.getIntRange(0,this.settings.variants-1),i=S.getFloat(),u=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1),t.componentIndex.set(e,r.componentIndex),t.variantOffset.set(e,n),t.variantStroke.set(e,s),t.variantExtension.set(e,u)}}const p=new Float32Array(6),y=new Uint32Array(p.buffer),E=new Uint32Array(1);function m(t){return p[0]=t.position0[0],p[1]=t.position0[1],p[2]=t.position0[2],p[3]=t.position1[0],p[4]=t.position1[1],p[5]=t.position1[2],E[0]=31*(31*(31*(31*(31*(166811+y[0])+y[1])+y[2])+y[3])+y[4])+y[5],E[0]}function B(t){const e=p;e[0]=_(t.position0[0]),e[1]=_(t.position0[1]),e[2]=_(t.position0[2]),e[3]=_(t.position1[0]),e[4]=_(t.position1[1]),e[5]=_(t.position1[2]),E[0]=5381;for(let t=0;t<y.length;t++)E[0]=31*E[0]+y[t];return E[0]}const T=1e4;function _(t){return Math.round(t*T)/T}const M=(0,f.vt)(),S=new o.A;var A=r(93406);function g(t){const e=b(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return R.updateSettings(t.writerSettings),I.updateSettings(t.writerSettings),(0,A.K)(e,R,I)}function b(t,e,r,i){if(e){const e=s(r,i,t.count);return new N(r,i,e,t)}const o=(0,n.b)(t.buffer,t.stride/4,{originalIndices:r}),c=s(o.indices,i,o.uniqueCount);return{faces:o.indices,facesLength:o.indices.length,neighbors:c,vertices:u.I$.createView(o.buffer)}}class N{constructor(t,e,r,n){this.faces=t,this.facesLength=e,this.neighbors=r,this.vertices=n}}const R=new class{constructor(){this._commonWriter=new d}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return u.gr.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r),(0,c.f)(M,r.faceNormal0,r.faceNormal1),(0,c.n)(M,M);const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;h(n,e,M[0],M[1],M[2],s)}},I=new class{constructor(){this._commonWriter=new d}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return u.In.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r);{const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;h(n,e,r.faceNormal0[0],r.faceNormal0[1],r.faceNormal0[2],s)}{const{typedBuffer:n,typedBufferStride:s}=t.normal2Compressed;h(n,e,r.faceNormal1[0],r.faceNormal1[1],r.faceNormal1[2],s)}}},v=(0,i.BP)().vec3f("position0").vec3f("position1"),w=(0,i.BP)().vec3f("position0").vec3f("position1").u16("componentIndex")},620:(t,e,r)=>{r.d(e,{O_:()=>i,vA:()=>s}),r(48163),r(87317),(0,r(91829).vt)();class n{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function s(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new n(`${e} at ${t}`)}}function i(t,e,r,n){let s,i=(r[0]-t[0])/e[0],u=(n[0]-t[0])/e[0];i>u&&(s=i,i=u,u=s);let o=(r[1]-t[1])/e[1],c=(n[1]-t[1])/e[1];if(o>c&&(s=o,o=c,c=s),i>c||o>u)return!1;o>i&&(i=o),c<u&&(u=c);let f=(r[2]-t[2])/e[2],a=(n[2]-t[2])/e[2];return f>a&&(s=f,f=a,a=s),!(i>a||f>u||(a<u&&(u=a),u<0))}},1843:(t,e,r)=>{r.d(e,{BP:()=>h,l5:()=>l});var n=r(20498),s=r(13030),i=r(90239),u=r(4431),o=r(620),c=r(85079);class f{constructor(t,e){this.layout=t,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const r=t.fields.get(e);this[e]=new r.constructor(this.buffer,r.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new f(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const s=this.stride;if(s%4==0){const i=new Uint32Array(t.buffer,e*s,n*s/4);new Uint32Array(this.buffer,r*s,n*s/4).set(i)}else{const i=new Uint8Array(t.buffer,e*s,n*s);new Uint8Array(this.buffer,r*s,n*s).set(i)}return this}get cachedMemory(){return this.byteLength}dispose(){}}class a{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:y(t[1].constructor)})))}freeze(){return this}get locations(){return(0,c.Xk)((0,u.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?s.ZD:s.gH,e),this}vec2f(t,e){return this._appendField(t,s.gH,e),this}vec2f64(t,e){return this._appendField(t,s.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?s.EC:s.xs,e),this}vec3f(t,e){return this._appendField(t,s.xs,e),this}vec3f64(t,e){return this._appendField(t,s.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?s.jz:s.Eq,e),this}vec4f(t,e){return this._appendField(t,s.Eq,e),this}vec4f64(t,e){return this._appendField(t,s.Aj,e),this}mat3f(t,e){return this._appendField(t,s.jZ,e),this}mat3f64(t,e){return this._appendField(t,s.j0,e),this}mat4f(t,e){return this._appendField(t,s.Sx,e),this}mat4f64(t,e){return this._appendField(t,s.E$,e),this}vec4u8(t,e){return this._appendField(t,s.XP,e),this}f16(t,e){return this._appendField(t,n.SX?s.XW:s.Y$,e),this}f32(t,e){return this._appendField(t,s.Y$,e),this}f64(t,e){return this._appendField(t,s.qB,e),this}u8(t,e){return this._appendField(t,s.SL,e),this}u16(t,e){return this._appendField(t,s.h,e),this}i8(t,e){return this._appendField(t,s.bf,e),this}vec2i8(t,e){return this._appendField(t,s.D6,e),this}vec2i16(t,e){return this._appendField(t,s.mJ,e),this}vec2u8(t,e){return this._appendField(t,s.LC,e),this}vec2u16(t,e){return this._appendField(t,s.Yi,e),this}vec4u16(t,e){return this._appendField(t,s.Uz,e),this}u32(t,e){return this._appendField(t,s.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,o.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,i.GJ)(e.ElementType),s=this._stride;this._fields.set(t,{constructor:e,size:n,offset:s,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,i.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new f(this,t)}createView(t){return new f(this,t)}clone(){const t=new a;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function h(){return new a}class l{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:p(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function p(t){return`${t.ElementType}_${t.ElementCount}`}function y(t){return E.get(t)}const E=new Map;d.forEach(t=>E.set(p(t),t))},3055:(t,e,r)=>{r.d(e,{I$:()=>u,In:()=>a,gr:()=>f});var n=r(4431),s=r(1843),i=r(85079);const u=(0,s.BP)().vec3f("position").u16("componentIndex").freeze(),o=(0,s.BP)().vec2u8("sideness").freeze(),c=(0,n.U)(o),f=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex").u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),a=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex").u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),h=(0,n.U)(f,1),l=(0,n.U)(a,1);(0,i._u)([c,h]),(0,i._u)([c,l])},4431:(t,e,r)=>{r.d(e,{U:()=>i}),r(44208);var n=r(63907),s=r(74038);function i(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(i=>{const u=t.fields.get(i),o=u.constructor.ElementCount,c=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(u.constructor.ElementType),f=u.offset,a=u.optional?.glNormalized??!1;return new s._(i,o,c,f,r,a,e)})}},9318:(t,e,r)=>{r.d(e,{b:()=>i});var n=r(34727),s=r(97146);function i(t,e,r){const i=Array.isArray(t),a=i?t.length/e:t.byteLength/(4*e),h=i?t:new Uint32Array(t,0,a*e),l=r?.minReduction??0,d=r?.originalIndices||null,p=d?d.length:0,y=r?.componentOffsets||null;let E=0;if(y)for(let t=0;t<y.length-1;t++){const e=y[t+1]-y[t];e>E&&(E=e)}else E=a;const m=Math.floor(1.1*E)+1;(null==f||f.length<2*m)&&(f=new Uint32Array((0,n.cU)(2*m)));for(let t=0;t<2*m;t++)f[t]=0;let B=0;const T=!!y&&!!d,_=T?p:a;let M=(0,s.my)(a);const S=new Uint32Array(p),A=1.96;let g=0!==l?Math.ceil(4*A*A/(l*l)*l*(1-l)):_,b=1,N=y?y[1]:_;for(let t=0;t<_;t++){if(t===g){const e=1-B/t;if(e+A*Math.sqrt(e*(1-e)/t)<l)return null;g*=2}if(t===N){for(let t=0;t<2*m;t++)f[t]=0;if(d)for(let t=y[b-1];t<y[b];t++)S[t]=M[d[t]];N=y[++b]}const r=T?d[t]:t,n=r*e,s=c(h,n,e);let i=s%m,o=B;for(;0!==f[2*i+1];){if(f[2*i]===s){const t=f[2*i+1]-1;if(u(h,n,t*e,e)){o=M[t];break}}i++,i>=m&&(i-=m)}o===B&&(f[2*i]=s,f[2*i+1]=r+1,B++),M[r]=o}if(0!==l&&1-B/a<l)return null;if(T){for(let t=y[b-1];t<S.length;t++)S[t]=M[d[t]];M=(0,s.uW)(S)}const R=i?new Array(B):new Uint32Array(B*e);B=0;for(let t=0;t<_;t++)M[t]===B&&(o(h,(T?d[t]:t)*e,R,B*e,e),B++);if(d&&!T){const t=new Uint32Array(p);for(let e=0;e<t.length;e++)t[e]=M[d[e]];M=(0,s.uW)(t)}return{buffer:Array.isArray(R)?R:R.buffer,indices:M,uniqueCount:B}}function u(t,e,r,n){for(let s=0;s<n;s++)if(t[e+s]!==t[r+s])return!1;return!0}function o(t,e,r,n,s){for(let i=0;i<s;i++)r[n+i]=t[e+i]}function c(t,e,r){let n=0;for(let s=0;s<r;s++)n=t[e+s]+n|0,n=n+(n<<11)+(n>>>2)|0;return n>>>0}let f=null},11868:(t,e,r)=>{r.d(e,{Wz:()=>i,oe:()=>s});var n=r(34275);function s(t,e=!1){return t<=n.y9?e?new Array(t).fill(0):new Array(t):new Float32Array(t)}function i(t){return(Array.isArray(t)?t.length:t.byteLength/8)<=n.y9?Array.from(t):new Float32Array(t)}},13030:(t,e,r)=>{r.d(e,{Y$:()=>y,XW:()=>p,qB:()=>N,Qt:()=>j,My:()=>Z,bf:()=>X,jZ:()=>S,j0:()=>A,Sx:()=>g,E$:()=>b,h:()=>x,P:()=>L,SL:()=>w,gH:()=>m,ZD:()=>E,si:()=>R,mJ:()=>k,UL:()=>J,D6:()=>q,Yi:()=>O,An:()=>D,LC:()=>F,xs:()=>T,EC:()=>B,Xm:()=>I,Vp:()=>$,zD:()=>Q,m8:()=>z,nS:()=>P,H$:()=>Y,eI:()=>U,Eq:()=>M,jz:()=>_,Aj:()=>v,E7:()=>W,Y4:()=>K,TX:()=>V,Uz:()=>G,ml:()=>H,XP:()=>C});var n=r(20498);class s{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[u++]}get buffer(){return this.typedBuffer.buffer}}class i{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class u{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}var o=r(37585);class c{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var f=r(38954);class a{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,f.i)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var h=r(87317);class l{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,h.s)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var d=r(620);class p extends u{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}static{this.ElementType="f16"}}class y extends u{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class E extends c{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class m extends c{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(m,t,e)}static{this.ElementType="f32"}}class B extends a{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class T extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class _ extends l{constructor(t,e=0,r,s){(0,d.vA)(n.SX),super((0,n.pX)(),t,e,r,s),this.elementType="f16"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f16"}}class M extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f32"}}class S extends s{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class A extends s{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f64"}}class g extends i{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f32"}}class b extends i{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f64"}}class N extends u{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="f64"}}class R extends c{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class I extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(I,t,e)}static fromTypedArray(t,e){return new I(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class v extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f64"}}class w extends u{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="u8"}}class F extends c{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u8"}}class U extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(U,t,e)}static fromTypedArray(t,e){return new U(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class C extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="u8"}}class x extends u{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="u16"}}class O extends c{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u16"}}class P extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u16"}}class G extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="u16"}}class L extends u{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u32"}}class D extends c{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="u32"}}class Y extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u32"}}class H extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="u32"}}class X extends u{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="i8"}}class q extends c{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="i8"}}class z extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="i8"}}class V extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="i8"}}class j extends u{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="i16"}}class k extends c{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i16"}}class $ extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i16"}}class W extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class Z extends u{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i32"}}class J extends c{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i32"}}class Q extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i32"}}class K extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i32"}}},20498:(t,e,r)=>{r.d(e,{SX:()=>i,pX:()=>s});let n=globalThis.Float16Array;function s(){return n}let i=!!n},34304:(t,e,r)=>{r.d(e,{DF:()=>c,FD:()=>s,Ov:()=>i,ct:()=>f});let n=1e-6;function s(){return n}const i=Math.random,u=Math.PI/180,o=180/Math.PI;function c(t){return t*u}function f(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:s,setEpsilon:function(t){n=t},toDegree:f,toRadian:c},Symbol.toStringTag,{value:"Module"}))},34727:(t,e,r)=>{r.d(e,{$8:()=>A,Cc:()=>u,Hx:()=>y,Io:()=>M,KJ:()=>f,Sp:()=>l,XM:()=>a,YN:()=>h,ZH:()=>p,b6:()=>S,cU:()=>s,gg:()=>d,hs:()=>o,kU:()=>c,or:()=>b,pF:()=>R,pq:()=>N,qE:()=>i});const n=new Float32Array(1);function s(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,r){return Math.min(Math.max(t,e),r)}function u(t,e,r){return t+(e-t)*r}function o(t,e,r,n,s){return u(n,s,(t-e)/(r-e))}function c(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function a(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function l(t,e,r=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=r}function d(t,e,r=1e-6){return!l(t,e,r)&&t>e}function p(t,e,r=1e-6){return!l(t,e,r)&&t<e}function y(t,e,r=1e-6){return l(t,e,r)||t>e}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function m(t){return E.setFloat64(0,t),E.getBigInt64(0)}const B=1000000n,T=_(1);function _(t){const e=m(t=Math.abs(t)),r=function(t){return E.setBigInt64(0,t),E.getFloat64(0)}(e<=B?B:e-B);return Math.abs(t-r)}function M(t,e,r=T){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=r&&_(Math.min(Math.abs(t),Math.abs(e)))<r)return Math.abs(t-e)<=r;const n=m(t),s=m(e);return n<0==s<0&&!((n<s?s-n:n-s)>B)}function S(t,e,r=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;const n=Math.abs(t-e),s=Math.abs(t),i=Math.abs(e);if(0===t||0===e||s<1e-12&&i<1e-12){if(n>.01*r)return!1}else if(n/(s+i)>r)return!1;return!0}function A(t){return g(Math.max(-N,Math.min(t,N)))}function g(t){return n[0]=t,n[0]}function b(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],n=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(l(e,1)&&l(r,1)&&l(n,1))}const N=g(34028234663852886e22);function R(t,e,r){if(void 0===r||0===+r)return Math[t](e);if(e=+e,r=+r,isNaN(e)||"number"!=typeof r||r%1!=0)return NaN;let n=e.toString().split("e");return n=(e=Math[t](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}},37585:(t,e,r)=>{r.d(e,{C:()=>s,Cc:()=>E,Io:()=>h,S8:()=>y,WQ:()=>u,aI:()=>_,e$:()=>B,hG:()=>l,hZ:()=>i,hs:()=>a,jb:()=>S,l0:()=>m,t2:()=>T});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t}function i(t,e,r){return t[0]=e,t[1]=r,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function a(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function h(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function l(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function d(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function p(t){const e=t[0],r=t[1];return e*e+r*r}function y(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t}function E(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function m(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function B(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],u=Math.sin(n),o=Math.cos(n);return t[0]=s*o-i*u+r[0],t[1]=s*u+i*o+r[1],t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]}function _(t,e){const r=t[0],s=t[1],i=e[0],u=e[1],o=(0,n.FD)();return Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-u)<=o*Math.max(1,Math.abs(s),Math.abs(u))}const M=d,S=o,A=c,g=f,b=h,N=l,R=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let u=r*r+n*n;u>0&&(u=1/Math.sqrt(u));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const c=(r*s+n*i)*u*o;return c>1?0:c<-1?Math.PI:Math.acos(c)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:s,cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:b,distance:h,div:g,divide:f,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:_,exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:M,length:d,lerp:E,max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:A,multiply:c,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:y,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],u=e[1]-r[1];const o=(n[0]*i+n[1]*u)*(s-1);return i=n[0]*o,u=n[1]*o,t[0]=e[0]+i,t[1]=e[1]+u,t},random:function(t,e=1){const r=2*(0,n.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:B,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:a,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},set:i,sqrDist:N,sqrLen:R,squaredDistance:l,squaredLength:p,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:S,subtract:o,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:m,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"}))},38954:(t,e,r)=>{r.d(e,{A:()=>p,B:()=>d,C:()=>a,D:()=>h,E:()=>C,F:()=>G,H:()=>D,a:()=>x,b:()=>m,c:()=>u,d:()=>f,e:()=>g,f:()=>c,g:()=>E,h:()=>b,i:()=>o,j:()=>B,k:()=>_,l:()=>i,m:()=>N,n:()=>A,o:()=>I,q:()=>U,r:()=>S,s:()=>T,t:()=>R,u:()=>M,v:()=>v,w:()=>l,x:()=>L,y:()=>Y,z:()=>y});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function c(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function f(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function a(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function h(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function E(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function m(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function B(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function T(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function _(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function g(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],c=r[2];return t[0]=s*c-i*o,t[1]=i*u-n*c,t[2]=n*o-s*u,t}function N(t,e,r,n){const s=e[0],i=e[1],u=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t}function R(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function I(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function v(t,e,r){const n=r[0],s=r[1],i=r[2],u=r[3],o=e[0],c=e[1],f=e[2],a=s*f-i*c,h=i*o-n*f,l=n*c-s*o,d=s*l-i*h,p=i*a-n*l,y=n*h-s*a,E=2*u;return t[0]=o+a*E+2*d,t[1]=c+h*E+2*p,t[2]=f+l*E+2*y,t}const w=(0,n.vt)(),F=(0,n.vt)();function U(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function C(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let u=n*n+s*s+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=n*u,t[1]=s*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const x=f,O=a,P=h,G=B,L=T,D=i,Y=_;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:c,angle:function(t,e){A(w,t),A(F,e);const r=g(w,F);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){const u=1-i,o=u*u,c=i*i,f=o*u,a=3*i*o,h=3*c*u,l=c*i;return t[0]=e[0]*f+r[0]*a+n[0]*h+s[0]*l,t[1]=e[1]*f+r[1]*a+n[1]*h+s[1]*l,t[2]=e[2]*f+r[2]*a+n[2]*h+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:u,cross:b,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],c=r[2],f=s*c-i*o,a=i*u-n*c,h=n*o-s*u,l=Math.sqrt(f*f+a*a+h*h);return t[0]=f/l,t[1]=a/l,t[2]=h/l,t},direction:C,dist:G,distance:B,div:P,divide:h,dot:g,equals:function(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],u=e[0],o=e[1],c=e[2],f=(0,s.FD)();return Math.abs(r-u)<=f*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-o)<=f*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-c)<=f*Math.max(1,Math.abs(i),Math.abs(c))},exactEquals:U,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){const u=i*i,o=u*(2*i-3)+1,c=u*(i-2)+i,f=u*(i-1),a=u*(3-2*i);return t[0]=e[0]*o+r[0]*c+n[0]*f+s[0]*a,t[1]=e[1]*o+r[1]*c+n[1]*f+s[1]*a,t[2]=e[2]*o+r[2]*c+n[2]*f+s[2]*a,t},inverse:S,len:D,length:i,lerp:N,max:y,min:p,mul:O,multiply:a,negate:M,normalize:A,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*u,t[1]=Math.sin(n)*u,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:E,scaleAndAdd:m,set:o,sign:d,sqrDist:L,sqrLen:Y,squaredDistance:T,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:x,subtract:f,transformMat3:I,transformMat4:R,transformQuat:v},Symbol.toStringTag,{value:"Module"}))},48163:(t,e,r)=>{function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function o(){return i(1,0)}function c(){return i(0,1)}r.d(e,{Un:()=>f,fA:()=>i,o8:()=>s,vt:()=>n});const f=u(),a=o(),h=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_X:a,UNIT_Y:h,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,ones:u,unitX:o,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850:(t,e,r)=>{function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function u(t,e,r){return[t,e,r]}function o(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function c(){return i(1,1,1)}function f(){return i(1,0,0)}function a(){return i(0,1,0)}function h(){return i(0,0,1)}r.d(e,{CN:()=>u,Cb:()=>E,Cw:()=>p,JP:()=>y,Un:()=>d,ci:()=>o,fA:()=>i,o8:()=>s,uY:()=>l,vt:()=>n});const l=[0,0,0],d=c(),p=f(),y=a(),E=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:y,UNIT_Z:E,ZEROS:l,clone:s,create:n,freeze:u,fromArray:o,fromValues:i,ones:c,unitX:f,unitY:a,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},63907:(t,e,r)=>{r.d(e,{CQ:()=>y,Fq:()=>d,H0:()=>i,SB:()=>c,WR:()=>n,XN:()=>u,iE:()=>o,ld:()=>f,nI:()=>p,pe:()=>s,r6:()=>h,vt:()=>a,yI:()=>l});const n={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},s={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},u=Object.values(i),o={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},c={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},f={FLOAT:s.FLOAT,UNSIGNED_BYTE:s.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:s.BYTE,UNSIGNED_SHORT:s.UNSIGNED_SHORT,SHORT:s.SHORT,UNSIGNED_INT:s.UNSIGNED_INT,INT:s.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},a={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},h=36064,l=36065,d=36066,p=33306,y={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}},74038:(t,e,r)=>{r.d(e,{_:()=>n});class n{constructor(t,e,r,n,s,i=!1,u=0){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=s,this.normalized=i,this.divisor=u}}},85079:(t,e,r)=>{function n(t){let e=0;return new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n}))}function s(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}r.d(e,{Xk:()=>n,_u:()=>s})},90239:(t,e,r)=>{function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},93406:(t,e,r)=>{r.d(e,{K:()=>c});var n=r(34727),s=r(15142),i=r(38954),u=r(51850);const o=-1;function c(t,e,r){const n=t.vertices.position,s=t.vertices.componentIndex,u=y.position0,c=y.position1,h=y.faceNormal0,d=y.faceNormal1,{edges:p,normals:E}=a(t),m=p.length/4,B=e.allocate(m);let T=0;const _=m,A=r?.allocate(_);let b=0,N=0,R=0;l.length=0;for(let t=0;t<m;++t){const e=4*t;n.getVec(p.data[e],u),n.getVec(p.data[e+1],c);const r=l.pushNew();r.index=4*t,r.length=(0,i.j)(u,c)}l.sort((t,e)=>e.length-t.length);const I=new Array,v=new Array;l.forAll(({length:t,index:a})=>{const l=p.data[a],m=p.data[a+1],_=p.data[a+2],w=p.data[a+3],F=w===o;if(n.getVec(l,u),n.getVec(m,c),F){const t=3*_;(0,i.i)(h,E.data[t],E.data[t+1],E.data[t+2]),(0,i.c)(d,h),y.componentIndex=s.get(l),y.cosAngle=(0,i.e)(h,d)}else{let t=3*_;if((0,i.i)(h,E.data[t],E.data[t+1],E.data[t+2]),t=3*w,(0,i.i)(d,E.data[t],E.data[t+1],E.data[t+2]),y.componentIndex=s.get(l),y.cosAngle=(0,i.e)(h,d),function(t,e){return t.cosAngle>e}(y,S))return;y.cosAngle<-.9999&&(0,i.c)(d,h)}N+=t,R++,F||function(t,e){return t.cosAngle<e}(y,g)?(e.write(B,T++,y),I.push(t)):f(y,M)&&(A&&r&&r.write(A,b++,y),v.push(t))});const w=new Float32Array(I.reverse()),F=new Float32Array(v.reverse()),U=A&&r?{instancesData:A.slice(0,b),lodInfo:{lengths:F}}:void 0;return{regular:{instancesData:B.slice(0,T),lodInfo:{lengths:w}},silhouette:U,averageEdgeLength:N/R}}function f(t,e){const r=(0,n.XM)(t.cosAngle);return(0,i.E)(m,t.position1,t.position0),r*((0,i.e)((0,i.h)(E,t.faceNormal0,t.faceNormal1),m)>0?-1:1)>e}function a(t){const e=t.faces.length/3,r=t.faces,n=t.neighbors,s=t.vertices.position;d.length=p.length=0;for(let t=0;t<e;t++){const e=3*t,u=n[e],c=n[e+1],f=n[e+2],a=r[e],h=r[e+1],l=r[e+2];s.getVec(a,B),s.getVec(h,T),s.getVec(l,_),(0,i.d)(T,T,B),(0,i.d)(_,_,B),(0,i.h)(B,T,_),(0,i.n)(B,B),p.pushArray(B),(u===o||a<h)&&(d.push(a),d.push(h),d.push(t),d.push(u)),(c===o||h<l)&&(d.push(h),d.push(l),d.push(t),d.push(c)),(f===o||l<a)&&(d.push(l),d.push(a),d.push(t),d.push(f))}return{edges:d,normals:p}}class h{constructor(){this.index=0,this.length=0}}const l=new s.A({allocator:t=>t||new h,deallocator:null}),d=new s.A({deallocator:null}),p=new s.A({deallocator:null}),y=new class{constructor(){this.position0=(0,u.vt)(),this.position1=(0,u.vt)(),this.faceNormal0=(0,u.vt)(),this.faceNormal1=(0,u.vt)(),this.componentIndex=0,this.cosAngle=0}},E=(0,u.vt)(),m=(0,u.vt)(),B=(0,u.vt)(),T=(0,u.vt)(),_=(0,u.vt)(),M=(0,n.kU)(4),S=Math.cos(M),A=(0,n.kU)(35),g=Math.cos(A)},97146:(t,e,r)=>{r.d(e,{Dg:()=>i,my:()=>u,tM:()=>a,uW:()=>s});var n=r(34275);function s(t){return i(t,!0)}function i(t,e){if(Array.isArray(t)){if(t.length<n.y9)return t}else if(t.length<n.y9)return Array.from(t);let r=!0,s=!0;return t.some((t,e)=>(r=r&&0===t,s=s&&t===e,!r&&!s)),r?function(t){if(1===t)return c;if(t<n.y9)return new Array(t).fill(0);if(t>l.length){const e=Math.max(2*l.length,t);l=new Uint8Array(e)}return new Uint8Array(l.buffer,0,t)}(t.length):s?a(t.length):(0,n.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,n.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function u(t){return t<=n.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let o=h(131072);const c=[0],f=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function a(t){return 1===t?c:t<n.y9?Array.from(new Uint16Array(f.buffer,0,t)):t<f.length?new Uint16Array(f.buffer,0,t):(t>o.length&&(o=h(Math.max(2*o.length,t))),new Uint32Array(o.buffer,0,t))}function h(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let l=new Uint8Array(65536)}}]);
|