@arcgis/core 5.0.0-next.45 → 5.0.0-next.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/063045ac5553e91c0c4c.js +1 -0
- package/assets/esri/core/workers/chunks/{20ad34f9d45c64392022.js → 08c1ea29678da27136f3.js} +1 -1
- package/assets/esri/core/workers/chunks/{5dc2f2e28c30386efadf.js → 10094eb2b94e98dd4a8a.js} +1 -1
- package/assets/esri/core/workers/chunks/108675a17e432a02cf66.js +1 -0
- package/assets/esri/core/workers/chunks/169be08394c5e7703628.js +1 -0
- package/assets/esri/core/workers/chunks/19270a2de33f2662005b.js +1 -0
- package/assets/esri/core/workers/chunks/1a6f3531ef3d671e0289.js +1 -0
- package/assets/esri/core/workers/chunks/{b809d499ff050976d9ed.js → 1c58064ea80e6a4a4a3b.js} +1 -1
- package/assets/esri/core/workers/chunks/1c816aff8613d1e4bf38.js +1 -0
- package/assets/esri/core/workers/chunks/{ee67c8a7c1f8b482cd99.js → 1ced78750c61600b2d4e.js} +1 -1
- package/assets/esri/core/workers/chunks/{c5d6b416baf24e74b9ba.js → 1dfa949cc4f4c18ed4cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{98175b454e807b1a3c5f.js → 1e152a34e368bd810a0f.js} +1 -1
- package/assets/esri/core/workers/chunks/1e17ad6cdffa5016a3db.js +1 -0
- package/assets/esri/core/workers/chunks/1e2d42e9984ed3437ba2.js +1 -0
- package/assets/esri/core/workers/chunks/2008b22f76071a2dde4e.js +1 -0
- package/assets/esri/core/workers/chunks/2107c93d1fe87f3b8dfa.js +1 -0
- package/assets/esri/core/workers/chunks/2209550b6510e25da375.js +1 -0
- package/assets/esri/core/workers/chunks/229e1ed4282005aa0b83.js +1 -0
- package/assets/esri/core/workers/chunks/22b8eaa6afab0e5ffc47.js +1 -0
- package/assets/esri/core/workers/chunks/{1c0fb4795a52204882a8.js → 2550d2ba935cfdf30236.js} +1 -1
- package/assets/esri/core/workers/chunks/{49e6219dd08cb6c27023.js → 273ac1066095d63d6a6f.js} +1 -1
- package/assets/esri/core/workers/chunks/2e2867bc66c94aba7dc7.js +1 -0
- package/assets/esri/core/workers/chunks/{cda5c95fd49b8901f7d4.js → 3298e96d3f2e49e338d2.js} +1 -1
- package/assets/esri/core/workers/chunks/34613b288cf174983f8b.js +1 -0
- package/assets/esri/core/workers/chunks/{e5baa30944061418cb13.js → 35f086a2ae0585348ae6.js} +1 -1
- package/assets/esri/core/workers/chunks/{f441fc74451330384fb0.js → 37ea150dec5e491f691e.js} +1 -1
- package/assets/esri/core/workers/chunks/3c94db7ecdcd38eeb1b1.js +1 -0
- package/assets/esri/core/workers/chunks/3f7749f06ae54a4437d9.js +1 -0
- package/assets/esri/core/workers/chunks/404229f10aef5ac23c87.js +1 -0
- package/assets/esri/core/workers/chunks/40a722933af28823953b.js +1 -0
- package/assets/esri/core/workers/chunks/{7aa730e5ac7b268e3c98.js → 424daef7b5dec1b99aba.js} +1 -1
- package/assets/esri/core/workers/chunks/456684b1c1417ed0e611.js +1 -0
- package/assets/esri/core/workers/chunks/{d14e75b160aa432233c6.js → 461093ce28ceadd7853d.js} +1 -1
- package/assets/esri/core/workers/chunks/46b63a65484b102e9ccb.js +1 -0
- package/assets/esri/core/workers/chunks/4a48b8ec5f3f2fd139b5.js +1 -0
- package/assets/esri/core/workers/chunks/4b084f985bc4100e7aec.js +1 -0
- package/assets/esri/core/workers/chunks/4b1de1fcd13677b615a8.js +1 -0
- package/assets/esri/core/workers/chunks/{31186e83fe009aa0fd36.js → 4d933de84afb2e3b7d18.js} +1 -1
- package/assets/esri/core/workers/chunks/{83aa39fbb1fad3b9d143.js → 4ff771942531fb2755c4.js} +1 -1
- package/assets/esri/core/workers/chunks/{e0017c6739d2532793e6.js → 513a4ef960e27500f986.js} +1 -1
- package/assets/esri/core/workers/chunks/56b693baa376bb990925.js +1 -0
- package/assets/esri/core/workers/chunks/{1d4ea8db272655c0608c.js → 57fd5e1260269002d18a.js} +1 -1
- package/assets/esri/core/workers/chunks/5fe40bb0e9ab333f6854.js +1 -0
- package/assets/esri/core/workers/chunks/{9f6c63a580b28ab715bd.js → 5ffeb8fb58d59bad68c3.js} +1 -1
- package/assets/esri/core/workers/chunks/{b56c07c0b43cb1999070.js → 60362c5651ef41fa7e5f.js} +1 -1
- package/assets/esri/core/workers/chunks/{e8a9971c8354569cb81d.js → 609919428305d8c8c243.js} +1 -1
- package/assets/esri/core/workers/chunks/{ab88577987cf2fe1cb32.js → 61373d2fa7e7638d3395.js} +1 -1
- package/assets/esri/core/workers/chunks/6202922b1c2637e9aaa5.js +1 -0
- package/assets/esri/core/workers/chunks/633368ae6fbb46373328.js +1 -0
- package/assets/esri/core/workers/chunks/657602e6a84e8b4576fb.js +1 -0
- package/assets/esri/core/workers/chunks/6d3ae7969ea86a2e0b13.js +1 -0
- package/assets/esri/core/workers/chunks/6d702cb26cef46a76963.js +1 -0
- package/assets/esri/core/workers/chunks/{35272810c2ed04eb403d.js → 6f3943bebe2d5f4994f7.js} +1 -1
- package/assets/esri/core/workers/chunks/708aba69a1870ea41a61.js +1 -0
- package/assets/esri/core/workers/chunks/{7ba13b52fce1060fbb2a.js → 7147fc7502b385b302b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{9ba8a2e1c0fb4e1efc7c.js → 7364fb5e99933533890d.js} +1 -1
- package/assets/esri/core/workers/chunks/74b1028e95f7cfff387b.js +1 -0
- package/assets/esri/core/workers/chunks/75d8244b725a2aee2003.js +1 -0
- package/assets/esri/core/workers/chunks/78fccea3445fb2f9120a.js +1 -0
- package/assets/esri/core/workers/chunks/7ba31425caa404f86424.js +1 -0
- package/assets/esri/core/workers/chunks/{a4f492aa5444e6381063.js → 7d631ebf8f79225cf0f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{040f3d8e1099c4843390.js → 81a60dfa600b690098f9.js} +1 -1
- package/assets/esri/core/workers/chunks/833fd2bc42c5cb459084.js +1 -0
- package/assets/esri/core/workers/chunks/{75643711d9585ee26a15.js → 83c8e5a92d8d6193cb32.js} +1 -1
- package/assets/esri/core/workers/chunks/{e537e1d37f3fcb14fce2.js → 870022661376442411e4.js} +1 -1
- package/assets/esri/core/workers/chunks/898ab7db220e81e921c6.js +1 -0
- package/assets/esri/core/workers/chunks/{31b074ae2162a3508d2a.js → 8b578ffc3a83089aa782.js} +1 -1
- package/assets/esri/core/workers/chunks/{48c8ef4170e803a564d6.js → 8b75861196d1ce5cba63.js} +1 -1
- package/assets/esri/core/workers/chunks/8be61e13530fd0dc2fd1.js +1 -0
- package/assets/esri/core/workers/chunks/90b8ccee883738917a6d.js +1 -0
- package/assets/esri/core/workers/chunks/90bc9c299ae0e8b8b5e5.js +1 -0
- package/assets/esri/core/workers/chunks/91d9ade78854f40a962d.js +1 -0
- package/assets/esri/core/workers/chunks/9319d57494482668ab19.js +1 -0
- package/assets/esri/core/workers/chunks/{74881340e040bfd0580f.js → 934bc1028b287f8df4aa.js} +1 -1
- package/assets/esri/core/workers/chunks/96055de47831e59a28bf.js +1 -0
- package/assets/esri/core/workers/chunks/963ba863e0f87abfca25.js +1 -0
- package/assets/esri/core/workers/chunks/9aa8d60483ad905fe13b.js +1 -0
- package/assets/esri/core/workers/chunks/9fed9946241bb2a5cfa4.js +1 -0
- package/assets/esri/core/workers/chunks/a2662e98857f0abf8e82.js +1 -0
- package/assets/esri/core/workers/chunks/a5a9b0a35849b9f2e86d.js +1 -0
- package/assets/esri/core/workers/chunks/a60006c9ccf6817fc0d2.js +1 -0
- package/assets/esri/core/workers/chunks/a627b7eb94b7fca33210.js +1 -0
- package/assets/esri/core/workers/chunks/a651dc3b8f1fc1ab34cc.js +1 -0
- package/assets/esri/core/workers/chunks/{bf5f9da0837ed09729c6.js → aab93e885b6c7c6aa76e.js} +1 -1
- package/assets/esri/core/workers/chunks/adfe28c1c1619cdd3ca1.js +1019 -0
- package/assets/esri/core/workers/chunks/b88dc7d8ae105747e6a4.js +1 -0
- package/assets/esri/core/workers/chunks/b90c786dd474ea1a409c.js +1 -0
- package/assets/esri/core/workers/chunks/b92e9e5df8154a128982.js +1 -0
- package/assets/esri/core/workers/chunks/{9a855a10798348a21bab.js → bff814d34b38ec80c44d.js} +1 -1
- package/assets/esri/core/workers/chunks/c36d699a75b6e8fb93eb.js +1 -0
- package/assets/esri/core/workers/chunks/c50fdf723f2d4316862e.js +1 -0
- package/assets/esri/core/workers/chunks/{9461cc37ab3397265270.js → c5e8ff4721b15ac3c6eb.js} +1 -1
- package/assets/esri/core/workers/chunks/{4cda42b94e9cb58dd372.js → ca61077e0a598654f33f.js} +1 -1
- package/assets/esri/core/workers/chunks/{61a9ffd4cf07d8bb7a9b.js → ca81be5bdb88ef557bf3.js} +1 -1
- package/assets/esri/core/workers/chunks/{ca1c65eb7f5900c60170.js → cd8fec3500e6503ae020.js} +1 -1
- package/assets/esri/core/workers/chunks/ce90e8489143228262e7.js +1 -0
- package/assets/esri/core/workers/chunks/d0320ca67abca4f8b0d2.js +1 -0
- package/assets/esri/core/workers/chunks/{4b6a44c6265c8959abd8.js → d3db7244fac7398cc700.js} +1 -1
- package/assets/esri/core/workers/chunks/{19820cddba13a3585c0b.js → d561624ddb9388732b25.js} +1 -1
- package/assets/esri/core/workers/chunks/d65ca3b8fccae8c3c3fa.js +1 -0
- package/assets/esri/core/workers/chunks/{630eba99f48ea79a9560.js → d705410c369bd03b1875.js} +1 -1
- package/assets/esri/core/workers/chunks/{9c7682b300b877f60095.js → d76513a6260d9ec4ea25.js} +1 -1
- package/assets/esri/core/workers/chunks/d82e17522ed946c2d809.js +1 -0
- package/assets/esri/core/workers/chunks/d8dc130ea559be1f68c6.js +1 -0
- package/assets/esri/core/workers/chunks/dae715b2b0094641e42f.js +1 -0
- package/assets/esri/core/workers/chunks/{768ae52b4e5c3e571ef5.js → dc29cb16704e2e4d0a46.js} +1 -1
- package/assets/esri/core/workers/chunks/e8c2e2fbe9cef4c8a8c6.js +1 -0
- package/assets/esri/core/workers/chunks/ecb4c223c0278971cdc9.js +1 -0
- package/assets/esri/core/workers/chunks/{3f33708eb39c7169a226.js → f2ba50eb29f93df885d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{6e5d41f51572e3e7cf92.js → f7163048146ddaedfc36.js} +1 -1
- package/assets/esri/core/workers/chunks/f92a78ce5510e0d0d0f7.js +1 -0
- package/assets/esri/core/workers/chunks/fa92a7c11befbad8739f.js +1 -0
- package/assets/esri/core/workers/chunks/fdaa10a588db394e2f65.js +1 -0
- package/chunks/Laserlines.glsl.js +1 -1
- package/chunks/boundedPlane.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/vec32.js +1 -1
- package/config.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/geometry/FlatGeometry.js +1 -1
- package/geometry/operators/support/apiConverter.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/curves/circleUtils.js +1 -1
- package/geometry/support/lineSegment.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/sphere.js +1 -1
- package/interfaces.d.ts +179 -71
- package/kernel.js +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/sources/ParquetSource.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/orientedImagery/transformations/worldToImage.js +1 -1
- package/layers/support/{ParquetEncodingBase.js → ParquetGeometryEncodingBase.js} +1 -1
- package/layers/support/ParquetGeometryEncodingLocation.d.ts +4 -0
- package/layers/support/ParquetGeometryEncodingLocation.js +5 -0
- package/layers/support/ParquetGeometryEncodingWkb.d.ts +4 -0
- package/layers/support/ParquetGeometryEncodingWkb.js +5 -0
- package/layers/support/parquetEncodingUtils.js +1 -1
- package/layers/support/parquetUtils.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/voxel/VoxelVolume.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +2 -2
- package/support/revision.js +1 -1
- package/symbols/cim/effects/EffectSuppress.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/interactive/SegmentLabels2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/animation/pointToPoint/Camera.js +1 -1
- package/views/3d/camera/constraintUtils/distance.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsParameters.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/environment/MarsAtmosphere.js +1 -1
- package/views/3d/glTF/internal/Resource.js +1 -1
- package/views/3d/glTF/loader.js +1 -1
- package/views/3d/interactive/SegmentLabels3D.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
- package/views/3d/interactive/editingTools/media/MediaElementManipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/edgeOffsetUtils.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/state/Frustum.js +1 -1
- package/views/3d/state/controllers/FovController.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/intersectionUtils.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillDepth.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.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/Viewshed.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
- package/views/3d/webgl-engine/lib/triangleIntersectionUtils.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/GraphicManipulator.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
- package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
- package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
- package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
- package/views/support/euclideanAreaMeasurementUtils.js +1 -1
- package/views/support/euclideanLengthMeasurementUtils.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/views/support/selectionUtils.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/css.js +1 -1
- package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.d.ts +4 -0
- package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.js +5 -0
- package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +4 -0
- package/widgets/BatchAttributeForm/inputs/TextElementInput.js +5 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/templates/GroupElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/TextElementTemplate.js +5 -0
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/FeatureForm/TextElementInput.d.ts +2 -2
- package/widgets/FeatureForm/TextElementInput.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicZoomManager.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicMedia.js +5 -0
- package/widgets/PanoramicViewer/support/PanoramicMediaCollection.js +5 -0
- package/widgets/PanoramicViewer/support/PanoramicMediaError.js +5 -0
- package/widgets/PanoramicViewer/utils.js +1 -1
- package/widgets/PanoramicViewer.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/widgets/support/Selector2D/selectorUtils.js +1 -1
- package/assets/esri/core/workers/chunks/024104997daea0d74b38.js +0 -1
- package/assets/esri/core/workers/chunks/04a0685ee53ef74883aa.js +0 -1
- package/assets/esri/core/workers/chunks/08ef90e3fcfd4eda4301.js +0 -1
- package/assets/esri/core/workers/chunks/1e0e7cef7ef947894bbe.js +0 -1019
- package/assets/esri/core/workers/chunks/20988e116f3723228f36.js +0 -1
- package/assets/esri/core/workers/chunks/2613e482450b57f2d4f5.js +0 -1
- package/assets/esri/core/workers/chunks/274f2b5e6dbc58505142.js +0 -1
- package/assets/esri/core/workers/chunks/27dfbe3d903b95d4c67a.js +0 -1
- package/assets/esri/core/workers/chunks/28a5a7c6b3d6902146f6.js +0 -1
- package/assets/esri/core/workers/chunks/2c4218306747f5d15575.js +0 -1
- package/assets/esri/core/workers/chunks/2d3ae187f8aa3495d4ae.js +0 -1
- package/assets/esri/core/workers/chunks/2db7a7607657f1d669f7.js +0 -1
- package/assets/esri/core/workers/chunks/2f8cf7d9ff1f4de19a4c.js +0 -1
- package/assets/esri/core/workers/chunks/338570424337be05cef5.js +0 -1
- package/assets/esri/core/workers/chunks/36130910ba141f34531b.js +0 -1
- package/assets/esri/core/workers/chunks/3767617c0dfc7d801441.js +0 -1
- package/assets/esri/core/workers/chunks/44b6b7418cbf7f778bef.js +0 -1
- package/assets/esri/core/workers/chunks/4675ed3ca3e0104d00bf.js +0 -1
- package/assets/esri/core/workers/chunks/4df7cc3477bc46fc39af.js +0 -1
- package/assets/esri/core/workers/chunks/538ddb267aa328814865.js +0 -1
- package/assets/esri/core/workers/chunks/555a0ea44ba77819d493.js +0 -1
- package/assets/esri/core/workers/chunks/55818fe7a7aa1e5c8bbd.js +0 -1
- package/assets/esri/core/workers/chunks/59889855d23baec1adf9.js +0 -1
- package/assets/esri/core/workers/chunks/5f781ef46ce7c4048c2f.js +0 -1
- package/assets/esri/core/workers/chunks/60f2de8dd8876bfd715a.js +0 -1
- package/assets/esri/core/workers/chunks/679088064420a906aa7f.js +0 -1
- package/assets/esri/core/workers/chunks/706423d801fa9cbf2e90.js +0 -1
- package/assets/esri/core/workers/chunks/71dd80231ea656a6380c.js +0 -1
- package/assets/esri/core/workers/chunks/725819839434c59102f3.js +0 -1
- package/assets/esri/core/workers/chunks/72cebf18da5ec5eeb666.js +0 -1
- package/assets/esri/core/workers/chunks/768d9b6eaba7bfa18dde.js +0 -1
- package/assets/esri/core/workers/chunks/77b45957cfe42523c1c8.js +0 -1
- package/assets/esri/core/workers/chunks/852de585a72d902344a6.js +0 -1
- package/assets/esri/core/workers/chunks/871dd5e1f016a04b8d98.js +0 -1
- package/assets/esri/core/workers/chunks/892c417f5130b003889d.js +0 -1
- package/assets/esri/core/workers/chunks/8d4cc5f1d07b4aa3aea0.js +0 -1
- package/assets/esri/core/workers/chunks/907083c427d7fb4354e9.js +0 -1
- package/assets/esri/core/workers/chunks/93c5f097bb7b380bb175.js +0 -1
- package/assets/esri/core/workers/chunks/9f0172b83f25ef5f8d40.js +0 -1
- package/assets/esri/core/workers/chunks/a00bba1c7cbf8cd7892c.js +0 -1
- package/assets/esri/core/workers/chunks/a34a14fd989dbbd3c2d0.js +0 -1
- package/assets/esri/core/workers/chunks/ae793d814cf32db9fbde.js +0 -1
- package/assets/esri/core/workers/chunks/b21cf62652ca772108c8.js +0 -1
- package/assets/esri/core/workers/chunks/c5c02ace54fe4ab9214b.js +0 -1
- package/assets/esri/core/workers/chunks/c82a974c8448407885e6.js +0 -1
- package/assets/esri/core/workers/chunks/d0014b4a8c013f59b113.js +0 -1
- package/assets/esri/core/workers/chunks/d08ee45c501102deea20.js +0 -1
- package/assets/esri/core/workers/chunks/d239a4ef60e348cfb05a.js +0 -1
- package/assets/esri/core/workers/chunks/da2ba40bc017bff0fe49.js +0 -1
- package/assets/esri/core/workers/chunks/dc3a4ad62bc041a4f899.js +0 -1
- package/assets/esri/core/workers/chunks/e093e745708f722bc1b9.js +0 -1
- package/assets/esri/core/workers/chunks/e501d68a1464805c4b4e.js +0 -1
- package/assets/esri/core/workers/chunks/e6784251bbb8b71ead93.js +0 -1
- package/assets/esri/core/workers/chunks/f3c232fc56a29d51196a.js +0 -1
- package/layers/support/ParquetEncodingLocation.d.ts +0 -4
- package/layers/support/ParquetEncodingLocation.js +0 -5
- package/layers/support/ParquetEncodingWkb.d.ts +0 -4
- package/layers/support/ParquetEncodingWkb.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3169,4161,7373,8125,8616],{4197:(e,t,n)=>{n.d(t,{Vj:()=>m,cj:()=>u,jh:()=>s,l5:()=>a,xm:()=>o});var r=n(34275),i=n(9093);function s(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e){return[...e]}function m(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(e,t,n,r,i,s,o,a,u,m,c,h,l,g,f,y){return[e,t,n,r,i,s,o,a,u,m,c,h,l,g,f,y]}},Symbol.toStringTag,{value:"Module"}))},16346:(e,t,n)=>{n.d(t,{d:()=>c,e:()=>u});var r=n(55537),i=n(26640),s=n(86211),o=n(78125);const a=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,s,o,a){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const u=e,m=t;Number.isNaN(a)&&(a=Number.POSITIVE_INFINITY);const c=new i.D(a,n).calculate(u,m,s,o);return Number.isFinite(c)?c:Number.NaN}};function u(e,t,n={}){const{unit:r}=n;let i=a.execute((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),null);if(i&&r){const t=(0,o.getSpatialReference)(e);i=(0,s.PQ)(i,t,r)}return i}const m=a.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:u,supportsCurves:m},Symbol.toStringTag,{value:"Module"}))},26640:(e,t,n)=>{n.d(t,{D:()=>D,m:()=>c,s:()=>v,w:()=>p});var r=n(31635),i=n(55537),s=n(88885),o=n(39117),a=n(83661),u=n(79187),m=n(95213);function c(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function h(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function l(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function g(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function f(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function y(e,t){const n=c();g(n,e),g(e,t),g(t,n)}function p(e,t,n,r,s,a){if(e.getGeometryType()===i.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,o.H)(e,t.getEndXY(),0))return l(s,t.getEndXY(),-1,Number.NaN),l(a,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===i.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,o.H)(t,e.getEndXY(),0))return l(s,e.getEndXY(),-1,Number.NaN),l(a,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function v(e){const t=e.getPathCount(),n=(0,a.d)(e.getSegmentCount(),0);let r=0;for(let i=0;i<t;++i){const t=r+e.getSegmentCountPath(i);for(let s=r,o=e.getPathStart(i);s<t;++s,++o)n[s]=o;r=t}return(0,s.s)(e.getPointCount(),n),n}function _(e,t){return!!Number.isNaN(t)||e<=t}function N(e){const t=new s.a;return t.addEnvelope(e,!1),t}class D{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==m.P.type||t.getGeometryType()!==m.P.type)&&(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!_(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const i=h(new a.P,(0,a.j)(),Number.NaN),s=h(new a.P,(0,a.j)(),Number.NaN),o=this._ExecuteBruteForce(e,t,i,s);return _(o,this.m_maxDistance)?(null!==n&&g(n,i),null!==r&&g(r,s),o):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==m.P.type&&e.getGeometryType()!==m.E.type||t.getGeometryType()!==m.P.type&&t.getGeometryType()!==m.E.type||(n=!1),n){if(this.m_env2DgeometryA=new u.Envelope2D,this.m_env2DgeometryB=new u.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=h(new a.P,(0,a.j)(),Number.NaN),i=h(new a.P,(0,a.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,i)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case i.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case i.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case i.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case i.G.enumPoint:return this.distancePointPoint(e,t,n,r);case i.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case i.G.enumPolyline:case i.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case i.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const i=e.getXY(),s=t.getXY();return l(n,i,0,0),l(r,s,0,0),Math.sqrt(a.P.sqrDistance(i,s))}distancePointMultipoint(e,t,n,r){const i=e.getXY();let s=this.m_maxSqrDistance,o=s,u=!1;const m=t.getPointCount(),c=new a.P;for(let e=0;e<m;++e)if(t.queryXY(e,c),o=a.P.sqrDistance(i,c),this.m_bIsNearCalc){if(o<=s)return 0}else if(!(o>s)&&(!u&&o===s||o<s)&&(s=o,l(n,i,0,0),l(r,c,e,0),u=!0,0===s))return 0;return u?Math.sqrt(s):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const s=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),m=e.getXY();if(!s&&t.getGeometryType()===i.G.enumPolygon&&0!==(0,o.H)(t,m,0))return l(n,m,0,0),l(r,m,-1,Number.NaN),0;t.getImpl().getAccelerators();let c=this.m_maxSqrDistance,h=c,g=-1;const f=new u.Envelope2D,y=t.querySegmentIterator();let p=!1;for(;y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();e.queryEnvelope(f);const t=f.sqrDistance(m);if(t>c)continue;if(!this.m_bIsNearCalc&&p&&t===c)continue;g=e.getClosestCoordinate(m,!1);const i=e.getCoord2D(g);if(h=a.P.sqrDistance(m,i),this.m_bIsNearCalc){if(h<=c)return 0}else if(!(h>c)&&(!p||h<c)&&(c=h,l(n,m,0,0),l(r,i,y.getStartPointIndex(),g),p=!0,0===c))return 0}return p?Math.sqrt(c):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const i=e.getXY();l(n,i,0,0),l(r,i,-1,Number.NaN);const s=t.asEnvelope2D();return s.contains(i)?0:Math.sqrt(s.sqrDistance(i,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case i.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case i.G.enumEnvelope:return this.distanceMultipointMultipath(e,N(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,i,s,o){const u={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===s&&1===o){const r=Math.trunc((0,a.s)(Math.sqrt(e.getPointCount())+1,1,(0,a.i)())),s=Math.trunc((0,a.s)(Math.sqrt(t.getPointCount())+1,1,(0,a.i)()));if((r>=4||s>=4)&&this.distanceMultipointMultipoint(e,t,n,i,r,s)<=this.m_maxSqrDistance)return 0}let m=this.m_maxSqrDistance;const c=[e],h=[t],g=this.swapGeometriesIfBGtA(c,h);g&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o=(0,a.c)(s,s=o),y(n,i)),(0,r.mS)(u,(0,a.h)(()=>{y(n,i),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!g),!1);const f=c[0].getImpl(),p=h[0].getImpl(),v=f.getPointCount(),_=p.getPointCount(),N=_>1;let D=!1;const P=new a.P,d=new a.P;for(let e=0;e<v;e+=s){if(f.queryXY(e,P),N){const e=this.m_env2DgeometryB.sqrDistance(P);if(this.m_bIsNearCalc){if(e>m)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(P)<=m)return 0}else if(e>=m)continue}for(let t=0;t<_;t+=o){p.queryXY(t,d);const r=a.P.sqrDistance(P,d);if(this.m_bIsNearCalc){if(r<=m)return 0}else if(!(r>m||D&&r===m)&&(!D||r<m)&&(l(n,P,e,0),l(i,d,t,0),D=!0,m=r,0===m))return D?Math.sqrt(m):Number.POSITIVE_INFINITY}}return D?Math.sqrt(m):Number.POSITIVE_INFINITY}catch(e){u.error=e,u.hasError=!0}finally{(0,r.hk)(u)}}distanceMultipointMultipath(e,t,n,r){let s=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===i.G.enumPolygon;const m=t.querySegmentIterator();m.stripAttributes();const c=new u.Envelope2D,h=new a.P;let g=this.m_maxSqrDistance;const f=e.getImpl(),y=f.getPointCount(),p=y>1;let v=!1;for(;m.nextPath();)for(;m.hasNextSegment();){const e=m.nextSegment();if(e.queryLooseEnvelope(c),p){const e=c.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g||v&&e===g)continue}for(let i=0;i<y;i++){if(f.queryXY(i,h),s&&0!==(0,o.H)(t,h,0))return l(n,h,-1,Number.NaN),l(r,h,i,0),0;{const e=c.sqrDistance(h);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g)continue}const a=e.getClosestCoordinate(h,!1),u=e.getCoord2D(a);h.subThis(u);const y=h.sqrLength();if(this.m_bIsNearCalc){if(y<=g)return 0}else if(!(y>g)&&(!v||y<g)&&(g=y,l(n,f.getXY(i),i,0),l(r,u,m.getStartPointIndex(),a),v=!0,0===g))return 0}s=!1}return v?Math.sqrt(g):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case i.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case i.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distanceMultipointMultipath(t,N(e),r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathMultipath(N(e),t,n,r);case i.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const i=e.asEnvelope2D(),s=t.asEnvelope2D();return Math.sqrt(i.sqrDistanceEnvelope(s,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case i.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const i=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i}case i.G.enumPolyline:case i.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case i.G.enumEnvelope:return this.distanceMultipathMultipath(e,N(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,i){const o={stack:[],error:void 0,hasError:!1};try{const m=[e],h=[t],l=this.swapGeometriesIfAGtB(m,h);l&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),y(n,i)),(0,r.mS)(o,(0,a.h)(()=>{y(n,i),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!l),!1);const _=m[0],N=h[0],D=_.querySegmentIterator();D.stripAttributes();const P=N.querySegmentIterator();if(P.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,a.s)(Math.sqrt(_.getPointCount())+1,1,(0,a.i)())),t=Math.trunc((0,a.s)(Math.sqrt(_.getPointCount())+1,1,(0,a.i)()));if(this.distanceMultipointMultipoint(_,N,n,i,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=c(),t=c();if(p(_,N,D,P,e,t))return g(n,e),g(i,t),0}const d=v(_),x=[],M=new s.S,I=new u.Envelope2D,E=new u.Envelope2D,G=new u.Envelope2D;let b=this.m_maxSqrDistance,q=!0,A=!1;for(let e=0,t=d.length;e<t;++e){_.querySegment(d[e],M,!0);const t=M.get();if(t.queryEnvelope(I),!(I.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>b)){if(this.m_bIsNearCalc&&I.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=b)return 0;for(;P.nextPath();){if(this.progress_(),q)N.queryPathEnvelope(P.getPathIndex(),G),x[P.getPathIndex()]=G.clone();else if(I.sqrDistanceEnvelope(x[P.getPathIndex()],null,null)>b)continue;for(;P.hasNextSegment();){const r=P.nextSegment();if(r.queryEnvelope(E),I.sqrDistanceEnvelope(E,null,null)<=b){const s=!I.isIntersecting(E),o=[0],a=[0];let u=t.distance(r,s,o,a);if(u*=u,this.m_bIsNearCalc&&u<=this.m_maxSqrDistance)return 0;if(u<b||u===b&&d[e]<n.index){if(A=!0,f(n,t,d[e],o[0]),f(i,r,P.getStartPointIndex(),a[0]),0===u)return 0;b=u}}}}P.resetToFirstPath(),q=!1}}return A?Math.sqrt(b):Number.POSITIVE_INFINITY}catch(e){o.error=e,o.hasError=!0}finally{(0,r.hk)(o)}}swapGeometriesIfAGtB(e,t){return(0,i.v)(e[0])>(0,i.v)(t[0])&&(t[0]=(0,a.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},69397:(e,t,n)=>{n.d(t,{$B:()=>i,Qf:()=>m,Qh:()=>a,RS:()=>s,ez:()=>l,lM:()=>o,qK:()=>h});var r=n(34275);function i(e){return 32+e.length}const s=16;function o(e){if(!e)return 0;let t=h;for(const n in e)e.hasOwnProperty(n)&&(t+=u(e[n],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return m(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let n=l;for(let r=0;r<t;r++)n+=u(e[r]);return n}(e);let t=h;for(const n in e)e.hasOwnProperty(n)&&(t+=u(e[n]));return t}function u(e,t=!0){switch(typeof e){case"object":return t?a(e):h;case"string":return i(e);case"number":return s;case"boolean":return 4;default:return 8}}function m(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+g:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return l+e.length*t}const h=32,l=16,g=145},70328:(e,t,n)=>{n.d(t,{BI:()=>N,DC:()=>h,Ej:()=>g,Ie:()=>v,Jt:()=>_,Ne:()=>f,RF:()=>c,aI:()=>P,fA:()=>o,gE:()=>u,hZ:()=>p,iT:()=>l,is:()=>D,qv:()=>d,vI:()=>y,vY:()=>a,v_:()=>x,vt:()=>s,w1:()=>m});var r=n(5443),i=(n(19419),n(4197));function s(e=x){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,r,i,o,a=s()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=o,a}function a(e,t=s()){return function(e,t,n,r=s()){return p(r,d),function(e,t,n=0,r=t.length/3){let i=e[0],s=e[1],o=e[2],a=e[3],u=e[4],m=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),m=Math.max(m,t[n+3*e+2]);e[0]=i,e[1]=s,e[2]=o,e[3]=a,e[4]=u,e[5]=m}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){const[n,r,s,o,a,u]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=a,t[8]=s,t[9]=n,t[10]=a,t[11]=u,t[12]=o,t[13]=r,t[14]=s,t[15]=o,t[16]=r,t[17]=u,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=u,t}function m(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function g(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function f(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function y(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function v(e){return e?p(e,d):s(d)}function _(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function N(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function D(e){return 6===e.length}function P(e,t,n){if(null==e||null==t)return e===t;if(!D(e)||!D(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const d=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>i});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class i extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},77038:(e,t,n)=>{n.d(t,{execute:()=>r.e});var r=n(16346);n(86211),n(78125)},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>_,fromGeometry:()=>v,fromMultipoint:()=>N,fromPoint:()=>D,fromPolygon:()=>P,fromPolyline:()=>d,fromPolylineUsingImportOperator:()=>x,fromSpatialReference:()=>M,getSpatialReference:()=>p,toExtent:()=>E,toGeometry:()=>I,toMultipoint:()=>G,toPoint:()=>b,toPolygon:()=>q,toPolyline:()=>A});var r=n(83661),i=(n(79187),n(55537)),s=n(95213),o=n(88885),a=n(5443),u=n(48526),m=n(86738),c=n(39829),h=n(82799),l=(n(90293),n(34772));const g="_gxVersion",f=2,y=1;function p(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function v(e){switch(e.type){case"point":return D(e);case"multipoint":return N(e);case"polyline":return d(e);case"polygon":return P(e);case"extent":return _(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function _(e){if(!e.getCacheValue(g)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(f,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(g,t)}return e.getCacheValue(g)}function N(e){if(!e.getCacheValue(g)){const t=new o.M,n=new s.P,r=e.points,i=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),i&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(g,t)}return e.getCacheValue(g)}function D(e){if(!e.getCacheValue(g)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(g,t)}return e.getCacheValue(g)}function P(e){if(!e.getCacheValue(g)){const{curveRings:t,hasM:n,hasZ:r,rings:i}=e,s=(0,l.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:i});e.setCacheValue(g,s)}return e.getCacheValue(g)}function d(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:n,hasZ:r,paths:i}=e,s=(0,l.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:i});e.setCacheValue(g,s)}return e.getCacheValue(g)}function x(e){if(!e.getCacheValue(g)){const{curvePaths:t,hasM:n,hasZ:r,paths:i}=e,s=(0,l.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:i});e.setCacheValue(g,s)}return e.getCacheValue(g)}function M(e){return(0,l.fromSpatialReference)(e)}function I(e,t){if(e)switch(e.getGeometryType()){case i.G.enumPoint:return b(e,t);case i.G.enumEnvelope:return E(e,t);case i.G.enumMultiPoint:return G(e,t);case i.G.enumPolyline:return A(e,t);case i.G.enumPolygon:return q(e,t)}return null}function E(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(f,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(g,e),n}function G(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),i=n.hasZ(),o=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];i&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const m=new u.A({hasM:r,hasZ:i,points:o,spatialReference:t});return m.setCacheValue(g,e),m}function b(e,t){if(e instanceof r.P)return new m.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new m.A({x:e.getX(),y:e.getY(),spatialReference:t}),i=e.getDescription();return i.hasM()&&(n.m=e.getM()),i.hasZ()&&(n.z=e.getZ()),n.setCacheValue(g,e),n}function q(e,t){if(e.isEmpty())return null;const n=c.A.fromJSON({...(0,l.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(g,e),n}function A(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({...(0,l.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(g,e),n}},92722:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(69397);class i{constructor(e=[],t=[],n=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:n,hasM:r}){return new i(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const s=n-e,o=r-t;return new i([5],[e,t,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let i=this.coords[r*t],s=this.coords[r*t+1];for(let o=1;o<n;o+=1){const n=r*(t+o),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-i)*(u+s),i=a,s=u}t+=n}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let i=0;i<r;i++){const r=n*(t+i);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;const{stride:i}=this;for(const e of n){for(let n=1;n<e;n++){const e=i*(r+n);t[e]+=t[e-i],t[e+1]+=t[e+1-i]}r+=e}return e}clone(e){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,s=this.coords.slice(0,r*n);return e?(e.set(s),new i(t,e)):new i(t,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const n=new Array(t*e);for(let t=0,r=0;t<n.length;t+=e)n[r++]=this.coords[t],n[r++]=this.coords[t+1];return new i(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[581],{563:(e,t,r)=>{r.d(t,{QueueProcessor:()=>c,SharedConcurrency:()=>l});var n=r(97768),_=r(74887),i=r(9775),s=r(32587),o=r(76030),a=r(44794);class c{constructor(e){this._schedule=null,this._deferreds=new s.A,this._controllers=new s.A,this._processingItems=new s.A,this._pausedSignal=(0,a.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??g,this._queue=new i.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,n.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){const t=this._controllers.get(e);t?.abort()}clear(){this._queue.clear();const e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}_get(e){const t=this._deferreds.get(e);return t?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const r=this._get(e);if(r)return r;const n=new AbortController,i=(0,_.Tw)(),s=t?(0,_.u7)(t,()=>n.abort()):null,o=(0,_.NY)(n.signal,()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),a(),i.reject((0,_.NK)())}),a=()=>{o.remove(),s?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,i),this._controllers.set(e,n),i.promise.then(a,a),this._queue.push(e),this._scheduleNext(),i.promise}last(){return this._queue.last()}reset(){const e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),this.sharedConcurrency.current.value-=1)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,o._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const r=new AbortController,n=new u(e,r);this._processingItems.set(e,n),this.sharedConcurrency.current.value+=1;try{t=this.process(e,r.signal)}catch(e){this._processError(n,e)}(0,_.$X)(t)?(n.promise=t,t.then(e=>this._processResult(n,e),e=>this._processError(n,e))):this._processResult(n,t)}}class u{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class l{constructor(e){this.limit=e,this.current=(0,a.v)(0)}get full(){return this.current.value>=this.limit}}const g=new l(1/0)},32587:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(62788),_=r(95488);class i{constructor(e){this._observable=new _.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,n.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,n.gc)(this._observable),this._map.entries()}forEach(e,t){(0,n.gc)(this._observable),this._map.forEach((r,n)=>e.call(t,r,n,this),t)}get(e){return(0,n.gc)(this._observable),this._map.get(e)}has(e){return(0,n.gc)(this._observable),this._map.has(e)}keys(){return(0,n.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const r of t){if(!this._map.has(r))continue;const t=this._map.get(r),n=e(t,r);n!==t&&this.set(r,n)}})}values(){return(0,n.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,n.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},57733:(e,t,r)=>{let n;function _(e){const t=n.__externref_table_alloc();return n.__wbindgen_export_2.set(t,e),t}function i(e,t){try{return e.apply(this,t)}catch(e){const t=_(e);n.__wbindgen_exn_store(t)}}r.r(t),r.d(t,{ColumnDescriptor:()=>E,FieldMetadata:()=>U,GeometryInfo:()=>B,GeometryType:()=>j,MultiscaleGeometryField:()=>X,PageEncodingDescriptor:()=>$,ParquetChunk:()=>J,ParquetFile:()=>H,PrimaryGeometryField:()=>ee,QuantizedGeometryBuffer:()=>re,RangeProviderJs:()=>_e,RowGroup:()=>se,default:()=>le,enableTracing:()=>T,initSync:()=>ue});let s=null;function o(){return null!==s&&0!==s.byteLength||(s=new Uint8Array(n.memory.buffer)),s}let a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});a.decode();const c=2146435072;let u=0;function l(e,t){return function(e,t){return u+=t,u>=c&&(a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),a.decode(),u=t),a.decode(o().subarray(e,e+t))}(e>>>=0,t)}function g(e,t){return e>>>=0,o().subarray(e/1,e/1+t)}let p=null;function b(){return null!==p&&0!==p.byteLength||(p=new Uint32Array(n.memory.buffer)),p}function d(e,t){return e>>>=0,b().subarray(e/4,e/4+t)}let w=0;const f=new TextEncoder;function h(e,t,r){if(void 0===r){const r=f.encode(e),n=t(r.length,1)>>>0;return o().subarray(n,n+r.length).set(r),w=r.length,n}let n=e.length,_=t(n,1)>>>0;const i=o();let s=0;for(;s<n;s++){const t=e.charCodeAt(s);if(t>127)break;i[_+s]=t}if(s!==n){0!==s&&(e=e.slice(s)),_=r(_,n,n=s+3*e.length,1)>>>0;const t=o().subarray(_+s,_+n);s+=f.encodeInto(e,t).written,_=r(_,n,s,1)>>>0}return w=s,_}"encodeInto"in f||(f.encodeInto=function(e,t){const r=f.encode(e);return t.set(r),{read:e.length,written:r.length}});let y=null;function m(){return(null===y||!0===y.buffer.detached||void 0===y.buffer.detached&&y.buffer!==n.memory.buffer)&&(y=new DataView(n.memory.buffer)),y}function v(e){return null==e}const F="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{n.__wbindgen_export_6.get(e.dtor)(e.a,e.b)});function q(e,t,r,_){const i={a:e,b:t,cnt:1,dtor:r},s=(...e)=>{i.cnt++;const t=i.a;i.a=0;try{return _(t,i.b,...e)}finally{0===--i.cnt?(n.__wbindgen_export_6.get(i.dtor)(t,i.b),F.unregister(i)):i.a=t}};return s.original=i,F.register(s,i,i),s}function k(e,t){e>>>=0;const r=m(),_=[];for(let i=e;i<e+4*t;i+=4)_.push(n.__wbindgen_export_2.get(r.getUint32(i,!0)));return n.__externref_drop_slice(e,t),_}let S=null;function z(){return null!==S&&0!==S.byteLength||(S=new Int16Array(n.memory.buffer)),S}function T(){n.enableTracing()}let R=null;function I(){return null!==R&&0!==R.byteLength||(R=new Float64Array(n.memory.buffer)),R}function A(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function C(e,t){const r=t(8*e.length,8)>>>0;return I().set(e,r/8),w=e.length,r}function x(e,t){const r=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const n=_(e[t]);m().setUint32(r+4*t,n,!0)}return w=e.length,r}function P(e,t){const r=t(1*e.length,1)>>>0;return o().set(e,r/1),w=e.length,r}function O(e,t){const r=t(4*e.length,4)>>>0;return b().set(e,r/4),w=e.length,r}function M(e,t,r){n.closure86_externref_shim(e,t,r)}function G(e,t,r,_){n.closure12_externref_shim(e,t,r,_)}const j=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"}),L=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_columndescriptor_free(e>>>0,1));class E{static __wrap(e){e>>>=0;const t=Object.create(E.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_columndescriptor_free(e,0)}name(){let e,t;try{const r=n.columndescriptor_name(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}physicalType(){let e,t;try{const r=n.columndescriptor_physicalType(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}logicalType(){const e=n.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}encodings(){const e=n.columndescriptor_encodings(this.__wbg_ptr);var t=k(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}pageEncodings(){const e=n.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=k(e[0],e[1]).slice(),n.__wbindgen_free(e[0],4*e[1],4)),t}numValues(){return n.columndescriptor_numValues(this.__wbg_ptr)}compression(){let e,t;try{const r=n.columndescriptor_compression(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}compressedSize(){return n.columndescriptor_compressedSize(this.__wbg_ptr)}uncompressedSize(){return n.columndescriptor_uncompressedSize(this.__wbg_ptr)}nullCount(){const e=n.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}distinctCount(){const e=n.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}minValue(){return n.columndescriptor_minValue(this.__wbg_ptr)}maxValue(){return n.columndescriptor_maxValue(this.__wbg_ptr)}}Symbol.dispose&&(E.prototype[Symbol.dispose]=E.prototype.free);const N="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_fieldmetadata_free(e>>>0,1));class U{static __wrap(e){e>>>=0;const t=Object.create(U.prototype);return t.__wbg_ptr=e,N.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_fieldmetadata_free(e,0)}get column(){return n.__wbg_get_fieldmetadata_column(this.__wbg_ptr)>>>0}set column(e){n.__wbg_set_fieldmetadata_column(this.__wbg_ptr,e)}get name(){let e,t;try{const r=n.fieldmetadata_name(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}get type(){const e=n.fieldmetadata_esri_type(this.__wbg_ptr);return L[e]}get physicalType(){const e=n.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}get logicalType(){const e=n.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);const W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_geometryinfo_free(e>>>0,1));class B{static __wrap(e){e>>>=0;const t=Object.create(B.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_geometryinfo_free(e,0)}static new(e,t,r,_,i){A(_,ee);var s=_.__destroy_into_raw();const o=x(i,n.__wbindgen_malloc),a=w,c=n.geometryinfo_new(e,t,r,s,o,a);return B.__wrap(c)}}Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_multiscalegeometryfield_free(e>>>0,1));class X{static __wrap(e){e>>>=0;const t=Object.create(X.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof X?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_multiscalegeometryfield_free(e,0)}get level(){return n.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}set level(e){n.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}static new(e,t,r,_){const i=h(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=w,o=C(r,n.__wbindgen_malloc),a=w,c=C(_,n.__wbindgen_malloc),u=w,l=n.multiscalegeometryfield_new(e,i,s,o,a,c,u);return X.__wrap(l)}has_field(e){const t=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=w;return 0!==n.multiscalegeometryfield_has_field(this.__wbg_ptr,t,r)}}Symbol.dispose&&(X.prototype[Symbol.dispose]=X.prototype.free);const Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_pageencodingdescriptor_free(e>>>0,1));class ${static __wrap(e){e>>>=0;const t=Object.create($.prototype);return t.__wbg_ptr=e,Y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_pageencodingdescriptor_free(e,0)}pageType(){let e,t;try{const r=n.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}encoding(){let e,t;try{const r=n.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}count(){return n.pageencodingdescriptor_count(this.__wbg_ptr)}}Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_parquetchunk_free(e>>>0,1));class J{static __wrap(e){e>>>=0;const t=Object.create(J.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_parquetchunk_free(e,0)}size(){return n.parquetchunk_size(this.__wbg_ptr)>>>0}isEmpty(e){return 0!==n.parquetchunk_isEmpty(this.__wbg_ptr,e)}rowId(e){return n.parquetchunk_rowId(this.__wbg_ptr,e)}readX(e){const t=n.parquetchunk_readX(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readY(e){const t=n.parquetchunk_readY(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readCoords(e){const t=n.parquetchunk_readCoords(this.__wbg_ptr,e);let r;return 0!==t[0]&&(r=function(e,t){return e>>>=0,I().subarray(e/8,e/8+t)}(t[0],t[1]).slice(),n.__wbindgen_free(t[0],8*t[1],8)),r}readLengths(e){const t=n.parquetchunk_readLengths(this.__wbg_ptr,e);let r;return 0!==t[0]&&(r=d(t[0],t[1]).slice(),n.__wbindgen_free(t[0],4*t[1],4)),r}transformGeometry(e,t,r,_,i,s){A(e,re);const o=n.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,r,_,i,s);return 16777215===o?void 0:0!==o}boundsXMin(e){const t=n.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=n.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMax(e){const t=n.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=n.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readAttribute(e,t){return n.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);const Q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_parquetfile_free(e>>>0,1));class H{static __wrap(e){e>>>=0;const t=Object.create(H.prototype);return t.__wbg_ptr=e,Q.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_parquetfile_free(e,0)}static fromUrl(e,t,r,_){const i=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),s=w;let o=0;return v(_)||(A(_,B),o=_.__destroy_into_raw()),n.parquetfile_fromUrl(i,s,t,r,o)}static fromBinary(e,t){const r=P(e,n.__wbindgen_malloc),_=w;let i=0;return v(t)||(A(t,B),i=t.__destroy_into_raw()),n.parquetfile_fromBinary(r,_,i)}version(){return n.parquetfile_version(this.__wbg_ptr)}byteLength(){return n.parquetfile_byteLength(this.__wbg_ptr)}numRows(){return n.parquetfile_numRows(this.__wbg_ptr)>>>0}numFields(){return n.parquetfile_numFields(this.__wbg_ptr)>>>0}numColumns(){return n.parquetfile_numColumns(this.__wbg_ptr)>>>0}createdBy(){const e=n.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}keyValueMetadata(e){const t=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=w,_=n.parquetfile_keyValueMetadata(this.__wbg_ptr,t,r);let i;return 0!==_[0]&&(i=l(_[0],_[1]).slice(),n.__wbindgen_free(_[0],1*_[1],1)),i}keys(){const e=n.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=k(e[0],e[1]).slice(),n.__wbindgen_free(e[0],4*e[1],4)),t}columnForFieldName(e){const t=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=w,_=n.parquetfile_columnForFieldName(this.__wbg_ptr,t,r);return 4294967297===_?void 0:_}fields(){const e=n.parquetfile_fields(this.__wbg_ptr);var t=k(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}rowGroups(){const e=n.parquetfile_rowGroups(this.__wbg_ptr);var t=k(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}ensureFields(e){const t=O(e,n.__wbindgen_malloc),r=w;return n.parquetfile_ensureFields(this.__wbg_ptr,t,r)}readFirstChunk(e){const t=O(e,n.__wbindgen_malloc),r=w;return n.parquetfile_readFirstChunk(this.__wbg_ptr,t,r)}readChunk(e,t,r,_,i){const s=O(r,n.__wbindgen_malloc),o=w;return n.parquetfile_readChunk(this.__wbg_ptr,e,t,s,o,_,i)}readChunksByRowId(e,t,r,_){const i=O(e,n.__wbindgen_malloc),s=w,o=O(t,n.__wbindgen_malloc),a=w;return n.parquetfile_readChunksByRowId(this.__wbg_ptr,i,s,o,a,r,_)}readAllChunks(e,t,r){const _=O(e,n.__wbindgen_malloc),i=w;return n.parquetfile_readAllChunks(this.__wbg_ptr,_,i,t,r)}queryZChunks(e,t,r,_){const i=O(t,n.__wbindgen_malloc),s=w;return n.parquetfile_queryZChunks(this.__wbg_ptr,e,i,s,r,_)}queryXZChunks(e,t,r){return n.parquetfile_queryXZChunks(this.__wbg_ptr,e,t,r)}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);const K="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_primarygeometryfield_free(e>>>0,1));class ee{static __wrap(e){e>>>=0;const t=Object.create(ee.prototype);return t.__wbg_ptr=e,K.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_primarygeometryfield_free(e,0)}static fromNative(e){const t=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=w,_=n.primarygeometryfield_fromNative(t,r);return ee.__wrap(_)}static fromWkb(e){const t=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=w,_=n.primarygeometryfield_fromWkb(t,r);return ee.__wrap(_)}static fromLocation(e,t){const r=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=w,i=h(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=w,o=n.primarygeometryfield_fromLocation(r,_,i,s);return ee.__wrap(o)}}Symbol.dispose&&(ee.prototype[Symbol.dispose]=ee.prototype.free);const te="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_quantizedgeometrybuffer_free(e>>>0,1));class re{static __wrap(e){e>>>=0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,te.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,te.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=n.quantizedgeometrybuffer_new();return re.__wrap(e)}readCoordsUnsafe(){return n.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return n.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(re.prototype[Symbol.dispose]=re.prototype.free);const ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rangeproviderjs_free(e>>>0,1));class _e{static __wrap(e){e>>>=0;const t=Object.create(_e.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const r=n.rangeproviderjs_new(e,t);return _e.__wrap(r)}static withFetch(){const e=n.rangeproviderjs_withFetch();return _e.__wrap(e)}}Symbol.dispose&&(_e.prototype[Symbol.dispose]=_e.prototype.free);const ie="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rowgroup_free(e>>>0,1));class se{static __wrap(e){e>>>=0;const t=Object.create(se.prototype);return t.__wbg_ptr=e,ie.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ie.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(e){const t=n.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,e);return E.__wrap(t)}}Symbol.dispose&&(se.prototype[Symbol.dispose]=se.prototype.free);const oe=new Set(["basic","cors","default"]);function ae(){const e={wbg:{}};return e.wbg.__wbg_aborted_bbd6fc8f83561eda=function(e){return e.aborted},e.wbg.__wbg_apply_dc50eb58583d2a57=function(){return i(function(e,t,r){return e.apply(t,r)},arguments)},e.wbg.__wbg_call_13410aac570ffff7=function(){return i(function(e,t){return e.call(t)},arguments)},e.wbg.__wbg_call_a5400b25a865cfd8=function(){return i(function(e,t,r){return e.call(t,r)},arguments)},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let r,_;try{r=e,_=t,console.error(l(e,t))}finally{n.__wbindgen_free(r,_,1)}},e.wbg.__wbg_fieldmetadata_new=function(e){return U.__wrap(e)},e.wbg.__wbg_get_458e874b43b18b25=function(){return i(function(e,t){return Reflect.get(e,t)},arguments)},e.wbg.__wbg_length_555ae304a7c78975=function(e){return e.length},e.wbg.__wbg_length_6bb7e81f9d7713e4=function(e){return e.length},e.wbg.__wbg_multiscalegeometryfield_unwrap=function(e){return X.__unwrap(e)},e.wbg.__wbg_new_2e3c58a15f39f5f9=function(e,t){try{var r={a:e,b:t};return new Promise((e,t)=>{const n=r.a;r.a=0;try{return G(n,r.b,e,t)}finally{r.a=n}})}finally{r.a=r.b=0}},e.wbg.__wbg_new_638ebfaedbf32a5e=function(e){return new Uint8Array(e)},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},e.wbg.__wbg_newnoargs_254190557c45b4ec=function(e,t){return new Function(l(e,t))},e.wbg.__wbg_newwithlength_c2868113efe93526=function(e){return new Array(e>>>0)},e.wbg.__wbg_pageencodingdescriptor_new=function(e){return $.__wrap(e)},e.wbg.__wbg_parquetchunk_new=function(e){return J.__wrap(e)},e.wbg.__wbg_parquetfile_new=function(e){return H.__wrap(e)},e.wbg.__wbg_prototypesetcall_3d4a26c1ed734349=function(e,t,r){Uint8Array.prototype.set.call(g(e,t),r)},e.wbg.__wbg_prototypesetcall_c805289d23423a87=function(e,t,r){Uint32Array.prototype.set.call(d(e,t),r)},e.wbg.__wbg_queueMicrotask_25d0739ac89e8c88=function(e){queueMicrotask(e)},e.wbg.__wbg_queueMicrotask_4488407636f5bf24=function(e){return e.queueMicrotask},e.wbg.__wbg_resolve_4055c623acdd6a1b=function(e){return Promise.resolve(e)},e.wbg.__wbg_rowgroup_new=function(e){return se.__wrap(e)},e.wbg.__wbg_set_90f6c0f7bd8c0415=function(e,t,r){e[t>>>0]=r},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){const r=h(t.stack,n.__wbindgen_malloc,n.__wbindgen_realloc),_=w;m().setInt32(e+4,_,!0),m().setInt32(e+0,r,!0)},e.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12=function(){const e="undefined"==typeof global?null:global;return v(e)?0:_(e)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184=function(){const e="undefined"==typeof globalThis?null:globalThis;return v(e)?0:_(e)},e.wbg.__wbg_static_accessor_SELF_995b214ae681ff99=function(){const e="undefined"==typeof self?null:self;return v(e)?0:_(e)},e.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea=function(){const e="undefined"==typeof window?null:window;return v(e)?0:_(e)},e.wbg.__wbg_then_b33a773d723afa3e=function(e,t,r){return e.then(t,r)},e.wbg.__wbg_then_e22500defe16819f=function(e,t){return e.then(t)},e.wbg.__wbg_valueOf_f1ef20623c7bdd1c=function(e){return e.valueOf()},e.wbg.__wbg_wbindgencbdrop_eb10308566512b88=function(e){const t=e.original;return 1==t.cnt--&&(t.a=0,!0)},e.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74=function(e){return"function"==typeof e},e.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5=function(e){return void 0===e},e.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb=function(e,t){const r="number"==typeof t?t:void 0;m().setFloat64(e+8,v(r)?0:r,!0),m().setInt32(e+0,!v(r),!0)},e.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6=function(e,t){throw new Error(l(e,t))},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,t){return l(e,t)},e.wbg.__wbindgen_cast_59b536ec5375efa9=function(e,t){return q(e,t,85,M)},e.wbg.__wbindgen_cast_77bc3e92745e9a35=function(e,t){var r=g(e,t).slice();return n.__wbindgen_free(e,1*t,1),r},e.wbg.__wbindgen_cast_7c316abdc43840a3=function(e,t){return d(e,t)},e.wbg.__wbindgen_cast_9ae0607507abb057=function(e){return e},e.wbg.__wbindgen_cast_b4c60c1010b00353=function(e,t){var r=k(e,t).slice();return n.__wbindgen_free(e,4*t,4),r},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return e},e.wbg.__wbindgen_cast_e47ceb6027f5c92c=function(e,t){return function(e,t){return e>>>=0,z().subarray(e/2,e/2+t)}(e,t)},e.wbg.__wbindgen_init_externref_table=function(){const e=n.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e}function ce(e,t){return n=e.exports,le.__wbindgen_wasm_module=t,y=null,R=null,S=null,p=null,s=null,n.__wbindgen_start(),n}function ue(e){if(void 0!==n)return n;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=ae();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),ce(new WebAssembly.Instance(e,t),e)}async function le(e){if(void 0!==n)return n;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=ae();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:_}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!e.ok||!oe.has(e.type)||"application/wasm"===e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}(await e,t);return ce(r,_)}},70581:(e,t,r)=>{r.d(t,{DV:()=>b,Hj:()=>w,hD:()=>d});var n=r(11254),_=r(49186),i=(r(44208),r(563)),s=r(84952),o=r(2741);let a=null;async function c(){return a||(a=async function(){const e=await Promise.resolve().then(r.bind(r,57733));return await e.default({module_or_path:(0,o.s)("esri/libs/parquet/pkg/bundle_bg.wasm")}),e}()),a}var u=r(57733);const l=new i.QueueProcessor({concurrency:8,process:async e=>{const{data:t}=await(0,n.A)(e.url,e.options);return t}}),g=e=>async function(t,r,n,_){const i=e?.(),s=i??{};return await l.push({url:t,options:{responseType:"array-buffer",query:s,headers:{range:`bytes=${r}-${n}`}}})},p=e=>async function(t){if((0,s.w8)(t)){const{data:e}=await(0,n.A)(t,{responseType:"blob"});return e.size}const{data:r}=await(0,n.A)(t,{responseType:"native",method:"head",query:e?.()}),_=r.headers.get("Content-Length");if(null==_)throw new Error("Unable to parse content length");return parseInt(_,10)};async function b(e,t={}){const{ParquetFile:r}=await c(),n=g(t.getCustomParameters),i=p(t.getCustomParameters),s=t.geometryInfo?function(e,t){const r=e.spatialReference.wkid,n=t.wkid;if(!r||!n)throw new _.A("parquet","Unable to create ParquetFile, in and out wkid must be specified");const i=function(e){switch(e){case"esriGeometryPoint":return u.GeometryType.Point;case"esriGeometryPolygon":return u.GeometryType.Polygon;case"esriGeometryPolyline":return u.GeometryType.Polyline;case"esriGeometryMultipoint":return u.GeometryType.Multipoint;default:throw new _.A("parquet",`Found unexpected GeometryType: ${e}`)}}(e.geometryType),s=function(e){switch(e.encoding.type){case"wkb":return u.PrimaryGeometryField.fromWkb(e.encoding.field);case"location":{const{yField:t,xField:r}=e.encoding;return u.PrimaryGeometryField.fromLocation(t,r)}}}(e),o=[];if("xz"===e.displayOptimization?.mode){const t=e.displayOptimization.multiscale;for(const e of t.levels??[]){const[t,r]=e.transform.translate,[n,_]=e.transform.scale,i=new Float64Array([t,r]),s=new Float64Array([n,_]);o.push(u.MultiscaleGeometryField.new(e.level,e.column,i,s))}}return u.GeometryInfo.new(i,r,n,s,o)}(t.geometryInfo,t.outSpatialReference??t.geometryInfo.spatialReference):null;return r.fromUrl(e,n,i,s)}function d(e){const t=e.keyValueMetadata("geo");return null!=t?JSON.parse(t):null}function w(e){const t=e.keyValueMetadata("esri");return null!=t?JSON.parse(t):null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[581],{563:(e,t,r)=>{r.d(t,{QueueProcessor:()=>c,SharedConcurrency:()=>l});var n=r(97768),_=r(74887),i=r(9775),s=r(32587),o=r(76030),a=r(44794);class c{constructor(e){this._schedule=null,this._deferreds=new s.A,this._controllers=new s.A,this._processingItems=new s.A,this._pausedSignal=(0,a.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??g,this._queue=new i.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,n.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){const t=this._controllers.get(e);t?.abort()}clear(){this._queue.clear();const e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}_get(e){const t=this._deferreds.get(e);return t?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const r=this._get(e);if(r)return r;const n=new AbortController,i=(0,_.Tw)(),s=t?(0,_.u7)(t,()=>n.abort()):null,o=(0,_.NY)(n.signal,()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),a(),i.reject((0,_.NK)())}),a=()=>{o.remove(),s?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,i),this._controllers.set(e,n),i.promise.then(a,a),this._queue.push(e),this._scheduleNext(),i.promise}last(){return this._queue.last()}reset(){const e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),this.sharedConcurrency.current.value-=1)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,o._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const r=new AbortController,n=new u(e,r);this._processingItems.set(e,n),this.sharedConcurrency.current.value+=1;try{t=this.process(e,r.signal)}catch(e){this._processError(n,e)}(0,_.$X)(t)?(n.promise=t,t.then(e=>this._processResult(n,e),e=>this._processError(n,e))):this._processResult(n,t)}}class u{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class l{constructor(e){this.limit=e,this.current=(0,a.v)(0)}get full(){return this.current.value>=this.limit}}const g=new l(1/0)},32587:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(62788),_=r(95488);class i{constructor(e){this._observable=new _.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,n.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,n.gc)(this._observable),this._map.entries()}forEach(e,t){(0,n.gc)(this._observable),this._map.forEach((r,n)=>e.call(t,r,n,this),t)}get(e){return(0,n.gc)(this._observable),this._map.get(e)}has(e){return(0,n.gc)(this._observable),this._map.has(e)}keys(){return(0,n.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const r of t){if(!this._map.has(r))continue;const t=this._map.get(r),n=e(t,r);n!==t&&this.set(r,n)}})}values(){return(0,n.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,n.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},57733:(e,t,r)=>{let n;function _(e){const t=n.__externref_table_alloc();return n.__wbindgen_export_2.set(t,e),t}function i(e,t){try{return e.apply(this,t)}catch(e){const t=_(e);n.__wbindgen_exn_store(t)}}r.r(t),r.d(t,{ColumnDescriptor:()=>D,FieldMetadata:()=>U,GeometryInfo:()=>B,GeometryType:()=>j,MultiscaleGeometryField:()=>X,PageEncodingDescriptor:()=>$,ParquetChunk:()=>J,ParquetFile:()=>H,PrimaryGeometryField:()=>ee,QuantizedGeometryBuffer:()=>re,RangeProviderJs:()=>_e,RowGroup:()=>se,default:()=>le,enableTracing:()=>T,initSync:()=>ue});let s=null;function o(){return null!==s&&0!==s.byteLength||(s=new Uint8Array(n.memory.buffer)),s}let a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});a.decode();const c=2146435072;let u=0;function l(e,t){return function(e,t){return u+=t,u>=c&&(a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),a.decode(),u=t),a.decode(o().subarray(e,e+t))}(e>>>=0,t)}function g(e,t){return e>>>=0,o().subarray(e/1,e/1+t)}let p=null;function b(){return null!==p&&0!==p.byteLength||(p=new Uint32Array(n.memory.buffer)),p}function d(e,t){return e>>>=0,b().subarray(e/4,e/4+t)}let w=0;const f=new TextEncoder;function h(e,t,r){if(void 0===r){const r=f.encode(e),n=t(r.length,1)>>>0;return o().subarray(n,n+r.length).set(r),w=r.length,n}let n=e.length,_=t(n,1)>>>0;const i=o();let s=0;for(;s<n;s++){const t=e.charCodeAt(s);if(t>127)break;i[_+s]=t}if(s!==n){0!==s&&(e=e.slice(s)),_=r(_,n,n=s+3*e.length,1)>>>0;const t=o().subarray(_+s,_+n);s+=f.encodeInto(e,t).written,_=r(_,n,s,1)>>>0}return w=s,_}"encodeInto"in f||(f.encodeInto=function(e,t){const r=f.encode(e);return t.set(r),{read:e.length,written:r.length}});let y=null;function m(){return(null===y||!0===y.buffer.detached||void 0===y.buffer.detached&&y.buffer!==n.memory.buffer)&&(y=new DataView(n.memory.buffer)),y}function v(e){return null==e}const F="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{n.__wbindgen_export_6.get(e.dtor)(e.a,e.b)});function q(e,t,r,_){const i={a:e,b:t,cnt:1,dtor:r},s=(...e)=>{i.cnt++;const t=i.a;i.a=0;try{return _(t,i.b,...e)}finally{0===--i.cnt?(n.__wbindgen_export_6.get(i.dtor)(t,i.b),F.unregister(i)):i.a=t}};return s.original=i,F.register(s,i,i),s}function k(e,t){e>>>=0;const r=m(),_=[];for(let i=e;i<e+4*t;i+=4)_.push(n.__wbindgen_export_2.get(r.getUint32(i,!0)));return n.__externref_drop_slice(e,t),_}let S=null;function z(){return null!==S&&0!==S.byteLength||(S=new Int16Array(n.memory.buffer)),S}function T(){n.enableTracing()}let R=null;function I(){return null!==R&&0!==R.byteLength||(R=new Float64Array(n.memory.buffer)),R}function A(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function C(e,t){const r=t(8*e.length,8)>>>0;return I().set(e,r/8),w=e.length,r}function x(e,t){const r=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const n=_(e[t]);m().setUint32(r+4*t,n,!0)}return w=e.length,r}function P(e,t){const r=t(1*e.length,1)>>>0;return o().set(e,r/1),w=e.length,r}function O(e,t){const r=t(4*e.length,4)>>>0;return b().set(e,r/4),w=e.length,r}function M(e,t,r){n.closure86_externref_shim(e,t,r)}function G(e,t,r,_){n.closure12_externref_shim(e,t,r,_)}const j=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"}),E=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_columndescriptor_free(e>>>0,1));class D{static __wrap(e){e>>>=0;const t=Object.create(D.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_columndescriptor_free(e,0)}name(){let e,t;try{const r=n.columndescriptor_name(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}physicalType(){let e,t;try{const r=n.columndescriptor_physicalType(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}logicalType(){const e=n.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}encodings(){const e=n.columndescriptor_encodings(this.__wbg_ptr);var t=k(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}pageEncodings(){const e=n.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=k(e[0],e[1]).slice(),n.__wbindgen_free(e[0],4*e[1],4)),t}numValues(){return n.columndescriptor_numValues(this.__wbg_ptr)}compression(){let e,t;try{const r=n.columndescriptor_compression(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}compressedSize(){return n.columndescriptor_compressedSize(this.__wbg_ptr)}uncompressedSize(){return n.columndescriptor_uncompressedSize(this.__wbg_ptr)}nullCount(){const e=n.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}distinctCount(){const e=n.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}minValue(){return n.columndescriptor_minValue(this.__wbg_ptr)}maxValue(){return n.columndescriptor_maxValue(this.__wbg_ptr)}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);const N="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_fieldmetadata_free(e>>>0,1));class U{static __wrap(e){e>>>=0;const t=Object.create(U.prototype);return t.__wbg_ptr=e,N.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_fieldmetadata_free(e,0)}get column(){return n.__wbg_get_fieldmetadata_column(this.__wbg_ptr)>>>0}set column(e){n.__wbg_set_fieldmetadata_column(this.__wbg_ptr,e)}get name(){let e,t;try{const r=n.fieldmetadata_name(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}get type(){const e=n.fieldmetadata_esri_type(this.__wbg_ptr);return E[e]}get physicalType(){const e=n.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}get logicalType(){const e=n.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);const W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_geometryinfo_free(e>>>0,1));class B{static __wrap(e){e>>>=0;const t=Object.create(B.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_geometryinfo_free(e,0)}static new(e,t,r,_,i){A(_,ee);var s=_.__destroy_into_raw();const o=x(i,n.__wbindgen_malloc),a=w,c=n.geometryinfo_new(e,t,r,s,o,a);return B.__wrap(c)}}Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_multiscalegeometryfield_free(e>>>0,1));class X{static __wrap(e){e>>>=0;const t=Object.create(X.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof X?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_multiscalegeometryfield_free(e,0)}get level(){return n.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}set level(e){n.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}static new(e,t,r,_){const i=h(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=w,o=C(r,n.__wbindgen_malloc),a=w,c=C(_,n.__wbindgen_malloc),u=w,l=n.multiscalegeometryfield_new(e,i,s,o,a,c,u);return X.__wrap(l)}has_field(e){const t=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=w;return 0!==n.multiscalegeometryfield_has_field(this.__wbg_ptr,t,r)}}Symbol.dispose&&(X.prototype[Symbol.dispose]=X.prototype.free);const Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_pageencodingdescriptor_free(e>>>0,1));class ${static __wrap(e){e>>>=0;const t=Object.create($.prototype);return t.__wbg_ptr=e,Y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_pageencodingdescriptor_free(e,0)}pageType(){let e,t;try{const r=n.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}encoding(){let e,t;try{const r=n.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=r[0],t=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(e,t,1)}}count(){return n.pageencodingdescriptor_count(this.__wbg_ptr)}}Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_parquetchunk_free(e>>>0,1));class J{static __wrap(e){e>>>=0;const t=Object.create(J.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_parquetchunk_free(e,0)}size(){return n.parquetchunk_size(this.__wbg_ptr)>>>0}isEmpty(e){return 0!==n.parquetchunk_isEmpty(this.__wbg_ptr,e)}rowId(e){return n.parquetchunk_rowId(this.__wbg_ptr,e)}readX(e){const t=n.parquetchunk_readX(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readY(e){const t=n.parquetchunk_readY(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readCoords(e){const t=n.parquetchunk_readCoords(this.__wbg_ptr,e);let r;return 0!==t[0]&&(r=function(e,t){return e>>>=0,I().subarray(e/8,e/8+t)}(t[0],t[1]).slice(),n.__wbindgen_free(t[0],8*t[1],8)),r}readLengths(e){const t=n.parquetchunk_readLengths(this.__wbg_ptr,e);let r;return 0!==t[0]&&(r=d(t[0],t[1]).slice(),n.__wbindgen_free(t[0],4*t[1],4)),r}transformGeometry(e,t,r,_,i,s){A(e,re);const o=n.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,r,_,i,s);return 16777215===o?void 0:0!==o}boundsXMin(e){const t=n.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=n.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMax(e){const t=n.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=n.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}readAttribute(e,t){return n.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);const Q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_parquetfile_free(e>>>0,1));class H{static __wrap(e){e>>>=0;const t=Object.create(H.prototype);return t.__wbg_ptr=e,Q.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_parquetfile_free(e,0)}static fromUrl(e,t,r,_){const i=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),s=w;let o=0;return v(_)||(A(_,B),o=_.__destroy_into_raw()),n.parquetfile_fromUrl(i,s,t,r,o)}static fromBinary(e,t){const r=P(e,n.__wbindgen_malloc),_=w;let i=0;return v(t)||(A(t,B),i=t.__destroy_into_raw()),n.parquetfile_fromBinary(r,_,i)}version(){return n.parquetfile_version(this.__wbg_ptr)}byteLength(){return n.parquetfile_byteLength(this.__wbg_ptr)}numRows(){return n.parquetfile_numRows(this.__wbg_ptr)>>>0}numFields(){return n.parquetfile_numFields(this.__wbg_ptr)>>>0}numColumns(){return n.parquetfile_numColumns(this.__wbg_ptr)>>>0}createdBy(){const e=n.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=l(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),t}keyValueMetadata(e){const t=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=w,_=n.parquetfile_keyValueMetadata(this.__wbg_ptr,t,r);let i;return 0!==_[0]&&(i=l(_[0],_[1]).slice(),n.__wbindgen_free(_[0],1*_[1],1)),i}keys(){const e=n.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=k(e[0],e[1]).slice(),n.__wbindgen_free(e[0],4*e[1],4)),t}columnForFieldName(e){const t=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=w,_=n.parquetfile_columnForFieldName(this.__wbg_ptr,t,r);return 4294967297===_?void 0:_}fields(){const e=n.parquetfile_fields(this.__wbg_ptr);var t=k(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}rowGroups(){const e=n.parquetfile_rowGroups(this.__wbg_ptr);var t=k(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}ensureFields(e){const t=O(e,n.__wbindgen_malloc),r=w;return n.parquetfile_ensureFields(this.__wbg_ptr,t,r)}readFirstChunk(e){const t=O(e,n.__wbindgen_malloc),r=w;return n.parquetfile_readFirstChunk(this.__wbg_ptr,t,r)}readChunk(e,t,r,_,i){const s=O(r,n.__wbindgen_malloc),o=w;return n.parquetfile_readChunk(this.__wbg_ptr,e,t,s,o,_,i)}readChunksByRowId(e,t,r,_){const i=O(e,n.__wbindgen_malloc),s=w,o=O(t,n.__wbindgen_malloc),a=w;return n.parquetfile_readChunksByRowId(this.__wbg_ptr,i,s,o,a,r,_)}readAllChunks(e,t,r){const _=O(e,n.__wbindgen_malloc),i=w;return n.parquetfile_readAllChunks(this.__wbg_ptr,_,i,t,r)}queryZChunks(e,t,r,_){const i=O(t,n.__wbindgen_malloc),s=w;return n.parquetfile_queryZChunks(this.__wbg_ptr,e,i,s,r,_)}queryXZChunks(e,t,r){return n.parquetfile_queryXZChunks(this.__wbg_ptr,e,t,r)}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);const K="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_primarygeometryfield_free(e>>>0,1));class ee{static __wrap(e){e>>>=0;const t=Object.create(ee.prototype);return t.__wbg_ptr=e,K.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_primarygeometryfield_free(e,0)}static fromNative(e){const t=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=w,_=n.primarygeometryfield_fromNative(t,r);return ee.__wrap(_)}static fromWkb(e){const t=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=w,_=n.primarygeometryfield_fromWkb(t,r);return ee.__wrap(_)}static fromLocation(e,t){const r=h(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=w,i=h(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=w,o=n.primarygeometryfield_fromLocation(r,_,i,s);return ee.__wrap(o)}}Symbol.dispose&&(ee.prototype[Symbol.dispose]=ee.prototype.free);const te="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_quantizedgeometrybuffer_free(e>>>0,1));class re{static __wrap(e){e>>>=0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,te.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,te.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=n.quantizedgeometrybuffer_new();return re.__wrap(e)}readCoordsUnsafe(){return n.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return n.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(re.prototype[Symbol.dispose]=re.prototype.free);const ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rangeproviderjs_free(e>>>0,1));class _e{static __wrap(e){e>>>=0;const t=Object.create(_e.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const r=n.rangeproviderjs_new(e,t);return _e.__wrap(r)}static withFetch(){const e=n.rangeproviderjs_withFetch();return _e.__wrap(e)}}Symbol.dispose&&(_e.prototype[Symbol.dispose]=_e.prototype.free);const ie="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rowgroup_free(e>>>0,1));class se{static __wrap(e){e>>>=0;const t=Object.create(se.prototype);return t.__wbg_ptr=e,ie.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ie.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(e){const t=n.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,e);return D.__wrap(t)}}Symbol.dispose&&(se.prototype[Symbol.dispose]=se.prototype.free);const oe=new Set(["basic","cors","default"]);function ae(){const e={wbg:{}};return e.wbg.__wbg_aborted_bbd6fc8f83561eda=function(e){return e.aborted},e.wbg.__wbg_apply_dc50eb58583d2a57=function(){return i(function(e,t,r){return e.apply(t,r)},arguments)},e.wbg.__wbg_call_13410aac570ffff7=function(){return i(function(e,t){return e.call(t)},arguments)},e.wbg.__wbg_call_a5400b25a865cfd8=function(){return i(function(e,t,r){return e.call(t,r)},arguments)},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let r,_;try{r=e,_=t,console.error(l(e,t))}finally{n.__wbindgen_free(r,_,1)}},e.wbg.__wbg_fieldmetadata_new=function(e){return U.__wrap(e)},e.wbg.__wbg_get_458e874b43b18b25=function(){return i(function(e,t){return Reflect.get(e,t)},arguments)},e.wbg.__wbg_length_555ae304a7c78975=function(e){return e.length},e.wbg.__wbg_length_6bb7e81f9d7713e4=function(e){return e.length},e.wbg.__wbg_multiscalegeometryfield_unwrap=function(e){return X.__unwrap(e)},e.wbg.__wbg_new_2e3c58a15f39f5f9=function(e,t){try{var r={a:e,b:t};return new Promise((e,t)=>{const n=r.a;r.a=0;try{return G(n,r.b,e,t)}finally{r.a=n}})}finally{r.a=r.b=0}},e.wbg.__wbg_new_638ebfaedbf32a5e=function(e){return new Uint8Array(e)},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},e.wbg.__wbg_newnoargs_254190557c45b4ec=function(e,t){return new Function(l(e,t))},e.wbg.__wbg_newwithlength_c2868113efe93526=function(e){return new Array(e>>>0)},e.wbg.__wbg_pageencodingdescriptor_new=function(e){return $.__wrap(e)},e.wbg.__wbg_parquetchunk_new=function(e){return J.__wrap(e)},e.wbg.__wbg_parquetfile_new=function(e){return H.__wrap(e)},e.wbg.__wbg_prototypesetcall_3d4a26c1ed734349=function(e,t,r){Uint8Array.prototype.set.call(g(e,t),r)},e.wbg.__wbg_prototypesetcall_c805289d23423a87=function(e,t,r){Uint32Array.prototype.set.call(d(e,t),r)},e.wbg.__wbg_queueMicrotask_25d0739ac89e8c88=function(e){queueMicrotask(e)},e.wbg.__wbg_queueMicrotask_4488407636f5bf24=function(e){return e.queueMicrotask},e.wbg.__wbg_resolve_4055c623acdd6a1b=function(e){return Promise.resolve(e)},e.wbg.__wbg_rowgroup_new=function(e){return se.__wrap(e)},e.wbg.__wbg_set_90f6c0f7bd8c0415=function(e,t,r){e[t>>>0]=r},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){const r=h(t.stack,n.__wbindgen_malloc,n.__wbindgen_realloc),_=w;m().setInt32(e+4,_,!0),m().setInt32(e+0,r,!0)},e.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12=function(){const e=void 0===r.g?null:r.g;return v(e)?0:_(e)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184=function(){const e="undefined"==typeof globalThis?null:globalThis;return v(e)?0:_(e)},e.wbg.__wbg_static_accessor_SELF_995b214ae681ff99=function(){const e="undefined"==typeof self?null:self;return v(e)?0:_(e)},e.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea=function(){const e="undefined"==typeof window?null:window;return v(e)?0:_(e)},e.wbg.__wbg_then_b33a773d723afa3e=function(e,t,r){return e.then(t,r)},e.wbg.__wbg_then_e22500defe16819f=function(e,t){return e.then(t)},e.wbg.__wbg_valueOf_f1ef20623c7bdd1c=function(e){return e.valueOf()},e.wbg.__wbg_wbindgencbdrop_eb10308566512b88=function(e){const t=e.original;return 1==t.cnt--&&(t.a=0,!0)},e.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74=function(e){return"function"==typeof e},e.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5=function(e){return void 0===e},e.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb=function(e,t){const r="number"==typeof t?t:void 0;m().setFloat64(e+8,v(r)?0:r,!0),m().setInt32(e+0,!v(r),!0)},e.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6=function(e,t){throw new Error(l(e,t))},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,t){return l(e,t)},e.wbg.__wbindgen_cast_59b536ec5375efa9=function(e,t){return q(e,t,85,M)},e.wbg.__wbindgen_cast_77bc3e92745e9a35=function(e,t){var r=g(e,t).slice();return n.__wbindgen_free(e,1*t,1),r},e.wbg.__wbindgen_cast_7c316abdc43840a3=function(e,t){return d(e,t)},e.wbg.__wbindgen_cast_9ae0607507abb057=function(e){return e},e.wbg.__wbindgen_cast_b4c60c1010b00353=function(e,t){var r=k(e,t).slice();return n.__wbindgen_free(e,4*t,4),r},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return e},e.wbg.__wbindgen_cast_e47ceb6027f5c92c=function(e,t){return function(e,t){return e>>>=0,z().subarray(e/2,e/2+t)}(e,t)},e.wbg.__wbindgen_init_externref_table=function(){const e=n.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e}function ce(e,t){return n=e.exports,le.__wbindgen_wasm_module=t,y=null,R=null,S=null,p=null,s=null,n.__wbindgen_start(),n}function ue(e){if(void 0!==n)return n;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=ae();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),ce(new WebAssembly.Instance(e,t),e)}async function le(e){if(void 0!==n)return n;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=ae();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:r,module:_}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!e.ok||!oe.has(e.type)||"application/wasm"===e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}(await e,t);return ce(r,_)}},70581:(e,t,r)=>{r.d(t,{DV:()=>p,Hj:()=>d,hD:()=>b});var n=r(11254),_=r(49186),i=(r(44208),r(563)),s=r(84952),o=r(2741);let a=null;var c=r(57733);const u=new i.QueueProcessor({concurrency:8,process:async e=>{const{data:t}=await(0,n.A)(e.url,e.options);return t}}),l=e=>async function(t,r,n,_){const i=e?.(),s=i??{};return await u.push({url:t,options:{responseType:"array-buffer",query:s,headers:{range:`bytes=${r}-${n}`}}})},g=e=>async function(t){if((0,s.w8)(t)){const{data:e}=await(0,n.A)(t,{responseType:"blob"});return e.size}const{data:r}=await(0,n.A)(t,{responseType:"native",method:"head",query:e?.()}),_=r.headers.get("Content-Length");if(null==_)throw new Error("Unable to parse content length");return parseInt(_,10)};async function p(e,t={}){const{ParquetFile:n}=await async function(){return a||(a=async function(){const e=await Promise.resolve().then(r.bind(r,57733));return await e.default({module_or_path:(0,o.s)("esri/libs/parquet/pkg/bundle_bg.wasm")}),e}()),a}(),i=l(t.getCustomParameters),s=g(t.getCustomParameters),u=t.geometryInfo?function(e,t){const r=e.spatialReference.wkid,n=t.wkid;if(!r||!n)throw new _.A("parquet","Unable to create ParquetFile, in and out wkid must be specified");const i=function(e){switch(e){case"esriGeometryPoint":return c.GeometryType.Point;case"esriGeometryPolygon":return c.GeometryType.Polygon;case"esriGeometryPolyline":return c.GeometryType.Polyline;case"esriGeometryMultipoint":return c.GeometryType.Multipoint;default:throw new _.A("parquet",`Found unexpected GeometryType: ${e}`)}}(e.geometryType),s=function(e){switch(e.geometryEncoding.type){case"wkb":return c.PrimaryGeometryField.fromWkb(e.geometryEncoding.field);case"location":{const{yField:t,xField:r}=e.geometryEncoding;return c.PrimaryGeometryField.fromLocation(t,r)}}}(e),o=[];if("xz"===e.displayOptimization?.mode){const t=e.displayOptimization.multiscale;for(const e of t.levels??[]){const[t,r]=e.transform.translate,[n,_]=e.transform.scale,i=new Float64Array([t,r]),s=new Float64Array([n,_]);o.push(c.MultiscaleGeometryField.new(e.level,e.column,i,s))}}return c.GeometryInfo.new(i,r,n,s,o)}(t.geometryInfo,t.outSpatialReference??t.geometryInfo.spatialReference):null;return n.fromUrl(e,i,s,u)}function b(e){const t=e.keyValueMetadata("geo");return null!=t?JSON.parse(t):null}function d(e){const t=e.keyValueMetadata("esri");return null!=t?JSON.parse(t):null}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7836],{22141:(n,t,r)=>{r.d(t,{$5:()=>x,CN:()=>y,JP:()=>d,KM:()=>T,Mv:()=>R,X4:()=>A,gr:()=>w,qs:()=>b,si:()=>v,xA:()=>C});var e=r(34727),o=r(77690),i=r(29242),u=r(58083),a=r(9093),c=r(38954),l=r(51850),s=r(48353),f=r(9762),p=(r(79258),r(21325)),h=r(28735),g=r(13030),m=r(73354),M=r(65686);const d="Projection may be possible after calling projection.load().";function y(n,t,r,e){n.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${r.wkid}).${e?" ":""}${e}`)}function A(n,t,r,e,o,i){return F(0,g.xs.fromTypedArray(n),0,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i))?i:null}function v(n,t,r,e,o,i){return F(1,g.xs.fromTypedArray(n),0,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i))?i:null}function w(n,t,r,e){return(0,f.projectBuffer)(n,t,0,r,e,0)?r:null}function x(n,t,r,e){return(0,f.projectBuffer)(n,t,0,r,e,0)?r:null}function b(n,t,r){return(0,o.Ge)(E,r),(0,m.b)(t,n,E),(0,e.or)(E)&&(0,m.n)(t,t),t}function T(n,t,r){return(0,o.z0)(E,r),(0,M.t)(t,n,E),(0,e.or)(E)&&(0,m.n)(t,t,4),t}function C(n,t,r,e,o,i){if(!F(0,g.xs.fromTypedArray(n,4*Float32Array.BYTES_PER_ELEMENT),1,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<n.length;t+=4)i[t]=n[t];return i}function R(n,t,r,e,o,i){if(!F(1,g.xs.fromTypedArray(n,16),1,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i,16)))return null;for(let t=3;t<n.length;t+=4)i[t]=n[t];return i}function q(n,t,r,e,i){switch((0,s.l)(e,r,k,e),1===n&&(0,u.B8)(k,k),t){case 0:return(0,o.Ge)(i,k);case 1:return(0,o.z0)(i,k)}}function F(n,t,r,e,o,i,u,a){if(!t)return;const l=e.count;if(function(n){return n.isWGS84||(0,p.x1)(n)||(0,p.q8)(n)||(0,p.KQ)(n)}(o))for(let e=0;e<l;e++)i.getVec(e,S),t.getVec(e,N),(0,c.t)(N,N,q(n,r,S,u,E)),a.setVec(e,N);else for(let o=0;o<l;o++){i.getVec(o,S),t.getVec(o,N);const l=(0,h.jg)(e.get(o,1));let s=Math.cos(l);1===r!=(0===n)&&(s=1/s),q(n,r,S,u,E),0===n?(E[0]*=s,E[1]*=s,E[2]*=s,E[3]*=s,E[4]*=s,E[5]*=s):(E[0]*=s,E[3]*=s,E[6]*=s,E[1]*=s,E[4]*=s,E[7]*=s),(0,c.t)(N,N,E),(0,c.n)(N,N),a.setVec(o,N)}return a}const S=(0,l.vt)(),N=(0,l.vt)(),k=(0,a.vt)(),E=(0,i.vt)()},27615:(n,t,r)=>{r.d(t,{CK:()=>c,Hq:()=>a,MW:()=>l,TE:()=>s,yJ:()=>f});var e=r(38954),o=r(86738),i=r(95696),u=r(18251);function a(n){return null!=n.origin}function c(n){return a(n.vertexSpace)}function l(n,t){if(!a(n))return null;const[r,e,i]=n.origin;return new o.A({x:r,y:e,z:i,spatialReference:t})}function s(n,t){const{x:r,y:e,z:o,spatialReference:a}=n,c=[r,e,o??0];return"local"===(t?.vertexSpace??function(n){return n.isGeographic||n.isWebMercator?"local":"georeferenced"}(a))?new u.A({origin:c}):new i.A({origin:c})}function f(n,t){return n.type===t.type&&(n.origin===t.origin||null!=n.origin&&null!=t.origin&&(0,e.m)(n.origin,t.origin))}},38954:(n,t,r)=>{r.d(t,{A:()=>s,B:()=>f,C:()=>y,D:()=>z,E:()=>v,F:()=>_,G:()=>U,H:()=>I,a:()=>X,b:()=>i,c:()=>d,d:()=>u,e:()=>l,f:()=>C,g:()=>T,h:()=>a,i:()=>c,j:()=>M,l:()=>R,m:()=>E,n:()=>b,o:()=>x,p:()=>q,q:()=>w,r:()=>S,s:()=>A,t:()=>F,u:()=>p,v:()=>O,w:()=>K,x:()=>m,y:()=>g,z:()=>h});var e=r(51850),o=r(34304);function i(n){const t=n[0],r=n[1],e=n[2];return Math.sqrt(t*t+r*r+e*e)}function u(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function a(n,t,r,e){return n[0]=t,n[1]=r,n[2]=e,n}function c(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n[2]=t[2]+r[2],n}function l(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],n}function s(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n[2]=t[2]*r[2],n}function f(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n[2]=t[2]/r[2],n}function p(n,t){return n[0]=Math.abs(t[0]),n[1]=Math.abs(t[1]),n[2]=Math.abs(t[2]),n}function h(n,t){return n[0]=Math.sign(t[0]),n[1]=Math.sign(t[1]),n[2]=Math.sign(t[2]),n}function g(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n[2]=Math.min(t[2],r[2]),n}function m(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n[2]=Math.max(t[2],r[2]),n}function M(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n[2]=t[2]*r,n}function d(n,t,r,e){return n[0]=t[0]+r[0]*e,n[1]=t[1]+r[1]*e,n[2]=t[2]+r[2]*e,n}function y(n,t){const r=t[0]-n[0],e=t[1]-n[1],o=t[2]-n[2];return Math.sqrt(r*r+e*e+o*o)}function A(n,t){const r=t[0]-n[0],e=t[1]-n[1],o=t[2]-n[2];return r*r+e*e+o*o}function v(n){const t=n[0],r=n[1],e=n[2];return t*t+r*r+e*e}function w(n,t){return n[0]=-t[0],n[1]=-t[1],n[2]=-t[2],n}function x(n,t){return n[0]=1/t[0],n[1]=1/t[1],n[2]=1/t[2],n}function b(n,t){const r=t[0],e=t[1],o=t[2];let i=r*r+e*e+o*o;return i>0&&(i=1/Math.sqrt(i),n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i),n}function T(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function C(n,t,r){const e=t[0],o=t[1],i=t[2],u=r[0],a=r[1],c=r[2];return n[0]=o*c-i*a,n[1]=i*u-e*c,n[2]=e*a-o*u,n}function R(n,t,r,e){const o=t[0],i=t[1],u=t[2];return n[0]=o+e*(r[0]-o),n[1]=i+e*(r[1]-i),n[2]=u+e*(r[2]-u),n}function q(n,t,r){const e=t[0],o=t[1],i=t[2];return n[0]=r[0]*e+r[4]*o+r[8]*i+r[12],n[1]=r[1]*e+r[5]*o+r[9]*i+r[13],n[2]=r[2]*e+r[6]*o+r[10]*i+r[14],n}function F(n,t,r){const e=t[0],o=t[1],i=t[2];return n[0]=e*r[0]+o*r[3]+i*r[6],n[1]=e*r[1]+o*r[4]+i*r[7],n[2]=e*r[2]+o*r[5]+i*r[8],n}function S(n,t,r){const e=r[0],o=r[1],i=r[2],u=r[3],a=t[0],c=t[1],l=t[2],s=o*l-i*c,f=i*a-e*l,p=e*c-o*a,h=o*p-i*f,g=i*s-e*p,m=e*f-o*s,M=2*u;return n[0]=a+s*M+2*h,n[1]=c+f*M+2*g,n[2]=l+p*M+2*m,n}const N=(0,e.vt)(),k=(0,e.vt)();function E(n,t){return n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2]}function _(n,t){if(n===t)return!0;const r=n[0],e=n[1],i=n[2],u=t[0],a=t[1],c=t[2],l=(0,o.FD)();return Math.abs(r-u)<=l*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-a)<=l*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))}function z(n,t,r){const e=r[0]-t[0],o=r[1]-t[1],i=r[2]-t[2];let u=e*e+o*o+i*i;return u>0?(u=1/Math.sqrt(u),n[0]=e*u,n[1]=o*u,n[2]=i*u,n):(n[0]=0,n[1]=0,n[2]=0,n)}const X=l,j=s,B=f,U=y,O=A,I=i,K=v;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:c,angle:function(n,t){b(N,n),b(k,t);const r=T(N,k);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(n,t,r,e,o,i){const u=1-i,a=u*u,c=i*i,l=a*u,s=3*i*a,f=3*c*u,p=c*i;return n[0]=t[0]*l+r[0]*s+e[0]*f+o[0]*p,n[1]=t[1]*l+r[1]*s+e[1]*f+o[1]*p,n[2]=t[2]*l+r[2]*s+e[2]*f+o[2]*p,n},ceil:function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n[2]=Math.ceil(t[2]),n},clamp:function(n,t=0,r=1){return n[0]=Math.min(Math.max(n[0],t),r),n[1]=Math.min(Math.max(n[1],t),r),n[2]=Math.min(Math.max(n[2],t),r),n},copy:u,cross:C,crossAndNormalize:function(n,t,r){const e=t[0],o=t[1],i=t[2],u=r[0],a=r[1],c=r[2],l=o*c-i*a,s=i*u-e*c,f=e*a-o*u,p=Math.sqrt(l*l+s*s+f*f);return n[0]=l/p,n[1]=s/p,n[2]=f/p,n},direction:z,dist:U,distance:y,div:B,divide:f,dot:T,equals:_,exactEquals:E,floor:function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n[2]=Math.floor(t[2]),n},hermite:function(n,t,r,e,o,i){const u=i*i,a=u*(2*i-3)+1,c=u*(i-2)+i,l=u*(i-1),s=u*(3-2*i);return n[0]=t[0]*a+r[0]*c+e[0]*l+o[0]*s,n[1]=t[1]*a+r[1]*c+e[1]*l+o[1]*s,n[2]=t[2]*a+r[2]*c+e[2]*l+o[2]*s,n},inverse:x,len:I,length:i,lerp:R,max:m,min:g,mul:j,multiply:s,negate:w,normalize:b,random:function(n,t=1){const r=o.Ov,e=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*t;return n[0]=Math.cos(e)*u,n[1]=Math.sin(e)*u,n[2]=i*t,n},rotateX:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[0],i[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),i[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},rotateY:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),i[1]=o[1],i[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},rotateZ:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),i[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),i[2]=o[2],n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},round:function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n[2]=Math.round(t[2]),n},scale:M,scaleAndAdd:d,set:a,sign:h,sqrDist:O,sqrLen:K,squaredDistance:A,squaredLength:v,str:function(n){return"vec3("+n[0]+", "+n[1]+", "+n[2]+")"},sub:X,subtract:l,transformMat3:F,transformMat4:q,transformQuat:S},Symbol.toStringTag,{value:"Module"}))},48163:(n,t,r)=>{function e(){return[0,0]}function o(n){return[n[0],n[1]]}function i(n,t){return[n,t]}function u(){return i(1,1)}function a(){return i(1,0)}function c(){return i(0,1)}r.d(t,{Un:()=>l,fA:()=>i,o8:()=>o,vt:()=>e});const l=u(),s=a(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:s,UNIT_Y:f,ZEROS:[0,0],clone:o,create:e,freeze:function(n,t){return[n,t]},fromArray:function(n,t=[0,0]){const r=Math.min(2,n.length);for(let e=0;e<r;++e)t[e]=n[e];return t},fromValues:i,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(n,t,r)=>{r.d(t,{l:()=>l});var e=r(34727),o=r(58083),i=r(51850);function u(n,t,r){const e=Math.sin(n),o=Math.cos(n),i=Math.sin(t),u=Math.cos(t),a=r;return a[0]=-e,a[4]=-i*o,a[8]=u*o,a[12]=0,a[1]=o,a[5]=-i*e,a[9]=u*e,a[13]=0,a[2]=0,a[6]=u,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=r(37539),c=r(21325);function l(n,t,r,e){const i=(0,a.Tp)(n,e);if(null==i)return!1;const l=i.source.spatialReferenceId,g=i.dest.spatialReferenceId;if(l===g&&!s(g)&&(0!==l||(0,c.aI)(n,e)))return(0,o.kN)(r,t),!0;if(s(g)){const n=a.w5[l][10],e=a.w5[10][g];return null!=n&&null!=e&&(n(t,0,p,0),e(p,0,h,0),u(f*p[0],f*p[1],r),r[12]=h[0],r[13]=h[1],r[14]=h[2],!0)}const m=s(l);if((3===g||11===g||2===g||5===g)&&(2===l||m||3===l||5===l)){const n=a.w5[l][10],e=a.w5[10][g];return null!=n&&null!=e&&(n(t,0,p,0),e(p,0,h,0),m?function(n,t,r){u(n,t,r),(0,o.mg)(r,r)}(f*p[0],f*p[1],r):(0,o.D_)(r),r[12]=h[0],r[13]=h[1],r[14]=h[2],!0)}return!1}function s(n){return 1===n||6===n||8===n||4===n}const f=(0,e.kU)(1),p=(0,i.vt)(),h=(0,i.vt)()},72258:(n,t,r)=>{r.d(t,{UR:()=>w,p5:()=>v,xK:()=>q});var e=r(53966),o=r(34727),i=r(86211),u=r(77690),a=r(29242),c=r(58083),l=r(9093),s=r(38954),f=r(51850),p=r(98764),h=r(48353),g=r(65806),m=r(27615),M=r(21325),d=r(73354),y=r(22141);const A=()=>e.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function v(n,t,{vertexSpace:r,spatialReference:e}){if("georeferenced"===r.type){const o=n;if(!(0,g.g)(t,o,e))return!1;const{origin:i}=r;return(0,s.e)(n,o,i),!0}const o=(0,p.lO)(e),i=n;if(!(0,g.g)(t,i,o))return!1;const{origin:u}=r,a=E;if(!(0,h.l)(e,u,a,o))return!1;const l=(0,c.B8)(E,a);return null!=l&&((0,s.p)(n,i,l),!0)}function w(n,t,r){const{vertexSpace:e,transform:o,vertexAttributes:i}=n,a=(0,m.Hq)(e)?o:null,f=C(n.spatialReference,r,3);if((0,m.yJ)(e,t)&&(!a||(0,c.t2)(a.localMatrix,l.zK))&&R(f)){const{position:n,normal:t,tangent:e}=i,o=r?.allowBufferReuse;return{position:o?n:n.slice(),normal:o?t:t?.slice(),tangent:o?e:e?.slice()}}switch(n.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:r},{origin:e},o,i){const u=x(t,i);if(!(0,h.l)(t,e,F,u))return(0,y.CN)(A(),t,u),null;if(r&&(0,c.lw)(F,F,r.localMatrix),!(0,h.l)(t,o,S,u))return(0,y.CN)(A(),u,t),null;(0,c.B8)(S,S);const a=(0,c.lw)(F,S,F);return T(a,t,i,3),b(n,a)}(n,n.vertexSpace,t.origin,r):function({spatialReference:n,vertexAttributes:t,transform:r},{origin:e},o,i){const u=x(n,i);if(!(0,h.l)(n,e,F,u))return(0,y.CN)(A(),n,u),null;r&&(0,c.lw)(F,F,r.localMatrix),T(F,n,i,1);const a=new Float64Array(t.position.length),l=function(n,t,r,e,o){(0,d.t)(e,n,t);const i=new Float64Array(n.length);return(0,y.$5)(e,o,i,r)?i:((0,y.CN)(A(),o,r),null)}(t.position,F,n,a,u);if(!l)return null;const f=function(n,t,r,e,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,y.qs)(o,u,i),(0,y.si)(u,n,t,r,e,u)?u:((0,y.CN)(A(),e,t),null)}(l,n,a,u,t.normal,F);if(t.normal&&!f)return null;const p=function(n,t,r,e,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,y.KM)(o,u,i),(0,y.Mv)(u,n,t,r,e,u)?u:((0,y.CN)(A(),e,t),null)}(l,n,a,u,t.tangent,F);if(t.tangent&&!p)return null;if(o){const n=(0,s.q)(k,o);(0,d.a)(l,l,n)}return{position:l,normal:f,tangent:p}}(n,n.vertexSpace,t.origin,r);case"georeferenced":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:r},{origin:e},o,i){const a=x(t,i);if(!(0,h.l)(t,o,F,a))return(0,y.CN)(A(),t,a),null;const l=1/C(t,i,2);(0,c.hs)(F,F,[l,l,l]);const s=(0,c.B8)(S,F),{position:f,normal:p,tangent:g}=function(n,t,r){if(!t)return n;if(!r){const{position:r,normal:e,tangent:o}=n;return{position:(0,d.a)(new Float64Array(r.length),r,t),tangent:o,normal:e}}const e=b(n,r.localMatrix);return(0,d.a)(e.position,e.position,t),e}(n,e,r),m=new Float64Array(f.length),M=function(n,t,r,e,o){const i=(0,y.gr)(n,t,e,o);if(!i)return(0,y.CN)(A(),t,o),null;const u=new Float64Array(i.length);return(0,d.t)(u,i,r),u}(f,t,s,m,a);if(!M)return null;const v=(0,u.Ge)(N,s),w=function(n,t,r,e,o,i,u){if(null==n)return null;const a=u??new Float32Array(n.length);return(0,y.X4)(n,t,r,e,o,a)?((0,d.b)(a,a,i),a):((0,y.CN)(A(),r,o),null)}(p,f,t,m,a,v,p!==n.normal?p:void 0);if(!w&&p)return null;const T=function(n,t,r,e,o,i,u){if(null==n)return null;const a=u??new Float32Array(n.length);return(0,y.xA)(n,t,r,e,o,a)?((0,d.b)(a,a,i,4),a):((0,y.CN)(A(),r,o),null)}(g,f,t,m,a,v,g!==n.tangent?g:void 0);return!T&&g?null:{position:M,normal:w,tangent:T}}(n,n.vertexSpace,t.origin,r):function({vertexAttributes:n,transform:t,spatialReference:r},{origin:e},o,i){const u=C(r,i,3),a=e||!R(u)?(0,c.C)(F,t?.localMatrix??l.zK):null;a&&T(a,r,i,3);const{position:f,normal:p,tangent:h}=a?b(n,a):n,g=i?.allowBufferReuse,m=g?f:new Float64Array(f.length);let M=f;if(e&&(M=(0,d.a)(m,M,e)),o){const n=(0,s.q)(k,o);M=(0,d.a)(m,M,n)}return{position:M!==n.position||g?M:M.slice(),normal:p!==n.normal||g?p:p?.slice(),tangent:h!==n.tangent||g?h:h?.slice()}}(n,n.vertexSpace,t.origin,r)}}function x(n,t){return t?.useEllipsoid&&(0,M.B3)(n)?p.Y0:(0,p.lO)(n)}function b(n,t){const r=new Float64Array(n.position.length);(0,d.t)(r,n.position,t);const e=n.normal?new Float32Array(n.normal.length):null,o=n.tangent?new Float32Array(n.tangent.length):null;return e&&n.normal&&(0,y.qs)(n.normal,e,t),o&&n.tangent&&(0,y.KM)(n.tangent,o,t),{position:r,normal:e,tangent:o}}function T(n,t,r,e){const o=C(t,r,e);R(o)||(0,c.hs)(n,n,[o,o,o])}function C(n,t,r){const e=!!(1&r),o=!!(2&r),i=t?.sourceUnit,u=t?.targetUnit;if(!i&&!u)return 1;let a=q(i,n);e||!i||R(a)||(A().warn("source unit conversion not supported"),a=1);let c=1/q(u,n);return o||!u||R(c)||(A().warn("target unit conversion not supported"),c=1),a*c}function R(n){return(0,o.Io)(n,1)}function q(n,t){if(null==n)return 1;const r=(0,i.KX)(t);return 1/(0,i.oU)(r,"meters",n)}const F=(0,l.vt)(),S=(0,l.vt)(),N=(0,a.vt)(),k=(0,f.vt)(),E=(0,l.vt)()},74594:(n,t,r)=>{r.d(t,{projectMeshVertexPositions:()=>a});var e=r(9762),o=r(95696),i=r(21325),u=r(72258);function a(n,t){const r=(0,u.UR)(n,o.A.absolute);if(!r)return null;let a=r.position;return(0,i.aI)(n.spatialReference,t)||(a=new Float64Array(r.position.length),(0,e.projectBuffer)(r.position,n.spatialReference,0,a,t,0))?a:null}},98764:(n,t,r)=>{r.d(t,{Y0:()=>l,lO:()=>s});var e=r(73941),o=r(16930),i=r(21325);const u=new o.A(e.fv),a=new o.A(e.FY),c=new o.A(e.LJ),l=new o.A(e.Ro);function s(n){const t=f.get(n);if(t)return t;let r=u;if(n)if(n===a)r=a;else if(n===c)r=c;else{const t=n.wkid,e=n.latestWkid;if(null!=t||null!=e)(0,i.tl)(t)||(0,i.tl)(e)?r=a:((0,i.ZL)(t)||(0,i.ZL)(e))&&(r=c);else{const t=n.wkt2??n.wkt;if(t){const n=t.toUpperCase();n===p?r=a:n===h&&(r=c)}}}return f.set(n,r),r}const f=new Map,p=a.wkt.toUpperCase(),h=c.wkt.toUpperCase()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7836],{22141:(n,t,r)=>{r.d(t,{$5:()=>x,CN:()=>y,JP:()=>d,KM:()=>T,Mv:()=>R,X4:()=>A,gr:()=>w,qs:()=>b,si:()=>v,xA:()=>C});var e=r(34727),o=r(77690),i=r(29242),u=r(58083),a=r(9093),c=r(38954),l=r(51850),s=r(48353),f=r(9762),p=(r(79258),r(21325)),h=r(28735),g=r(13030),m=r(73354),M=r(65686);const d="Projection may be possible after calling projection.load().";function y(n,t,r,e){n.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${r.wkid}).${e?" ":""}${e}`)}function A(n,t,r,e,o,i){return F(0,g.xs.fromTypedArray(n),0,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i))?i:null}function v(n,t,r,e,o,i){return F(1,g.xs.fromTypedArray(n),0,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i))?i:null}function w(n,t,r,e){return(0,f.projectBuffer)(n,t,0,r,e,0)?r:null}function x(n,t,r,e){return(0,f.projectBuffer)(n,t,0,r,e,0)?r:null}function b(n,t,r){return(0,o.Ge)(E,r),(0,m.b)(t,n,E),(0,e.or)(E)&&(0,m.n)(t,t),t}function T(n,t,r){return(0,o.z0)(E,r),(0,M.t)(t,n,E),(0,e.or)(E)&&(0,m.n)(t,t,4),t}function C(n,t,r,e,o,i){if(!F(0,g.xs.fromTypedArray(n,4*Float32Array.BYTES_PER_ELEMENT),1,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<n.length;t+=4)i[t]=n[t];return i}function R(n,t,r,e,o,i){if(!F(1,g.xs.fromTypedArray(n,16),1,g.Xm.fromTypedArray(t),r,g.Xm.fromTypedArray(e),o,g.xs.fromTypedArray(i,16)))return null;for(let t=3;t<n.length;t+=4)i[t]=n[t];return i}function q(n,t,r,e,i){switch((0,s.l)(e,r,k,e),1===n&&(0,u.B8)(k,k),t){case 0:return(0,o.Ge)(i,k);case 1:return(0,o.z0)(i,k)}}function F(n,t,r,e,o,i,u,a){if(!t)return;const l=e.count;if(function(n){return n.isWGS84||(0,p.x1)(n)||(0,p.q8)(n)||(0,p.KQ)(n)}(o))for(let e=0;e<l;e++)i.getVec(e,S),t.getVec(e,N),(0,c.t)(N,N,q(n,r,S,u,E)),a.setVec(e,N);else for(let o=0;o<l;o++){i.getVec(o,S),t.getVec(o,N);const l=(0,h.jg)(e.get(o,1));let s=Math.cos(l);1===r!=(0===n)&&(s=1/s),q(n,r,S,u,E),0===n?(E[0]*=s,E[1]*=s,E[2]*=s,E[3]*=s,E[4]*=s,E[5]*=s):(E[0]*=s,E[3]*=s,E[6]*=s,E[1]*=s,E[4]*=s,E[7]*=s),(0,c.t)(N,N,E),(0,c.n)(N,N),a.setVec(o,N)}return a}const S=(0,l.vt)(),N=(0,l.vt)(),k=(0,a.vt)(),E=(0,i.vt)()},27615:(n,t,r)=>{r.d(t,{CK:()=>c,Hq:()=>a,MW:()=>l,TE:()=>s,yJ:()=>f});var e=r(38954),o=r(86738),i=r(95696),u=r(18251);function a(n){return null!=n.origin}function c(n){return a(n.vertexSpace)}function l(n,t){if(!a(n))return null;const[r,e,i]=n.origin;return new o.A({x:r,y:e,z:i,spatialReference:t})}function s(n,t){const{x:r,y:e,z:o,spatialReference:a}=n,c=[r,e,o??0];return"local"===(t?.vertexSpace??function(n){return n.isGeographic||n.isWebMercator?"local":"georeferenced"}(a))?new u.A({origin:c}):new i.A({origin:c})}function f(n,t){return n.type===t.type&&(n.origin===t.origin||null!=n.origin&&null!=t.origin&&(0,e.m)(n.origin,t.origin))}},38954:(n,t,r)=>{r.d(t,{A:()=>h,B:()=>s,C:()=>f,D:()=>y,E:()=>z,F:()=>v,G:()=>_,H:()=>U,a:()=>X,b:()=>i,c:()=>d,d:()=>u,e:()=>l,f:()=>C,g:()=>T,h:()=>a,i:()=>c,j:()=>M,l:()=>R,m:()=>E,n:()=>b,o:()=>x,p:()=>q,q:()=>w,r:()=>S,s:()=>A,t:()=>F,u:()=>I,v:()=>p,w:()=>O,x:()=>K,y:()=>m,z:()=>g});var e=r(51850),o=r(34304);function i(n){const t=n[0],r=n[1],e=n[2];return Math.sqrt(t*t+r*r+e*e)}function u(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function a(n,t,r,e){return n[0]=t,n[1]=r,n[2]=e,n}function c(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n[2]=t[2]+r[2],n}function l(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],n}function s(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n[2]=t[2]*r[2],n}function f(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n[2]=t[2]/r[2],n}function p(n,t){return n[0]=Math.abs(t[0]),n[1]=Math.abs(t[1]),n[2]=Math.abs(t[2]),n}function h(n,t){return n[0]=Math.sign(t[0]),n[1]=Math.sign(t[1]),n[2]=Math.sign(t[2]),n}function g(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n[2]=Math.min(t[2],r[2]),n}function m(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n[2]=Math.max(t[2],r[2]),n}function M(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n[2]=t[2]*r,n}function d(n,t,r,e){return n[0]=t[0]+r[0]*e,n[1]=t[1]+r[1]*e,n[2]=t[2]+r[2]*e,n}function y(n,t){const r=t[0]-n[0],e=t[1]-n[1],o=t[2]-n[2];return Math.sqrt(r*r+e*e+o*o)}function A(n,t){const r=t[0]-n[0],e=t[1]-n[1],o=t[2]-n[2];return r*r+e*e+o*o}function v(n){const t=n[0],r=n[1],e=n[2];return t*t+r*r+e*e}function w(n,t){return n[0]=-t[0],n[1]=-t[1],n[2]=-t[2],n}function x(n,t){return n[0]=1/t[0],n[1]=1/t[1],n[2]=1/t[2],n}function b(n,t){const r=t[0],e=t[1],o=t[2];let i=r*r+e*e+o*o;return i>0&&(i=1/Math.sqrt(i),n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i),n}function T(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function C(n,t,r){const e=t[0],o=t[1],i=t[2],u=r[0],a=r[1],c=r[2];return n[0]=o*c-i*a,n[1]=i*u-e*c,n[2]=e*a-o*u,n}function R(n,t,r,e){const o=t[0],i=t[1],u=t[2];return n[0]=o+e*(r[0]-o),n[1]=i+e*(r[1]-i),n[2]=u+e*(r[2]-u),n}function q(n,t,r){const e=t[0],o=t[1],i=t[2];return n[0]=r[0]*e+r[4]*o+r[8]*i+r[12],n[1]=r[1]*e+r[5]*o+r[9]*i+r[13],n[2]=r[2]*e+r[6]*o+r[10]*i+r[14],n}function F(n,t,r){const e=t[0],o=t[1],i=t[2];return n[0]=e*r[0]+o*r[3]+i*r[6],n[1]=e*r[1]+o*r[4]+i*r[7],n[2]=e*r[2]+o*r[5]+i*r[8],n}function S(n,t,r){const e=r[0],o=r[1],i=r[2],u=r[3],a=t[0],c=t[1],l=t[2],s=o*l-i*c,f=i*a-e*l,p=e*c-o*a,h=o*p-i*f,g=i*s-e*p,m=e*f-o*s,M=2*u;return n[0]=a+s*M+2*h,n[1]=c+f*M+2*g,n[2]=l+p*M+2*m,n}const N=(0,e.vt)(),k=(0,e.vt)();function E(n,t){return n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2]}function _(n,t){if(n===t)return!0;const r=n[0],e=n[1],i=n[2],u=t[0],a=t[1],c=t[2],l=(0,o.FD)();return Math.abs(r-u)<=l*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-a)<=l*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(i-c)<=l*Math.max(1,Math.abs(i),Math.abs(c))}function z(n,t,r){const e=r[0]-t[0],o=r[1]-t[1],i=r[2]-t[2];let u=e*e+o*o+i*i;return u>0?(u=1/Math.sqrt(u),n[0]=e*u,n[1]=o*u,n[2]=i*u,n):(n[0]=0,n[1]=0,n[2]=0,n)}const X=l,j=s,B=f,U=y,O=A,I=i,K=v;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:c,angle:function(n,t){b(N,n),b(k,t);const r=T(N,k);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(n,t,r,e,o,i){const u=1-i,a=u*u,c=i*i,l=a*u,s=3*i*a,f=3*c*u,p=c*i;return n[0]=t[0]*l+r[0]*s+e[0]*f+o[0]*p,n[1]=t[1]*l+r[1]*s+e[1]*f+o[1]*p,n[2]=t[2]*l+r[2]*s+e[2]*f+o[2]*p,n},ceil:function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n[2]=Math.ceil(t[2]),n},clamp:function(n,t=0,r=1){return n[0]=Math.min(Math.max(n[0],t),r),n[1]=Math.min(Math.max(n[1],t),r),n[2]=Math.min(Math.max(n[2],t),r),n},copy:u,cross:C,crossAndNormalize:function(n,t,r){const e=t[0],o=t[1],i=t[2],u=r[0],a=r[1],c=r[2],l=o*c-i*a,s=i*u-e*c,f=e*a-o*u,p=Math.sqrt(l*l+s*s+f*f);return n[0]=l/p,n[1]=s/p,n[2]=f/p,n},direction:z,dist:U,distance:y,div:B,divide:f,dot:T,equals:_,exactEquals:E,floor:function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n[2]=Math.floor(t[2]),n},hermite:function(n,t,r,e,o,i){const u=i*i,a=u*(2*i-3)+1,c=u*(i-2)+i,l=u*(i-1),s=u*(3-2*i);return n[0]=t[0]*a+r[0]*c+e[0]*l+o[0]*s,n[1]=t[1]*a+r[1]*c+e[1]*l+o[1]*s,n[2]=t[2]*a+r[2]*c+e[2]*l+o[2]*s,n},inverse:x,len:I,length:i,lerp:R,max:m,min:g,mul:j,multiply:s,negate:w,normalize:b,random:function(n,t=1){const r=o.Ov,e=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*t;return n[0]=Math.cos(e)*u,n[1]=Math.sin(e)*u,n[2]=i*t,n},rotateX:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[0],i[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),i[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},rotateY:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),i[1]=o[1],i[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},rotateZ:function(n,t,r,e){const o=[],i=[];return o[0]=t[0]-r[0],o[1]=t[1]-r[1],o[2]=t[2]-r[2],i[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),i[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),i[2]=o[2],n[0]=i[0]+r[0],n[1]=i[1]+r[1],n[2]=i[2]+r[2],n},round:function(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n[2]=Math.round(t[2]),n},scale:M,scaleAndAdd:d,set:a,sign:h,sqrDist:O,sqrLen:K,squaredDistance:A,squaredLength:v,str:function(n){return"vec3("+n[0]+", "+n[1]+", "+n[2]+")"},sub:X,subtract:l,transformMat3:F,transformMat4:q,transformQuat:S},Symbol.toStringTag,{value:"Module"}))},48163:(n,t,r)=>{function e(){return[0,0]}function o(n){return[n[0],n[1]]}function i(n,t){return[n,t]}function u(){return i(1,1)}function a(){return i(1,0)}function c(){return i(0,1)}r.d(t,{Un:()=>l,fA:()=>i,o8:()=>o,vt:()=>e});const l=u(),s=a(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:s,UNIT_Y:f,ZEROS:[0,0],clone:o,create:e,freeze:function(n,t){return[n,t]},fromArray:function(n,t=[0,0]){const r=Math.min(2,n.length);for(let e=0;e<r;++e)t[e]=n[e];return t},fromValues:i,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(n,t,r)=>{r.d(t,{l:()=>l});var e=r(34727),o=r(58083),i=r(51850);function u(n,t,r){const e=Math.sin(n),o=Math.cos(n),i=Math.sin(t),u=Math.cos(t),a=r;return a[0]=-e,a[4]=-i*o,a[8]=u*o,a[12]=0,a[1]=o,a[5]=-i*e,a[9]=u*e,a[13]=0,a[2]=0,a[6]=u,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=r(37539),c=r(21325);function l(n,t,r,e){const i=(0,a.Tp)(n,e);if(null==i)return!1;const l=i.source.spatialReferenceId,g=i.dest.spatialReferenceId;if(l===g&&!s(g)&&(0!==l||(0,c.aI)(n,e)))return(0,o.kN)(r,t),!0;if(s(g)){const n=a.w5[l][10],e=a.w5[10][g];return null!=n&&null!=e&&(n(t,0,p,0),e(p,0,h,0),u(f*p[0],f*p[1],r),r[12]=h[0],r[13]=h[1],r[14]=h[2],!0)}const m=s(l);if((3===g||11===g||2===g||5===g)&&(2===l||m||3===l||5===l)){const n=a.w5[l][10],e=a.w5[10][g];return null!=n&&null!=e&&(n(t,0,p,0),e(p,0,h,0),m?function(n,t,r){u(n,t,r),(0,o.mg)(r,r)}(f*p[0],f*p[1],r):(0,o.D_)(r),r[12]=h[0],r[13]=h[1],r[14]=h[2],!0)}return!1}function s(n){return 1===n||6===n||8===n||4===n}const f=(0,e.kU)(1),p=(0,i.vt)(),h=(0,i.vt)()},72258:(n,t,r)=>{r.d(t,{UR:()=>w,p5:()=>v,xK:()=>q});var e=r(53966),o=r(34727),i=r(86211),u=r(77690),a=r(29242),c=r(58083),l=r(9093),s=r(38954),f=r(51850),p=r(98764),h=r(48353),g=r(65806),m=r(27615),M=r(21325),d=r(73354),y=r(22141);const A=()=>e.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function v(n,t,{vertexSpace:r,spatialReference:e}){if("georeferenced"===r.type){const o=n;if(!(0,g.g)(t,o,e))return!1;const{origin:i}=r;return(0,s.e)(n,o,i),!0}const o=(0,p.lO)(e),i=n;if(!(0,g.g)(t,i,o))return!1;const{origin:u}=r,a=E;if(!(0,h.l)(e,u,a,o))return!1;const l=(0,c.B8)(E,a);return null!=l&&((0,s.p)(n,i,l),!0)}function w(n,t,r){const{vertexSpace:e,transform:o,vertexAttributes:i}=n,a=(0,m.Hq)(e)?o:null,f=C(n.spatialReference,r,3);if((0,m.yJ)(e,t)&&(!a||(0,c.t2)(a.localMatrix,l.zK))&&R(f)){const{position:n,normal:t,tangent:e}=i,o=r?.allowBufferReuse;return{position:o?n:n.slice(),normal:o?t:t?.slice(),tangent:o?e:e?.slice()}}switch(n.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:r},{origin:e},o,i){const u=x(t,i);if(!(0,h.l)(t,e,F,u))return(0,y.CN)(A(),t,u),null;if(r&&(0,c.lw)(F,F,r.localMatrix),!(0,h.l)(t,o,S,u))return(0,y.CN)(A(),u,t),null;(0,c.B8)(S,S);const a=(0,c.lw)(F,S,F);return T(a,t,i,3),b(n,a)}(n,n.vertexSpace,t.origin,r):function({spatialReference:n,vertexAttributes:t,transform:r},{origin:e},o,i){const u=x(n,i);if(!(0,h.l)(n,e,F,u))return(0,y.CN)(A(),n,u),null;r&&(0,c.lw)(F,F,r.localMatrix),T(F,n,i,1);const a=new Float64Array(t.position.length),l=function(n,t,r,e,o){(0,d.t)(e,n,t);const i=new Float64Array(n.length);return(0,y.$5)(e,o,i,r)?i:((0,y.CN)(A(),o,r),null)}(t.position,F,n,a,u);if(!l)return null;const f=function(n,t,r,e,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,y.qs)(o,u,i),(0,y.si)(u,n,t,r,e,u)?u:((0,y.CN)(A(),e,t),null)}(l,n,a,u,t.normal,F);if(t.normal&&!f)return null;const p=function(n,t,r,e,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,y.KM)(o,u,i),(0,y.Mv)(u,n,t,r,e,u)?u:((0,y.CN)(A(),e,t),null)}(l,n,a,u,t.tangent,F);if(t.tangent&&!p)return null;if(o){const n=(0,s.q)(k,o);(0,d.a)(l,l,n)}return{position:l,normal:f,tangent:p}}(n,n.vertexSpace,t.origin,r);case"georeferenced":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:r},{origin:e},o,i){const a=x(t,i);if(!(0,h.l)(t,o,F,a))return(0,y.CN)(A(),t,a),null;const l=1/C(t,i,2);(0,c.hs)(F,F,[l,l,l]);const s=(0,c.B8)(S,F),{position:f,normal:p,tangent:g}=function(n,t,r){if(!t)return n;if(!r){const{position:r,normal:e,tangent:o}=n;return{position:(0,d.a)(new Float64Array(r.length),r,t),tangent:o,normal:e}}const e=b(n,r.localMatrix);return(0,d.a)(e.position,e.position,t),e}(n,e,r),m=new Float64Array(f.length),M=function(n,t,r,e,o){const i=(0,y.gr)(n,t,e,o);if(!i)return(0,y.CN)(A(),t,o),null;const u=new Float64Array(i.length);return(0,d.t)(u,i,r),u}(f,t,s,m,a);if(!M)return null;const v=(0,u.Ge)(N,s),w=function(n,t,r,e,o,i,u){if(null==n)return null;const a=u??new Float32Array(n.length);return(0,y.X4)(n,t,r,e,o,a)?((0,d.b)(a,a,i),a):((0,y.CN)(A(),r,o),null)}(p,f,t,m,a,v,p!==n.normal?p:void 0);if(!w&&p)return null;const T=function(n,t,r,e,o,i,u){if(null==n)return null;const a=u??new Float32Array(n.length);return(0,y.xA)(n,t,r,e,o,a)?((0,d.b)(a,a,i,4),a):((0,y.CN)(A(),r,o),null)}(g,f,t,m,a,v,g!==n.tangent?g:void 0);return!T&&g?null:{position:M,normal:w,tangent:T}}(n,n.vertexSpace,t.origin,r):function({vertexAttributes:n,transform:t,spatialReference:r},{origin:e},o,i){const u=C(r,i,3),a=e||!R(u)?(0,c.C)(F,t?.localMatrix??l.zK):null;a&&T(a,r,i,3);const{position:f,normal:p,tangent:h}=a?b(n,a):n,g=i?.allowBufferReuse,m=g?f:new Float64Array(f.length);let M=f;if(e&&(M=(0,d.a)(m,M,e)),o){const n=(0,s.q)(k,o);M=(0,d.a)(m,M,n)}return{position:M!==n.position||g?M:M.slice(),normal:p!==n.normal||g?p:p?.slice(),tangent:h!==n.tangent||g?h:h?.slice()}}(n,n.vertexSpace,t.origin,r)}}function x(n,t){return t?.useEllipsoid&&(0,M.B3)(n)?p.Y0:(0,p.lO)(n)}function b(n,t){const r=new Float64Array(n.position.length);(0,d.t)(r,n.position,t);const e=n.normal?new Float32Array(n.normal.length):null,o=n.tangent?new Float32Array(n.tangent.length):null;return e&&n.normal&&(0,y.qs)(n.normal,e,t),o&&n.tangent&&(0,y.KM)(n.tangent,o,t),{position:r,normal:e,tangent:o}}function T(n,t,r,e){const o=C(t,r,e);R(o)||(0,c.hs)(n,n,[o,o,o])}function C(n,t,r){const e=!!(1&r),o=!!(2&r),i=t?.sourceUnit,u=t?.targetUnit;if(!i&&!u)return 1;let a=q(i,n);e||!i||R(a)||(A().warn("source unit conversion not supported"),a=1);let c=1/q(u,n);return o||!u||R(c)||(A().warn("target unit conversion not supported"),c=1),a*c}function R(n){return(0,o.Io)(n,1)}function q(n,t){if(null==n)return 1;const r=(0,i.KX)(t);return 1/(0,i.oU)(r,"meters",n)}const F=(0,l.vt)(),S=(0,l.vt)(),N=(0,a.vt)(),k=(0,f.vt)(),E=(0,l.vt)()},74594:(n,t,r)=>{r.d(t,{projectMeshVertexPositions:()=>a});var e=r(9762),o=r(95696),i=r(21325),u=r(72258);function a(n,t){const r=(0,u.UR)(n,o.A.absolute);if(!r)return null;let a=r.position;return(0,i.aI)(n.spatialReference,t)||(a=new Float64Array(r.position.length),(0,e.projectBuffer)(r.position,n.spatialReference,0,a,t,0))?a:null}},98764:(n,t,r)=>{r.d(t,{Y0:()=>l,lO:()=>s});var e=r(73941),o=r(16930),i=r(21325);const u=new o.A(e.fv),a=new o.A(e.FY),c=new o.A(e.LJ),l=new o.A(e.Ro);function s(n){const t=f.get(n);if(t)return t;let r=u;if(n)if(n===a)r=a;else if(n===c)r=c;else{const t=n.wkid,e=n.latestWkid;if(null!=t||null!=e)(0,i.tl)(t)||(0,i.tl)(e)?r=a:((0,i.ZL)(t)||(0,i.ZL)(e))&&(r=c);else{const t=n.wkt2??n.wkt;if(t){const n=t.toUpperCase();n===p?r=a:n===h&&(r=c)}}}return f.set(n,r),r}const f=new Map,p=a.wkt.toUpperCase(),h=c.wkt.toUpperCase()}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1698],{24045:(e,t,r)=>{function o(e,t){const r=e.count;t||(t=new e.TypedArrayConstructor(r));for(let o=0;o<r;o++)t[o]=e.get(o);return t}r.d(t,{m:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,makeDense:o},Symbol.toStringTag,{value:"Module"}))},51698:(e,t,r)=>{r.d(t,{loadGLTF:()=>j});var o=r(53966),n=r(93637),s=r(9093),a=r(49186),i=r(91869),u=r(74887),l=r(84952),c=r(46140),f=r(58083),d=r(67026),p=r(82534),m=r(13030),h=r(24045),T=(r(44208),r(2741));let w;function g(){return w??=(async()=>{const{default:e}=await r.e(2423).then(r.bind(r,2423));return await e({locateFile:e=>(0,T.s)(`esri/libs/dracoMeshDecoder/${e}`)})})(),w}class b{constructor(e){this._data=e,this._offset4=0,this._dataUint32=new Uint32Array(this._data,0,Math.floor(this._data.byteLength/4))}readUint32(){const e=this._offset4;return this._offset4+=1,this._dataUint32[e]}readUint8Array(e){const t=4*this._offset4;return this._offset4+=e/4,new Uint8Array(this._data,t,e)}remainingBytes(){return this._data.byteLength-4*this._offset4}}var y=r(21818);const x={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1},_={pbrMetallicRoughness:x,emissiveFactor:[0,0,0],alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1},S={ESRI_externalColorMixMode:"tint",ESRI_receiveShadows:!0,ESRI_receiveAmbientOcclusion:!0},A=(e={})=>{const t={...x,...e.pbrMetallicRoughness},r=function(e){switch(e.ESRI_externalColorMixMode){case"multiply":case"tint":case"ignore":case"replace":break;default:(0,y.Xb)(e.ESRI_externalColorMixMode),e.ESRI_externalColorMixMode="tint"}return e}({...S,...e.extras});return{..._,...e,pbrMetallicRoughness:t,extras:r}},O={magFilter:9729,minFilter:9987,wrapS:10497,wrapT:10497},v=e=>({...O,...e});var R=r(51530),N=r(63907);const C=1179937895;class E{constructor(e,t,r,o){if(this._context=e,this.uri=t,this.json=r,this._glbBuffer=o,this._bufferLoaders=new Map,this._textureLoaders=new Map,this._dracoBuffersSize=0,this._textureCache=new Map,this._materialCache=new Map,this._nodeParentMap=new Map,this._nodeTransformCache=new Map,this._supportedExtensions=["KHR_texture_basisu","KHR_texture_transform","KHR_draco_mesh_compression","KHR_materials_emissive_strength"],this._baseUri=function(e){let t,r;return e.replace(/^(.*\/)?([^/]*)$/,(e,o,n)=>(t=o||"",r=n||"","")),{dirPart:t,filePart:r}}(this.uri).dirPart,this._checkVersionSupported(),this._checkRequiredExtensionsSupported(),null==r.scenes)throw new a.A("gltf-loader-unsupported-feature","Scenes must be defined.");if(null==r.meshes)throw new a.A("gltf-loader-unsupported-feature","Meshes must be defined");if(null==r.nodes)throw new a.A("gltf-loader-unsupported-feature","Nodes must be defined.");this._computeNodeParents()}static async load(e,t,r){if((0,l.DB)(t)){const r=(0,l.r$)(t);if(r&&"model/gltf-binary"!==r.mediaType)try{const o=JSON.parse(r.isBase64?atob(r.data):r.data);return new E(e,t,o)}catch{}const o=(0,l.lJ)(t);if(E._isGLBData(o))return this._fromGLBData(e,t,o)}if(G.test(t)||"gltf"===r?.expectedType){const o=await e.loadJSON(t,r);return new E(e,t,o)}const o=await e.loadBinary(t,r);if(E._isGLBData(o))return this._fromGLBData(e,t,o);if(P.test(t)||"glb"===r?.expectedType)throw new a.A("gltf-loader-invalid-glb","This is not a valid glb file.");const n=await e.loadJSON(t,r);return new E(e,t,n)}static _isGLBData(e){if(null==e)return!1;const t=new b(e);return t.remainingBytes()>=4&&t.readUint32()===C}static async _fromGLBData(e,t,r){const o=await E._parseGLBData(r);return new E(e,t,o.json,o.binaryData)}static async _parseGLBData(e){const t=new b(e);if(t.remainingBytes()<12)throw new a.A("gltf-loader-error","glb binary data is insufficiently large.");const r=t.readUint32(),n=t.readUint32(),s=t.readUint32();if(r!==C)throw new a.A("gltf-loader-error","Magic first 4 bytes do not fit to expected glb value.");if(e.byteLength<s)throw new a.A("gltf-loader-error","glb binary data is smaller than header specifies.");if(2!==n)throw new a.A("gltf-loader-unsupported-feature","An unsupported glb container version was detected. Only version 2 is supported.");let i,u,l=0;for(;t.remainingBytes()>=8;){const e=t.readUint32(),r=t.readUint32();if(0===l){if(1313821514!==r)throw new a.A("gltf-loader-error","First glb chunk must be JSON.");if(e<0)throw new a.A("gltf-loader-error","No JSON data found.");i=await(0,R.KB)(t.readUint8Array(e))}else if(1===l){if(5130562!==r)throw new a.A("gltf-loader-unsupported-feature","Second glb chunk expected to be BIN.");u=t.readUint8Array(e)}else o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] More than 2 glb chunks detected. Skipping.");l+=1}if(!i)throw new a.A("gltf-loader-error","No glb JSON chunk detected.");return{json:i,binaryData:u}}async getBuffer(e,t){const r=this.json.buffers[e];if(null==r.uri){if(null==this._glbBuffer)throw new a.A("gltf-loader-error","glb buffer not present");return this._glbBuffer}const o=await this._getBufferLoader(e,t);if(o.byteLength!==r.byteLength)throw new a.A("gltf-loader-error","Buffer byte lengths should match.");return o}async _getBufferLoader(e,t){const r=this._bufferLoaders.get(e);if(r)return r;const o=this.json.buffers[e].uri,n=this._context.loadBinary(this._resolveUri(o),t).then(e=>new Uint8Array(e));return this._bufferLoaders.set(e,n),n}_validateAccessor(e){if(!this.json.accessors)throw new a.A("gltf-loader-unsupported-feature","Accessors missing.");const t=this.json.accessors[e];if(t.type in["MAT2","MAT3","MAT4"])throw new a.A("gltf-loader-unsupported-feature",`AttributeType ${t.type} is not supported`);return t}_getComponentInfo(e,t){const r=F[e.type],o=t?.componentType||e.componentType,n=D[o];return{componentType:o,componentCount:r,componentByteSize:n,denseByteStride:r*n}}getDracoAccessor(e,t){const r=this._validateAccessor(e),o=t.accessorInfos.get(e),{componentType:n,componentCount:s,componentByteSize:a,denseByteStride:i}=this._getComponentInfo(r,o);return{raw:t.data.buffer,byteStride:i,byteOffset:t.data.byteOffset+(o?.byteOffset||0),entryCount:o?.count??r.count,isDenselyPacked:!0,componentCount:s,componentByteSize:a,componentType:n,min:r.min,max:r.max,normalized:!!r.normalized}}async getAccessor(e,t){const r=this._validateAccessor(e);if(null==r?.bufferView)throw new a.A("gltf-loader-unsupported-feature","Some accessor does not specify a bufferView.");const{componentCount:o,componentByteSize:n,denseByteStride:s}=this._getComponentInfo(r),i=this.json.bufferViews[r.bufferView],u=await this.getBuffer(i.buffer,t),l=i.byteStride||s;return{raw:u.buffer,byteStride:l,byteOffset:u.byteOffset+(i.byteOffset||0)+(r.byteOffset||0),entryCount:r.count,isDenselyPacked:l===s,componentCount:o,componentByteSize:n,componentType:r.componentType,min:r.min,max:r.max,normalized:!!r.normalized}}async getIndexData(e,t,r){if(null==e.indices)return;const o=e.indices,n=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(n.isDenselyPacked)switch(n.componentType){case N.pe.UNSIGNED_BYTE:return new Uint8Array(n.raw,n.byteOffset,n.entryCount);case N.pe.UNSIGNED_SHORT:return new Uint16Array(n.raw,n.byteOffset,n.entryCount);case N.pe.UNSIGNED_INT:return new Uint32Array(n.raw,n.byteOffset,n.entryCount)}else switch(n.componentType){case N.pe.UNSIGNED_BYTE:return(0,h.m)(U(m.SL,n));case N.pe.UNSIGNED_SHORT:return(0,h.m)(U(m.h,n));case N.pe.UNSIGNED_INT:return(0,h.m)(U(m.P,n))}}async getPositionData(e,t,r){if(null==e.attributes.POSITION)throw new a.A("gltf-loader-unsupported-feature","No POSITION vertex data found.");const o=e.attributes.POSITION,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for POSITION vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","POSITION vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return U(m.xs,s)}async getNormalData(e,t,r){if(null==e.attributes.NORMAL)throw new a.A("gltf-loader-error","No NORMAL vertex data found.");const o=e.attributes.NORMAL,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for NORMAL vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","NORMAL vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return U(m.xs,s)}async getTangentData(e,t,r){if(null==e.attributes.TANGENT)throw new a.A("gltf-loader-error","No TANGENT vertex data found.");const o=e.attributes.TANGENT,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for TANGENT vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(4!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","TANGENT vertex attribute must have 4 components, but found "+s.componentCount.toFixed());return U(m.Eq,s)}async getTextureCoordinates(e,t,r){if(null==e.attributes.TEXCOORD_0)throw new a.A("gltf-loader-error","No TEXCOORD_0 vertex data found.");const o=e.attributes.TEXCOORD_0,n=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(2!==n.componentCount)throw new a.A("gltf-loader-unsupported-feature","TEXCOORD_0 vertex attribute must have 2 components, but found "+n.componentCount.toFixed());if(n.componentType===N.pe.FLOAT)return U(m.gH,n);if(!n.normalized)throw new a.A("gltf-loader-unsupported-feature","Integer component types are only supported for a normalized accessor for TEXCOORD_0.");return function(e){switch(e.componentType){case N.pe.BYTE:return new m.D6(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_BYTE:return new m.LC(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.SHORT:return new m.mJ(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_SHORT:return new m.Yi(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_INT:return new m.An(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.FLOAT:return new m.gH(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount)}}(n)}async getVertexColors(e,t,r){if(null==e.attributes.COLOR_0)throw new a.A("gltf-loader-error","No COLOR_0 vertex data found.");const o=e.attributes.COLOR_0,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(4!==s.componentCount&&3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","COLOR_0 attribute must have 3 or 4 components, but found "+s.componentCount.toFixed());if(4===s.componentCount){if(s.componentType===N.pe.FLOAT)return U(m.Eq,s);if(s.componentType===N.pe.UNSIGNED_BYTE)return U(m.XP,s);if(s.componentType===N.pe.UNSIGNED_SHORT)return U(m.Uz,s)}else if(3===s.componentCount){if(s.componentType===N.pe.FLOAT)return U(m.xs,s);if(s.componentType===N.pe.UNSIGNED_BYTE)return U(m.eI,s);if(s.componentType===N.pe.UNSIGNED_SHORT)return U(m.nS,s)}throw new a.A("gltf-loader-unsupported-feature","Unsupported component type for COLOR_0 attribute: "+(0,n.i7)(N.pe,s.componentType))}hasPositions(e){return void 0!==e.attributes.POSITION}hasNormals(e){return void 0!==e.attributes.NORMAL}hasVertexColors(e){return void 0!==e.attributes.COLOR_0}hasTextureCoordinates(e){return void 0!==e.attributes.TEXCOORD_0}hasTangents(e){return void 0!==e.attributes.TANGENT}async getMaterial(e,t,r){let o=e.material?this._materialCache.get(e.material):void 0;if(!o){const n=null!=e.material?A(this.json.materials[e.material]):A(),s=n.pbrMetallicRoughness,a=this.hasVertexColors(e),i=this.getTexture(s.baseColorTexture,t),u=this.getTexture(n.normalTexture,t),l=r?this.getTexture(n.occlusionTexture,t):void 0,c=r?this.getTexture(n.emissiveTexture,t):void 0,f=r?this.getTexture(s.metallicRoughnessTexture,t):void 0,d=null!=e.material?e.material:-1;o={alphaMode:n.alphaMode,alphaCutoff:n.alphaCutoff,color:s.baseColorFactor,doubleSided:!!n.doubleSided,colorTexture:await i,normalTexture:await u,name:n.name,id:d,occlusionTexture:await l,emissiveTexture:await c,emissiveFactor:n.emissiveFactor,emissiveStrengthKHR:n.extensions?.KHR_materials_emissive_strength?.emissiveStrength,metallicFactor:s.metallicFactor,roughnessFactor:s.roughnessFactor,metallicRoughnessTexture:await f,hasVertexColors:a,ESRI_externalColorMixMode:n.extras.ESRI_externalColorMixMode,colorTextureTransform:s?.baseColorTexture?.extensions?.KHR_texture_transform,normalTextureTransform:n.normalTexture?.extensions?.KHR_texture_transform,occlusionTextureTransform:n.occlusionTexture?.extensions?.KHR_texture_transform,emissiveTextureTransform:n.emissiveTexture?.extensions?.KHR_texture_transform,metallicRoughnessTextureTransform:s?.metallicRoughnessTexture?.extensions?.KHR_texture_transform,receiveAmbientOcclusion:n.extras.ESRI_receiveAmbientOcclusion,receiveShadows:n.extras.ESRI_receiveShadows}}return o}async decode(e,t){const r=e.extensions?.KHR_draco_mesh_compression;if(!r)return;if(null==e.indices)throw new a.A("gltf-loader-error","Found Draco compressed primitive without indices.");const o=this.json.bufferViews[r.bufferView],n=await this.getBuffer(o.buffer,t),s=(await g()).decode(new Uint8Array(n.buffer,n.byteOffset+(o.byteOffset||0),o.byteLength));this._bufferLoaders.delete(o.buffer);const i=new Map([[e.indices,s.indices],[e.attributes.POSITION,s.positions]]);return e.attributes.TEXCOORD_0&&i.set(e.attributes.TEXCOORD_0,s.uvs),e.attributes.NORMAL&&i.set(e.attributes.NORMAL,s.normals),e.attributes.COLOR_0&&i.set(e.attributes.COLOR_0,s.colors),e.attributes.TANGENT&&i.set(e.attributes.TANGENT,s.tangents),this._dracoBuffersSize+=s.buffer.byteLength,{data:s.buffer,accessorInfos:i}}async getTexture(e,t){if(!e)return;if(0!==(e.texCoord||0))throw new a.A("gltf-loader-unsupported-feature","Only TEXCOORD with index 0 is supported.");const r=e.index,o=this.json.textures[r],n=v(null!=o.sampler?this.json.samplers[o.sampler]:{}),s=B(o),u=this.json.images[s],l=await this._loadTextureImageData(r,o,t);return(0,i.tE)(this._textureCache,r,()=>{const e=e=>33071===e||33648===e||10497===e,t=e=>{throw new a.A("gltf-loader-error",`Unexpected TextureSampler WrapMode: ${e}`)};return{data:l,wrapS:e(n.wrapS)?n.wrapS:t(n.wrapS),wrapT:e(n.wrapT)?n.wrapT:t(n.wrapT),minFilter:n.minFilter,name:u.name,id:r}})}getNodeTransform(e){if(void 0===e)return I;let t=this._nodeTransformCache.get(e);if(!t){const r=this.getNodeTransform(this._getNodeParent(e)),o=this.json.nodes[e];o.matrix?t=(0,f.lw)((0,s.vt)(),r,o.matrix):o.translation||o.rotation||o.scale?(t=(0,s.o8)(r),o.translation&&(0,f.Tl)(t,t,o.translation),o.rotation&&(M[3]=(0,d.Xd)(M,o.rotation),(0,f.e$)(t,t,M[3],M)),o.scale&&(0,f.hs)(t,t,o.scale)):t=(0,s.o8)(r),this._nodeTransformCache.set(e,t)}return t}_resolveUri(e){return(0,l.s2)(e,this._baseUri)}_getNodeParent(e){return this._nodeParentMap.get(e)}_checkVersionSupported(){const e=c.R.parse(this.json.asset.version,"glTF");L.validate(e)}_checkRequiredExtensionsSupported(){const e=this.json;if(e.extensionsRequired&&!e.extensionsRequired.every(e=>this._supportedExtensions.includes(e)))throw new a.A("gltf-loader-unsupported-feature","gltf loader was not able to load unsupported feature. Required extensions: "+e.extensionsRequired.join(", "))}_computeNodeParents(){this.json.nodes.forEach((e,t)=>{e.children&&e.children.forEach(e=>{this._nodeParentMap.set(e,t)})})}async _loadTextureImageData(e,t,r){const o=this._textureLoaders.get(e);if(o)return o;const n=this._createTextureLoader(t,r);return this._textureLoaders.set(e,n),n}async _createTextureLoader(e,t){const r=B(e),o=this.json.images[r];if(o.uri){if(o.uri.endsWith(".ktx2")){const e=await this._context.loadBinary(this._resolveUri(o.uri),t);return new R.Xi(new Uint8Array(e))}return this._context.loadImage(this._resolveUri(o.uri),t)}if(null==o.bufferView)throw new a.A("gltf-loader-unsupported-feature","Image bufferView must be defined.");if(null==o.mimeType)throw new a.A("gltf-loader-unsupported-feature","Image mimeType must be defined.");const n=this.json.bufferViews[o.bufferView],s=await this.getBuffer(n.buffer,t);if(null!=n.byteStride)throw new a.A("gltf-loader-unsupported-feature","byteStride not supported for image buffer");const i=s.byteOffset+(n.byteOffset||0);return(0,R.pn)(new Uint8Array(s.buffer,i,n.byteLength),o.mimeType)}async getLoadedBuffersSize(){if(this._glbBuffer)return this._glbBuffer.byteLength;const e=await(0,u.nA)(Array.from(this._bufferLoaders.values())),t=await(0,u.nA)(Array.from(this._textureLoaders.values()));return e.reduce((e,t)=>e+(t?.byteLength??0),0)+this._dracoBuffersSize+t.reduce((e,t)=>e+(t?(0,R.x3)(t)?t.data.byteLength:t.width*t.height*4:0),0)}}const I=(0,f.hM)((0,s.vt)(),Math.PI/2),L=new c.R(2,0,"glTF"),M=(0,p.vt)(),F={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},D={[N.pe.BYTE]:1,[N.pe.UNSIGNED_BYTE]:1,[N.pe.SHORT]:2,[N.pe.UNSIGNED_SHORT]:2,[N.pe.HALF_FLOAT]:2,[N.pe.FLOAT]:4,[N.pe.INT]:4,[N.pe.UNSIGNED_INT]:4};function U(e,t){return new e(t.raw,t.byteOffset,t.byteStride,t.byteOffset+t.byteStride*(t.entryCount-1)+t.componentByteSize*t.componentCount)}function B(e){if(null!=e.extensions?.KHR_texture_basisu)return e.extensions.KHR_texture_basisu.source;if(null!==e.source)return e.source;throw new a.A("gltf-loader-unsupported-feature","Source is expected to be defined for a texture. It can also be omitted in favour of an KHR_texture_basisu extension tag.")}const G=/\.gltf$/i,P=/\.glb$/i;let H=0;async function j(e,t,r={},a=!0){const i=await E.load(e,t,r),u="gltf_"+H++,l={lods:[],materials:new Map,textures:new Map,meta:k(i)},c=!(!i.json.asset.extras||"symbolResource"!==i.json.asset.extras.ESRI_type),f=i.json.asset.extras?.ESRI_webstyleSymbol?.webstyle,d=new Map;let p=!1;await V(i,async(e,t,c,f)=>{const m=d.get(c)??0;d.set(c,m+1);const h=void 0!==e.mode?e.mode:N.WR.TRIANGLES,T=h===N.WR.TRIANGLES||h===N.WR.TRIANGLE_STRIP||h===N.WR.TRIANGLE_FAN?h:null;if(null==T)return void o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Unsupported primitive mode ("+(0,n.i7)(N.WR,h)+"). Skipping primitive.");if(!i.hasPositions(e))return void o.A.getLogger("esri.views.3d.glTF").warn("Skipping primitive without POSITION vertex attribute.");const w=await i.decode(e,r);p||=!!w;const g=i.getPositionData(e,r,w),b=i.getMaterial(e,r,a),y=i.hasNormals(e)?i.getNormalData(e,r,w):null,x=i.hasTangents(e)?i.getTangentData(e,r,w):null,_=i.hasTextureCoordinates(e)?i.getTextureCoordinates(e,r,w):null,S=i.hasVertexColors(e)?i.getVertexColors(e,r,w):null,A=i.getIndexData(e,r,w),O={name:f,transform:(0,s.o8)(t),attributes:{position:await g,normal:y?await y:null,texCoord0:_?await _:null,color:S?await S:null,tangent:x?await x:null},indices:await A,primitiveType:T,material:K(l,await b,u)};let v=null;null!=l.meta?.ESRI_lod&&"screenSpaceRadius"===l.meta.ESRI_lod.metric&&(v=l.meta.ESRI_lod.thresholds[c]),l.lods[c]=l.lods[c]||{parts:[],name:f,lodThreshold:v},l.lods[c].parts[m]=O});for(const e of l.lods)e.parts=e.parts.filter(e=>!!e);const m=await i.getLoadedBuffersSize();return{model:l,meta:{isEsriSymbolResource:c,uri:i.uri,ESRI_webstyle:f,isDracoDecompressed:p},customMeta:{},usedMemory:m}}function k(e){const t=e.json;let r=null;return t.nodes.forEach(e=>{const t=e.extras;null!=t&&(t.ESRI_proxyEllipsoid||t.ESRI_lod)&&(r=t)}),r}async function V(e,t){const r=e.json,n=r.scenes[r.scene||0].nodes,s=n.length>1,a=[];for(const e of n){const t=r.nodes[e];a.push(i(e,0)),z(t)&&!s&&t.extensions.MSFT_lod.ids.forEach((e,t)=>i(e,t+1))}async function i(n,s){const u=r.nodes[n],l=e.getNodeTransform(n);if(null!=u.weights&&o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Morph targets are not supported."),null!=u.mesh){const e=r.meshes[u.mesh];for(const r of e.primitives)a.push(t(r,l,s,e.name))}for(const e of u.children||[])a.push(i(e,s))}await Promise.all(a)}function z(e){return e.extensions?.MSFT_lod&&Array.isArray(e.extensions.MSFT_lod.ids)}function K(e,t,r){const o=t=>{const o=`${r}_tex_${t&&t.id}${t?.name?"_"+t.name:""}`;if(t&&!e.textures.has(o)){const r=function(e,t={}){return{data:e,parameters:{wrap:{s:10497,t:10497,...t.wrap},noUnpackFlip:!0,mipmap:!1,...t}}}(t.data,{wrap:{s:t.wrapS,t:t.wrapT},mipmap:$.has(t.minFilter),noUnpackFlip:!0});e.textures.set(o,r)}return o},n=`${r}_mat_${t.id}_${t.name}`;if(!e.materials.has(n)){const r=function(e={}){return{color:[1,1,1],opacity:1,alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1,castShadows:!0,receiveShadows:!0,receiveAmbientOcclusion:!0,colorTexture:null,normalTexture:null,occlusionTexture:null,emissiveTexture:null,emissiveStrengthKHR:null,metallicRoughnessTexture:null,colorTextureTransform:null,normalTextureTransform:null,occlusionTextureTransform:null,emissiveTextureTransform:null,metallicRoughnessTextureTransform:null,emissiveFactor:[0,0,0],metallicFactor:1,roughnessFactor:1,colorMixMode:"multiply",...e}}({color:[t.color[0],t.color[1],t.color[2]],opacity:t.color[3],alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,colorMixMode:t.ESRI_externalColorMixMode,colorTexture:t.colorTexture?o(t.colorTexture):void 0,normalTexture:t.normalTexture?o(t.normalTexture):void 0,occlusionTexture:t.occlusionTexture?o(t.occlusionTexture):void 0,emissiveTexture:t.emissiveTexture?o(t.emissiveTexture):void 0,metallicRoughnessTexture:t.metallicRoughnessTexture?o(t.metallicRoughnessTexture):void 0,emissiveFactor:[t.emissiveFactor[0],t.emissiveFactor[1],t.emissiveFactor[2]],emissiveStrengthKHR:t.emissiveStrengthKHR,colorTextureTransform:t.colorTextureTransform,normalTextureTransform:t.normalTextureTransform,occlusionTextureTransform:t.occlusionTextureTransform,emissiveTextureTransform:t.emissiveTextureTransform,metallicRoughnessTextureTransform:t.metallicRoughnessTextureTransform,metallicFactor:t.metallicFactor,roughnessFactor:t.roughnessFactor,receiveShadows:t.receiveShadows,receiveAmbientOcclusion:t.receiveAmbientOcclusion});e.materials.set(n,r)}return n}const $=new Set([9987,9985])}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1698],{24045:(e,t,r)=>{function o(e,t){const r=e.count;t||(t=new e.TypedArrayConstructor(r));for(let o=0;o<r;o++)t[o]=e.get(o);return t}r.d(t,{m:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,makeDense:o},Symbol.toStringTag,{value:"Module"}))},51698:(e,t,r)=>{r.d(t,{loadGLTF:()=>j});var o=r(53966),n=r(93637),s=r(9093),a=r(49186),i=r(91869),u=r(74887),l=r(84952),c=r(46140),f=r(58083),d=r(67026),p=r(82534),m=r(13030),h=r(24045),T=(r(44208),r(2741));let w;function g(){return w??=(async()=>{const{default:e}=await r.e(2423).then(r.bind(r,2423));return await e({locateFile:e=>(0,T.s)(`esri/libs/dracoMeshDecoder/${e}`)})})(),w}class b{constructor(e){this._data=e,this._offset4=0,this._dataUint32=new Uint32Array(this._data,0,Math.floor(this._data.byteLength/4))}readUint32(){const e=this._offset4;return this._offset4+=1,this._dataUint32[e]}readUint8Array(e){const t=4*this._offset4;return this._offset4+=e/4,new Uint8Array(this._data,t,e)}remainingBytes(){return this._data.byteLength-4*this._offset4}}var y=r(21818);const x={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1},_={pbrMetallicRoughness:x,emissiveFactor:[0,0,0],alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1},S={ESRI_externalColorMixMode:"tint",ESRI_receiveShadows:!0,ESRI_receiveAmbientOcclusion:!0},A=(e={})=>{const t={...x,...e.pbrMetallicRoughness},r=function(e){switch(e.ESRI_externalColorMixMode){case"multiply":case"tint":case"ignore":case"replace":break;default:(0,y.Xb)(e.ESRI_externalColorMixMode),e.ESRI_externalColorMixMode="tint"}return e}({...S,...e.extras});return{..._,...e,pbrMetallicRoughness:t,extras:r}},O={magFilter:9729,minFilter:9987,wrapS:10497,wrapT:10497},v=e=>({...O,...e});var R=r(51530),N=r(63907);const C=1179937895;class E{constructor(e,t,r,o){if(this._context=e,this.uri=t,this.json=r,this._glbBuffer=o,this._bufferLoaders=new Map,this._textureLoaders=new Map,this._dracoBuffersSize=0,this._textureCache=new Map,this._materialCache=new Map,this._nodeParentMap=new Map,this._nodeTransformCache=new Map,this._supportedExtensions=["KHR_texture_basisu","KHR_texture_transform","KHR_draco_mesh_compression","KHR_materials_emissive_strength"],this._baseUri=function(e){let t,r;return e.replace(/^(.*\/)?([^/]*)$/,(e,o,n)=>(t=o||"",r=n||"","")),{dirPart:t,filePart:r}}(this.uri).dirPart,this._checkVersionSupported(),this._checkRequiredExtensionsSupported(),null==r.scenes)throw new a.A("gltf-loader-unsupported-feature","Scenes must be defined.");if(null==r.meshes)throw new a.A("gltf-loader-unsupported-feature","Meshes must be defined");if(null==r.nodes)throw new a.A("gltf-loader-unsupported-feature","Nodes must be defined.");this._computeNodeParents()}static async load(e,t,r){if((0,l.DB)(t)){const r=(0,l.r$)(t);if(r&&"model/gltf-binary"!==r.mediaType)try{const o=JSON.parse(r.isBase64?atob(r.data):r.data);return new E(e,t,o)}catch{}const o=(0,l.lJ)(t);if(E._isGLBData(o))return this._fromGLBData(e,t,o)}if(G.test(t)||"gltf"===r?.expectedType){const o=await e.loadJSON(t,r);return new E(e,t,o)}const o=await e.loadBinary(t,r);if(E._isGLBData(o))return this._fromGLBData(e,t,o);if(P.test(t)||"glb"===r?.expectedType)throw new a.A("gltf-loader-invalid-glb","This is not a valid glb file.");const n=await e.loadJSON(t,r);return new E(e,t,n)}static _isGLBData(e){if(null==e)return!1;const t=new b(e);return t.remainingBytes()>=4&&t.readUint32()===C}static async _fromGLBData(e,t,r){const o=await E._parseGLBData(r);return new E(e,t,o.json,o.binaryData)}static async _parseGLBData(e){const t=new b(e);if(t.remainingBytes()<12)throw new a.A("gltf-loader-error","glb binary data is insufficiently large.");const r=t.readUint32(),n=t.readUint32(),s=t.readUint32();if(r!==C)throw new a.A("gltf-loader-error","Magic first 4 bytes do not fit to expected glb value.");if(e.byteLength<s)throw new a.A("gltf-loader-error","glb binary data is smaller than header specifies.");if(2!==n)throw new a.A("gltf-loader-unsupported-feature","An unsupported glb container version was detected. Only version 2 is supported.");let i,u,l=0;for(;t.remainingBytes()>=8;){const e=t.readUint32(),r=t.readUint32();if(0===l){if(1313821514!==r)throw new a.A("gltf-loader-error","First glb chunk must be JSON.");if(e<0)throw new a.A("gltf-loader-error","No JSON data found.");i=await(0,R.KB)(t.readUint8Array(e))}else if(1===l){if(5130562!==r)throw new a.A("gltf-loader-unsupported-feature","Second glb chunk expected to be BIN.");u=t.readUint8Array(e)}else o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] More than 2 glb chunks detected. Skipping.");l+=1}if(!i)throw new a.A("gltf-loader-error","No glb JSON chunk detected.");return{json:i,binaryData:u}}async getBuffer(e,t){const r=this.json.buffers[e];if(null==r.uri){if(null==this._glbBuffer)throw new a.A("gltf-loader-error","glb buffer not present");return this._glbBuffer}const o=await this._getBufferLoader(e,t);if(o.byteLength!==r.byteLength)throw new a.A("gltf-loader-error","Buffer byte lengths should match.");return o}async _getBufferLoader(e,t){const r=this._bufferLoaders.get(e);if(r)return r;const o=this.json.buffers[e].uri,n=this._context.loadBinary(this._resolveUri(o),t).then(e=>new Uint8Array(e));return this._bufferLoaders.set(e,n),n}_validateAccessor(e){if(!this.json.accessors)throw new a.A("gltf-loader-unsupported-feature","Accessors missing.");const t=this.json.accessors[e];if(t.type in["MAT2","MAT3","MAT4"])throw new a.A("gltf-loader-unsupported-feature",`AttributeType ${t.type} is not supported`);return t}_getComponentInfo(e,t){const r=F[e.type],o=t?.componentType||e.componentType,n=D[o];return{componentType:o,componentCount:r,componentByteSize:n,denseByteStride:r*n}}getDracoAccessor(e,t){const r=this._validateAccessor(e),o=t.accessorInfos.get(e),{componentType:n,componentCount:s,componentByteSize:a,denseByteStride:i}=this._getComponentInfo(r,o);return{raw:t.data.buffer,byteStride:i,byteOffset:t.data.byteOffset+(o?.byteOffset||0),entryCount:o?.count??r.count,isDenselyPacked:!0,componentCount:s,componentByteSize:a,componentType:n,min:r.min,max:r.max,normalized:!!r.normalized}}async getAccessor(e,t){const r=this._validateAccessor(e);if(null==r?.bufferView)throw new a.A("gltf-loader-unsupported-feature","Some accessor does not specify a bufferView.");const{componentCount:o,componentByteSize:n,denseByteStride:s}=this._getComponentInfo(r),i=this.json.bufferViews[r.bufferView],u=await this.getBuffer(i.buffer,t),l=i.byteStride||s;return{raw:u.buffer,byteStride:l,byteOffset:u.byteOffset+(i.byteOffset||0)+(r.byteOffset||0),entryCount:r.count,isDenselyPacked:l===s,componentCount:o,componentByteSize:n,componentType:r.componentType,min:r.min,max:r.max,normalized:!!r.normalized}}async getIndexData(e,t,r){if(null==e.indices)return;const o=e.indices,n=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(n.isDenselyPacked)switch(n.componentType){case N.pe.UNSIGNED_BYTE:return new Uint8Array(n.raw,n.byteOffset,n.entryCount);case N.pe.UNSIGNED_SHORT:return new Uint16Array(n.raw,n.byteOffset,n.entryCount);case N.pe.UNSIGNED_INT:return new Uint32Array(n.raw,n.byteOffset,n.entryCount)}else switch(n.componentType){case N.pe.UNSIGNED_BYTE:return(0,h.m)(U(m.SL,n));case N.pe.UNSIGNED_SHORT:return(0,h.m)(U(m.h,n));case N.pe.UNSIGNED_INT:return(0,h.m)(U(m.P,n))}}async getPositionData(e,t,r){if(null==e.attributes.POSITION)throw new a.A("gltf-loader-unsupported-feature","No POSITION vertex data found.");const o=e.attributes.POSITION,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for POSITION vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","POSITION vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return U(m.xs,s)}async getNormalData(e,t,r){if(null==e.attributes.NORMAL)throw new a.A("gltf-loader-error","No NORMAL vertex data found.");const o=e.attributes.NORMAL,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for NORMAL vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","NORMAL vertex attribute must have 3 components, but found "+s.componentCount.toFixed());return U(m.xs,s)}async getTangentData(e,t,r){if(null==e.attributes.TANGENT)throw new a.A("gltf-loader-error","No TANGENT vertex data found.");const o=e.attributes.TANGENT,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(s.componentType!==N.pe.FLOAT)throw new a.A("gltf-loader-unsupported-feature","Expected type FLOAT for TANGENT vertex attribute, but found "+(0,n.i7)(N.pe,s.componentType));if(4!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","TANGENT vertex attribute must have 4 components, but found "+s.componentCount.toFixed());return U(m.Eq,s)}async getTextureCoordinates(e,t,r){if(null==e.attributes.TEXCOORD_0)throw new a.A("gltf-loader-error","No TEXCOORD_0 vertex data found.");const o=e.attributes.TEXCOORD_0,n=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(2!==n.componentCount)throw new a.A("gltf-loader-unsupported-feature","TEXCOORD_0 vertex attribute must have 2 components, but found "+n.componentCount.toFixed());if(n.componentType===N.pe.FLOAT)return U(m.gH,n);if(!n.normalized)throw new a.A("gltf-loader-unsupported-feature","Integer component types are only supported for a normalized accessor for TEXCOORD_0.");return function(e){switch(e.componentType){case N.pe.BYTE:return new m.D6(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_BYTE:return new m.LC(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.SHORT:return new m.mJ(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_SHORT:return new m.Yi(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.UNSIGNED_INT:return new m.An(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case N.pe.FLOAT:return new m.gH(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount)}}(n)}async getVertexColors(e,t,r){if(null==e.attributes.COLOR_0)throw new a.A("gltf-loader-error","No COLOR_0 vertex data found.");const o=e.attributes.COLOR_0,s=r?this.getDracoAccessor(o,r):await this.getAccessor(o,t);if(4!==s.componentCount&&3!==s.componentCount)throw new a.A("gltf-loader-unsupported-feature","COLOR_0 attribute must have 3 or 4 components, but found "+s.componentCount.toFixed());if(4===s.componentCount){if(s.componentType===N.pe.FLOAT)return U(m.Eq,s);if(s.componentType===N.pe.UNSIGNED_BYTE)return U(m.XP,s);if(s.componentType===N.pe.UNSIGNED_SHORT)return U(m.Uz,s)}else if(3===s.componentCount){if(s.componentType===N.pe.FLOAT)return U(m.xs,s);if(s.componentType===N.pe.UNSIGNED_BYTE)return U(m.eI,s);if(s.componentType===N.pe.UNSIGNED_SHORT)return U(m.nS,s)}throw new a.A("gltf-loader-unsupported-feature","Unsupported component type for COLOR_0 attribute: "+(0,n.i7)(N.pe,s.componentType))}hasPositions(e){return void 0!==e.attributes.POSITION}hasNormals(e){return void 0!==e.attributes.NORMAL}hasVertexColors(e){return void 0!==e.attributes.COLOR_0}hasTextureCoordinates(e){return void 0!==e.attributes.TEXCOORD_0}hasTangents(e){return void 0!==e.attributes.TANGENT}async getMaterial(e,t,r,o){let n=e.material?this._materialCache.get(e.material):void 0;if(!n){const s=null!=e.material?A(this.json.materials[e.material]):A(),a=s.pbrMetallicRoughness,i=this.hasVertexColors(e),u=this.getTexture(a.baseColorTexture,t),l=this.getTexture(s.normalTexture,t),c=r?this.getTexture(s.occlusionTexture,t):void 0,f=o?this.getTexture(s.emissiveTexture,t):void 0,d=r?this.getTexture(a.metallicRoughnessTexture,t):void 0,p=null!=e.material?e.material:-1;n={alphaMode:s.alphaMode,alphaCutoff:s.alphaCutoff,color:a.baseColorFactor,doubleSided:!!s.doubleSided,colorTexture:await u,normalTexture:await l,name:s.name,id:p,occlusionTexture:await c,emissiveTexture:await f,emissiveFactor:s.emissiveFactor,emissiveStrengthKHR:s.extensions?.KHR_materials_emissive_strength?.emissiveStrength,metallicFactor:a.metallicFactor,roughnessFactor:a.roughnessFactor,metallicRoughnessTexture:await d,hasVertexColors:i,ESRI_externalColorMixMode:s.extras.ESRI_externalColorMixMode,colorTextureTransform:a?.baseColorTexture?.extensions?.KHR_texture_transform,normalTextureTransform:s.normalTexture?.extensions?.KHR_texture_transform,occlusionTextureTransform:s.occlusionTexture?.extensions?.KHR_texture_transform,emissiveTextureTransform:s.emissiveTexture?.extensions?.KHR_texture_transform,metallicRoughnessTextureTransform:a?.metallicRoughnessTexture?.extensions?.KHR_texture_transform,receiveAmbientOcclusion:s.extras.ESRI_receiveAmbientOcclusion,receiveShadows:s.extras.ESRI_receiveShadows}}return n}async decode(e,t){const r=e.extensions?.KHR_draco_mesh_compression;if(!r)return;if(null==e.indices)throw new a.A("gltf-loader-error","Found Draco compressed primitive without indices.");const o=this.json.bufferViews[r.bufferView],n=await this.getBuffer(o.buffer,t),s=(await g()).decode(new Uint8Array(n.buffer,n.byteOffset+(o.byteOffset||0),o.byteLength));this._bufferLoaders.delete(o.buffer);const i=new Map([[e.indices,s.indices],[e.attributes.POSITION,s.positions]]);return e.attributes.TEXCOORD_0&&i.set(e.attributes.TEXCOORD_0,s.uvs),e.attributes.NORMAL&&i.set(e.attributes.NORMAL,s.normals),e.attributes.COLOR_0&&i.set(e.attributes.COLOR_0,s.colors),e.attributes.TANGENT&&i.set(e.attributes.TANGENT,s.tangents),this._dracoBuffersSize+=s.buffer.byteLength,{data:s.buffer,accessorInfos:i}}async getTexture(e,t){if(!e)return;if(0!==(e.texCoord||0))throw new a.A("gltf-loader-unsupported-feature","Only TEXCOORD with index 0 is supported.");const r=e.index,o=this.json.textures[r],n=v(null!=o.sampler?this.json.samplers[o.sampler]:{}),s=B(o),u=this.json.images[s],l=await this._loadTextureImageData(r,o,t);return(0,i.tE)(this._textureCache,r,()=>{const e=e=>33071===e||33648===e||10497===e,t=e=>{throw new a.A("gltf-loader-error",`Unexpected TextureSampler WrapMode: ${e}`)};return{data:l,wrapS:e(n.wrapS)?n.wrapS:t(n.wrapS),wrapT:e(n.wrapT)?n.wrapT:t(n.wrapT),minFilter:n.minFilter,name:u.name,id:r}})}getNodeTransform(e){if(void 0===e)return I;let t=this._nodeTransformCache.get(e);if(!t){const r=this.getNodeTransform(this._getNodeParent(e)),o=this.json.nodes[e];o.matrix?t=(0,f.lw)((0,s.vt)(),r,o.matrix):o.translation||o.rotation||o.scale?(t=(0,s.o8)(r),o.translation&&(0,f.Tl)(t,t,o.translation),o.rotation&&(M[3]=(0,d.Xd)(M,o.rotation),(0,f.e$)(t,t,M[3],M)),o.scale&&(0,f.hs)(t,t,o.scale)):t=(0,s.o8)(r),this._nodeTransformCache.set(e,t)}return t}_resolveUri(e){return(0,l.s2)(e,this._baseUri)}_getNodeParent(e){return this._nodeParentMap.get(e)}_checkVersionSupported(){const e=c.R.parse(this.json.asset.version,"glTF");L.validate(e)}_checkRequiredExtensionsSupported(){const e=this.json;if(e.extensionsRequired&&!e.extensionsRequired.every(e=>this._supportedExtensions.includes(e)))throw new a.A("gltf-loader-unsupported-feature","gltf loader was not able to load unsupported feature. Required extensions: "+e.extensionsRequired.join(", "))}_computeNodeParents(){this.json.nodes.forEach((e,t)=>{e.children&&e.children.forEach(e=>{this._nodeParentMap.set(e,t)})})}async _loadTextureImageData(e,t,r){const o=this._textureLoaders.get(e);if(o)return o;const n=this._createTextureLoader(t,r);return this._textureLoaders.set(e,n),n}async _createTextureLoader(e,t){const r=B(e),o=this.json.images[r];if(o.uri){if(o.uri.endsWith(".ktx2")){const e=await this._context.loadBinary(this._resolveUri(o.uri),t);return new R.Xi(new Uint8Array(e))}return this._context.loadImage(this._resolveUri(o.uri),t)}if(null==o.bufferView)throw new a.A("gltf-loader-unsupported-feature","Image bufferView must be defined.");if(null==o.mimeType)throw new a.A("gltf-loader-unsupported-feature","Image mimeType must be defined.");const n=this.json.bufferViews[o.bufferView],s=await this.getBuffer(n.buffer,t);if(null!=n.byteStride)throw new a.A("gltf-loader-unsupported-feature","byteStride not supported for image buffer");const i=s.byteOffset+(n.byteOffset||0);return(0,R.pn)(new Uint8Array(s.buffer,i,n.byteLength),o.mimeType)}async getLoadedBuffersSize(){if(this._glbBuffer)return this._glbBuffer.byteLength;const e=await(0,u.nA)(Array.from(this._bufferLoaders.values())),t=await(0,u.nA)(Array.from(this._textureLoaders.values()));return e.reduce((e,t)=>e+(t?.byteLength??0),0)+this._dracoBuffersSize+t.reduce((e,t)=>e+(t?(0,R.x3)(t)?t.data.byteLength:t.width*t.height*4:0),0)}}const I=(0,f.hM)((0,s.vt)(),Math.PI/2),L=new c.R(2,0,"glTF"),M=(0,p.vt)(),F={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},D={[N.pe.BYTE]:1,[N.pe.UNSIGNED_BYTE]:1,[N.pe.SHORT]:2,[N.pe.UNSIGNED_SHORT]:2,[N.pe.HALF_FLOAT]:2,[N.pe.FLOAT]:4,[N.pe.INT]:4,[N.pe.UNSIGNED_INT]:4};function U(e,t){return new e(t.raw,t.byteOffset,t.byteStride,t.byteOffset+t.byteStride*(t.entryCount-1)+t.componentByteSize*t.componentCount)}function B(e){if(null!=e.extensions?.KHR_texture_basisu)return e.extensions.KHR_texture_basisu.source;if(null!==e.source)return e.source;throw new a.A("gltf-loader-unsupported-feature","Source is expected to be defined for a texture. It can also be omitted in favour of an KHR_texture_basisu extension tag.")}const G=/\.gltf$/i,P=/\.glb$/i;let H=0;async function j(e,t,r={},a=!0,i=!0){const u=await E.load(e,t,r),l="gltf_"+H++,c={lods:[],materials:new Map,textures:new Map,meta:k(u)},f=!(!u.json.asset.extras||"symbolResource"!==u.json.asset.extras.ESRI_type),d=u.json.asset.extras?.ESRI_webstyleSymbol?.webstyle,p=new Map;let m=!1;await V(u,async(e,t,f,d)=>{const h=p.get(f)??0;p.set(f,h+1);const T=void 0!==e.mode?e.mode:N.WR.TRIANGLES,w=T===N.WR.TRIANGLES||T===N.WR.TRIANGLE_STRIP||T===N.WR.TRIANGLE_FAN?T:null;if(null==w)return void o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Unsupported primitive mode ("+(0,n.i7)(N.WR,T)+"). Skipping primitive.");if(!u.hasPositions(e))return void o.A.getLogger("esri.views.3d.glTF").warn("Skipping primitive without POSITION vertex attribute.");const g=await u.decode(e,r);m||=!!g;const b=u.getPositionData(e,r,g),y=u.getMaterial(e,r,a,i),x=u.hasNormals(e)?u.getNormalData(e,r,g):null,_=u.hasTangents(e)?u.getTangentData(e,r,g):null,S=u.hasTextureCoordinates(e)?u.getTextureCoordinates(e,r,g):null,A=u.hasVertexColors(e)?u.getVertexColors(e,r,g):null,O=u.getIndexData(e,r,g),v={name:d,transform:(0,s.o8)(t),attributes:{position:await b,normal:x?await x:null,texCoord0:S?await S:null,color:A?await A:null,tangent:_?await _:null},indices:await O,primitiveType:w,material:K(c,await y,l)};let R=null;null!=c.meta?.ESRI_lod&&"screenSpaceRadius"===c.meta.ESRI_lod.metric&&(R=c.meta.ESRI_lod.thresholds[f]),c.lods[f]=c.lods[f]||{parts:[],name:d,lodThreshold:R},c.lods[f].parts[h]=v});for(const e of c.lods)e.parts=e.parts.filter(e=>!!e);const h=await u.getLoadedBuffersSize();return{model:c,meta:{isEsriSymbolResource:f,uri:u.uri,ESRI_webstyle:d,isDracoDecompressed:m},customMeta:{},usedMemory:h}}function k(e){const t=e.json;let r=null;return t.nodes.forEach(e=>{const t=e.extras;null!=t&&(t.ESRI_proxyEllipsoid||t.ESRI_lod)&&(r=t)}),r}async function V(e,t){const r=e.json,n=r.scenes[r.scene||0].nodes,s=n.length>1,a=[];for(const e of n){const t=r.nodes[e];a.push(i(e,0)),z(t)&&!s&&t.extensions.MSFT_lod.ids.forEach((e,t)=>i(e,t+1))}async function i(n,s){const u=r.nodes[n],l=e.getNodeTransform(n);if(null!=u.weights&&o.A.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Morph targets are not supported."),null!=u.mesh){const e=r.meshes[u.mesh];for(const r of e.primitives)a.push(t(r,l,s,e.name))}for(const e of u.children||[])a.push(i(e,s))}await Promise.all(a)}function z(e){return e.extensions?.MSFT_lod&&Array.isArray(e.extensions.MSFT_lod.ids)}function K(e,t,r){const o=t=>{const o=`${r}_tex_${t&&t.id}${t?.name?"_"+t.name:""}`;if(t&&!e.textures.has(o)){const r=function(e,t={}){return{data:e,parameters:{wrap:{s:10497,t:10497,...t.wrap},noUnpackFlip:!0,mipmap:!1,...t}}}(t.data,{wrap:{s:t.wrapS,t:t.wrapT},mipmap:$.has(t.minFilter),noUnpackFlip:!0});e.textures.set(o,r)}return o},n=`${r}_mat_${t.id}_${t.name}`;if(!e.materials.has(n)){const r=function(e={}){return{color:[1,1,1],opacity:1,alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1,castShadows:!0,receiveShadows:!0,receiveAmbientOcclusion:!0,colorTexture:null,normalTexture:null,occlusionTexture:null,emissiveTexture:null,emissiveStrengthKHR:null,metallicRoughnessTexture:null,colorTextureTransform:null,normalTextureTransform:null,occlusionTextureTransform:null,emissiveTextureTransform:null,metallicRoughnessTextureTransform:null,emissiveFactor:[0,0,0],metallicFactor:1,roughnessFactor:1,colorMixMode:"multiply",...e}}({color:[t.color[0],t.color[1],t.color[2]],opacity:t.color[3],alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,colorMixMode:t.ESRI_externalColorMixMode,colorTexture:t.colorTexture?o(t.colorTexture):void 0,normalTexture:t.normalTexture?o(t.normalTexture):void 0,occlusionTexture:t.occlusionTexture?o(t.occlusionTexture):void 0,emissiveTexture:t.emissiveTexture?o(t.emissiveTexture):void 0,metallicRoughnessTexture:t.metallicRoughnessTexture?o(t.metallicRoughnessTexture):void 0,emissiveFactor:[t.emissiveFactor[0],t.emissiveFactor[1],t.emissiveFactor[2]],emissiveStrengthKHR:t.emissiveStrengthKHR,colorTextureTransform:t.colorTextureTransform,normalTextureTransform:t.normalTextureTransform,occlusionTextureTransform:t.occlusionTextureTransform,emissiveTextureTransform:t.emissiveTextureTransform,metallicRoughnessTextureTransform:t.metallicRoughnessTextureTransform,metallicFactor:t.metallicFactor,roughnessFactor:t.roughnessFactor,receiveShadows:t.receiveShadows,receiveAmbientOcclusion:t.receiveAmbientOcclusion});e.materials.set(n,r)}return n}const $=new Set([9987,9985])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9265],{22802:(e,t,r)=>{r.d(t,{O:()=>n});var s=r(39117);class n extends s.I{getOperatorType(){return 7}execute(e,t,r,n){return(0,s.J)(e,t,r,2,n)}}},76061:(e,t,r)=>{r.d(t,{G:()=>s,S:()=>n});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class n extends s{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},85445:(e,t,r)=>{r.r(t),r.d(t,{execute:()=>m});var s=r(22802),n=r(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9265],{22802:(e,t,r)=>{r.d(t,{O:()=>n});var s=r(39117);class n extends s.I{getOperatorType(){return 7}execute(e,t,r,n){return(0,s.J)(e,t,r,2,n)}}},76061:(e,t,r)=>{r.d(t,{G:()=>s,S:()=>n});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class n extends s{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},85445:(e,t,r)=>{r.r(t),r.d(t,{execute:()=>m});var s=r(22802),n=r(34772);const o=new s.O;function m(e,t){const r=(0,n.fromGeometry)(e);return o.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(t),r.getSpatialReference(),null)}}}]);
|