@arcgis/core 4.23.0-next.20220118 → 4.23.0-next.20220126
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/Graphic.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00c5bb5eecb0e89266df.js +1 -0
- package/assets/esri/core/workers/chunks/021a37e2b191298e80b7.js +1 -0
- package/assets/esri/core/workers/chunks/1370c92c40fd6271553c.js +1 -0
- package/assets/esri/core/workers/chunks/199670a3a564ebe3bd79.js +1 -0
- package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +1 -0
- package/assets/esri/core/workers/chunks/1fbcc8424452d0256bd6.js +1 -0
- package/assets/esri/core/workers/chunks/{7c9d2638693d5f798b23.js → 23b15e7c2f96d260e16c.js} +1 -1
- package/assets/esri/core/workers/chunks/{b2ae5fc4f787ea568b88.js → 2460f3b6ada6ae900dec.js} +1 -1
- package/assets/esri/core/workers/chunks/{99f0d896c17dd09cd285.js → 2629adf79e7fd9f25f07.js} +1 -1
- package/assets/esri/core/workers/chunks/2792ca40f1e92849247c.js +1 -0
- package/assets/esri/core/workers/chunks/2a96f1bba9ce6883e5e0.js +1 -0
- package/assets/esri/core/workers/chunks/2e899ef5881b4ec6fa55.js +1 -0
- package/assets/esri/core/workers/chunks/3231ee3e090bb4cac3fc.js +1 -0
- package/assets/esri/core/workers/chunks/{0c3e3a5baf54bd5e210c.js → 36e250278b5622ccf068.js} +1 -1
- package/assets/esri/core/workers/chunks/395ba088d4864588ff66.js +1 -0
- package/assets/esri/core/workers/chunks/3cc77692b2eee27b9c9e.js +1 -0
- package/assets/esri/core/workers/chunks/3f343f792fd9f44d6f25.js +1 -0
- package/assets/esri/core/workers/chunks/{8a250ec51097f16feb66.js → 40a1e713f63ec77110c0.js} +1 -1
- package/assets/esri/core/workers/chunks/422537fc3df707bb62c9.js +1 -0
- package/assets/esri/core/workers/chunks/{ba6fdaed6c315dc13981.js → 434b16731c6a81f868ef.js} +1 -1
- package/assets/esri/core/workers/chunks/4385a268c2a64281d1c1.js +1 -0
- package/assets/esri/core/workers/chunks/{44b01d42d4ec72913229.js → 438f0b5ae5c53ae4f06a.js} +1 -1
- package/assets/esri/core/workers/chunks/{4d539878bfbd7c549e60.js → 46b4bb66a54bbd8e2e57.js} +1 -1
- package/assets/esri/core/workers/chunks/4c76146014dc15143ba3.js +1 -0
- package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +1 -0
- package/assets/esri/core/workers/chunks/5d991b74d958005c26c4.js +1 -0
- package/assets/esri/core/workers/chunks/5dfe1f8d520025e2118b.js +1 -0
- package/assets/esri/core/workers/chunks/601e697dc7414bda128a.js +1 -0
- package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +1 -0
- package/assets/esri/core/workers/chunks/68a59ce98177d8513337.js +1 -0
- package/assets/esri/core/workers/chunks/{9cdaba126ac7fa5f33f0.js → 6cd5e4380d29b9a3c344.js} +1 -1
- package/assets/esri/core/workers/chunks/{a7b1b75643ed31489495.js → 6f50a9647f026a8d4729.js} +1 -1
- package/assets/esri/core/workers/chunks/{47395d225229d237f0ac.js → 7bc5cc5dbf1b7b70ddac.js} +1 -1
- package/assets/esri/core/workers/chunks/7d661129a0d8c466eeec.js +1 -0
- package/assets/esri/core/workers/chunks/{64276aacaafa4c8a15bd.js → 7dcf52d3db3903c8eb9f.js} +1 -1
- package/assets/esri/core/workers/chunks/8070972c0efb78523b68.js +1 -0
- package/assets/esri/core/workers/chunks/8fa0a14165d43ffe87a5.js +1 -0
- package/assets/esri/core/workers/chunks/94515fb3ef38067eeadd.js +1 -0
- package/assets/esri/core/workers/chunks/94b8dbf859df71858d1c.js +1 -0
- package/assets/esri/core/workers/chunks/97a28641b3b2fd31bea2.js +1 -0
- package/assets/esri/core/workers/chunks/{d1454155ee1b8a421cbb.js → 97ec9eef0048760fa260.js} +1 -1
- package/assets/esri/core/workers/chunks/98986e6601b0366376b4.js +1 -0
- package/assets/esri/core/workers/chunks/9cdcf9309d6feda70185.js +1 -0
- package/assets/esri/core/workers/chunks/a78757b9c7e8cbea08fa.js +1 -0
- package/assets/esri/core/workers/chunks/aa04b90b82bf70caaae4.js +1 -0
- package/assets/esri/core/workers/chunks/{b10fcbe1393c812fc219.js → aa861b8eae6c85f3dad4.js} +1 -1
- package/assets/esri/core/workers/chunks/aace7e1fef256bb961c9.js +1 -0
- package/assets/esri/core/workers/chunks/{ed0297fc61014e848c18.js → af5694b4d278cf1db2d9.js} +1 -1
- package/assets/esri/core/workers/chunks/afbb4f802ca5774f0326.js +1 -0
- package/assets/esri/core/workers/chunks/b0b036ad3ad3cd956747.js +1 -0
- package/assets/esri/core/workers/chunks/b2c5f92e3d7606297ca9.js +1 -0
- package/assets/esri/core/workers/chunks/b2d2de935487257c568b.js +1 -0
- package/assets/esri/core/workers/chunks/b2ebe4f6d100e15b512d.js +1 -0
- package/assets/esri/core/workers/chunks/b8316c6469a543029bc6.js +1 -0
- package/assets/esri/core/workers/chunks/{4b69129c0557852d9b3d.js → ba5eb394f098968c22d2.js} +1 -1
- package/assets/esri/core/workers/chunks/bf0a65b4be31959f921d.js +1 -0
- package/assets/esri/core/workers/chunks/bf6dda4a2af14c4b7716.js +1 -0
- package/assets/esri/core/workers/chunks/c890c7fca27170e3341f.js +1 -0
- package/assets/esri/core/workers/chunks/{573dc3064e84ca86844d.js → c959e0d1cf7dce0421b9.js} +1 -1
- package/assets/esri/core/workers/chunks/c976785f2391c77d8a30.js +1 -0
- package/assets/esri/core/workers/chunks/{1fd48459afb58a6cf14f.js → ca2f5faa01d99c21ec14.js} +1 -1
- package/assets/esri/core/workers/chunks/{7aa543a97f055cddea99.js → cc146c57bbdac8029fd8.js} +1 -1
- package/assets/esri/core/workers/chunks/{d39b7983b68d6e5b404d.js → cdbc005eebec1503b99d.js} +1 -1
- package/assets/esri/core/workers/chunks/{7e596478507466953e65.js → cef4af64860ebbfc1c47.js} +1 -1
- package/assets/esri/core/workers/chunks/d72488db62fcf39447b6.js +1 -0
- package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +981 -0
- package/assets/esri/core/workers/chunks/e4b84ca8ddfd48dd79b1.js +1 -0
- package/assets/esri/core/workers/chunks/e4e2036373166c1d5cf5.js +1 -0
- package/assets/esri/core/workers/chunks/e4f93c55eaefab4192b5.js +1 -0
- package/assets/esri/core/workers/chunks/e6165e17fbb07bfc40a1.js +1 -0
- package/assets/esri/core/workers/chunks/e9e5196b44b6923be1a3.js +1 -0
- package/assets/esri/core/workers/chunks/{f678293de9a6d8f5b5db.js → ec89466f76d0ba22525e.js} +1 -1
- package/assets/esri/core/workers/chunks/ee45618c45806ab654cb.js +1 -0
- package/assets/esri/core/workers/chunks/f4baa5ea2e42b1317941.js +1 -0
- package/assets/esri/core/workers/chunks/f760a3e030b0f358a92a.js +1 -0
- package/assets/esri/core/workers/chunks/face43cf5abcd2f5bd9d.js +1 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/_mixins.scss +4 -1
- package/assets/esri/themes/base/icons/style.scss +11 -2
- package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +13 -10
- package/assets/esri/themes/base/widgets/_CoordinateConversion.scss +4 -2
- package/assets/esri/themes/base/widgets/_Directions.scss +5 -3
- package/assets/esri/themes/base/widgets/_Editor.scss +5 -2
- package/assets/esri/themes/base/widgets/_ElevationProfile.scss +6 -4
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +6 -0
- package/assets/esri/themes/base/widgets/_ItemList.scss +1 -1
- package/assets/esri/themes/base/widgets/_LayerList.scss +13 -9
- package/assets/esri/themes/base/widgets/_Popup.scss +4 -2
- package/assets/esri/themes/base/widgets/_Print.scss +24 -11
- package/assets/esri/themes/base/widgets/_Search.scss +4 -2
- package/assets/esri/themes/base/widgets/_TableList.scss +9 -7
- package/assets/esri/themes/base/widgets/_Weather.scss +12 -0
- package/assets/esri/themes/base/widgets/_Widget.scss +18 -9
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/dark-blue/main.css +1 -1
- package/assets/esri/themes/dark-green/main.css +1 -1
- package/assets/esri/themes/dark-purple/main.css +1 -1
- package/assets/esri/themes/dark-red/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/themes/light-blue/main.css +1 -1
- package/assets/esri/themes/light-green/main.css +1 -1
- package/assets/esri/themes/light-purple/main.css +1 -1
- package/assets/esri/themes/light-red/main.css +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
- package/chunks/CloudsComposition.glsl.js +4 -4
- package/chunks/ComponentShader.glsl.js +19 -19
- package/chunks/DefaultMaterial.glsl.js +2 -2
- package/chunks/Terrain.glsl.js +11 -11
- package/chunks/WaterSurface.glsl.js +21 -21
- package/chunks/pe.js +1 -1
- package/chunks/vec3.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/core/accessorSupport/ensureType.js +1 -1
- package/core/accessorSupport/get.js +1 -1
- package/core/accessorSupport/read.js +1 -1
- package/core/accessorSupport/set.js +1 -1
- package/core/accessorSupport/write.js +1 -1
- package/core/has.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/core/typedArrayUtil.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/geometry/pe.js +1 -1
- package/geometry/support/axisAngleDegrees.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/interfaces.d.ts +315 -78
- package/layers/RouteLayer.js +1 -1
- package/layers/VoxelLayer.js +1 -1
- package/layers/VoxelWasmPerScene.js +1 -1
- package/layers/mixins/OperationalLayer.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/libs/vxl/enums.js +1 -1
- package/package.json +2 -2
- package/popup/content/AttachmentsContent.js +1 -1
- package/popup/content/support/mediaInfoTypes.js +1 -1
- package/portal/schemas/buildingSceneLayerItem.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/integratedMeshLayerItem.js +1 -1
- package/portal/schemas/pointCloudLayerItem.js +1 -1
- package/portal/schemas/sceneLayerItem.js +1 -1
- package/portal/schemas/webScene.js +1 -1
- package/rasterRenderers.js +1 -1
- package/rest/find.js +1 -1
- package/rest/geometryService/generalize.js +1 -1
- package/rest/geometryService/lengths.js +1 -1
- package/rest/geometryService/offset.js +1 -1
- package/rest/geometryService/relation.js +1 -1
- package/rest/geometryService/trimExtend.js +1 -1
- package/rest/identify.js +1 -1
- package/{tasks → rest}/operations/find.js +0 -0
- package/{tasks → rest}/operations/generalize.js +0 -0
- package/rest/operations/identify.js +5 -0
- package/{tasks → rest}/operations/lengths.js +0 -0
- package/{tasks → rest}/operations/offset.js +0 -0
- package/{tasks → rest}/operations/relation.js +0 -0
- package/{tasks → rest}/operations/trimExtend.js +0 -0
- package/{tasks → rest}/operations/urlUtils.js +0 -0
- package/rest/print.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/query/operations/queryAttachments.js +1 -1
- package/rest/query/operations/queryRelatedRecords.js +1 -1
- package/rest/query/operations/queryTopFeatures.js +1 -1
- package/rest/route/utils.js +1 -1
- package/rest/support/NetworkServiceDescription.js +1 -1
- package/rest/support/RouteInfo.js +1 -1
- package/rest/support/RouteParameters.js +1 -1
- package/rest/support/RouteSettings.js +5 -0
- package/rest/support/Stop.js +1 -1
- package/rest/support/networkEnums.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/Font.js +1 -1
- package/symbols/LabelSymbol3D.js +1 -1
- package/symbols/PointSymbol3D.js +1 -1
- package/symbols/TextSymbol.js +1 -1
- package/symbols/TextSymbol3DLayer.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
- package/symbols/support/Symbol3DVerticalOffset.js +1 -1
- package/symbols/support/cimSymbolUtils.js +1 -1
- package/symbols/support/previewCIMSymbol.js +1 -1
- package/symbols/support/previewSymbol2D.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/previewWebStyleSymbol.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/symbols/support/textUtils.js +5 -0
- package/symbols.js +1 -1
- package/views/2d/engine/vectorTiles/style/VectorTilesRequestManager.js +1 -1
- package/views/2d/engine/webgl/brushes/raster/BrushRasterBitmap.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/support/engineHelpers.js +1 -1
- package/views/3d/environment/CloudsComposition.glsl.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
- package/views/3d/environment/weather.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +5 -0
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.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/{Graphics3DGraphicLikeLayerView.js → GraphicsProcessor.js} +1 -1
- package/views/3d/layers/graphics/QueryEngine.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js +7 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +28 -24
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +21 -13
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +12 -14
- package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/parts/Model.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/interactive/dragEventPipeline.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/webgl/ContextState.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/Renderbuffer.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/Util.js +1 -1
- package/views/webgl/enums.js +1 -1
- package/views/webgl/rasterUtils.js +1 -1
- package/views/webgl/testFloatBufferBlend.js +1 -1
- package/widgets/Attachments.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/FeatureExpression.js +1 -1
- package/widgets/Feature/FeatureMedia/FeatureMediaViewModel.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/FeatureForm/InputField.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Popup/actionUtils.js +1 -1
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/Slider/SliderViewModel.js +1 -1
- package/widgets/Slider.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Weather/css.js +1 -1
- package/widgets/Weather.js +1 -1
- package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
- package/widgets/support/InteractiveToolViewModel.js +1 -1
- package/widgets/support/geolocationUtils.js +1 -1
- package/assets/components/assets/calcite-icon/checkSquareF16.json +0 -1
- package/assets/components/assets/calcite-icon/checkSquareF24.json +0 -1
- package/assets/components/assets/calcite-icon/checkSquareF32.json +0 -1
- package/assets/components/assets/calcite-icon/lineSolid4.json +0 -1
- package/assets/components/assets/calcite-icon/squareF16.json +0 -1
- package/assets/components/assets/calcite-icon/squareF24.json +0 -1
- package/assets/components/assets/calcite-icon/squareF32.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagon16.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagon24.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagon32.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagonF16.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagonF24.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagonF32.json +0 -1
- package/assets/components/assets/calcite-icon/xOctagonF16.json +0 -1
- package/assets/components/assets/calcite-icon/xOctagonF24.json +0 -1
- package/assets/components/assets/calcite-icon/xOctagonF32.json +0 -1
- package/assets/esri/core/workers/chunks/01ef8de7f76a8c61b464.js +0 -1
- package/assets/esri/core/workers/chunks/09da224052976e290828.js +0 -1
- package/assets/esri/core/workers/chunks/0f254c3e91e8fee55f28.js +0 -1
- package/assets/esri/core/workers/chunks/20411bb8e04703962ce6.js +0 -1
- package/assets/esri/core/workers/chunks/21a77eed1a4ef5b0ff08.js +0 -1
- package/assets/esri/core/workers/chunks/23745a5ab47c840dc452.js +0 -1
- package/assets/esri/core/workers/chunks/2416f8bf8bbd2ec786ab.js +0 -1
- package/assets/esri/core/workers/chunks/2d947080a27db6ce0d75.js +0 -1
- package/assets/esri/core/workers/chunks/2e445a8735ea2adb641a.js +0 -1
- package/assets/esri/core/workers/chunks/32f8c4af7e70ebdcb19e.js +0 -1
- package/assets/esri/core/workers/chunks/3564e14010953def6df9.js +0 -1
- package/assets/esri/core/workers/chunks/390d9021169e65c10eb8.js +0 -1
- package/assets/esri/core/workers/chunks/3a9740dccda6a733313c.js +0 -1
- package/assets/esri/core/workers/chunks/403c7d64f12f00330d88.js +0 -1
- package/assets/esri/core/workers/chunks/4409d77c9734de4e82a7.js +0 -1
- package/assets/esri/core/workers/chunks/4c301ca9c493b96df746.js +0 -1
- package/assets/esri/core/workers/chunks/60371c0f750cde87656d.js +0 -1
- package/assets/esri/core/workers/chunks/615aa2d3ecafe30c80c0.js +0 -1
- package/assets/esri/core/workers/chunks/631c5b514bb73782c570.js +0 -1
- package/assets/esri/core/workers/chunks/6c1e92ff4c732dfda756.js +0 -1
- package/assets/esri/core/workers/chunks/722a10c65456844d72b9.js +0 -1
- package/assets/esri/core/workers/chunks/75d53b28afe732c459b2.js +0 -1
- package/assets/esri/core/workers/chunks/85b34d91cf07567d6873.js +0 -1
- package/assets/esri/core/workers/chunks/8967288145f8fbd20e7d.js +0 -1
- package/assets/esri/core/workers/chunks/89de05207744149fb58b.js +0 -1
- package/assets/esri/core/workers/chunks/8fdd5bca3716816d359b.js +0 -1
- package/assets/esri/core/workers/chunks/987182b3a578fc7de251.js +0 -1
- package/assets/esri/core/workers/chunks/99a777693e4539f0b03b.js +0 -1
- package/assets/esri/core/workers/chunks/9d9dffc8884d66a258e4.js +0 -1
- package/assets/esri/core/workers/chunks/a28b53c61bddefb6616e.js +0 -1
- package/assets/esri/core/workers/chunks/a6ff3db3493543df81bc.js +0 -1
- package/assets/esri/core/workers/chunks/a8c13529367c037cdd94.js +0 -1
- package/assets/esri/core/workers/chunks/a960074644c3722be71e.js +0 -1
- package/assets/esri/core/workers/chunks/ac8dca61ade28c542ae2.js +0 -1
- package/assets/esri/core/workers/chunks/b99e69302ea701fff0ea.js +0 -971
- package/assets/esri/core/workers/chunks/b9de831ac379cf1d2969.js +0 -1
- package/assets/esri/core/workers/chunks/bc790b2f964144d10abe.js +0 -1
- package/assets/esri/core/workers/chunks/be2b7cce79fd41627931.js +0 -1
- package/assets/esri/core/workers/chunks/c13dfdd548dcb1bdb294.js +0 -1
- package/assets/esri/core/workers/chunks/c3eca92d02958732e141.js +0 -1
- package/assets/esri/core/workers/chunks/c6bd943fe8fd13bb4806.js +0 -1
- package/assets/esri/core/workers/chunks/c6f94b92e866b881d9b9.js +0 -1
- package/assets/esri/core/workers/chunks/cb68db7169b9dfd1c3ff.js +0 -1
- package/assets/esri/core/workers/chunks/cc96608b2802fbfe7a08.js +0 -1
- package/assets/esri/core/workers/chunks/cd02fe27eb07681cb366.js +0 -1
- package/assets/esri/core/workers/chunks/d52108864136c5a8a618.js +0 -1
- package/assets/esri/core/workers/chunks/da1c2873bdbc0956dca0.js +0 -1
- package/assets/esri/core/workers/chunks/dd433c160f7a0c120b82.js +0 -1
- package/assets/esri/core/workers/chunks/de03439ca2c9782bf325.js +0 -1
- package/assets/esri/core/workers/chunks/e2d68bcd2f99a65387bf.js +0 -1
- package/assets/esri/core/workers/chunks/ef8b75b92cf549e0507e.js +0 -1
- package/assets/esri/core/workers/chunks/f7fc4c993536e62f7f3e.js +0 -1
- package/assets/esri/core/workers/chunks/fd3e5d823dc7917f4b8f.js +0 -1
- package/symbols/support/constants.js +0 -5
- package/tasks/operations/identify.js +0 -5
- package/views/3d/layers/graphics/Graphics3DFeatureLikeLayerView.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8163],{95401:(t,e,n)=>{n.d(e,{e:()=>a});var r,o,i,s={exports:{}};r=s,o=function(){function t(t,n,o){o=o||2;var i,s,a,c,u,p,h,f=n&&n.length,g=f?n[0]*o:t.length,d=e(t,0,g,o,!0),x=[];if(!d||d.next===d.prev)return x;if(f&&(d=l(t,n,d,o)),t.length>80*o){i=a=t[0],s=c=t[1];for(var m=o;m<g;m+=o)(u=t[m])<i&&(i=u),(p=t[m+1])<s&&(s=p),u>a&&(a=u),p>c&&(c=p);h=0!==(h=Math.max(a-i,c-s))?1/h:0}return r(d,x,o,i,s,h),x}function e(t,e,n,r,o){var i,s;if(o===F(t,e,n,r)>0)for(i=e;i<n;i+=r)s=Z(i,t[i],t[i+1],s);else for(i=n-r;i>=e;i-=r)s=Z(i,t[i],t[i+1],s);if(s&&v(s,s.next)){var a=s.next;_(s),s=a}return s}function n(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(_(r),(r=e=o)===r.next)break;n=!0}}while(n||r!==e);return e}function r(t,e,l,c,u,p,h){if(t){!h&&p&&f(t,c,u,p);for(var g,d,x=t;t.prev!==t.next;)if(g=t.prev,d=t.next,p?i(t,c,u,p):o(t))e.push(g.i/l),e.push(t.i/l),e.push(d.i/l),_(t),t=d.next,x=d.next;else if((t=d)===x){h?1===h?r(t=s(n(t),e,l),e,l,c,u,p,2):2===h&&a(t,e,l,c,u,p):r(n(t),e,l,c,u,p,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(y(e,n,r)>=0)return!1;for(var o=t.next.next;o!==t.prev;){if(x(e.x,e.y,n.x,n.y,r.x,r.y,o.x,o.y)&&y(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function i(t,e,n,r){var o=t.prev,i=t,s=t.next;if(y(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,c=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,u=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,p=g(a,l,e,n,r),h=g(c,u,e,n,r),f=t.prevZ,d=t.nextZ;f&&f.z>=p&&d&&d.z<=h;){if(f!==t.prev&&f!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,d!==t.prev&&d!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;f&&f.z>=p;){if(f!==t.prev&&f!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;d&&d.z<=h;){if(d!==t.prev&&d!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function s(t,e,r){var o=t;do{var i=o.prev,s=o.next.next;!v(i,s)&&w(i,o,o.next,s)&&A(i,s)&&A(s,i)&&(e.push(i.i/r),e.push(o.i/r),e.push(s.i/r),_(o),_(o.next),o=t=s),o=o.next}while(o!==t);return n(o)}function a(t,e,o,i,s,a){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&m(l,c)){var u=M(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,e,o,i,s,a),void r(u,e,o,i,s,a)}c=c.next}l=l.next}while(l!==t)}function l(t,r,o,i){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=e(t,r[s]*i,s<a-1?r[s+1]*i:t.length,i,!1))===l.next&&(l.steiner=!0),u.push(d(l));for(u.sort(c),s=0;s<u.length;s++)o=n(o=p(u[s],o),o.next);return o}function c(t,e){return t.x-e.x}function u(t){if(t.next.prev===t)return t;let e=t;for(;;){const n=e.next;if(n.prev===e||n===e||n===t)break;e=n}return e}function p(t,e){var r=function(t,e){var n,r=e,o=t.x,i=t.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(o===s)return n;var l,c=n,u=n.x,p=n.y,f=1/0;r=n;do{o>=r.x&&r.x>=u&&o!==r.x&&x(i<p?o:s,i,u,p,i<p?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),A(r,t)&&(l<f||l===f&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,f=l)),r=r.next}while(r!==c);return n}(t,e);if(!r)return e;var o=M(r,t),i=n(r,r.next);let s=u(o);return n(s,s.next),i=u(i),u(e===r?i:e)}function h(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function f(t,e,n,r){var o=t;do{null===o.z&&(o.z=g(o.x,o.y,e,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,n,r,o,i,s,a,l,c=1;do{for(n=t,t=null,i=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:t=o,o.prevZ=i,i=o;n=r}i.nextZ=null,c*=2}while(s>1)}(o)}function g(t,e,n,r,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*o)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*o)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function x(t,e,n,r,o,i,s,a){return(o-s)*(e-a)-(t-s)*(i-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(A(t,e)&&A(e,t)&&function(t,e){var n=t,r=!1,o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||v(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){var o=C(y(t,e,n)),i=C(y(t,e,r)),s=C(y(n,r,t)),a=C(y(n,r,e));return o!==i&&s!==a||!(0!==o||!b(t,n,e))||!(0!==i||!b(t,r,e))||!(0!==s||!b(n,t,r))||!(0!==a||!b(n,e,r))}function b(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function C(t){return t>0?1:t<0?-1:0}function A(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function M(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Z(t,e,n,r){var o=new T(t,e,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function _(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(t,e,n,r){for(var o=0,i=e,s=n-r;i<n;i+=r)o+=(t[s]-t[i])*(t[i+1]+t[s+1]),s=i;return o}return t.deviation=function(t,e,n,r){var o=e&&e.length,i=o?e[0]*n:t.length,s=Math.abs(F(t,0,i,n));if(o)for(var a=0,l=e.length;a<l;a++){var c=e[a]*n,u=a<l-1?e[a+1]*n:t.length;s-=Math.abs(F(t,c,u,n))}var p=0;for(a=0;a<r.length;a+=3){var h=r[a]*n,f=r[a+1]*n,g=r[a+2]*n;p+=Math.abs((t[h]-t[g])*(t[f+1]-t[h+1])-(t[h]-t[f])*(t[g+1]-t[h+1]))}return 0===s&&0===p?0:Math.abs((p-s)/s)},t.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,o=0;o<t.length;o++){for(var i=0;i<t[o].length;i++)for(var s=0;s<e;s++)n.vertices.push(t[o][i][s]);o>0&&(r+=t[o-1].length,n.holes.push(r))}return n},t},void 0!==(i=o())&&(r.exports=i);const a=s.exports},62540:(t,e,n)=>{n.d(e,{Z:()=>m});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),p=n(75215),h=n(65542),f=n(60746),g=n(71630);const d=a.Z.getLogger("esri.geometry.support.MeshComponent");let x=r=class extends i.wq{constructor(t){super(t),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}static from(t){return(0,p.TJ)(r,t)}castFaces(t){return(0,g.XQ)(t,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},d)}castMaterial(t){return(0,p.TJ)(t&&"object"==typeof t&&("metallic"in t||"roughness"in t||"metallicRoughnessTexture"in t)?f.Z:h.Z,t)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(t,e){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(t,e):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}};(0,o._)([(0,l.Cb)({json:{write:!0}})],x.prototype,"faces",void 0),(0,o._)([(0,c.p)("faces")],x.prototype,"castFaces",null),(0,o._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],x.prototype,"material",void 0),(0,o._)([(0,c.p)("material")],x.prototype,"castMaterial",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],x.prototype,"shading",void 0),(0,o._)([(0,l.Cb)({type:Boolean})],x.prototype,"trustSourceNormals",void 0),x=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshComponent")],x);const m=x},65542:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(96674),a=n(70586),l=n(5600),c=(n(67676),n(80442),n(75215),n(52011)),u=n(81118);let p=r=class extends s.wq{constructor(t){super(t),this.color=null,this.colorTexture=null,this.normalTexture=null,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,a.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,a.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{color:(0,a.pC)(this.color)?this.color.clone():null,colorTexture:(0,a.pC)(this.colorTexture)?this.colorTexture.cloneWithDeduplication(t):null,normalTexture:(0,a.pC)(this.normalTexture)?this.normalTexture.cloneWithDeduplication(t):null,alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided}}};(0,o._)([(0,l.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"color",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"colorTexture",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"normalTexture",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaMode",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaCutoff",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"doubleSided",void 0),p=r=(0,o._)([(0,c.j)("esri.geometry.support.MeshMaterial")],p);const h=p},60746:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(70586),a=n(5600),l=(n(67676),n(80442),n(75215),n(52011)),c=n(65542),u=n(81118);let p=r=class extends c.Z{constructor(t){super(t),this.emissiveColor=null,this.emissiveTexture=null,this.occlusionTexture=null,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,s.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,s.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{...super.clonePropertiesWithDeduplication(t),emissiveColor:(0,s.pC)(this.emissiveColor)?this.emissiveColor.clone():null,emissiveTexture:(0,s.pC)(this.emissiveTexture)?this.emissiveTexture.cloneWithDeduplication(t):null,occlusionTexture:(0,s.pC)(this.occlusionTexture)?this.occlusionTexture.cloneWithDeduplication(t):null,metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:(0,s.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.cloneWithDeduplication(t):null}}};(0,o._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"emissiveColor",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"emissiveTexture",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"occlusionTexture",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"metallic",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"roughness",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"metallicRoughnessTexture",void 0),p=r=(0,o._)([(0,l.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],p);const h=p},81118:(t,e,n)=>{n.d(e,{Z:()=>m});var r=n(43697),o=(n(80442),n(96674)),i=n(5600),s=(n(67676),n(75215)),a=n(71715),l=n(52011),c=n(30556),u=n(25929);n(22021);let p=null,h=!0;var f;const g=new WeakMap;let d=0,x=f=class extends o.wq{constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,n,r){if(t instanceof HTMLImageElement){const o={type:"image-element",src:(0,u.t)(t.src,r),crossOrigin:t.crossOrigin};e[n]=o}else if(t instanceof HTMLCanvasElement){const r=t.getContext("2d").getImageData(0,0,t.width,t.height),o={type:"canvas-element",imageData:this._encodeImageData(r)};e[n]=o}else if(t instanceof HTMLVideoElement){const o={type:"video-element",src:(0,u.t)(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[n]=o}else{const r={type:"image-data",imageData:this._encodeImageData(t)};e[n]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=this._decodeImageData(t.imageData),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n}case"image-data":return this._decodeImageData(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const t=this.data,e=this.url;if(t instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(t.getContext("2d").getImageData(0,0,t.width,t.height));if(t instanceof ImageData)return this._imageDataContainsTransparent(t);if(e){const t=e.substr(e.length-4,4).toLowerCase(),n=e.substr(0,15).toLocaleLowerCase();if(".png"===t||"data:image/png;"===n)return!0}return!1}set transparent(t){null!=t?this._override("transparent",t):this._clearOverride("transparent")}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;return null!=this.url?e(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?e(this.data.src):(g.has(this.data)||g.set(this.data,++d),e(g.get(this.data))):e()}clone(){const t={url:this.url,data:this.data,wrap:this._cloneWrap()};return new f(t)}cloneWithDeduplication(t){const e=t.get(this);if(e)return e;const n=this.clone();return t.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(t){let e="";for(let n=0;n<t.data.length;n++)e+=String.fromCharCode(t.data[n]);return{data:btoa(e),width:t.width,height:t.height}}_decodeImageData(t){const e=atob(t.data),n=new Uint8ClampedArray(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return function(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(h)try{return new ImageData(t,e,n)}catch(t){h=!1}const o=function(t,e,n){return n||(p||(p=document.createElement("canvas"),p.width=1,p.height=1),n=p),n.getContext("2d").createImageData(t,e)}(e,n,void 0);return o.data.set(t,0),o}(n,t.width,t.height)}_imageDataContainsTransparent(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}static from(t){return"string"==typeof t?new f({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new f({data:t}):(0,s.TJ)(f,t)}};(0,r._)([(0,i.Cb)({type:String,json:{write:u.w}})],x.prototype,"url",null),(0,r._)([(0,i.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,i.Cb)()],x.prototype,"data",null),(0,r._)([(0,c.c)("data")],x.prototype,"writeData",null),(0,r._)([(0,a.r)("data")],x.prototype,"readData",null),(0,r._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],x.prototype,"transparent",null),(0,r._)([(0,i.Cb)({json:{write:!0}})],x.prototype,"wrap",void 0),(0,r._)([(0,i.Cb)({readOnly:!0})],x.prototype,"contentHash",null),x=f=(0,r._)([(0,l.j)("esri.geometry.support.MeshTexture")],x);const m=x},71630:(t,e,n)=>{n.d(e,{QL:()=>h,XQ:()=>g,ZP:()=>x});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const p=a.Z.getLogger("esri.geometry.support.MeshVertexAttributes");let h=r=class extends i.wq{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return g(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},p)}castPosition(t){return t&&t instanceof Float32Array&&p.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),g(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},p)}castUv(t){return g(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},p)}castNormal(t){return g(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},p)}castTangent(t){return g(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},p)}clone(){const t={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(t)}clonePositional(){const t={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(t)}};function f(t,e,n,r){const{loggerTag:o,stride:i}=e;return t.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):t}function g(t,e,n,r,o){if(!t)return t;if(t instanceof e)return f(t,r,e,o);for(const i of n)if(t instanceof i)return f(new e(t),r,e,o);if(Array.isArray(t))return f(new e(t),r,e,o);{const r=n.map((t=>`'${t.name}'`));return o.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new e([])}}function d(t,e,n){e[n]=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[n];return e}(t)}(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"color",void 0),(0,o._)([(0,c.p)("color")],h.prototype,"castColor",null),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:d}})],h.prototype,"position",void 0),(0,o._)([(0,c.p)("position")],h.prototype,"castPosition",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"uv",void 0),(0,o._)([(0,c.p)("uv")],h.prototype,"castUv",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"normal",void 0),(0,o._)([(0,c.p)("normal")],h.prototype,"castNormal",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"tangent",void 0),(0,o._)([(0,c.p)("tangent")],h.prototype,"castTangent",null),h=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshVertexAttributes")],h);const x=h},47545:(t,e,n)=>{n.d(e,{d:()=>o});var r=n(22021);function o(t,e,n){var o;const c=t.byteLength/(4*e),u=new Uint32Array(t,0,c*e);let p=new Uint32Array(c);const h=null!=(o=null==n?void 0:n.minReduction)?o:0,f=(null==n?void 0:n.originalIndices)||null,g=f?f.length:0,d=(null==n?void 0:n.componentOffsets)||null;let x=0;if(d)for(let t=0;t<d.length-1;t++){const e=d[t+1]-d[t];e>x&&(x=e)}else x=c;const m=Math.floor(1.1*x)+1;(null==l||l.length<2*m)&&(l=new Uint32Array((0,r.Sf)(2*m)));for(let t=0;t<2*m;t++)l[t]=0;let y=0;const v=!!d&&!!f,w=v?g:c,b=v?new Uint32Array(g):null,C=1.96;let A=0!==h?Math.ceil(4*C*C/(h*h)*h*(1-h)):w,M=1,Z=d?d[1]:w;for(let t=0;t<w;t++){if(t===A){const e=1-y/t;if(e+C*Math.sqrt(e*(1-e)/t)<h)return null;A*=2}if(t===Z){for(let t=0;t<2*m;t++)l[t]=0;if(f)for(let t=d[M-1];t<d[M];t++)b[t]=p[f[t]];Z=d[++M]}const n=v?f[t]:t,r=n*e,o=a(u,r,e);let s=o%m,c=y;for(;0!==l[2*s+1];){if(l[2*s]===o){const t=l[2*s+1]-1;if(i(u,r,t*e,e)){c=p[t];break}}s++,s>=m&&(s-=m)}c===y&&(l[2*s]=o,l[2*s+1]=n+1,y++),p[n]=c}if(0!==h&&1-y/c<h)return null;if(v){for(let t=d[M-1];t<b.length;t++)b[t]=p[f[t]];p=b}const _=new Uint32Array(e*y);y=0;for(let t=0;t<w;t++)p[t]===y&&(s(u,(v?f[t]:t)*e,_,y*e,e),y++);if(f&&!v){const t=new Uint32Array(g);for(let e=0;e<t.length;e++)t[e]=p[f[e]];p=t}return{buffer:_.buffer,indices:p,uniqueCount:y}}function i(t,e,n,r){for(let o=0;o<r;o++)if(t[e+o]!==t[n+o])return!1;return!0}function s(t,e,n,r,o){for(let i=0;i<o;i++)n[r+i]=t[e+i]}function a(t,e,n){let r=0;for(let o=0;o<n;o++)r=t[e+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let l=null},38163:(t,e,n)=>{n.r(e),n.d(e,{meshFeatureSetFromJSON:()=>Et});var r,o,i=n(1692),s=n(70586),a=n(6570),l=n(43697),c=n(20102),u=n(3920),p=n(83379),h=n(92604),f=n(609),g=n(95330),d=n(17445),x=n(5600),m=(n(67676),n(80442),n(75215),n(52011)),y=n(65617),v=n(9361),w=n(13473),b=n(17332),C=n(3709),A=n(62540),M=n(2674),Z=n(71630),_=n(95401),T=n(86662),F=n(47545);function R(t,e,n){const o=t.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0,c=0,u=0,p=0;for(let e=0;e<o;++e)p+=t[e].length;const h=new Float64Array(3*p);let f=0;for(let p=o-1;p>=0;p--){const g=t[p],d=n===r.CCW_IS_HOLE&&I(g);if(d&&1!==o)i[l++]=g;else{let t=g.length;for(let e=0;e<l;++e)t+=i[e].length;const n={index:f,pathLengths:new Array(l+1),count:t,holeIndices:new Array(l)};n.pathLengths[0]=g.length,g.length>0&&(a[u++]={index:f,count:g.length}),f=d?D(g,g.length-1,-1,h,f,g.length,e):D(g,0,1,h,f,g.length,e);for(let t=0;t<l;++t){const r=i[t];n.holeIndices[t]=f,n.pathLengths[t+1]=r.length,r.length>0&&(a[u++]={index:f,count:r.length}),f=D(r,0,1,h,f,r.length,e)}l=0,n.count>0&&(s[c++]=n)}}for(let t=0;t<l;++t){const n=i[t];n.length>0&&(a[u++]={index:f,count:n.length}),f=D(n,0,1,h,f,n.length,e)}return c<o&&(s.length=c),u<o&&(a.length=u),{position:h,polygons:s,outlines:a}}function D(t,e,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=t[e];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,e+=n}return o/3}function I(t){return!(0,T.bu)(t,!1,!1)}(o=r||(r={}))[o.NONE=0]="NONE",o[o.CCW_IS_HOLE=1]="CCW_IS_HOLE";var L=n(90411),E=n(13442),O=n(66459);const P=h.Z.getLogger("esri.geometry.support.meshUtils.centerAt");const S=(0,y.c)(),j=(0,y.c)();var z=n(17452);function N(t){const e=(0,z.Yd)(t.url);return n=>{var r;const o=(0,z.PF)(n,e,e),i=o?o.replace(/^ *\.\//,""):null;return null!=(r=t.files.get(i))?r:n}}async function U(t,e){return t instanceof Blob?W.fromBlob(t):"string"==typeof t?new W(t):Array.isArray(t)?async function(t,e){const n=new Map;let r=null;const o=await(0,g.WW)(t.map((async t=>({name:t.name,source:await U(t instanceof Blob?t:t.source,e)})))),i=[];for(const t of o)t&&((0,g.Hc)(e)?t.source.dispose():i.push(t));(0,g.k_)(e);for(const{name:t,source:e}of i)((0,s.Wi)(r)||/\.(gltf|glb)/i.test(t))&&(r=e.url),n.set(t,e.url),e.files&&e.files.forEach(((t,e)=>n.set(e,t)));if((0,s.Wi)(r))throw new c.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new W(r,(()=>i.forEach((({source:t})=>t.dispose()))),n)}(t,e):async function(t,e){const{default:r}=await(0,g.Hl)(Promise.resolve().then(n.bind(n,3172)),e),o="string"==typeof t.multipart[0]?await Promise.all(t.multipart.map((async t=>(await r(t,{responseType:"array-buffer"})).data))):t.multipart;return W.fromBlob(new Blob(o))}(t,e)}class W{constructor(t,e=(()=>{}),n=new Map){this.url=t,this.dispose=e,this.files=n}static fromBlob(t){const e=URL.createObjectURL(t);return new W(e,(()=>URL.revokeObjectURL(e)))}}var k=n(21787),$=n(46521),H=n(13598),B=n(17896),G=n(24678),q=n(56493);const Y=h.Z.getLogger("esri.geometry.support.meshUtils.offset");function X(t,e){if(t)for(let n=0;n<t.length;n+=3)for(let r=0;r<3;r++)t[n+r]+=e[r]}const K=(0,y.c)(),V=(0,H.c)(),J=(0,$.c)(),Q={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function tt(t,e,n){(function(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5})(t),function(t,e){if(null==e)return;const n="number"==typeof e?[e,e,e]:[null!=e.width?e.width:1,null!=e.depth?e.depth:1,null!=e.height?e.height:1];ot[0]=n[0],ot[4]=n[1],ot[8]=n[2];for(let e=0;e<t.position.length;e+=3){for(let n=0;n<3;n++)rt[n]=t.position[e+n];(0,B.t)(rt,rt,ot);for(let n=0;n<3;n++)t.position[e+n]=rt[n]}if(n[0]!==n[1]||n[1]!==n[2]){ot[0]=1/n[0],ot[4]=1/n[1],ot[8]=1/n[2];for(let e=0;e<t.normal.length;e+=3){for(let n=0;n<3;n++)rt[n]=t.normal[e+n];(0,B.t)(rt,rt,ot),(0,B.n)(rt,rt);for(let n=0;n<3;n++)t.normal[e+n]=rt[n]}}}(t,n&&n.size);const{vertexAttributes:r,transform:o}=(0,O.w1)(t,e,n);return{vertexAttributes:new Z.ZP({...r,uv:t.uv}),transform:o,components:[new A.Z({faces:t.faces,material:n&&n.material||null})],spatialReference:e.spatialReference}}const et={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},nt={south:0,east:1,north:2,west:3,up:4,down:5},rt=(0,y.c)(),ot=(0,$.c)();var it=n(52138);const st=h.Z.getLogger("esri.geometry.support.meshUtils.rotate");function at(t,e,n,r=y.Z){if(!(0,s.Wi)(t)){(0,it.d)(pt,(0,C.WH)(e),(0,C.ZZ)(e));for(let e=0;e<t.length;e+=n){for(let n=0;n<3;n++)lt[n]=t[e+n]-r[n];(0,B.m)(lt,lt,pt);for(let n=0;n<3;n++)t[e+n]=lt[n]+r[n]}}}const lt=(0,y.c)(),ct=(0,y.c)(),ut=(0,C.Ue)(),pt=(0,H.c)(),ht=(0,$.c)(),ft=(0,y.c)(),gt=h.Z.getLogger("esri.geometry.support.meshUtils.scale");function dt(t,e,n=y.Z){if(t)for(let r=0;r<t.length;r+=3){for(let e=0;e<3;e++)xt[e]=t[r+e]-n[e];(0,B.a)(xt,xt,e);for(let e=0;e<3;e++)t[r+e]=xt[e]+n[e]}}const xt=(0,y.c)(),mt=(0,y.c)(),yt=(0,y.c)();var vt;const wt=h.Z.getLogger("esri.geometry.Mesh");let bt=vt=class extends((0,u.p)(p.Z.LoadableMixin((0,f.v)(v.Z)))){constructor(t){super(t),this.components=null,this.transform=null,this.external=null,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Z.QL,this.type="mesh"}initialize(){((0,s.Wi)(this.external)||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.handles.add((0,d.YP)((()=>{var t;return{vertexAttributes:this.vertexAttributes,components:null==(t=this.components)?void 0:t.map((t=>t.clone())),transform:(0,s.pC)(this.transform)?this.transform.clone():null}}),(()=>this._set("external",null)),{once:!0,sync:!0}))}))}get hasExtent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)||this.loaded&&this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0)}get boundingInfo(){const t=this.vertexAttributes.position,e=this.spatialReference;if(0===t.length||this.components&&0===this.components.length)return{extent:new a.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:e}),center:new w.Z({x:0,y:0,z:0,spatialReference:e})};const n=(0,s.pC)(this.transform)?this.transform.project(t,e):t;let r=1/0,o=1/0,i=1/0,l=-1/0,c=-1/0,u=-1/0,p=0,h=0,f=0;const g=n.length,d=1/(g/3);let x=0;for(;x<g;){const t=n[x++],e=n[x++],s=n[x++];r=Math.min(r,t),o=Math.min(o,e),i=Math.min(i,s),l=Math.max(l,t),c=Math.max(c,e),u=Math.max(u,s),p+=d*t,h+=d*e,f+=d*s}return{extent:new a.Z({xmin:r,ymin:o,zmin:i,xmax:l,ymax:c,zmax:u,spatialReference:e}),center:new w.Z({x:p,y:h,z:f,spatialReference:e})}}get anchor(){if((0,s.pC)(this.transform))return this.transform.getOriginPoint(this.spatialReference);const t=this.boundingInfo;return new w.Z({x:t.center.x,y:t.center.y,z:t.extent.zmin,spatialReference:this.spatialReference})}get origin(){return(0,s.pC)(this.transform)?this.transform.getOriginPoint(this.spatialReference):this.boundingInfo.center}get extent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)?this.external.extent.clone():this.boundingInfo.extent}addComponent(t){this.loaded?(this.components||(this.components=[]),this.components.push(A.Z.from(t)),this.notifyChange("components")):wt.error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(t){if(this.loaded){if(this.components){const e=this.components.indexOf(t);if(-1!==e)return this.components.splice(e,1),void this.notifyChange("components")}wt.error("removeComponent()","Provided component is not part of the list of components")}else wt.error("removeComponent()","Mesh must be loaded before applying operations")}rotate(t,e,n,r){return(0,C.uT)(Ct.x,t,At),(0,C.uT)(Ct.y,e,Mt),(0,C.uT)(Ct.z,n,Zt),(0,C.qC)(At,Mt,At),(0,C.qC)(At,Zt,At),function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position||0===e[3])return;const r=t.spatialReference;if((0,s.pC)(t.transform)){var o;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&st.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const i=null!=(o=null==n?void 0:n.origin)?o:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,B.s)(lt,n.x,n.y,n.z),o=(0,B.f)(lt,r,t.origin);t.applyLocalInverse(o,ct),t.rotation=(0,C.qC)(t.rotation,e,(0,C.Ue)()),t.applyLocalInverse(o,o),(0,B.f)(o,o,ct),t.translation=(0,B.b)((0,y.c)(),t.translation,o)}(t.transform,e,i)}else{var i;const r=null!=(i=null==n?void 0:n.origin)?i:t.origin;(0,E.h)(t.spatialReference,n)?function(t,e,n){const r=t.spatialReference,o=(0,G.rS)(r),i=ft;(0,L.KC)(n,i,o)||(0,L.KC)(t.origin,i,o);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,L.Bm)(o,i,pt,o),(0,k.f)(ht,pt);const f=ut;(0,B.t)((0,C.ZZ)(ut),(0,C.ZZ)(e),ht),f[3]=e[3],(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,q.wi)(c,a,u,r,h),at(u,f,3,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(at(p,f,3),(0,q.Yk)(p,a,u,r,l)),(0,s.pC)(c)&&(at(h,f,4),(0,q.M2)(h,a,u,r,c)),t.vertexAttributesChanged()}(t,e,r):function(t,e,n){const r=ft;if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,st.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}at(t.vertexAttributes.position,e,3,r),at(t.vertexAttributes.normal,e,3),at(t.vertexAttributes.tangent,e,4),t.vertexAttributesChanged()}(t,e,r)}}(this,At,r),this}offset(t,e,n,r){return this.loaded?(_t[0]=t,_t[1]=e,_t[2]=n,function(t,e,n){t.vertexAttributes&&t.vertexAttributes.position&&((0,s.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&Y.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e){const n=t.origin;t.origin=(0,B.b)((0,y.c)(),n,e)}(t.transform,e)):(0,E.h)(t.spatialReference,n)?function(t,e){const n=t.spatialReference,r=t.vertexAttributes.position,o=t.vertexAttributes.normal,i=t.vertexAttributes.tangent,a=new Float64Array(r.length),l=(0,s.pC)(o)?new Float32Array(o.length):null,c=(0,s.pC)(i)?new Float32Array(i.length):null,u=t.extent.center,p=K;(0,L.Bm)(n,[u.x,u.y,u.z],V,(0,G.rS)(n)),(0,k.f)(J,V),(0,B.t)(p,e,J),(0,q.XO)(r,n,a),(0,s.pC)(o)&&(0,q.Iz)(o,r,a,n,l),(0,s.pC)(i)&&(0,q.wi)(i,r,a,n,c),X(a,p),(0,q.To)(a,r,n),(0,s.pC)(o)&&(0,q.Yk)(l,r,a,n,o),(0,s.pC)(i)&&(0,q.M2)(c,r,a,n,i),t.vertexAttributesChanged()}(t,e):function(t,e){X(t.vertexAttributes.position,e),t.vertexAttributesChanged()}(t,e))}(this,_t,r),this):(wt.error("offset()","Mesh must be loaded before applying operations"),this)}scale(t,e){return this.loaded?(function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const r=t.spatialReference;if((0,s.pC)(t.transform)){var o;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&>.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const i=null!=(o=null==n?void 0:n.origin)?o:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,B.s)(xt,n.x,n.y,n.z),o=(0,B.f)(xt,r,t.origin);t.applyLocalInverse(o,mt);const i=(0,B.a)((0,y.c)(),t.scale,e);t.scale=i,t.applyLocalInverse(o,o),(0,B.f)(o,o,mt),t.translation=(0,B.b)((0,y.c)(),t.translation,o)}(t.transform,e,i)}else{const r=(0,E.h)(t.spatialReference,n),o=n&&n.origin||t.origin;r?function(t,e,n){const r=t.spatialReference,o=(0,G.rS)(r),i=yt;(0,L.KC)(n,i,o)||(0,L.KC)(t.origin,i,o);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,q.wi)(c,a,u,r,h),dt(u,e,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(0,q.Yk)(p,a,u,r,l),(0,s.pC)(c)&&(0,q.M2)(h,a,u,r,c),t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=yt;if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,gt.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}dt(t.vertexAttributes.position,e,r),t.vertexAttributesChanged()}(t,e,o)}}(this,t,e),this):(wt.error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(t,e){return this.loaded?(function(t,e,n){var r;if(!t.vertexAttributes||!t.vertexAttributes.position)return;const o=null!=(r=null==n?void 0:n.origin)?r:t.origin;(0,s.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&P.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e,n){const r=e.x-n.x,o=e.y-n.y,i=e.hasZ&&n.hasZ?e.z-n.z:0,s=t.origin;t.origin=[s[0]+r,s[1]+o,s[2]+i]}(t.transform,e,o)):(0,E.h)(t.spatialReference,n)?function(t,e,n){const r=(0,O.FF)(t.vertexAttributes,n,{geographic:!0}),{position:o,normal:i,tangent:s}=(0,O.iv)(r,e,{geographic:!0});t.vertexAttributes.position=o,t.vertexAttributes.normal=i,t.vertexAttributes.tangent=s,t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=j,o=S;if((0,L.KC)(e,o,t.spatialReference)){if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,P.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}(function(t,e,n){if(t)for(let r=0;r<t.length;r+=3)for(let o=0;o<3;o++)t[r+o]+=e[o]-n[o]})(t.vertexAttributes.position,o,r),t.vertexAttributesChanged()}else P.error(`Failed to project centerAt location (wkid:${e.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid})`)}(t,e,o)}(this,t,e),this):(wt.error("centerAt()","Mesh must be loaded before applying operations"),this)}load(t){return(0,s.pC)(this.external)&&this.addResolvingPromise(async function(t,e,r){const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r),i=await U(e,r),a=o(new w.Z({x:0,y:0,z:0,spatialReference:t.spatialReference}),i.url,{resolveFile:N(i),useTransform:!0,signal:(0,s.pC)(r)?r.signal:null});a.then((()=>i.dispose()),(()=>i.dispose()));const{vertexAttributes:l,components:c}=await a;t.vertexAttributes=l,t.components=c}(this,this.external.source,t)),Promise.resolve(this)}clone(){const t=this.components?new Map:null,e=this.components?new Map:null,n={components:this.components?this.components.map((n=>n.cloneWithDeduplication(t,e))):null,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:(0,s.pC)(this.transform)?this.transform.clone():null,external:(0,s.pC)(this.external)?{source:this.external.source,extent:(0,s.pC)(this.external.extent)?this.external.extent.clone():null}:null};return new vt(n)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(t){const{toBinaryGLTF:e}=await n.e(7277).then(n.bind(n,7277));return e(this,t)}static createBox(t,e){if(!(t instanceof w.Z))return wt.error(".createBox()","expected location to be a Point instance"),null;const n=new vt(tt(function(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=et,r=4*t.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*t.length*3);let l=0,c=0,u=0,p=0;for(let r=0;r<t.length;r++){const h=t[r],f=l/3;for(const t of e)a[p++]=f+t;const g=h.corners;for(let t=0;t<4;t++){const e=g[t];let r=0;s[u++]=.25*n[t][0]+h.uvOrigin[0],s[u++]=h.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==h.axis[t]?(o[l++]=.5*h.axis[t],i[c++]=h.axis[t]):(o[l++]=.5*e[r++],i[c++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),t,e));return e&&e.imageFace&&"all"!==e.imageFace?function(t,e){const n=t.components[0],r=n.faces,o=nt[e],i=6*o,a=new Uint32Array(6),l=new Uint32Array(r.length-6);let c=0,u=0;for(let t=0;t<r.length;t++)t>=i&&t<i+6?a[c++]=r[t]:l[u++]=r[t];if((0,s.pC)(t.vertexAttributes.uv)){const e=new Float32Array(t.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new A.Z({faces:a,material:n.material}),new A.Z({faces:l})],t}(n,e.imageFace):n}static createSphere(t,e){return t instanceof w.Z?new vt(tt(function(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((e-1)*n*2*3);let l=0,c=0,u=0,p=0;for(let t=0;t<=e;t++){const r=t/e*Math.PI+.5*Math.PI,h=Math.cos(r),f=Math.sin(r);rt[2]=f;const g=0===t||t===e,d=g?n-1:n;for(let r=0;r<=d;r++){const f=r/d*2*Math.PI;rt[0]=-Math.sin(f)*h,rt[1]=Math.cos(f)*h;for(let t=0;t<3;t++)o[l]=.5*rt[t],i[l]=rt[t],++l;s[c++]=(r+(g?.5:0))/n,s[c++]=t/e,0!==t&&r!==n&&(t!==e&&(a[u++]=p,a[u++]=p+1,a[u++]=p-n),1!==t&&(a[u++]=p,a[u++]=p-n,a[u++]=p-n-1)),p++}}return{position:o,normal:i,uv:s,faces:a}}(e&&e.densificationFactor||0),t,e)):(wt.error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(t,e){return t instanceof w.Z?new vt(tt(function(t=0){const e=Math.round(16*2**t),n=4*(e+1)+2*e,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*e*3);let a=0,l=0,c=0,u=0,p=0;for(let t=0;t<=5;t++){const n=0===t||5===t,h=t<=1||t>=4,f=2===t||4===t,g=n?e-1:e;for(let d=0;d<=g;d++){const x=d/g*2*Math.PI,m=n?0:.5;rt[0]=m*Math.sin(x),rt[1]=m*-Math.cos(x),rt[2]=t<=2?.5:-.5;for(let e=0;e<3;e++)r[a++]=rt[e],o[l++]=h?2===e?t<=1?1:-1:0:2===e?0:rt[e]/m;i[c++]=(d+(n?.5:0))/e,i[c++]=t<=1?1*t/3:t<=3?1*(t-2)/3+1/3:1*(t-4)/3+2/3,f||0===t||d===e||(5!==t&&(s[u++]=p,s[u++]=p+1,s[u++]=p-e),1!==t&&(s[u++]=p,s[u++]=p-e,s[u++]=p-e-1)),p++}}return{position:r,normal:o,uv:i,faces:s}}(e&&e.densificationFactor||0),t,e)):(wt.error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(t,e){var n;if(!(t instanceof w.Z))return wt.error(".createPlane()","expected location to be a Point instance"),null;const r=null!=(n=null==e?void 0:e.facing)?n:"up",o=function(t,e){const n="number"==typeof e?e:null!=e?e.width:1,r="number"==typeof e?e:null!=e?e.height:1;switch(t){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(r,null==e?void 0:e.size);return new vt(tt(function(t){const e=Q.facingAxisOrderSwap[t],n=Q.position,r=Q.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let t=0;t<4;t++){const t=s;for(let a=0;a<3;a++){const l=e[a],c=Math.abs(l)-1,u=l>=0?1:-1;o[s]=n[t+c]*u,i[s]=r[t+c]*u,s++}}return{position:o,normal:i,uv:new Float32Array(Q.uv),faces:new Uint32Array(Q.faces)}}(r),t,{...e,size:o}))}static createFromPolygon(t,e){if(!(t instanceof b.Z))return wt.error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const n=function(t){const e=R(t.rings,t.hasZ,r.CCW_IS_HOLE),n=[];let o=0,i=0;for(const t of e.polygons){const r=t.count,s=t.index,a=new Float64Array(e.position.buffer,3*s*e.position.BYTES_PER_ELEMENT,3*r),l=t.holeIndices.map((t=>t-s)),c=new Uint32Array((0,_.e)(a,l,3));n.push({position:a,faces:c}),o+=a.length,i+=c.length}const s=function(t,e,n){if(1===t.length)return t[0];const r=new Float64Array(e),o=new Uint32Array(n);let i=0,s=0,a=0;for(const e of t){for(let t=0;t<e.position.length;t++)r[i++]=e.position[t];for(let t=0;t<e.faces.length;t++)o[s++]=e.faces[t]+a;a=i/3}return{position:r,faces:o}}(n,o,i),a=(0,F.d)(s.position.buffer,6,{originalIndices:s.faces});return s.position=new Float64Array(a.buffer),s.faces=a.indices,s}(t);return new vt({vertexAttributes:new Z.QL({position:n.position}),components:[new A.Z({faces:n.faces,shading:"flat",material:e&&e.material||null})],spatialReference:t.spatialReference})}static async createFromGLTF(t,e,r){if(!(t instanceof w.Z))throw wt.error(".createfromGLTF()","expected location to be a Point instance"),new c.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r);return new vt(await o(t,e,r))}static createWithExternalSource(t,e,n){var r,o,i;const s=null!=(r=null==n?void 0:n.extent)?r:null,a=null!=(o=null==n?void 0:n.transform.clone())?o:new M.Z;a.origin=[t.x,t.y,null!=(i=t.z)?i:0];const l=t.spatialReference;return new vt({external:{source:e,extent:s},transform:a,spatialReference:l})}static createIncomplete(t,e){var n,r;const o=null!=(n=null==e?void 0:e.transform.clone())?n:new M.Z;o.origin=[t.x,t.y,null!=(r=t.z)?r:0];const i=t.spatialReference,s=new vt({transform:o,spatialReference:i});return s.addResolvingPromise(Promise.reject(new c.Z("mesh-incomplete","Mesh resources are not complete"))),s}};(0,l._)([(0,x.Cb)({type:[A.Z],json:{write:!0}})],bt.prototype,"components",void 0),(0,l._)([(0,x.Cb)({type:M.Z,json:{write:!0}})],bt.prototype,"transform",void 0),(0,l._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"external",void 0),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"hasExtent",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"boundingInfo",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"anchor",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"origin",null),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1}})],bt.prototype,"extent",null),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],bt.prototype,"hasZ",void 0),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],bt.prototype,"hasM",void 0),(0,l._)([(0,x.Cb)({type:Z.QL,nonNullable:!0,json:{write:!0}})],bt.prototype,"vertexAttributes",void 0),bt=vt=(0,l._)([(0,m.j)("esri.geometry.Mesh")],bt);const Ct={x:(0,y.f)(1,0,0),y:(0,y.f)(0,1,0),z:(0,y.f)(0,0,1)},At=(0,C.Ue)(),Mt=(0,C.Ue)(),Zt=(0,C.Ue)(),_t=(0,y.c)(),Tt=bt;var Ft,Rt;!function(t){t.featureGUID="featureGUID",t.assetName="assetName",t.hash="hash",t.type="type",t.conversionStatus="conversionStatus",t.flags="flags",t.complexity="complexity",t.size="size",t.seqNo="seqNo",t.sourceHash="sourceHash",t.assetURL="assetURL"}(Ft||(Ft={})),function(t){t.SUBMITTED="SUBMITTED",t.INPROGRESS="INPROGRESS",t.FAILED="FAILED",t.COMPLETED="COMPLETED"}(Rt||(Rt={}));var Dt,It,Lt=n(74889);function Et(t,e,n){const r=n.features;n.features=[],delete n.geometryType;const o=Lt.default.fromJSON(n);o.geometryType="mesh";const a=o.spatialReference,l=(0,s.Wi)(t.outFields)||!t.outFields.length?()=>({}):(c=t.outFields.includes("*")?null:new Set(t.outFields),({attributes:t})=>{if(!t)return{};if(!c)return t;for(const e in t)c.has(e)||delete t[e];return t});var c;for(const t of r){const n=Ot(t,a,e);(0,s.pC)(n)&&o.features.push(new i.Z({geometry:n,attributes:l(t)}))}return o}function Ot(t,e,n){const{status:r,source:o}=function(t){if(!t.assetMappings)return{status:Dt.FAILED};const e=[],n=new Map;for(const r of t.assetMappings){const t=r[Ft.seqNo],o=r[Ft.assetName],i=r[Ft.assetURL],s=r[Ft.conversionStatus];if(s===Rt.FAILED)return{status:Dt.FAILED};if(s!==Rt.COMPLETED)return{status:Dt.PENDING};if(null==t)e.push({name:o,source:i});else{const r=n.get(o);let s;r?s=r.multipart:(s=[],e.push({name:o,source:{multipart:s}}),n.set(o,{multipart:s})),s[t]=i}}return{status:Dt.COMPLETED,source:e}}(t);if(r===Dt.FAILED)return null;const i=function({attributes:t},e,{transformFieldRoles:n}){return new w.Z({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}(t,e,n),s=a.Z.fromJSON(t.geometry);s.spatialReference=e;const l=function({attributes:t,assetMappings:e},{transformFieldRoles:n}){var r;return new M.Z({translation:[t[n.translationX],t[n.translationY],t[n.translationZ]],rotation:(0,C.uT)([t[n.rotationX],t[n.rotationY],t[n.rotationZ]],t[n.rotationDeg]),scale:[t[n.scaleX],t[n.scaleY],t[n.scaleZ]],geographic:!(null!=(r=e[Ft.flags])&&r.includes("PROJECT_VERTICES"))})}(t,n);return r===Dt.PENDING?Tt.createIncomplete(i,{extent:s,transform:l}):Tt.createWithExternalSource(i,o,{extent:s,transform:l})}(It=Dt||(Dt={}))[It.FAILED=0]="FAILED",It[It.PENDING=1]="PENDING",It[It.COMPLETED=2]="COMPLETED"}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8163],{95401:(t,e,n)=>{n.d(e,{e:()=>a});var r,o,i,s={exports:{}};r=s,o=function(){function t(t,n,o){o=o||2;var i,s,a,c,u,p,h,f=n&&n.length,g=f?n[0]*o:t.length,d=e(t,0,g,o,!0),x=[];if(!d||d.next===d.prev)return x;if(f&&(d=l(t,n,d,o)),t.length>80*o){i=a=t[0],s=c=t[1];for(var m=o;m<g;m+=o)(u=t[m])<i&&(i=u),(p=t[m+1])<s&&(s=p),u>a&&(a=u),p>c&&(c=p);h=0!==(h=Math.max(a-i,c-s))?1/h:0}return r(d,x,o,i,s,h),x}function e(t,e,n,r,o){var i,s;if(o===F(t,e,n,r)>0)for(i=e;i<n;i+=r)s=Z(i,t[i],t[i+1],s);else for(i=n-r;i>=e;i-=r)s=Z(i,t[i],t[i+1],s);if(s&&v(s,s.next)){var a=s.next;_(s),s=a}return s}function n(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(_(r),(r=e=o)===r.next)break;n=!0}}while(n||r!==e);return e}function r(t,e,l,c,u,p,h){if(t){!h&&p&&f(t,c,u,p);for(var g,d,x=t;t.prev!==t.next;)if(g=t.prev,d=t.next,p?i(t,c,u,p):o(t))e.push(g.i/l),e.push(t.i/l),e.push(d.i/l),_(t),t=d.next,x=d.next;else if((t=d)===x){h?1===h?r(t=s(n(t),e,l),e,l,c,u,p,2):2===h&&a(t,e,l,c,u,p):r(n(t),e,l,c,u,p,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(y(e,n,r)>=0)return!1;for(var o=t.next.next;o!==t.prev;){if(x(e.x,e.y,n.x,n.y,r.x,r.y,o.x,o.y)&&y(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function i(t,e,n,r){var o=t.prev,i=t,s=t.next;if(y(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,c=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,u=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,p=g(a,l,e,n,r),h=g(c,u,e,n,r),f=t.prevZ,d=t.nextZ;f&&f.z>=p&&d&&d.z<=h;){if(f!==t.prev&&f!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,d!==t.prev&&d!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;f&&f.z>=p;){if(f!==t.prev&&f!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;d&&d.z<=h;){if(d!==t.prev&&d!==t.next&&x(o.x,o.y,i.x,i.y,s.x,s.y,d.x,d.y)&&y(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function s(t,e,r){var o=t;do{var i=o.prev,s=o.next.next;!v(i,s)&&w(i,o,o.next,s)&&A(i,s)&&A(s,i)&&(e.push(i.i/r),e.push(o.i/r),e.push(s.i/r),_(o),_(o.next),o=t=s),o=o.next}while(o!==t);return n(o)}function a(t,e,o,i,s,a){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&m(l,c)){var u=M(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,e,o,i,s,a),void r(u,e,o,i,s,a)}c=c.next}l=l.next}while(l!==t)}function l(t,r,o,i){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=e(t,r[s]*i,s<a-1?r[s+1]*i:t.length,i,!1))===l.next&&(l.steiner=!0),u.push(d(l));for(u.sort(c),s=0;s<u.length;s++)o=n(o=p(u[s],o),o.next);return o}function c(t,e){return t.x-e.x}function u(t){if(t.next.prev===t)return t;let e=t;for(;;){const n=e.next;if(n.prev===e||n===e||n===t)break;e=n}return e}function p(t,e){var r=function(t,e){var n,r=e,o=t.x,i=t.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(o===s)return n;var l,c=n,u=n.x,p=n.y,f=1/0;r=n;do{o>=r.x&&r.x>=u&&o!==r.x&&x(i<p?o:s,i,u,p,i<p?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),A(r,t)&&(l<f||l===f&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,f=l)),r=r.next}while(r!==c);return n}(t,e);if(!r)return e;var o=M(r,t),i=n(r,r.next);let s=u(o);return n(s,s.next),i=u(i),u(e===r?i:e)}function h(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function f(t,e,n,r){var o=t;do{null===o.z&&(o.z=g(o.x,o.y,e,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,n,r,o,i,s,a,l,c=1;do{for(n=t,t=null,i=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:t=o,o.prevZ=i,i=o;n=r}i.nextZ=null,c*=2}while(s>1)}(o)}function g(t,e,n,r,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*o)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*o)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function x(t,e,n,r,o,i,s,a){return(o-s)*(e-a)-(t-s)*(i-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(A(t,e)&&A(e,t)&&function(t,e){var n=t,r=!1,o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||v(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){var o=C(y(t,e,n)),i=C(y(t,e,r)),s=C(y(n,r,t)),a=C(y(n,r,e));return o!==i&&s!==a||!(0!==o||!b(t,n,e))||!(0!==i||!b(t,r,e))||!(0!==s||!b(n,t,r))||!(0!==a||!b(n,e,r))}function b(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function C(t){return t>0?1:t<0?-1:0}function A(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function M(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Z(t,e,n,r){var o=new T(t,e,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function _(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(t,e,n,r){for(var o=0,i=e,s=n-r;i<n;i+=r)o+=(t[s]-t[i])*(t[i+1]+t[s+1]),s=i;return o}return t.deviation=function(t,e,n,r){var o=e&&e.length,i=o?e[0]*n:t.length,s=Math.abs(F(t,0,i,n));if(o)for(var a=0,l=e.length;a<l;a++){var c=e[a]*n,u=a<l-1?e[a+1]*n:t.length;s-=Math.abs(F(t,c,u,n))}var p=0;for(a=0;a<r.length;a+=3){var h=r[a]*n,f=r[a+1]*n,g=r[a+2]*n;p+=Math.abs((t[h]-t[g])*(t[f+1]-t[h+1])-(t[h]-t[f])*(t[g+1]-t[h+1]))}return 0===s&&0===p?0:Math.abs((p-s)/s)},t.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,o=0;o<t.length;o++){for(var i=0;i<t[o].length;i++)for(var s=0;s<e;s++)n.vertices.push(t[o][i][s]);o>0&&(r+=t[o-1].length,n.holes.push(r))}return n},t},void 0!==(i=o())&&(r.exports=i);const a=s.exports},62540:(t,e,n)=>{n.d(e,{Z:()=>m});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),p=n(75215),h=n(65542),f=n(60746),g=n(71630);const d=a.Z.getLogger("esri.geometry.support.MeshComponent");let x=r=class extends i.wq{constructor(t){super(t),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}static from(t){return(0,p.TJ)(r,t)}castFaces(t){return(0,g.XQ)(t,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},d)}castMaterial(t){return(0,p.TJ)(t&&"object"==typeof t&&("metallic"in t||"roughness"in t||"metallicRoughnessTexture"in t)?f.Z:h.Z,t)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(t,e){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(t,e):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}};(0,o._)([(0,l.Cb)({json:{write:!0}})],x.prototype,"faces",void 0),(0,o._)([(0,c.p)("faces")],x.prototype,"castFaces",null),(0,o._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],x.prototype,"material",void 0),(0,o._)([(0,c.p)("material")],x.prototype,"castMaterial",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],x.prototype,"shading",void 0),(0,o._)([(0,l.Cb)({type:Boolean})],x.prototype,"trustSourceNormals",void 0),x=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshComponent")],x);const m=x},65542:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(96674),a=n(70586),l=n(5600),c=(n(67676),n(80442),n(75215),n(52011)),u=n(81118);let p=r=class extends s.wq{constructor(t){super(t),this.color=null,this.colorTexture=null,this.normalTexture=null,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,a.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,a.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{color:(0,a.pC)(this.color)?this.color.clone():null,colorTexture:(0,a.pC)(this.colorTexture)?this.colorTexture.cloneWithDeduplication(t):null,normalTexture:(0,a.pC)(this.normalTexture)?this.normalTexture.cloneWithDeduplication(t):null,alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided}}};(0,o._)([(0,l.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"color",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"colorTexture",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"normalTexture",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaMode",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaCutoff",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"doubleSided",void 0),p=r=(0,o._)([(0,c.j)("esri.geometry.support.MeshMaterial")],p);const h=p},60746:(t,e,n)=>{n.d(e,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(70586),a=n(5600),l=(n(67676),n(80442),n(75215),n(52011)),c=n(65542),u=n(81118);let p=r=class extends c.Z{constructor(t){super(t),this.emissiveColor=null,this.emissiveTexture=null,this.occlusionTexture=null,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=(0,s.pC)(t)?t.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(e));return(0,s.pC)(t)&&t.set(this,o),o}clonePropertiesWithDeduplication(t){return{...super.clonePropertiesWithDeduplication(t),emissiveColor:(0,s.pC)(this.emissiveColor)?this.emissiveColor.clone():null,emissiveTexture:(0,s.pC)(this.emissiveTexture)?this.emissiveTexture.cloneWithDeduplication(t):null,occlusionTexture:(0,s.pC)(this.occlusionTexture)?this.occlusionTexture.cloneWithDeduplication(t):null,metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:(0,s.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.cloneWithDeduplication(t):null}}};(0,o._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"emissiveColor",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"emissiveTexture",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"occlusionTexture",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"metallic",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"roughness",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"metallicRoughnessTexture",void 0),p=r=(0,o._)([(0,l.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],p);const h=p},81118:(t,e,n)=>{n.d(e,{Z:()=>m});var r=n(43697),o=(n(80442),n(96674)),i=n(5600),s=(n(67676),n(75215)),a=n(71715),l=n(52011),c=n(30556),u=n(25929);n(22021);let p=null,h=!0;var f;const g=new WeakMap;let d=0,x=f=class extends o.wq{constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,n,r){if(t instanceof HTMLImageElement){const o={type:"image-element",src:(0,u.t)(t.src,r),crossOrigin:t.crossOrigin};e[n]=o}else if(t instanceof HTMLCanvasElement){const r=t.getContext("2d").getImageData(0,0,t.width,t.height),o={type:"canvas-element",imageData:this._encodeImageData(r)};e[n]=o}else if(t instanceof HTMLVideoElement){const o={type:"video-element",src:(0,u.t)(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[n]=o}else{const r={type:"image-data",imageData:this._encodeImageData(t)};e[n]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=this._decodeImageData(t.imageData),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n}case"image-data":return this._decodeImageData(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const t=this.data,e=this.url;if(t instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(t.getContext("2d").getImageData(0,0,t.width,t.height));if(t instanceof ImageData)return this._imageDataContainsTransparent(t);if(e){const t=e.substr(e.length-4,4).toLowerCase(),n=e.substr(0,15).toLocaleLowerCase();if(".png"===t||"data:image/png;"===n)return!0}return!1}set transparent(t){null!=t?this._override("transparent",t):this._clearOverride("transparent")}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;return null!=this.url?e(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?e(this.data.src):(g.has(this.data)||g.set(this.data,++d),e(g.get(this.data))):e()}clone(){const t={url:this.url,data:this.data,wrap:this._cloneWrap()};return new f(t)}cloneWithDeduplication(t){const e=t.get(this);if(e)return e;const n=this.clone();return t.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(t){let e="";for(let n=0;n<t.data.length;n++)e+=String.fromCharCode(t.data[n]);return{data:btoa(e),width:t.width,height:t.height}}_decodeImageData(t){const e=atob(t.data),n=new Uint8ClampedArray(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return function(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(h)try{return new ImageData(t,e,n)}catch(t){h=!1}const o=function(t,e,n){return n||(p||(p=document.createElement("canvas"),p.width=1,p.height=1),n=p),n.getContext("2d").createImageData(t,e)}(e,n,void 0);return o.data.set(t,0),o}(n,t.width,t.height)}_imageDataContainsTransparent(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}static from(t){return"string"==typeof t?new f({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new f({data:t}):(0,s.TJ)(f,t)}};(0,r._)([(0,i.Cb)({type:String,json:{write:u.w}})],x.prototype,"url",null),(0,r._)([(0,i.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,i.Cb)()],x.prototype,"data",null),(0,r._)([(0,c.c)("data")],x.prototype,"writeData",null),(0,r._)([(0,a.r)("data")],x.prototype,"readData",null),(0,r._)([(0,i.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],x.prototype,"transparent",null),(0,r._)([(0,i.Cb)({json:{write:!0}})],x.prototype,"wrap",void 0),(0,r._)([(0,i.Cb)({readOnly:!0})],x.prototype,"contentHash",null),x=f=(0,r._)([(0,l.j)("esri.geometry.support.MeshTexture")],x);const m=x},71630:(t,e,n)=>{n.d(e,{QL:()=>h,XQ:()=>g,ZP:()=>x});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const p=a.Z.getLogger("esri.geometry.support.MeshVertexAttributes");let h=r=class extends i.wq{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return g(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},p)}castPosition(t){return t&&t instanceof Float32Array&&p.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),g(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},p)}castUv(t){return g(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},p)}castNormal(t){return g(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},p)}castTangent(t){return g(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},p)}clone(){const t={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(t)}clonePositional(){const t={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(t)}};function f(t,e,n,r){const{loggerTag:o,stride:i}=e;return t.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):t}function g(t,e,n,r,o){if(!t)return t;if(t instanceof e)return f(t,r,e,o);for(const i of n)if(t instanceof i)return f(new e(t),r,e,o);if(Array.isArray(t))return f(new e(t),r,e,o);{const r=n.map((t=>`'${t.name}'`));return o.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new e([])}}function d(t,e,n){e[n]=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[n];return e}(t)}(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"color",void 0),(0,o._)([(0,c.p)("color")],h.prototype,"castColor",null),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:d}})],h.prototype,"position",void 0),(0,o._)([(0,c.p)("position")],h.prototype,"castPosition",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"uv",void 0),(0,o._)([(0,c.p)("uv")],h.prototype,"castUv",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"normal",void 0),(0,o._)([(0,c.p)("normal")],h.prototype,"castNormal",null),(0,o._)([(0,l.Cb)({json:{write:d}})],h.prototype,"tangent",void 0),(0,o._)([(0,c.p)("tangent")],h.prototype,"castTangent",null),h=r=(0,o._)([(0,u.j)("esri.geometry.support.MeshVertexAttributes")],h);const x=h},47545:(t,e,n)=>{n.d(e,{d:()=>o});var r=n(22021);function o(t,e,n){var o;const c=t.byteLength/(4*e),u=new Uint32Array(t,0,c*e);let p=new Uint32Array(c);const h=null!=(o=null==n?void 0:n.minReduction)?o:0,f=(null==n?void 0:n.originalIndices)||null,g=f?f.length:0,d=(null==n?void 0:n.componentOffsets)||null;let x=0;if(d)for(let t=0;t<d.length-1;t++){const e=d[t+1]-d[t];e>x&&(x=e)}else x=c;const m=Math.floor(1.1*x)+1;(null==l||l.length<2*m)&&(l=new Uint32Array((0,r.Sf)(2*m)));for(let t=0;t<2*m;t++)l[t]=0;let y=0;const v=!!d&&!!f,w=v?g:c,b=v?new Uint32Array(g):null,C=1.96;let A=0!==h?Math.ceil(4*C*C/(h*h)*h*(1-h)):w,M=1,Z=d?d[1]:w;for(let t=0;t<w;t++){if(t===A){const e=1-y/t;if(e+C*Math.sqrt(e*(1-e)/t)<h)return null;A*=2}if(t===Z){for(let t=0;t<2*m;t++)l[t]=0;if(f)for(let t=d[M-1];t<d[M];t++)b[t]=p[f[t]];Z=d[++M]}const n=v?f[t]:t,r=n*e,o=a(u,r,e);let s=o%m,c=y;for(;0!==l[2*s+1];){if(l[2*s]===o){const t=l[2*s+1]-1;if(i(u,r,t*e,e)){c=p[t];break}}s++,s>=m&&(s-=m)}c===y&&(l[2*s]=o,l[2*s+1]=n+1,y++),p[n]=c}if(0!==h&&1-y/c<h)return null;if(v){for(let t=d[M-1];t<b.length;t++)b[t]=p[f[t]];p=b}const _=new Uint32Array(e*y);y=0;for(let t=0;t<w;t++)p[t]===y&&(s(u,(v?f[t]:t)*e,_,y*e,e),y++);if(f&&!v){const t=new Uint32Array(g);for(let e=0;e<t.length;e++)t[e]=p[f[e]];p=t}return{buffer:_.buffer,indices:p,uniqueCount:y}}function i(t,e,n,r){for(let o=0;o<r;o++)if(t[e+o]!==t[n+o])return!1;return!0}function s(t,e,n,r,o){for(let i=0;i<o;i++)n[r+i]=t[e+i]}function a(t,e,n){let r=0;for(let o=0;o<n;o++)r=t[e+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let l=null},38163:(t,e,n)=>{n.r(e),n.d(e,{meshFeatureSetFromJSON:()=>Et});var r,o,i=n(1692),s=n(70586),a=n(6570),l=n(43697),c=n(20102),u=n(3920),p=n(83379),h=n(92604),f=n(609),g=n(95330),d=n(17445),x=n(5600),m=(n(67676),n(80442),n(75215),n(52011)),y=n(65617),v=n(9361),w=n(13473),b=n(17332),C=n(3709),A=n(62540),M=n(2674),Z=n(71630),_=n(95401),T=n(86662),F=n(47545);function R(t,e,n){const o=t.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0,c=0,u=0,p=0;for(let e=0;e<o;++e)p+=t[e].length;const h=new Float64Array(3*p);let f=0;for(let p=o-1;p>=0;p--){const g=t[p],d=n===r.CCW_IS_HOLE&&I(g);if(d&&1!==o)i[l++]=g;else{let t=g.length;for(let e=0;e<l;++e)t+=i[e].length;const n={index:f,pathLengths:new Array(l+1),count:t,holeIndices:new Array(l)};n.pathLengths[0]=g.length,g.length>0&&(a[u++]={index:f,count:g.length}),f=d?D(g,g.length-1,-1,h,f,g.length,e):D(g,0,1,h,f,g.length,e);for(let t=0;t<l;++t){const r=i[t];n.holeIndices[t]=f,n.pathLengths[t+1]=r.length,r.length>0&&(a[u++]={index:f,count:r.length}),f=D(r,0,1,h,f,r.length,e)}l=0,n.count>0&&(s[c++]=n)}}for(let t=0;t<l;++t){const n=i[t];n.length>0&&(a[u++]={index:f,count:n.length}),f=D(n,0,1,h,f,n.length,e)}return c<o&&(s.length=c),u<o&&(a.length=u),{position:h,polygons:s,outlines:a}}function D(t,e,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=t[e];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,e+=n}return o/3}function I(t){return!(0,T.bu)(t,!1,!1)}(o=r||(r={}))[o.NONE=0]="NONE",o[o.CCW_IS_HOLE=1]="CCW_IS_HOLE";var L=n(44547),E=n(13442),O=n(66459);const P=h.Z.getLogger("esri.geometry.support.meshUtils.centerAt");const S=(0,y.c)(),j=(0,y.c)();var z=n(17452);function N(t){const e=(0,z.Yd)(t.url);return n=>{var r;const o=(0,z.PF)(n,e,e),i=o?o.replace(/^ *\.\//,""):null;return null!=(r=t.files.get(i))?r:n}}async function U(t,e){return t instanceof Blob?W.fromBlob(t):"string"==typeof t?new W(t):Array.isArray(t)?async function(t,e){const n=new Map;let r=null;const o=await(0,g.WW)(t.map((async t=>({name:t.name,source:await U(t instanceof Blob?t:t.source,e)})))),i=[];for(const t of o)t&&((0,g.Hc)(e)?t.source.dispose():i.push(t));(0,g.k_)(e);for(const{name:t,source:e}of i)((0,s.Wi)(r)||/\.(gltf|glb)/i.test(t))&&(r=e.url),n.set(t,e.url),e.files&&e.files.forEach(((t,e)=>n.set(e,t)));if((0,s.Wi)(r))throw new c.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new W(r,(()=>i.forEach((({source:t})=>t.dispose()))),n)}(t,e):async function(t,e){const{default:r}=await(0,g.Hl)(Promise.resolve().then(n.bind(n,3172)),e),o="string"==typeof t.multipart[0]?await Promise.all(t.multipart.map((async t=>(await r(t,{responseType:"array-buffer"})).data))):t.multipart;return W.fromBlob(new Blob(o))}(t,e)}class W{constructor(t,e=(()=>{}),n=new Map){this.url=t,this.dispose=e,this.files=n}static fromBlob(t){const e=URL.createObjectURL(t);return new W(e,(()=>URL.revokeObjectURL(e)))}}var k=n(21787),$=n(46521),H=n(13598),B=n(17896),G=n(24678),q=n(56493);const Y=h.Z.getLogger("esri.geometry.support.meshUtils.offset");function X(t,e){if(t)for(let n=0;n<t.length;n+=3)for(let r=0;r<3;r++)t[n+r]+=e[r]}const K=(0,y.c)(),V=(0,H.c)(),J=(0,$.c)(),Q={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function tt(t,e,n){(function(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5})(t),function(t,e){if(null==e)return;const n="number"==typeof e?[e,e,e]:[null!=e.width?e.width:1,null!=e.depth?e.depth:1,null!=e.height?e.height:1];ot[0]=n[0],ot[4]=n[1],ot[8]=n[2];for(let e=0;e<t.position.length;e+=3){for(let n=0;n<3;n++)rt[n]=t.position[e+n];(0,B.t)(rt,rt,ot);for(let n=0;n<3;n++)t.position[e+n]=rt[n]}if(n[0]!==n[1]||n[1]!==n[2]){ot[0]=1/n[0],ot[4]=1/n[1],ot[8]=1/n[2];for(let e=0;e<t.normal.length;e+=3){for(let n=0;n<3;n++)rt[n]=t.normal[e+n];(0,B.t)(rt,rt,ot),(0,B.n)(rt,rt);for(let n=0;n<3;n++)t.normal[e+n]=rt[n]}}}(t,n&&n.size);const{vertexAttributes:r,transform:o}=(0,O.w1)(t,e,n);return{vertexAttributes:new Z.ZP({...r,uv:t.uv}),transform:o,components:[new A.Z({faces:t.faces,material:n&&n.material||null})],spatialReference:e.spatialReference}}const et={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},nt={south:0,east:1,north:2,west:3,up:4,down:5},rt=(0,y.c)(),ot=(0,$.c)();var it=n(52138);const st=h.Z.getLogger("esri.geometry.support.meshUtils.rotate");function at(t,e,n,r=y.Z){if(!(0,s.Wi)(t)){(0,it.d)(pt,(0,C.WH)(e),(0,C.ZZ)(e));for(let e=0;e<t.length;e+=n){for(let n=0;n<3;n++)lt[n]=t[e+n]-r[n];(0,B.m)(lt,lt,pt);for(let n=0;n<3;n++)t[e+n]=lt[n]+r[n]}}}const lt=(0,y.c)(),ct=(0,y.c)(),ut=(0,C.Ue)(),pt=(0,H.c)(),ht=(0,$.c)(),ft=(0,y.c)(),gt=h.Z.getLogger("esri.geometry.support.meshUtils.scale");function dt(t,e,n=y.Z){if(t)for(let r=0;r<t.length;r+=3){for(let e=0;e<3;e++)xt[e]=t[r+e]-n[e];(0,B.a)(xt,xt,e);for(let e=0;e<3;e++)t[r+e]=xt[e]+n[e]}}const xt=(0,y.c)(),mt=(0,y.c)(),yt=(0,y.c)();var vt;const wt=h.Z.getLogger("esri.geometry.Mesh");let bt=vt=class extends((0,u.p)(p.Z.LoadableMixin((0,f.v)(v.Z)))){constructor(t){super(t),this.components=null,this.transform=null,this.external=null,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Z.QL,this.type="mesh"}initialize(){((0,s.Wi)(this.external)||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.handles.add((0,d.YP)((()=>{var t;return{vertexAttributes:this.vertexAttributes,components:null==(t=this.components)?void 0:t.map((t=>t.clone())),transform:(0,s.pC)(this.transform)?this.transform.clone():null}}),(()=>this._set("external",null)),{once:!0,sync:!0}))}))}get hasExtent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)||this.loaded&&this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0)}get boundingInfo(){const t=this.vertexAttributes.position,e=this.spatialReference;if(0===t.length||this.components&&0===this.components.length)return{extent:new a.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:e}),center:new w.Z({x:0,y:0,z:0,spatialReference:e})};const n=(0,s.pC)(this.transform)?this.transform.project(t,e):t;let r=1/0,o=1/0,i=1/0,l=-1/0,c=-1/0,u=-1/0,p=0,h=0,f=0;const g=n.length,d=1/(g/3);let x=0;for(;x<g;){const t=n[x++],e=n[x++],s=n[x++];r=Math.min(r,t),o=Math.min(o,e),i=Math.min(i,s),l=Math.max(l,t),c=Math.max(c,e),u=Math.max(u,s),p+=d*t,h+=d*e,f+=d*s}return{extent:new a.Z({xmin:r,ymin:o,zmin:i,xmax:l,ymax:c,zmax:u,spatialReference:e}),center:new w.Z({x:p,y:h,z:f,spatialReference:e})}}get anchor(){if((0,s.pC)(this.transform))return this.transform.getOriginPoint(this.spatialReference);const t=this.boundingInfo;return new w.Z({x:t.center.x,y:t.center.y,z:t.extent.zmin,spatialReference:this.spatialReference})}get origin(){return(0,s.pC)(this.transform)?this.transform.getOriginPoint(this.spatialReference):this.boundingInfo.center}get extent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)?this.external.extent.clone():this.boundingInfo.extent}addComponent(t){this.loaded?(this.components||(this.components=[]),this.components.push(A.Z.from(t)),this.notifyChange("components")):wt.error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(t){if(this.loaded){if(this.components){const e=this.components.indexOf(t);if(-1!==e)return this.components.splice(e,1),void this.notifyChange("components")}wt.error("removeComponent()","Provided component is not part of the list of components")}else wt.error("removeComponent()","Mesh must be loaded before applying operations")}rotate(t,e,n,r){return(0,C.uT)(Ct.x,t,At),(0,C.uT)(Ct.y,e,Mt),(0,C.uT)(Ct.z,n,Zt),(0,C.qC)(At,Mt,At),(0,C.qC)(At,Zt,At),function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position||0===e[3])return;const r=t.spatialReference;if((0,s.pC)(t.transform)){var o;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&st.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const i=null!=(o=null==n?void 0:n.origin)?o:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,B.s)(lt,n.x,n.y,n.z),o=(0,B.f)(lt,r,t.origin);t.applyLocalInverse(o,ct),t.rotation=(0,C.qC)(t.rotation,e,(0,C.Ue)()),t.applyLocalInverse(o,o),(0,B.f)(o,o,ct),t.translation=(0,B.b)((0,y.c)(),t.translation,o)}(t.transform,e,i)}else{var i;const r=null!=(i=null==n?void 0:n.origin)?i:t.origin;(0,E.h)(t.spatialReference,n)?function(t,e,n){const r=t.spatialReference,o=(0,G.rS)(r),i=ft;(0,L.KC)(n,i,o)||(0,L.KC)(t.origin,i,o);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,L.Bm)(o,i,pt,o),(0,k.f)(ht,pt);const f=ut;(0,B.t)((0,C.ZZ)(ut),(0,C.ZZ)(e),ht),f[3]=e[3],(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,q.wi)(c,a,u,r,h),at(u,f,3,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(at(p,f,3),(0,q.Yk)(p,a,u,r,l)),(0,s.pC)(c)&&(at(h,f,4),(0,q.M2)(h,a,u,r,c)),t.vertexAttributesChanged()}(t,e,r):function(t,e,n){const r=ft;if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,st.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}at(t.vertexAttributes.position,e,3,r),at(t.vertexAttributes.normal,e,3),at(t.vertexAttributes.tangent,e,4),t.vertexAttributesChanged()}(t,e,r)}}(this,At,r),this}offset(t,e,n,r){return this.loaded?(_t[0]=t,_t[1]=e,_t[2]=n,function(t,e,n){t.vertexAttributes&&t.vertexAttributes.position&&((0,s.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&Y.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e){const n=t.origin;t.origin=(0,B.b)((0,y.c)(),n,e)}(t.transform,e)):(0,E.h)(t.spatialReference,n)?function(t,e){const n=t.spatialReference,r=t.vertexAttributes.position,o=t.vertexAttributes.normal,i=t.vertexAttributes.tangent,a=new Float64Array(r.length),l=(0,s.pC)(o)?new Float32Array(o.length):null,c=(0,s.pC)(i)?new Float32Array(i.length):null,u=t.extent.center,p=K;(0,L.Bm)(n,[u.x,u.y,u.z],V,(0,G.rS)(n)),(0,k.f)(J,V),(0,B.t)(p,e,J),(0,q.XO)(r,n,a),(0,s.pC)(o)&&(0,q.Iz)(o,r,a,n,l),(0,s.pC)(i)&&(0,q.wi)(i,r,a,n,c),X(a,p),(0,q.To)(a,r,n),(0,s.pC)(o)&&(0,q.Yk)(l,r,a,n,o),(0,s.pC)(i)&&(0,q.M2)(c,r,a,n,i),t.vertexAttributesChanged()}(t,e):function(t,e){X(t.vertexAttributes.position,e),t.vertexAttributesChanged()}(t,e))}(this,_t,r),this):(wt.error("offset()","Mesh must be loaded before applying operations"),this)}scale(t,e){return this.loaded?(function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const r=t.spatialReference;if((0,s.pC)(t.transform)){var o;null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&>.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`);const i=null!=(o=null==n?void 0:n.origin)?o:t.transform.getOriginPoint(r);!function(t,e,n){const r=(0,B.s)(xt,n.x,n.y,n.z),o=(0,B.f)(xt,r,t.origin);t.applyLocalInverse(o,mt);const i=(0,B.a)((0,y.c)(),t.scale,e);t.scale=i,t.applyLocalInverse(o,o),(0,B.f)(o,o,mt),t.translation=(0,B.b)((0,y.c)(),t.translation,o)}(t.transform,e,i)}else{const r=(0,E.h)(t.spatialReference,n),o=n&&n.origin||t.origin;r?function(t,e,n){const r=t.spatialReference,o=(0,G.rS)(r),i=yt;(0,L.KC)(n,i,o)||(0,L.KC)(t.origin,i,o);const a=t.vertexAttributes.position,l=t.vertexAttributes.normal,c=t.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,q.wi)(c,a,u,r,h),dt(u,e,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(0,q.Yk)(p,a,u,r,l),(0,s.pC)(c)&&(0,q.M2)(h,a,u,r,c),t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=yt;if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,gt.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}dt(t.vertexAttributes.position,e,r),t.vertexAttributesChanged()}(t,e,o)}}(this,t,e),this):(wt.error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(t,e){return this.loaded?(function(t,e,n){var r;if(!t.vertexAttributes||!t.vertexAttributes.position)return;const o=null!=(r=null==n?void 0:n.origin)?r:t.origin;(0,s.pC)(t.transform)?(null!=(null==n?void 0:n.geographic)&&n.geographic!==t.transform.geographic&&P.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${t.transform.geographic}) is not supported`),function(t,e,n){const r=e.x-n.x,o=e.y-n.y,i=e.hasZ&&n.hasZ?e.z-n.z:0,s=t.origin;t.origin=[s[0]+r,s[1]+o,s[2]+i]}(t.transform,e,o)):(0,E.h)(t.spatialReference,n)?function(t,e,n){const r=(0,O.FF)(t.vertexAttributes,n,{geographic:!0}),{position:o,normal:i,tangent:s}=(0,O.iv)(r,e,{geographic:!0});t.vertexAttributes.position=o,t.vertexAttributes.normal=i,t.vertexAttributes.tangent=s,t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=j,o=S;if((0,L.KC)(e,o,t.spatialReference)){if(!(0,L.KC)(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,P.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}).`)}(function(t,e,n){if(t)for(let r=0;r<t.length;r+=3)for(let o=0;o<3;o++)t[r+o]+=e[o]-n[o]})(t.vertexAttributes.position,o,r),t.vertexAttributesChanged()}else P.error(`Failed to project centerAt location (wkid:${e.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid})`)}(t,e,o)}(this,t,e),this):(wt.error("centerAt()","Mesh must be loaded before applying operations"),this)}load(t){return(0,s.pC)(this.external)&&this.addResolvingPromise(async function(t,e,r){const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r),i=await U(e,r),a=o(new w.Z({x:0,y:0,z:0,spatialReference:t.spatialReference}),i.url,{resolveFile:N(i),useTransform:!0,signal:(0,s.pC)(r)?r.signal:null});a.then((()=>i.dispose()),(()=>i.dispose()));const{vertexAttributes:l,components:c}=await a;t.vertexAttributes=l,t.components=c}(this,this.external.source,t)),Promise.resolve(this)}clone(){const t=this.components?new Map:null,e=this.components?new Map:null,n={components:this.components?this.components.map((n=>n.cloneWithDeduplication(t,e))):null,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:(0,s.pC)(this.transform)?this.transform.clone():null,external:(0,s.pC)(this.external)?{source:this.external.source,extent:(0,s.pC)(this.external.extent)?this.external.extent.clone():null}:null};return new vt(n)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(t){const{toBinaryGLTF:e}=await n.e(7277).then(n.bind(n,7277));return e(this,t)}static createBox(t,e){if(!(t instanceof w.Z))return wt.error(".createBox()","expected location to be a Point instance"),null;const n=new vt(tt(function(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=et,r=4*t.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*t.length*3);let l=0,c=0,u=0,p=0;for(let r=0;r<t.length;r++){const h=t[r],f=l/3;for(const t of e)a[p++]=f+t;const g=h.corners;for(let t=0;t<4;t++){const e=g[t];let r=0;s[u++]=.25*n[t][0]+h.uvOrigin[0],s[u++]=h.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==h.axis[t]?(o[l++]=.5*h.axis[t],i[c++]=h.axis[t]):(o[l++]=.5*e[r++],i[c++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),t,e));return e&&e.imageFace&&"all"!==e.imageFace?function(t,e){const n=t.components[0],r=n.faces,o=nt[e],i=6*o,a=new Uint32Array(6),l=new Uint32Array(r.length-6);let c=0,u=0;for(let t=0;t<r.length;t++)t>=i&&t<i+6?a[c++]=r[t]:l[u++]=r[t];if((0,s.pC)(t.vertexAttributes.uv)){const e=new Float32Array(t.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new A.Z({faces:a,material:n.material}),new A.Z({faces:l})],t}(n,e.imageFace):n}static createSphere(t,e){return t instanceof w.Z?new vt(tt(function(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((e-1)*n*2*3);let l=0,c=0,u=0,p=0;for(let t=0;t<=e;t++){const r=t/e*Math.PI+.5*Math.PI,h=Math.cos(r),f=Math.sin(r);rt[2]=f;const g=0===t||t===e,d=g?n-1:n;for(let r=0;r<=d;r++){const f=r/d*2*Math.PI;rt[0]=-Math.sin(f)*h,rt[1]=Math.cos(f)*h;for(let t=0;t<3;t++)o[l]=.5*rt[t],i[l]=rt[t],++l;s[c++]=(r+(g?.5:0))/n,s[c++]=t/e,0!==t&&r!==n&&(t!==e&&(a[u++]=p,a[u++]=p+1,a[u++]=p-n),1!==t&&(a[u++]=p,a[u++]=p-n,a[u++]=p-n-1)),p++}}return{position:o,normal:i,uv:s,faces:a}}(e&&e.densificationFactor||0),t,e)):(wt.error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(t,e){return t instanceof w.Z?new vt(tt(function(t=0){const e=Math.round(16*2**t),n=4*(e+1)+2*e,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*e*3);let a=0,l=0,c=0,u=0,p=0;for(let t=0;t<=5;t++){const n=0===t||5===t,h=t<=1||t>=4,f=2===t||4===t,g=n?e-1:e;for(let d=0;d<=g;d++){const x=d/g*2*Math.PI,m=n?0:.5;rt[0]=m*Math.sin(x),rt[1]=m*-Math.cos(x),rt[2]=t<=2?.5:-.5;for(let e=0;e<3;e++)r[a++]=rt[e],o[l++]=h?2===e?t<=1?1:-1:0:2===e?0:rt[e]/m;i[c++]=(d+(n?.5:0))/e,i[c++]=t<=1?1*t/3:t<=3?1*(t-2)/3+1/3:1*(t-4)/3+2/3,f||0===t||d===e||(5!==t&&(s[u++]=p,s[u++]=p+1,s[u++]=p-e),1!==t&&(s[u++]=p,s[u++]=p-e,s[u++]=p-e-1)),p++}}return{position:r,normal:o,uv:i,faces:s}}(e&&e.densificationFactor||0),t,e)):(wt.error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(t,e){var n;if(!(t instanceof w.Z))return wt.error(".createPlane()","expected location to be a Point instance"),null;const r=null!=(n=null==e?void 0:e.facing)?n:"up",o=function(t,e){const n="number"==typeof e?e:null!=e?e.width:1,r="number"==typeof e?e:null!=e?e.height:1;switch(t){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(r,null==e?void 0:e.size);return new vt(tt(function(t){const e=Q.facingAxisOrderSwap[t],n=Q.position,r=Q.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let t=0;t<4;t++){const t=s;for(let a=0;a<3;a++){const l=e[a],c=Math.abs(l)-1,u=l>=0?1:-1;o[s]=n[t+c]*u,i[s]=r[t+c]*u,s++}}return{position:o,normal:i,uv:new Float32Array(Q.uv),faces:new Uint32Array(Q.faces)}}(r),t,{...e,size:o}))}static createFromPolygon(t,e){if(!(t instanceof b.Z))return wt.error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const n=function(t){const e=R(t.rings,t.hasZ,r.CCW_IS_HOLE),n=[];let o=0,i=0;for(const t of e.polygons){const r=t.count,s=t.index,a=new Float64Array(e.position.buffer,3*s*e.position.BYTES_PER_ELEMENT,3*r),l=t.holeIndices.map((t=>t-s)),c=new Uint32Array((0,_.e)(a,l,3));n.push({position:a,faces:c}),o+=a.length,i+=c.length}const s=function(t,e,n){if(1===t.length)return t[0];const r=new Float64Array(e),o=new Uint32Array(n);let i=0,s=0,a=0;for(const e of t){for(let t=0;t<e.position.length;t++)r[i++]=e.position[t];for(let t=0;t<e.faces.length;t++)o[s++]=e.faces[t]+a;a=i/3}return{position:r,faces:o}}(n,o,i),a=(0,F.d)(s.position.buffer,6,{originalIndices:s.faces});return s.position=new Float64Array(a.buffer),s.faces=a.indices,s}(t);return new vt({vertexAttributes:new Z.QL({position:n.position}),components:[new A.Z({faces:n.faces,shading:"flat",material:e&&e.material||null})],spatialReference:t.spatialReference})}static async createFromGLTF(t,e,r){if(!(t instanceof w.Z))throw wt.error(".createfromGLTF()","expected location to be a Point instance"),new c.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r);return new vt(await o(t,e,r))}static createWithExternalSource(t,e,n){var r,o,i;const s=null!=(r=null==n?void 0:n.extent)?r:null,a=null!=(o=null==n?void 0:n.transform.clone())?o:new M.Z;a.origin=[t.x,t.y,null!=(i=t.z)?i:0];const l=t.spatialReference;return new vt({external:{source:e,extent:s},transform:a,spatialReference:l})}static createIncomplete(t,e){var n,r;const o=null!=(n=null==e?void 0:e.transform.clone())?n:new M.Z;o.origin=[t.x,t.y,null!=(r=t.z)?r:0];const i=t.spatialReference,s=new vt({transform:o,spatialReference:i});return s.addResolvingPromise(Promise.reject(new c.Z("mesh-incomplete","Mesh resources are not complete"))),s}};(0,l._)([(0,x.Cb)({type:[A.Z],json:{write:!0}})],bt.prototype,"components",void 0),(0,l._)([(0,x.Cb)({type:M.Z,json:{write:!0}})],bt.prototype,"transform",void 0),(0,l._)([(0,x.Cb)({constructOnly:!0})],bt.prototype,"external",void 0),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"hasExtent",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"boundingInfo",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"anchor",null),(0,l._)([(0,x.Cb)({readOnly:!0})],bt.prototype,"origin",null),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1}})],bt.prototype,"extent",null),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],bt.prototype,"hasZ",void 0),(0,l._)([(0,x.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],bt.prototype,"hasM",void 0),(0,l._)([(0,x.Cb)({type:Z.QL,nonNullable:!0,json:{write:!0}})],bt.prototype,"vertexAttributes",void 0),bt=vt=(0,l._)([(0,m.j)("esri.geometry.Mesh")],bt);const Ct={x:(0,y.f)(1,0,0),y:(0,y.f)(0,1,0),z:(0,y.f)(0,0,1)},At=(0,C.Ue)(),Mt=(0,C.Ue)(),Zt=(0,C.Ue)(),_t=(0,y.c)(),Tt=bt;var Ft,Rt;!function(t){t.featureGUID="featureGUID",t.assetName="assetName",t.hash="hash",t.type="type",t.conversionStatus="conversionStatus",t.flags="flags",t.complexity="complexity",t.size="size",t.seqNo="seqNo",t.sourceHash="sourceHash",t.assetURL="assetURL"}(Ft||(Ft={})),function(t){t.SUBMITTED="SUBMITTED",t.INPROGRESS="INPROGRESS",t.FAILED="FAILED",t.COMPLETED="COMPLETED"}(Rt||(Rt={}));var Dt,It,Lt=n(74889);function Et(t,e,n){const r=n.features;n.features=[],delete n.geometryType;const o=Lt.default.fromJSON(n);o.geometryType="mesh";const a=o.spatialReference,l=(0,s.Wi)(t.outFields)||!t.outFields.length?()=>({}):(c=t.outFields.includes("*")?null:new Set(t.outFields),({attributes:t})=>{if(!t)return{};if(!c)return t;for(const e in t)c.has(e)||delete t[e];return t});var c;for(const t of r){const n=Ot(t,a,e);(0,s.pC)(n)&&o.features.push(new i.Z({geometry:n,attributes:l(t)}))}return o}function Ot(t,e,n){const{status:r,source:o}=function(t){if(!t.assetMappings)return{status:Dt.FAILED};const e=[],n=new Map;for(const r of t.assetMappings){const t=r[Ft.seqNo],o=r[Ft.assetName],i=r[Ft.assetURL],s=r[Ft.conversionStatus];if(s===Rt.FAILED)return{status:Dt.FAILED};if(s!==Rt.COMPLETED)return{status:Dt.PENDING};if(null==t)e.push({name:o,source:i});else{const r=n.get(o);let s;r?s=r.multipart:(s=[],e.push({name:o,source:{multipart:s}}),n.set(o,{multipart:s})),s[t]=i}}return{status:Dt.COMPLETED,source:e}}(t);if(r===Dt.FAILED)return null;const i=function({attributes:t},e,{transformFieldRoles:n}){return new w.Z({x:t[n.originX],y:t[n.originY],z:t[n.originZ],spatialReference:e})}(t,e,n),s=a.Z.fromJSON(t.geometry);s.spatialReference=e;const l=function({attributes:t,assetMappings:e},{transformFieldRoles:n}){var r;return new M.Z({translation:[t[n.translationX],t[n.translationY],t[n.translationZ]],rotation:(0,C.uT)([t[n.rotationX],t[n.rotationY],t[n.rotationZ]],t[n.rotationDeg]),scale:[t[n.scaleX],t[n.scaleY],t[n.scaleZ]],geographic:!(null!=(r=e[Ft.flags])&&r.includes("PROJECT_VERTICES"))})}(t,n);return r===Dt.PENDING?Tt.createIncomplete(i,{extent:s,transform:l}):Tt.createWithExternalSource(i,o,{extent:s,transform:l})}(It=Dt||(Dt={}))[It.FAILED=0]="FAILED",It[It.PENDING=1]="PENDING",It[It.COMPLETED=2]="COMPLETED"}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4470],{91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const i=o(e,t,(t=>{i.remove(),n.call(e,t)}));return{remove(){i.remove()}}}n.d(t,{vT:()=>r,on:()=>o,IH:()=>i})},95330:(e,t,n)=>{n.d(t,{e4:()=>v,$6:()=>u,Ue:()=>a,zE:()=>c,dD:()=>S,hh:()=>J,vr:()=>C,Ds:()=>A,as:()=>T,WW:()=>I,R8:()=>_,D_:()=>O,Hc:()=>m,y8:()=>w,fu:()=>d,$F:()=>g,d1:()=>R,DB:()=>U,r9:()=>y,k_:()=>f,H9:()=>h,Yn:()=>b,gx:()=>E,Hl:()=>N});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o,i=n(20102),s=n(91460),l=(n(92604),n(70586));function u(e){return Promise.all(e)}function a(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function c(e="Aborted"){return new i.Z("AbortError",e)}function f(e,t="Aborted"){if(m(e))throw c(t)}function p(e){return(0,l.pC)(e)?"aborted"in e?e:e.signal:e}function m(e){const t=p(e);return(0,l.pC)(t)&&t.aborted}function y(e){if(O(e))throw e}function h(e){if(!O(e))throw e}function d(e,t){const n=p(e);if(!(0,l.Wi)(n)){if(!n.aborted)return(0,s.IH)(n,"abort",(()=>t()));t()}}function g(e,t){const n=p(e);if(!(0,l.Wi)(n))return f(n),(0,s.IH)(n,"abort",(()=>t(c())))}function N(e,t){const n=p(t);return(0,l.Wi)(n)?e:new Promise(((n,r)=>{let o=d(t,(()=>r(c())));const i=()=>o=(0,l.hw)(o);e.then(i,i),e.then(n,r)}))}function O(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!O(e))throw e}))}function S(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function T(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return T(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return a((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function I(e){return T(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function R(e){return Promise.reject(e)}function U(e){return Promise.resolve(e)}function v(e,t,n){const r=new AbortController;return d(n,(()=>r.abort())),new Promise(((n,o)=>{let i=setTimeout((()=>{i=0,n(t)}),e);d(r,(()=>{i&&(clearTimeout(i),o(c()))}))}))}function w(e){return e&&"function"==typeof e.then}function E(e){return w(e)?e:Promise.resolve(e)}function A(e,t=-1){let n,r,o,i,s=null;const u=(...a)=>{if(n){r=a,i&&i.reject(c()),i=S();const e=(0,l.j0)(i.promise);if(s){const e=s;s=null,e.abort()}return e}if(o=i||S(),i=null,t>0){const r=new AbortController;n=E(e(...a,r.signal));const o=n;v(t).then((()=>{n===o&&(i?r.abort():s=r)}))}else n=1,n=E(e(...a));const f=()=>{const e=r;r=o=n=s=null,null!=e&&u(...e)},p=n,m=o;return p.then(f,f),p.then(m.resolve,m.reject),(0,l.j0)(m.promise)};return u}function J(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}function C(e,t){let n,r=new AbortController;const o=e(r.signal);let i={promise:o,finished:!1,abort:()=>{r&&(r.abort(),r=null)}};const s=()=>{i&&(i.finished=!0,i=null),(0,l.pC)(n)&&(n.remove(),n=null),r=null};return o.then(s,s),n=d(t,(()=>{(0,l.pC)(i)&&i.abort()})),i}function b(e){return Promise.resolve().then((()=>{f(e)}))}},17452:(e,t,n)=>{n.d(t,{R9:()=>N,qg:()=>A,tD:()=>j,ZN:()=>pe,fl:()=>me,Ie:()=>ae,sJ:()=>X,AH:()=>W,io:()=>V,L:()=>I,TI:()=>T,vt:()=>le,oh:()=>D,P$:()=>F,Ml:()=>ye,ed:()=>x,b7:()=>E,D6:()=>G,tm:()=>q,YP:()=>Y,jc:()=>B,HK:()=>K,$U:()=>ne,oC:()=>ee,kl:()=>M,v_:()=>Z,hF:()=>$,_l:()=>z,PF:()=>k,Fv:()=>H,B7:()=>w,u0:()=>U,Yd:()=>se,Hu:()=>fe,Qj:()=>ue,hO:()=>re,mN:()=>R});var r=n(68773),o=n(20102),i=n(92604),s=n(70586);const l=i.Z.getLogger("esri.core.urlUtils"),u=r.Z.request,a="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,p=/^\s*https:/i,m=/^\s*file:/i,y=/:\d+$/,h=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,d=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class N{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,s.j0)(this.uri.match(d));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,s.j0)(this.authority.match(g)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const O={};let _=new N(r.Z.applicationUrl);let S=function(){const e=(0,s.j0)(_.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${_.scheme}://${_.host}${null!=_.port?`:${_.port}`:""}${t}`}();const T=()=>_,I=()=>S;function R(e){const t={path:null,query:null},n=new N(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=U(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function U(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let i=n[r];"string"==typeof i&&(i=n[r]=[i]),Array.isArray(i)?i.push(o):n[r]=o}return n}function v(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function w(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",i=t&&t[n];return i?o+encodeURIComponent(i(r)):Array.isArray(r)?r.map((e=>v(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):v(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function E(e=!1){let t,n=u.proxyUrl;if("string"==typeof e){t=ne(e);const r=x(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw l.warn(a),new o.Z("urlutils:proxy-not-set",a);return t&&oe()&&(n=re(n)),R(n)}function A(e){const t=x(e);let n,r;if(t){const e=C(t.proxyUrl);n=e.path,r=e.query?U(e.query):null}if(n){const t=R(e);e=n+"?"+t.path;const o=w({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const J={path:"",query:""};function C(e){const t=e.indexOf("?");return-1!==t?(J.path=e.slice(0,t),J.query=e.slice(t+1)):(J.path=e,J.query=null),J}function b(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=C(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:b(e.urlPrefix)},n=u.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function x(e){const t=u.proxyRules,n=b(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function q(e,t){return e=L(e),t=L(t),ie(e)===ie(t)}function L(e){const t=(e=H(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function D(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=u.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function G(e,t,n=!1){const r=ce(e),o=ce(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function M(e){if("string"==typeof e){if(!Y(e))return!0;e=ce(e)}if(G(e,_))return!0;const t=u.trustedServers||[];for(let n=0;n<t.length;n++){const r=P(t[n]);for(let t=0;t<r.length;t++)if(G(e,r[t]))return!0}return!1}function P(e){return O[e]||(te(e)||ee(e)?O[e]=[new N($(e))]:O[e]=[new N(`http://${e}`),new N(`https://${e}`)]),O[e]}function $(e,t=S,n){return ee(e)?n&&n.preserveProtocolRelative?e:"http"===_.scheme&&_.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,s.j0)(Z("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function k(e,t=S,n){if(!Y(e))return e;const r=H(e),o=r.toLowerCase(),i=H(t).toLowerCase().replace(/\/+$/,""),s=n?H(n).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==i.indexOf(s))return e;const l=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let u=l(o,"/",o.indexOf("//")+2),a=-1;for(;o.slice(0,u+1)===i.slice(0,u)+"/"&&(a=u+1,u!==o.length);)u=l(o,"/",u+1);if(-1===a)return e;if(s&&a<s.length)return e;e=r.slice(a);const c=i.slice(a-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function H(e){return function(e){const t=u.httpsDomains;if(!function(e){return f.test(e)||"http"===_.scheme&&ee(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),y.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===_.scheme&&r===_.authority&&!h.test(e)||(oe()&&r===_.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||oe()&&!x(e))&&(e=re(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=C(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=$(e=e.trim()))))}function Z(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const n=[];if(Y(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return m.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function F(e,t=!1){if(B(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&ee(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ie(e,!0)),e}function Y(e){return ee(e)||te(e)}function B(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return"data:"===e.slice(0,5)}function W(e){const t=X(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const Q=/^data:(.*?)(;base64)?,(.*)$/;function X(e){const t=e.match(Q);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function V(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function ne(e){return p.test(e)||"https"===_.scheme&&ee(e)}function re(e){return ee(e)?`https:${e}`:e.replace(f,"https:")}function oe(){return"https"===_.scheme}function ie(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function se(e){let t=0;if(Y(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function le(e,t){if(!e)return"";const n=R(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function ue(e){return e.replace(/\/+$/,"")}function ae(e,t,n){if(!(t&&n&&e&&Y(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),i=e.indexOf(":",r+2),s=Math.min(o<0?e.length:o,i<0?e.length:i);return e.slice(r+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(s)}`}function ce(e){return"string"==typeof e?new N($(e)):(e.scheme||(e.scheme=_.scheme),e)}function fe(e,t){const n=R(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function pe(e,t,n){const r=R(e),o=r.query||{};return o[t]=String(n),`${r.path}?${w(o)}`}function me(e,t){const n=R(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=w(r);return o?`${n.path}?${o}`:n.path}function ye(e){if((0,s.Wi)(e))return null;const t=e.match(he);return t?t[1]:null}const he=/.*?\.([^\/]*)$/},66577:(e,t,n)=>{n.d(t,{qM:()=>c});var r=n(75215),o=n(6570),i=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);n(82971),n(86973),n(33955);const c={base:i.Z,key:"type",typeMap:{extent:o.Z,multipoint:s.Z,point:l.Z,polyline:a.Z,polygon:u.Z}};(0,r.N7)(c)},33955:(e,t,n)=>{n.d(t,{im:()=>h,q9:()=>N,Ji:()=>d,YX:()=>c,aW:()=>f,wp:()=>p,oU:()=>y,l9:()=>m});var r=n(70586),o=n(6570),i=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function f(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths}function y(e){return void 0!==e.rings}function h(e){return(0,r.Wi)(e)?null:e instanceof i.Z?e:p(e)?l.Z.fromJSON(e):m(e)?a.Z.fromJSON(e):y(e)?u.Z.fromJSON(e):f(e)?s.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):null}function d(e){return e?p(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":y(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":f(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:l.Z,esriGeometryPolyline:a.Z,esriGeometryPolygon:u.Z,esriGeometryEnvelope:o.Z,esriGeometryMultipoint:s.Z};function N(e){return e&&g[e]||null}},91040:(e,t,n)=>{n.d(t,{yZ:()=>o});var r=n(67900);function o(e,t){const n=t||e.extent,o=e.width,i=(0,r.c9)(n&&n.spatialReference);return n&&o?n.width/o*i*r.hd*96:0}},86973:(e,t,n)=>{n.d(t,{Mk:()=>o,P$:()=>i});var r=n(35454);const o=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},11282:(e,t,n)=>{n.d(t,{lA:()=>o,cv:()=>s,en:()=>i});var r=n(17452);function o(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,r.mN)(e):e}function s(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){r[o]=[];for(let e=0;e<i.length;e++)r[o][e]=s(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n&&n[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}n(91040)},29554:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Y});var r=n(43697),o=n(5600),i=(n(67676),n(80442),n(75215)),s=n(52011),l=n(3172),u=n(11282);n(66577);var a=n(33955);function c(e){return{geometryType:(0,a.Ji)(e[0]),geometries:e.map((e=>e.toJSON()))}}function f(e,t,n){const r=(0,a.q9)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=n,t}))}var p=n(17332);async function m(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),polygons:JSON.stringify(c(t).geometries),polylines:JSON.stringify(c(n).geometries)},a=(0,u.lA)(s,r);return(0,l.default)(i.path+"/autoComplete",a).then((({data:e})=>(e.geometries||[]).map((({rings:e})=>new p.Z({spatialReference:o,rings:e})))))}async function y(e,t,n){const r=t[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",sr:JSON.stringify(r.toJSON()),geometries:JSON.stringify(c(t))},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/convexHull",s).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:r})))}async function h(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e);let s={query:{...i.query,f:"json",sr:JSON.stringify(o.toJSON()),geometries:JSON.stringify(c(t)),geometry:JSON.stringify({geometryType:(0,a.Ji)(n),geometry:n.toJSON()})}};return r&&(s={...r,...s}),(0,l.default)(i.path+"/difference",s).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}var d=n(35454);const g=new d.Xn({MGRS:"mgrs",USNG:"usng",UTM:"utm",GeoRef:"geo-ref",GARS:"gars",DMS:"dms",DDM:"ddm",DD:"dd"});var N=n(96674);let O=class extends N.wq{constructor(e){super(e),this.deviationUnit=null,this.geometries=null,this.maxDeviation=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],O.prototype,"deviationUnit",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries=e.map((e=>e.toJSON()))}}}})],O.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],O.prototype,"maxDeviation",void 0),O=(0,r._)([(0,s.j)("esri.rest.support.GeneralizeParameters")],O),O.from=(0,i.se)(O);const _=O,S=new d.Xn({109006:"centimeters",9102:"decimal-degrees",109005:"decimeters",9002:"feet",109009:"inches",9036:"kilometers",9001:"meters",9035:"miles",109007:"millimeters",109012:"nautical-miles",9096:"yards"});async function T(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),geometries:JSON.stringify(c(t)),geometry:JSON.stringify({geometryType:(0,a.Ji)(n),geometry:n.toJSON()})},f=(0,u.lA)(s,r);return(0,l.default)(i.path+"/intersect",f).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}var I=n(58901);let R=class extends N.wq{constructor(e){super(e),this.calculationType=null,this.geodesic=null,this.lengthUnit=null,this.polylines=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],R.prototype,"calculationType",void 0),(0,r._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],R.prototype,"geodesic",void 0),(0,r._)([(0,o.Cb)({json:{write:!0}})],R.prototype,"lengthUnit",void 0),(0,r._)([(0,o.Cb)({type:[I.Z],json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.polylines=e.map((e=>e.toJSON()))}}}})],R.prototype,"polylines",void 0),R=(0,r._)([(0,s.j)("esri.rest.support.LengthsParameters")],R),R.from=(0,i.se)(R);const U=R,v=new d.Xn({preserveShape:"preserve-shape"});function w(e){const{polylines:t,lengthUnit:n,geodesic:r,calculationType:o}=e.toJSON(),i={};i.polylines=JSON.stringify(t);const s=e.polylines[0].spatialReference;return i.sr=s.wkid?s.wkid:JSON.stringify(s.toJSON()),n&&(i.lengthUnit=n),r&&(i.geodesic=r),o&&(i.calculationType=v.toJSON(o)),i}let E=class extends N.wq{constructor(e){super(e),this.bevelRatio=null,this.geometries=null,this.offsetDistance=null,this.offsetHow=null,this.offsetUnit=null}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],E.prototype,"bevelRatio",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries=e.map((e=>e.toJSON()))}}}})],E.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],E.prototype,"offsetDistance",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],E.prototype,"offsetHow",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],E.prototype,"offsetUnit",void 0),E=(0,r._)([(0,s.j)("esri.rest.support.OffsetParameters")],E),E.from=(0,i.se)(E);const A=E,J=new d.Xn({esriGeometryOffsetBevelled:"bevelled",esriGeometryOffsetMitered:"mitered",esriGeometryOffsetRounded:"rounded"}),C=new d.Xn({9001:"meters",9002:"feet",9036:"kilometers",9093:"miles",109012:"nautical-miles",109001:"yards"});let b=class extends N.wq{constructor(e){super(e),this.geometries=null,this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((function(e){return e.toJSON()})),t=this.geometries[0],n={};return n.outSR=this.outSpatialReference.wkid||JSON.stringify(this.outSpatialReference.toJSON()),n.inSR=t.spatialReference.wkid||JSON.stringify(t.spatialReference.toJSON()),n.geometries=JSON.stringify({geometryType:(0,a.Ji)(t),geometries:e}),this.transformation&&(n.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(n.transformForward=this.transformForward),n}};(0,r._)([(0,o.Cb)()],b.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({json:{read:{source:"outSR"}}})],b.prototype,"outSpatialReference",void 0),(0,r._)([(0,o.Cb)()],b.prototype,"transformation",void 0),(0,r._)([(0,o.Cb)()],b.prototype,"transformForward",void 0),b=(0,r._)([(0,s.j)("esri.rest.support.ProjectParameters")],b);const j=b,x=(0,i.se)(j);let q=class extends N.wq{constructor(e){super(e),this.geometries1=null,this.geometries2=null,this.relation=null,this.relationParameter=null}};(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries1=e.map((e=>e.toJSON()))}}}})],q.prototype,"geometries1",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries2=e.map((e=>e.toJSON()))}}}})],q.prototype,"geometries2",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],q.prototype,"relation",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],q.prototype,"relationParameter",void 0),q=(0,r._)([(0,s.j)("esri.rest.support.RelationParameters")],q),q.from=(0,i.se)(q);const L=q,D=new d.Xn({esriGeometryRelationCross:"cross",esriGeometryRelationDisjoint:"disjoint",esriGeometryRelationIn:"in",esriGeometryRelationInteriorIntersection:"interior-intersection",esriGeometryRelationIntersection:"intersection",esriGeometryRelationLineCoincidence:"line-coincidence",esriGeometryRelationLineTouch:"line-touch",esriGeometryRelationOverlap:"overlap",esriGeometryRelationPointTouch:"point-touch",esriGeometryRelationTouch:"touch",esriGeometryRelationWithin:"within",esriGeometryRelationRelation:"relation"});var G=n(17452);async function M(e,t,n){const r="string"==typeof e?(0,G.mN)(e):e,o=t[0].spatialReference,i=(0,a.Ji)(t[0]),s={...n,query:{...r.query,f:"json",sr:o.wkid?o.wkid:JSON.stringify(o),geometries:JSON.stringify(c(t))}},{data:u}=await(0,l.default)(r.path+"/simplify",s);return f(u.geometries,i,o)}let P=class extends N.wq{constructor(e){super(e),this.extendHow="default-curve-extension",this.polylines=null,this.trimExtendTo=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],P.prototype,"extendHow",void 0),(0,r._)([(0,o.Cb)({type:[I.Z],json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.polylines=e.map((e=>e.toJSON()))}}}})],P.prototype,"polylines",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?(0,a.im)(e):null},write:{writer:(e,t)=>{t.trimExtendTo=e.toJSON()}}}})],P.prototype,"trimExtendTo",void 0),P=(0,r._)([(0,s.j)("esri.rest.support.TrimExtendParameters")],P),P.from=(0,i.se)(P);const $=P,k=new d.Xn({0:"default-curve-extension",1:"relocate-ends",2:"keep-end-attributes",4:"no-end-attributes",8:"no-extend-at-from",16:"no-extend-at-to"});async function H(e,t,n){const r=t[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",sr:JSON.stringify(r.toJSON()),geometries:JSON.stringify(c(t))},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/union",s).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:r})))}var Z=n(59633);let F=class extends Z.Z{constructor(e){super(e),this.url=null}areasAndLengths(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=(0,u.lA)(o,n);return(0,l.default)(r.path+"/areasAndLengths",i).then((e=>e.data))}(this.url,e,t)}autoComplete(e,t,n){return m(this.url,e,t,n)}buffer(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=t.outSpatialReference||t.geometries[0].spatialReference,s=(0,u.lA)(o,n);return(0,l.default)(r.path+"/buffer",s).then((e=>(e.data.geometries||[]).map((({rings:e})=>new p.Z({spatialReference:i,rings:e})))))}(this.url,e,t)}convexHull(e,t){return y(this.url,e,t)}cut(e,t,n){return async function(e,t,n,r){const o=(0,u.en)(e),i=t[0].spatialReference,s={...r,query:{...o.query,f:"json",sr:JSON.stringify(i),target:JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},c=await(0,l.default)(o.path+"/cut",s),{cutIndexes:f,geometries:p=[]}=c.data;return{cutIndexes:f,geometries:p.map((e=>{const t=(0,a.im)(e);return t.spatialReference=i,t}))}}(this.url,e,t,n)}densify(e,t){return async function(e,t,n){const r=t.geometries[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",...t.toJSON()},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/densify",s).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:r})))))}(this.url,e,t)}difference(e,t,n){return h(this.url,e,t,n)}distance(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=(0,u.lA)(o,n);return(0,l.default)(r.path+"/distance",i).then((({data:e})=>e&&e.distance))}(this.url,e,t)}fromGeoCoordinateString(e,t){return async function(e,t,n){const r={};null!=t.sr&&"object"==typeof t.sr?r.sr=t.sr.wkid||JSON.stringify(t.sr):r.sr=t.sr,r.strings=JSON.stringify(t.strings);const o=t.conversionType||"mgrs";r.conversionType=g.toJSON(o),r.conversionMode=t.conversionMode;const i=(0,u.en)(e),s={...i.query,f:"json",...r},a=(0,u.lA)(s,n);return(0,l.default)(i.path+"/fromGeoCoordinateString",a).then((({data:e})=>e.coordinates))}(this.url,e,t)}generalize(e,t){return async function(e,t,n){const r=(t=_.from(t)).toJSON(),o=function(e){const{geometries:t,deviationUnit:n,maxDeviation:r}=e.toJSON(),o={maxDeviation:r};return t&&t.length&&(o.geometries=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),o.sr=JSON.stringify(t[0].spatialReference)),S.write(n,o,"deviationUnit"),o}(t),i=(0,u.en)(e),s={...i.query,f:"json",...o},c=r.geometries[0].spatialReference,f=(0,u.lA)(s,n);return(0,l.default)(i.path+"/generalize",f).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:c})))))}(this.url,e,t)}intersect(e,t,n){return T(this.url,e,t,n)}labelPoints(e,t){return function(e,t,n){const r=t.map((e=>e.toJSON())),o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:o.wkid?o.wkid:JSON.stringify(o.toJSON()),polygons:JSON.stringify(r)},c=(0,u.lA)(s,n);return(0,l.default)(i.path+"/labelPoints",c).then((({data:e})=>(e.labelPoints||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}(this.url,e,t)}lengths(e,t){return async function(e,t,n){const r=w(t=U.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/lengths",s).then((({data:e})=>e))}(this.url,e,t)}offset(e,t){return async function(e,t,n){const r=function(e){const{geometries:t,bevelRatio:n,offsetDistance:r,offsetHow:o,offsetUnit:i}=e.toJSON(),s={bevelRatio:n,offsetDistance:r};return t&&t.length&&(s.geometries=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),s.sr=JSON.stringify(t[0].spatialReference)),o&&(s.offsetHow=J.toJSON(o)),i&&(s.offsetUnit=C.toJSON(i)),s}(t=A.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=t.geometries[0].spatialReference,c=(0,u.lA)(i,n);return(0,l.default)(o.path+"/offset",c).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:s})))))}(this.url,e,t)}project(e,t){return async function(e,t,n){t=x(t);const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=t.outSpatialReference,s=(0,a.Ji)(t.geometries[0]),c=(0,u.lA)(o,n);return(0,l.default)(r.path+"/project",c).then((({data:{geometries:e}})=>f(e,s,i)))}(this.url,e,t)}relation(e,t){return async function(e,t,n){const r=function(e){const{geometries1:t,geometries2:n,relation:r,relationParameter:o}=e.toJSON(),i={};if(t&&t.length){i.geometries1=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t});const e=t[0].spatialReference;i.sr=e.wkid?e.wkid:JSON.stringify(e)}return n&&n.length>0&&(i.geometries2=JSON.stringify({geometryType:(0,a.Ji)(n[0]),geometries:n})),r&&(i.relation=D.toJSON(r)),o&&(i.relationParam=o),i}(t=L.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/relation",s).then((({data:e})=>e.relations))}(this.url,e,t)}reshape(e,t,n){return async function(e,t,n,r){const o=t.spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),target:JSON.stringify({geometryType:(0,a.Ji)(t),geometry:t.toJSON()}),reshaper:JSON.stringify(n.toJSON())},c=(0,u.lA)(s,r);return(0,l.default)(i.path+"/reshape",c).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:o})))}(this.url,e,t,n)}simplify(e,t){return M(this.url,e,t)}toGeoCoordinateString(e,t){return async function(e,t,n){const r={};null!=t.sr&&"object"==typeof t.sr?r.sr=t.sr.wkid||JSON.stringify(t.sr):r.sr=t.sr,r.coordinates=JSON.stringify(t.coordinates);const o=t.conversionType||"mgrs";r.conversionType=g.toJSON(o),r.conversionMode=t.conversionMode,r.numOfDigits=t.numOfDigits,r.rounding=t.rounding,r.addSpaces=t.addSpaces;const i=(0,u.en)(e),s={...i.query,f:"json",...r},a=(0,u.lA)(s,n);return(0,l.default)(i.path+"/toGeoCoordinateString",a).then((({data:e})=>e.strings))}(this.url,e,t)}trimExtend(e,t){return async function(e,t,n){const r=function(e){const{extendHow:t,polylines:n,trimExtendTo:r}=e.toJSON(),o={};return o.extendHow=k.toJSON(t),n&&n.length&&(o.polylines=JSON.stringify(n),o.sr=JSON.stringify(n[0].spatialReference)),r&&(o.trimExtendTo=JSON.stringify(r)),o}(t=$.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=t.sr,a=(0,u.lA)(i,n);return(0,l.default)(o.path+"/trimExtend",a).then((({data:e})=>(e.geometries||[]).map((({paths:e})=>new I.Z({spatialReference:s,paths:e})))))}(this.url,e,t)}union(e,t){return H(this.url,e,t)}};F.UNIT_METER=9001,F.UNIT_GERMAN_METER=9031,F.UNIT_FOOT=9002,F.UNIT_SURVEY_FOOT=9003,F.UNIT_CLARKE_FOOT=9005,F.UNIT_FATHOM=9014,F.UNIT_NAUTICAL_MILE=9030,F.UNIT_SURVEY_CHAIN=9033,F.UNIT_SURVEY_LINK=9034,F.UNIT_SURVEY_MILE=9035,F.UNIT_KILOMETER=9036,F.UNIT_CLARKE_YARD=9037,F.UNIT_CLARKE_CHAIN=9038,F.UNIT_CLARKE_LINK=9039,F.UNIT_SEARS_YARD=9040,F.UNIT_SEARS_FOOT=9041,F.UNIT_SEARS_CHAIN=9042,F.UNIT_SEARS_LINK=9043,F.UNIT_BENOIT_1895A_YARD=9050,F.UNIT_BENOIT_1895A_FOOT=9051,F.UNIT_BENOIT_1895A_CHAIN=9052,F.UNIT_BENOIT_1895A_LINK=9053,F.UNIT_BENOIT_1895B_YARD=9060,F.UNIT_BENOIT_1895B_FOOT=9061,F.UNIT_BENOIT_1895B_CHAIN=9062,F.UNIT_BENOIT_1895B_LINK=9063,F.UNIT_INDIAN_FOOT=9080,F.UNIT_INDIAN_1937_FOOT=9081,F.UNIT_INDIAN_1962_FOOT=9082,F.UNIT_INDIAN_1975_FOOT=9083,F.UNIT_INDIAN_YARD=9084,F.UNIT_INDIAN_1937_YARD=9085,F.UNIT_INDIAN_1962_YARD=9086,F.UNIT_INDIAN_1975_YARD=9087,F.UNIT_FOOT_1865=9070,F.UNIT_RADIAN=9101,F.UNIT_DEGREE=9102,F.UNIT_ARCMINUTE=9103,F.UNIT_ARCSECOND=9104,F.UNIT_GRAD=9105,F.UNIT_GON=9106,F.UNIT_MICRORADIAN=9109,F.UNIT_ARCMINUTE_CENTESIMAL=9112,F.UNIT_ARCSECOND_CENTESIMAL=9113,F.UNIT_MIL6400=9114,F.UNIT_BRITISH_1936_FOOT=9095,F.UNIT_GOLDCOAST_FOOT=9094,F.UNIT_INTERNATIONAL_CHAIN=109003,F.UNIT_INTERNATIONAL_LINK=109004,F.UNIT_INTERNATIONAL_YARD=109001,F.UNIT_STATUTE_MILE=9093,F.UNIT_SURVEY_YARD=109002,F.UNIT_50KILOMETER_LENGTH=109030,F.UNIT_150KILOMETER_LENGTH=109031,F.UNIT_DECIMETER=109005,F.UNIT_CENTIMETER=109006,F.UNIT_MILLIMETER=109007,F.UNIT_INTERNATIONAL_INCH=109008,F.UNIT_US_SURVEY_INCH=109009,F.UNIT_INTERNATIONAL_ROD=109010,F.UNIT_US_SURVEY_ROD=109011,F.UNIT_US_NAUTICAL_MILE=109012,F.UNIT_UK_NAUTICAL_MILE=109013,F.UNIT_SQUARE_INCHES="esriSquareInches",F.UNIT_SQUARE_FEET="esriSquareFeet",F.UNIT_SQUARE_YARDS="esriSquareYards",F.UNIT_ACRES="esriAcres",F.UNIT_SQUARE_MILES="esriSquareMiles",F.UNIT_SQUARE_MILLIMETERS="esriSquareMillimeters",F.UNIT_SQUARE_CENTIMETERS="esriSquareCentimeters",F.UNIT_SQUARE_DECIMETERS="esriSquareDecimeters",F.UNIT_SQUARE_METERS="esriSquareMeters",F.UNIT_ARES="esriAres",F.UNIT_HECTARES="esriHectares",F.UNIT_SQUARE_KILOMETERS="esriSquareKilometers",(0,r._)([(0,o.Cb)()],F.prototype,"url",void 0),F=(0,r._)([(0,s.j)("esri.tasks.GeometryService")],F);const Y=F},59633:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(43697),o=n(15923),i=n(17452),s=n(5600),l=(n(67676),n(80442),n(75215),n(52011));let u=class extends o.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,i.mN)(e):null}_encode(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){r[o]=[];for(let e=0;e<i.length;e++)r[o][e]=this._encode(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n&&n[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}};(0,r._)([(0,s.Cb)({readOnly:!0})],u.prototype,"parsedUrl",null),(0,r._)([(0,s.Cb)()],u.prototype,"requestOptions",void 0),(0,r._)([(0,s.Cb)({type:String})],u.prototype,"url",void 0),u=(0,r._)([(0,l.j)("esri.tasks.Task")],u);const a=u}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9164],{91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const i=o(e,t,(t=>{i.remove(),n.call(e,t)}));return{remove(){i.remove()}}}n.d(t,{vT:()=>r,on:()=>o,IH:()=>i})},95330:(e,t,n)=>{n.d(t,{e4:()=>v,$6:()=>u,Ue:()=>a,zE:()=>c,dD:()=>S,hh:()=>J,vr:()=>C,Ds:()=>A,as:()=>T,WW:()=>I,R8:()=>_,D_:()=>O,Hc:()=>m,y8:()=>w,fu:()=>d,$F:()=>g,d1:()=>R,DB:()=>U,r9:()=>y,k_:()=>f,H9:()=>h,Yn:()=>b,gx:()=>E,Hl:()=>N});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o,i=n(20102),s=n(91460),l=(n(92604),n(70586));function u(e){return Promise.all(e)}function a(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function c(e="Aborted"){return new i.Z("AbortError",e)}function f(e,t="Aborted"){if(m(e))throw c(t)}function p(e){return(0,l.pC)(e)?"aborted"in e?e:e.signal:e}function m(e){const t=p(e);return(0,l.pC)(t)&&t.aborted}function y(e){if(O(e))throw e}function h(e){if(!O(e))throw e}function d(e,t){const n=p(e);if(!(0,l.Wi)(n)){if(!n.aborted)return(0,s.IH)(n,"abort",(()=>t()));t()}}function g(e,t){const n=p(e);if(!(0,l.Wi)(n))return f(n),(0,s.IH)(n,"abort",(()=>t(c())))}function N(e,t){const n=p(t);return(0,l.Wi)(n)?e:new Promise(((n,r)=>{let o=d(t,(()=>r(c())));const i=()=>o=(0,l.hw)(o);e.then(i,i),e.then(n,r)}))}function O(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!O(e))throw e}))}function S(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function T(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return T(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return a((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function I(e){return T(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function R(e){return Promise.reject(e)}function U(e){return Promise.resolve(e)}function v(e,t,n){const r=new AbortController;return d(n,(()=>r.abort())),new Promise(((n,o)=>{let i=setTimeout((()=>{i=0,n(t)}),e);d(r,(()=>{i&&(clearTimeout(i),o(c()))}))}))}function w(e){return e&&"function"==typeof e.then}function E(e){return w(e)?e:Promise.resolve(e)}function A(e,t=-1){let n,r,o,i,s=null;const u=(...a)=>{if(n){r=a,i&&i.reject(c()),i=S();const e=(0,l.j0)(i.promise);if(s){const e=s;s=null,e.abort()}return e}if(o=i||S(),i=null,t>0){const r=new AbortController;n=E(e(...a,r.signal));const o=n;v(t).then((()=>{n===o&&(i?r.abort():s=r)}))}else n=1,n=E(e(...a));const f=()=>{const e=r;r=o=n=s=null,null!=e&&u(...e)},p=n,m=o;return p.then(f,f),p.then(m.resolve,m.reject),(0,l.j0)(m.promise)};return u}function J(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}function C(e,t){let n,r=new AbortController;const o=e(r.signal);let i={promise:o,finished:!1,abort:()=>{r&&(r.abort(),r=null)}};const s=()=>{i&&(i.finished=!0,i=null),(0,l.pC)(n)&&(n.remove(),n=null),r=null};return o.then(s,s),n=d(t,(()=>{(0,l.pC)(i)&&i.abort()})),i}function b(e){return Promise.resolve().then((()=>{f(e)}))}},17452:(e,t,n)=>{n.d(t,{R9:()=>N,qg:()=>A,tD:()=>j,ZN:()=>pe,fl:()=>me,Ie:()=>ae,sJ:()=>X,AH:()=>W,io:()=>V,L:()=>I,TI:()=>T,vt:()=>le,oh:()=>D,P$:()=>F,Ml:()=>ye,ed:()=>x,b7:()=>E,D6:()=>G,tm:()=>q,YP:()=>Y,jc:()=>B,HK:()=>K,$U:()=>ne,oC:()=>ee,kl:()=>M,v_:()=>Z,hF:()=>$,_l:()=>z,PF:()=>k,Fv:()=>H,B7:()=>w,u0:()=>U,Yd:()=>se,Hu:()=>fe,Qj:()=>ue,hO:()=>re,mN:()=>R});var r=n(68773),o=n(20102),i=n(92604),s=n(70586);const l=i.Z.getLogger("esri.core.urlUtils"),u=r.Z.request,a="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,p=/^\s*https:/i,m=/^\s*file:/i,y=/:\d+$/,h=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,d=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class N{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,s.j0)(this.uri.match(d));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,s.j0)(this.authority.match(g)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const O={};let _=new N(r.Z.applicationUrl);let S=function(){const e=(0,s.j0)(_.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${_.scheme}://${_.host}${null!=_.port?`:${_.port}`:""}${t}`}();const T=()=>_,I=()=>S;function R(e){const t={path:null,query:null},n=new N(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=U(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function U(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let i=n[r];"string"==typeof i&&(i=n[r]=[i]),Array.isArray(i)?i.push(o):n[r]=o}return n}function v(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function w(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",i=t&&t[n];return i?o+encodeURIComponent(i(r)):Array.isArray(r)?r.map((e=>v(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):v(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function E(e=!1){let t,n=u.proxyUrl;if("string"==typeof e){t=ne(e);const r=x(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw l.warn(a),new o.Z("urlutils:proxy-not-set",a);return t&&oe()&&(n=re(n)),R(n)}function A(e){const t=x(e);let n,r;if(t){const e=C(t.proxyUrl);n=e.path,r=e.query?U(e.query):null}if(n){const t=R(e);e=n+"?"+t.path;const o=w({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const J={path:"",query:""};function C(e){const t=e.indexOf("?");return-1!==t?(J.path=e.slice(0,t),J.query=e.slice(t+1)):(J.path=e,J.query=null),J}function b(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=C(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:b(e.urlPrefix)},n=u.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function x(e){const t=u.proxyRules,n=b(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function q(e,t){return e=L(e),t=L(t),ie(e)===ie(t)}function L(e){const t=(e=H(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function D(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=u.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function G(e,t,n=!1){const r=ce(e),o=ce(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function M(e){if("string"==typeof e){if(!Y(e))return!0;e=ce(e)}if(G(e,_))return!0;const t=u.trustedServers||[];for(let n=0;n<t.length;n++){const r=P(t[n]);for(let t=0;t<r.length;t++)if(G(e,r[t]))return!0}return!1}function P(e){return O[e]||(te(e)||ee(e)?O[e]=[new N($(e))]:O[e]=[new N(`http://${e}`),new N(`https://${e}`)]),O[e]}function $(e,t=S,n){return ee(e)?n&&n.preserveProtocolRelative?e:"http"===_.scheme&&_.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,s.j0)(Z("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function k(e,t=S,n){if(!Y(e))return e;const r=H(e),o=r.toLowerCase(),i=H(t).toLowerCase().replace(/\/+$/,""),s=n?H(n).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==i.indexOf(s))return e;const l=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let u=l(o,"/",o.indexOf("//")+2),a=-1;for(;o.slice(0,u+1)===i.slice(0,u)+"/"&&(a=u+1,u!==o.length);)u=l(o,"/",u+1);if(-1===a)return e;if(s&&a<s.length)return e;e=r.slice(a);const c=i.slice(a-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function H(e){return function(e){const t=u.httpsDomains;if(!function(e){return f.test(e)||"http"===_.scheme&&ee(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),y.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===_.scheme&&r===_.authority&&!h.test(e)||(oe()&&r===_.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||oe()&&!x(e))&&(e=re(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=C(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=$(e=e.trim()))))}function Z(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const n=[];if(Y(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return m.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function F(e,t=!1){if(B(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&ee(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ie(e,!0)),e}function Y(e){return ee(e)||te(e)}function B(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return"data:"===e.slice(0,5)}function W(e){const t=X(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const Q=/^data:(.*?)(;base64)?,(.*)$/;function X(e){const t=e.match(Q);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function V(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function ne(e){return p.test(e)||"https"===_.scheme&&ee(e)}function re(e){return ee(e)?`https:${e}`:e.replace(f,"https:")}function oe(){return"https"===_.scheme}function ie(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function se(e){let t=0;if(Y(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function le(e,t){if(!e)return"";const n=R(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function ue(e){return e.replace(/\/+$/,"")}function ae(e,t,n){if(!(t&&n&&e&&Y(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),i=e.indexOf(":",r+2),s=Math.min(o<0?e.length:o,i<0?e.length:i);return e.slice(r+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(s)}`}function ce(e){return"string"==typeof e?new N($(e)):(e.scheme||(e.scheme=_.scheme),e)}function fe(e,t){const n=R(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function pe(e,t,n){const r=R(e),o=r.query||{};return o[t]=String(n),`${r.path}?${w(o)}`}function me(e,t){const n=R(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=w(r);return o?`${n.path}?${o}`:n.path}function ye(e){if((0,s.Wi)(e))return null;const t=e.match(he);return t?t[1]:null}const he=/.*?\.([^\/]*)$/},66577:(e,t,n)=>{n.d(t,{qM:()=>c});var r=n(75215),o=n(6570),i=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);n(82971),n(86973),n(33955);const c={base:i.Z,key:"type",typeMap:{extent:o.Z,multipoint:s.Z,point:l.Z,polyline:a.Z,polygon:u.Z}};(0,r.N7)(c)},33955:(e,t,n)=>{n.d(t,{im:()=>h,q9:()=>N,Ji:()=>d,YX:()=>c,aW:()=>f,wp:()=>p,oU:()=>y,l9:()=>m});var r=n(70586),o=n(6570),i=n(9361),s=n(65091),l=n(13473),u=n(17332),a=n(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function f(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths}function y(e){return void 0!==e.rings}function h(e){return(0,r.Wi)(e)?null:e instanceof i.Z?e:p(e)?l.Z.fromJSON(e):m(e)?a.Z.fromJSON(e):y(e)?u.Z.fromJSON(e):f(e)?s.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):null}function d(e){return e?p(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":y(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":f(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:l.Z,esriGeometryPolyline:a.Z,esriGeometryPolygon:u.Z,esriGeometryEnvelope:o.Z,esriGeometryMultipoint:s.Z};function N(e){return e&&g[e]||null}},91040:(e,t,n)=>{n.d(t,{yZ:()=>o});var r=n(67900);function o(e,t){const n=t||e.extent,o=e.width,i=(0,r.c9)(n&&n.spatialReference);return n&&o?n.width/o*i*r.hd*96:0}},86973:(e,t,n)=>{n.d(t,{Mk:()=>o,P$:()=>i});var r=n(35454);const o=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},11282:(e,t,n)=>{n.d(t,{lA:()=>o,cv:()=>s,en:()=>i});var r=n(17452);function o(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,r.mN)(e):e}function s(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){r[o]=[];for(let e=0;e<i.length;e++)r[o][e]=s(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n&&n[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}n(91040)},85313:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Y});var r=n(43697),o=n(5600),i=(n(67676),n(80442),n(75215)),s=n(52011),l=n(3172),u=n(11282);n(66577);var a=n(33955);function c(e){return{geometryType:(0,a.Ji)(e[0]),geometries:e.map((e=>e.toJSON()))}}function f(e,t,n){const r=(0,a.q9)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=n,t}))}var p=n(17332);async function m(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),polygons:JSON.stringify(c(t).geometries),polylines:JSON.stringify(c(n).geometries)},a=(0,u.lA)(s,r);return(0,l.default)(i.path+"/autoComplete",a).then((({data:e})=>(e.geometries||[]).map((({rings:e})=>new p.Z({spatialReference:o,rings:e})))))}async function y(e,t,n){const r=t[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",sr:JSON.stringify(r.toJSON()),geometries:JSON.stringify(c(t))},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/convexHull",s).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:r})))}async function h(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e);let s={query:{...i.query,f:"json",sr:JSON.stringify(o.toJSON()),geometries:JSON.stringify(c(t)),geometry:JSON.stringify({geometryType:(0,a.Ji)(n),geometry:n.toJSON()})}};return r&&(s={...r,...s}),(0,l.default)(i.path+"/difference",s).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}var d=n(35454);const g=new d.Xn({MGRS:"mgrs",USNG:"usng",UTM:"utm",GeoRef:"geo-ref",GARS:"gars",DMS:"dms",DDM:"ddm",DD:"dd"}),N=new d.Xn({109006:"centimeters",9102:"decimal-degrees",109005:"decimeters",9002:"feet",109009:"inches",9036:"kilometers",9001:"meters",9035:"miles",109007:"millimeters",109012:"nautical-miles",9096:"yards"});var O=n(96674);let _=class extends O.wq{constructor(e){super(e),this.deviationUnit=null,this.geometries=null,this.maxDeviation=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],_.prototype,"deviationUnit",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries=e.map((e=>e.toJSON()))}}}})],_.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],_.prototype,"maxDeviation",void 0),_=(0,r._)([(0,s.j)("esri.rest.support.GeneralizeParameters")],_),_.from=(0,i.se)(_);const S=_;async function T(e,t,n,r){const o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),geometries:JSON.stringify(c(t)),geometry:JSON.stringify({geometryType:(0,a.Ji)(n),geometry:n.toJSON()})},f=(0,u.lA)(s,r);return(0,l.default)(i.path+"/intersect",f).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}const I=new d.Xn({preserveShape:"preserve-shape"});function R(e){const{polylines:t,lengthUnit:n,geodesic:r,calculationType:o}=e.toJSON(),i={};i.polylines=JSON.stringify(t);const s=e.polylines[0].spatialReference;return i.sr=s.wkid?s.wkid:JSON.stringify(s.toJSON()),n&&(i.lengthUnit=n),r&&(i.geodesic=r),o&&(i.calculationType=I.toJSON(o)),i}var U=n(58901);let v=class extends O.wq{constructor(e){super(e),this.calculationType=null,this.geodesic=null,this.lengthUnit=null,this.polylines=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],v.prototype,"calculationType",void 0),(0,r._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],v.prototype,"geodesic",void 0),(0,r._)([(0,o.Cb)({json:{write:!0}})],v.prototype,"lengthUnit",void 0),(0,r._)([(0,o.Cb)({type:[U.Z],json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.polylines=e.map((e=>e.toJSON()))}}}})],v.prototype,"polylines",void 0),v=(0,r._)([(0,s.j)("esri.rest.support.LengthsParameters")],v),v.from=(0,i.se)(v);const w=v,E=new d.Xn({esriGeometryOffsetBevelled:"bevelled",esriGeometryOffsetMitered:"mitered",esriGeometryOffsetRounded:"rounded"}),A=new d.Xn({9001:"meters",9002:"feet",9036:"kilometers",9093:"miles",109012:"nautical-miles",109001:"yards"});let J=class extends O.wq{constructor(e){super(e),this.bevelRatio=null,this.geometries=null,this.offsetDistance=null,this.offsetHow=null,this.offsetUnit=null}};(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],J.prototype,"bevelRatio",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries=e.map((e=>e.toJSON()))}}}})],J.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],J.prototype,"offsetDistance",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],J.prototype,"offsetHow",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],J.prototype,"offsetUnit",void 0),J=(0,r._)([(0,s.j)("esri.rest.support.OffsetParameters")],J),J.from=(0,i.se)(J);const C=J;let b=class extends O.wq{constructor(e){super(e),this.geometries=null,this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((function(e){return e.toJSON()})),t=this.geometries[0],n={};return n.outSR=this.outSpatialReference.wkid||JSON.stringify(this.outSpatialReference.toJSON()),n.inSR=t.spatialReference.wkid||JSON.stringify(t.spatialReference.toJSON()),n.geometries=JSON.stringify({geometryType:(0,a.Ji)(t),geometries:e}),this.transformation&&(n.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(n.transformForward=this.transformForward),n}};(0,r._)([(0,o.Cb)()],b.prototype,"geometries",void 0),(0,r._)([(0,o.Cb)({json:{read:{source:"outSR"}}})],b.prototype,"outSpatialReference",void 0),(0,r._)([(0,o.Cb)()],b.prototype,"transformation",void 0),(0,r._)([(0,o.Cb)()],b.prototype,"transformForward",void 0),b=(0,r._)([(0,s.j)("esri.rest.support.ProjectParameters")],b);const j=b,x=(0,i.se)(j),q=new d.Xn({esriGeometryRelationCross:"cross",esriGeometryRelationDisjoint:"disjoint",esriGeometryRelationIn:"in",esriGeometryRelationInteriorIntersection:"interior-intersection",esriGeometryRelationIntersection:"intersection",esriGeometryRelationLineCoincidence:"line-coincidence",esriGeometryRelationLineTouch:"line-touch",esriGeometryRelationOverlap:"overlap",esriGeometryRelationPointTouch:"point-touch",esriGeometryRelationTouch:"touch",esriGeometryRelationWithin:"within",esriGeometryRelationRelation:"relation"});let L=class extends O.wq{constructor(e){super(e),this.geometries1=null,this.geometries2=null,this.relation=null,this.relationParameter=null}};(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries1=e.map((e=>e.toJSON()))}}}})],L.prototype,"geometries1",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.geometries2=e.map((e=>e.toJSON()))}}}})],L.prototype,"geometries2",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],L.prototype,"relation",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],L.prototype,"relationParameter",void 0),L=(0,r._)([(0,s.j)("esri.rest.support.RelationParameters")],L),L.from=(0,i.se)(L);const D=L;var G=n(17452);async function M(e,t,n){const r="string"==typeof e?(0,G.mN)(e):e,o=t[0].spatialReference,i=(0,a.Ji)(t[0]),s={...n,query:{...r.query,f:"json",sr:o.wkid?o.wkid:JSON.stringify(o),geometries:JSON.stringify(c(t))}},{data:u}=await(0,l.default)(r.path+"/simplify",s);return f(u.geometries,i,o)}const P=new d.Xn({0:"default-curve-extension",1:"relocate-ends",2:"keep-end-attributes",4:"no-end-attributes",8:"no-extend-at-from",16:"no-extend-at-to"});let $=class extends O.wq{constructor(e){super(e),this.extendHow="default-curve-extension",this.polylines=null,this.trimExtendTo=null}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],$.prototype,"extendHow",void 0),(0,r._)([(0,o.Cb)({type:[U.Z],json:{read:{reader:e=>e?e.map((e=>(0,a.im)(e))):null},write:{writer:(e,t)=>{t.polylines=e.map((e=>e.toJSON()))}}}})],$.prototype,"polylines",void 0),(0,r._)([(0,o.Cb)({json:{read:{reader:e=>e?(0,a.im)(e):null},write:{writer:(e,t)=>{t.trimExtendTo=e.toJSON()}}}})],$.prototype,"trimExtendTo",void 0),$=(0,r._)([(0,s.j)("esri.rest.support.TrimExtendParameters")],$),$.from=(0,i.se)($);const k=$;async function H(e,t,n){const r=t[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",sr:JSON.stringify(r.toJSON()),geometries:JSON.stringify(c(t))},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/union",s).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:r})))}var Z=n(59633);let F=class extends Z.Z{constructor(e){super(e),this.url=null}areasAndLengths(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=(0,u.lA)(o,n);return(0,l.default)(r.path+"/areasAndLengths",i).then((e=>e.data))}(this.url,e,t)}autoComplete(e,t,n){return m(this.url,e,t,n)}buffer(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=t.outSpatialReference||t.geometries[0].spatialReference,s=(0,u.lA)(o,n);return(0,l.default)(r.path+"/buffer",s).then((e=>(e.data.geometries||[]).map((({rings:e})=>new p.Z({spatialReference:i,rings:e})))))}(this.url,e,t)}convexHull(e,t){return y(this.url,e,t)}cut(e,t,n){return async function(e,t,n,r){const o=(0,u.en)(e),i=t[0].spatialReference,s={...r,query:{...o.query,f:"json",sr:JSON.stringify(i),target:JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},c=await(0,l.default)(o.path+"/cut",s),{cutIndexes:f,geometries:p=[]}=c.data;return{cutIndexes:f,geometries:p.map((e=>{const t=(0,a.im)(e);return t.spatialReference=i,t}))}}(this.url,e,t,n)}densify(e,t){return async function(e,t,n){const r=t.geometries[0].spatialReference,o=(0,u.en)(e),i={...o.query,f:"json",...t.toJSON()},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/densify",s).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:r})))))}(this.url,e,t)}difference(e,t,n){return h(this.url,e,t,n)}distance(e,t){return async function(e,t,n){const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=(0,u.lA)(o,n);return(0,l.default)(r.path+"/distance",i).then((({data:e})=>e&&e.distance))}(this.url,e,t)}fromGeoCoordinateString(e,t){return async function(e,t,n){const r={};null!=t.sr&&"object"==typeof t.sr?r.sr=t.sr.wkid||JSON.stringify(t.sr):r.sr=t.sr,r.strings=JSON.stringify(t.strings);const o=t.conversionType||"mgrs";r.conversionType=g.toJSON(o),r.conversionMode=t.conversionMode;const i=(0,u.en)(e),s={...i.query,f:"json",...r},a=(0,u.lA)(s,n);return(0,l.default)(i.path+"/fromGeoCoordinateString",a).then((({data:e})=>e.coordinates))}(this.url,e,t)}generalize(e,t){return async function(e,t,n){const r=(t=S.from(t)).toJSON(),o=function(e){const{geometries:t,deviationUnit:n,maxDeviation:r}=e.toJSON(),o={maxDeviation:r};return t&&t.length&&(o.geometries=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),o.sr=JSON.stringify(t[0].spatialReference)),N.write(n,o,"deviationUnit"),o}(t),i=(0,u.en)(e),s={...i.query,f:"json",...o},c=r.geometries[0].spatialReference,f=(0,u.lA)(s,n);return(0,l.default)(i.path+"/generalize",f).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:c})))))}(this.url,e,t)}intersect(e,t,n){return T(this.url,e,t,n)}labelPoints(e,t){return function(e,t,n){const r=t.map((e=>e.toJSON())),o=t[0].spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:o.wkid?o.wkid:JSON.stringify(o.toJSON()),polygons:JSON.stringify(r)},c=(0,u.lA)(s,n);return(0,l.default)(i.path+"/labelPoints",c).then((({data:e})=>(e.labelPoints||[]).map((e=>(0,a.im)(e).set({spatialReference:o})))))}(this.url,e,t)}lengths(e,t){return async function(e,t,n){const r=R(t=w.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/lengths",s).then((({data:e})=>e))}(this.url,e,t)}offset(e,t){return async function(e,t,n){const r=function(e){const{geometries:t,bevelRatio:n,offsetDistance:r,offsetHow:o,offsetUnit:i}=e.toJSON(),s={bevelRatio:n,offsetDistance:r};return t&&t.length&&(s.geometries=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t}),s.sr=JSON.stringify(t[0].spatialReference)),o&&(s.offsetHow=E.toJSON(o)),i&&(s.offsetUnit=A.toJSON(i)),s}(t=C.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=t.geometries[0].spatialReference,c=(0,u.lA)(i,n);return(0,l.default)(o.path+"/offset",c).then((({data:e})=>(e.geometries||[]).map((e=>(0,a.im)(e).set({spatialReference:s})))))}(this.url,e,t)}project(e,t){return async function(e,t,n){t=x(t);const r=(0,u.en)(e),o={...r.query,f:"json",...t.toJSON()},i=t.outSpatialReference,s=(0,a.Ji)(t.geometries[0]),c=(0,u.lA)(o,n);return(0,l.default)(r.path+"/project",c).then((({data:{geometries:e}})=>f(e,s,i)))}(this.url,e,t)}relation(e,t){return async function(e,t,n){const r=function(e){const{geometries1:t,geometries2:n,relation:r,relationParameter:o}=e.toJSON(),i={};if(t&&t.length){i.geometries1=JSON.stringify({geometryType:(0,a.Ji)(t[0]),geometries:t});const e=t[0].spatialReference;i.sr=e.wkid?e.wkid:JSON.stringify(e)}return n&&n.length>0&&(i.geometries2=JSON.stringify({geometryType:(0,a.Ji)(n[0]),geometries:n})),r&&(i.relation=q.toJSON(r)),o&&(i.relationParam=o),i}(t=D.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=(0,u.lA)(i,n);return(0,l.default)(o.path+"/relation",s).then((({data:e})=>e.relations))}(this.url,e,t)}reshape(e,t,n){return async function(e,t,n,r){const o=t.spatialReference,i=(0,u.en)(e),s={...i.query,f:"json",sr:JSON.stringify(o.toJSON()),target:JSON.stringify({geometryType:(0,a.Ji)(t),geometry:t.toJSON()}),reshaper:JSON.stringify(n.toJSON())},c=(0,u.lA)(s,r);return(0,l.default)(i.path+"/reshape",c).then((({data:e})=>(0,a.im)(e.geometry).set({spatialReference:o})))}(this.url,e,t,n)}simplify(e,t){return M(this.url,e,t)}toGeoCoordinateString(e,t){return async function(e,t,n){const r={};null!=t.sr&&"object"==typeof t.sr?r.sr=t.sr.wkid||JSON.stringify(t.sr):r.sr=t.sr,r.coordinates=JSON.stringify(t.coordinates);const o=t.conversionType||"mgrs";r.conversionType=g.toJSON(o),r.conversionMode=t.conversionMode,r.numOfDigits=t.numOfDigits,r.rounding=t.rounding,r.addSpaces=t.addSpaces;const i=(0,u.en)(e),s={...i.query,f:"json",...r},a=(0,u.lA)(s,n);return(0,l.default)(i.path+"/toGeoCoordinateString",a).then((({data:e})=>e.strings))}(this.url,e,t)}trimExtend(e,t){return async function(e,t,n){const r=function(e){const{extendHow:t,polylines:n,trimExtendTo:r}=e.toJSON(),o={};return o.extendHow=P.toJSON(t),n&&n.length&&(o.polylines=JSON.stringify(n),o.sr=JSON.stringify(n[0].spatialReference)),r&&(o.trimExtendTo=JSON.stringify(r)),o}(t=k.from(t)),o=(0,u.en)(e),i={...o.query,f:"json",...r},s=t.sr,a=(0,u.lA)(i,n);return(0,l.default)(o.path+"/trimExtend",a).then((({data:e})=>(e.geometries||[]).map((({paths:e})=>new U.Z({spatialReference:s,paths:e})))))}(this.url,e,t)}union(e,t){return H(this.url,e,t)}};F.UNIT_METER=9001,F.UNIT_GERMAN_METER=9031,F.UNIT_FOOT=9002,F.UNIT_SURVEY_FOOT=9003,F.UNIT_CLARKE_FOOT=9005,F.UNIT_FATHOM=9014,F.UNIT_NAUTICAL_MILE=9030,F.UNIT_SURVEY_CHAIN=9033,F.UNIT_SURVEY_LINK=9034,F.UNIT_SURVEY_MILE=9035,F.UNIT_KILOMETER=9036,F.UNIT_CLARKE_YARD=9037,F.UNIT_CLARKE_CHAIN=9038,F.UNIT_CLARKE_LINK=9039,F.UNIT_SEARS_YARD=9040,F.UNIT_SEARS_FOOT=9041,F.UNIT_SEARS_CHAIN=9042,F.UNIT_SEARS_LINK=9043,F.UNIT_BENOIT_1895A_YARD=9050,F.UNIT_BENOIT_1895A_FOOT=9051,F.UNIT_BENOIT_1895A_CHAIN=9052,F.UNIT_BENOIT_1895A_LINK=9053,F.UNIT_BENOIT_1895B_YARD=9060,F.UNIT_BENOIT_1895B_FOOT=9061,F.UNIT_BENOIT_1895B_CHAIN=9062,F.UNIT_BENOIT_1895B_LINK=9063,F.UNIT_INDIAN_FOOT=9080,F.UNIT_INDIAN_1937_FOOT=9081,F.UNIT_INDIAN_1962_FOOT=9082,F.UNIT_INDIAN_1975_FOOT=9083,F.UNIT_INDIAN_YARD=9084,F.UNIT_INDIAN_1937_YARD=9085,F.UNIT_INDIAN_1962_YARD=9086,F.UNIT_INDIAN_1975_YARD=9087,F.UNIT_FOOT_1865=9070,F.UNIT_RADIAN=9101,F.UNIT_DEGREE=9102,F.UNIT_ARCMINUTE=9103,F.UNIT_ARCSECOND=9104,F.UNIT_GRAD=9105,F.UNIT_GON=9106,F.UNIT_MICRORADIAN=9109,F.UNIT_ARCMINUTE_CENTESIMAL=9112,F.UNIT_ARCSECOND_CENTESIMAL=9113,F.UNIT_MIL6400=9114,F.UNIT_BRITISH_1936_FOOT=9095,F.UNIT_GOLDCOAST_FOOT=9094,F.UNIT_INTERNATIONAL_CHAIN=109003,F.UNIT_INTERNATIONAL_LINK=109004,F.UNIT_INTERNATIONAL_YARD=109001,F.UNIT_STATUTE_MILE=9093,F.UNIT_SURVEY_YARD=109002,F.UNIT_50KILOMETER_LENGTH=109030,F.UNIT_150KILOMETER_LENGTH=109031,F.UNIT_DECIMETER=109005,F.UNIT_CENTIMETER=109006,F.UNIT_MILLIMETER=109007,F.UNIT_INTERNATIONAL_INCH=109008,F.UNIT_US_SURVEY_INCH=109009,F.UNIT_INTERNATIONAL_ROD=109010,F.UNIT_US_SURVEY_ROD=109011,F.UNIT_US_NAUTICAL_MILE=109012,F.UNIT_UK_NAUTICAL_MILE=109013,F.UNIT_SQUARE_INCHES="esriSquareInches",F.UNIT_SQUARE_FEET="esriSquareFeet",F.UNIT_SQUARE_YARDS="esriSquareYards",F.UNIT_ACRES="esriAcres",F.UNIT_SQUARE_MILES="esriSquareMiles",F.UNIT_SQUARE_MILLIMETERS="esriSquareMillimeters",F.UNIT_SQUARE_CENTIMETERS="esriSquareCentimeters",F.UNIT_SQUARE_DECIMETERS="esriSquareDecimeters",F.UNIT_SQUARE_METERS="esriSquareMeters",F.UNIT_ARES="esriAres",F.UNIT_HECTARES="esriHectares",F.UNIT_SQUARE_KILOMETERS="esriSquareKilometers",(0,r._)([(0,o.Cb)()],F.prototype,"url",void 0),F=(0,r._)([(0,s.j)("esri.tasks.GeometryService")],F);const Y=F},59633:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(43697),o=n(15923),i=n(17452),s=n(5600),l=(n(67676),n(80442),n(75215),n(52011));let u=class extends o.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,i.mN)(e):null}_encode(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){r[o]=[];for(let e=0;e<i.length;e++)r[o][e]=this._encode(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n&&n[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}};(0,r._)([(0,s.Cb)({readOnly:!0})],u.prototype,"parsedUrl",null),(0,r._)([(0,s.Cb)()],u.prototype,"requestOptions",void 0),(0,r._)([(0,s.Cb)({type:String})],u.prototype,"url",void 0),u=(0,r._)([(0,l.j)("esri.tasks.Task")],u);const a=u}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7277],{7277:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>Y});var i,n=s(17452),r=s(95330),E=s(13473);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(i||(i={}));class _{constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this.length=_.HEADER_SIZE,this.length+=_.CHUNK_HEADER_SIZE;const s=this._textToArrayBuffer(e);if(this.length+=this._alignTo(s.byteLength,4),t&&(this.length+=_.CHUNK_HEADER_SIZE,this.length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this.length),this.outView=new DataView(this.buffer),this._writeHeader();const n=this._writeChunk(s,12,i.JSON,32);t&&this._writeChunk(t,n,i.BIN)}_writeHeader(){this.outView.setUint32(0,_.MAGIC,!0),this.outView.setUint32(4,_.VERSION,!0),this.outView.setUint32(8,this.length,!0)}_writeChunk(e,t,s,i=0){const n=this._alignTo(e.byteLength,4);for(this.outView.setUint32(t,n,!0),this.outView.setUint32(t+=4,s,!0),this._writeArrayBuffer(this.outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)i&&this.outView.setUint8(t,i),t++;return t}_writeArrayBuffer(e,t,s,i,n){new Uint8Array(e,s,n).set(new Uint8Array(t,i,n),0)}_textToArrayBuffer(e){return(new TextEncoder).encode(e).buffer}_alignTo(e,t){return t*Math.ceil(e/t)}}_.HEADER_SIZE=12,_.CHUNK_HEADER_SIZE=8,_.MAGIC=1179937895,_.VERSION=2;var a,T,R,o,A,N,c,h=s(30175),f=s(70586),u=s(51305),S=s(94961),C=s(17896),I=s(65617),O=s(60746),l=s(66459);!function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(a||(a={})),function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(T||(T={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(R||(R={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(o||(o={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(N||(N={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(c||(c={}));var L=s(35371);class d{constructor(e,t,s,i,n){this.buffer=e,this.componentType=s,this.dataType=i,this.data=[],this.isFinalized=!1,this.accessorIndex=-1,this.accessorAttribute=null,this.accessorMin=null,this.accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this.bufferView={buffer:e.index,byteLength:-1,target:n};const r=this._getElementSize();r>=4&&n!==R.ELEMENT_ARRAY_BUFFER&&(this.bufferView.byteStride=r),t.bufferViews.push(this.bufferView),this.numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this.data.length;if(this.data.push(e),this.accessorIndex>=0){const s=t%this.numComponentsForDataType,i=this.accessorMin[s];this.accessorMin[s]="number"!=typeof i?e:Math.min(i,e);const n=this.accessorMax[s];this.accessorMax[s]="number"!=typeof n?e:Math.max(n,e)}}get dataSize(){return this.data.length*this._sizeComponentType()}get byteSize(){return e=this.dataSize,4*Math.ceil(e/4);var e}getByteOffset(){if(!this.isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this.buffer.getByteOffset(this)}get byteOffset(){if(!this.isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this.buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this.componentType){case L.g.BYTE:return new Int8Array(e,t);case L.g.FLOAT:return new Float32Array(e,t);case L.g.SHORT:return new Int16Array(e,t);case L.g.UNSIGNED_BYTE:return new Uint8Array(e,t);case L.g.UNSIGNED_INT:return new Uint32Array(e,t);case L.g.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this.data)}writeAsync(e){if(this.asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this.asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this.data.push(t[e]);delete this.asyncWritePromise})),this.asyncWritePromise}startAccessor(e){if(this.accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this.accessorIndex=this.data.length,this.accessorAttribute=e;const t=this.numComponentsForDataType;this.accessorMin=new Array(t),this.accessorMax=new Array(t)}endAccessor(){if(this.accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this.numComponentsForDataType,s=(this.data.length-this.accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this.accessorMin.length;++e)"number"!=typeof this.accessorMin[e]&&(this.accessorMin[e]=0),"number"!=typeof this.accessorMax[e]&&(this.accessorMax[e]=0);const i={byteOffset:e*(this.accessorIndex/t),componentType:this.componentType,count:s,type:this.dataType,min:this.accessorMin,max:this.accessorMax,name:this.accessorAttribute};switch(this.accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this.componentType){case L.g.UNSIGNED_BYTE:case L.g.UNSIGNED_SHORT:i.normalized=!0}}return this.accessorIndex=-1,this.accessorAttribute=null,this.accessorMin=null,this.accessorMax=null,i}get finalized(){return this.finalizedPromise?this.finalizedPromise:this.isFinalized?this.finalizedPromise=Promise.resolve():this.finalizedPromise=new Promise((e=>this.finalizedPromiseResolve=e))}finalize(){const e=this.bufferView;return new Promise((e=>{const t=this.buffer.getViewFinalizePromises(this);this.asyncWritePromise&&t.push(this.asyncWritePromise),e((0,r.as)(t))})).then((()=>{this.isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this.finalizedPromiseResolve&&this.finalizedPromiseResolve()}))}_getElementSize(){return this._sizeComponentType()*this.numComponentsForDataType}_sizeComponentType(){switch(this.componentType){case L.g.BYTE:case L.g.UNSIGNED_BYTE:return 1;case L.g.SHORT:case L.g.UNSIGNED_SHORT:return 2;case L.g.UNSIGNED_INT:case L.g.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this.dataType){case o.SCALAR:return 1;case o.VEC2:return 2;case o.VEC3:return 3;case o.VEC4:case o.MAT2:return 4;case o.MAT3:return 9;case o.MAT4:return 16}}}class M{constructor(e){this.gltf=e,this.bufferViews=[],this.isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this.buffer=t}addBufferView(e,t,s){if(this.finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const i=new d(this,this.gltf,e,t,s);return this.bufferViews.push(i),i}getByteOffset(e){let t=0;for(const s of this.bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this.bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this.isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this.bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this.finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this.finalizePromise=new Promise((e=>{e((0,r.as)(this.getViewFinalizePromises()))})).then((()=>{this.isFinalized=!0;const e=this.getArrayBuffer();this.buffer.byteLength=e.byteLength,this.buffer.uri=e})),this.gltf.extras.promises.push(this.finalizePromise),this.finalizePromise}_getTotalSize(){let e=0;for(const t of this.bufferViews)e+=t.byteSize;return e}}function D(e,t){(0,f.Wi)(t.normal)&&(t.normal=new Float32Array(t.position.length));const s=e.faces,{position:i,normal:n}=t,r=s.length/3;for(let e=0;e<r;++e){const t=3*s[3*e+0],r=3*s[3*e+1],E=3*s[3*e+2],_=(0,C.s)(B,i[t+0],i[t+1],i[t+2]),a=(0,C.s)(P,i[r+0],i[r+1],i[r+2]),T=(0,C.s)(g,i[E+0],i[E+1],i[E+2]),R=(0,C.f)(a,a,_),o=(0,C.f)(T,T,_),A=(0,C.c)(R,R,o);n[t+0]+=A[0],n[t+1]+=A[1],n[t+2]+=A[2],n[r+0]+=A[0],n[r+1]+=A[1],n[r+2]+=A[2],n[E+0]+=A[0],n[E+1]+=A[1],n[E+2]+=A[2]}for(let e=0;e<n.length;e+=3)(0,C.s)(U,n[e],n[e+1],n[e+2]),(0,C.n)(U,U),n[e+0]=U[0],n[e+1]=U[1],n[e+2]=U[2]}s(66577);const B=(0,I.c)(),P=(0,I.c)(),g=(0,I.c)(),U=(0,I.c)();s(80442);var p=s(20102);async function G(e){const t=m(e);if((0,f.Wi)(t))throw new p.Z("imageToArrayBuffer","Unsupported image type");const s=await async function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,n.HK)(t)){const{mediaType:e}=(0,n.sJ)(t);return"image/jpeg"===e?e:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),i=await new Promise((e=>t.toBlob(e,s)));if(!i)throw new p.Z("imageToArrayBuffer","Failed to encode image");return{data:await i.arrayBuffer(),type:s}}function m(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,e.width,e.height),t}class F{constructor(e,t,s){this.params={},this.materialMap=new Array,this.imageMap=new Map,this.textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{options:t,binChunkBuffer:null,promises:[]}},s&&(this.params=s),this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras.options.bufferOutputType===a.GLB||this.gltf.extras.options.imageOutputType===T.GLB;t&&(this.gltf.extras.binChunkBuffer=new M(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),t&&this.gltf.extras.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]);const s=this._addNode(e);t.nodes.push(s)})),this.gltf.scenes.push(t)}_addNode(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,C.k)(s,I.Z)||(t.translation=(0,I.a)(s));const i=e.rotation;(0,u.j)(i,S.I)||(t.rotation=(0,S.b)(i));const n=e.scale;(0,C.k)(n,I.O)||(t.scale=(0,I.a)(n)),e.mesh&&e.mesh.vertexAttributes.position?t.mesh=this._addMesh(e.mesh):e.forEachNode((e=>{t.children||(t.children=[]);const s=this._addNode(e);t.children.push(s)}));const r=this.gltf.nodes.length;return this.gltf.nodes.push(t),r}_addMesh(e){this.gltf.meshes||(this.gltf.meshes=[]);const t={primitives:[]},s=this.gltf.extras.options.bufferOutputType===a.GLB;let i;i=s?this.gltf.extras.binChunkBuffer:new M(this.gltf),this.params.origin||(this.params.origin=function(e){if((0,f.pC)(e.transform))return e.transform.getOriginPoint(e.spatialReference);const t=e.extent.xmax-e.extent.width/2,s=e.extent.ymax-e.extent.height/2,i=e.extent.zmin;return new E.Z({x:t,y:s,z:i,spatialReference:e.extent.spatialReference})}(e));const n=(0,l.Yq)(e.vertexAttributes,e.transform,this.params.origin,{geographic:this.params.geographic,unit:"meters"});(function(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&D(s,t)})(e,n),this._flipYZAxis(n);const r=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER);let _,T,A,N;n.normal&&(_=i.addBufferView(L.g.FLOAT,o.VEC3,R.ARRAY_BUFFER)),e.vertexAttributes.uv&&(T=i.addBufferView(L.g.FLOAT,o.VEC2,R.ARRAY_BUFFER)),n.tangent&&(A=i.addBufferView(L.g.FLOAT,o.VEC4,R.ARRAY_BUFFER)),e.vertexAttributes.color&&(N=i.addBufferView(L.g.UNSIGNED_BYTE,o.VEC4,R.ARRAY_BUFFER)),r.startAccessor("POSITION"),_&&_.startAccessor("NORMAL"),T&&T.startAccessor("TEXCOORD_0"),A&&A.startAccessor("TANGENT"),N&&N.startAccessor("COLOR_0");const c=n.position.length/3,{position:h,normal:u,tangent:S}=n,{color:C,uv:I}=e.vertexAttributes;for(let e=0;e<c;++e)r.push(h[3*e+0]),r.push(h[3*e+1]),r.push(h[3*e+2]),_&&(0,f.pC)(u)&&(_.push(u[3*e+0]),_.push(u[3*e+1]),_.push(u[3*e+2])),T&&(0,f.pC)(I)&&(T.push(I[2*e+0]),T.push(I[2*e+1])),A&&(0,f.pC)(S)&&(A.push(S[4*e+0]),A.push(S[4*e+1]),A.push(S[4*e+2]),A.push(S[4*e+3])),N&&(0,f.pC)(C)&&(N.push(C[4*e+0]),N.push(C[4*e+1]),N.push(C[4*e+2]),N.push(C[4*e+3]));const O=r.endAccessor(),d=this._addAccessor(r.index,O);let B,P,g,U,p;if(_){const e=_.endAccessor();B=this._addAccessor(_.index,e)}if(T){const e=T.endAccessor();P=this._addAccessor(T.index,e)}if(A){const e=A.endAccessor();g=this._addAccessor(A.index,e)}if(N){const e=N.endAccessor();U=this._addAccessor(N.index,e)}e.components&&e.components.length>0&&e.components[0].faces?(p=i.addBufferView(L.g.UNSIGNED_INT,o.SCALAR,R.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(p,e.components,t,d,B,P,g,U)):this._addMeshVertexNonIndexed(e.components,t,d,B,P,g,U),r.finalize(),_&&_.finalize(),T&&T.finalize(),A&&A.finalize(),p&&p.finalize(),N&&N.finalize(),s||i.finalize();const G=this.gltf.meshes.length;return this.gltf.meshes.push(t),G}_flipYZAxis({position:e,normal:t,tangent:s}){this._flipYZBuffer(e,3),this._flipYZBuffer(t,3),this._flipYZBuffer(s,4)}_flipYZBuffer(e,t){if(!(0,f.Wi)(e))for(let s=1,i=2;s<e.length;s+=t,i+=t){const t=e[s],n=e[i];e[s]=n,e[i]=-t}}_addMaterial(e){if(null===e)return;const t=this.materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=N.MASK;break;case"auto":case"blend":s.alphaMode=N.BLEND}.5!==e.alphaCutoff&&(s.alphaCutoff=e.alphaCutoff),e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const i=e=>e**2.1,n=e=>{const t=e.toRgba();return t[0]=i(t[0]/255),t[1]=i(t[1]/255),t[2]=i(t[2]/255),t};if((0,f.pC)(e.color)&&(s.pbrMetallicRoughness.baseColorFactor=n(e.color)),(0,f.pC)(e.colorTexture)&&(s.pbrMetallicRoughness.baseColorTexture={index:this._addTexture(e.colorTexture)}),(0,f.pC)(e.normalTexture)&&(s.normalTexture={index:this._addTexture(e.normalTexture)}),e instanceof O.Z){if((0,f.pC)(e.emissiveTexture)&&(s.emissiveTexture={index:this._addTexture(e.emissiveTexture)}),(0,f.pC)(e.emissiveColor)){const t=n(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}(0,f.pC)(e.occlusionTexture)&&(s.occlusionTexture={index:this._addTexture(e.occlusionTexture)}),(0,f.pC)(e.metallicRoughnessTexture)&&(s.pbrMetallicRoughness.metallicRoughnessTexture={index:this._addTexture(e.metallicRoughnessTexture)}),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1;const r=this.gltf.materials.length;return this.gltf.materials.push(s),this.materialMap.push(e),r}_addTexture(e){return this.gltf.textures||(this.gltf.textures=[]),(0,h.s1)(this.textureMap,e,(()=>{const t={sampler:this._addSampler(e),source:this._addImage(e)},s=this.gltf.textures.length;return this.gltf.textures.push(t),s}))}_addImage(e){const t=this.imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{s.extras=e.data;for(let t=0;t<this.gltf.images.length;++t)if(e.data===this.gltf.images[t].extras)return t;switch(this.gltf.extras.options.imageOutputType){case T.GLB:{const t=this.gltf.extras.binChunkBuffer.addBufferView(L.g.UNSIGNED_BYTE,o.SCALAR),i=G(e.data).then((({data:e,type:t})=>(s.mimeType=t,e)));t.writeAsync(i).then((()=>{t.finalize()})),s.bufferView=t.index;break}case T.DataURI:s.uri=function(e){const t=m(e);return(0,f.pC)(t)?t.toDataURL():""}(e.data);break;default:this.gltf.extras.promises.push(G(e.data).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const i=this.gltf.images.length;return this.gltf.images.push(s),this.imageMap.set(e,i),i}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=L.e8.REPEAT,s=L.e8.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=L.e8.CLAMP_TO_EDGE,s=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT,s=L.e8.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=L.e8.CLAMP_TO_EDGE;break;case"mirror":s=L.e8.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=L.e8.CLAMP_TO_EDGE;break;case"mirror":t=L.e8.MIRRORED_REPEAT}}const i={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(i)===JSON.stringify(this.gltf.samplers[e]))return e;const n=this.gltf.samplers.length;return this.gltf.samplers.push(i),n}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const i=this.gltf.accessors.length;return this.gltf.accessors.push(s),i}_addMeshVertexIndexed(e,t,s,i,n,r,E,_){for(const a of t){e.startAccessor("INDICES");for(let t=0;t<a.faces.length;++t)e.push(a.faces[t]);const t=e.endAccessor(),T={attributes:{POSITION:i},indices:this._addAccessor(e.index,t),material:this._addMaterial(a.material)};n&&"flat"!==a.shading&&(T.attributes.NORMAL=n),r&&(T.attributes.TEXCOORD_0=r),E&&"flat"!==a.shading&&(T.attributes.TANGENT=E),_&&(T.attributes.COLOR_0=_),s.primitives.push(T)}}_addMeshVertexNonIndexed(e,t,s,i,n,r,E){const _={attributes:{POSITION:s}};i&&(_.attributes.NORMAL=i),n&&(_.attributes.TEXCOORD_0=n),r&&(_.attributes.TANGENT=r),E&&(_.attributes.COLOR_0=E),e&&(_.material=this._addMaterial(e[0].material)),t.primitives.push(_)}}var w=s(67676);class H{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,w.Od)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class b{constructor(e){this.mesh=e,this.name="",this.translation=(0,I.c)(),this.rotation=(0,S.a)(),this.scale=(0,I.a)(I.O),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,u.k)(this.rotation,e[0],e[1],e[2])}}const y="model.glb";class x{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}class V{constructor(e,t){this._file={type:"model/gltf-binary",data:e},this.origin=t}buffer(){return Promise.resolve(this._file)}download(e){(0,n.io)(new Blob([this._file.data],{type:this._file.type}),e)}}function Y(e,t){const s=new H,i=new x;return s.addScene(i),i.addNode(new b(e)),function(e,t){return function(e,t,s){const i=new F(e,t=t||{},s);let n=i.params;n?n.origin||(n.origin=new E.Z({x:-1,y:-1,z:-1})):n={origin:new E.Z({x:-1,y:-1,z:-1})};const R=n.origin,o=i.gltf,A=o.extras.promises;let N=1,c=1,h=null;return(0,r.as)(A).then((()=>{const e={origin:R};delete o.extras;const s="number"==typeof t.jsonSpacing?t.jsonSpacing:4,i=JSON.stringify(o,((s,i)=>{if("extras"!==s){if(i instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(i))switch(t.imageOutputType){case T.DataURI:case T.GLB:break;case T.External:default:{const t=`img${c}.png`;return c++,e[t]=i,t}}switch(t.bufferOutputType){case a.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(i);case a.GLB:if(h)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(h=i);case a.External:default:{const t=`data${N}.bin`;return N++,e[t]=i,t}}}return i}}),s);return t.bufferOutputType===a.GLB||t.imageOutputType===T.GLB?e[y]=new _(i,h).buffer:e["model.gltf"]=i,e}))}(e,{bufferOutputType:a.GLB,imageOutputType:T.GLB,jsonSpacing:0},t)}(s,t).then((e=>new V(e[y],e.origin)))}},35371:(e,t,s)=>{var i,n,r,E,_,a,T,R,o,A,N,c,h,f,u,S,C,I,O,l,L,d,M,D;s.d(t,{zi:()=>r,db:()=>E,w0:()=>_,VY:()=>D,wb:()=>o,q_:()=>P,Wf:()=>T,g:()=>R,Lu:()=>B,OU:()=>d,LR:()=>a,qi:()=>l,VI:()=>f,Br:()=>S,MX:()=>n,Tg:()=>C,_g:()=>M,lP:()=>u,xS:()=>A,Lm:()=>L,cw:()=>N,No:()=>h,e8:()=>c,l1:()=>I}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(i||(i={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(n||(n={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(r||(r={})),function(e){e[e.ADD=32774]="ADD",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(E||(E={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(_||(_={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(a||(a={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(T||(T={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT"}(R||(R={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(o||(o={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(A||(A={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(N||(N={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(c||(c={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(h||(h={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(f||(f={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(u||(u={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(S||(S={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(C||(C={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(I||(I={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(O||(O={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(l||(l={})),function(e){e[e.TEXTURE=0]="TEXTURE",e[e.RENDER_BUFFER=1]="RENDER_BUFFER",e[e.CUBEMAP=2]="CUBEMAP"}(L||(L={})),function(e){e[e.NONE=0]="NONE",e[e.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",e[e.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(d||(d={})),function(e){e[e.Texture=0]="Texture",e[e.Buffer=1]="Buffer",e[e.VAO=2]="VAO",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.Framebuffer=5]="Framebuffer",e[e.Renderbuffer=6]="Renderbuffer",e[e.COUNT=7]="COUNT"}(M||(M={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(D||(D={}));const B=33306;var P,g,U,p,G,m,F;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(P||(P={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(g||(g={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(U||(U={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(p||(p={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(G||(G={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(F||(F={}))}}]);
|